Index: imaps-frontend/dist/assets/html2canvas.esm-CBrSDip1.js
===================================================================
--- imaps-frontend/dist/assets/html2canvas.esm-CBrSDip1.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/html2canvas.esm-CBrSDip1.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,22 @@
+/*!
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
+ * Released under MIT License
+ *//*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var mr=function(e,A){return mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var B in r)Object.prototype.hasOwnProperty.call(r,B)&&(t[B]=r[B])},mr(e,A)};function tA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");mr(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var Lr=function(){return Lr=Object.assign||function(A){for(var t,r=1,B=arguments.length;r<B;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A},Lr.apply(this,arguments)};function P(e,A,t,r){function B(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function i(Q){try{o(r.next(Q))}catch(g){s(g)}}function a(Q){try{o(r.throw(Q))}catch(g){s(g)}}function o(Q){Q.done?n(Q.value):B(Q.value).then(i,a)}o((r=r.apply(e,[])).next())})}function _(e,A){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,B,n,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(o){return function(Q){return a([o,Q])}}function a(o){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,B&&(n=o[0]&2?B.return:o[0]?B.throw||((n=B.return)&&n.call(B),0):B.next)&&!(n=n.call(B,o[1])).done)return n;switch(B=0,n&&(o=[o[0]&2,n.value]),o[0]){case 0:case 1:n=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,B=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){t.label=o[1];break}if(o[0]===6&&t.label<n[1]){t.label=n[1],n=o;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(o);break}n[2]&&t.ops.pop(),t.trys.pop();continue}o=A.call(e,t)}catch(Q){o=[6,Q],B=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function ue(e,A,t){if(arguments.length===2)for(var r=0,B=A.length,n;r<B;r++)(n||!(r in A))&&(n||(n=Array.prototype.slice.call(A,0,r)),n[r]=A[r]);return e.concat(n||A)}var cA=function(){function e(A,t,r,B){this.left=A,this.top=t,this.width=r,this.height=B}return e.prototype.add=function(A,t,r,B){return new e(this.left+A,this.top+t,this.width+r,this.height+B)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(B){return B.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),ze=function(e,A){return cA.fromClientRect(e,A.getBoundingClientRect())},an=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),B=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new cA(0,0,r,B)},$e=function(e){for(var A=[],t=0,r=e.length;t<r;){var B=e.charCodeAt(t++);if(B>=55296&&B<=56319&&t<r){var n=e.charCodeAt(t++);(n&64512)===56320?A.push(((B&1023)<<10)+(n&1023)+65536):(A.push(B),t--)}else A.push(B)}return A},S=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],B=-1,n="";++B<t;){var s=e[B];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",on=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var le=0;le<nt.length;le++)on[nt.charCodeAt(le)]=le;var st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zA=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var fe=0;fe<st.length;fe++)zA[st.charCodeAt(fe)]=fe;var Qn=function(e){var A=e.length*.75,t=e.length,r,B=0,n,s,i,a;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),Q=Array.isArray(o)?o:new Uint8Array(o);for(r=0;r<t;r+=4)n=zA[e.charCodeAt(r)],s=zA[e.charCodeAt(r+1)],i=zA[e.charCodeAt(r+2)],a=zA[e.charCodeAt(r+3)],Q[B++]=n<<2|s>>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},gn=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},wn=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},bA=5,zr=11,ir=2,cn=zr-bA,BB=65536>>bA,Cn=1<<bA,or=Cn-1,un=1024>>bA,ln=BB+un,fn=ln,Un=32,Fn=fn+Un,hn=65536>>zr,dn=1<<cn,En=dn-1,at=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},Hn=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},pn=function(e,A){var t=Qn(e),r=Array.isArray(t)?wn(t):new Uint32Array(t),B=Array.isArray(t)?gn(t):new Uint16Array(t),n=24,s=at(B,n/2,r[4]/2),i=r[5]===2?at(B,(n+r[4])/2):Hn(r,Math.ceil((n+r[4])/4));return new In(r[0],r[1],r[2],r[3],s,i)},In=function(){function e(A,t,r,B,n,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=B,this.index=n,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>bA],t=(t<<ir)+(A&or),this.data[t];if(A<=65535)return t=this.index[BB+(A-55296>>bA)],t=(t<<ir)+(A&or),this.data[t];if(A<this.highStart)return t=Fn-hn+(A>>zr),t=this.index[t],t+=A>>bA&En,t=this.index[t],t=(t<<ir)+(A&or),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ue=0;Ue<it.length;Ue++)vn[it.charCodeAt(Ue)]=Ue;var yn="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ot=50,Kn=1,nB=2,sB=3,mn=4,Ln=5,Qt=7,aB=8,gt=9,FA=10,Dr=11,wt=12,br=13,Dn=14,$A=15,xr=16,Fe=17,WA=18,bn=19,ct=20,Tr=21,ZA=22,Qr=23,SA=24,j=25,Ae=26,ee=27,OA=28,xn=29,LA=30,Tn=31,he=32,de=33,Sr=34,Or=35,Mr=36,Qe=37,Gr=38,Ge=39,Re=40,gr=41,iB=42,Sn=43,On=[9001,65288],oB="!",I="×",Ee="÷",Rr=pn(yn),QA=[LA,Mr],Vr=[Kn,nB,sB,Ln],QB=[FA,aB],Ct=[ee,Ae],Mn=Vr.concat(QB),ut=[Gr,Ge,Re,Sr,Or],Gn=[$A,br],Rn=function(e,A){A===void 0&&(A="strict");var t=[],r=[],B=[];return e.forEach(function(n,s){var i=Rr.get(n);if(i>ot?(B.push(!0),i-=ot):B.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(s),t.push(xr);if(i===mn||i===Dr){if(s===0)return r.push(s),t.push(LA);var a=t[s-1];return Mn.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(LA))}if(r.push(s),i===Tn)return t.push(A==="strict"?Tr:Qe);if(i===iB||i===xn)return t.push(LA);if(i===Sn)return n>=131072&&n<=196605||n>=196608&&n<=262141?t.push(Qe):t.push(LA);t.push(i)}),[r,t,B]},wr=function(e,A,t,r){var B=r[t];if(Array.isArray(e)?e.indexOf(B)!==-1:e===B)for(var n=t;n<=r.length;){n++;var s=r[n];if(s===A)return!0;if(s!==FA)break}if(B===FA)for(var n=t;n>0;){n--;var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===A)return!0;if(s!==FA)break}if(i!==FA)break}return!1},lt=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===FA)t--;else return r}return 0},Vn=function(e,A,t,r,B){if(t[r]===0)return I;var n=r-1;if(Array.isArray(B)&&B[n]===!0)return I;var s=n-1,i=n+1,a=A[n],o=s>=0?A[s]:0,Q=A[i];if(a===nB&&Q===sB)return I;if(Vr.indexOf(a)!==-1)return oB;if(Vr.indexOf(Q)!==-1||QB.indexOf(Q)!==-1)return I;if(lt(n,A)===aB)return Ee;if(Rr.get(e[n])===Dr||(a===he||a===de)&&Rr.get(e[i])===Dr||a===Qt||Q===Qt||a===gt||[FA,br,$A].indexOf(a)===-1&&Q===gt||[Fe,WA,bn,SA,OA].indexOf(Q)!==-1||lt(n,A)===ZA||wr(Qr,ZA,n,A)||wr([Fe,WA],Tr,n,A)||wr(wt,wt,n,A))return I;if(a===FA)return Ee;if(a===Qr||Q===Qr)return I;if(Q===xr||a===xr)return Ee;if([br,$A,Tr].indexOf(Q)!==-1||a===Dn||o===Mr&&Gn.indexOf(a)!==-1||a===OA&&Q===Mr||Q===ct||QA.indexOf(Q)!==-1&&a===j||QA.indexOf(a)!==-1&&Q===j||a===ee&&[Qe,he,de].indexOf(Q)!==-1||[Qe,he,de].indexOf(a)!==-1&&Q===Ae||QA.indexOf(a)!==-1&&Ct.indexOf(Q)!==-1||Ct.indexOf(a)!==-1&&QA.indexOf(Q)!==-1||[ee,Ae].indexOf(a)!==-1&&(Q===j||[ZA,$A].indexOf(Q)!==-1&&A[i+1]===j)||[ZA,$A].indexOf(a)!==-1&&Q===j||a===j&&[j,OA,SA].indexOf(Q)!==-1)return I;if([j,OA,SA,Fe,WA].indexOf(Q)!==-1)for(var g=n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if([ee,Ae].indexOf(Q)!==-1)for(var g=[Fe,WA].indexOf(a)!==-1?s:n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if(Gr===a&&[Gr,Ge,Sr,Or].indexOf(Q)!==-1||[Ge,Sr].indexOf(a)!==-1&&[Ge,Re].indexOf(Q)!==-1||[Re,Or].indexOf(a)!==-1&&Q===Re||ut.indexOf(a)!==-1&&[ct,Ae].indexOf(Q)!==-1||ut.indexOf(Q)!==-1&&a===ee||QA.indexOf(a)!==-1&&QA.indexOf(Q)!==-1||a===SA&&QA.indexOf(Q)!==-1||QA.concat(j).indexOf(a)!==-1&&Q===ZA&&On.indexOf(e[i])===-1||QA.concat(j).indexOf(Q)!==-1&&a===WA)return I;if(a===gr&&Q===gr){for(var f=t[n],c=1;f>0&&(f--,A[f]===gr);)c++;if(c%2!==0)return I}return a===he&&Q===de?I:Ee},Nn=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=Rn(e,A.lineBreak),r=t[0],B=t[1],n=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(B=B.map(function(i){return[j,LA,iB].indexOf(i)!==-1?Qe:i}));var s=A.wordBreak==="keep-all"?n.map(function(i,a){return i&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,B,s]},Xn=function(){function e(A,t,r,B){this.codePoints=A,this.required=t===oB,this.start=r,this.end=B}return e.prototype.slice=function(){return S.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),_n=function(e,A){var t=$e(e),r=Nn(t,A),B=r[0],n=r[1],s=r[2],i=t.length,a=0,o=0;return{next:function(){if(o>=i)return{done:!0,value:null};for(var Q=I;o<i&&(Q=Vn(t,n,B,++o,s))===I;);if(Q!==I||o===i){var g=new Xn(t,Q,a,o);return a=o,{value:g,done:!1}}return{done:!0,value:null}}}},Jn=1,Pn=2,ce=4,ft=8,Xe=10,Ut=47,ne=92,kn=9,Yn=32,He=34,qA=61,Wn=35,Zn=36,qn=37,pe=39,Ie=40,jA=41,jn=95,Z=45,zn=33,$n=60,As=62,es=64,rs=91,ts=93,Bs=61,ns=123,ve=63,ss=125,Ft=124,as=126,is=128,ht=65533,cr=42,DA=43,os=44,Qs=58,gs=59,ge=46,ws=0,cs=8,Cs=11,us=14,ls=31,fs=127,nA=-1,gB=48,wB=97,cB=101,Us=102,Fs=117,hs=122,CB=65,uB=69,lB=70,ds=85,Es=90,J=function(e){return e>=gB&&e<=57},Hs=function(e){return e>=55296&&e<=57343},MA=function(e){return J(e)||e>=CB&&e<=lB||e>=wB&&e<=Us},ps=function(e){return e>=wB&&e<=hs},Is=function(e){return e>=CB&&e<=Es},vs=function(e){return ps(e)||Is(e)},ys=function(e){return e>=is},ye=function(e){return e===Xe||e===kn||e===Yn},_e=function(e){return vs(e)||ys(e)||e===jn},dt=function(e){return _e(e)||J(e)||e===Z},Ks=function(e){return e>=ws&&e<=cs||e===Cs||e>=us&&e<=ls||e===fs},UA=function(e,A){return e!==ne?!1:A!==Xe},Ke=function(e,A,t){return e===Z?_e(A)||UA(A,t):_e(e)?!0:!!(e===ne&&UA(e,A))},Cr=function(e,A,t){return e===DA||e===Z?J(A)?!0:A===ge&&J(t):J(e===ge?A:e)},ms=function(e){var A=0,t=1;(e[A]===DA||e[A]===Z)&&(e[A]===Z&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var B=r.length?parseInt(S.apply(void 0,r),10):0;e[A]===ge&&A++;for(var n=[];J(e[A]);)n.push(e[A++]);var s=n.length,i=s?parseInt(S.apply(void 0,n),10):0;(e[A]===uB||e[A]===cB)&&A++;var a=1;(e[A]===DA||e[A]===Z)&&(e[A]===Z&&(a=-1),A++);for(var o=[];J(e[A]);)o.push(e[A++]);var Q=o.length?parseInt(S.apply(void 0,o),10):0;return t*(B+i*Math.pow(10,-s))*Math.pow(10,a*Q)},Ls={type:2},Ds={type:3},bs={type:4},xs={type:13},Ts={type:8},Ss={type:21},Os={type:9},Ms={type:10},Gs={type:11},Rs={type:12},Vs={type:14},me={type:23},Ns={type:1},Xs={type:25},_s={type:24},Js={type:26},Ps={type:27},ks={type:28},Ys={type:29},Ws={type:31},Nr={type:32},fB=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat($e(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==Nr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case He:return this.consumeStringToken(He);case Wn:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),B=this.peekCodePoint(2);if(dt(t)||UA(r,B)){var n=Ke(t,r,B)?Pn:Jn,s=this.consumeName();return{type:5,value:s,flags:n}}break;case Zn:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),xs;break;case pe:return this.consumeStringToken(pe);case Ie:return Ls;case jA:return Ds;case cr:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Vs;break;case DA:if(Cr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case os:return bs;case Z:var i=A,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(Cr(i,a,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ke(i,a,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===Z&&o===As)return this.consumeCodePoint(),this.consumeCodePoint(),_s;break;case ge:if(Cr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ut:if(this.peekCodePoint(0)===cr)for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(Q===cr&&(Q=this.consumeCodePoint(),Q===Ut))return this.consumeToken();if(Q===nA)return this.consumeToken()}break;case Qs:return Js;case gs:return Ps;case $n:if(this.peekCodePoint(0)===zn&&this.peekCodePoint(1)===Z&&this.peekCodePoint(2)===Z)return this.consumeCodePoint(),this.consumeCodePoint(),Xs;break;case es:var g=this.peekCodePoint(0),w=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Ke(g,w,f)){var s=this.consumeName();return{type:7,value:s}}break;case rs:return ks;case ne:if(UA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ts:return Ys;case Bs:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Ts;break;case ns:return Gs;case ss:return Rs;case Fs:case ds:var c=this.peekCodePoint(0),C=this.peekCodePoint(1);return c===DA&&(MA(C)||C===ve)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ft:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Os;if(this.peekCodePoint(0)===Ft)return this.consumeCodePoint(),Ss;break;case as:if(this.peekCodePoint(0)===qA)return this.consumeCodePoint(),Ms;break;case nA:return Nr}return ye(A)?(this.consumeWhiteSpace(),Ws):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):_e(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:S(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();MA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===ve&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var B=parseInt(S.apply(void 0,A.map(function(a){return a===ve?gB:a})),16),n=parseInt(S.apply(void 0,A.map(function(a){return a===ve?lB:a})),16);return{type:30,start:B,end:n}}var s=parseInt(S.apply(void 0,A),16);if(this.peekCodePoint(0)===Z&&MA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];MA(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();var n=parseInt(S.apply(void 0,i),16);return{type:30,start:s,end:n}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ie?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===nA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===pe||t===He){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===nA||this.peekCodePoint(0)===jA)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),me)}for(;;){var B=this.consumeCodePoint();if(B===nA||B===jA)return{type:22,value:S.apply(void 0,A)};if(ye(B))return this.consumeWhiteSpace(),this.peekCodePoint(0)===nA||this.peekCodePoint(0)===jA?(this.consumeCodePoint(),{type:22,value:S.apply(void 0,A)}):(this.consumeBadUrlRemnants(),me);if(B===He||B===pe||B===Ie||Ks(B))return this.consumeBadUrlRemnants(),me;if(B===ne)if(UA(B,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),me;else A.push(B)}},e.prototype.consumeWhiteSpace=function(){for(;ye(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===jA||A===nA)return;UA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var B=Math.min(t,A);r+=S.apply(void 0,this._value.splice(0,B)),A-=B}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var B=this._value[r];if(B===nA||B===void 0||B===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(B===Xe)return this._value.splice(0,r),Ns;if(B===ne){var n=this._value[r+1];n!==nA&&n!==void 0&&(n===Xe?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):UA(B,n)&&(t+=this.consumeStringSlice(r),t+=S(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=ce,r=this.peekCodePoint(0);for((r===DA||r===Z)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(r===ge&&J(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ft;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((r===uB||r===cB)&&((B===DA||B===Z)&&J(n)||J(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=ft;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[ms(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],B=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Ke(B,n,s)){var i=this.consumeName();return{type:15,number:t,flags:r,unit:i}}return B===qn?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(MA(A)){for(var t=S(A);MA(this.peekCodePoint(0))&&t.length<6;)t+=S(this.consumeCodePoint());ye(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||Hs(r)||r>1114111?ht:r}return A===nA?ht:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(dt(t))A+=S(t);else if(UA(t,this.peekCodePoint(0)))A+=S(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),UB=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new fB;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||qs(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Nr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Ce=function(e){return e.type===15},kA=function(e){return e.type===17},D=function(e){return e.type===20},Zs=function(e){return e.type===0},Xr=function(e,A){return D(e)&&e.value===A},FB=function(e){return e.type!==31},PA=function(e){return e.type!==31&&e.type!==4},sA=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},qs=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},pA=function(e){return e.type===17||e.type===15},M=function(e){return e.type===16||pA(e)},hB=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},X={type:17,number:0,flags:ce},$r={type:16,number:50,flags:ce},hA={type:16,number:100,flags:ce},re=function(e,A,t){var r=e[0],B=e[1];return[b(r,A),b(typeof B<"u"?B:r,t)]},b=function(e,A){if(e.type===16)return e.number/100*A;if(Ce(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},dB="deg",EB="grad",HB="rad",pB="turn",Ar={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case dB:return Math.PI*A.number/180;case EB:return Math.PI/200*A.number;case HB:return A.number;case pB:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},IB=function(e){return e.type===15&&(e.unit===dB||e.unit===EB||e.unit===HB||e.unit===pB)},vB=function(e){var A=e.filter(D).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[X,X];case"to top":case"bottom":return AA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[X,hA];case"to right":case"left":return AA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hA,hA];case"to bottom":case"top":return AA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hA,X];case"to left":case"right":return AA(270)}return 0},AA=function(e){return Math.PI*e/180},EA={name:"color",parse:function(e,A){if(A.type===18){var t=js[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);return dA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3),s=A.value.substring(3,4);return dA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6);return dA(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),s=A.value.substring(6,8);return dA(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(A.type===20){var i=wA[A.value.toUpperCase()];if(typeof i<"u")return i}return wA.TRANSPARENT}},HA=function(e){return(255&e)===0},R=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,B=255&e>>24;return A<255?"rgba("+B+","+r+","+t+","+A/255+")":"rgb("+B+","+r+","+t+")"},dA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Et=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Ht=function(e,A){var t=A.filter(PA);if(t.length===3){var r=t.map(Et),B=r[0],n=r[1],s=r[2];return dA(B,n,s,1)}if(t.length===4){var i=t.map(Et),B=i[0],n=i[1],s=i[2],a=i[3];return dA(B,n,s,a)}return 0};function ur(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var pt=function(e,A){var t=A.filter(PA),r=t[0],B=t[1],n=t[2],s=t[3],i=(r.type===17?AA(r.number):Ar.parse(e,r))/(Math.PI*2),a=M(B)?B.number/100:0,o=M(n)?n.number/100:0,Q=typeof s<"u"&&M(s)?b(s,1):1;if(a===0)return dA(o*255,o*255,o*255,1);var g=o<=.5?o*(a+1):o+a-o*a,w=o*2-g,f=ur(w,g,i+1/3),c=ur(w,g,i),C=ur(w,g,i-1/3);return dA(f*255,c*255,C*255,Q)},js={hsl:pt,hsla:pt,rgb:Ht,rgba:Ht},se=function(e,A){return EA.parse(e,UB.create(A).parseComponentValue())},wA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},zs={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(D(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$s={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},er=function(e,A){var t=EA.parse(e,A[0]),r=A[1];return r&&M(r)?{color:t,stop:r}:{color:t,stop:null}},It=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=X),r.stop===null&&(r.stop=hA);for(var B=[],n=0,s=0;s<e.length;s++){var i=e[s].stop;if(i!==null){var a=b(i,A);a>n?B.push(a):B.push(n),n=a}else B.push(null)}for(var o=null,s=0;s<B.length;s++){var Q=B[s];if(Q===null)o===null&&(o=s);else if(o!==null){for(var g=s-o,w=B[o-1],f=(Q-w)/(g+1),c=1;c<=g;c++)B[o+c-1]=f*c;o=null}}return e.map(function(C,H){var h=C.color;return{color:h,stop:Math.max(Math.min(1,B[H]/A),0)}})},Aa=function(e,A,t){var r=A/2,B=t/2,n=b(e[0],A)-r,s=B-b(e[1],t);return(Math.atan2(s,n)+Math.PI*2)%(Math.PI*2)},ea=function(e,A,t){var r=typeof e=="number"?e:Aa(e,A,t),B=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),n=A/2,s=t/2,i=B/2,a=Math.sin(r-Math.PI/2)*i,o=Math.cos(r-Math.PI/2)*i;return[B,n-o,n+o,s-a,s+a]},rA=function(e,A){return Math.sqrt(e*e+A*A)},vt=function(e,A,t,r,B){var n=[[0,0],[0,A],[e,0],[e,A]];return n.reduce(function(s,i){var a=i[0],o=i[1],Q=rA(t-a,r-o);return(B?Q<s.optimumDistance:Q>s.optimumDistance)?{optimumCorner:i,optimumDistance:Q}:s},{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},ra=function(e,A,t,r,B){var n=0,s=0;switch(e.size){case 0:e.shape===0?n=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(e.shape===0)n=s=Math.min(rA(A,t),rA(A,t-B),rA(A-r,t),rA(A-r,t-B));else if(e.shape===1){var i=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(A),Math.abs(A-r)),a=vt(r,B,A,t,!0),o=a[0],Q=a[1];n=rA(o-A,(Q-t)/i),s=i*n}break;case 1:e.shape===0?n=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(e.shape===0)n=s=Math.max(rA(A,t),rA(A,t-B),rA(A-r,t),rA(A-r,t-B));else if(e.shape===1){var i=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(A),Math.abs(A-r)),g=vt(r,B,A,t,!1),o=g[0],Q=g[1];n=rA(o-A,(Q-t)/i),s=i*n}break}return Array.isArray(e.size)&&(n=b(e.size[0],r),s=e.size.length===2?b(e.size[1],B):n),[n,s]},ta=function(e,A){var t=AA(180),r=[];return sA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&s.value==="to"){t=vB(B);return}else if(IB(s)){t=Ar.parse(e,s);return}}var i=er(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Le=function(e,A){var t=AA(180),r=[];return sA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=vB(B);return}else if(IB(s)){t=(Ar.parse(e,s)+AA(270))%AA(360);return}}var i=er(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Ba=function(e,A){var t=AA(180),r=[],B=1,n=0,s=3,i=[];return sA(A).forEach(function(a,o){var Q=a[0];if(o===0){if(D(Q)&&Q.value==="linear"){B=1;return}else if(D(Q)&&Q.value==="radial"){B=2;return}}if(Q.type===18){if(Q.name==="from"){var g=EA.parse(e,Q.values[0]);r.push({stop:X,color:g})}else if(Q.name==="to"){var g=EA.parse(e,Q.values[0]);r.push({stop:hA,color:g})}else if(Q.name==="color-stop"){var w=Q.values.filter(PA);if(w.length===2){var g=EA.parse(e,w[1]),f=w[0];kA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:g})}}}}),B===1?{angle:(t+AA(180))%AA(360),stops:r,type:B}:{size:s,shape:n,stops:r,position:i,type:B}},yB="closest-side",KB="farthest-side",mB="closest-corner",LB="farthest-corner",DB="circle",bB="ellipse",xB="cover",TB="contain",na=function(e,A){var t=0,r=3,B=[],n=[];return sA(A).forEach(function(s,i){var a=!0;if(i===0){var o=!1;a=s.reduce(function(g,w){if(o)if(D(w))switch(w.value){case"center":return n.push($r),g;case"top":case"left":return n.push(X),g;case"right":case"bottom":return n.push(hA),g}else(M(w)||pA(w))&&n.push(w);else if(D(w))switch(w.value){case DB:return t=0,!1;case bB:return t=1,!1;case"at":return o=!0,!1;case yB:return r=0,!1;case xB:case KB:return r=1,!1;case TB:case mB:return r=2,!1;case LB:return r=3,!1}else if(pA(w)||M(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return g},a)}if(a){var Q=er(e,s);B.push(Q)}}),{size:r,shape:t,stops:B,position:n,type:2}},De=function(e,A){var t=0,r=3,B=[],n=[];return sA(A).forEach(function(s,i){var a=!0;if(i===0?a=s.reduce(function(Q,g){if(D(g))switch(g.value){case"center":return n.push($r),!1;case"top":case"left":return n.push(X),!1;case"right":case"bottom":return n.push(hA),!1}else if(M(g)||pA(g))return n.push(g),!1;return Q},a):i===1&&(a=s.reduce(function(Q,g){if(D(g))switch(g.value){case DB:return t=0,!1;case bB:return t=1,!1;case TB:case yB:return r=0,!1;case KB:return r=1,!1;case mB:return r=2,!1;case xB:case LB:return r=3,!1}else if(pA(g)||M(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return Q},a)),a){var o=er(e,s);B.push(o)}}),{size:r,shape:t,stops:B,position:n,type:2}},sa=function(e){return e.type===1},aa=function(e){return e.type===2},At={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=SB[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function ia(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!SB[e.name])}var SB={"linear-gradient":ta,"-moz-linear-gradient":Le,"-ms-linear-gradient":Le,"-o-linear-gradient":Le,"-webkit-linear-gradient":Le,"radial-gradient":na,"-moz-radial-gradient":De,"-ms-radial-gradient":De,"-o-radial-gradient":De,"-webkit-radial-gradient":De,"-webkit-gradient":Ba},oa={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return PA(r)&&ia(r)}).map(function(r){return At.parse(e,r)})}},Qa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(D(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ga={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return sA(A).map(function(t){return t.filter(M)}).map(hB)}},wa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return sA(A).map(function(t){return t.filter(D).map(function(r){return r.value}).join(" ")}).map(ca)}},ca=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},JA;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(JA||(JA={}));var Ca={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return sA(A).map(function(t){return t.filter(ua)})}},ua=function(e){return D(e)||M(e)},rr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},la=rr("top"),fa=rr("right"),Ua=rr("bottom"),Fa=rr("left"),tr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return hB(t.filter(M))}}},ha=tr("top-left"),da=tr("top-right"),Ea=tr("bottom-right"),Ha=tr("bottom-left"),Br=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},pa=Br("top"),Ia=Br("right"),va=Br("bottom"),ya=Br("left"),nr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ce(t)?t.number:0}}},Ka=nr("top"),ma=nr("right"),La=nr("bottom"),Da=nr("left"),ba={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Ta={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(D).reduce(function(t,r){return t|Sa(r.value)},0)}},Sa=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Oa={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ma={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Je;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Je||(Je={}));var Ga={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return Je.STRICT;case"normal":default:return Je.NORMAL}}},Ra={name:"line-height",initialValue:"normal",prefix:!1,type:4},yt=function(e,A){return D(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:M(e)?b(e,A):A},Va={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:At.parse(e,A)}},Na={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},_r={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},sr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Xa=sr("top"),_a=sr("right"),Ja=sr("bottom"),Pa=sr("left"),ka={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(D).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ya={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},ar=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Wa=ar("top"),Za=ar("right"),qa=ar("bottom"),ja=ar("left"),za={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},$a={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ai={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Xr(A[0],"none")?[]:sA(A).map(function(t){for(var r={color:wA.TRANSPARENT,offsetX:X,offsetY:X,blur:X},B=0,n=0;n<t.length;n++){var s=t[n];pA(s)?(B===0?r.offsetX=s:B===1?r.offsetY=s:r.blur=s,B++):r.color=EA.parse(e,s)}return r})}},ei={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ri={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=ni[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},ti=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},Bi=function(e){var A=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=A[0],r=A[1];A[2],A[3];var B=A[4],n=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],i=A[13];return A[14],A[15],A.length===16?[t,r,B,n,s,i]:null},ni={matrix:ti,matrix3d:Bi},Kt={type:16,number:50,flags:ce},si=[Kt,Kt],ai={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(M);return t.length!==2?si:[t[0],t[1]]}},ii={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ae;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(ae||(ae={}));var oi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return ae.BREAK_ALL;case"keep-all":return ae.KEEP_ALL;case"normal":default:return ae.NORMAL}}},Qi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(kA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},OB={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},gi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return kA(A)?A.number:1}},wi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ci={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(D).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},Ci={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(B){switch(B.type){case 20:case 0:t.push(B.value);break;case 17:t.push(B.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(B){return B.indexOf(" ")===-1?B:"'"+B+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},li={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(kA(A))return A.number;if(D(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},fi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(D).map(function(t){return t.value})}},Ui={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},G=function(e,A){return(e&A)!==0},Fi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},hi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],B=A.filter(FB),n=0;n<B.length;n++){var s=B[n],i=B[n+1];if(s.type===20){var a=i&&kA(i)?i.number:1;r.push({counter:s.value,increment:a})}}return r}},di={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(FB),B=0;B<r.length;B++){var n=r[B],s=r[B+1];if(D(n)&&n.value!=="none"){var i=s&&kA(s)?s.number:0;t.push({counter:n.value,reset:i})}}return t}},Ei={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ce).map(function(t){return OB.parse(e,t)})}},Hi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],B=A.filter(Zs);if(B.length%2!==0)return null;for(var n=0;n<B.length;n+=2){var s=B[n].value,i=B[n+1].value;r.push({open:s,close:i})}return r}},mt=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},pi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Xr(A[0],"none")?[]:sA(A).map(function(t){for(var r={color:255,offsetX:X,offsetY:X,blur:X,spread:X,inset:!1},B=0,n=0;n<t.length;n++){var s=t[n];Xr(s,"inset")?r.inset=!0:pA(s)?(B===0?r.offsetX=s:B===1?r.offsetY=s:B===2?r.blur=s:r.spread=s,B++):r.color=EA.parse(e,s)}return r})}},Ii={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(D).forEach(function(B){switch(B.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(B){r.indexOf(B)===-1&&r.push(B)}),r}},vi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ce(A)?A.number:0}},Ki=function(){function e(A,t){var r,B;this.animationDuration=U(A,Ei,t.animationDuration),this.backgroundClip=U(A,zs,t.backgroundClip),this.backgroundColor=U(A,$s,t.backgroundColor),this.backgroundImage=U(A,oa,t.backgroundImage),this.backgroundOrigin=U(A,Qa,t.backgroundOrigin),this.backgroundPosition=U(A,ga,t.backgroundPosition),this.backgroundRepeat=U(A,wa,t.backgroundRepeat),this.backgroundSize=U(A,Ca,t.backgroundSize),this.borderTopColor=U(A,la,t.borderTopColor),this.borderRightColor=U(A,fa,t.borderRightColor),this.borderBottomColor=U(A,Ua,t.borderBottomColor),this.borderLeftColor=U(A,Fa,t.borderLeftColor),this.borderTopLeftRadius=U(A,ha,t.borderTopLeftRadius),this.borderTopRightRadius=U(A,da,t.borderTopRightRadius),this.borderBottomRightRadius=U(A,Ea,t.borderBottomRightRadius),this.borderBottomLeftRadius=U(A,Ha,t.borderBottomLeftRadius),this.borderTopStyle=U(A,pa,t.borderTopStyle),this.borderRightStyle=U(A,Ia,t.borderRightStyle),this.borderBottomStyle=U(A,va,t.borderBottomStyle),this.borderLeftStyle=U(A,ya,t.borderLeftStyle),this.borderTopWidth=U(A,Ka,t.borderTopWidth),this.borderRightWidth=U(A,ma,t.borderRightWidth),this.borderBottomWidth=U(A,La,t.borderBottomWidth),this.borderLeftWidth=U(A,Da,t.borderLeftWidth),this.boxShadow=U(A,pi,t.boxShadow),this.color=U(A,ba,t.color),this.direction=U(A,xa,t.direction),this.display=U(A,Ta,t.display),this.float=U(A,Oa,t.cssFloat),this.fontFamily=U(A,Ci,t.fontFamily),this.fontSize=U(A,ui,t.fontSize),this.fontStyle=U(A,Ui,t.fontStyle),this.fontVariant=U(A,fi,t.fontVariant),this.fontWeight=U(A,li,t.fontWeight),this.letterSpacing=U(A,Ma,t.letterSpacing),this.lineBreak=U(A,Ga,t.lineBreak),this.lineHeight=U(A,Ra,t.lineHeight),this.listStyleImage=U(A,Va,t.listStyleImage),this.listStylePosition=U(A,Na,t.listStylePosition),this.listStyleType=U(A,_r,t.listStyleType),this.marginTop=U(A,Xa,t.marginTop),this.marginRight=U(A,_a,t.marginRight),this.marginBottom=U(A,Ja,t.marginBottom),this.marginLeft=U(A,Pa,t.marginLeft),this.opacity=U(A,gi,t.opacity);var n=U(A,ka,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=U(A,Ya,t.overflowWrap),this.paddingTop=U(A,Wa,t.paddingTop),this.paddingRight=U(A,Za,t.paddingRight),this.paddingBottom=U(A,qa,t.paddingBottom),this.paddingLeft=U(A,ja,t.paddingLeft),this.paintOrder=U(A,Ii,t.paintOrder),this.position=U(A,$a,t.position),this.textAlign=U(A,za,t.textAlign),this.textDecorationColor=U(A,wi,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=U(A,ci,(B=t.textDecorationLine)!==null&&B!==void 0?B:t.textDecoration),this.textShadow=U(A,Ai,t.textShadow),this.textTransform=U(A,ei,t.textTransform),this.transform=U(A,ri,t.transform),this.transformOrigin=U(A,ai,t.transformOrigin),this.visibility=U(A,ii,t.visibility),this.webkitTextStrokeColor=U(A,vi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(A,yi,t.webkitTextStrokeWidth),this.wordBreak=U(A,oi,t.wordBreak),this.zIndex=U(A,Qi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return HA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return G(this.display,4)||G(this.display,33554432)||G(this.display,268435456)||G(this.display,536870912)||G(this.display,67108864)||G(this.display,134217728)},e}(),mi=function(){function e(A,t){this.content=U(A,Fi,t.content),this.quotes=U(A,Hi,t.quotes)}return e}(),Lt=function(){function e(A,t){this.counterIncrement=U(A,hi,t.counterIncrement),this.counterReset=U(A,di,t.counterReset)}return e}(),U=function(e,A,t){var r=new fB,B=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(B);var n=new UB(r.read());switch(A.type){case 2:var s=n.parseComponentValue();return A.parse(e,D(s)?s.value:A.initialValue);case 0:return A.parse(e,n.parseComponentValue());case 1:return A.parse(e,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return Ar.parse(e,n.parseComponentValue());case"color":return EA.parse(e,n.parseComponentValue());case"image":return At.parse(e,n.parseComponentValue());case"length":var i=n.parseComponentValue();return pA(i)?i:X;case"length-percentage":var a=n.parseComponentValue();return M(a)?a:X;case"time":return OB.parse(e,n.parseComponentValue())}break}},Li="data-html2canvas-debug",Di=function(e){var A=e.getAttribute(Li);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Jr=function(e,A){var t=Di(e);return t===1||A===t},aA=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Jr(t,3))debugger;this.styles=new Ki(A,window.getComputedStyle(t,null)),Yr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=ze(this.context,t),Jr(t,4)&&(this.flags|=16)}return e}(),bi="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var be=0;be<Dt.length;be++)te[Dt.charCodeAt(be)]=be;var xi=function(e){var A=e.length*.75,t=e.length,r,B=0,n,s,i,a;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),Q=Array.isArray(o)?o:new Uint8Array(o);for(r=0;r<t;r+=4)n=te[e.charCodeAt(r)],s=te[e.charCodeAt(r+1)],i=te[e.charCodeAt(r+2)],a=te[e.charCodeAt(r+3)],Q[B++]=n<<2|s>>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},Ti=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},Si=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},xA=5,et=11,lr=2,Oi=et-xA,MB=65536>>xA,Mi=1<<xA,fr=Mi-1,Gi=1024>>xA,Ri=MB+Gi,Vi=Ri,Ni=32,Xi=Vi+Ni,_i=65536>>et,Ji=1<<Oi,Pi=Ji-1,bt=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},ki=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},Yi=function(e,A){var t=xi(e),r=Array.isArray(t)?Si(t):new Uint32Array(t),B=Array.isArray(t)?Ti(t):new Uint16Array(t),n=24,s=bt(B,n/2,r[4]/2),i=r[5]===2?bt(B,(n+r[4])/2):ki(r,Math.ceil((n+r[4])/4));return new Wi(r[0],r[1],r[2],r[3],s,i)},Wi=function(){function e(A,t,r,B,n,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=B,this.index=n,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>xA],t=(t<<lr)+(A&fr),this.data[t];if(A<=65535)return t=this.index[MB+(A-55296>>xA)],t=(t<<lr)+(A&fr),this.data[t];if(A<this.highStart)return t=Xi-_i+(A>>et),t=this.index[t],t+=A>>xA&Pi,t=this.index[t],t=(t<<lr)+(A&fr),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var xe=0;xe<xt.length;xe++)Zi[xt.charCodeAt(xe)]=xe;var qi=1,Ur=2,Fr=3,Tt=4,St=5,ji=7,Ot=8,hr=9,dr=10,Mt=11,Gt=12,Rt=13,Vt=14,Er=15,zi=function(e){for(var A=[],t=0,r=e.length;t<r;){var B=e.charCodeAt(t++);if(B>=55296&&B<=56319&&t<r){var n=e.charCodeAt(t++);(n&64512)===56320?A.push(((B&1023)<<10)+(n&1023)+65536):(A.push(B),t--)}else A.push(B)}return A},$i=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],B=-1,n="";++B<t;){var s=e[B];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Ao=Yi(bi),z="×",Hr="÷",eo=function(e){return Ao.get(e)},ro=function(e,A,t){var r=t-2,B=A[r],n=A[t-1],s=A[t];if(n===Ur&&s===Fr)return z;if(n===Ur||n===Fr||n===Tt||s===Ur||s===Fr||s===Tt)return Hr;if(n===Ot&&[Ot,hr,Mt,Gt].indexOf(s)!==-1||(n===Mt||n===hr)&&(s===hr||s===dr)||(n===Gt||n===dr)&&s===dr||s===Rt||s===St||s===ji||n===qi)return z;if(n===Rt&&s===Vt){for(;B===St;)B=A[--r];if(B===Vt)return z}if(n===Er&&s===Er){for(var i=0;B===Er;)i++,B=A[--r];if(i%2===0)return z}return Hr},to=function(e){var A=zi(e),t=A.length,r=0,B=0,n=A.map(eo);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=z;r<t&&(s=ro(A,n,++r))===z;);if(s!==z||r===t){var i=$i.apply(null,A.slice(B,r));return B=r,{value:i,done:!1}}return{done:!0,value:null}}}},Bo=function(e){for(var A=to(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},no=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var B=t.getBoundingClientRect(),n=Math.round(B.height);if(e.body.removeChild(r),n===A)return!0}}return!1},so=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,B=$e(r.data).map(function(a){return S(a)}),n=0,s={},i=B.every(function(a,o){t.setStart(r,n),t.setEnd(r,n+a.length);var Q=t.getBoundingClientRect();n+=a.length;var g=Q.x>s.x||Q.y>s.y;return s=Q,o===0?!0:g});return e.body.removeChild(A),i},ao=function(){return typeof new Image().crossOrigin<"u"},io=function(){return typeof new XMLHttpRequest().responseType=="string"},oo=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},Nt=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Qo=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=A.toDataURL();B.src=n;var s=Pr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),Xt(s).then(function(i){r.drawImage(i,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=e.createElement("div");return o.style.backgroundImage="url("+n+")",o.style.height=t+"px",Nt(a)?Xt(Pr(t,t,0,0,o)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),Nt(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Pr=function(e,A,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",r.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(i),i.appendChild(B),s},Xt=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},N={get SUPPORT_RANGE_BOUNDS(){var e=no(document);return Object.defineProperty(N,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=N.SUPPORT_RANGE_BOUNDS&&so(document);return Object.defineProperty(N,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=oo(document);return Object.defineProperty(N,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?Qo(document):Promise.resolve(!1);return Object.defineProperty(N,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=ao();return Object.defineProperty(N,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=io();return Object.defineProperty(N,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(N,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(N,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ie=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),go=function(e,A,t,r){var B=Co(A,t),n=[],s=0;return B.forEach(function(i){if(t.textDecorationLine.length||i.trim().length>0)if(N.SUPPORT_RANGE_BOUNDS){var a=_t(r,s,i.length).getClientRects();if(a.length>1){var o=rt(i),Q=0;o.forEach(function(w){n.push(new ie(w,cA.fromDOMRectList(e,_t(r,Q+s,w.length).getClientRects()))),Q+=w.length})}else n.push(new ie(i,cA.fromDOMRectList(e,a)))}else{var g=r.splitText(i.length);n.push(new ie(i,wo(e,r))),r=g}else N.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));s+=i.length}),n},wo=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(r,A);var n=ze(e,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return cA.EMPTY},_t=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(e,A),B.setEnd(e,A+t),B},rt=function(e){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return Bo(e)},co=function(e,A){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return lo(e,A)},Co=function(e,A){return A.letterSpacing!==0?rt(e):co(e,A)},uo=[32,160,4961,65792,65793,4153,4241],lo=function(e,A){for(var t=_n(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],B,n=function(){if(B.value){var s=B.value.slice(),i=$e(s),a="";i.forEach(function(o){uo.indexOf(o)===-1?a+=S(o):(a.length&&r.push(a),r.push(S(o)),a="")}),a.length&&r.push(a)}};!(B=t.next()).done;)n();return r},fo=function(){function e(A,t,r){this.text=Uo(t.data,r.textTransform),this.textBounds=go(A,this.text,r,t)}return e}(),Uo=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Fo,ho);case 2:return e.toUpperCase();default:return e}},Fo=/(^|\s|:|-|\(|\))([a-z])/g,ho=function(e,A,t){return e.length>0?A+t.toUpperCase():e},GB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.src=r.currentSrc||r.src,B.intrinsicWidth=r.naturalWidth,B.intrinsicHeight=r.naturalHeight,B.context.cache.addImage(B.src),B}return A}(aA),RB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r,B.intrinsicWidth=r.width,B.intrinsicHeight=r.height,B}return A}(aA),VB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this,n=new XMLSerializer,s=ze(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),B.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(r)),B.intrinsicWidth=r.width.baseVal.value,B.intrinsicHeight=r.height.baseVal.value,B.context.cache.addImage(B.svg),B}return A}(aA),NB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return A}(aA),kr=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.start=r.start,B.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,B}return A}(aA),Eo=[{type:15,flags:0,unit:"px",number:3}],Ho=[{type:16,flags:0,number:50}],po=function(e){return e.width>e.height?new cA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new cA(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Io=function(e){var A=e.type===vo?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},Pe="checkbox",ke="radio",vo="password",Jt=707406591,tt=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;switch(B.type=r.type.toLowerCase(),B.checked=r.checked,B.value=Io(r),(B.type===Pe||B.type===ke)&&(B.styles.backgroundColor=3739148031,B.styles.borderTopColor=B.styles.borderRightColor=B.styles.borderBottomColor=B.styles.borderLeftColor=2779096575,B.styles.borderTopWidth=B.styles.borderRightWidth=B.styles.borderBottomWidth=B.styles.borderLeftWidth=1,B.styles.borderTopStyle=B.styles.borderRightStyle=B.styles.borderBottomStyle=B.styles.borderLeftStyle=1,B.styles.backgroundClip=[0],B.styles.backgroundOrigin=[0],B.bounds=po(B.bounds)),B.type){case Pe:B.styles.borderTopRightRadius=B.styles.borderTopLeftRadius=B.styles.borderBottomRightRadius=B.styles.borderBottomLeftRadius=Eo;break;case ke:B.styles.borderTopRightRadius=B.styles.borderTopLeftRadius=B.styles.borderBottomRightRadius=B.styles.borderBottomLeftRadius=Ho;break}return B}return A}(aA),XB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this,n=r.options[r.selectedIndex||0];return B.value=n&&n.text||"",B}return A}(aA),_B=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return A}(aA),JB=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;B.src=r.src,B.width=parseInt(r.width,10)||0,B.height=parseInt(r.height,10)||0,B.backgroundColor=B.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){B.tree=kB(t,r.contentWindow.document.documentElement);var n=r.contentWindow.document.documentElement?se(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):wA.TRANSPARENT,s=r.contentWindow.document.body?se(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):wA.TRANSPARENT;B.backgroundColor=HA(n)?HA(s)?B.styles.backgroundColor:s:n}}catch{}return B}return A}(aA),yo=["OL","UL","MENU"],Ve=function(e,A,t,r){for(var B=A.firstChild,n=void 0;B;B=n)if(n=B.nextSibling,YB(B)&&B.data.trim().length>0)t.textNodes.push(new fo(e,B,t.styles));else if(_A(B))if(jB(B)&&B.assignedNodes)B.assignedNodes().forEach(function(i){return Ve(e,i,t,r)});else{var s=PB(e,B);s.styles.isVisible()&&(Ko(B,s,r)?s.flags|=4:mo(s.styles)&&(s.flags|=2),yo.indexOf(B.tagName)!==-1&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?Ve(e,B.shadowRoot,s,r):!Ye(B)&&!WB(B)&&!We(B)&&Ve(e,B,s,r))}},PB=function(e,A){return Wr(A)?new GB(e,A):ZB(A)?new RB(e,A):WB(A)?new VB(e,A):Lo(A)?new NB(e,A):Do(A)?new kr(e,A):bo(A)?new tt(e,A):We(A)?new XB(e,A):Ye(A)?new _B(e,A):qB(A)?new JB(e,A):new aA(e,A)},kB=function(e,A){var t=PB(e,A);return t.flags|=4,Ve(e,A,t,t),t},Ko=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Bt(e)&&t.styles.isTransparent()},mo=function(e){return e.isPositioned()||e.isFloating()},YB=function(e){return e.nodeType===Node.TEXT_NODE},_A=function(e){return e.nodeType===Node.ELEMENT_NODE},Yr=function(e){return _A(e)&&typeof e.style<"u"&&!Ne(e)},Ne=function(e){return typeof e.className=="object"},Lo=function(e){return e.tagName==="LI"},Do=function(e){return e.tagName==="OL"},bo=function(e){return e.tagName==="INPUT"},xo=function(e){return e.tagName==="HTML"},WB=function(e){return e.tagName==="svg"},Bt=function(e){return e.tagName==="BODY"},ZB=function(e){return e.tagName==="CANVAS"},Pt=function(e){return e.tagName==="VIDEO"},Wr=function(e){return e.tagName==="IMG"},qB=function(e){return e.tagName==="IFRAME"},kt=function(e){return e.tagName==="STYLE"},To=function(e){return e.tagName==="SCRIPT"},Ye=function(e){return e.tagName==="TEXTAREA"},We=function(e){return e.tagName==="SELECT"},jB=function(e){return e.tagName==="SLOT"},Yt=function(e){return e.tagName.indexOf("-")>0},So=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,B=A.counterReset,n=!0;r!==null&&r.forEach(function(i){var a=t.counters[i.counter];a&&i.increment!==0&&(n=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=i.increment)});var s=[];return n&&B.forEach(function(i){var a=t.counters[i.counter];s.push(i.counter),a||(a=t.counters[i.counter]=[]),a.push(i.reset)}),s},e}(),Wt={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Zt={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Oo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},GA=function(e,A,t,r,B,n){return e<A||e>t?we(e,B,n.length>0):r.integers.reduce(function(s,i,a){for(;e>=i;)e-=i,s+=r.values[a];return s},"")+n},zB=function(e,A,t,r){var B="";do t||e--,B=r(e)+B,e/=A;while(e*A>=A);return B},T=function(e,A,t,r,B){var n=t-A+1;return(e<0?"-":"")+(zB(Math.abs(e),n,r,function(s){return S(Math.floor(s%n)+A)})+B)},mA=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return zB(Math.abs(e),r,!1,function(B){return A[Math.floor(B%r)]})+t},NA=1,lA=2,fA=4,Be=8,gA=function(e,A,t,r,B,n){if(e<-9999||e>9999)return we(e,4,B.length>0);var s=Math.abs(e),i=B;if(s===0)return A[0]+i;for(var a=0;s>0&&a<=4;a++){var o=s%10;o===0&&G(n,NA)&&i!==""?i=A[o]+i:o>1||o===1&&a===0||o===1&&a===1&&G(n,lA)||o===1&&a===1&&G(n,fA)&&e>100||o===1&&a>1&&G(n,Be)?i=A[o]+(a>0?t[a-1]:"")+i:o===1&&a>0&&(i=t[a-1]+i),s=Math.floor(s/10)}return(e<0?r:"")+i},qt="十百千萬",jt="拾佰仟萬",zt="マイナス",pr="마이너스",we=function(e,A,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var i=T(e,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return mA(e,"〇一二三四五六七八九",B);case 6:return GA(e,1,3999,Wt,3,r).toLowerCase();case 7:return GA(e,1,3999,Wt,3,r);case 8:return T(e,945,969,!1,r);case 9:return T(e,97,122,!1,r);case 10:return T(e,65,90,!1,r);case 11:return T(e,1632,1641,!0,r);case 12:case 49:return GA(e,1,9999,Zt,3,r);case 35:return GA(e,1,9999,Zt,3,r).toLowerCase();case 13:return T(e,2534,2543,!0,r);case 14:case 30:return T(e,6112,6121,!0,r);case 15:return mA(e,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return mA(e,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return gA(e,"零一二三四五六七八九",qt,"負",B,lA|fA|Be);case 47:return gA(e,"零壹貳參肆伍陸柒捌玖",jt,"負",B,NA|lA|fA|Be);case 42:return gA(e,"零一二三四五六七八九",qt,"负",B,lA|fA|Be);case 41:return gA(e,"零壹贰叁肆伍陆柒捌玖",jt,"负",B,NA|lA|fA|Be);case 26:return gA(e,"〇一二三四五六七八九","十百千万",zt,B,0);case 25:return gA(e,"零壱弐参四伍六七八九","拾百千万",zt,B,NA|lA|fA);case 31:return gA(e,"영일이삼사오육칠팔구","십백천만",pr,n,NA|lA|fA);case 33:return gA(e,"零一二三四五六七八九","十百千萬",pr,n,0);case 32:return gA(e,"零壹貳參四五六七八九","拾百千",pr,n,NA|lA|fA);case 18:return T(e,2406,2415,!0,r);case 20:return GA(e,1,19999,Mo,3,r);case 21:return T(e,2790,2799,!0,r);case 22:return T(e,2662,2671,!0,r);case 22:return GA(e,1,10999,Oo,3,r);case 23:return mA(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return mA(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return T(e,3302,3311,!0,r);case 28:return mA(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return mA(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return T(e,3792,3801,!0,r);case 37:return T(e,6160,6169,!0,r);case 38:return T(e,4160,4169,!0,r);case 39:return T(e,2918,2927,!0,r);case 40:return T(e,1776,1785,!0,r);case 43:return T(e,3046,3055,!0,r);case 44:return T(e,3174,3183,!0,r);case 45:return T(e,3664,3673,!0,r);case 46:return T(e,3872,3881,!0,r);case 3:default:return T(e,48,57,!0,r)}},$B="data-html2canvas-ignore",$t=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new So,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,B=Go(A,t);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,o=No(B).then(function(){return P(r,void 0,void 0,function(){var Q,g;return _(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(Po),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),Q=this.options.onclone,g=this.clonedReferenceElement,typeof g>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Vo(a)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof Q=="function"?[2,Promise.resolve().then(function(){return Q(a,g)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(_o(document.doctype)+"<html></html>"),Jo(this.referenceElement.ownerDocument,n,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),o},e.prototype.createElementClone=function(A){if(Jr(A,2))debugger;if(ZB(A))return this.createCanvasClone(A);if(Pt(A))return this.createVideoClone(A);if(kt(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Wr(t)&&(Wr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Yt(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return Ir(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(n,s){return s&&typeof s.cssText=="string"?n+s.cssText:n},""),B=A.cloneNode(!1);return B.textContent=r,B}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),n.name!=="SecurityError")throw n}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var B=A.cloneNode(!1);try{B.width=A.width,B.height=A.height;var n=A.getContext("2d"),s=B.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(i){var a=i.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return B}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return B},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var B=A.ownerDocument.createElement("canvas");return B.width=A.offsetWidth,B.height=A.offsetHeight,B},e.prototype.appendChildNode=function(A,t,r){(!_A(t)||!To(t)&&!t.hasAttribute($B)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!_A(t)||!kt(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var B=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(_A(n)&&jB(n)&&typeof n.assignedNodes=="function"){var s=n.assignedNodes();s.length&&s.forEach(function(i){return B.appendChildNode(t,i,r)})}else this.appendChildNode(t,n,r)},e.prototype.cloneNode=function(A,t){if(YB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&_A(A)&&(Yr(A)||Ne(A))){var B=this.createElementClone(A);B.style.transitionProperty="none";var n=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),i=r.getComputedStyle(A,":after");this.referenceElement===A&&Yr(B)&&(this.clonedReferenceElement=B),Bt(B)&&Wo(B);var a=this.counters.parse(new Lt(this.context,n)),o=this.resolvePseudoContent(A,B,s,oe.BEFORE);Yt(A)&&(t=!0),Pt(A)||this.cloneChildNodes(A,B,t),o&&B.insertBefore(o,B.firstChild);var Q=this.resolvePseudoContent(A,B,i,oe.AFTER);return Q&&B.appendChild(Q),this.counters.pop(a),(n&&(this.options.copyStyles||Ne(A))&&!qB(A)||t)&&Ir(n,B),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([B,A.scrollLeft,A.scrollTop]),(Ye(A)||We(A))&&(Ye(B)||We(B))&&(B.value=A.value),B}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,B){var n=this;if(r){var s=r.content,i=t.ownerDocument;if(!(!i||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Lt(this.context,r));var a=new mi(this.context,r),o=i.createElement("html2canvaspseudoelement");Ir(r,o),a.content.forEach(function(g){if(g.type===0)o.appendChild(i.createTextNode(g.value));else if(g.type===22){var w=i.createElement("img");w.src=g.value,w.style.opacity="1",o.appendChild(w)}else if(g.type===18){if(g.name==="attr"){var f=g.values.filter(D);f.length&&o.appendChild(i.createTextNode(A.getAttribute(f[0].value)||""))}else if(g.name==="counter"){var c=g.values.filter(PA),C=c[0],H=c[1];if(C&&D(C)){var h=n.counters.getCounterValue(C.value),F=H&&D(H)?_r.parse(n.context,H.value):3;o.appendChild(i.createTextNode(we(h,F,!1)))}}else if(g.name==="counters"){var K=g.values.filter(PA),C=K[0],p=K[1],H=K[2];if(C&&D(C)){var d=n.counters.getCounterValues(C.value),l=H&&D(H)?_r.parse(n.context,H.value):3,v=p&&p.type===0?p.value:"",y=d.map(function(k){return we(k,l,!1)}).join(v);o.appendChild(i.createTextNode(y))}}}else if(g.type===20)switch(g.value){case"open-quote":o.appendChild(i.createTextNode(mt(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":o.appendChild(i.createTextNode(mt(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(i.createTextNode(g.value))}}),o.className=Zr+" "+qr;var Q=B===oe.BEFORE?" "+Zr:" "+qr;return Ne(t)?t.className.baseValue+=Q:t.className+=Q,o}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),oe;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(oe||(oe={}));var Go=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute($B,"true"),e.body.appendChild(t),t},Ro=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},Vo=function(e){return Promise.all([].slice.call(e.images,0).map(Ro))},No=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){B.body.childNodes.length>0&&B.readyState==="complete"&&(clearInterval(n),A(e))},50)}})},Xo=["all","d","content"],Ir=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);Xo.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},_o=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Jo=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},Po=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},ko=":before",Yo=":after",Zr="___html2canvas___pseudoelement_before",qr="___html2canvas___pseudoelement_after",AB=`{
+    content: "" !important;
+    display: none !important;
+}`,Wo=function(e){Zo(e,"."+Zr+ko+AB+`
+         .`+qr+Yo+AB)},Zo=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},An=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),qo=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(yr(A)||AQ(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return P(this,void 0,void 0,function(){var t,r,B,n,s=this;return _(this,function(i){switch(i.label){case 0:return t=An.isSameOrigin(A),r=!vr(A)&&this._options.useCORS===!0&&N.SUPPORT_CORS_IMAGES&&!t,B=!vr(A)&&!t&&!yr(A)&&typeof this._options.proxy=="string"&&N.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!vr(A)&&!yr(A)&&!B&&!r?[2]:(n=A,B?[4,this.proxy(n)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,o){var Q=new Image;Q.onload=function(){return a(Q)},Q.onerror=o,(eQ(n)||r)&&(Q.crossOrigin="anonymous"),Q.src=n,Q.complete===!0&&setTimeout(function(){return a(Q)},500),s._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var B=A.substring(0,256);return new Promise(function(n,s){var i=N.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(i==="text")n(a.response);else{var g=new FileReader;g.addEventListener("load",function(){return n(g.result)},!1),g.addEventListener("error",function(w){return s(w)},!1),g.readAsDataURL(a.response)}else s("Failed to proxy resource "+B+" with status code "+a.status)},a.onerror=s;var o=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+o+"url="+encodeURIComponent(A)+"&responseType="+i),i!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var Q=t._options.imageTimeout;a.timeout=Q,a.ontimeout=function(){return s("Timed out ("+Q+"ms) proxying "+B)}}a.send()})},e}(),jo=/^data:image\/svg\+xml/i,zo=/^data:image\/.*;base64,/i,$o=/^data:image\/.*/i,AQ=function(e){return N.SUPPORT_SVG_DRAWING||!rQ(e)},vr=function(e){return $o.test(e)},eQ=function(e){return zo.test(e)},yr=function(e){return e.substr(0,4)==="blob"},rQ=function(e){return e.substr(-3).toLowerCase()==="svg"||jo.test(e)},u=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),RA=function(e,A,t){return new u(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},Te=function(){function e(A,t,r,B){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=B}return e.prototype.subdivide=function(A,t){var r=RA(this.start,this.startControl,A),B=RA(this.startControl,this.endControl,A),n=RA(this.endControl,this.end,A),s=RA(r,B,A),i=RA(B,n,A),a=RA(s,i,A);return t?new e(this.start,r,s,a):new e(a,i,n,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),$=function(e){return e.type===1},tQ=function(){function e(A){var t=A.styles,r=A.bounds,B=re(t.borderTopLeftRadius,r.width,r.height),n=B[0],s=B[1],i=re(t.borderTopRightRadius,r.width,r.height),a=i[0],o=i[1],Q=re(t.borderBottomRightRadius,r.width,r.height),g=Q[0],w=Q[1],f=re(t.borderBottomLeftRadius,r.width,r.height),c=f[0],C=f[1],H=[];H.push((n+a)/r.width),H.push((c+g)/r.width),H.push((s+C)/r.height),H.push((o+w)/r.height);var h=Math.max.apply(Math,H);h>1&&(n/=h,s/=h,a/=h,o/=h,g/=h,w/=h,c/=h,C/=h);var F=r.width-a,K=r.height-w,p=r.width-g,d=r.height-C,l=t.borderTopWidth,v=t.borderRightWidth,y=t.borderBottomWidth,E=t.borderLeftWidth,O=b(t.paddingTop,A.bounds.width),k=b(t.paddingRight,A.bounds.width),q=b(t.paddingBottom,A.bounds.width),L=b(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?x(r.left+E/3,r.top+l/3,n-E/3,s-l/3,m.TOP_LEFT):new u(r.left+E/3,r.top+l/3),this.topRightBorderDoubleOuterBox=n>0||s>0?x(r.left+F,r.top+l/3,a-v/3,o-l/3,m.TOP_RIGHT):new u(r.left+r.width-v/3,r.top+l/3),this.bottomRightBorderDoubleOuterBox=g>0||w>0?x(r.left+p,r.top+K,g-v/3,w-y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||C>0?x(r.left+E/3,r.top+d,c-E/3,C-y/3,m.BOTTOM_LEFT):new u(r.left+E/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?x(r.left+E*2/3,r.top+l*2/3,n-E*2/3,s-l*2/3,m.TOP_LEFT):new u(r.left+E*2/3,r.top+l*2/3),this.topRightBorderDoubleInnerBox=n>0||s>0?x(r.left+F,r.top+l*2/3,a-v*2/3,o-l*2/3,m.TOP_RIGHT):new u(r.left+r.width-v*2/3,r.top+l*2/3),this.bottomRightBorderDoubleInnerBox=g>0||w>0?x(r.left+p,r.top+K,g-v*2/3,w-y*2/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v*2/3,r.top+r.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||C>0?x(r.left+E*2/3,r.top+d,c-E*2/3,C-y*2/3,m.BOTTOM_LEFT):new u(r.left+E*2/3,r.top+r.height-y*2/3),this.topLeftBorderStroke=n>0||s>0?x(r.left+E/2,r.top+l/2,n-E/2,s-l/2,m.TOP_LEFT):new u(r.left+E/2,r.top+l/2),this.topRightBorderStroke=n>0||s>0?x(r.left+F,r.top+l/2,a-v/2,o-l/2,m.TOP_RIGHT):new u(r.left+r.width-v/2,r.top+l/2),this.bottomRightBorderStroke=g>0||w>0?x(r.left+p,r.top+K,g-v/2,w-y/2,m.BOTTOM_RIGHT):new u(r.left+r.width-v/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=c>0||C>0?x(r.left+E/2,r.top+d,c-E/2,C-y/2,m.BOTTOM_LEFT):new u(r.left+E/2,r.top+r.height-y/2),this.topLeftBorderBox=n>0||s>0?x(r.left,r.top,n,s,m.TOP_LEFT):new u(r.left,r.top),this.topRightBorderBox=a>0||o>0?x(r.left+F,r.top,a,o,m.TOP_RIGHT):new u(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||w>0?x(r.left+p,r.top+K,g,w,m.BOTTOM_RIGHT):new u(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=c>0||C>0?x(r.left,r.top+d,c,C,m.BOTTOM_LEFT):new u(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||s>0?x(r.left+E,r.top+l,Math.max(0,n-E),Math.max(0,s-l),m.TOP_LEFT):new u(r.left+E,r.top+l),this.topRightPaddingBox=a>0||o>0?x(r.left+Math.min(F,r.width-v),r.top+l,F>r.width+v?0:Math.max(0,a-v),Math.max(0,o-l),m.TOP_RIGHT):new u(r.left+r.width-v,r.top+l),this.bottomRightPaddingBox=g>0||w>0?x(r.left+Math.min(p,r.width-E),r.top+Math.min(K,r.height-y),Math.max(0,g-v),Math.max(0,w-y),m.BOTTOM_RIGHT):new u(r.left+r.width-v,r.top+r.height-y),this.bottomLeftPaddingBox=c>0||C>0?x(r.left+E,r.top+Math.min(d,r.height-y),Math.max(0,c-E),Math.max(0,C-y),m.BOTTOM_LEFT):new u(r.left+E,r.top+r.height-y),this.topLeftContentBox=n>0||s>0?x(r.left+E+L,r.top+l+O,Math.max(0,n-(E+L)),Math.max(0,s-(l+O)),m.TOP_LEFT):new u(r.left+E+L,r.top+l+O),this.topRightContentBox=a>0||o>0?x(r.left+Math.min(F,r.width+E+L),r.top+l+O,F>r.width+E+L?0:a-E+L,o-(l+O),m.TOP_RIGHT):new u(r.left+r.width-(v+k),r.top+l+O),this.bottomRightContentBox=g>0||w>0?x(r.left+Math.min(p,r.width-(E+L)),r.top+Math.min(K,r.height+l+O),Math.max(0,g-(v+k)),w-(y+q),m.BOTTOM_RIGHT):new u(r.left+r.width-(v+k),r.top+r.height-(y+q)),this.bottomLeftContentBox=c>0||C>0?x(r.left+E+L,r.top+d,Math.max(0,c-(E+L)),C-(y+q),m.BOTTOM_LEFT):new u(r.left+E+L,r.top+r.height-(y+q))}return e}(),m;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(m||(m={}));var x=function(e,A,t,r,B){var n=4*((Math.sqrt(2)-1)/3),s=t*n,i=r*n,a=e+t,o=A+r;switch(B){case m.TOP_LEFT:return new Te(new u(e,o),new u(e,o-i),new u(a-s,A),new u(a,A));case m.TOP_RIGHT:return new Te(new u(e,A),new u(e+s,A),new u(a,o-i),new u(a,o));case m.BOTTOM_RIGHT:return new Te(new u(a,A),new u(a,A+i),new u(e+s,o),new u(e,o));case m.BOTTOM_LEFT:default:return new Te(new u(a,o),new u(a-s,o),new u(e,A+i),new u(e,A))}},Ze=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},BQ=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},qe=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},nQ=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),Se=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),sQ=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),aQ=function(e){return e.type===0},en=function(e){return e.type===1},iQ=function(e){return e.type===2},eB=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},oQ=function(e,A,t,r,B){return e.map(function(n,s){switch(s){case 0:return n.add(A,t);case 1:return n.add(A+r,t);case 2:return n.add(A+r,t+B);case 3:return n.add(A,t+B)}return n})},rn=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),tn=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new tQ(this.container),this.container.styles.opacity<1&&this.effects.push(new sQ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,B=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new nQ(r,B,n))}if(this.container.styles.overflowX!==0){var s=Ze(this.curves),i=qe(this.curves);eB(s,i)?this.effects.push(new Se(s,6)):(this.effects.push(new Se(s,2)),this.effects.push(new Se(i,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,B=this.effects.slice(0);r;){var n=r.effects.filter(function(a){return!en(a)});if(t||r.container.styles.position!==0||!r.parent){if(B.unshift.apply(B,n),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Ze(r.curves),i=qe(r.curves);eB(s,i)||B.unshift(new Se(i,6))}}else B.unshift.apply(B,n);r=r.parent}return B.filter(function(a){return G(a.target,A)})},e}(),jr=function(e,A,t,r){e.container.elements.forEach(function(B){var n=G(B.flags,4),s=G(B.flags,2),i=new tn(B,e);G(B.styles.display,2048)&&r.push(i);var a=G(B.flags,8)?[]:r;if(n||s){var o=n||B.styles.isPositioned()?t:A,Q=new rn(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var g=B.styles.zIndex.order;if(g<0){var w=0;o.negativeZIndex.some(function(c,C){return g>c.element.container.styles.zIndex.order?(w=C,!1):w>0}),o.negativeZIndex.splice(w,0,Q)}else if(g>0){var f=0;o.positiveZIndex.some(function(c,C){return g>=c.element.container.styles.zIndex.order?(f=C+1,!1):f>0}),o.positiveZIndex.splice(f,0,Q)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?o.nonPositionedFloats.push(Q):o.nonPositionedInlineLevel.push(Q);jr(i,Q,n?Q:t,a)}else B.styles.isInlineLevel()?A.inlineLevel.push(i):A.nonInlineLevel.push(i),jr(i,A,t,a);G(B.flags,8)&&Bn(B,a)})},Bn=function(e,A){for(var t=e instanceof kr?e.start:1,r=e instanceof kr?e.reversed:!1,B=0;B<A.length;B++){var n=A[B];n.container instanceof NB&&typeof n.container.value=="number"&&n.container.value!==0&&(t=n.container.value),n.listValue=we(t,n.container.styles.listStyleType,!0),t+=r?-1:1}},QQ=function(e){var A=new tn(e,null),t=new rn(A),r=[];return jr(A,t,t,r),Bn(A.container,r),t},rB=function(e,A){switch(A){case 0:return eA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return eA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return eA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return eA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},gQ=function(e,A){switch(A){case 0:return eA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return eA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return eA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return eA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},wQ=function(e,A){switch(A){case 0:return eA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return eA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return eA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return eA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},cQ=function(e,A){switch(A){case 0:return Oe(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Oe(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Oe(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Oe(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Oe=function(e,A){var t=[];return $(e)?t.push(e.subdivide(.5,!1)):t.push(e),$(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},eA=function(e,A,t,r){var B=[];return $(e)?B.push(e.subdivide(.5,!1)):B.push(e),$(t)?B.push(t.subdivide(.5,!0)):B.push(t),$(r)?B.push(r.subdivide(.5,!0).reverse()):B.push(r),$(A)?B.push(A.subdivide(.5,!1).reverse()):B.push(A),B},nn=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},je=function(e){var A=e.styles,t=e.bounds,r=b(A.paddingLeft,t.width),B=b(A.paddingRight,t.width),n=b(A.paddingTop,t.width),s=b(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,n+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+B),-(A.borderTopWidth+A.borderBottomWidth+n+s))},CQ=function(e,A){return e===0?A.bounds:e===2?je(A):nn(A)},uQ=function(e,A){return e===0?A.bounds:e===2?je(A):nn(A)},Kr=function(e,A,t){var r=CQ(XA(e.styles.backgroundOrigin,A),e),B=uQ(XA(e.styles.backgroundClip,A),e),n=lQ(XA(e.styles.backgroundSize,A),t,r),s=n[0],i=n[1],a=re(XA(e.styles.backgroundPosition,A),r.width-s,r.height-i),o=fQ(XA(e.styles.backgroundRepeat,A),a,n,r,B),Q=Math.round(r.left+a[0]),g=Math.round(r.top+a[1]);return[o,Q,g,s,i]},VA=function(e){return D(e)&&e.value===JA.AUTO},Me=function(e){return typeof e=="number"},lQ=function(e,A,t){var r=A[0],B=A[1],n=A[2],s=e[0],i=e[1];if(!s)return[0,0];if(M(s)&&i&&M(i))return[b(s,t.width),b(i,t.height)];var a=Me(n);if(D(s)&&(s.value===JA.CONTAIN||s.value===JA.COVER)){if(Me(n)){var o=t.width/t.height;return o<n!=(s.value===JA.COVER)?[t.width,t.width/n]:[t.height*n,t.height]}return[t.width,t.height]}var Q=Me(r),g=Me(B),w=Q||g;if(VA(s)&&(!i||VA(i))){if(Q&&g)return[r,B];if(!a&&!w)return[t.width,t.height];if(w&&a){var f=Q?r:B*n,c=g?B:r/n;return[f,c]}var C=Q?r:t.width,H=g?B:t.height;return[C,H]}if(a){var h=0,F=0;return M(s)?h=b(s,t.width):M(i)&&(F=b(i,t.height)),VA(s)?h=F*n:(!i||VA(i))&&(F=h/n),[h,F]}var K=null,p=null;if(M(s)?K=b(s,t.width):i&&M(i)&&(p=b(i,t.height)),K!==null&&(!i||VA(i))&&(p=Q&&g?K/r*B:t.height),p!==null&&VA(s)&&(K=Q&&g?p/B*r:t.width),K!==null&&p!==null)return[K,p];throw new Error("Unable to calculate background-size for element")},XA=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},fQ=function(e,A,t,r,B){var n=A[0],s=A[1],i=t[0],a=t[1];switch(e){case 2:return[new u(Math.round(r.left),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(a+r.top+s)),new u(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new u(Math.round(r.left+n),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.height+r.top)),new u(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new u(Math.round(r.left+n),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s+a)),new u(Math.round(r.left+n),Math.round(r.top+s+a))];default:return[new u(Math.round(B.left),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.height+B.top)),new u(Math.round(B.left),Math.round(B.height+B.top))]}},UQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",tB="Hidden Text",FQ=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),B=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),B.src=UQ,B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(tB)),r.appendChild(n),r.appendChild(B);var i=B.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(tB)),r.style.lineHeight="normal",B.style.verticalAlign="super";var a=B.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),sn=function(){function e(A,t){this.context=A,this.options=t}return e}(),hQ=1e4,dQ=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B._activeEffects=[],B.canvas=r.canvas?r.canvas:document.createElement("canvas"),B.ctx=B.canvas.getContext("2d"),r.canvas||(B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+"px",B.canvas.style.height=r.height+"px"),B.fontMetrics=new FQ(document),B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.ctx.textBaseline="bottom",B._activeEffects=[],B.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),B}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(B){return r.applyEffect(B)})},A.prototype.applyEffect=function(t){this.ctx.save(),iQ(t)&&(this.ctx.globalAlpha=t.opacity),aQ(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),en(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return P(this,void 0,void 0,function(){var r;return _(this,function(B){switch(B.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return P(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:if(G(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,B){var n=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B);else{var s=rt(t.text);s.reduce(function(i,a){return n.ctx.fillText(a,i,t.bounds.top+B),i+n.ctx.measureText(a).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),B=vQ(t.fontFamily).join(", "),n=Ce(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,n,B].join(" "),B,n]},A.prototype.renderTextNode=function(t,r){return P(this,void 0,void 0,function(){var B,n,s,i,a,o,Q,g,w=this;return _(this,function(f){return B=this.createFontStyle(r),n=B[0],s=B[1],i=B[2],this.ctx.font=n,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,i),o=a.baseline,Q=a.middle,g=r.paintOrder,t.textBounds.forEach(function(c){g.forEach(function(C){switch(C){case 0:w.ctx.fillStyle=R(r.color),w.renderTextWithLetterSpacing(c,r.letterSpacing,o);var H=r.textShadow;H.length&&c.text.trim().length&&(H.slice(0).reverse().forEach(function(h){w.ctx.shadowColor=R(h.color),w.ctx.shadowOffsetX=h.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=h.offsetY.number*w.options.scale,w.ctx.shadowBlur=h.blur.number,w.renderTextWithLetterSpacing(c,r.letterSpacing,o)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=R(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+o),c.bounds.width,1);break;case 2:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:w.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+Q),c.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&c.text.trim().length&&(w.ctx.strokeStyle=R(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+o)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,B){if(B&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=je(t),s=qe(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(B,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return P(this,void 0,void 0,function(){var r,B,n,s,i,a,F,F,o,Q,g,w,p,f,c,d,C,H,h,F,K,p,d;return _(this,function(l){switch(l.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,B=t.curves,n=r.styles,s=0,i=r.textNodes,l.label=1;case 1:return s<i.length?(a=i[s],[4,this.renderTextNode(a,n)]):[3,4];case 2:l.sent(),l.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof GB))return[3,8];l.label=5;case 5:return l.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return F=l.sent(),this.renderReplacedElement(r,B,F),[3,8];case 7:return l.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof RB&&this.renderReplacedElement(r,B,r.canvas),!(r instanceof VB))return[3,12];l.label=9;case 9:return l.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return F=l.sent(),this.renderReplacedElement(r,B,F),[3,12];case 11:return l.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof JB&&r.tree?(o=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,o.render(r.tree)]):[3,14];case 13:Q=l.sent(),r.width&&r.height&&this.ctx.drawImage(Q,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),l.label=14;case 14:if(r instanceof tt&&(g=Math.min(r.bounds.width,r.bounds.height),r.type===Pe?r.checked&&(this.ctx.save(),this.path([new u(r.bounds.left+g*.39363,r.bounds.top+g*.79),new u(r.bounds.left+g*.16,r.bounds.top+g*.5549),new u(r.bounds.left+g*.27347,r.bounds.top+g*.44071),new u(r.bounds.left+g*.39694,r.bounds.top+g*.5649),new u(r.bounds.left+g*.72983,r.bounds.top+g*.23),new u(r.bounds.left+g*.84,r.bounds.top+g*.34085),new u(r.bounds.left+g*.39363,r.bounds.top+g*.79)]),this.ctx.fillStyle=R(Jt),this.ctx.fill(),this.ctx.restore()):r.type===ke&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+g/2,r.bounds.top+g/2,g/4,0,Math.PI*2,!0),this.ctx.fillStyle=R(Jt),this.ctx.fill(),this.ctx.restore())),EQ(r)&&r.value.length){switch(w=this.createFontStyle(n),p=w[0],f=w[1],c=this.fontMetrics.getMetrics(p,f).baseline,this.ctx.font=p,this.ctx.fillStyle=R(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=pQ(r.styles.textAlign),d=je(r),C=0,r.styles.textAlign){case 1:C+=d.width/2;break;case 2:C+=d.width;break}H=d.add(C,0,0,-d.height/2+1),this.ctx.save(),this.path([new u(d.left,d.top),new u(d.left+d.width,d.top),new u(d.left+d.width,d.top+d.height),new u(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ie(r.value,H),n.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!G(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(h=r.styles.listStyleImage,h.type!==0)return[3,18];F=void 0,K=h.url,l.label=15;case 15:return l.trys.push([15,17,,18]),[4,this.context.cache.match(K)];case 16:return F=l.sent(),this.ctx.drawImage(F,r.bounds.left-(F.width+10),r.bounds.top),[3,18];case 17:return l.sent(),this.context.logger.error("Error loading list-style-image "+K),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(p=this.createFontStyle(n)[0],this.ctx.font=p,this.ctx.fillStyle=R(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new cA(r.bounds.left,r.bounds.top+b(r.styles.paddingTop,r.bounds.width),r.bounds.width,yt(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ie(t.listValue,d),n.letterSpacing,yt(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),l.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return P(this,void 0,void 0,function(){var r,B,h,n,s,h,i,a,h,o,Q,h,g,w,h,f,c,h,C,H,h;return _(this,function(F){switch(F.label){case 0:if(G(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:F.sent(),r=0,B=t.negativeZIndex,F.label=2;case 2:return r<B.length?(h=B[r],[4,this.renderStack(h)]):[3,5];case 3:F.sent(),F.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:F.sent(),n=0,s=t.nonInlineLevel,F.label=7;case 7:return n<s.length?(h=s[n],[4,this.renderNode(h)]):[3,10];case 8:F.sent(),F.label=9;case 9:return n++,[3,7];case 10:i=0,a=t.nonPositionedFloats,F.label=11;case 11:return i<a.length?(h=a[i],[4,this.renderStack(h)]):[3,14];case 12:F.sent(),F.label=13;case 13:return i++,[3,11];case 14:o=0,Q=t.nonPositionedInlineLevel,F.label=15;case 15:return o<Q.length?(h=Q[o],[4,this.renderStack(h)]):[3,18];case 16:F.sent(),F.label=17;case 17:return o++,[3,15];case 18:g=0,w=t.inlineLevel,F.label=19;case 19:return g<w.length?(h=w[g],[4,this.renderNode(h)]):[3,22];case 20:F.sent(),F.label=21;case 21:return g++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,F.label=23;case 23:return f<c.length?(h=c[f],[4,this.renderStack(h)]):[3,26];case 24:F.sent(),F.label=25;case 25:return f++,[3,23];case 26:C=0,H=t.positiveZIndex,F.label=27;case 27:return C<H.length?(h=H[C],[4,this.renderStack(h)]):[3,30];case 28:F.sent(),F.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(B,n){var s=$(B)?B.start:B;n===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),$(B)&&r.ctx.bezierCurveTo(B.startControl.x,B.startControl.y,B.endControl.x,B.endControl.y,B.end.x,B.end.y)})},A.prototype.renderRepeat=function(t,r,B,n){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(B,n),this.ctx.fill(),this.ctx.translate(-B,-n)},A.prototype.resizeImage=function(t,r,B){var n;if(t.width===r&&t.height===B)return t;var s=(n=this.canvas.ownerDocument)!==null&&n!==void 0?n:document,i=s.createElement("canvas");i.width=Math.max(1,r),i.height=Math.max(1,B);var a=i.getContext("2d");return a.drawImage(t,0,0,t.width,t.height,0,0,r,B),i},A.prototype.renderBackgroundImage=function(t){return P(this,void 0,void 0,function(){var r,B,n,s,i,a;return _(this,function(o){switch(o.label){case 0:r=t.styles.backgroundImage.length-1,B=function(Q){var g,w,f,O,Y,W,L,V,y,c,O,Y,W,L,V,C,H,h,F,K,p,d,l,v,y,E,O,k,q,L,V,CA,Y,W,IA,BA,uA,vA,yA,iA,KA,oA;return _(this,function(TA){switch(TA.label){case 0:if(Q.type!==0)return[3,5];g=void 0,w=Q.url,TA.label=1;case 1:return TA.trys.push([1,3,,4]),[4,n.context.cache.match(w)];case 2:return g=TA.sent(),[3,4];case 3:return TA.sent(),n.context.logger.error("Error loading background-image "+w),[3,4];case 4:return g&&(f=Kr(t,r,[g.width,g.height,g.width/g.height]),O=f[0],Y=f[1],W=f[2],L=f[3],V=f[4],y=n.ctx.createPattern(n.resizeImage(g,L,V),"repeat"),n.renderRepeat(O,y,Y,W)),[3,6];case 5:sa(Q)?(c=Kr(t,r,[null,null,null]),O=c[0],Y=c[1],W=c[2],L=c[3],V=c[4],C=ea(Q.angle,L,V),H=C[0],h=C[1],F=C[2],K=C[3],p=C[4],d=document.createElement("canvas"),d.width=L,d.height=V,l=d.getContext("2d"),v=l.createLinearGradient(h,K,F,p),It(Q.stops,H).forEach(function(YA){return v.addColorStop(YA.stop,R(YA.color))}),l.fillStyle=v,l.fillRect(0,0,L,V),L>0&&V>0&&(y=n.ctx.createPattern(d,"repeat"),n.renderRepeat(O,y,Y,W))):aa(Q)&&(E=Kr(t,r,[null,null,null]),O=E[0],k=E[1],q=E[2],L=E[3],V=E[4],CA=Q.position.length===0?[$r]:Q.position,Y=b(CA[0],L),W=b(CA[CA.length-1],V),IA=ra(Q,Y,W,L,V),BA=IA[0],uA=IA[1],BA>0&&uA>0&&(vA=n.ctx.createRadialGradient(k+Y,q+W,0,k+Y,q+W,BA),It(Q.stops,BA*2).forEach(function(YA){return vA.addColorStop(YA.stop,R(YA.color))}),n.path(O),n.ctx.fillStyle=vA,BA!==uA?(yA=t.bounds.left+.5*t.bounds.width,iA=t.bounds.top+.5*t.bounds.height,KA=uA/BA,oA=1/KA,n.ctx.save(),n.ctx.translate(yA,iA),n.ctx.transform(1,0,0,KA,0,0),n.ctx.translate(-yA,-iA),n.ctx.fillRect(k,oA*(q-iA)+iA,L,V*oA),n.ctx.restore()):n.ctx.fill())),TA.label=6;case 6:return r--,[2]}})},n=this,s=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s<i.length?(a=i[s],[5,B(a)]):[3,4];case 2:o.sent(),o.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,B){return P(this,void 0,void 0,function(){return _(this,function(n){return this.path(rB(B,r)),this.ctx.fillStyle=R(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,B,n){return P(this,void 0,void 0,function(){var s,i;return _(this,function(a){switch(a.label){case 0:return r<3?[4,this.renderSolidBorder(t,B,n)]:[3,2];case 1:return a.sent(),[2];case 2:return s=gQ(n,B),this.path(s),this.ctx.fillStyle=R(t),this.ctx.fill(),i=wQ(n,B),this.path(i),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return P(this,void 0,void 0,function(){var r,B,n,s,i,a,o,Q,g=this;return _(this,function(w){switch(w.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,B=!HA(r.backgroundColor)||r.backgroundImage.length,n=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=HQ(XA(r.backgroundClip,0),t.curves),B||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),HA(r.backgroundColor)||(this.ctx.fillStyle=R(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){g.ctx.save();var c=Ze(t.curves),C=f.inset?0:hQ,H=oQ(c,-C+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(g.path(c),g.ctx.clip(),g.mask(H)):(g.mask(c),g.ctx.clip(),g.path(H)),g.ctx.shadowOffsetX=f.offsetX.number+C,g.ctx.shadowOffsetY=f.offsetY.number,g.ctx.shadowColor=R(f.color),g.ctx.shadowBlur=f.blur.number,g.ctx.fillStyle=f.inset?R(f.color):"rgba(0,0,0,1)",g.ctx.fill(),g.ctx.restore()}),w.label=2;case 2:i=0,a=0,o=n,w.label=3;case 3:return a<o.length?(Q=o[a],Q.style!==0&&!HA(Q.color)&&Q.width>0?Q.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return Q.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return Q.style!==4?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,i,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,i,t.curves)];case 10:w.sent(),w.label=11;case 11:i++,w.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,B,n,s){return P(this,void 0,void 0,function(){var i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,l,d,l;return _(this,function(v){return this.ctx.save(),i=cQ(n,B),a=rB(n,B),s===2&&(this.path(a),this.ctx.clip()),$(a[0])?(o=a[0].start.x,Q=a[0].start.y):(o=a[0].x,Q=a[0].y),$(a[1])?(g=a[1].end.x,w=a[1].end.y):(g=a[1].x,w=a[1].y),B===0||B===2?f=Math.abs(o-g):f=Math.abs(Q-w),this.ctx.beginPath(),s===3?this.formatPath(i):this.formatPath(a.slice(0,2)),c=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(c=r,C=r),H=!0,f<=c*2?H=!1:f<=c*2+C?(h=f/(2*c+C),c*=h,C*=h):(F=Math.floor((f+C)/(c+C)),K=(f-F*c)/(F-1),p=(f-(F+1)*c)/F,C=p<=0||Math.abs(C-K)<Math.abs(C-p)?K:p),H&&(s===3?this.ctx.setLineDash([0,c+C]):this.ctx.setLineDash([c,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=R(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($(a[0])&&(d=a[3],l=a[0],this.ctx.beginPath(),this.formatPath([new u(d.end.x,d.end.y),new u(l.start.x,l.start.y)]),this.ctx.stroke()),$(a[1])&&(d=a[1],l=a[2],this.ctx.beginPath(),this.formatPath([new u(d.end.x,d.end.y),new u(l.start.x,l.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return P(this,void 0,void 0,function(){var r;return _(this,function(B){switch(B.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=R(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=QQ(t),[4,this.renderStack(r)];case 1:return B.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(sn),EQ=function(e){return e instanceof _B||e instanceof XB?!0:e instanceof tt&&e.type!==ke&&e.type!==Pe},HQ=function(e,A){switch(e){case 0:return Ze(A);case 2:return BQ(A);case 1:default:return qe(A)}},pQ=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},IQ=["-apple-system","system-ui"],vQ=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return IQ.indexOf(A)===-1}):e},yQ=function(e){tA(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r.canvas?r.canvas:document.createElement("canvas"),B.ctx=B.canvas.getContext("2d"),B.options=r,B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+"px",B.canvas.style.height=r.height+"px",B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),B}return A.prototype.render=function(t){return P(this,void 0,void 0,function(){var r,B;return _(this,function(n){switch(n.label){case 0:return r=Pr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,KQ(r)];case 1:return B=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=R(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(B,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(sn),KQ=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},mQ=function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,ue([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,ue([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,ue([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,ue([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),LQ=function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new mQ({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new qo(this,A)}return e.instanceCount=1,e}(),xQ=function(e,A){return A===void 0&&(A={}),DQ(e,A)};typeof window<"u"&&An.setContext(window);var DQ=function(e,A){return P(void 0,void 0,void 0,function(){var t,r,B,n,s,i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,v,l,v,y,E,O,k,q,L,V,CA,Y,W,IA,BA,uA,vA,yA,iA,KA;return _(this,function(oA){switch(oA.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return B={allowTaint:(y=A.allowTaint)!==null&&y!==void 0?y:!1,imageTimeout:(E=A.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:A.proxy,useCORS:(O=A.useCORS)!==null&&O!==void 0?O:!1},n=Lr({logging:(k=A.logging)!==null&&k!==void 0?k:!0,cache:A.cache},B),s={windowWidth:(q=A.windowWidth)!==null&&q!==void 0?q:r.innerWidth,windowHeight:(L=A.windowHeight)!==null&&L!==void 0?L:r.innerHeight,scrollX:(V=A.scrollX)!==null&&V!==void 0?V:r.pageXOffset,scrollY:(CA=A.scrollY)!==null&&CA!==void 0?CA:r.pageYOffset},i=new cA(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),a=new LQ(n,i),o=(Y=A.foreignObjectRendering)!==null&&Y!==void 0?Y:!1,Q={allowTaint:(W=A.allowTaint)!==null&&W!==void 0?W:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:o,copyStyles:o},a.logger.debug("Starting document clone with size "+i.width+"x"+i.height+" scrolled to "+-i.left+","+-i.top),g=new $t(a,e,Q),w=g.clonedReferenceElement,w?[4,g.toIFrame(t,i)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=oA.sent(),c=Bt(w)||xo(w)?an(w.ownerDocument):ze(a,w),C=c.width,H=c.height,h=c.left,F=c.top,K=bQ(a,w,A.backgroundColor),p={canvas:A.canvas,backgroundColor:K,scale:(BA=(IA=A.scale)!==null&&IA!==void 0?IA:r.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((uA=A.x)!==null&&uA!==void 0?uA:0)+h,y:((vA=A.y)!==null&&vA!==void 0?vA:0)+F,width:(yA=A.width)!==null&&yA!==void 0?yA:Math.ceil(C),height:(iA=A.height)!==null&&iA!==void 0?iA:Math.ceil(H)},o?(a.logger.debug("Document cloned, using foreign object rendering"),v=new yQ(a,p),[4,v.render(w)]):[3,3];case 2:return d=oA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+h+","+F+" with size "+C+"x"+H+" using computed rendering"),a.logger.debug("Starting DOM parsing"),l=kB(a,w),K===l.styles.backgroundColor&&(l.styles.backgroundColor=wA.TRANSPARENT),a.logger.debug("Starting renderer for element at "+p.x+","+p.y+" with size "+p.width+"x"+p.height),v=new dQ(a,p),[4,v.render(l)];case 4:d=oA.sent(),oA.label=5;case 5:return(!((KA=A.removeContainer)!==null&&KA!==void 0)||KA)&&($t.destroy(f)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,d]}})})},bQ=function(e,A,t){var r=A.ownerDocument,B=r.documentElement?se(e,getComputedStyle(r.documentElement).backgroundColor):wA.TRANSPARENT,n=r.body?se(e,getComputedStyle(r.body).backgroundColor):wA.TRANSPARENT,s=typeof t=="string"?se(e,t):t===null?wA.TRANSPARENT:4294967295;return A===r.documentElement?HA(B)?HA(n)?s:n:B:s};export{xQ as default};
Index: imaps-frontend/dist/assets/index-BuwxaRks.css
===================================================================
--- imaps-frontend/dist/assets/index-BuwxaRks.css	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index-BuwxaRks.css	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,1 @@
+@import"https://fonts.googleapis.com/css2?family=Roboto&display=swap";@import"https://fonts.googleapis.com/css?family=Exo:500";@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap";._container_lfw20_3{max-width:1200px;margin:0 auto;padding:20px;text-align:center}h1{font-family:exo,sans-serif;font-size:2.5rem;color:#0f71da;margin-bottom:20px}._searchBar_lfw20_18{margin-bottom:30px;text-align:center;margin-top:5em}._searchBar_lfw20_18 input{width:33vw;padding:10px;font-size:16px;border:1px solid #ccc;border-radius:5px;outline:none;transition:all .3s ease}._searchBar_lfw20_18 input:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}._filterBar_lfw20_40{margin-left:6vw}._tile_lfw20_45{background:#fff;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#f7f9fc;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:1px solid #dcdcdc;border-radius:12px;margin-bottom:20px}._tile_lfw20_45:hover{transform:scale(1.05);box-shadow:#00000026 0 8px 18px}._imgStyle_lfw20_67{width:80%;margin-top:10px;margin-bottom:5px}._favorite_lfw20_73{position:absolute;top:20px;right:20px;cursor:pointer}._dragging_lfw20_81{background-color:#1e90ff;transform:scale(1.06) rotate(3deg);box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}._linkStyle_lfw20_89{text-decoration:none;color:inherit}@media (max-width: 768px){._searchBar_lfw20_18 input{width:100%}._tile_lfw20_45{width:100%;height:auto}}.TilesContainer-module_container__2hgud{position:relative;width:100%}.TilesContainer-module_tile__1R3DP{touch-action:none;transition:all .3s ease-in-out;position:absolute;display:flex;align-items:stretch;z-index:0}.TilesContainer-module_tile__1R3DP:hover{z-index:1}.TilesContainer-module_tile__1R3DP.TilesContainer-module_dragging__2mUA2{transition:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.TilesContainer-module_indicator__t_Y_b{position:absolute;display:flex;align-items:stretch;z-index:0}._logoContainer_803b2_1{position:fixed;top:10px;left:10px;cursor:pointer;z-index:1000}._logoImage_803b2_9{width:80px;height:auto;transition:opacity .2s ease;border-radius:20px}._fixedLogoContainer_803b2_20{position:fixed;top:10px;left:10px;cursor:pointer;z-index:1000}._inlineLogoContainer_803b2_28{display:inline-block;cursor:pointer}._logoImage_803b2_9:hover{opacity:.8}._fixedProfileContainer_1ubol_1{position:fixed;top:1em;right:2.5em;z-index:1000}._inlineProfileContainer_1ubol_8{display:inline-block;cursor:pointer}._profileWrapper_1ubol_13{display:flex;align-items:center;cursor:pointer}._profileIconContainer_1ubol_19{position:relative;cursor:pointer}._profileImage_1ubol_24{width:60px;height:60px;border-radius:50%;transition:box-shadow .3s ease}._profileImage_1ubol_24:hover{box-shadow:0 4px 12px #0003}._dropdownMenu_1ubol_35{position:absolute;top:70px;margin-left:1.8em;transform:translate(-50%);background-color:#fff;box-shadow:0 8px 16px #00000026;border-radius:12px;padding:12px;width:180px;transition:opacity .3s ease;opacity:1}._username_1ubol_49{padding:10px 0;font-weight:600;text-align:center;color:#333;border-bottom:1px solid #eee}._menuList_1ubol_57{list-style-type:none;padding:0;margin:0}._menuItem_1ubol_63{padding:10px;cursor:pointer;transition:background-color .2s ease,color .2s ease;text-align:center;color:#333;font-weight:500;border-radius:8px}._menuItem_1ubol_63:hover{background-color:#f5f5f5;color:#007bff}*{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif}._illustration_ry689_9 img{max-height:500px;width:auto}._wrapper_ry689_14{display:flex;justify-content:flex-end;align-items:center;height:100vh;margin-left:30%;padding:2rem}._form_ry689_25{padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff;border-radius:8px;box-shadow:0 4px 8px #0000001a;width:100%;max-width:400px}._form_ry689_25 ._heading_ry689_38{font-size:1.8rem;font-weight:700;text-align:center;margin-bottom:1.5rem}._or_ry689_45{margin-top:1em;text-align:center;font-weight:700;color:#666}._form_ry689_25 label{display:block;margin:1.25rem 0 1rem;font-size:.95rem;color:#333}._form_ry689_25 input{height:40px;width:100%;max-width:350px;padding:15px;background-color:#f1f9ff;border:2px solid #bce0fd;border-radius:8px;box-sizing:border-box;font-size:1rem}._form_ry689_25 button{height:40px;width:100%;max-width:350px;margin-top:1.5rem;background-color:#258de6;color:#fff;text-transform:uppercase;letter-spacing:1px;border:none;font-weight:700;border-radius:8px;font-size:1rem}._socialButtons_ry689_86{display:flex;flex-direction:column;align-items:center}._socialButton_ry689_86{display:inline-flex;align-items:center;justify-content:flex-start;padding:10px 15px;border:none;border-radius:8px;cursor:pointer;font-size:.8rem;font-weight:700;transition:background-color .2s,transform .2s;width:100%;max-width:350px}._socialButton_ry689_86 img{width:20px;height:20px;margin-right:10px;vertical-align:middle}._socialButton_ry689_86:hover{filter:brightness(95%)}._socialButton_ry689_86:active{transform:scale(.98)}._socialButton_ry689_86:nth-child(2){background-color:#333;color:#fff}._socialButton_ry689_86:nth-child(1){background-color:#fff;color:#000;box-shadow:1px 2px #2f2525}@media (min-width: 542px){body{display:flex;justify-content:center}._wrapper_ry689_14{display:flex;height:100vh;align-items:center;justify-content:flex-end;padding:2rem;max-width:1100px}._form_ry689_25{flex-basis:auto;align-items:center;width:100%;max-width:400px}._form_ry689_25 input{width:100%;max-width:350px}._illustration_ry689_9{margin-right:40%}._illustration_ry689_9 img{max-width:100%;height:auto}}@media (max-width: 680px){._wrapper_ry689_14{flex-direction:column;align-items:center;padding:1rem}._illustration_ry689_9{display:none}._form_ry689_25{width:100%;align-items:center}._form_ry689_25 input,._form_ry689_25 button,._socialButton_ry689_86{width:100%;max-width:300px}}button:hover{filter:brightness(95%)}button:active{transform:scale(.98)}._error_ry689_202{color:red;font-size:.9rem;margin-top:.5rem}._wrapper_179e9_1{display:flex;align-items:center;justify-content:center;height:100vh;background-color:#fff;padding:1rem;gap:2rem}._form_179e9_11{padding:2rem;background-color:#fff;box-shadow:0 4px 8px #0000001a;border-radius:10px;flex-basis:100%;max-width:400px;text-align:center}._form_179e9_11 ._heading_179e9_21{font-size:1.8rem;font-weight:700;color:#258de6;margin-bottom:1rem}._form_179e9_11 label{display:block;margin:1.25rem 0 .5rem;font-size:.9rem;font-weight:700;color:#555}._form_179e9_11 input{height:40px;width:100%;padding:10px 15px;background-color:#f1f9ff;border:2px solid #bce0fd;border-radius:8px;font-size:1rem}._form_179e9_11 input:focus{outline:none;border-color:#258de6;background-color:#e6f4ff}._form_179e9_11 button{height:45px;width:100%;background-color:#258de6;color:#fff;text-transform:uppercase;letter-spacing:1px;border:none;margin-top:1.5rem;font-weight:700;border-radius:8px;cursor:pointer;transition:all .2s ease}._form_179e9_11 button:hover{filter:brightness(90%)}._form_179e9_11 button:active{transform:scale(.96)}._form_179e9_11 p{text-align:center;margin-top:1rem;font-size:.9rem}._form_179e9_11 p a{color:#258de6;text-decoration:none;font-weight:700}._form_179e9_11 p a:hover{text-decoration:underline}._illustration_179e9_91{text-align:center}._illustration_179e9_91 img{max-width:100%;height:auto;border-radius:10px;display:block;margin:0 auto}@media (min-width: 768px){._wrapper_179e9_1{flex-direction:row;gap:4rem}._form_179e9_11,._illustration_179e9_91{flex-basis:50%}._illustration_179e9_91 img{max-height:600px;width:auto}}@media (max-width: 768px){._wrapper_179e9_1{flex-direction:column;text-align:center}._illustration_179e9_91{margin-bottom:2rem}}._errorMessage_179e9_134,._successMessage_179e9_135{font-size:.9rem;font-weight:700;text-align:center;margin-top:1rem;padding:10px;border-radius:8px}._errorMessage_179e9_134{color:#e74c3c;background-color:#fbeaea;border:1px solid #e74c3c}._successMessage_179e9_135{color:#2ecc71;background-color:#ebf9f1;border:1px solid #2ecc71}.modern-navbar{background:linear-gradient(90deg,#fff,#fffefe);color:#fff;display:flex;justify-content:center;align-items:center;padding:.8rem 1.5rem;box-shadow:0 4px 10px #0000001a;position:sticky;top:0;z-index:1000;border-radius:8px;margin:5px;height:70px;overflow:hidden}.navbar-container{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1200px}.navbar-left{display:flex;align-items:center;gap:1rem}.navbar-title{font-size:1.6rem;font-weight:700;color:#fff;margin:0;font-family:exo,sans-serif}.navbar-right{display:flex;align-items:center;gap:1rem}.navbar-btn{padding:.4rem 1.5rem;font-size:.9rem;border:2px solid transparent;border-radius:20px;text-decoration:none;color:#fff;font-weight:500;transition:all .3s ease-in-out;font-family:exo,sans-serif;cursor:pointer;margin-left:4em;margin-right:1em}.navbar-login{background-color:#252627;border:2px solid #3f3232}.navbar-login:hover{background-color:#fff;color:#212121;border:1px solid rgba(19,18,18,.82)}.navbar-signup{background-color:#252627;color:#fff;border:2px solid #343a40}.navbar-signup:hover{background-color:#fff;color:#343a40;border:2px solid #343a40}@-webkit-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-moz-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-o-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-webkit-keyframes bg-scrolling{0%{background-position:50px 50px}}@-moz-keyframes bg-scrolling{0%{background-position:50px 50px}}@-o-keyframes bg-scrolling{0%{background-position:50px 50px}}@keyframes bg-scrolling{0%{background-position:50px 50px}}.homebg{margin:0;width:100%;height:100%}.home{color:#999;font:400 16px/1.5 exo,ubuntu,segoe ui,helvetica,arial,sans-serif;text-align:center;height:100vh;width:100vw;background:#87898d url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjAgKDIwMjMwODIwLm0uMjI5NiBjNjFjM2E1KSAgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyNC0xMi0xMVQyMDozNjowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjQtMTItMTFUMjA6Mzg6MzcrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMTItMTFUMjA6Mzg6MzcrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjgzNDcxNmU1LTJmODgtOTc0ZS04MGMwLTJiMzljY2U1OTQzZiIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmUwYTliOTA4LTQ1YmYtOTQ0ZC04MGM2LTAwMzc4YzczMzg5MiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjBkNjlmNTdjLTRkMDMtMzA0ZC05MzVjLTlkZDhmNmUyODM3MSI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MGQ2OWY1N2MtNGQwMy0zMDRkLTkzNWMtOWRkOGY2ZTI4MzcxIiBzdEV2dDp3aGVuPSIyMDI0LTEyLTExVDIwOjM2OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMCAoMjAyMzA4MjAubS4yMjk2IGM2MWMzYTUpICAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjgzNDcxNmU1LTJmODgtOTc0ZS04MGMwLTJiMzljY2U1OTQzZiIgc3RFdnQ6d2hlbj0iMjAyNC0xMi0xMVQyMDozODozNyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjAgKDIwMjMwODIwLm0uMjI5NiBjNjFjM2E1KSAgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PlV0CKMAAAB+SURBVFiF7c6hFYMwFEDRpgZ0mC4adioi/i9HWCHInnJqngri3Qlu2vfPum7n2V6PkfOSeu+11lLK6MxXRKTWjmmaR0/u3qMD/9kibBG2CFuELcIWYYuwRdgibBG2CFuELcIWYYuwRdgibBG2CFuELcIW8dRWzktEjG78iIgLnFMVITxhC8EAAAAASUVORK5CYII=) repeat 0 0;background-blend-mode:overlay;-webkit-animation:bg-scrolling-reverse .92s infinite;-moz-animation:bg-scrolling-reverse .92s infinite;-o-animation:bg-scrolling-reverse .92s infinite;animation:bg-scrolling-reverse .92s infinite;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear;-o-animation-timing-function:linear;animation-timing-function:linear}.home:before{font-size:8rem;font-weight:100;font-style:normal}.hero-container{height:100vh;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;object-fit:contain}.hero-container h1{font-family:exo,sans-serif;background:linear-gradient(90deg,#9a2020,#3b3131,#af2525,#443a3a,#8d1010);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:3px 2px 10px rgba(0,0,0,.5);font-size:6em}.hero-container h2{font-family:exo,sans-serif;color:#1c1c1c}.hero-container>p{margin-top:8px;color:#fff;font-size:32px}.hero-btns{margin-top:32px}.hero-btns .btn{margin:6px}.description{color:gray}.fa-play-circle{margin-left:4px}@media screen and (max-width: 960px){.hero-container>h1{font-size:70px;margin-top:-150px}}@media screen and (max-width: 768px){.hero-container>h1{font-size:50px;margin-top:-100px}.hero-container>p{font-size:30px}.btn-mobile{display:block;text-decoration:none}.home-btn{width:100%;background:#252627}}:root{--primary: #252627}.btn{padding:8px 20px;font-family:exo,sans-serif;border-radius:20px;outline:none;border:none;cursor:pointer}.btn--primary{background-color:var(--primary);color:#fff;border:1px solid var(--primary)}.btn--outline{background-color:#ffffffc2;color:#252627;padding:8px 20px;border:1px solid #252627;transition:all .3s ease-out}.btn--medium{padding:8px 20px;font-size:22px}.btn--large{padding:12px 26px;font-size:24px}.btn--outline:hover{transition:all .3s ease-out;background:#000;color:#ffffffc2}.btn--large:hover,.btn--medium:hover{transition:all .3s ease-out;background:#ffffffc2;color:#000}.cards{padding:4rem;background:#fff}h1{text-align:center}.cards__container{display:flex;flex-flow:column;align-items:center;max-width:1120px;width:90%;margin:0 auto}.cards__wrapper{position:relative;margin:50px 0 45px}.cards__items{margin-bottom:24px}.cards__item{display:flex;flex:1;margin:0 1rem;border-radius:10px}.cards__item__link{display:flex;flex-flow:column;width:100%;box-shadow:0 6px 20px #387dff2b;-webkit-filter:drop-shadow(0 6px 20px rgba(56,125,255,.017));filter:drop-shadow(0 6px 20px rgba(56,125,255,.017));border-radius:10px;overflow:hidden;text-decoration:none}.cards__item__pic-wrap{position:relative;width:100%;padding-top:67%;overflow:hidden}.fade-img{animation-name:fade-img;animation-duration:2s}.cards__item__pic-wrap:after{content:attr(data-category);position:absolute;bottom:0;margin-left:10px;padding:6px 8px;max-width:calc(100% - 60px);font-size:12px;font-weight:700;color:#fff;background-color:#1f98f4;box-sizing:border-box}.cards__item__img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:cover;transition:all .2s linear}.cards__item__img:hover{transform:scale(1.1)}.cards__item__info{padding:20px 30px 30px}.cards__item__text{color:#252e48;font-size:18px;line-height:24px}@media only screen and (min-width: 1200px){.content__blog__container{width:84%}}@media only screen and (min-width: 1024px){.cards__items{display:flex}}@media only screen and (max-width: 1024px){.cards__item{margin-bottom:2rem}}.footer-container{background-color:#242424;padding:4rem 0 2rem;display:flex;flex-direction:column;justify-content:center;align-items:center}.footer-subscription{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin-bottom:24px;padding:24px;color:#fff}.footer-subscription>p{font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Arial,sans-serif}.footer-subscription-heading{margin-bottom:24px;font-size:24px}.footer-subscription-text{margin-bottom:24px;font-size:20px}.footer-input{padding:8px 20px;border-radius:2px;margin-right:10px;outline:none;border:none;font-size:18px;margin-bottom:16px;border:1px solid #fff}.footer-links{width:100%;max-width:1000px;display:flex;justify-content:center}.footer-link-wrapper{display:flex}.footer-link-items{display:flex;flex-direction:column;align-items:flex-start;margin:16px;text-align:left;width:160px;box-sizing:border-box}.footer-link-items h2{margin-bottom:16px}.footer-link-items>h2{color:#fff}.footer-link-items a{color:#fff;text-decoration:none;margin-bottom:.5rem}.footer-link-items a:hover{color:#e9e9e9;transition:.3s ease-out}.footer-email-form h2{margin-bottom:2rem}.footer-input::placeholder{color:#b1b1b1}.social-icon-link{color:#fff;font-size:24px}.social-media{max-width:1000px;width:100%}.social-media-wrap{display:flex;justify-content:space-between;align-items:center;width:90%;max-width:1000px;margin:40px auto 0}.social-icons{display:flex;justify-content:space-between;align-items:center;width:240px}.social-logo{color:#fff;justify-self:start;margin-left:20px;cursor:pointer;text-decoration:none;font-size:2rem;display:flex;align-items:center;margin-bottom:16px}.website-rights{color:#fff;margin-bottom:16px}@media screen and (max-width: 820px){.footer-links{padding-top:2rem}.footer-input,.btn{width:100%}.footer-link-wrapper,.social-media-wrap{flex-direction:column}}html,body{margin:0;padding:0;height:100%;overflow-x:hidden;background-color:#141414}._topPanelH_1dtk6_10{width:100%;display:flex;justify-content:center;align-items:center;margin-bottom:20px}._logo_1dtk6_18{width:80px}._title_1dtk6_22{text-align:center;font-size:2.5em;font-weight:700;text-transform:uppercase;color:silver;font-family:Oswald,sans-serif;margin-bottom:0;text-decoration:none}._titleLink_1dtk6_33,._titleLink_1dtk6_33:hover{text-decoration:none}._paragraph_1dtk6_40{color:#ccc}._guideWrapper_1dtk6_44{display:flex;justify-content:center;align-items:center;margin:0;width:100%}._wrapper_1dtk6_52{display:flex;height:100vh;background-color:#141414;overflow:hidden}._cont_1dtk6_59{flex-grow:1;width:85vw;height:90vh;background-color:#161616;border:1px solid gray;margin:50px}._panel_1dtk6_68{width:10vw;height:100vh;display:flex;flex-direction:column;align-items:center;padding:20px;background-color:#1c1c1c;color:#fff;overflow-y:auto;box-sizing:border-box;margin-right:10px;border-radius:20px;overflow-x:hidden}._buttonContainer_1dtk6_84{display:flex;justify-content:center;align-items:center;margin-top:2rem;gap:10px;width:100%}._renderButton_1dtk6_93{width:100%;height:50px;background-color:#e67e22;color:#fff;border:none;border-radius:8px;font-size:20px;font-weight:700;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 4px 6px #0000001a;transition:background-color .3s,transform .2s,box-shadow .3s}._renderButton_1dtk6_93:hover{background-color:#d2691e;transform:scale(1.05);box-shadow:0 6px 8px #00000026}._renderButton_1dtk6_93:active{background-color:#b35418;transform:scale(.98);box-shadow:0 2px 4px #0003}._shapeOptions_1dtk6_122{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:15px;justify-items:center;align-items:center}._shapeOption_1dtk6_122{width:4vw;height:4vw;border:2px solid #804047;border-radius:5px;background-color:#362929;color:#fff;font-size:12px;font-weight:700;background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;transition:background-color .3s,border-color .3s}._shapeOption_1dtk6_122:hover{background-color:#94183b;border-color:#94183b}._templateCont_1dtk6_154{display:flex;flex-direction:column;align-items:center;width:100%}._fpscounter_1dtk6_161{border:1px solid #00b822;margin:20px 0;text-align:center;width:100%}._fpscounter_1dtk6_161 p{color:#00740c;font-weight:700;margin:0;padding:5px 0}._popup_1dtk6_176{position:fixed;top:40%;left:50%;transform:translate(-50%,-50%);background-color:#494949cc;color:#fff;padding:20px;border-radius:8px;z-index:1000;width:300px;text-align:center;box-shadow:0 4px 8px #0003;opacity:0;animation:_fadeInOut_1dtk6_1 3s ease-in-out forwards}@keyframes _fadeInOut_1dtk6_1{0%,to{opacity:0;transform:translate(-50%,-40%)}10%,90%{opacity:1;transform:translate(-50%,-50%)}}._popupContent_1dtk6_206{display:flex;flex-direction:column;gap:10px}._entrance_1dtk6_212{background-image:url(/assets/entrance_icon-Bw9rlADa.png)}._wall_1dtk6_216{background-image:url(/assets/wall_icon-n0JNO-jd.png)}._room_1dtk6_220{background-image:url(/assets/room_icon-DkURboU-.png)}._stairs_1dtk6_223{background-image:url(/assets/stairs_icon-XrIVKcVc.png)}._floorSection_1dtk6_226{display:flex;flex-direction:column;align-items:center;gap:20px;background-color:#2d2d2d;padding:20px;border-radius:8px;box-shadow:0 4px 6px #0003;width:100%}._floorLabel_1dtk6_238{font-size:16px;font-weight:700;color:#fff;margin-bottom:10px;text-align:center}._floorList_1dtk6_246{display:flex;flex-direction:column;align-items:center;gap:15px;width:100%}._floorItems_1dtk6_254{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}._addFloorButton_1dtk6_262{background-color:#e67e22;border:none;border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color .3s,transform .2s}._addFloorButton_1dtk6_262:hover{background-color:#d2691e;transform:scale(1.1)}._addFloorButton_1dtk6_262:active{background-color:#b35418;transform:scale(.95)}._icon_1dtk6_285{width:20px;height:20px;filter:invert(1)}._floorButton_1dtk6_291{padding:10px 15px;font-size:14px;color:#fff;background-color:#3a3a3a;border:1px solid #555555;border-radius:8px;width:100%;text-align:center;cursor:pointer;transition:background-color .3s,transform .2s}._floorButton_1dtk6_291:hover{background-color:#4a4a4a}._floorButton_1dtk6_291._active_1dtk6_308{background-color:#1e90ff;color:#fff;font-weight:700}._floorInput_1dtk6_314{width:60%;padding:8px;font-size:14px;border:1px solid #ccc;border-radius:5px;background-color:#3a3a3a;color:#fff;text-align:center;transition:border-color .3s}._floorInput_1dtk6_314:focus{outline:none;border-color:#1e90ff}._floorActions_1dtk6_331{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:10px}._errorMessage_1dtk6_339{color:red;font-size:12px;margin-top:10px;text-align:center}._floorItemWrapper_1dtk6_345{display:flex;align-items:center;gap:10px;width:100%}._floorItem_1dtk6_254{padding:10px 15px;font-size:14px;color:#fff;background-color:#3a3a3a;border:1px solid #555555;border-radius:8px;text-align:center;cursor:pointer;flex-grow:1;transition:background-color .3s}._floorItem_1dtk6_254:hover{background-color:#4a4a4a}._activeFloor_1dtk6_369{background-color:#1e90ff;color:#fff;font-weight:700}._deleteFloorButton_1dtk6_375{background-color:#ff4d4d;border:none;border-radius:8px;padding:10px;color:#fff;cursor:pointer;transition:background-color .3s,transform .2s}._deleteFloorButton_1dtk6_375:hover{background-color:#e60000;transform:scale(1.1)}._deleteFloorButton_1dtk6_375:active{background-color:#c00;transform:scale(.95)}._activeModal_wxjvs_2{overflow-y:hidden}._modal_wxjvs_7,._overlay_wxjvs_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_wxjvs_8{z-index:999}._draggableHeader_wxjvs_21{cursor:move;padding:10px;background-color:#2c2f33;color:#fff;border-bottom:1px solid #444}._modalContent_wxjvs_31{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33f7;color:#fff!important;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}._title_wxjvs_47{margin-bottom:15px;color:#fff}._btnModal_wxjvs_52{padding:10px 20px;font-size:18px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:20px;display:block}._btnModal_wxjvs_52:hover{background-color:#0056b3}._closeModal_wxjvs_68{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_wxjvs_68:hover{background-color:#c82333}._form_wxjvs_84{display:flex;flex-direction:column}._formGroup_wxjvs_89{margin-bottom:15px}._formGroup_wxjvs_89 label{display:block;margin-bottom:5px;color:#fff}._formGroup_wxjvs_89 input,._formGroup_wxjvs_89 select,._formGroup_wxjvs_89 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_wxjvs_89 input::placeholder,._formGroup_wxjvs_89 textarea::placeholder{color:#888}._formGroupCheckbox_wxjvs_116{display:flex;flex-direction:row;vertical-align:middle;align-items:flex-end}._formGroupCheckbox_wxjvs_116 input{width:10%;margin-bottom:.88em}._addButton_wxjvs_132{background-color:#28a745!important;color:#fff;padding:8px 15px;border:none;border-radius:5px;cursor:pointer;margin-top:10px}._addButton_wxjvs_132:hover{background-color:#218838!important}._submitButton_wxjvs_147{background-color:#28a745!important;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;font-size:16px;margin-top:15px}._submitButton_wxjvs_147:hover{background-color:#218838}._pinList_wxjvs_162{list-style-type:none;padding:0;margin-top:15px}._pinItem_wxjvs_168{background-color:#444;padding:8px;margin-bottom:5px;color:#fff;border-radius:5px;display:flex;justify-content:space-between;align-items:center}._removeButton_wxjvs_179{background-color:#dc3545;color:#fff;border:none;padding:5px 10px;border-radius:5px;cursor:pointer}._removeButton_wxjvs_179:hover{background-color:#c82333}._activeModal_knxpl_3{overflow-y:hidden}._modal_knxpl_7,._overlay_knxpl_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_knxpl_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._modalContent_knxpl_22{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}h2{margin-bottom:15px;color:#fff}._btnModal_knxpl_42{padding:10px 20px;font-size:18px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:20px;display:block}._btnModal_knxpl_42:hover{background-color:#0056b3}._closeModal_knxpl_58{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_knxpl_58:hover{background-color:#c82333}._form_knxpl_74{display:flex;flex-direction:column}._formGroup_knxpl_79{margin-bottom:15px}._formGroup_knxpl_79 label{display:block;margin-bottom:5px;color:#fff}._formGroup_knxpl_79 input,._formGroup_knxpl_79 select,._formGroup_knxpl_79 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_knxpl_79 input::placeholder,._formGroup_knxpl_79 textarea::placeholder{color:#888}._formGroup_knxpl_79 input[type=checkbox]{width:auto;margin-right:10px}._submitButton_knxpl_110{background-color:#28a745;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer}._submitButton_knxpl_110:hover{background-color:#218838}._activeModal_xoq0w_3{overflow-y:hidden}._modal_xoq0w_7,._overlay_xoq0w_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_xoq0w_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._title_xoq0w_23{color:#fff}._paragraph_xoq0w_27{color:#ababab}._modalContent_xoq0w_31{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}._btnModal_xoq0w_51{width:70px;height:70px;background-color:transparent;border:none;border-radius:50%;cursor:pointer;margin:0;display:flex;justify-content:center;align-items:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAACAZJREFUeF7tXV1u2zgQHsp53JdFEjd+WuckcU6yyUm2PUnSkyQ9SVRgAadugr7sYoFFbC5IWYoskdQMOSO6WAUt+mOapL5vfvkzUjD9ZEVAZR19GhwmAjILwUTAREBmBDIPP2nAREBmBDIPP2nAREBmBDIPP2nAREAYgfX37yvQaml/A0Ch4DcNeglg/21+l1UPulSg7N93oL/Y/1K6XJyfP2bGODj80WnAev1jCcXupgIabhjAKxXAoyFlMT+7Z+iPtYujIKAGXSl9BaBWqCc0M9faiLn9Beavgz/aaEipAT7Ddva4WPy6157BL4o1yErAO/Dwh9gTBjpWAPe7bfEpJxFZCHACj5ZidqpKreHz4sPpR/aeER2OTsD62+tHpfwSn48HyELEaASYaEbp4gEhFN0mFpjmP4tdFdW8nZTGdFhtMj8nb02kZCKmvRM3/qT6HP8zKhGjEDAk9T1s9N5R7or7VPsc5eAr//5pDLMkTsDz5uUBGdmIS956/c8SZn+vFCjj9MOaYYIrDfcf5qe3eOWhtxQjwEiemm3vEOCLA9+FhRh9lXpbXKdqoo8aEQKw9n4sNfc9PIEIMRLYCcCBrx8v5mfXdIWV+UalrTsTIITMUqnV7pZ7aYOVgP2DPPVgOogtjwv8eq5IbWDXBFYChhxubpOD0R9ExFZezE8vMX1h2rARMAi+2l1zqy/mAWParDcvNwrUXcBxskVHLAQMSY0WAN+ajDr5Elh29prTPStc2pxMwJDT5QIfmVCVZl9Aa/WFI4lyakLLn2nQt6lL3MkEPG9ejdN1Rg9cUjKkYR5TwZJfDIyd7A+SCAjbyvRoZ8gMIO17cuQSIiFVyJIIeN68erZBjgb8mqOkGD6c1evyYn4WHRVFE/Bt83rX2zLc20e9LS5TUnei5JtdLcyKZ5ImhOZkNnZi14yiCDiYTGcBP1UljciG/IrZUnwD/WnW2lJsIqJdsRrYa4gGyswrYIqiyY0iwCn9e2W/mJ9G9dlkpIEYHEOud1mh1s6EkFhCC6LA8tl+DEBDjtNKv4Jld5Od0ncIKEo/rrmGAg+t/r1enC9Ix2DIBIQmkCz93l0zulP3z5PeV5uI0MJdDLlkAt6XHPZHQurMkCEpsXbWZLiz7UoB/F7vJcQ4db8WpBFg5+g1k/S+Iwhwh54xIA2Zo5qM2GzTsz6VnDwFTBy5bxIBPuZTwrAhElI+r6Opw0CNLqWuOfgWH6lLLyQCfNEPx5pICtC+77qCBS5h8YekNIJJBHQfqJYsCfOTSohvkZBLWLjMEJqA0KpnavSTCjbJRCRm6e2xOMwQngCP5+dSaU4SfOaBe65eAggRIZ4Az5HCmNiXE+xuX8FEiVH6Q0sTFEzQBPwMDtiaSSgeXEfVqdEJRkh8ZP8vCQj5KAogGOCbdSuGzB2tARwOh/JwlLYh8Lnt/sGyxLgEuLcec4eg4T1pWkxOIb1eNlGzXf8cFAA6IyZogHsJImcI2oDf2ZOogJQFfyIguHEjD36tLb6leaxgUjTAefohlwmqfZJD+NHqTzU5vZC3OlM6lglyn/OXCO8wwHg3hRJ2vDDjZnTChgBYVXdC339yEPDn5uXmxHF0UDLicZHDsTqMNkG+9J5rcYsifceSFGYmoNoRk0pyQoS4CdBwMT9DCxSFcF/bWii7foiCCXrCfbY1KEPACOFeFwBfUoiNPDjAN31waCKegHbWd0j5aFFHK/RzRGTjhZ7heQBQ/CKeAH/IRRqQQ/qau8GtzlJO4sXMiWt/BE2AmaR3PWikO7UxQEl9h8MBm7mRCPCzPr76SwGL7ZdjM4ZOQMAMje0AsUBJtfMmgsRNH5IGBM0QYRtOCpSx+uUyP2QNMF+wgyt159h1Gj0aGgvwfhjsWZqPEEKyBkgefKUAapIg095URRmzHFnwtgzR/ERpQCgBMWf3Oe/Q+giROnKIEQCf7Y9dhyJrgDVDVSGOJ1cQFTsRzMOHfJD5TAPcLwSrm3BLf7QGDGmBZHUR/700S0C5YLzF3hYKicsZSQQM3OMSM0UhAswDSYXDjdlz7ACljBllgmrJCB2CkjJF4ftjMgnh8/PLAxTucpqpy/FpBAyUeaEsy2J9QPiKEH89iqO+qN3kBYHCFqkS0iXGV1ZGhOyBQoOUVU+fgCVpQGOKwqUoky5J+yZe356xNaUZivu5iPZsuNumXISzEBCKivY+i6VuA9ZMpbZrLzo6jxwxbkKxEYAp0sclNakAh77ftfl9AngdPRsB7wlau/ba4U1KTtWVIOEgw3aLfvSNeFEfgE1YWu3YHySFEIz2WuEROHPEqgGNU8ZWIcxYNLvWWPOugm59CddpO4mKiUmZ8JDEIUtBmm6yOGhCESixrF6UgL6E9f1B58UL4kQgS1O2ZIvX4bqEVsQE9WJqX57gdnSNVkCxe0yttIisNdfDZqyIbRQCrDZUWaUpBYkprtQGpHoHjIav5qU89gPz518n5eKyegXJ+unHEn55q/ptvfAnVDsoYEJFEsfRoqBgjL1/QU8kMENuJ/VzcROYzQT1TJKLCL85SgV28B0/Y5mboyGgHa66wsBkxJEdGOAl1pGQw1fWlNJYqq2rRpDUWLnC3qPwARhQazIKUFdcL3IrQJdbpmq6mGegtDkKDfBN+KA+tDmCAurKBjqBVxnaaKmOlARqSlPAxbQ9agIwD/Czt5kIyMzgRMBEQGYEMg8/acBEQGYEMg8/acBEQGYEMg8/acBEQGYEMg//Hw8wdqxr93OoAAAAAElFTkSuQmCC);background-size:60%;background-position:center;background-repeat:no-repeat;transition:transform .2s}._btnModal_xoq0w_51:hover{transform:scale(1.1);background-color:#ffffff1a}._btnModal_xoq0w_51:active{transform:scale(.95)}._iconImage_xoq0w_78{width:100%;height:100%}._closeModal_xoq0w_83{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_xoq0w_83:hover{background-color:#c82333}._form_xoq0w_99{display:flex;flex-direction:column}._formGroup_xoq0w_104{margin-bottom:15px}._formGroup_xoq0w_104 label{display:block;margin-bottom:5px;color:#fff}._formGroup_xoq0w_104 input,._formGroup_xoq0w_104 select,._formGroup_xoq0w_104 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_xoq0w_104 input::placeholder,._formGroup_xoq0w_104 textarea::placeholder{color:#888}._formGroup_xoq0w_104 input[type=checkbox]{width:auto;margin-right:10px}._submitButton_xoq0w_135{background-color:#28a745;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer}._submitButton_xoq0w_135:hover{background-color:#218838}._activeModal_hib35_2{overflow-y:hidden}._modal_hib35_7,._overlay_hib35_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_hib35_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._modalContent_hib35_24{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}h2,h3{margin-bottom:15px;color:#fff}._btnModal_hib35_47{padding:10px 20px;font-size:18px;background-color:#aa5c5c;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:10px 0;display:block}._btnModal_hib35_47:hover{background-color:#994f4f}._closeModal_hib35_64{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_hib35_64:hover{background-color:#c82333}._form_hib35_81{display:flex;flex-direction:column}._formGroup_hib35_87{margin-bottom:15px}._formGroup_hib35_87 label{display:block;margin-bottom:5px;color:#fff}._formGroup_hib35_87 input,._formGroup_hib35_87 select,._formGroup_hib35_87 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_hib35_87 input::placeholder,._formGroup_hib35_87 textarea::placeholder{color:#888}._formGroup_hib35_87 input[type=checkbox]{width:auto;margin-right:10px}._addButton_hib35_122{background-color:#28a745;color:#fff;padding:8px 15px;border:none;border-radius:5px;cursor:pointer;margin-top:10px}._addButton_hib35_122:hover{background-color:#218838}._roomTypeList_hib35_137{list-style-type:none;padding:0;margin-top:15px}._roomTypeItem_hib35_144{background-color:#444;padding:8px;margin-bottom:5px;color:#fff;border-radius:5px;display:flex;justify-content:space-between;align-items:center}._removeButton_hib35_156{background-color:#dc3545;color:#fff;border:none;padding:5px 10px;border-radius:5px;cursor:pointer}._removeButton_hib35_156:hover{background-color:#c82333}._saveMapContainer_1k6lk_1{display:flex;flex-direction:column;align-items:center;margin:10% 10px}._saveMapForm_1k6lk_8{display:flex;flex-direction:column;gap:10px;align-items:center}._saveMapInput_1k6lk_15{padding:5px;border:1px solid #ccc;border-radius:5px;width:100%}._saveMapButton_1k6lk_22{width:100%;height:50px;background-color:#e67e22!important;color:#fff!important;border:none;border-radius:8px;font-size:20px;font-weight:700;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 4px 6px #0000001a;transition:background-color .3s,transform .2s,box-shadow .3s;-moz-appearance:none;appearance:none;-webkit-appearance:none}._saveMapButton_1k6lk_22:hover{background-color:#d2691e!important;transform:scale(1.05);box-shadow:0 6px 8px #00000026}._saveMapButton_1k6lk_22:active{background-color:#b35418!important;transform:scale(.98);box-shadow:0 2px 4px #0003}body{margin:0;padding:0;height:100%;background:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;background-color:#f7f9fc}.spinner{border:8px solid #f3f3f3;border-top:8px solid #1e90ff;border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-container p{margin-top:20px;font-size:18px;color:#2c3e50;font-weight:500}._main_ctyyq_7{position:relative;width:100vw;height:100vh;overflow:hidden}._toolbar_ctyyq_14{width:100%;padding:10px 20px;position:fixed;top:0;z-index:3;background-color:#ffffffe6;box-shadow:0 4px 8px #0000001a;display:flex;align-items:center}._toolbarContainer_ctyyq_26{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1200px;margin:0 auto}._logoContainer_ctyyq_35{display:flex;align-items:center;flex-shrink:0}._searchFilterContainer_ctyyq_52{flex-grow:3;display:flex;align-items:center;gap:150px;justify-content:flex-start;padding:0 10px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d6d6d6 transparent}._searchFilterContainer_ctyyq_52::-webkit-scrollbar{height:6px}._searchFilterContainer_ctyyq_52::-webkit-scrollbar-thumb{background-color:#d6d6d6;border-radius:10px}._profileContainer_ctyyq_73{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0}._mapTitle_ctyyq_41{font-size:1.5rem;font-weight:700;text-transform:uppercase;color:#333;margin:0 20px;flex-grow:1;text-align:center;font-family:Oswald,sans-serif}._searchFilterContainer_ctyyq_52{display:flex;align-items:center;gap:20px}._profileContainer_ctyyq_73{display:flex;align-items:center}._mapContainer_ctyyq_103{position:relative;top:0;left:0;width:100vw;height:100vh;z-index:1;background-color:#f2f2f2}._mapControlsContainer_ctyyq_113{position:absolute;bottom:20px;right:20px;z-index:1}._nextButtonContainer_ctyyq_120{position:absolute;bottom:20%;left:50%;transform:translate(-50%);z-index:5}._nextButton_ctyyq_120{font-size:1.5em;font-weight:700;padding:15px 30px;background-color:#007bff;color:#fff;border:none;border-radius:50px;box-shadow:0 4px 15px #007bffbf;cursor:pointer;animation:_pulse_ctyyq_1 2s infinite;transition:transform .2s ease-in-out}._nextButton_ctyyq_120:hover{transform:scale(1.1);background-color:#0056b3}@keyframes _pulse_ctyyq_1{0%{box-shadow:0 0 15px #007bff80}50%{box-shadow:0 0 30px #007bffcc}to{box-shadow:0 0 15px #007bff80}}._floorSelectorContainer_ctyyq_158{position:fixed;bottom:50px;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;z-index:10;padding:10px;background-color:#ffffffe6;border-radius:20px;box-shadow:0 4px 10px #0003}._floorSelector_ctyyq_158{display:flex;align-items:center;gap:10px}._floorIcon_ctyyq_179{width:40px;height:40px}._floorDropdown_ctyyq_184{font-size:1.5em;padding:10px 20px;border-radius:10px;border:2px solid #007bff;outline:none;background-color:#f9f9f9;color:#333;transition:all .3s ease-in-out;cursor:pointer}._floorDropdown_ctyyq_184:hover,._floorDropdown_ctyyq_184:focus{border-color:#0056b3;background-color:#e6f7ff}._floorDropdown_ctyyq_184 option{font-size:1.2em;padding:5px;background-color:#fff;color:#333}._wrapper_glpc4_1{position:relative;display:flex;justify-content:center;margin:0 auto;z-index:105;max-width:600px;width:100%;padding:10px}._searchBar_glpc4_12,._directionsContainer_glpc4_13{position:relative;display:flex;align-items:center;background-color:#fff;padding:10px;border:1px solid #ddd;border-radius:30px;box-shadow:0 4px 8px #0000001a;flex-wrap:nowrap}._inputField_glpc4_26{flex-grow:1;font-size:16px;border:1px solid #ddd;border-radius:30px;outline:none;margin-right:10px;min-width:0;margin-top:12px}._dropdown_glpc4_38{position:absolute;top:100%;left:0;background-color:#fff;border:1px solid #ddd;border-radius:5px;width:100%;max-height:200px;overflow-y:auto;z-index:9999;box-shadow:0 4px 8px #0003}._dropdownItem_glpc4_53{padding:10px;cursor:pointer;transition:background-color .3s ease,color .3s ease}._dropdownItem_glpc4_53:hover{background-color:#007bff;color:#fff}._buttons_glpc4_65{display:flex;justify-content:flex-end;gap:10px}._iconButton_glpc4_71{display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;padding:12px 20px;border-radius:10px;background-color:#f0f0f0;color:#000;cursor:pointer;font-size:16px;transition:background-color .3s ease}._iconButton_glpc4_71:hover{background-color:#e0e0e0}._iconButton_glpc4_71 img{width:20px;height:20px}._directionsContainer_glpc4_13{gap:10px}._directionsInputs_glpc4_99{display:flex;width:100%;gap:10px}*{font-family:Poppins,sans-serif}._wrapper_1mlzu_6{display:flex;justify-content:center;width:100%;overflow-x:hidden}._scrollableContainer_1mlzu_13{display:flex;gap:10px;overflow-x:auto;white-space:nowrap;padding:0;width:100%;overflow-y:hidden}._buttonValue_1mlzu_23{border:2px solid rgb(37,111,123);padding:.5em 1.5em;border-radius:3em;background-color:transparent;color:#256f7b;cursor:pointer;transition:background-color .3s,color .3s;white-space:nowrap}._buttonValue_1mlzu_23:hover,._buttonValue_1mlzu_23:focus{background-color:#21626c;color:#fff}._active_1mlzu_40{background-color:#256f7b;color:#fff}._scrollableContainer_1mlzu_13::-webkit-scrollbar{height:6px}._scrollableContainer_1mlzu_13::-webkit-scrollbar-thumb{background-color:#256f7b;border-radius:3px}._roomInfoPanel_10nwd_2{position:fixed;top:0;right:-350px;width:350px;height:100%;background-color:#f7f9fc!important;box-shadow:-4px 0 12px #0000001a;transition:right .4s cubic-bezier(.25,.8,.5,1);border-top-left-radius:20px;border-bottom-left-radius:20px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;align-items:center;z-index:6}._open_10nwd_21{right:0}._closeButton_10nwd_26{position:absolute;top:15px;right:15px;font-size:28px;background:none;border:none;color:#555;cursor:pointer;transition:color .3s}._closeButton_10nwd_26:hover{color:#000!important}._roomImageWrapper_10nwd_43{width:100%;border-radius:12px;overflow:hidden;margin:20px 0;box-shadow:0 4px 10px #0000001a}._roomImage_10nwd_43{width:100%;height:auto;display:block;border-radius:12px}._roomHeader_10nwd_58 h2{color:#333;font-size:1.5rem;font-weight:600;text-align:center;margin:0;color:#000!important}._roomDescription_10nwd_67 p{color:#666!important;line-height:1.6;text-align:center}._floorInfo_10nwd_73 p{color:#666!important;font-size:1.1rem;margin-top:10px;text-align:center}._navigateButton_10nwd_81{display:flex;align-items:center;gap:10px;padding:10px 20px;margin-top:20px;background-color:#007bff;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s}._navigateButton_10nwd_81:hover{background-color:#0056b3}._navigateIcon_10nwd_99{width:20px;height:20px}._modalBackground_15sjt_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}._modalContent_15sjt_14{background:#fff;padding:20px;border-radius:8px;width:400px;box-shadow:0 2px 10px #0000001a;animation:_fadeIn_15sjt_1 .3s ease-out}._reportButton_15sjt_22{background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;outline:none}._reportIcon_15sjt_33{width:40px;height:40px;transition:transform .2s ease}._reportButton_15sjt_22:hover ._reportIcon_15sjt_33{transform:scale(1.1)}._inputField_15sjt_44,._textareaField_15sjt_45{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;font-size:14px}._textareaField_15sjt_45{height:100px;resize:none}._buttonGroup_15sjt_59{display:flex;justify-content:flex-end}._submitButton_15sjt_64{background:#4caf50;color:#fff;border:none;padding:10px 15px;border-radius:4px;cursor:pointer;margin-right:10px}._cancelButton_15sjt_74{background:#f44336;color:#fff;border:none;padding:10px 15px;border-radius:4px;cursor:pointer}@keyframes _fadeIn_15sjt_1{0%{opacity:0}to{opacity:1}}._container_14el6_1{max-width:1200px;margin:0 auto;padding:20px;text-align:center;font-family:Roboto,sans-serif;overflow:hidden}*{font-family:Exo,sans-serif}._mapTitle_14el6_14{color:#2c2f33;text-transform:uppercase}._categories_14el6_25{margin-bottom:20px;text-align:start;color:#333}._actionButtons_14el6_31{display:flex;justify-content:center;gap:20px;margin-bottom:30px}._createMapsButton_14el6_38{padding:10px 20px;font-size:16px;background-color:#f1153b;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._createMapsButton_14el6_38:hover{background-color:#b70526;transform:translateY(-2px)}._searchBar_14el6_54{margin-bottom:30px;text-align:center;margin-top:5em}._searchBar_14el6_54 input{width:33vw;padding:10px;font-size:16px;border:1px solid #ccc;border-radius:8px;outline:none;transition:all .3s ease}._searchBar_14el6_54 input:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}._mapsContainer_14el6_77{display:flex;justify-content:space-between;gap:20px;margin-top:30px}._mapColumn_14el6_84{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:10px;background-color:#f9f9f9;border-radius:8px;box-shadow:0 2px 10px #0000001a}._tile_14el6_99{width:90%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#fff;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:2px solid #232323;border-radius:12px;margin-bottom:20px}._tile_14el6_99:hover{transform:scale(1.05);box-shadow:#0006 0 8px 18px;background:#f1153b}._imgStyle_14el6_121{width:80%;margin-top:10px;margin-bottom:5px}._dragging_14el6_127{background-color:#1e90ff;transform:scale(1.06) rotate(3deg);box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}._plusButton_14el6_135{width:50px;height:50px;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease-in-out;background:#4ebc3b;margin-right:20px}._plusButton_14el6_135 img{width:50px;height:auto;margin-left:0}._plusButton_14el6_135:hover{transform:scale(1.1);background:#46be2f}._header_14el6_159{display:flex;align-items:center;justify-content:space-between;background-color:#f8f9fa;border-bottom:1px solid #ddd;padding:10px 20px;box-shadow:0 2px 4px #0000001a}._header_14el6_159 ._logo-wrapper_14el6_169,._header_14el6_159 ._profile-wrapper_14el6_170{display:flex;align-items:center}._header_14el6_159 h1{font-size:1.5rem;color:#333;margin:0 auto;font-weight:600;text-align:center;flex-grow:1}._logo-wrapper_14el6_169{margin-right:auto}._profile-wrapper_14el6_170{margin-left:auto}@media (max-width: 768px){._mapsContainer_14el6_77{flex-direction:column}._mapColumn_14el6_84{width:100%;margin-bottom:20px}._searchBar_14el6_54 input{width:100%}}._modalOverlay_oxbvx_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._modalContent_oxbvx_15{position:relative;background-color:#fff;padding:20px;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;text-align:center;animation:_fadeIn_oxbvx_1 .3s ease-out}._mapImage_oxbvx_28{width:100%;height:auto;border-radius:8px;margin-bottom:15px}._title_oxbvx_35{font-size:1.5rem;color:#333;margin-bottom:10px;text-transform:uppercase}p{margin:5px 0;font-size:.9rem;color:#555}a{color:#1e90ff;text-decoration:none;font-weight:700}a:hover{text-decoration:underline}._buttonContainer_oxbvx_58{display:flex;justify-content:space-between;margin-top:20px;gap:10px}button{padding:10px 15px;font-size:.9rem;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s,transform .2s}button:active{transform:scale(.95)}button:disabled{background-color:#d3d3d3;color:#888;cursor:not-allowed}._viewButton_oxbvx_84{background-color:#1e90ff;color:#fff}._viewButton_oxbvx_84:hover{background-color:#155a8a}button:disabled._viewButton_oxbvx_84{background-color:#d3d3d3;color:#888}._editButton_oxbvx_98{background-color:orange;color:#fff}._editButton_oxbvx_98:hover{background-color:#cc8400}button:disabled._editButton_oxbvx_98{background-color:#d3d3d3;color:#888}._deleteButton_oxbvx_112{background-color:#ff4c4c;color:#fff}._deleteButton_oxbvx_112:hover{background-color:#c00}._closeButton_oxbvx_121{margin-top:20px;padding:10px 15px;background-color:#f5f5f5;color:#333;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._closeButton_oxbvx_121:hover{background-color:#e0e0e0}@keyframes _fadeIn_oxbvx_1{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}._editPopupOverlay_oxbvx_146{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._editPopupContent_oxbvx_160{background-color:#fff;padding:20px;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;text-align:center;animation:_fadeIn_oxbvx_1 .3s ease-out}._editField_oxbvx_171{margin:15px 0;text-align:left}._editField_oxbvx_171 label{display:block;margin-bottom:5px;font-size:.9rem;color:#555}._editField_oxbvx_171 input{width:100%;padding:10px;font-size:.9rem;border:1px solid #ccc;border-radius:5px;box-sizing:border-box}._editPopupButtons_oxbvx_192{display:flex;justify-content:space-between;margin-top:20px;gap:10px}._submitButton_oxbvx_199{background-color:#4caf50;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._submitButton_oxbvx_199:hover{background-color:#45a049}._cancelButton_oxbvx_213{background-color:#f44336;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._cancelButton_oxbvx_213:hover{background-color:#d32f2f}._editIcon_oxbvx_227{width:20px;height:20px;margin-left:10px;cursor:pointer;transition:transform .2s ease}._editIcon_oxbvx_227:hover{transform:scale(1.1)}._modalOverlay_1aum1_2{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:999}._denyReason_1aum1_13{display:flex;flex-direction:column;margin-top:10px;border-radius:20px}._denyReasonTextArea_1aum1_19{padding-bottom:4rem}._denySubmitButton_1aum1_23{color:#fff;margin-right:10px}._modal_1aum1_2{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:12px;box-shadow:0 8px 16px #0000004d;width:420px;max-width:90%;z-index:1000;padding:30px;animation:_fadeIn_1aum1_1 .3s ease}@keyframes _fadeIn_1aum1_1{0%{opacity:0;transform:translate(-50%,-55%)}to{opacity:1;transform:translate(-50%,-50%)}}._modalContent_1aum1_57{display:flex;flex-direction:column;align-items:flex-start}h2{font-size:1.8rem;font-weight:600;margin-bottom:20px;color:#333;text-align:center;width:100%}form{width:100%}label{font-size:1rem;font-weight:600;margin-bottom:5px;display:block;color:#555}input,select{width:calc(100% - 10px);padding:10px;margin-bottom:15px;border:1px solid #cccccc;border-radius:6px;font-size:1rem}button{background-color:#007bff;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}button:hover{background-color:#0056b3;transform:scale(1.05)}._cancelButton_1aum1_111{background-color:#dc3545;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._cancelButton_1aum1_111:hover{background-color:#a71d2a;transform:scale(1.05)}._approveButton_1aum1_127{background-color:#28a745;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._approveButton_1aum1_127:hover{background-color:#218838;transform:scale(1.05)}._denyButton_1aum1_143{background-color:#ffc107;color:#212529;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._denyButton_1aum1_143:hover{background-color:#e0a800;transform:scale(1.05)}._buttonGroup_1aum1_160{display:flex;justify-content:space-between;gap:15px;margin-top:20px}._error_1aum1_167{color:red;font-size:.85rem;margin-top:-10px;margin-bottom:10px}p{font-size:1rem;margin:10px 0;line-height:1.6}a{color:#007bff;text-decoration:none;transition:color .3s ease}a:hover{color:#0056b3}@media (max-width: 480px){._modal_1aum1_2{width:90%}}._modalOverlay_1x897_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._modalContent_1x897_17{background-color:#fff;padding:2rem;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;animation:_fadeIn_1x897_1 .3s ease-out}._title_1x897_28{color:#333;text-transform:uppercase;font-size:1.5rem;margin-bottom:1rem;text-align:center}._modalButtons_1x897_37{margin-top:1.5rem;display:flex;justify-content:space-between}._modalSubmitButton_1x897_44{padding:.8rem 1.5rem;font-size:1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;background-color:#007bff;color:#fff;transition:background-color .3s,transform .2s}._modalSubmitButton_1x897_44:hover{background-color:#0056b3;transform:scale(1.05)}._modalCancelButton_1x897_62{padding:.8rem 1.5rem;font-size:1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;background-color:#f1f1f1;color:#333;transition:background-color .3s,transform .2s}._modalCancelButton_1x897_62:hover{background-color:#e0e0e0;transform:scale(1.05)}._formData_1x897_80{display:flex;flex-direction:column;gap:1rem}label{font-size:.9rem;color:#666;margin-bottom:.5rem;display:block}input{padding:.7rem;font-size:1rem;border:1px solid #ddd;border-radius:8px;outline:none;transition:border-color .3s}input:focus{border-color:#007bff;box-shadow:0 0 4px #007bff80}@keyframes _fadeIn_1x897_1{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}._toast_t4ud7_1{position:fixed;bottom:20px;right:20px;padding:10px 20px;border-radius:5px;box-shadow:0 2px 5px #0000004d;cursor:pointer;animation:_fadeInOut_t4ud7_1 3s ease-in-out;color:#fff;font-size:16px}._toast_t4ud7_1._success_t4ud7_14{background-color:#4caf50}._toast_t4ud7_1._error_t4ud7_18{background-color:#f44336}@keyframes _fadeInOut_t4ud7_1{0%,to{opacity:0}10%,90%{opacity:1}}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-ext-300-normal-Chhwl1Jq.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-300-normal-BLLmCegk.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-300-normal-DJfICpyc.woff2) format("woff2"),url(/assets/roboto-cyrillic-300-normal-Dg7J0kAT.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(data:font/woff2;base64,d09GMgABAAAAAAXcABIAAAAAChAAAAV+AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghYCYM8EQwKg3yDXwsUABIUATYCJAMkBCAFgnwHIAyCOhuqCCAuDrI5ZN4aokERTSyd8sbnRhCPOT/nSbL5I3uJOVkEOmLbY09VmSg+s7XZR8z2UPVFzdPPH95petP0dBQVoUgu+1/NvnDlsFu1bLZnPtp/9TZG4R6s2iHuHinG8i80DiPfXaFiKo9+oTAOlEMIi8PciP2lbTwhqe7chkVUBQSIAQDBRxAECKlFFzJ0eHQySGIAUgAO4c44Imqnv6i9oQq0lzWwyhZYXdBUcx6AsNu1WSdtEQPnkuMESEM7pl9mqQImBxgY1QCfy4gJcWHgDzSMEycHS71LChLIdQCmt4MkUEQABQiXIoL4RBn93fLxUbiAIo+EvYZx/4CCVEjvs3TZR/d+KY2uf2Brysgkn1T2GE8NUzzFePIJ5Q4ozc1HVW1SmEIul2LNIWN6o2qmKXSQUlcTNfeKQpWFsieK476NC2BpOwaD+IxQyNnsXfI/O7ROGIjMm2uDYp3QkPJglPx2qKytWDayQW2dhKI2GZ6YbpRBJ5KToxZPJMNpWUExGpMiex9iE9kOFJmSKafI1AyHA7M61vYlGRmeNmgyOUznRBZ9tCKHo0Jqwl8761iPsdemE9MT0nH/0BocOLRs5jgagg9N5PCQ5t6qdrjHlOVod7nmgeF1upa11U+ip4geWGfJnjxJTBpxuF8Wak42ybZaHjrzQuBZw38Stckw7embuKn7ZkunqKa0M0NntAm2wcB6TFJ6SLDt5TIWQ2vbelhBRG0OxdY3t5Cx5KSL3eVARFl0lw/Hp5oP01r/rM/qYJMp6Zgcv6sQuu6DTuZZ24GvwwmZGWEbgms20UYPlTcDQeGjUhQAEABQbJh+Qospn+KFz3H4SYkukTK6/ysK88WDovzOgu27yiokV81WWCmr8nftf+uj8OQXWg68++mZj9+eNnXwnfDkW4qDb0en3tW7ZsmQCWdGvD5t4usb0vIxHPuYXjIbxLyig8O2/kbbPr1BkznHJUevG39z4umTHeTwxtRq15UnT3eWo4nsn2qhbnYWeN+3evHZn1rHa/q3/Qsvf906Ci97vnik3/6yB7qO+Bu1oYDsmhVGRjdJHJzYHkwRGw54uDkA+yF3KO10du5viRWLlJQ9MFa0vLRwuI7gxrx7LMMyqOxqhEq/f4ZNeMmf4o2A4F7eWTk9h7+K4fctMefMu0gp2vzvjp14o98gMG0l+SlyR2TIXIKR4s0lgqFVhnuv+Q0wJdVDHR0gctB696O6IZDJSNGaArPdua+yjl2lmtBCKAG/HECAOHANKOVq5YIAqklxwEftn/MK+v7uV/kA8NhPRe0B4HWZ/Ok/yf+vB9V+I0CAAkDAW52LIejxT5IbFlRD6FmBPs1ieuWX+4Szkm51B/PM6tjcIQQIOEc5GYghAOSDQm1EHAF8liKCmACYy8UVFSrZiyryuViut8oNog7NqTIuXMkm31gCltM0BOvwxM7R+lVsKaCOAooog2FLLQ2UYkcV5RTBqKERRiN2RBNBECHEkkQINjhiiz2J1FJILU3UYkM05ZRSRhOpMBpopJxaaqABOx1wwg0vAvYiJtGxcinNVFFAQ7pSaoKojTraadDGJKLFlDBqqaX0KgYlghqKsIUS8KCqjsTAlkZihNF4vB/VAqMYW0QAII1i+pU2trK0gRdZ1Ub4PLJ4wnmeZ0cLfWWQbMO5VGdDHPWsHXeqnmXx7jWsW+ZHuYbN4OLxniNOWO8ohRR3fttsT6MOLzzFTxjsbKKREnh0MNZW7AhdO6KUSfH+4WWjrU/B58t7bSz/5Zt5WyyNt0yc/U237Mf6qeZbBlTT1jzwPnTwN90ygdfxOb6JUzRIUB14Hu/rKtCP1OsgTJ1h/Qg0KH9r3szn+EVOzQBX3y0dErMOihluSRoBAAAA) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAAToAA4AAAAABYQAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgc6Xg4WNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARIAAAEUGjg/4WhlYWQAAANYAAAANgAAADb8WdJpaGhlYQAAA5AAAAAfAAAAJAqpBZJobXR4AAADsAAAAB8AAAAkFzL/w2xvY2EAAAPQAAAAEwAAABQBMAGDbWF4cAAAA+QAAAAcAAAAIAArAOpuYW1lAAAEAAAAANMAAAF8HEg5EXBvc3QAAATUAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCED6HQqncrZIq190ljBKhZyCt+81J1hksktz4TxPz1qRASwkgBgO47Nyrj3XurQoiJc0C35VhTpA7fWCdMAeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8AD3jaDcwBRANhGAbg9/v++3fS1P6rayC6bWYKtGsDCVApGAHUJQUQApUaUVIqCAlAFgIGIAhNyagNEQACOVMEyn23AeB5oLEBqIKuQyGBPiQxCHie8ZQhMqQ8KpGnCtE0N8rSkXtKfrISIY4iXf+raTuq8va/4Z0o4OCEA4BRjUMr1I3eNArQMFvZDExpysmNWU7aTnE2w8ZNOX7RMVZ4JnIXy9MFMVWIztVe56358/3a/uLTF2nVaJPKV8/k397Ix2OKbBqXd/m9lkjaNEH9YKxau7yuW9AYAGjId1VW+e5I2s7nS7RyfPAwJ1u8PLm4ZF3SjCtNWljbny/mjipxLIdxqIs9m4eeBWwkJAd0AcfKVS8AAAABAAAAAiMSqglmyl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS4/og/dUJGghzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwGn+S+GfK6cUUAQVcAIAbC0ESQB42mPuYUhhgALGTxDMmsVQy7SNIR7M3vCvGQBr4QgGAHjaY2Bg0ITDBIY6IOwCABGXArQAeNpjYGRgYOBk6GcQY4hkYAXzEICNgREAGPMBFnjaTYw1kgIBFAV73TfecKKN1l2SdcE9wxmrwp1rcAKOwfF4OPWt+40Au1hssLa5B6QYzniNEwYzXueY/ow3VvLNFd7ilOKMt5XHZnwsAoemqsoLl6rOpC7IUtXkcTBlFerYXFLEVWZSpqHdUOLjn0++CRDVPueGC66IUCGnaWrO8eFi48gSmNRpyCuUMSZvX3PLI68Tu5I9EsHEpkWRLPXVf2Gs/OtTXqVHfZHM/qAy+KWisiliyv4pk+dC9E5RZRBZfNWYmElDU6etXeBiBO+kNXoAeNpjYGYAg/9ZDCkMWAAAKh8B0QA=) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-greek-300-normal-Bx8edVml.woff2) format("woff2"),url(/assets/roboto-greek-300-normal-D3gN5oZ1.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-vietnamese-300-normal-PZa9KE_J.woff2) format("woff2"),url(/assets/roboto-vietnamese-300-normal-CAomnZLO.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-ext-300-normal-BzRVPTS2.woff2) format("woff2"),url(/assets/roboto-latin-ext-300-normal-Djx841zm.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-300-normal-BizgZZ3y.woff2) format("woff2"),url(/assets/roboto-latin-300-normal-BZ6gvbSO.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-ext-400-normal-D76n7Daw.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-400-normal-b0JluIOJ.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-400-normal-BiRJyiea.woff2) format("woff2"),url(/assets/roboto-cyrillic-400-normal-JN0iKxGs.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAAXYABIAAAAACgAAAAV8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghUCYM8EQwKg2iDTgsUABIUATYCJAMkBCAFgnQHIAyCSRucCFFUkDIBfhzkZKcmnOCkolAQnoSyxYqFpYXieXb+xgO83X+ee8cPWukL624junMJs9RsoCpuxSopamF+Pi97f6xC6QrJFHRKpFCmII8L4C95A3y0rJouCIdkJgncD/oHj/4Ptd1Rm0IYXCtKb1yQDmO4797U2dlr/Om01LkOVpT2L12pLVa73QtgLIKxr2n9efiAIhiyAGBi25Coekds8qZninvglyCgAwhKQRDQspY1tF9oNA0iKTQN4IRtO0c8LdtzW2orwfLCWqaCzZfl11dfBsTdnaQ3h2kZ2eOZEwgbeF/yBVwQgZ2DvRwJfK0Dj4wLA3+w4XAB/M8FxYoIY9AzkO6S7TOGwEWk2ZbiCu/nOQToKUU5oq4x6zbE1HUGA3Rl83vzuil5fuJX+RchWrDatW53jdtwnlgZhpwlhXP0dtJr7vYxsPT/PLq40lhiT5ruQpdOGGT7LM3N6cMWw/ws9PIfIIcEwLJDUR3FYQgfiUJzxskPq2Qy1ggbiezOIJylETciLCiNZCMFSKaDJqeFHmOPg5ePsYC2syXS6aE6P7V6nJwhSOIdAc0Ke4n7Xb8SyWqkqXiaf5zcKrRPwvfqdPtrZBtL2slMnRuMa42LvcxYpRRZvA/n8T7tUCIaeZ2q3j7uEhVDkc8XZrrMEm9RfK85lv64HemnFa6lmfuYFI7x/oVR8InaSyj5acula+ve+LU96YKCxZUXd9MwGtXGUoutAUxK5q2NmLMD2mz+aZ2N4WzsRo9j+buXk1pEpRttzy1KfocMeUz6dmDs9k7cweWb9rsbsde9m5w+h/OOcb2wOG7o3RICJCrFpqEEFRhZH9oDuAjooYPPICPCo0jTpMlTRj1BOey1KZvbSstFFVnKclSBPKn7/nPJ6C8PU1DPT6+kYz8/gBNueLjm39PQ/QP9dT+ltmVK4aRWsRS+SabvokUfQ1Z/zGWygF8Mr9+/8b206dV6Ljp9GGVza+Jnt9+d8hVurXeJt93vjq6U3ZwJkOx4aa9k2z3+d04j7me6E29d13G+Vvxzc/2x9y4pOP96WSx98PKAi/qn3un2CdsyOa1xdLjn/jNOzIUF+AcAFPL/LuBa/t/+/00Wx7+LZarhcLSj7qhqn2s859Wt3etQ2/+kfRxqzc5ou8fJDwOT0QDzOKLLr2WqruDlpp0t2a9YhvLuvI6qnb1VNjpkZXJDl/FYKm5xTmMZ2tdaepL9fasvEPAi1srweZuqi+ubWBAA9duqOh3Aq2fXLZ48tfLYbwcI6FRFSox5GgsC4uTo+6gDX3L73r+JVpUAH39Qk4BvUOKXX+7fO5WxrANQiSBQXPZPRnXwL6t/kZURIvyq5E7nKYd/+oHsWlclBNZezqf/HAGhco/laHwB9IjiFIGA0gW4QlrhDPtsR9DxoiPqeXgx8S2mzZGZYXLk1qLzPbQCLlIvLSaeKN70nUj5TPIVKsUgsWqVoFQqU4hRrQ6jDiVahCAhYiUJsZwjklEiVgFWPdZyiRglGlTKVysFo1adMqxqRNRGB07ceCHMeI4bn835eBCWSYtaZUqUqmdxhRPCsFgl1zMIEaoVIhECVMoeIbGn6hD5JrKmH9WIUYTEBZpLoIi4tu4srS3CQRWXBjxE2jOODD23Tq8ZEC06EsK9yPGl5oa3Y1q4+6JJksQg5/nLSZoT4710FclcN06s6pO8JjvU0YoUM1dnec4lZWdJvIclqegQ1wVLSasxL8rVZtzuOy/2LOk8wKOF3qSrG3TEOel5b59dOyR9f+fF65a2B/EBlR2CR1LhYu2/fT32swx1OFfBLqCUehyHLE7hXvwPdkoD9sNc7GoobUO8bPge7JR6nItTeA3/g5/SgNk+RYQ6q0mgOgA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATkAA4AAAAABXwAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgdAng+GNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARQAAAEUnMz0sGhlYWQAAANYAAAANgAAADb8atJ6aGhlYQAAA5AAAAAfAAAAJAq6BalobXR4AAADsAAAAB8AAAAkF+P/e2xvY2EAAAPQAAAAEwAAABQBMQGDbWF4cAAAA+QAAAAcAAAAIAArAOVuYW1lAAAEAAAAAM4AAAF0G504anBvc3QAAATQAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCE76FQ6lbNFRlGr01jBKhZyCt+81B3hlMktT4TxPz1qRASwkABg3ffVwrj1XurQoiJc0M35VhTpA+O9Ck4AeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8ADwAFAGQAAAMoBbAAAwAGAAkADAAPAAAhIREhAxEBAREBAyEBNQEhAyj9PALENv7u/roBDOQCA/7+AQL9/QWw+qQFB/19Anf7EQJ4/V4CXogCXgAAAgB2/+wFCQXEABEAHwAAARQCBCMiJAInNTQSJDMyBBIVJxACIyICBxUUEjMyEjcFCZD++LCs/vaTApIBC6yvAQuQv9C7ttED07m6zAMCqdb+waipATnOadIBQqup/r/VAgEDARX+6/Zr+/7hAQ/9AAIAbwRwAskF1gAFAA0AAAETMxUDIwEzFRYXByY1AZF0xN9Z/t6oA1BJsgSUAUIV/sMBUlt7VTtfu////jL/7AVPBdYAJgAFRgAABwAG/cMAAAABAAAAAiMSo8X+nl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS9Pob/dUJMAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwOn5S/qfF6cBUAQVcAIAb4cEcQB42mPuYUhhgALG3xDM2sBQxqzAkA9mH/tnBABopAdwAHjaY2Bg0ITDRIY6IOwCABGeArUAeNpjYGRgYOBk6GcQYwhhYAXzEICNgREAGIoBEXjaXY4BBgJRFEVPVSnSCkIgoKkKUSBJIqESIKp+05BpzFRpI62gBbTErvGNkes+977nfB8ocSJHJl8GtnxtzlDhY3OWKm+bc6l9PpULNAhsLlJjbXNVCc7cpIABLekZy2FHIB90NWpXQlxdL3jaGXwizUibOTPGTFiw0mzSxaHNUsRevslNNSP6LnpHyEYtFOvp5lOPiQ49+gzj1lbr/zHp98ZywEtbDxf9PqE6SlOukivOqM3wOeAojbhIdZYJFcXNEMkhD80jzg9HQTQoAAB42mNgZgCD/1kMKQxYAAAqHwHRAA==) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-greek-400-normal-LPh2sqOm.woff2) format("woff2"),url(/assets/roboto-greek-400-normal-IIc_WWwF.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-vietnamese-400-normal-DhTUfTw_.woff2) format("woff2"),url(/assets/roboto-vietnamese-400-normal-D5pJwT9g.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-ext-400-normal-DgXbz5gU.woff2) format("woff2"),url(/assets/roboto-latin-ext-400-normal-BSFkPfbf.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-400-normal-DXyFPIdK.woff2) format("woff2"),url(/assets/roboto-latin-400-normal-BVyCgWwA.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-ext-500-normal-BJvL3D7h.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-500-normal-37WQE4S0.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-500-normal-_hamcpv8.woff2) format("woff2"),url(/assets/roboto-cyrillic-500-normal-YnJLGrUm.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAAXwABIAAAAACiQAAAWUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghcCYM8EQwKg3CDVwsUABIUATYCJAMkBCAFgwAHIAyCUxvDCECO0yW2MxHcwQN9m/Zmd7GAt056LBXDUnN6hagTcSJGKmInrhNO9dPUA1Hd9gmGUIldvZjF5GpN7d6GXSYqHkE4sOrvQ/cXxAKTi9BxlRWyDoCEqmRbISus7GNs4WxzgFD/DgjABgAIzAgEAsgim2xELLe4GjMaQCYDwDcsZCHaXqd07tw0yNSeTcmBQT/YvmV4O4DU1ap2ifgNAxguMywC4RuWqS/T3YC1DIiaVIC3Iu+W5RGFr8TIGLrHZQo64moAbaVBoqOjKqHGnvGoCJ6vUQgcmFEwAgp2dK7xlZzVFgqIXTN/ZD7L9Hz0yD35VwEU5vMc53IV5/Idm6TZq1arUm2lcRvPAuPH2hivXI4rs4J97GI8qh+rtpLx2pm4DJLxxslMMD6JS2nEY9IwGD9AAEiCRdJSXj8qxFmJB0XmqIxNG7WorS0hKYK6Hu+LSdEWkkpQivn+kFSDeq5UZ+VW1s9I6KfppxV0nabn6r3tXVKbZSnrVcnTEhFdUpU+XVIdv4wmvNP0ZCKxMiQ1RTItc1oCinq/Clk/dVb/h6QhWLS3Oru8vqJeHoh5ZTRmJ/n9elw+SczIJ8MCfyIRksazpHuNvX2TzxdMo8b5IWnWwaoCi7peEu80vHOGXx4IA97TZiSGIE+2fFDgA6KdUp0Vj/kD5Tx2YMO9VhiEmEl4V3vEQtISLKqqj8dQtT8xmBWUwbgFKwktsgVH54gT+mkt9nooikbnN3OiGltMUP1qJOGVMzgLpH7iQRdU8To77UEZrYt1GjIaIrZ5EGKx8GwECmaUTAYnABYAPPvSmkB6iIPYBt7BwFvViQKSWU2dO90Ooznvvdu5Y3dvv3mgydkvBvC7HHjro6zTPnmnVhx899MzP367pvrgO/HLvFXNgbetp78pdjdaqV/dVl6vqX5DzH0Wg3xWTTZhMLkPxbf9aN3+6bWqaD4hmtVUxSfpN84/1XPHPaPj77hoHS9Vvn5RHH5yl+e2C6O89p/2y/3ilhseRHxT/dPDhptuuTfzR/6UxZek1r464fO1zYGq0VZlV1G8LO/uxOMzmI0hF0wY/78POABjJ/OdocvwZtrmcrs9K6TNJXlpKzPKLJfaX0ISj1Qi3lFFX5soBDWurrSmIFtIG3bkJpl5VGa9l7aR5PaDFJd0vJezIK359ABacrx6YlPaiEa0M6TNNTpeyKxAvf8t728Amp93ac4CpDUitZckFklemiKJTB60LmkCExPbrIg0+pogAJvFpIGiGDXFBAJQZnjuPl6+ttW5+nfzFDMAz/7kDgO8Liq/+2fm/6/PJvNmwIICgADT4JgNLAN89dj6FghmF4t6Bl0KYiyvMByjuwfpwd7nubFsBGDhbCZSyoAAwAEKSg5GBGCmm4rQLECLRzuTYCrXmRQcXNCscpo1MBmYzbBkBEW15Ni/HHptscWIlUSIsH35PWHajWjXqVdSmJRNekQY1KdT0rDNkjaLUKzABnGlqsSFWEiYHCqldEjZIiVEiaQufbYaUitpk836pAzTJaYvYBHLWIWryaFhqFJSj9k5qN0mfYH64RukjNhpkz491xLRQqOvTp6UlJ7XJukUGNYpjM56gwbpVMrxzTh3TeL5xbcd44/CqACQ6afLfK60BSQB0sKhBETaKbb3eMC5MmeW14U5wANieXjmVDcy/QGlNLpwxgRnp+avCvvHpzWqnSFnrm+iw87YWbEu5G0zRRdL25kbC1fOm2JnOdxVunKGXdb2juKl/l7rudubwM62ra1o6TQ7e3Bm9nibjWPDsoDPs4q0y2EKSH7t09MHxovNabmBct2W9IHsumzDWwH3Q0QAXgaYwrPxbsyAT7c1vQ5bcX/WqQuyFFCCuM9/BPCxLY3EDZ6NL2KGr2upiUznKVBH5gvU2nyxGQA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE0AAABgdG3hCmNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARAAAAESY99A82hlYWQAAANYAAAANgAAADb8n9JyaGhlYQAAA5AAAAAfAAAAJArvBcJobXR4AAADsAAAAB8AAAAkGAT/TWxvY2EAAAPQAAAAEwAAABQBLwGBbWF4cAAAA+QAAAAcAAAAIAArAN9uYW1lAAAEAAAAANYAAAGAHGI533Bvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42mNgZpnB+IWBlYGBdRarMQMDozyEZr7IkMbEwMAAxFDgABRkQALu/v7uIEF5XzaGfwwMaeyzmBgUGBjng+RYrFg3MCgAITMADeIKxAAAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA942g2PJVREURRF731/Hh93h3GtowUtuEvBHSIknE7GO+7uLn3h9IW7O/8N04/sDRRKATgdnQAO7MABnMENQC73kHMeiB7IydGMck4nhJIdC3tgS+h8RjjGkAgCnfjpobzQRGp+PUitkE/ym0k+AIFy6x2V0B1wBwkAehORUqEiWrPJUyUTefrxJqJUEN7H29No8DRTSRu7n55kt53YiV5Yil4dKMwP9CyS5b6BWTJ1zFZHRzFyL/0Io0eH2foRfUHCrLeZT+wH4cP2ViGqJMf0xGbiAoBeRh9OiUYfXz9eY8bWqoOLPHY4ySWmToi6MMKHbWJmQUN0bPaa1cqCbZyltqYGaDQAD3bCLMA/wjpXMwABAAAAAiMSEj1jSl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS7Pok/dUJXAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwJn9S+WfI2cMUAQVcAIAdi8EvwB42mPuYUhhgALGfxDM2saQxqzDkA5mn/knAwBo+QdjAHjaY2Bg0ITDBIZaIOwEABGOArEAeNpjYGRgYOBk6GcQY/BjYAXzEICNgREAGAwBC3jaTY+1dQNAEAXHzC7AkSJHZobEzEyZScyMfagC1aHiNIHoHc3fWwSmiTLGyPgM8EO7yyMs0eryKIs0uzw2ZB8f4gmWyXZ5UvtHlxcliFN25Tli3VXDxRr/5D0hfyOqHEVi/qZJaIuQpUTEs84Dt5xzyRPv3qts6b3BGzmCnrJnlUcihElQIcOXXKSkypElgP5sss0+x6jYYFN+I0JM/zT/FIez6TOc7VxLngZFdQwn6efYlK7JuWKkiahuyRJiTTol7Qrw1o8qocKJPEWqWIG1DvezNmIAAHjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-greek-500-normal-Bg8BLohm.woff2) format("woff2"),url(/assets/roboto-greek-500-normal-CdRewbqV.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-vietnamese-500-normal-p0V0BAAE.woff2) format("woff2"),url(/assets/roboto-vietnamese-500-normal-LvuCHq7y.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-ext-500-normal-OQJhyaXd.woff2) format("woff2"),url(/assets/roboto-latin-ext-500-normal-DvHxAkTn.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-500-normal-C6iW8rdg.woff2) format("woff2"),url(/assets/roboto-latin-500-normal-rpP1_v3s.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-ext-700-normal-CyZgh00P.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-700-normal-DXzexxfu.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-700-normal-jruQITdB.woff2) format("woff2"),url(/assets/roboto-cyrillic-700-normal-BJaAVvFw.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAAWwABIAAAAACcAAAAVTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghICYM8EQwKg0iDMwsUABIUATYCJAMkBCAFgn4HIAyCKRtfCCCeBTkZ2iuxGWKJyeMZv66OCKiaZs+C2PYBKynriFkOIRw+g/RKasP0I2Tp7+2q9xfi7wUbK2iEHqhniZB3rvwq15s+McjkCIq28lPzNpOz6381+8JXa2p3NywTFUsoPFi19wHiAoKxcTWy7qYKLfvKspIVUta28e98NkNGfL1Saoy9g4AKICgIgoCSXWQgCxYNTUGIBJpgg22cCgGyrP3XF1yQdvCC6CzmIwxLnosAt/vj5LbogZT0yrQShPZyIH7ZQREGFZjjiOGtLF492gsUtK8M0uCg/JUR1JDrIJmWZmoo/ygYL3bjLzwPD7AMaFUQySHSouZS+8pjnYMgXNq8mgd/9PCX8m9BZJhfbtawij6MddmzXnMGDujW2EdCdJVa3Fd4Mk1Csl2nNNMt10tiuFXn3BNacx+KIDNiOYaO1X2E7Oh4gPxftmBXX9F/7704DGyNdtu7kOhHYsRmoaQvhzFb60H//EUTc7kKeljbsvSAQ7qI2gxmDMhnsfYk8VAxmqL1dTtFG+oMzulIrxsPVCgaOEwiqQKKhx1Uo44YKodIbn9HZim7XB4XrJkbn8O9BVWcs4DXMgztxidrMHiSZCqnQu6YYtrdtqccGPLFXEnKFoIU18+5s07p2HIIDHMZPEdmq1v6d5QwT4y9E+Ad0jZE//yFubK3ZjG5N6bTmQvnoiK9l3RxWGSXT851d9l7GQWHJTbrt5ChjP33VNg7B4dLalu2yO62CbD/AyFwyQZzLfSLvzqmI73y0i6klzzQCaxcdNjCZnM+e2uUdV+uruoi9E8ukAcDESmImrSBIuhipGYJHoqtWJm9W+ontE9EUxK3YefWXFHlp7edcrrNEXL4HtGHhcOBr3/Ou49KWz55Z1M4991Pt3/8tv3OfVPa8toGe6+Xt765+XRVuHrpoLLXN25480YY8ow0eyY+cA8IzHc+b+FJJ+WTP70hJnteQjTxmnWf73/zsvl9rt1/b/X2q+Z5vuTNKxf1uXpEz7Pf+8Zo3276/vLLbvrGJ4s/vOn3Ky+74TufLOl18aqjpr/s/vmsPbjJK1qby2snpvtz1PuaKhQIXATycv+Dc2j0bJ6ekL4ps7COfkLVF6XMUtgIepWjcoCfzl3q5ZTUeVVhCUuf7qpg6paropis9dOYsXKSXRNIqt1eio8R2goGYHINRsTc2S1kpdI68676G0FAUHXvmHLAspDln/WsECAMyzFZ+hRTYfWLAgioFPMJUZRLojwBUf8uteOfn9u7bcbvhd4F8MxPnUcB8HpY98Y/Y/5/vXhxYRFRFIFA/ohGheIW1TcmjhG0gGK8zQGqoaGH0otsitupzPd5rtETQdFOPYwIFEArkWicIAEFB/EXkiL2cu/lCCrucEQKbnXEejgbnDhSgzgcOT1MpVplHhxiqbN4NRBUq/M8Ay//bhMbEU+ywErgYmci8lgkWiQY0q9TtxGTunEq8MpMkBhJlkg4HSQuZjNECxbZSTzo9s3lKtVqBKCM5by7lsan5zekOumw17oFdtarxAKJbKR6PSVWLuJT+nmY8Kh2Li7UhGN6EUi7knLEP7VCZMbzB5oxa6/MKqWZ4eQQHg13O5QPyU6KUhh+f9Q1jaVxRiGGvZJzJ+/RkOuVruwzWJPplctvT4kN98p3TCrJivMqNIzOSYnuFWtGkFdJtbyhJNWj/Nvrj1t4hFwJzw/P/A3vk8taw/F3YacRxkwn3LUH3tGJd7V247SOaBcE0wl3jZJEZ+ga/Yds4aQQ6Wi3FJ3imZRIIIqRPiHIbp9wl47pDD2l/+nWrQahT1oivVBjuF0jxwMAAA==) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE4AAABgdTXg+WNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARQAAAEUTyyJzmhlYWQAAANcAAAANgAAADb819JcaGhlYQAAA5QAAAAfAAAAJAsmBdVobXR4AAADtAAAAB8AAAAkF/f/LGxvY2EAAAPUAAAAEwAAABQBLwGDbWF4cAAAA+gAAAAcAAAAIAArAN9uYW1lAAAEBAAAANQAAAF+HF85GnBvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42k2HNwGEQAAE57IM8PDdV3Q0BBd4Ipe0CMAEgsh586J0JwcMmML8QHhnq5FMApIbASg+CNM0xAcvtsyQuUJuV7QA+m96/I1qBfuaCnwAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA8ABQBkAAADKAWwAAMABgAJAAwADwAAISERIQMRAQERAQMhATUBIQMo/TwCxDb+7v66AQzkAgP+/gEC/f0FsPqkBQf9fQJ3+xECeP1eAl6IAl4AAAIAVv/sBS4FxAAQAB4AAAEUAgQjIiQCJzU0EiQgBBIVJTQmIyIGBxUUFjMyNjcFLpj+5be1/uScAZsBGwFsARub/tCkmJekAaSal6IBArfX/rywrgFD0kjXAUevr/651gHl7uvjR9/27eMAAAIAWwRvAssF1wAFAA4AAAETMxUDIwEzFRYXByYmNQGJb9PmXP7SrQFMU0pdBJsBPBX+wQFUXnw4ViOJXQD///4X/+wFdAXXACYABUYAAAcABv28AAAAAQAAAAIjEjlU04RfDzz1ABkIAAAAAADE8BEuAAAAANUBUtb6MP3VCYcIcwABAAkAAgAAAAAAAHjaY2BkYGDP+cfDwMDZ9cvgnylnO1AEFXACAHx/BQkAeNpj7mFIYYACxn8QzNrGEMYszxANZp/5Jw4AZykHNQB42mNgYNCEw3iGOiDsAgARkAKzAHjaY2BkYGDgZOhnEGPwY2AF8xCAjYERABgMAQt42mJgYOBgSGNgZmBk4QSy4xh2QdmMDDwM66BsJqCaZRA2kBRjmABlsyCxWQFVjyUWQgEQRW8isoafSLhLwd0t4+7O7nk4nDfug4XZyzYp3nzZZlkw4SBsCOMQzg/Y6bIR95UdyluzY6zsgqliQ1bsJfeKFMmRIEWZhqQNN3ac1NXREx/ENuKSCwa01bNT11T+CuNR68JDgMjDc8oL/PUan96X/ssmxBuu7JgyRn98prhkZVgLY3UN5eVY0ccuK8ZCMKh/uvYPT/+Id5wkB9hvI3U1mnjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-greek-700-normal-Bs05n1ZH.woff2) format("woff2"),url(/assets/roboto-greek-700-normal-1IZ-NEfb.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-vietnamese-700-normal-CBbheh0s.woff2) format("woff2"),url(/assets/roboto-vietnamese-700-normal-B4Nagvlm.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-ext-700-normal-DchBbzVz.woff2) format("woff2"),url(/assets/roboto-latin-ext-700-normal-Ba-CAIIA.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-700-normal-CbYYDfWS.woff2) format("woff2"),url(/assets/roboto-latin-700-normal-BWcFiwQV.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}._container_1h1ao_1{max-width:1200px;margin:0 auto;padding:20px;text-align:center;font-family:Roboto,sans-serif;overflow:hidden}h1{font-size:2.5rem;color:#000;margin-bottom:20px}._mapsContainer_1h1ao_16{display:flex;flex-direction:column;gap:20px;margin-top:30px}._tile_1h1ao_23{width:90%;margin:0 auto 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#fff;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:2px solid #232323;border-radius:12px}._tile_1h1ao_23:hover{transform:scale(1.05);box-shadow:#0006 0 8px 18px;background:#eee}._imgStyle_1h1ao_46{width:80%;margin-top:10px;margin-bottom:5px}._mapTitle_1h1ao_52{color:#2c2f33;text-transform:uppercase;margin-bottom:10px;font-size:1.2rem}._buttonContainer_1h1ao_59{display:flex;flex-direction:column;gap:10px;width:100%}._buttonsGroup_1h1ao_66{display:flex;justify-content:space-between;gap:10px;width:100%}._approveButton_1h1ao_73,._denyButton_1h1ao_73{padding:8px 16px;font-size:14px;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._approveButton_1h1ao_73{background-color:#4caf50;color:#fff}._approveButton_1h1ao_73:hover{background-color:#388e3c;transform:translateY(-2px)}._denyButton_1h1ao_73{background-color:#f44336;color:#fff}._denyButton_1h1ao_73:hover{background-color:#d32f2f;transform:translateY(-2px)}._viewPublishFormButton_1h1ao_102{margin-bottom:10px}._reasonInput_1h1ao_106{width:100%;padding:8px;font-size:14px;border:1px solid #ccc;border-radius:8px;outline:none;margin-bottom:10px}._reasonInput_1h1ao_106:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}@media (max-width: 768px){._mapsContainer_1h1ao_16{flex-direction:column}._tile_1h1ao_23,._reasonInput_1h1ao_106{width:100%}._buttonsGroup_1h1ao_66{flex-direction:column;gap:10px}}._openButton_1l2n8_1{padding:10px 20px;font-size:16px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._openButton_1l2n8_1:hover{background-color:#0056b3}._modalBackground_1l2n8_16{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}._modalContent_1l2n8_29{background-color:#fff;padding:20px;border-radius:10px;width:80%;max-width:600px;position:relative}._heading_1l2n8_38{font-size:24px;font-weight:700;margin-bottom:15px;color:#333}._cardContainer_1l2n8_45{display:flex;flex-wrap:wrap;gap:15px;margin-top:15px}._card_1l2n8_45{background-color:#f9f9f9;border:1px solid #ddd;border-radius:8px;padding:15px;flex:1 1 calc(50% - 20px);max-width:calc(50% - 20px);box-shadow:0 2px 4px #0000001a}._cardTitle_1l2n8_62{font-size:18px;font-weight:700;margin-bottom:10px}._cardContent_1l2n8_68{margin-bottom:5px;font-size:14px;color:#555}._cardFooter_1l2n8_74{font-size:12px;color:#666}._noReports_1l2n8_79{font-size:16px;color:#999;text-align:center;width:100%}._closeButton_1l2n8_86{margin-top:15px;padding:10px 20px;font-size:16px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._closeButton_1l2n8_86:hover{background-color:#a71d2a}html,body,#root{margin:0;padding:0;width:100%;height:100%}
Index: imaps-frontend/dist/assets/index-ByoEELsy.js
===================================================================
--- imaps-frontend/dist/assets/index-ByoEELsy.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index-ByoEELsy.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,262 @@
+function z7(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var U4={exports:{}},Xf={},z4={exports:{}},ut={};/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var uh=Symbol.for("react.element"),G7=Symbol.for("react.portal"),q7=Symbol.for("react.fragment"),V7=Symbol.for("react.strict_mode"),W7=Symbol.for("react.profiler"),H7=Symbol.for("react.provider"),Y7=Symbol.for("react.context"),K7=Symbol.for("react.forward_ref"),X7=Symbol.for("react.suspense"),$7=Symbol.for("react.memo"),Q7=Symbol.for("react.lazy"),Rm=Symbol.iterator;function J7(t){return t===null||typeof t!="object"?null:(t=Rm&&t[Rm]||t["@@iterator"],typeof t=="function"?t:null)}var G4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q4=Object.assign,V4={};function fc(t,e,n){this.props=t,this.context=e,this.refs=V4,this.updater=n||G4}fc.prototype.isReactComponent={};fc.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};fc.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function W4(){}W4.prototype=fc.prototype;function I5(t,e,n){this.props=t,this.context=e,this.refs=V4,this.updater=n||G4}var F5=I5.prototype=new W4;F5.constructor=I5;q4(F5,fc.prototype);F5.isPureReactComponent=!0;var Bm=Array.isArray,H4=Object.prototype.hasOwnProperty,O5={current:null},Y4={key:!0,ref:!0,__self:!0,__source:!0};function K4(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)H4.call(e,r)&&!Y4.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:uh,type:t,key:o,ref:s,props:i,_owner:O5.current}}function Z7(t,e){return{$$typeof:uh,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function R5(t){return typeof t=="object"&&t!==null&&t.$$typeof===uh}function eb(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Dm=/\/+/g;function op(t,e){return typeof t=="object"&&t!==null&&t.key!=null?eb(""+t.key):e.toString(36)}function Wd(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case uh:case G7:s=!0}}if(s)return s=t,i=i(s),t=r===""?"."+op(s,0):r,Bm(i)?(n="",t!=null&&(n=t.replace(Dm,"$&/")+"/"),Wd(i,e,n,"",function(u){return u})):i!=null&&(R5(i)&&(i=Z7(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Dm,"$&/")+"/")+t)),e.push(i)),1;if(s=0,r=r===""?".":r+":",Bm(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+op(o,a);s+=Wd(o,e,n,l,i)}else if(l=J7(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+op(o,a++),s+=Wd(o,e,n,l,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function pd(t,e,n){if(t==null)return t;var r=[],i=0;return Wd(t,r,"","",function(o){return e.call(n,o,i++)}),r}function tb(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var yr={current:null},Hd={transition:null},nb={ReactCurrentDispatcher:yr,ReactCurrentBatchConfig:Hd,ReactCurrentOwner:O5};function X4(){throw Error("act(...) is not supported in production builds of React.")}ut.Children={map:pd,forEach:function(t,e,n){pd(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return pd(t,function(){e++}),e},toArray:function(t){return pd(t,function(e){return e})||[]},only:function(t){if(!R5(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ut.Component=fc;ut.Fragment=q7;ut.Profiler=W7;ut.PureComponent=I5;ut.StrictMode=V7;ut.Suspense=X7;ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nb;ut.act=X4;ut.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=q4({},t.props),i=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=O5.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)H4.call(e,l)&&!Y4.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:uh,type:t.type,key:i,ref:o,props:r,_owner:s}};ut.createContext=function(t){return t={$$typeof:Y7,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:H7,_context:t},t.Consumer=t};ut.createElement=K4;ut.createFactory=function(t){var e=K4.bind(null,t);return e.type=t,e};ut.createRef=function(){return{current:null}};ut.forwardRef=function(t){return{$$typeof:K7,render:t}};ut.isValidElement=R5;ut.lazy=function(t){return{$$typeof:Q7,_payload:{_status:-1,_result:t},_init:tb}};ut.memo=function(t,e){return{$$typeof:$7,type:t,compare:e===void 0?null:e}};ut.startTransition=function(t){var e=Hd.transition;Hd.transition={};try{t()}finally{Hd.transition=e}};ut.unstable_act=X4;ut.useCallback=function(t,e){return yr.current.useCallback(t,e)};ut.useContext=function(t){return yr.current.useContext(t)};ut.useDebugValue=function(){};ut.useDeferredValue=function(t){return yr.current.useDeferredValue(t)};ut.useEffect=function(t,e){return yr.current.useEffect(t,e)};ut.useId=function(){return yr.current.useId()};ut.useImperativeHandle=function(t,e,n){return yr.current.useImperativeHandle(t,e,n)};ut.useInsertionEffect=function(t,e){return yr.current.useInsertionEffect(t,e)};ut.useLayoutEffect=function(t,e){return yr.current.useLayoutEffect(t,e)};ut.useMemo=function(t,e){return yr.current.useMemo(t,e)};ut.useReducer=function(t,e,n){return yr.current.useReducer(t,e,n)};ut.useRef=function(t){return yr.current.useRef(t)};ut.useState=function(t){return yr.current.useState(t)};ut.useSyncExternalStore=function(t,e,n){return yr.current.useSyncExternalStore(t,e,n)};ut.useTransition=function(){return yr.current.useTransition()};ut.version="18.3.1";z4.exports=ut;var re=z4.exports;const Lo=Kf(re),rb=z7({__proto__:null,default:Lo},[re]);/**
+ * @license React
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var ib=re,ob=Symbol.for("react.element"),sb=Symbol.for("react.fragment"),ab=Object.prototype.hasOwnProperty,lb=ib.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cb={key:!0,ref:!0,__self:!0,__source:!0};function $4(t,e,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)ab.call(e,r)&&!cb.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:ob,type:t,key:o,ref:s,props:i,_owner:lb.current}}Xf.Fragment=sb;Xf.jsx=$4;Xf.jsxs=$4;U4.exports=Xf;var x=U4.exports,c2={},Q4={exports:{}},qr={},J4={exports:{}},Z4={};/**
+ * @license React
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */(function(t){function e(K,te){var X=K.length;K.push(te);e:for(;0<X;){var de=X-1>>>1,j=K[de];if(0<i(j,te))K[de]=te,K[X]=j,X=de;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var te=K[0],X=K.pop();if(X!==te){K[0]=X;e:for(var de=0,j=K.length,G=j>>>1;de<G;){var H=2*(de+1)-1,ne=K[H],ie=H+1,q=K[ie];if(0>i(ne,X))ie<j&&0>i(q,ne)?(K[de]=q,K[ie]=X,de=ie):(K[de]=ne,K[H]=X,de=H);else if(ie<j&&0>i(q,X))K[de]=q,K[ie]=X,de=ie;else break e}}return te}function i(K,te){var X=K.sortIndex-te.sortIndex;return X!==0?X:K.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,g=3,h=!1,w=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(K){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=K)r(u),te.sortIndex=te.expirationTime,e(l,te);else break;te=n(u)}}function N(K){if(_=!1,y(K),!w)if(n(l)!==null)w=!0,ee(L);else{var te=n(u);te!==null&&se(N,te.startTime-K)}}function L(K,te){w=!1,_&&(_=!1,v(k),k=-1),h=!0;var X=g;try{for(y(te),p=n(l);p!==null&&(!(p.expirationTime>te)||K&&!P());){var de=p.callback;if(typeof de=="function"){p.callback=null,g=p.priorityLevel;var j=de(p.expirationTime<=te);te=t.unstable_now(),typeof j=="function"?p.callback=j:p===n(l)&&r(l),y(te)}else r(l);p=n(l)}if(p!==null)var G=!0;else{var H=n(u);H!==null&&se(N,H.startTime-te),G=!1}return G}finally{p=null,g=X,h=!1}}var R=!1,D=null,k=-1,z=5,T=-1;function P(){return!(t.unstable_now()-T<z)}function E(){if(D!==null){var K=t.unstable_now();T=K;var te=!0;try{te=D(!0,K)}finally{te?W():(R=!1,D=null)}}else R=!1}var W;if(typeof S=="function")W=function(){S(E)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,Q=B.port2;B.port1.onmessage=E,W=function(){Q.postMessage(null)}}else W=function(){A(E,0)};function ee(K){D=K,R||(R=!0,W())}function se(K,te){k=A(function(){K(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){w||h||(w=!0,ee(L))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(K){switch(g){case 1:case 2:case 3:var te=3;break;default:te=g}var X=g;g=te;try{return K()}finally{g=X}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,te){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var X=g;g=K;try{return te()}finally{g=X}},t.unstable_scheduleCallback=function(K,te,X){var de=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?de+X:de):X=de,K){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=X+j,K={id:d++,callback:te,priorityLevel:K,startTime:X,expirationTime:j,sortIndex:-1},X>de?(K.sortIndex=X,e(u,K),n(l)===null&&K===n(u)&&(_?(v(k),k=-1):_=!0,se(N,X-de))):(K.sortIndex=j,e(l,K),w||h||(w=!0,ee(L))),K},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(K){var te=g;return function(){var X=g;g=te;try{return K.apply(this,arguments)}finally{g=X}}}})(Z4);J4.exports=Z4;var ub=J4.exports;/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var hb=re,Gr=ub;function Le(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ey=new Set,Du={};function Ta(t,e){nc(t,e),nc(t+"Capture",e)}function nc(t,e){for(Du[t]=e,t=0;t<e.length;t++)ey.add(e[t])}var Mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u2=Object.prototype.hasOwnProperty,db=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Um={},zm={};function fb(t){return u2.call(zm,t)?!0:u2.call(Um,t)?!1:db.test(t)?zm[t]=!0:(Um[t]=!0,!1)}function pb(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function gb(t,e,n,r){if(e===null||typeof e>"u"||pb(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function wr(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Hn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Hn[t]=new wr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Hn[e]=new wr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Hn[t]=new wr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Hn[t]=new wr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Hn[t]=new wr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Hn[t]=new wr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Hn[t]=new wr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Hn[t]=new wr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Hn[t]=new wr(t,5,!1,t.toLowerCase(),null,!1,!1)});var B5=/[\-:]([a-z])/g;function D5(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new wr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new wr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new wr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Hn[t]=new wr(t,1,!1,t.toLowerCase(),null,!1,!1)});Hn.xlinkHref=new wr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Hn[t]=new wr(t,1,!1,t.toLowerCase(),null,!0,!0)});function U5(t,e,n,r){var i=Hn.hasOwnProperty(e)?Hn[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(gb(e,n,i,r)&&(n=null),r||i===null?fb(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Bo=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gd=Symbol.for("react.element"),jl=Symbol.for("react.portal"),Ml=Symbol.for("react.fragment"),z5=Symbol.for("react.strict_mode"),h2=Symbol.for("react.profiler"),ty=Symbol.for("react.provider"),ny=Symbol.for("react.context"),G5=Symbol.for("react.forward_ref"),d2=Symbol.for("react.suspense"),f2=Symbol.for("react.suspense_list"),q5=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),ry=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function iu(t){return t===null||typeof t!="object"?null:(t=Gm&&t[Gm]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Object.assign,sp;function _u(t){if(sp===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);sp=e&&e[1]||""}return`
+`+sp+t}var ap=!1;function lp(t,e){if(!t||ap)return"";ap=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
+`),o=r.stack.split(`
+`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
+`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{ap=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_u(t):""}function mb(t){switch(t.tag){case 5:return _u(t.type);case 16:return _u("Lazy");case 13:return _u("Suspense");case 19:return _u("SuspenseList");case 0:case 2:case 15:return t=lp(t.type,!1),t;case 11:return t=lp(t.type.render,!1),t;case 1:return t=lp(t.type,!0),t;default:return""}}function p2(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ml:return"Fragment";case jl:return"Portal";case h2:return"Profiler";case z5:return"StrictMode";case d2:return"Suspense";case f2:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ny:return(t.displayName||"Context")+".Consumer";case ty:return(t._context.displayName||"Context")+".Provider";case G5:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q5:return e=t.displayName||null,e!==null?e:p2(t.type)||"Memo";case ds:e=t._payload,t=t._init;try{return p2(t(e))}catch{}}return null}function vb(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p2(e);case 8:return e===z5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ms(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function iy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yb(t){var e=iy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function md(t){t._valueTracker||(t._valueTracker=yb(t))}function oy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=iy(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ff(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function g2(t,e){var n=e.checked;return Zt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function qm(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Ms(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function sy(t,e){e=e.checked,e!=null&&U5(t,"checked",e,!1)}function m2(t,e){sy(t,e);var n=Ms(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?v2(t,e.type,n):e.hasOwnProperty("defaultValue")&&v2(t,e.type,Ms(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Vm(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function v2(t,e,n){(e!=="number"||ff(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Su=Array.isArray;function Wl(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Ms(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function y2(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Le(91));return Zt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Wm(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Le(92));if(Su(n)){if(1<n.length)throw Error(Le(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Ms(n)}}function ay(t,e){var n=Ms(e.value),r=Ms(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Hm(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function ly(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function w2(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?ly(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var vd,cy=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(vd=vd||document.createElement("div"),vd.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=vd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Uu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Nu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wb=["Webkit","ms","Moz","O"];Object.keys(Nu).forEach(function(t){wb.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Nu[e]=Nu[t]})});function uy(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Nu.hasOwnProperty(t)&&Nu[t]?(""+e).trim():e+"px"}function hy(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=uy(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var bb=Zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function b2(t,e){if(e){if(bb[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Le(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Le(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Le(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Le(62))}}function _2(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var S2=null;function V5(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var x2=null,Hl=null,Yl=null;function Ym(t){if(t=fh(t)){if(typeof x2!="function")throw Error(Le(280));var e=t.stateNode;e&&(e=e1(e),x2(t.stateNode,t.type,e))}}function dy(t){Hl?Yl?Yl.push(t):Yl=[t]:Hl=t}function fy(){if(Hl){var t=Hl,e=Yl;if(Yl=Hl=null,Ym(t),e)for(t=0;t<e.length;t++)Ym(e[t])}}function py(t,e){return t(e)}function gy(){}var cp=!1;function my(t,e,n){if(cp)return t(e,n);cp=!0;try{return py(t,e,n)}finally{cp=!1,(Hl!==null||Yl!==null)&&(gy(),fy())}}function zu(t,e){var n=t.stateNode;if(n===null)return null;var r=e1(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Le(231,e,typeof n));return n}var A2=!1;if(Mo)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){A2=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{A2=!1}function _b(t,e,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var Cu=!1,pf=null,gf=!1,N2=null,Sb={onError:function(t){Cu=!0,pf=t}};function xb(t,e,n,r,i,o,s,a,l){Cu=!1,pf=null,_b.apply(Sb,arguments)}function Ab(t,e,n,r,i,o,s,a,l){if(xb.apply(this,arguments),Cu){if(Cu){var u=pf;Cu=!1,pf=null}else throw Error(Le(198));gf||(gf=!0,N2=u)}}function ja(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function vy(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Km(t){if(ja(t)!==t)throw Error(Le(188))}function Nb(t){var e=t.alternate;if(!e){if(e=ja(t),e===null)throw Error(Le(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Km(i),t;if(o===r)return Km(i),e;o=o.sibling}throw Error(Le(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Le(189))}}if(n.alternate!==r)throw Error(Le(190))}if(n.tag!==3)throw Error(Le(188));return n.stateNode.current===n?t:e}function yy(t){return t=Nb(t),t!==null?wy(t):null}function wy(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=wy(t);if(e!==null)return e;t=t.sibling}return null}var by=Gr.unstable_scheduleCallback,Xm=Gr.unstable_cancelCallback,Cb=Gr.unstable_shouldYield,Pb=Gr.unstable_requestPaint,pn=Gr.unstable_now,Lb=Gr.unstable_getCurrentPriorityLevel,W5=Gr.unstable_ImmediatePriority,_y=Gr.unstable_UserBlockingPriority,mf=Gr.unstable_NormalPriority,kb=Gr.unstable_LowPriority,Sy=Gr.unstable_IdlePriority,$f=null,no=null;function Eb(t){if(no&&typeof no.onCommitFiberRoot=="function")try{no.onCommitFiberRoot($f,t,void 0,(t.current.flags&128)===128)}catch{}}var Ei=Math.clz32?Math.clz32:Mb,Tb=Math.log,jb=Math.LN2;function Mb(t){return t>>>=0,t===0?32:31-(Tb(t)/jb|0)|0}var yd=64,wd=4194304;function xu(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vf(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=xu(a):(o&=s,o!==0&&(r=xu(o)))}else s=n&~i,s!==0?r=xu(s):o!==0&&(r=xu(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Ei(e),i=1<<n,r|=t[n],e&=~i;return r}function Ib(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fb(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-Ei(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Ib(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function C2(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function xy(){var t=yd;return yd<<=1,!(yd&4194240)&&(yd=64),t}function up(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function hh(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ei(e),t[e]=n}function Ob(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Ei(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function H5(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Ei(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Lt=0;function Ay(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Ny,Y5,Cy,Py,Ly,P2=!1,bd=[],xs=null,As=null,Ns=null,Gu=new Map,qu=new Map,ms=[],Rb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $m(t,e){switch(t){case"focusin":case"focusout":xs=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Ns=null;break;case"pointerover":case"pointerout":Gu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(e.pointerId)}}function su(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=fh(e),e!==null&&Y5(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Bb(t,e,n,r,i){switch(e){case"focusin":return xs=su(xs,t,e,n,r,i),!0;case"dragenter":return As=su(As,t,e,n,r,i),!0;case"mouseover":return Ns=su(Ns,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gu.set(o,su(Gu.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,qu.set(o,su(qu.get(o)||null,t,e,n,r,i)),!0}return!1}function ky(t){var e=ga(t.target);if(e!==null){var n=ja(e);if(n!==null){if(e=n.tag,e===13){if(e=vy(n),e!==null){t.blockedOn=e,Ly(t.priority,function(){Cy(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yd(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=L2(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);S2=r,n.target.dispatchEvent(r),S2=null}else return e=fh(n),e!==null&&Y5(e),t.blockedOn=n,!1;e.shift()}return!0}function Qm(t,e,n){Yd(t)&&n.delete(e)}function Db(){P2=!1,xs!==null&&Yd(xs)&&(xs=null),As!==null&&Yd(As)&&(As=null),Ns!==null&&Yd(Ns)&&(Ns=null),Gu.forEach(Qm),qu.forEach(Qm)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,P2||(P2=!0,Gr.unstable_scheduleCallback(Gr.unstable_NormalPriority,Db)))}function Vu(t){function e(i){return au(i,t)}if(0<bd.length){au(bd[0],t);for(var n=1;n<bd.length;n++){var r=bd[n];r.blockedOn===t&&(r.blockedOn=null)}}for(xs!==null&&au(xs,t),As!==null&&au(As,t),Ns!==null&&au(Ns,t),Gu.forEach(e),qu.forEach(e),n=0;n<ms.length;n++)r=ms[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<ms.length&&(n=ms[0],n.blockedOn===null);)ky(n),n.blockedOn===null&&ms.shift()}var Kl=Bo.ReactCurrentBatchConfig,yf=!0;function Ub(t,e,n,r){var i=Lt,o=Kl.transition;Kl.transition=null;try{Lt=1,K5(t,e,n,r)}finally{Lt=i,Kl.transition=o}}function zb(t,e,n,r){var i=Lt,o=Kl.transition;Kl.transition=null;try{Lt=4,K5(t,e,n,r)}finally{Lt=i,Kl.transition=o}}function K5(t,e,n,r){if(yf){var i=L2(t,e,n,r);if(i===null)bp(t,e,r,wf,n),$m(t,r);else if(Bb(i,t,e,n,r))r.stopPropagation();else if($m(t,r),e&4&&-1<Rb.indexOf(t)){for(;i!==null;){var o=fh(i);if(o!==null&&Ny(o),o=L2(t,e,n,r),o===null&&bp(t,e,r,wf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else bp(t,e,r,null,n)}}var wf=null;function L2(t,e,n,r){if(wf=null,t=V5(r),t=ga(t),t!==null)if(e=ja(t),e===null)t=null;else if(n=e.tag,n===13){if(t=vy(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return wf=t,null}function Ey(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Lb()){case W5:return 1;case _y:return 4;case mf:case kb:return 16;case Sy:return 536870912;default:return 16}default:return 16}}var ws=null,X5=null,Kd=null;function Ty(){if(Kd)return Kd;var t,e=X5,n=e.length,r,i="value"in ws?ws.value:ws.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===i[o-r];r++);return Kd=i.slice(t,1<r?1-r:void 0)}function Xd(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function _d(){return!0}function Jm(){return!1}function Vr(t){function e(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?_d:Jm,this.isPropagationStopped=Jm,this}return Zt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_d)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_d)},persist:function(){},isPersistent:_d}),e}var pc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$5=Vr(pc),dh=Zt({},pc,{view:0,detail:0}),Gb=Vr(dh),hp,dp,lu,Qf=Zt({},dh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Q5,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==lu&&(lu&&t.type==="mousemove"?(hp=t.screenX-lu.screenX,dp=t.screenY-lu.screenY):dp=hp=0,lu=t),hp)},movementY:function(t){return"movementY"in t?t.movementY:dp}}),Zm=Vr(Qf),qb=Zt({},Qf,{dataTransfer:0}),Vb=Vr(qb),Wb=Zt({},dh,{relatedTarget:0}),fp=Vr(Wb),Hb=Zt({},pc,{animationName:0,elapsedTime:0,pseudoElement:0}),Yb=Vr(Hb),Kb=Zt({},pc,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xb=Vr(Kb),$b=Zt({},pc,{data:0}),ev=Vr($b),Qb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e_(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Zb[t])?!!e[t]:!1}function Q5(){return e_}var t_=Zt({},dh,{key:function(t){if(t.key){var e=Qb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xd(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Jb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Q5,charCode:function(t){return t.type==="keypress"?Xd(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xd(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),n_=Vr(t_),r_=Zt({},Qf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tv=Vr(r_),i_=Zt({},dh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Q5}),o_=Vr(i_),s_=Zt({},pc,{propertyName:0,elapsedTime:0,pseudoElement:0}),a_=Vr(s_),l_=Zt({},Qf,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),c_=Vr(l_),u_=[9,13,27,32],J5=Mo&&"CompositionEvent"in window,Pu=null;Mo&&"documentMode"in document&&(Pu=document.documentMode);var h_=Mo&&"TextEvent"in window&&!Pu,jy=Mo&&(!J5||Pu&&8<Pu&&11>=Pu),nv=" ",rv=!1;function My(t,e){switch(t){case"keyup":return u_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iy(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Il=!1;function d_(t,e){switch(t){case"compositionend":return Iy(e);case"keypress":return e.which!==32?null:(rv=!0,nv);case"textInput":return t=e.data,t===nv&&rv?null:t;default:return null}}function f_(t,e){if(Il)return t==="compositionend"||!J5&&My(t,e)?(t=Ty(),Kd=X5=ws=null,Il=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jy&&e.locale!=="ko"?null:e.data;default:return null}}var p_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function iv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!p_[t.type]:e==="textarea"}function Fy(t,e,n,r){dy(r),e=bf(e,"onChange"),0<e.length&&(n=new $5("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Lu=null,Wu=null;function g_(t){Hy(t,0)}function Jf(t){var e=Rl(t);if(oy(e))return t}function m_(t,e){if(t==="change")return e}var Oy=!1;if(Mo){var pp;if(Mo){var gp="oninput"in document;if(!gp){var ov=document.createElement("div");ov.setAttribute("oninput","return;"),gp=typeof ov.oninput=="function"}pp=gp}else pp=!1;Oy=pp&&(!document.documentMode||9<document.documentMode)}function sv(){Lu&&(Lu.detachEvent("onpropertychange",Ry),Wu=Lu=null)}function Ry(t){if(t.propertyName==="value"&&Jf(Wu)){var e=[];Fy(e,Wu,t,V5(t)),my(g_,e)}}function v_(t,e,n){t==="focusin"?(sv(),Lu=e,Wu=n,Lu.attachEvent("onpropertychange",Ry)):t==="focusout"&&sv()}function y_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Jf(Wu)}function w_(t,e){if(t==="click")return Jf(e)}function b_(t,e){if(t==="input"||t==="change")return Jf(e)}function __(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Mi=typeof Object.is=="function"?Object.is:__;function Hu(t,e){if(Mi(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u2.call(e,i)||!Mi(t[i],e[i]))return!1}return!0}function av(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function lv(t,e){var n=av(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=av(n)}}function By(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?By(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dy(){for(var t=window,e=ff();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ff(t.document)}return e}function Z5(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function S_(t){var e=Dy(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&By(n.ownerDocument.documentElement,n)){if(r!==null&&Z5(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=lv(n,o);var s=lv(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var x_=Mo&&"documentMode"in document&&11>=document.documentMode,Fl=null,k2=null,ku=null,E2=!1;function cv(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;E2||Fl==null||Fl!==ff(r)||(r=Fl,"selectionStart"in r&&Z5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ku&&Hu(ku,r)||(ku=r,r=bf(k2,"onSelect"),0<r.length&&(e=new $5("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Fl)))}function Sd(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ol={animationend:Sd("Animation","AnimationEnd"),animationiteration:Sd("Animation","AnimationIteration"),animationstart:Sd("Animation","AnimationStart"),transitionend:Sd("Transition","TransitionEnd")},mp={},Uy={};Mo&&(Uy=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Zf(t){if(mp[t])return mp[t];if(!Ol[t])return t;var e=Ol[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Uy)return mp[t]=e[n];return t}var zy=Zf("animationend"),Gy=Zf("animationiteration"),qy=Zf("animationstart"),Vy=Zf("transitionend"),Wy=new Map,uv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ds(t,e){Wy.set(t,e),Ta(e,[t])}for(var vp=0;vp<uv.length;vp++){var yp=uv[vp],A_=yp.toLowerCase(),N_=yp[0].toUpperCase()+yp.slice(1);Ds(A_,"on"+N_)}Ds(zy,"onAnimationEnd");Ds(Gy,"onAnimationIteration");Ds(qy,"onAnimationStart");Ds("dblclick","onDoubleClick");Ds("focusin","onFocus");Ds("focusout","onBlur");Ds(Vy,"onTransitionEnd");nc("onMouseEnter",["mouseout","mouseover"]);nc("onMouseLeave",["mouseout","mouseover"]);nc("onPointerEnter",["pointerout","pointerover"]);nc("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),C_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function hv(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Ab(r,e,void 0,t),t.currentTarget=null}function Hy(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;hv(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;hv(i,a,u),o=l}}}if(gf)throw t=N2,gf=!1,N2=null,t}function Ut(t,e){var n=e[F2];n===void 0&&(n=e[F2]=new Set);var r=t+"__bubble";n.has(r)||(Yy(e,t,2,!1),n.add(r))}function wp(t,e,n){var r=0;e&&(r|=4),Yy(n,t,r,e)}var xd="_reactListening"+Math.random().toString(36).slice(2);function Yu(t){if(!t[xd]){t[xd]=!0,ey.forEach(function(n){n!=="selectionchange"&&(C_.has(n)||wp(n,!1,t),wp(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xd]||(e[xd]=!0,wp("selectionchange",!1,e))}}function Yy(t,e,n,r){switch(Ey(e)){case 1:var i=Ub;break;case 4:i=zb;break;default:i=K5}n=i.bind(null,e,n,t),i=void 0,!A2||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function bp(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ga(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}my(function(){var u=o,d=V5(n),p=[];e:{var g=Wy.get(t);if(g!==void 0){var h=$5,w=t;switch(t){case"keypress":if(Xd(n)===0)break e;case"keydown":case"keyup":h=n_;break;case"focusin":w="focus",h=fp;break;case"focusout":w="blur",h=fp;break;case"beforeblur":case"afterblur":h=fp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Zm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Vb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=o_;break;case zy:case Gy:case qy:h=Yb;break;case Vy:h=a_;break;case"scroll":h=Gb;break;case"wheel":h=c_;break;case"copy":case"cut":case"paste":h=Xb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=tv}var _=(e&4)!==0,A=!_&&t==="scroll",v=_?g!==null?g+"Capture":null:g;_=[];for(var S=u,y;S!==null;){y=S;var N=y.stateNode;if(y.tag===5&&N!==null&&(y=N,v!==null&&(N=zu(S,v),N!=null&&_.push(Ku(S,N,y)))),A)break;S=S.return}0<_.length&&(g=new h(g,w,null,n,d),p.push({event:g,listeners:_}))}}if(!(e&7)){e:{if(g=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",g&&n!==S2&&(w=n.relatedTarget||n.fromElement)&&(ga(w)||w[Io]))break e;if((h||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,h?(w=n.relatedTarget||n.toElement,h=u,w=w?ga(w):null,w!==null&&(A=ja(w),w!==A||w.tag!==5&&w.tag!==6)&&(w=null)):(h=null,w=u),h!==w)){if(_=Zm,N="onMouseLeave",v="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(_=tv,N="onPointerLeave",v="onPointerEnter",S="pointer"),A=h==null?g:Rl(h),y=w==null?g:Rl(w),g=new _(N,S+"leave",h,n,d),g.target=A,g.relatedTarget=y,N=null,ga(d)===u&&(_=new _(v,S+"enter",w,n,d),_.target=y,_.relatedTarget=A,N=_),A=N,h&&w)t:{for(_=h,v=w,S=0,y=_;y;y=bl(y))S++;for(y=0,N=v;N;N=bl(N))y++;for(;0<S-y;)_=bl(_),S--;for(;0<y-S;)v=bl(v),y--;for(;S--;){if(_===v||v!==null&&_===v.alternate)break t;_=bl(_),v=bl(v)}_=null}else _=null;h!==null&&dv(p,g,h,_,!1),w!==null&&A!==null&&dv(p,A,w,_,!0)}}e:{if(g=u?Rl(u):window,h=g.nodeName&&g.nodeName.toLowerCase(),h==="select"||h==="input"&&g.type==="file")var L=m_;else if(iv(g))if(Oy)L=b_;else{L=y_;var R=v_}else(h=g.nodeName)&&h.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(L=w_);if(L&&(L=L(t,u))){Fy(p,L,n,d);break e}R&&R(t,g,u),t==="focusout"&&(R=g._wrapperState)&&R.controlled&&g.type==="number"&&v2(g,"number",g.value)}switch(R=u?Rl(u):window,t){case"focusin":(iv(R)||R.contentEditable==="true")&&(Fl=R,k2=u,ku=null);break;case"focusout":ku=k2=Fl=null;break;case"mousedown":E2=!0;break;case"contextmenu":case"mouseup":case"dragend":E2=!1,cv(p,n,d);break;case"selectionchange":if(x_)break;case"keydown":case"keyup":cv(p,n,d)}var D;if(J5)e:{switch(t){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Il?My(t,n)&&(k="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(jy&&n.locale!=="ko"&&(Il||k!=="onCompositionStart"?k==="onCompositionEnd"&&Il&&(D=Ty()):(ws=d,X5="value"in ws?ws.value:ws.textContent,Il=!0)),R=bf(u,k),0<R.length&&(k=new ev(k,t,null,n,d),p.push({event:k,listeners:R}),D?k.data=D:(D=Iy(n),D!==null&&(k.data=D)))),(D=h_?d_(t,n):f_(t,n))&&(u=bf(u,"onBeforeInput"),0<u.length&&(d=new ev("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=D))}Hy(p,e)})}function Ku(t,e,n){return{instance:t,listener:e,currentTarget:n}}function bf(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=zu(t,n),o!=null&&r.unshift(Ku(t,o,i)),o=zu(t,e),o!=null&&r.push(Ku(t,o,i))),t=t.return}return r}function bl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function dv(t,e,n,r,i){for(var o=e._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=zu(n,o),l!=null&&s.unshift(Ku(n,l,a))):i||(l=zu(n,o),l!=null&&s.push(Ku(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var P_=/\r\n?/g,L_=/\u0000|\uFFFD/g;function fv(t){return(typeof t=="string"?t:""+t).replace(P_,`
+`).replace(L_,"")}function Ad(t,e,n){if(e=fv(e),fv(t)!==e&&n)throw Error(Le(425))}function _f(){}var T2=null,j2=null;function M2(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var I2=typeof setTimeout=="function"?setTimeout:void 0,k_=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,E_=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(t){return pv.resolve(null).then(t).catch(T_)}:I2;function T_(t){setTimeout(function(){throw t})}function _p(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),Vu(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vu(e)}function Cs(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function gv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var gc=Math.random().toString(36).slice(2),Zi="__reactFiber$"+gc,Xu="__reactProps$"+gc,Io="__reactContainer$"+gc,F2="__reactEvents$"+gc,j_="__reactListeners$"+gc,M_="__reactHandles$"+gc;function ga(t){var e=t[Zi];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Io]||n[Zi]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=gv(t);t!==null;){if(n=t[Zi])return n;t=gv(t)}return e}t=n,n=t.parentNode}return null}function fh(t){return t=t[Zi]||t[Io],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Rl(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Le(33))}function e1(t){return t[Xu]||null}var O2=[],Bl=-1;function Us(t){return{current:t}}function qt(t){0>Bl||(t.current=O2[Bl],O2[Bl]=null,Bl--)}function Dt(t,e){Bl++,O2[Bl]=t.current,t.current=e}var Is={},ar=Us(Is),kr=Us(!1),Aa=Is;function rc(t,e){var n=t.type.contextTypes;if(!n)return Is;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Er(t){return t=t.childContextTypes,t!=null}function Sf(){qt(kr),qt(ar)}function mv(t,e,n){if(ar.current!==Is)throw Error(Le(168));Dt(ar,e),Dt(kr,n)}function Ky(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Le(108,vb(t)||"Unknown",i));return Zt({},n,r)}function xf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Is,Aa=ar.current,Dt(ar,t),Dt(kr,kr.current),!0}function vv(t,e,n){var r=t.stateNode;if(!r)throw Error(Le(169));n?(t=Ky(t,e,Aa),r.__reactInternalMemoizedMergedChildContext=t,qt(kr),qt(ar),Dt(ar,t)):qt(kr),Dt(kr,n)}var Po=null,t1=!1,Sp=!1;function Xy(t){Po===null?Po=[t]:Po.push(t)}function I_(t){t1=!0,Xy(t)}function zs(){if(!Sp&&Po!==null){Sp=!0;var t=0,e=Lt;try{var n=Po;for(Lt=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Po=null,t1=!1}catch(i){throw Po!==null&&(Po=Po.slice(t+1)),by(W5,zs),i}finally{Lt=e,Sp=!1}}return null}var Dl=[],Ul=0,Af=null,Nf=0,ti=[],ni=0,Na=null,ko=1,Eo="";function ha(t,e){Dl[Ul++]=Nf,Dl[Ul++]=Af,Af=t,Nf=e}function $y(t,e,n){ti[ni++]=ko,ti[ni++]=Eo,ti[ni++]=Na,Na=t;var r=ko;t=Eo;var i=32-Ei(r)-1;r&=~(1<<i),n+=1;var o=32-Ei(e)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ko=1<<32-Ei(e)+i|n<<i|r,Eo=o+t}else ko=1<<o|n<<i|r,Eo=t}function eg(t){t.return!==null&&(ha(t,1),$y(t,1,0))}function tg(t){for(;t===Af;)Af=Dl[--Ul],Dl[Ul]=null,Nf=Dl[--Ul],Dl[Ul]=null;for(;t===Na;)Na=ti[--ni],ti[ni]=null,Eo=ti[--ni],ti[ni]=null,ko=ti[--ni],ti[ni]=null}var zr=null,Dr=null,Ht=!1,ki=null;function Qy(t,e){var n=ii(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function yv(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,zr=t,Dr=Cs(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,zr=t,Dr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Na!==null?{id:ko,overflow:Eo}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=ii(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,zr=t,Dr=null,!0):!1;default:return!1}}function R2(t){return(t.mode&1)!==0&&(t.flags&128)===0}function B2(t){if(Ht){var e=Dr;if(e){var n=e;if(!yv(t,e)){if(R2(t))throw Error(Le(418));e=Cs(n.nextSibling);var r=zr;e&&yv(t,e)?Qy(r,n):(t.flags=t.flags&-4097|2,Ht=!1,zr=t)}}else{if(R2(t))throw Error(Le(418));t.flags=t.flags&-4097|2,Ht=!1,zr=t}}}function wv(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;zr=t}function Nd(t){if(t!==zr)return!1;if(!Ht)return wv(t),Ht=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!M2(t.type,t.memoizedProps)),e&&(e=Dr)){if(R2(t))throw Jy(),Error(Le(418));for(;e;)Qy(t,e),e=Cs(e.nextSibling)}if(wv(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Le(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Dr=Cs(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Dr=null}}else Dr=zr?Cs(t.stateNode.nextSibling):null;return!0}function Jy(){for(var t=Dr;t;)t=Cs(t.nextSibling)}function ic(){Dr=zr=null,Ht=!1}function ng(t){ki===null?ki=[t]:ki.push(t)}var F_=Bo.ReactCurrentBatchConfig;function cu(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Le(309));var r=n.stateNode}if(!r)throw Error(Le(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(Le(284));if(!n._owner)throw Error(Le(290,t))}return t}function Cd(t,e){throw t=Object.prototype.toString.call(e),Error(Le(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function bv(t){var e=t._init;return e(t._payload)}function Zy(t){function e(v,S){if(t){var y=v.deletions;y===null?(v.deletions=[S],v.flags|=16):y.push(S)}}function n(v,S){if(!t)return null;for(;S!==null;)e(v,S),S=S.sibling;return null}function r(v,S){for(v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function i(v,S){return v=Es(v,S),v.index=0,v.sibling=null,v}function o(v,S,y){return v.index=y,t?(y=v.alternate,y!==null?(y=y.index,y<S?(v.flags|=2,S):y):(v.flags|=2,S)):(v.flags|=1048576,S)}function s(v){return t&&v.alternate===null&&(v.flags|=2),v}function a(v,S,y,N){return S===null||S.tag!==6?(S=kp(y,v.mode,N),S.return=v,S):(S=i(S,y),S.return=v,S)}function l(v,S,y,N){var L=y.type;return L===Ml?d(v,S,y.props.children,N,y.key):S!==null&&(S.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ds&&bv(L)===S.type)?(N=i(S,y.props),N.ref=cu(v,S,y),N.return=v,N):(N=nf(y.type,y.key,y.props,null,v.mode,N),N.ref=cu(v,S,y),N.return=v,N)}function u(v,S,y,N){return S===null||S.tag!==4||S.stateNode.containerInfo!==y.containerInfo||S.stateNode.implementation!==y.implementation?(S=Ep(y,v.mode,N),S.return=v,S):(S=i(S,y.children||[]),S.return=v,S)}function d(v,S,y,N,L){return S===null||S.tag!==7?(S=ba(y,v.mode,N,L),S.return=v,S):(S=i(S,y),S.return=v,S)}function p(v,S,y){if(typeof S=="string"&&S!==""||typeof S=="number")return S=kp(""+S,v.mode,y),S.return=v,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case gd:return y=nf(S.type,S.key,S.props,null,v.mode,y),y.ref=cu(v,null,S),y.return=v,y;case jl:return S=Ep(S,v.mode,y),S.return=v,S;case ds:var N=S._init;return p(v,N(S._payload),y)}if(Su(S)||iu(S))return S=ba(S,v.mode,y,null),S.return=v,S;Cd(v,S)}return null}function g(v,S,y,N){var L=S!==null?S.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return L!==null?null:a(v,S,""+y,N);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gd:return y.key===L?l(v,S,y,N):null;case jl:return y.key===L?u(v,S,y,N):null;case ds:return L=y._init,g(v,S,L(y._payload),N)}if(Su(y)||iu(y))return L!==null?null:d(v,S,y,N,null);Cd(v,y)}return null}function h(v,S,y,N,L){if(typeof N=="string"&&N!==""||typeof N=="number")return v=v.get(y)||null,a(S,v,""+N,L);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case gd:return v=v.get(N.key===null?y:N.key)||null,l(S,v,N,L);case jl:return v=v.get(N.key===null?y:N.key)||null,u(S,v,N,L);case ds:var R=N._init;return h(v,S,y,R(N._payload),L)}if(Su(N)||iu(N))return v=v.get(y)||null,d(S,v,N,L,null);Cd(S,N)}return null}function w(v,S,y,N){for(var L=null,R=null,D=S,k=S=0,z=null;D!==null&&k<y.length;k++){D.index>k?(z=D,D=null):z=D.sibling;var T=g(v,D,y[k],N);if(T===null){D===null&&(D=z);break}t&&D&&T.alternate===null&&e(v,D),S=o(T,S,k),R===null?L=T:R.sibling=T,R=T,D=z}if(k===y.length)return n(v,D),Ht&&ha(v,k),L;if(D===null){for(;k<y.length;k++)D=p(v,y[k],N),D!==null&&(S=o(D,S,k),R===null?L=D:R.sibling=D,R=D);return Ht&&ha(v,k),L}for(D=r(v,D);k<y.length;k++)z=h(D,v,k,y[k],N),z!==null&&(t&&z.alternate!==null&&D.delete(z.key===null?k:z.key),S=o(z,S,k),R===null?L=z:R.sibling=z,R=z);return t&&D.forEach(function(P){return e(v,P)}),Ht&&ha(v,k),L}function _(v,S,y,N){var L=iu(y);if(typeof L!="function")throw Error(Le(150));if(y=L.call(y),y==null)throw Error(Le(151));for(var R=L=null,D=S,k=S=0,z=null,T=y.next();D!==null&&!T.done;k++,T=y.next()){D.index>k?(z=D,D=null):z=D.sibling;var P=g(v,D,T.value,N);if(P===null){D===null&&(D=z);break}t&&D&&P.alternate===null&&e(v,D),S=o(P,S,k),R===null?L=P:R.sibling=P,R=P,D=z}if(T.done)return n(v,D),Ht&&ha(v,k),L;if(D===null){for(;!T.done;k++,T=y.next())T=p(v,T.value,N),T!==null&&(S=o(T,S,k),R===null?L=T:R.sibling=T,R=T);return Ht&&ha(v,k),L}for(D=r(v,D);!T.done;k++,T=y.next())T=h(D,v,k,T.value,N),T!==null&&(t&&T.alternate!==null&&D.delete(T.key===null?k:T.key),S=o(T,S,k),R===null?L=T:R.sibling=T,R=T);return t&&D.forEach(function(E){return e(v,E)}),Ht&&ha(v,k),L}function A(v,S,y,N){if(typeof y=="object"&&y!==null&&y.type===Ml&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case gd:e:{for(var L=y.key,R=S;R!==null;){if(R.key===L){if(L=y.type,L===Ml){if(R.tag===7){n(v,R.sibling),S=i(R,y.props.children),S.return=v,v=S;break e}}else if(R.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ds&&bv(L)===R.type){n(v,R.sibling),S=i(R,y.props),S.ref=cu(v,R,y),S.return=v,v=S;break e}n(v,R);break}else e(v,R);R=R.sibling}y.type===Ml?(S=ba(y.props.children,v.mode,N,y.key),S.return=v,v=S):(N=nf(y.type,y.key,y.props,null,v.mode,N),N.ref=cu(v,S,y),N.return=v,v=N)}return s(v);case jl:e:{for(R=y.key;S!==null;){if(S.key===R)if(S.tag===4&&S.stateNode.containerInfo===y.containerInfo&&S.stateNode.implementation===y.implementation){n(v,S.sibling),S=i(S,y.children||[]),S.return=v,v=S;break e}else{n(v,S);break}else e(v,S);S=S.sibling}S=Ep(y,v.mode,N),S.return=v,v=S}return s(v);case ds:return R=y._init,A(v,S,R(y._payload),N)}if(Su(y))return w(v,S,y,N);if(iu(y))return _(v,S,y,N);Cd(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,S!==null&&S.tag===6?(n(v,S.sibling),S=i(S,y),S.return=v,v=S):(n(v,S),S=kp(y,v.mode,N),S.return=v,v=S),s(v)):n(v,S)}return A}var oc=Zy(!0),e6=Zy(!1),Cf=Us(null),Pf=null,zl=null,rg=null;function ig(){rg=zl=Pf=null}function og(t){var e=Cf.current;qt(Cf),t._currentValue=e}function D2(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Xl(t,e){Pf=t,rg=zl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Lr=!0),t.firstContext=null)}function si(t){var e=t._currentValue;if(rg!==t)if(t={context:t,memoizedValue:e,next:null},zl===null){if(Pf===null)throw Error(Le(308));zl=t,Pf.dependencies={lanes:0,firstContext:t}}else zl=zl.next=t;return e}var ma=null;function sg(t){ma===null?ma=[t]:ma.push(t)}function t6(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,sg(e)):(n.next=i.next,i.next=n),e.interleaved=n,Fo(t,r)}function Fo(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var fs=!1;function ag(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n6(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function To(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ps(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,vt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Fo(t,n)}return i=r.interleaved,i===null?(e.next=e,sg(r)):(e.next=i.next,i.next=e),r.interleaved=e,Fo(t,n)}function $d(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,H5(t,n)}}function _v(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Lf(t,e,n,r){var i=t.updateQueue;fs=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;s=0,d=u=l=null,a=o;do{var g=a.lane,h=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=t,_=a;switch(g=e,h=n,_.tag){case 1:if(w=_.payload,typeof w=="function"){p=w.call(h,p,g);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,g=typeof w=="function"?w.call(h,p,g):w,g==null)break e;p=Zt({},p,g);break e;case 2:fs=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else h={eventTime:h,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,l=p):d=d.next=h,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do s|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Pa|=s,t.lanes=s,t.memoizedState=p}}function Sv(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Le(191,i));i.call(r)}}}var ph={},ro=Us(ph),$u=Us(ph),Qu=Us(ph);function va(t){if(t===ph)throw Error(Le(174));return t}function lg(t,e){switch(Dt(Qu,e),Dt($u,t),Dt(ro,ph),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:w2(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=w2(e,t)}qt(ro),Dt(ro,e)}function sc(){qt(ro),qt($u),qt(Qu)}function r6(t){va(Qu.current);var e=va(ro.current),n=w2(e,t.type);e!==n&&(Dt($u,t),Dt(ro,n))}function cg(t){$u.current===t&&(qt(ro),qt($u))}var $t=Us(0);function kf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var xp=[];function ug(){for(var t=0;t<xp.length;t++)xp[t]._workInProgressVersionPrimary=null;xp.length=0}var Qd=Bo.ReactCurrentDispatcher,Ap=Bo.ReactCurrentBatchConfig,Ca=0,Jt=null,En=null,Bn=null,Ef=!1,Eu=!1,Ju=0,O_=0;function $n(){throw Error(Le(321))}function hg(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Mi(t[n],e[n]))return!1;return!0}function dg(t,e,n,r,i,o){if(Ca=o,Jt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Qd.current=t===null||t.memoizedState===null?U_:z_,t=n(r,i),Eu){o=0;do{if(Eu=!1,Ju=0,25<=o)throw Error(Le(301));o+=1,Bn=En=null,e.updateQueue=null,Qd.current=G_,t=n(r,i)}while(Eu)}if(Qd.current=Tf,e=En!==null&&En.next!==null,Ca=0,Bn=En=Jt=null,Ef=!1,e)throw Error(Le(300));return t}function fg(){var t=Ju!==0;return Ju=0,t}function Ji(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?Jt.memoizedState=Bn=t:Bn=Bn.next=t,Bn}function ai(){if(En===null){var t=Jt.alternate;t=t!==null?t.memoizedState:null}else t=En.next;var e=Bn===null?Jt.memoizedState:Bn.next;if(e!==null)Bn=e,En=t;else{if(t===null)throw Error(Le(310));En=t,t={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null},Bn===null?Jt.memoizedState=Bn=t:Bn=Bn.next=t}return Bn}function Zu(t,e){return typeof e=="function"?e(t):e}function Np(t){var e=ai(),n=e.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=t;var r=En,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var d=u.lane;if((Ca&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=r):l=l.next=p,Jt.lanes|=d,Pa|=d}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Mi(r,e.memoizedState)||(Lr=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,Jt.lanes|=o,Pa|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Cp(t){var e=ai(),n=e.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Mi(o,e.memoizedState)||(Lr=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function i6(){}function o6(t,e){var n=Jt,r=ai(),i=e(),o=!Mi(r.memoizedState,i);if(o&&(r.memoizedState=i,Lr=!0),r=r.queue,pg(l6.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Bn!==null&&Bn.memoizedState.tag&1){if(n.flags|=2048,eh(9,a6.bind(null,n,r,i,e),void 0,null),Un===null)throw Error(Le(349));Ca&30||s6(n,e,i)}return i}function s6(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Jt.updateQueue,e===null?(e={lastEffect:null,stores:null},Jt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function a6(t,e,n,r){e.value=n,e.getSnapshot=r,c6(e)&&u6(t)}function l6(t,e,n){return n(function(){c6(e)&&u6(t)})}function c6(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Mi(t,n)}catch{return!0}}function u6(t){var e=Fo(t,1);e!==null&&Ti(e,t,1,-1)}function xv(t){var e=Ji();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zu,lastRenderedState:t},e.queue=t,t=t.dispatch=D_.bind(null,Jt,t),[e.memoizedState,t]}function eh(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Jt.updateQueue,e===null?(e={lastEffect:null,stores:null},Jt.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function h6(){return ai().memoizedState}function Jd(t,e,n,r){var i=Ji();Jt.flags|=t,i.memoizedState=eh(1|e,n,void 0,r===void 0?null:r)}function n1(t,e,n,r){var i=ai();r=r===void 0?null:r;var o=void 0;if(En!==null){var s=En.memoizedState;if(o=s.destroy,r!==null&&hg(r,s.deps)){i.memoizedState=eh(e,n,o,r);return}}Jt.flags|=t,i.memoizedState=eh(1|e,n,o,r)}function Av(t,e){return Jd(8390656,8,t,e)}function pg(t,e){return n1(2048,8,t,e)}function d6(t,e){return n1(4,2,t,e)}function f6(t,e){return n1(4,4,t,e)}function p6(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function g6(t,e,n){return n=n!=null?n.concat([t]):null,n1(4,4,p6.bind(null,e,t),n)}function gg(){}function m6(t,e){var n=ai();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&hg(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function v6(t,e){var n=ai();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&hg(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function y6(t,e,n){return Ca&21?(Mi(n,e)||(n=xy(),Jt.lanes|=n,Pa|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Lr=!0),t.memoizedState=n)}function R_(t,e){var n=Lt;Lt=n!==0&&4>n?n:4,t(!0);var r=Ap.transition;Ap.transition={};try{t(!1),e()}finally{Lt=n,Ap.transition=r}}function w6(){return ai().memoizedState}function B_(t,e,n){var r=ks(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b6(t))_6(e,n);else if(n=t6(t,e,n,r),n!==null){var i=mr();Ti(n,t,r,i),S6(n,e,r)}}function D_(t,e,n){var r=ks(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b6(t))_6(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Mi(a,s)){var l=e.interleaved;l===null?(i.next=i,sg(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=t6(t,e,i,r),n!==null&&(i=mr(),Ti(n,t,r,i),S6(n,e,r))}}function b6(t){var e=t.alternate;return t===Jt||e!==null&&e===Jt}function _6(t,e){Eu=Ef=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function S6(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,H5(t,n)}}var Tf={readContext:si,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},U_={readContext:si,useCallback:function(t,e){return Ji().memoizedState=[t,e===void 0?null:e],t},useContext:si,useEffect:Av,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Jd(4194308,4,p6.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Jd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Jd(4,2,t,e)},useMemo:function(t,e){var n=Ji();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ji();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=B_.bind(null,Jt,t),[r.memoizedState,t]},useRef:function(t){var e=Ji();return t={current:t},e.memoizedState=t},useState:xv,useDebugValue:gg,useDeferredValue:function(t){return Ji().memoizedState=t},useTransition:function(){var t=xv(!1),e=t[0];return t=R_.bind(null,t[1]),Ji().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Jt,i=Ji();if(Ht){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=e(),Un===null)throw Error(Le(349));Ca&30||s6(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,Av(l6.bind(null,r,o,t),[t]),r.flags|=2048,eh(9,a6.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Ji(),e=Un.identifierPrefix;if(Ht){var n=Eo,r=ko;n=(r&~(1<<32-Ei(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ju++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=O_++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},z_={readContext:si,useCallback:m6,useContext:si,useEffect:pg,useImperativeHandle:g6,useInsertionEffect:d6,useLayoutEffect:f6,useMemo:v6,useReducer:Np,useRef:h6,useState:function(){return Np(Zu)},useDebugValue:gg,useDeferredValue:function(t){var e=ai();return y6(e,En.memoizedState,t)},useTransition:function(){var t=Np(Zu)[0],e=ai().memoizedState;return[t,e]},useMutableSource:i6,useSyncExternalStore:o6,useId:w6,unstable_isNewReconciler:!1},G_={readContext:si,useCallback:m6,useContext:si,useEffect:pg,useImperativeHandle:g6,useInsertionEffect:d6,useLayoutEffect:f6,useMemo:v6,useReducer:Cp,useRef:h6,useState:function(){return Cp(Zu)},useDebugValue:gg,useDeferredValue:function(t){var e=ai();return En===null?e.memoizedState=t:y6(e,En.memoizedState,t)},useTransition:function(){var t=Cp(Zu)[0],e=ai().memoizedState;return[t,e]},useMutableSource:i6,useSyncExternalStore:o6,useId:w6,unstable_isNewReconciler:!1};function Ci(t,e){if(t&&t.defaultProps){e=Zt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function U2(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Zt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var r1={isMounted:function(t){return(t=t._reactInternals)?ja(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=mr(),i=ks(t),o=To(r,i);o.payload=e,n!=null&&(o.callback=n),e=Ps(t,o,i),e!==null&&(Ti(e,t,i,r),$d(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=mr(),i=ks(t),o=To(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Ps(t,o,i),e!==null&&(Ti(e,t,i,r),$d(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=mr(),r=ks(t),i=To(n,r);i.tag=2,e!=null&&(i.callback=e),e=Ps(t,i,r),e!==null&&(Ti(e,t,r,n),$d(e,t,r))}};function Nv(t,e,n,r,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!Hu(n,r)||!Hu(i,o):!0}function x6(t,e,n){var r=!1,i=Is,o=e.contextType;return typeof o=="object"&&o!==null?o=si(o):(i=Er(e)?Aa:ar.current,r=e.contextTypes,o=(r=r!=null)?rc(t,i):Is),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=r1,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Cv(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&r1.enqueueReplaceState(e,e.state,null)}function z2(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},ag(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=si(o):(o=Er(e)?Aa:ar.current,i.context=rc(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(U2(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&r1.enqueueReplaceState(i,i.state,null),Lf(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function ac(t,e){try{var n="",r=e;do n+=mb(r),r=r.return;while(r);var i=n}catch(o){i=`
+Error generating stack: `+o.message+`
+`+o.stack}return{value:t,source:e,stack:i,digest:null}}function Pp(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function G2(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var q_=typeof WeakMap=="function"?WeakMap:Map;function A6(t,e,n){n=To(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Mf||(Mf=!0,J2=r),G2(t,e)},n}function N6(t,e,n){n=To(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){G2(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){G2(t,e),typeof r!="function"&&(Ls===null?Ls=new Set([this]):Ls.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function Pv(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new q_;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=r9.bind(null,t,e,n),e.then(t,t))}function Lv(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function kv(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=To(-1,1),e.tag=2,Ps(n,e,1))),n.lanes|=1),t)}var V_=Bo.ReactCurrentOwner,Lr=!1;function gr(t,e,n,r){e.child=t===null?e6(e,null,n,r):oc(e,t.child,n,r)}function Ev(t,e,n,r,i){n=n.render;var o=e.ref;return Xl(e,i),r=dg(t,e,n,r,o,i),n=fg(),t!==null&&!Lr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Oo(t,e,i)):(Ht&&n&&eg(e),e.flags|=1,gr(t,e,r,i),e.child)}function Tv(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!xg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,C6(t,e,o,r,i)):(t=nf(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hu,n(s,r)&&t.ref===e.ref)return Oo(t,e,i)}return e.flags|=1,t=Es(o,r),t.ref=e.ref,t.return=e,e.child=t}function C6(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(Hu(o,r)&&t.ref===e.ref)if(Lr=!1,e.pendingProps=r=o,(t.lanes&i)!==0)t.flags&131072&&(Lr=!0);else return e.lanes=t.lanes,Oo(t,e,i)}return q2(t,e,n,r,i)}function P6(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(ql,Br),Br|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Dt(ql,Br),Br|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dt(ql,Br),Br|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Dt(ql,Br),Br|=r;return gr(t,e,i,n),e.child}function L6(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function q2(t,e,n,r,i){var o=Er(n)?Aa:ar.current;return o=rc(e,o),Xl(e,i),n=dg(t,e,n,r,o,i),r=fg(),t!==null&&!Lr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Oo(t,e,i)):(Ht&&r&&eg(e),e.flags|=1,gr(t,e,n,i),e.child)}function jv(t,e,n,r,i){if(Er(n)){var o=!0;xf(e)}else o=!1;if(Xl(e,i),e.stateNode===null)Zd(t,e),x6(e,n,r),z2(e,n,r,i),r=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=si(u):(u=Er(n)?Aa:ar.current,u=rc(e,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Cv(e,s,r,u),fs=!1;var g=e.memoizedState;s.state=g,Lf(e,r,s,i),l=e.memoizedState,a!==r||g!==l||kr.current||fs?(typeof d=="function"&&(U2(e,n,d,r),l=e.memoizedState),(a=fs||Nv(e,n,a,r,g,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{s=e.stateNode,n6(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Ci(e.type,a),s.props=u,p=e.pendingProps,g=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=si(l):(l=Er(n)?Aa:ar.current,l=rc(e,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||g!==l)&&Cv(e,s,r,l),fs=!1,g=e.memoizedState,s.state=g,Lf(e,r,s,i);var w=e.memoizedState;a!==p||g!==w||kr.current||fs?(typeof h=="function"&&(U2(e,n,h,r),w=e.memoizedState),(u=fs||Nv(e,n,u,r,g,w,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),s.props=r,s.state=w,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),r=!1)}return V2(t,e,n,r,o,i)}function V2(t,e,n,r,i,o){L6(t,e);var s=(e.flags&128)!==0;if(!r&&!s)return i&&vv(e,n,!1),Oo(t,e,o);r=e.stateNode,V_.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=oc(e,t.child,null,o),e.child=oc(e,null,a,o)):gr(t,e,a,o),e.memoizedState=r.state,i&&vv(e,n,!0),e.child}function k6(t){var e=t.stateNode;e.pendingContext?mv(t,e.pendingContext,e.pendingContext!==e.context):e.context&&mv(t,e.context,!1),lg(t,e.containerInfo)}function Mv(t,e,n,r,i){return ic(),ng(i),e.flags|=256,gr(t,e,n,r),e.child}var W2={dehydrated:null,treeContext:null,retryLane:0};function H2(t){return{baseLanes:t,cachePool:null,transitions:null}}function E6(t,e,n){var r=e.pendingProps,i=$t.current,o=!1,s=(e.flags&128)!==0,a;if((a=s)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Dt($t,i&1),t===null)return B2(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=r.children,t=r.fallback,o?(r=e.mode,o=e.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=s1(s,r,0,null),t=ba(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=H2(n),e.memoizedState=W2,t):mg(e,s));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return W_(t,e,s,r,a,i,n);if(o){o=r.fallback,s=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Es(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Es(a,o):(o=ba(o,s,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,s=t.child.memoizedState,s=s===null?H2(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=W2,r}return o=t.child,t=o.sibling,r=Es(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function mg(t,e){return e=s1({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Pd(t,e,n,r){return r!==null&&ng(r),oc(e,t.child,null,n),t=mg(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function W_(t,e,n,r,i,o,s){if(n)return e.flags&256?(e.flags&=-257,r=Pp(Error(Le(422))),Pd(t,e,s,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=s1({mode:"visible",children:r.children},i,0,null),o=ba(o,i,s,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&oc(e,t.child,null,s),e.child.memoizedState=H2(s),e.memoizedState=W2,o);if(!(e.mode&1))return Pd(t,e,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Le(419)),r=Pp(o,r,void 0),Pd(t,e,s,r)}if(a=(s&t.childLanes)!==0,Lr||a){if(r=Un,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Fo(t,i),Ti(r,t,i,-1))}return Sg(),r=Pp(Error(Le(421))),Pd(t,e,s,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=i9.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,Dr=Cs(i.nextSibling),zr=e,Ht=!0,ki=null,t!==null&&(ti[ni++]=ko,ti[ni++]=Eo,ti[ni++]=Na,ko=t.id,Eo=t.overflow,Na=e),e=mg(e,r.children),e.flags|=4096,e)}function Iv(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),D2(t.return,e,n)}function Lp(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function T6(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(gr(t,e,r.children,n),r=$t.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Iv(t,n,e);else if(t.tag===19)Iv(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Dt($t,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&kf(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Lp(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&kf(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Lp(e,!0,n,null,o);break;case"together":Lp(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Zd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Oo(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Pa|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Le(153));if(e.child!==null){for(t=e.child,n=Es(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Es(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function H_(t,e,n){switch(e.tag){case 3:k6(e),ic();break;case 5:r6(e);break;case 1:Er(e.type)&&xf(e);break;case 4:lg(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Dt(Cf,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Dt($t,$t.current&1),e.flags|=128,null):n&e.child.childLanes?E6(t,e,n):(Dt($t,$t.current&1),t=Oo(t,e,n),t!==null?t.sibling:null);Dt($t,$t.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return T6(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Dt($t,$t.current),r)break;return null;case 22:case 23:return e.lanes=0,P6(t,e,n)}return Oo(t,e,n)}var j6,Y2,M6,I6;j6=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Y2=function(){};M6=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,va(ro.current);var o=null;switch(n){case"input":i=g2(t,i),r=g2(t,r),o=[];break;case"select":i=Zt({},i,{value:void 0}),r=Zt({},r,{value:void 0}),o=[];break;case"textarea":i=y2(t,i),r=y2(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=_f)}b2(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Du.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Du.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ut("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};I6=function(t,e,n,r){n!==r&&(e.flags|=4)};function uu(t,e){if(!Ht)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Qn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Y_(t,e,n){var r=e.pendingProps;switch(tg(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qn(e),null;case 1:return Er(e.type)&&Sf(),Qn(e),null;case 3:return r=e.stateNode,sc(),qt(kr),qt(ar),ug(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Nd(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,ki!==null&&(t5(ki),ki=null))),Y2(t,e),Qn(e),null;case 5:cg(e);var i=va(Qu.current);if(n=e.type,t!==null&&e.stateNode!=null)M6(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Le(166));return Qn(e),null}if(t=va(ro.current),Nd(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[Zi]=e,r[Xu]=o,t=(e.mode&1)!==0,n){case"dialog":Ut("cancel",r),Ut("close",r);break;case"iframe":case"object":case"embed":Ut("load",r);break;case"video":case"audio":for(i=0;i<Au.length;i++)Ut(Au[i],r);break;case"source":Ut("error",r);break;case"img":case"image":case"link":Ut("error",r),Ut("load",r);break;case"details":Ut("toggle",r);break;case"input":qm(r,o),Ut("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ut("invalid",r);break;case"textarea":Wm(r,o),Ut("invalid",r)}b2(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ad(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ad(r.textContent,a,t),i=["children",""+a]):Du.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ut("scroll",r)}switch(n){case"input":md(r),Vm(r,o,!0);break;case"textarea":md(r),Hm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=_f)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=ly(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[Zi]=e,t[Xu]=r,j6(t,e,!1,!1),e.stateNode=t;e:{switch(s=_2(n,r),n){case"dialog":Ut("cancel",t),Ut("close",t),i=r;break;case"iframe":case"object":case"embed":Ut("load",t),i=r;break;case"video":case"audio":for(i=0;i<Au.length;i++)Ut(Au[i],t);i=r;break;case"source":Ut("error",t),i=r;break;case"img":case"image":case"link":Ut("error",t),Ut("load",t),i=r;break;case"details":Ut("toggle",t),i=r;break;case"input":qm(t,r),i=g2(t,r),Ut("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Zt({},r,{value:void 0}),Ut("invalid",t);break;case"textarea":Wm(t,r),i=y2(t,r),Ut("invalid",t);break;default:i=r}b2(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hy(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&cy(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Uu(t,l):typeof l=="number"&&Uu(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Du.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ut("scroll",t):l!=null&&U5(t,o,l,s))}switch(n){case"input":md(t),Vm(t,r,!1);break;case"textarea":md(t),Hm(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Ms(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?Wl(t,!!r.multiple,o,!1):r.defaultValue!=null&&Wl(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=_f)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Qn(e),null;case 6:if(t&&e.stateNode!=null)I6(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Le(166));if(n=va(Qu.current),va(ro.current),Nd(e)){if(r=e.stateNode,n=e.memoizedProps,r[Zi]=e,(o=r.nodeValue!==n)&&(t=zr,t!==null))switch(t.tag){case 3:Ad(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ad(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zi]=e,e.stateNode=r}return Qn(e),null;case 13:if(qt($t),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ht&&Dr!==null&&e.mode&1&&!(e.flags&128))Jy(),ic(),e.flags|=98560,o=!1;else if(o=Nd(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(Le(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Le(317));o[Zi]=e}else ic(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Qn(e),o=!1}else ki!==null&&(t5(ki),ki=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||$t.current&1?Tn===0&&(Tn=3):Sg())),e.updateQueue!==null&&(e.flags|=4),Qn(e),null);case 4:return sc(),Y2(t,e),t===null&&Yu(e.stateNode.containerInfo),Qn(e),null;case 10:return og(e.type._context),Qn(e),null;case 17:return Er(e.type)&&Sf(),Qn(e),null;case 19:if(qt($t),o=e.memoizedState,o===null)return Qn(e),null;if(r=(e.flags&128)!==0,s=o.rendering,s===null)if(r)uu(o,!1);else{if(Tn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=kf(t),s!==null){for(e.flags|=128,uu(o,!1),r=s.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Dt($t,$t.current&1|2),e.child}t=t.sibling}o.tail!==null&&pn()>lc&&(e.flags|=128,r=!0,uu(o,!1),e.lanes=4194304)}else{if(!r)if(t=kf(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),uu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ht)return Qn(e),null}else 2*pn()-o.renderingStartTime>lc&&n!==1073741824&&(e.flags|=128,r=!0,uu(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=pn(),e.sibling=null,n=$t.current,Dt($t,r?n&1|2:n&1),e):(Qn(e),null);case 22:case 23:return _g(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Br&1073741824&&(Qn(e),e.subtreeFlags&6&&(e.flags|=8192)):Qn(e),null;case 24:return null;case 25:return null}throw Error(Le(156,e.tag))}function K_(t,e){switch(tg(e),e.tag){case 1:return Er(e.type)&&Sf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sc(),qt(kr),qt(ar),ug(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cg(e),null;case 13:if(qt($t),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Le(340));ic()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qt($t),null;case 4:return sc(),null;case 10:return og(e.type._context),null;case 22:case 23:return _g(),null;case 24:return null;default:return null}}var Ld=!1,ir=!1,X_=typeof WeakSet=="function"?WeakSet:Set,De=null;function Gl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){an(t,e,r)}else n.current=null}function K2(t,e,n){try{n()}catch(r){an(t,e,r)}}var Fv=!1;function $_(t,e){if(T2=yf,t=Dy(),Z5(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=t,g=null;t:for(;;){for(var h;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==o||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(h=p.firstChild)!==null;)g=p,p=h;for(;;){if(p===t)break t;if(g===n&&++u===i&&(a=s),g===o&&++d===r&&(l=s),(h=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(j2={focusedElem:t,selectionRange:n},yf=!1,De=e;De!==null;)if(e=De,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,De=t;else for(;De!==null;){e=De;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,A=w.memoizedState,v=e.stateNode,S=v.getSnapshotBeforeUpdate(e.elementType===e.type?_:Ci(e.type,_),A);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(N){an(e,e.return,N)}if(t=e.sibling,t!==null){t.return=e.return,De=t;break}De=e.return}return w=Fv,Fv=!1,w}function Tu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&K2(e,n,o)}i=i.next}while(i!==r)}}function i1(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function X2(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function F6(t){var e=t.alternate;e!==null&&(t.alternate=null,F6(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Zi],delete e[Xu],delete e[F2],delete e[j_],delete e[M_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function O6(t){return t.tag===5||t.tag===3||t.tag===4}function Ov(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||O6(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $2(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=_f));else if(r!==4&&(t=t.child,t!==null))for($2(t,e,n),t=t.sibling;t!==null;)$2(t,e,n),t=t.sibling}function Q2(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Q2(t,e,n),t=t.sibling;t!==null;)Q2(t,e,n),t=t.sibling}var Vn=null,Li=!1;function ss(t,e,n){for(n=n.child;n!==null;)R6(t,e,n),n=n.sibling}function R6(t,e,n){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount($f,n)}catch{}switch(n.tag){case 5:ir||Gl(n,e);case 6:var r=Vn,i=Li;Vn=null,ss(t,e,n),Vn=r,Li=i,Vn!==null&&(Li?(t=Vn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Vn.removeChild(n.stateNode));break;case 18:Vn!==null&&(Li?(t=Vn,n=n.stateNode,t.nodeType===8?_p(t.parentNode,n):t.nodeType===1&&_p(t,n),Vu(t)):_p(Vn,n.stateNode));break;case 4:r=Vn,i=Li,Vn=n.stateNode.containerInfo,Li=!0,ss(t,e,n),Vn=r,Li=i;break;case 0:case 11:case 14:case 15:if(!ir&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&K2(n,e,s),i=i.next}while(i!==r)}ss(t,e,n);break;case 1:if(!ir&&(Gl(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){an(n,e,a)}ss(t,e,n);break;case 21:ss(t,e,n);break;case 22:n.mode&1?(ir=(r=ir)||n.memoizedState!==null,ss(t,e,n),ir=r):ss(t,e,n);break;default:ss(t,e,n)}}function Rv(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new X_),e.forEach(function(r){var i=o9.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wi(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,s=e,a=s;e:for(;a!==null;){switch(a.tag){case 5:Vn=a.stateNode,Li=!1;break e;case 3:Vn=a.stateNode.containerInfo,Li=!0;break e;case 4:Vn=a.stateNode.containerInfo,Li=!0;break e}a=a.return}if(Vn===null)throw Error(Le(160));R6(o,s,i),Vn=null,Li=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){an(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)B6(e,t),e=e.sibling}function B6(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(wi(e,t),Yi(t),r&4){try{Tu(3,t,t.return),i1(3,t)}catch(_){an(t,t.return,_)}try{Tu(5,t,t.return)}catch(_){an(t,t.return,_)}}break;case 1:wi(e,t),Yi(t),r&512&&n!==null&&Gl(n,n.return);break;case 5:if(wi(e,t),Yi(t),r&512&&n!==null&&Gl(n,n.return),t.flags&32){var i=t.stateNode;try{Uu(i,"")}catch(_){an(t,t.return,_)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,s=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&sy(i,o),_2(a,s);var u=_2(a,o);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];d==="style"?hy(i,p):d==="dangerouslySetInnerHTML"?cy(i,p):d==="children"?Uu(i,p):U5(i,d,p,u)}switch(a){case"input":m2(i,o);break;case"textarea":ay(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Wl(i,!!o.multiple,h,!1):g!==!!o.multiple&&(o.defaultValue!=null?Wl(i,!!o.multiple,o.defaultValue,!0):Wl(i,!!o.multiple,o.multiple?[]:"",!1))}i[Xu]=o}catch(_){an(t,t.return,_)}}break;case 6:if(wi(e,t),Yi(t),r&4){if(t.stateNode===null)throw Error(Le(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(_){an(t,t.return,_)}}break;case 3:if(wi(e,t),Yi(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vu(e.containerInfo)}catch(_){an(t,t.return,_)}break;case 4:wi(e,t),Yi(t);break;case 13:wi(e,t),Yi(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(wg=pn())),r&4&&Rv(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ir=(u=ir)||d,wi(e,t),ir=u):wi(e,t),Yi(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(De=t,d=t.child;d!==null;){for(p=De=d;De!==null;){switch(g=De,h=g.child,g.tag){case 0:case 11:case 14:case 15:Tu(4,g,g.return);break;case 1:Gl(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(_){an(r,n,_)}}break;case 5:Gl(g,g.return);break;case 22:if(g.memoizedState!==null){Dv(p);continue}}h!==null?(h.return=g,De=h):Dv(p)}d=d.sibling}e:for(d=null,p=t;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=uy("display",s))}catch(_){an(t,t.return,_)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(_){an(t,t.return,_)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===t)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:wi(e,t),Yi(t),r&4&&Rv(t);break;case 21:break;default:wi(e,t),Yi(t)}}function Yi(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(O6(n)){var r=n;break e}n=n.return}throw Error(Le(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Uu(i,""),r.flags&=-33);var o=Ov(t);Q2(t,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Ov(t);$2(t,a,s);break;default:throw Error(Le(161))}}catch(l){an(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Q_(t,e,n){De=t,D6(t)}function D6(t,e,n){for(var r=(t.mode&1)!==0;De!==null;){var i=De,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ld;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ir;a=Ld;var u=ir;if(Ld=s,(ir=l)&&!u)for(De=i;De!==null;)s=De,l=s.child,s.tag===22&&s.memoizedState!==null?Uv(i):l!==null?(l.return=s,De=l):Uv(i);for(;o!==null;)De=o,D6(o),o=o.sibling;De=i,Ld=a,ir=u}Bv(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,De=o):Bv(t)}}function Bv(t){for(;De!==null;){var e=De;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ir||i1(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ir)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Ci(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&Sv(e,o,r);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Sv(e,s,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&Vu(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Le(163))}ir||e.flags&512&&X2(e)}catch(g){an(e,e.return,g)}}if(e===t){De=null;break}if(n=e.sibling,n!==null){n.return=e.return,De=n;break}De=e.return}}function Dv(t){for(;De!==null;){var e=De;if(e===t){De=null;break}var n=e.sibling;if(n!==null){n.return=e.return,De=n;break}De=e.return}}function Uv(t){for(;De!==null;){var e=De;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{i1(4,e)}catch(l){an(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){an(e,i,l)}}var o=e.return;try{X2(e)}catch(l){an(e,o,l)}break;case 5:var s=e.return;try{X2(e)}catch(l){an(e,s,l)}}}catch(l){an(e,e.return,l)}if(e===t){De=null;break}var a=e.sibling;if(a!==null){a.return=e.return,De=a;break}De=e.return}}var J_=Math.ceil,jf=Bo.ReactCurrentDispatcher,vg=Bo.ReactCurrentOwner,oi=Bo.ReactCurrentBatchConfig,vt=0,Un=null,Nn=null,Wn=0,Br=0,ql=Us(0),Tn=0,th=null,Pa=0,o1=0,yg=0,ju=null,Pr=null,wg=0,lc=1/0,Co=null,Mf=!1,J2=null,Ls=null,kd=!1,bs=null,If=0,Mu=0,Z2=null,ef=-1,tf=0;function mr(){return vt&6?pn():ef!==-1?ef:ef=pn()}function ks(t){return t.mode&1?vt&2&&Wn!==0?Wn&-Wn:F_.transition!==null?(tf===0&&(tf=xy()),tf):(t=Lt,t!==0||(t=window.event,t=t===void 0?16:Ey(t.type)),t):1}function Ti(t,e,n,r){if(50<Mu)throw Mu=0,Z2=null,Error(Le(185));hh(t,n,r),(!(vt&2)||t!==Un)&&(t===Un&&(!(vt&2)&&(o1|=n),Tn===4&&vs(t,Wn)),Tr(t,r),n===1&&vt===0&&!(e.mode&1)&&(lc=pn()+500,t1&&zs()))}function Tr(t,e){var n=t.callbackNode;Fb(t,e);var r=vf(t,t===Un?Wn:0);if(r===0)n!==null&&Xm(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Xm(n),e===1)t.tag===0?I_(zv.bind(null,t)):Xy(zv.bind(null,t)),E_(function(){!(vt&6)&&zs()}),n=null;else{switch(Ay(r)){case 1:n=W5;break;case 4:n=_y;break;case 16:n=mf;break;case 536870912:n=Sy;break;default:n=mf}n=Y6(n,U6.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function U6(t,e){if(ef=-1,tf=0,vt&6)throw Error(Le(327));var n=t.callbackNode;if($l()&&t.callbackNode!==n)return null;var r=vf(t,t===Un?Wn:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Ff(t,r);else{e=r;var i=vt;vt|=2;var o=G6();(Un!==t||Wn!==e)&&(Co=null,lc=pn()+500,wa(t,e));do try{t9();break}catch(a){z6(t,a)}while(!0);ig(),jf.current=o,vt=i,Nn!==null?e=0:(Un=null,Wn=0,e=Tn)}if(e!==0){if(e===2&&(i=C2(t),i!==0&&(r=i,e=e5(t,i))),e===1)throw n=th,wa(t,0),vs(t,r),Tr(t,pn()),n;if(e===6)vs(t,r);else{if(i=t.current.alternate,!(r&30)&&!Z_(i)&&(e=Ff(t,r),e===2&&(o=C2(t),o!==0&&(r=o,e=e5(t,o))),e===1))throw n=th,wa(t,0),vs(t,r),Tr(t,pn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(Le(345));case 2:da(t,Pr,Co);break;case 3:if(vs(t,r),(r&130023424)===r&&(e=wg+500-pn(),10<e)){if(vf(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){mr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=I2(da.bind(null,t,Pr,Co),e);break}da(t,Pr,Co);break;case 4:if(vs(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-Ei(r);o=1<<s,s=e[s],s>i&&(i=s),r&=~o}if(r=i,r=pn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*J_(r/1960))-r,10<r){t.timeoutHandle=I2(da.bind(null,t,Pr,Co),r);break}da(t,Pr,Co);break;case 5:da(t,Pr,Co);break;default:throw Error(Le(329))}}}return Tr(t,pn()),t.callbackNode===n?U6.bind(null,t):null}function e5(t,e){var n=ju;return t.current.memoizedState.isDehydrated&&(wa(t,e).flags|=256),t=Ff(t,e),t!==2&&(e=Pr,Pr=n,e!==null&&t5(e)),t}function t5(t){Pr===null?Pr=t:Pr.push.apply(Pr,t)}function Z_(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Mi(o(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function vs(t,e){for(e&=~yg,e&=~o1,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ei(e),r=1<<n;t[n]=-1,e&=~r}}function zv(t){if(vt&6)throw Error(Le(327));$l();var e=vf(t,0);if(!(e&1))return Tr(t,pn()),null;var n=Ff(t,e);if(t.tag!==0&&n===2){var r=C2(t);r!==0&&(e=r,n=e5(t,r))}if(n===1)throw n=th,wa(t,0),vs(t,e),Tr(t,pn()),n;if(n===6)throw Error(Le(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,da(t,Pr,Co),Tr(t,pn()),null}function bg(t,e){var n=vt;vt|=1;try{return t(e)}finally{vt=n,vt===0&&(lc=pn()+500,t1&&zs())}}function La(t){bs!==null&&bs.tag===0&&!(vt&6)&&$l();var e=vt;vt|=1;var n=oi.transition,r=Lt;try{if(oi.transition=null,Lt=1,t)return t()}finally{Lt=r,oi.transition=n,vt=e,!(vt&6)&&zs()}}function _g(){Br=ql.current,qt(ql)}function wa(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,k_(n)),Nn!==null)for(n=Nn.return;n!==null;){var r=n;switch(tg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sf();break;case 3:sc(),qt(kr),qt(ar),ug();break;case 5:cg(r);break;case 4:sc();break;case 13:qt($t);break;case 19:qt($t);break;case 10:og(r.type._context);break;case 22:case 23:_g()}n=n.return}if(Un=t,Nn=t=Es(t.current,null),Wn=Br=e,Tn=0,th=null,yg=o1=Pa=0,Pr=ju=null,ma!==null){for(e=0;e<ma.length;e++)if(n=ma[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ma=null}return t}function z6(t,e){do{var n=Nn;try{if(ig(),Qd.current=Tf,Ef){for(var r=Jt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ef=!1}if(Ca=0,Bn=En=Jt=null,Eu=!1,Ju=0,vg.current=null,n===null||n.return===null){Tn=1,th=e,Nn=null;break}e:{var o=t,s=n.return,a=n,l=e;if(e=Wn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Lv(s);if(h!==null){h.flags&=-257,kv(h,s,a,o,e),h.mode&1&&Pv(o,u,e),e=h,l=u;var w=e.updateQueue;if(w===null){var _=new Set;_.add(l),e.updateQueue=_}else w.add(l);break e}else{if(!(e&1)){Pv(o,u,e),Sg();break e}l=Error(Le(426))}}else if(Ht&&a.mode&1){var A=Lv(s);if(A!==null){!(A.flags&65536)&&(A.flags|=256),kv(A,s,a,o,e),ng(ac(l,a));break e}}o=l=ac(l,a),Tn!==4&&(Tn=2),ju===null?ju=[o]:ju.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var v=A6(o,l,e);_v(o,v);break e;case 1:a=l;var S=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof S.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ls===null||!Ls.has(y)))){o.flags|=65536,e&=-e,o.lanes|=e;var N=N6(o,a,e);_v(o,N);break e}}o=o.return}while(o!==null)}V6(n)}catch(L){e=L,Nn===n&&n!==null&&(Nn=n=n.return);continue}break}while(!0)}function G6(){var t=jf.current;return jf.current=Tf,t===null?Tf:t}function Sg(){(Tn===0||Tn===3||Tn===2)&&(Tn=4),Un===null||!(Pa&268435455)&&!(o1&268435455)||vs(Un,Wn)}function Ff(t,e){var n=vt;vt|=2;var r=G6();(Un!==t||Wn!==e)&&(Co=null,wa(t,e));do try{e9();break}catch(i){z6(t,i)}while(!0);if(ig(),vt=n,jf.current=r,Nn!==null)throw Error(Le(261));return Un=null,Wn=0,Tn}function e9(){for(;Nn!==null;)q6(Nn)}function t9(){for(;Nn!==null&&!Cb();)q6(Nn)}function q6(t){var e=H6(t.alternate,t,Br);t.memoizedProps=t.pendingProps,e===null?V6(t):Nn=e,vg.current=null}function V6(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=K_(n,e),n!==null){n.flags&=32767,Nn=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Tn=6,Nn=null;return}}else if(n=Y_(n,e,Br),n!==null){Nn=n;return}if(e=e.sibling,e!==null){Nn=e;return}Nn=e=t}while(e!==null);Tn===0&&(Tn=5)}function da(t,e,n){var r=Lt,i=oi.transition;try{oi.transition=null,Lt=1,n9(t,e,n,r)}finally{oi.transition=i,Lt=r}return null}function n9(t,e,n,r){do $l();while(bs!==null);if(vt&6)throw Error(Le(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Le(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ob(t,o),t===Un&&(Nn=Un=null,Wn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||kd||(kd=!0,Y6(mf,function(){return $l(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=oi.transition,oi.transition=null;var s=Lt;Lt=1;var a=vt;vt|=4,vg.current=null,$_(t,n),B6(n,t),S_(j2),yf=!!T2,j2=T2=null,t.current=n,Q_(n),Pb(),vt=a,Lt=s,oi.transition=o}else t.current=n;if(kd&&(kd=!1,bs=t,If=i),o=t.pendingLanes,o===0&&(Ls=null),Eb(n.stateNode),Tr(t,pn()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Mf)throw Mf=!1,t=J2,J2=null,t;return If&1&&t.tag!==0&&$l(),o=t.pendingLanes,o&1?t===Z2?Mu++:(Mu=0,Z2=t):Mu=0,zs(),null}function $l(){if(bs!==null){var t=Ay(If),e=oi.transition,n=Lt;try{if(oi.transition=null,Lt=16>t?16:t,bs===null)var r=!1;else{if(t=bs,bs=null,If=0,vt&6)throw Error(Le(331));var i=vt;for(vt|=4,De=t.current;De!==null;){var o=De,s=o.child;if(De.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(De=u;De!==null;){var d=De;switch(d.tag){case 0:case 11:case 15:Tu(8,d,o)}var p=d.child;if(p!==null)p.return=d,De=p;else for(;De!==null;){d=De;var g=d.sibling,h=d.return;if(F6(d),d===u){De=null;break}if(g!==null){g.return=h,De=g;break}De=h}}}var w=o.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var A=_.sibling;_.sibling=null,_=A}while(_!==null)}}De=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,De=s;else e:for(;De!==null;){if(o=De,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tu(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,De=v;break e}De=o.return}}var S=t.current;for(De=S;De!==null;){s=De;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,De=y;else e:for(s=S;De!==null;){if(a=De,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:i1(9,a)}}catch(L){an(a,a.return,L)}if(a===s){De=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,De=N;break e}De=a.return}}if(vt=i,zs(),no&&typeof no.onPostCommitFiberRoot=="function")try{no.onPostCommitFiberRoot($f,t)}catch{}r=!0}return r}finally{Lt=n,oi.transition=e}}return!1}function Gv(t,e,n){e=ac(n,e),e=A6(t,e,1),t=Ps(t,e,1),e=mr(),t!==null&&(hh(t,1,e),Tr(t,e))}function an(t,e,n){if(t.tag===3)Gv(t,t,n);else for(;e!==null;){if(e.tag===3){Gv(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ls===null||!Ls.has(r))){t=ac(n,t),t=N6(e,t,1),e=Ps(e,t,1),t=mr(),e!==null&&(hh(e,1,t),Tr(e,t));break}}e=e.return}}function r9(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=mr(),t.pingedLanes|=t.suspendedLanes&n,Un===t&&(Wn&n)===n&&(Tn===4||Tn===3&&(Wn&130023424)===Wn&&500>pn()-wg?wa(t,0):yg|=n),Tr(t,e)}function W6(t,e){e===0&&(t.mode&1?(e=wd,wd<<=1,!(wd&130023424)&&(wd=4194304)):e=1);var n=mr();t=Fo(t,e),t!==null&&(hh(t,e,n),Tr(t,n))}function i9(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),W6(t,n)}function o9(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Le(314))}r!==null&&r.delete(e),W6(t,n)}var H6;H6=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||kr.current)Lr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Lr=!1,H_(t,e,n);Lr=!!(t.flags&131072)}else Lr=!1,Ht&&e.flags&1048576&&$y(e,Nf,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Zd(t,e),t=e.pendingProps;var i=rc(e,ar.current);Xl(e,n),i=dg(null,e,r,t,i,n);var o=fg();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Er(r)?(o=!0,xf(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ag(e),i.updater=r1,e.stateNode=i,i._reactInternals=e,z2(e,r,t,n),e=V2(null,e,r,!0,o,n)):(e.tag=0,Ht&&o&&eg(e),gr(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Zd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=a9(r),t=Ci(r,t),i){case 0:e=q2(null,e,r,t,n);break e;case 1:e=jv(null,e,r,t,n);break e;case 11:e=Ev(null,e,r,t,n);break e;case 14:e=Tv(null,e,r,Ci(r.type,t),n);break e}throw Error(Le(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),q2(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),jv(t,e,r,i,n);case 3:e:{if(k6(e),t===null)throw Error(Le(387));r=e.pendingProps,o=e.memoizedState,i=o.element,n6(t,e),Lf(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=ac(Error(Le(423)),e),e=Mv(t,e,r,n,i);break e}else if(r!==i){i=ac(Error(Le(424)),e),e=Mv(t,e,r,n,i);break e}else for(Dr=Cs(e.stateNode.containerInfo.firstChild),zr=e,Ht=!0,ki=null,n=e6(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ic(),r===i){e=Oo(t,e,n);break e}gr(t,e,r,n)}e=e.child}return e;case 5:return r6(e),t===null&&B2(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,M2(r,i)?s=null:o!==null&&M2(r,o)&&(e.flags|=32),L6(t,e),gr(t,e,s,n),e.child;case 6:return t===null&&B2(e),null;case 13:return E6(t,e,n);case 4:return lg(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=oc(e,null,r,n):gr(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),Ev(t,e,r,i,n);case 7:return gr(t,e,e.pendingProps,n),e.child;case 8:return gr(t,e,e.pendingProps.children,n),e.child;case 12:return gr(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,Dt(Cf,r._currentValue),r._currentValue=s,o!==null)if(Mi(o.value,s)){if(o.children===i.children&&!kr.current){e=Oo(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=To(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),D2(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Le(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),D2(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}gr(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Xl(e,n),i=si(i),r=r(i),e.flags|=1,gr(t,e,r,n),e.child;case 14:return r=e.type,i=Ci(r,e.pendingProps),i=Ci(r.type,i),Tv(t,e,r,i,n);case 15:return C6(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ci(r,i),Zd(t,e),e.tag=1,Er(r)?(t=!0,xf(e)):t=!1,Xl(e,n),x6(e,r,i),z2(e,r,i,n),V2(null,e,r,!0,t,n);case 19:return T6(t,e,n);case 22:return P6(t,e,n)}throw Error(Le(156,e.tag))};function Y6(t,e){return by(t,e)}function s9(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(t,e,n,r){return new s9(t,e,n,r)}function xg(t){return t=t.prototype,!(!t||!t.isReactComponent)}function a9(t){if(typeof t=="function")return xg(t)?1:0;if(t!=null){if(t=t.$$typeof,t===G5)return 11;if(t===q5)return 14}return 2}function Es(t,e){var n=t.alternate;return n===null?(n=ii(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function nf(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")xg(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Ml:return ba(n.children,i,o,e);case z5:s=8,i|=8;break;case h2:return t=ii(12,n,e,i|2),t.elementType=h2,t.lanes=o,t;case d2:return t=ii(13,n,e,i),t.elementType=d2,t.lanes=o,t;case f2:return t=ii(19,n,e,i),t.elementType=f2,t.lanes=o,t;case ry:return s1(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ty:s=10;break e;case ny:s=9;break e;case G5:s=11;break e;case q5:s=14;break e;case ds:s=16,r=null;break e}throw Error(Le(130,t==null?t:typeof t,""))}return e=ii(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function ba(t,e,n,r){return t=ii(7,t,r,e),t.lanes=n,t}function s1(t,e,n,r){return t=ii(22,t,r,e),t.elementType=ry,t.lanes=n,t.stateNode={isHidden:!1},t}function kp(t,e,n){return t=ii(6,t,null,e),t.lanes=n,t}function Ep(t,e,n){return e=ii(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function l9(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=up(0),this.expirationTimes=up(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=up(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ag(t,e,n,r,i,o,s,a,l){return t=new l9(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=ii(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ag(o),t}function c9(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jl,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function K6(t){if(!t)return Is;t=t._reactInternals;e:{if(ja(t)!==t||t.tag!==1)throw Error(Le(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Er(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Le(171))}if(t.tag===1){var n=t.type;if(Er(n))return Ky(t,n,e)}return e}function X6(t,e,n,r,i,o,s,a,l){return t=Ag(n,r,!0,t,i,o,s,a,l),t.context=K6(null),n=t.current,r=mr(),i=ks(n),o=To(r,i),o.callback=e??null,Ps(n,o,i),t.current.lanes=i,hh(t,i,r),Tr(t,r),t}function a1(t,e,n,r){var i=e.current,o=mr(),s=ks(i);return n=K6(n),e.context===null?e.context=n:e.pendingContext=n,e=To(o,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Ps(i,e,s),t!==null&&(Ti(t,i,s,o),$d(t,i,s)),s}function Of(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function qv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ng(t,e){qv(t,e),(t=t.alternate)&&qv(t,e)}function u9(){return null}var $6=typeof reportError=="function"?reportError:function(t){console.error(t)};function Cg(t){this._internalRoot=t}l1.prototype.render=Cg.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Le(409));a1(t,e,null,null)};l1.prototype.unmount=Cg.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;La(function(){a1(null,t,null,null)}),e[Io]=null}};function l1(t){this._internalRoot=t}l1.prototype.unstable_scheduleHydration=function(t){if(t){var e=Py();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ms.length&&e!==0&&e<ms[n].priority;n++);ms.splice(n,0,t),n===0&&ky(t)}};function Pg(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c1(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Vv(){}function h9(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Of(s);o.call(u)}}var s=X6(e,r,t,0,null,!1,!1,"",Vv);return t._reactRootContainer=s,t[Io]=s.current,Yu(t.nodeType===8?t.parentNode:t),La(),s}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Of(l);a.call(u)}}var l=Ag(t,0,!1,null,null,!1,!1,"",Vv);return t._reactRootContainer=l,t[Io]=l.current,Yu(t.nodeType===8?t.parentNode:t),La(function(){a1(e,l,n,r)}),l}function u1(t,e,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Of(s);a.call(l)}}a1(e,s,t,i)}else s=h9(n,e,t,i,r);return Of(s)}Ny=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=xu(e.pendingLanes);n!==0&&(H5(e,n|1),Tr(e,pn()),!(vt&6)&&(lc=pn()+500,zs()))}break;case 13:La(function(){var r=Fo(t,1);if(r!==null){var i=mr();Ti(r,t,1,i)}}),Ng(t,1)}};Y5=function(t){if(t.tag===13){var e=Fo(t,134217728);if(e!==null){var n=mr();Ti(e,t,134217728,n)}Ng(t,134217728)}};Cy=function(t){if(t.tag===13){var e=ks(t),n=Fo(t,e);if(n!==null){var r=mr();Ti(n,t,e,r)}Ng(t,e)}};Py=function(){return Lt};Ly=function(t,e){var n=Lt;try{return Lt=t,e()}finally{Lt=n}};x2=function(t,e,n){switch(e){case"input":if(m2(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=e1(r);if(!i)throw Error(Le(90));oy(r),m2(r,i)}}}break;case"textarea":ay(t,n);break;case"select":e=n.value,e!=null&&Wl(t,!!n.multiple,e,!1)}};py=bg;gy=La;var d9={usingClientEntryPoint:!1,Events:[fh,Rl,e1,dy,fy,bg]},hu={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},f9={bundleType:hu.bundleType,version:hu.version,rendererPackageName:hu.rendererPackageName,rendererConfig:hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=yy(t),t===null?null:t.stateNode},findFiberByHostInstance:hu.findFiberByHostInstance||u9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{$f=Ed.inject(f9),no=Ed}catch{}}qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d9;qr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pg(e))throw Error(Le(200));return c9(t,e,null,n)};qr.createRoot=function(t,e){if(!Pg(t))throw Error(Le(299));var n=!1,r="",i=$6;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Ag(t,1,!1,null,null,n,!1,r,i),t[Io]=e.current,Yu(t.nodeType===8?t.parentNode:t),new Cg(e)};qr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Le(188)):(t=Object.keys(t).join(","),Error(Le(268,t)));return t=yy(e),t=t===null?null:t.stateNode,t};qr.flushSync=function(t){return La(t)};qr.hydrate=function(t,e,n){if(!c1(e))throw Error(Le(200));return u1(null,t,e,!0,n)};qr.hydrateRoot=function(t,e,n){if(!Pg(t))throw Error(Le(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=$6;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=X6(e,null,t,1,n??null,i,!1,o,s),t[Io]=e.current,Yu(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new l1(e)};qr.render=function(t,e,n){if(!c1(e))throw Error(Le(200));return u1(null,t,e,!1,n)};qr.unmountComponentAtNode=function(t){if(!c1(t))throw Error(Le(40));return t._reactRootContainer?(La(function(){u1(null,null,t,!1,function(){t._reactRootContainer=null,t[Io]=null})}),!0):!1};qr.unstable_batchedUpdates=bg;qr.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!c1(n))throw Error(Le(200));if(t==null||t._reactInternals===void 0)throw Error(Le(38));return u1(t,e,n,!1,r)};qr.version="18.3.1-next-f1338f8080-20240426";function Q6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q6)}catch(t){console.error(t)}}Q6(),Q4.exports=qr;var J6=Q4.exports;const p9=Kf(J6);var Wv=J6;c2.createRoot=Wv.createRoot,c2.hydrateRoot=Wv.hydrateRoot;/**
+ * @remix-run/router v1.21.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function nh(){return nh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nh.apply(this,arguments)}var _s;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(_s||(_s={}));const Hv="popstate";function g9(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return n5("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Rf(i)}return v9(e,n,null,t)}function yn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Z6(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function m9(){return Math.random().toString(36).substr(2,8)}function Yv(t,e){return{usr:t.state,key:t.key,idx:e}}function n5(t,e,n,r){return n===void 0&&(n=null),nh({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?mc(e):e,{state:n,key:e&&e.key||r||m9()})}function Rf(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function mc(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function v9(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=_s.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(nh({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=_s.Pop;let A=d(),v=A==null?null:A-u;u=A,l&&l({action:a,location:_.location,delta:v})}function g(A,v){a=_s.Push;let S=n5(_.location,A,v);u=d()+1;let y=Yv(S,u),N=_.createHref(S);try{s.pushState(y,"",N)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;i.location.assign(N)}o&&l&&l({action:a,location:_.location,delta:1})}function h(A,v){a=_s.Replace;let S=n5(_.location,A,v);u=d();let y=Yv(S,u),N=_.createHref(S);s.replaceState(y,"",N),o&&l&&l({action:a,location:_.location,delta:0})}function w(A){let v=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof A=="string"?A:Rf(A);return S=S.replace(/ $/,"%20"),yn(v,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,v)}let _={get action(){return a},get location(){return t(i,s)},listen(A){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hv,p),l=A,()=>{i.removeEventListener(Hv,p),l=null}},createHref(A){return e(i,A)},createURL:w,encodeLocation(A){let v=w(A);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:g,replace:h,go(A){return s.go(A)}};return _}var Kv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Kv||(Kv={}));function y9(t,e,n){return n===void 0&&(n="/"),w9(t,e,n,!1)}function w9(t,e,n,r){let i=typeof e=="string"?mc(e):e,o=Lg(i.pathname||"/",n);if(o==null)return null;let s=e8(t);b9(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=T9(o);a=k9(s[l],u,r)}return a}function e8(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(yn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ts([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(yn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),e8(o.children,e,d,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:P9(u,o.index),routesMeta:d})};return t.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of t8(o.path))i(o,s,l)}),e}function t8(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=t8(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function b9(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:L9(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _9=/^:[\w-]+$/,S9=3,x9=2,A9=1,N9=10,C9=-2,Xv=t=>t==="*";function P9(t,e){let n=t.split("/"),r=n.length;return n.some(Xv)&&(r+=C9),e&&(r+=x9),n.filter(i=>!Xv(i)).reduce((i,o)=>i+(_9.test(o)?S9:o===""?A9:N9),r)}function L9(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function k9(t,e,n){let{routesMeta:r}=t,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=o==="/"?e:e.slice(o.length)||"/",p=$v({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),g=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=$v({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ts([o,p.pathname]),pathnameBase:F9(Ts([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=Ts([o,p.pathnameBase]))}return s}function $v(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=E9(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:g,isOptional:h}=d;if(g==="*"){let _=a[p]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const w=a[p];return h&&!w?u[g]=void 0:u[g]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:t}}function E9(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Z6(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function T9(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Z6(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Lg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function j9(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?mc(t):t;return{pathname:n?n.startsWith("/")?n:M9(n,e):e,search:O9(r),hash:R9(i)}}function M9(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Tp(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function I9(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function kg(t,e){let n=I9(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Eg(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=mc(t):(i=nh({},t),yn(!i.pathname||!i.pathname.includes("?"),Tp("?","pathname","search",i)),yn(!i.pathname||!i.pathname.includes("#"),Tp("#","pathname","hash",i)),yn(!i.search||!i.search.includes("#"),Tp("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let p=e.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}a=p>=0?e[p]:"/"}let l=j9(i,a),u=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Ts=t=>t.join("/").replace(/\/\/+/g,"/"),F9=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),O9=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,R9=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function B9(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const n8=["post","put","patch","delete"];new Set(n8);const D9=["get",...n8];new Set(D9);/**
+ * React Router v6.28.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function rh(){return rh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rh.apply(this,arguments)}const Tg=re.createContext(null),U9=re.createContext(null),Gs=re.createContext(null),h1=re.createContext(null),so=re.createContext({outlet:null,matches:[],isDataRoute:!1}),r8=re.createContext(null);function z9(t,e){let{relative:n}=e===void 0?{}:e;vc()||yn(!1);let{basename:r,navigator:i}=re.useContext(Gs),{hash:o,pathname:s,search:a}=s8(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ts([r,s])),i.createHref({pathname:l,search:a,hash:o})}function vc(){return re.useContext(h1)!=null}function Do(){return vc()||yn(!1),re.useContext(h1).location}function i8(t){re.useContext(Gs).static||re.useLayoutEffect(t)}function ao(){let{isDataRoute:t}=re.useContext(so);return t?nS():G9()}function G9(){vc()||yn(!1);let t=re.useContext(Tg),{basename:e,future:n,navigator:r}=re.useContext(Gs),{matches:i}=re.useContext(so),{pathname:o}=Do(),s=JSON.stringify(kg(i,n.v7_relativeSplatPath)),a=re.useRef(!1);return i8(()=>{a.current=!0}),re.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=Eg(u,JSON.parse(s),o,d.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:Ts([e,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[e,r,s,o,t])}const q9=re.createContext(null);function V9(t){let e=re.useContext(so).outlet;return e&&re.createElement(q9.Provider,{value:t},e)}function o8(){let{matches:t}=re.useContext(so),e=t[t.length-1];return e?e.params:{}}function s8(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=re.useContext(Gs),{matches:i}=re.useContext(so),{pathname:o}=Do(),s=JSON.stringify(kg(i,r.v7_relativeSplatPath));return re.useMemo(()=>Eg(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}function W9(t,e){return H9(t,e)}function H9(t,e,n,r){vc()||yn(!1);let{navigator:i}=re.useContext(Gs),{matches:o}=re.useContext(so),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Do(),d;if(e){var p;let A=typeof e=="string"?mc(e):e;l==="/"||(p=A.pathname)!=null&&p.startsWith(l)||yn(!1),d=A}else d=u;let g=d.pathname||"/",h=g;if(l!=="/"){let A=l.replace(/^\//,"").split("/");h="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=y9(t,{pathname:h}),_=Q9(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},a,A.params),pathname:Ts([l,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?l:Ts([l,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return e&&_?re.createElement(h1.Provider,{value:{location:rh({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:_s.Pop}},_):_}function Y9(){let t=tS(),e=B9(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return re.createElement(re.Fragment,null,re.createElement("h2",null,"Unexpected Application Error!"),re.createElement("h3",{style:{fontStyle:"italic"}},e),n?re.createElement("pre",{style:i},n):null,null)}const K9=re.createElement(Y9,null);class X9 extends re.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?re.createElement(so.Provider,{value:this.props.routeContext},re.createElement(r8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $9(t){let{routeContext:e,match:n,children:r}=t,i=re.useContext(Tg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),re.createElement(so.Provider,{value:e},r)}function Q9(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||yn(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:g,errors:h}=n,w=p.route.loader&&g[p.route.id]===void 0&&(!h||h[p.route.id]===void 0);if(p.route.lazy||w){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,g)=>{let h,w=!1,_=null,A=null;n&&(h=a&&p.route.id?a[p.route.id]:void 0,_=p.route.errorElement||K9,l&&(u<0&&g===0?(w=!0,A=null):u===g&&(w=!0,A=p.route.hydrateFallbackElement||null)));let v=e.concat(s.slice(0,g+1)),S=()=>{let y;return h?y=_:w?y=A:p.route.Component?y=re.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=d,re.createElement($9,{match:p,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?re.createElement(X9,{location:n.location,revalidation:n.revalidation,component:_,error:h,children:S(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):S()},null)}var a8=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(a8||{}),Bf=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Bf||{});function J9(t){let e=re.useContext(Tg);return e||yn(!1),e}function Z9(t){let e=re.useContext(U9);return e||yn(!1),e}function eS(t){let e=re.useContext(so);return e||yn(!1),e}function l8(t){let e=eS(),n=e.matches[e.matches.length-1];return n.route.id||yn(!1),n.route.id}function tS(){var t;let e=re.useContext(r8),n=Z9(Bf.UseRouteError),r=l8(Bf.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function nS(){let{router:t}=J9(a8.UseNavigateStable),e=l8(Bf.UseNavigateStable),n=re.useRef(!1);return i8(()=>{n.current=!0}),re.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,rh({fromRouteId:e},o)))},[t,e])}const Qv={};function rS(t,e){Qv[e]||(Qv[e]=!0,console.warn(e))}const Jv=(t,e,n)=>rS(t,"⚠️ React Router Future Flag Warning: "+e+". "+("You can use the `"+t+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function iS(t,e){t!=null&&t.v7_startTransition||Jv("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(t!=null&&t.v7_relativeSplatPath)&&!e&&Jv("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function oS(t){let{to:e,replace:n,state:r,relative:i}=t;vc()||yn(!1);let{future:o,static:s}=re.useContext(Gs),{matches:a}=re.useContext(so),{pathname:l}=Do(),u=ao(),d=Eg(e,kg(a,o.v7_relativeSplatPath),l,i==="path"),p=JSON.stringify(d);return re.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:i}),[u,p,i,n,r]),null}function sS(t){return V9(t.context)}function pr(t){yn(!1)}function aS(t){let{basename:e="/",children:n=null,location:r,navigationType:i=_s.Pop,navigator:o,static:s=!1,future:a}=t;vc()&&yn(!1);let l=e.replace(/^\/*/,"/"),u=re.useMemo(()=>({basename:l,navigator:o,static:s,future:rh({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=mc(r));let{pathname:d="/",search:p="",hash:g="",state:h=null,key:w="default"}=r,_=re.useMemo(()=>{let A=Lg(d,l);return A==null?null:{location:{pathname:A,search:p,hash:g,state:h,key:w},navigationType:i}},[l,d,p,g,h,w,i]);return _==null?null:re.createElement(Gs.Provider,{value:u},re.createElement(h1.Provider,{children:n,value:_}))}function lS(t){let{children:e,location:n}=t;return W9(r5(e),n)}new Promise(()=>{});function r5(t,e){e===void 0&&(e=[]);let n=[];return re.Children.forEach(t,(r,i)=>{if(!re.isValidElement(r))return;let o=[...e,i];if(r.type===re.Fragment){n.push.apply(n,r5(r.props.children,o));return}r.type!==pr&&yn(!1),!r.props.index||!r.props.children||yn(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=r5(r.props.children,o)),n.push(s)}),n}/**
+ * React Router DOM v6.28.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function i5(){return i5=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i5.apply(this,arguments)}function cS(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function uS(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function hS(t,e){return t.button===0&&(!e||e==="_self")&&!uS(t)}function o5(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function dS(t,e){let n=o5(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(o=>{n.append(i,o)})}),n}const fS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pS="6";try{window.__reactRouterVersion=pS}catch{}const gS="startTransition",Zv=rb[gS];function mS(t){let{basename:e,children:n,future:r,window:i}=t,o=re.useRef();o.current==null&&(o.current=g9({window:i,v5Compat:!0}));let s=o.current,[a,l]=re.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=re.useCallback(p=>{u&&Zv?Zv(()=>l(p)):l(p)},[l,u]);return re.useLayoutEffect(()=>s.listen(d),[s,d]),re.useEffect(()=>iS(r),[r]),re.createElement(aS,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const vS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oo=re.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:d,viewTransition:p}=e,g=cS(e,fS),{basename:h}=re.useContext(Gs),w,_=!1;if(typeof u=="string"&&yS.test(u)&&(w=u,vS))try{let y=new URL(window.location.href),N=u.startsWith("//")?new URL(y.protocol+u):new URL(u),L=Lg(N.pathname,h);N.origin===y.origin&&L!=null?u=L+N.search+N.hash:_=!0}catch{}let A=z9(u,{relative:i}),v=wS(u,{replace:s,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:p});function S(y){r&&r(y),y.defaultPrevented||v(y)}return re.createElement("a",i5({},g,{href:w||A,onClick:_||o?r:S,ref:n,target:l}))});var e3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(e3||(e3={}));var t3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(t3||(t3={}));function wS(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=e===void 0?{}:e,l=ao(),u=Do(),d=s8(t,{relative:s});return re.useCallback(p=>{if(hS(p,n)){p.preventDefault();let g=r!==void 0?r:Rf(u)===Rf(d);l(t,{replace:g,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,d,r,i,n,t,o,s,a])}function c8(t){let e=re.useRef(o5(t)),n=re.useRef(!1),r=Do(),i=re.useMemo(()=>dS(r.search,n.current?null:e.current),[r.search]),o=ao(),s=re.useCallback((a,l)=>{const u=o5(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}const bS="_container_lfw20_3",_S="_searchBar_lfw20_18",SS="_filterBar_lfw20_40",xS="_tile_lfw20_45",AS="_imgStyle_lfw20_67",NS="_favorite_lfw20_73",CS="_dragging_lfw20_81",PS="_linkStyle_lfw20_89",ys={container:bS,searchBar:_S,filterBar:SS,tile:xS,imgStyle:AS,favorite:NS,dragging:CS,linkStyle:PS};var fn=function(){return fn=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fn.apply(this,arguments)};function u8(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Fs(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Iu(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function LS(t,e,n){return Math.max(e,Math.min(t,n))}const sr={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function n3(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function r3(t,e,n,r=.15){return r===0?LS(t,e,n):t<e?-n3(e-t,n-e,r)+e:t>n?+n3(t-n,n-e,r)+n:t}function kS(t,[e,n],[r,i]){const[[o,s],[a,l]]=t;return[r3(e,o,s,r),r3(n,a,l,i)]}function ES(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function TS(t){var e=ES(t,"string");return typeof e=="symbol"?e:String(e)}function Cr(t,e,n){return e=TS(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?i3(Object(n),!0).forEach(function(r){Cr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const h8={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function o3(t){return t?t[0].toUpperCase()+t.slice(1):""}const jS=["enter","leave"];function MS(t=!1,e){return t&&!jS.includes(e)}function IS(t,e="",n=!1){const r=h8[t],i=r&&r[e]||e;return"on"+o3(t)+o3(i)+(MS(n,i)?"Capture":"")}const FS=["gotpointercapture","lostpointercapture"];function OS(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=FS.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(r);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:n}}function RS(t,e=""){const n=h8[t],r=n&&n[e]||e;return t+r}function d1(t){return"touches"in t}function d8(t){return d1(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function BS(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function DS(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function f8(t){return d1(t)?DS(t)[0]:t}function US(t){return BS(t).map(e=>e.identifier)}function jp(t){const e=f8(t);return d1(t)?e.identifier:e.pointerId}function s3(t){const e=f8(t);return[e.clientX,e.clientY]}function zS(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return e}function Df(t,...e){return typeof t=="function"?t(...e):t}function GS(){}function qS(...t){return t.length===0?GS:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function a3(t,e){return Object.assign({},e,t||{})}const VS=32;class WS{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?Df(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,zS(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const R=n._delta.map(Math.abs);sr.addTo(n._distance,R)}this.axisIntent&&this.axisIntent(e);const[s,a]=n._movement,[l,u]=r.threshold,{_step:d,values:p}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&p[0]),d[1]===!1&&(d[1]=Math.abs(a)>=u&&p[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=u&&Math.sign(a)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(r.hasCustomTransform){const[R,D]=p;g[0]=d[0]!==!1?R-d[0]:0,g[1]=d[1]!==!1?D-d[1]:0}else g[0]=d[0]!==!1?s-d[0]:0,g[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const h=n.offset,w=n._active&&!n._blocked||n.active;w&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=Df(r.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[_,A]=n.offset,[[v,S],[y,N]]=n._bounds;n.overflow=[_<v?-1:_>S?1:0,A<y?-1:A>N?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const L=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=kS(n._bounds,n.offset,L),n.delta=sr.sub(n.offset,h),this.computeMovement(),w&&(!n.last||o>VS)){n.delta=sr.sub(n.offset,h);const R=n.delta.map(Math.abs);sr.addTo(n.distance,R),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[R[0]/o,R[1]/o],n.timeDelta=o)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler(Qt(Qt(Qt({},n),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function HS([t,e],n){const r=Math.abs(t),i=Math.abs(e);if(r>i&&r>n)return"x";if(i>r&&i>n)return"y"}class YS extends WS{constructor(...e){super(...e),Cr(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=sr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=sr.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[d8(e)]:r.axisThreshold;n.axis=HS(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const KS=t=>t,l3=.15,p8={enabled(t=!0){return t},eventOptions(t,e,n){return Qt(Qt({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[l3,l3];case!1:return[0,0];default:return sr.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return sr.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;return this.hasCustomTransform=!!r,r||KS},threshold(t){return sr.toVector(t,0)}},XS=0,gh=Qt(Qt({},p8),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=XS){return t},bounds(t={}){if(typeof t=="function")return o=>gh.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}}),c3={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class $S extends YS{constructor(...e){super(...e),Cr(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=gh.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=jp(e),r._pointerActive=!0,this.computeValues(s3(e)),this.computeInitial(),n.preventScrollAxis&&d8(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const i=jp(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=s3(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=sr.sub(o,n._values),this.computeValues(o)),sr.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=jp(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=n._distance;if(n.tap=o<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[u,d]=n._movement,[p,g]=r.swipe.velocity,[h,w]=r.swipe.distance,_=r.swipe.duration;if(n.elapsedTime<_){const A=Math.abs(a/n.timeDelta),v=Math.abs(l/n.timeDelta);A>p&&Math.abs(u)>h&&(n.swipe[0]=Math.sign(a)),v>g&&Math.abs(d)>w&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,QS(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=c3[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,i),r._keyboardActive=!0,sr.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in c3&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function QS(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const mh=typeof window<"u"&&window.document&&window.document.createElement;function g8(){return mh&&"ontouchstart"in window}function JS(){return g8()||mh&&window.navigator.maxTouchPoints>1}function ZS(){return mh&&"onpointerdown"in window}function ex(){return mh&&"exitPointerLock"in window.document}function tx(){try{return"constructor"in GestureEvent}catch{return!1}}const ri={isBrowser:mh,gesture:tx(),touch:g8(),touchscreen:JS(),pointer:ZS(),pointerLock:ex()},nx=250,rx=180,ix=.5,ox=50,sx=250,ax=10,u3={mouse:0,touch:0,pen:8},lx=Qt(Qt({},gh),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return this.pointerLock=r&&ri.pointerLock,ri.touch&&n?"touch":this.pointerLock?"mouse":ri.pointer&&!i?"pointer":ri.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?nx:void 0,!(!ri.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1,keys:i=!0}={}}){return this.pointerButtons=r,this.keys=i,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:i=void 0}){const o=sr.toVector(t,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:t=ix,distance:e=ox,duration:n=sx}={}){return{velocity:this.transform(sr.toVector(t)),distance:this.transform(sr.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return rx;case!1:return 0;default:return t}},axisThreshold(t){return t?Qt(Qt({},u3),t):u3},keyboardDisplacement(t=ax){return t}});Qt(Qt({},p8),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ri.touch&&ri.gesture)return"gesture";if(ri.touch&&r)return"touch";if(ri.touchscreen){if(ri.pointer)return"pointer";if(ri.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const i=s=>{const a=a3(Df(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=a3(Df(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[i(),o()]:s=>[i(s),o(s)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",sr.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});Qt(Qt({},gh),{},{mouseOnly:(t=!0)=>t});Qt(Qt({},gh),{},{mouseOnly:(t=!0)=>t});const m8=new Map,s5=new Map;function cx(t){m8.set(t.key,t.engine),s5.set(t.key,t.resolver)}const ux={key:"drag",engine:$S,resolver:lx};function hx(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function dx(t,e){if(t==null)return{};var n=hx(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const fx={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=ri.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},px=["target","eventOptions","window","enabled","transform"];function rf(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=rf(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}function gx(t,e,n={}){const r=t,{target:i,eventOptions:o,window:s,enabled:a,transform:l}=r,u=dx(r,px);if(n.shared=rf({target:i,eventOptions:o,window:s,enabled:a,transform:l},fx),e){const d=s5.get(e);n[e]=rf(Qt({shared:n.shared},u),d)}else for(const d in u){const p=s5.get(d);p&&(n[d]=rf(Qt({shared:n.shared},u[d]),p))}return n}class v8{constructor(e,n){Cr(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const s=this._listeners,a=RS(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=Qt(Qt({},l),o);e.addEventListener(a,i,u);const d=()=>{e.removeEventListener(a,i,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class mx{constructor(){Cr(this,"_timeouts",new Map)}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class vx{constructor(e){Cr(this,"gestures",new Set),Cr(this,"_targetEventStore",new v8(this)),Cr(this,"gestureEventStores",{}),Cr(this,"gestureTimeoutStores",{}),Cr(this,"handlers",{}),Cr(this,"config",{}),Cr(this,"pointerIds",new Set),Cr(this,"touchIds",new Set),Cr(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),yx(this,e)}setEventIds(e){if(d1(e))return this.touchIds=new Set(US(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=gx(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=h3(r,a.eventOptions,!!i);if(a.enabled){const u=m8.get(s);new u(this,e,s).bind(l)}}const o=h3(r,n.eventOptions,!!i);for(const s in this.nativeHandlers)o(s,"",a=>this.nativeHandlers[s](Qt(Qt({},this.state.shared),{},{event:a,args:e})),void 0,!0)}for(const o in r)r[o]=qS(...r[o]);if(!i)return r;for(const o in r){const{device:s,capture:a,passive:l}=OS(o);this._targetEventStore.add(i,s,"",r[o],{capture:a,passive:l})}}}}function _l(t,e){t.gestures.add(e),t.gestureEventStores[e]=new v8(t,e),t.gestureTimeoutStores[e]=new mx}function yx(t,e){e.drag&&_l(t,"drag"),e.wheel&&_l(t,"wheel"),e.scroll&&_l(t,"scroll"),e.move&&_l(t,"move"),e.pinch&&_l(t,"pinch"),e.hover&&_l(t,"hover")}const h3=(t,e,n)=>(r,i,o,s={},a=!1)=>{var l,u;const d=(l=s.capture)!==null&&l!==void 0?l:e.capture,p=(u=s.passive)!==null&&u!==void 0?u:e.passive;let g=a?r:IS(r,i,d);n&&p&&(g+="Passive"),t[g]=t[g]||[],t[g].push(o)};function wx(t,e={},n,r){const i=Lo.useMemo(()=>new vx(t),[]);if(i.applyHandlers(t,r),i.applyConfig(e,n),Lo.useEffect(i.effect.bind(i)),Lo.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function bx(t,e){return cx(ux),wx({drag:t},e||{},"drag")}var y8=function(t,e,n){return new Array(t).fill(null).map(function(r){return new Array(e).fill(n)})},_x=function(t){return Iu([],Fs(t)).map(function(e){return Iu([],Fs(e))})},Ma=function(t){var e=t.length,n=e?t[0].length:0;return{rows:e,cols:n}},Sx=function(t){return!t.find(function(e){return!!e})},w8=function(t,e){var n=e.col,r=e.row,i=Ma(t),o=i.cols,s=i.rows;return{col:n<0?0:n>=o?o-1:n,row:r<0?0:r>=s?s-1:r}},b8=function(t,e,n,r){var i=r.elementWidth,o=r.elementHeight,s=Math.floor(e/i),a=Math.floor(n/o);return w8(t,{col:s,row:a})},xx=function(t,e){for(var n=Ma(e),r=n.rows,i=n.cols,o=t.row;o<t.row+t.rowSpan;o++)for(var s=t.col;s<t.col+t.colSpan;s++)if(o>r||s>i||e[o][s])return!1;return!0},of=function(t,e,n){for(var r=_x(n),i=t.row;i<t.row+t.rowSpan;i++)for(var o=t.col;o<t.col+t.colSpan;o++)r[i][o]=e;return r},_8=function(t,e){for(var n=Ma(e),r=n.rows,i=n.cols,o=!0,s=0;s<=r-t.rowSpan;s++)for(var a=0;a<=i-t.colSpan;a++){o=!0;for(var l=0;l<t.rowSpan;l++)for(var u=0;u<t.colSpan;u++)o=o&&!e[s+l][a+u];if(o)return{row:s,col:a}}},S8=function(t,e,n,r,i){for(var o=[],s=Ma(t),a=s.rows,l=s.cols,u=e;u<e+r;u++)if(!(u>=a))for(var d=function(g){if(g>=l)return"continue";var h=t[u][g];h&&!o.find(function(w){return w.data===h.data})&&o.push(h)},p=n;p<n+i;p++)d(p);return o.sort(function(g,h){return g.col+g.row*l-(h.col+h.row*l)})},Ax=function(t){var e=Ma(t),n=e.rows,r=e.cols;return S8(t,0,0,n,r)},Nx=function(t,e){var n=t.reduce(function(i,o){return i+o.rowSpan},0),r=y8(n,e,void 0);return t.forEach(function(i){var o=_8(i,r);if(o){var s=fn(fn({},i),o);r=of(s,s,r)}}),r.filter(function(i){return!Sx(i)})},x8=function(t,e,n,r){var i=r.elementHeight,o=r.elementWidth,s=r.activeBorderSize,a={x:n.x-e.col*o,y:n.y-e.row*i};if(t.col>=e.col&&a.x<s)return"left";if(t.col<=e.col&&a.x>o*e.colSpan-s)return"right";if(t.row<=e.row&&a.y>i*e.rowSpan-s)return"bottom";if(t.row>=e.row&&a.y<s)return"top";if(a.x>s&&a.y<o*e.colSpan-s&&a.y>s&&a.y<i*e.rowSpan-s)return"center"},Cx={onDragMove:function(t){var e=t.offsetX,n=t.offsetY,r=t.config,i=t.state,o=t.table,s=t.canAcceptDrop,a=r.elementHeight,l=r.elementWidth,u=r.columns,d=i.draggingTile,p=i.dragPosition,g=i.dropTargetTile,h=i.droppable,w=i.start,_=i.tiles;if(!(!d||!p||!w||!_)){var A=w.col*l+e+p.x,v=w.row*a+n+p.y,S=b8(o,A,v,r),y=Ma(o);if(S.col<=y.cols&&S.row<=y.rows){var N=o[S.row][S.col];if(!N||N.data===d.data)return;var L=x8(d,N,{x:A,y:v},r);if(!L)return;if(L==="center")return N===g?{dropTargetTile:g,droppable:h}:s(d,N)?{dropTargetTile:N,droppable:!0}:void 0;var R=Math.floor(p.y/a),D=Math.floor(p.x/l),k=w8(o,L==="right"?{col:S.col-(d.colSpan-1),row:S.row-R}:L==="left"?{col:S.col,row:S.row-R}:L==="top"?{col:S.col-D,row:S.row}:{col:S.col-D,row:S.row-(d.rowSpan-1)}),z=S8(o,k.row,k.col,d.rowSpan,d.colSpan).filter(function(Q){return Q.data!==d.data});if(!z.length)return;var T=_.filter(function(Q){return Q.data!==d.data&&!z.find(function(ee){return ee.data===Q.data})}),P=fn(fn({},d),k),E=y8(y.rows+d.rowSpan-1,y.cols,0);if(T.forEach(function(Q){E=of(Q,1,E)}),!xx(P,E))return;E=of(P,1,E);var W=[];if(z.find(function(Q){var ee=_8(Q,E);if(!ee)return!0;var se=fn(fn({},Q),ee);return W.push(se),E=of(se,1,E),!1}))return;var B=Iu(Iu(Iu([],Fs(W)),Fs(T)),[P]).sort(function(Q,ee){return Q.col+Q.row*u-(ee.col+ee.row*u)});return{draggingTile:P,tiles:B}}}},onDragEnd:function(){}},Px={onDragMove:function(t){var e,n=t.offsetX,r=t.offsetY,i=t.config,o=t.state,s=t.table,a=t.canAcceptDrop,l=i.elementHeight,u=i.elementWidth,d=o.draggingTile,p=o.dragPosition,g=o.dropTargetTile,h=o.droppable,w=o.start,_=o.tiles;if(console.log("DRAG MOVE"),!(!d||!p||!w||!_)){var A=function(T,P,E){var W=T.findIndex(function(ee){return ee.data===(E==null?void 0:E.data)});if(P==="left"){var B=W-1>=0?T[W-1]:void 0;return B===d?void 0:{insertionPoint:{right:E,left:(B==null?void 0:B.row)===E.row?B:void 0}}}else{var Q=W+1<T.length?T[W+1]:void 0;return Q===d?void 0:{insertionPoint:{left:E,right:(Q==null?void 0:Q.row)===E.row?Q:void 0}}}},v=w.col*u+n+p.x,S=w.row*l+r+p.y,y=b8(s,v,S,i),N=Ma(s),L=s[y.row][y.col];if(!(!L||L.data===d.data)){var R=x8(L,L,{x:v,y:S},i);if(R){if(console.log("touch point:",R),R==="center")return L===g?{dropTargetTile:g,droppable:h}:a(d,L)?{dropTargetTile:L,droppable:!0}:void 0;if(!(R!=="right"&&R!=="left")){if(L.row!==y.row){var D=R==="left"?y.col-1:y.col+L.colSpan;if(D<0||D>N.cols)return;var k=s[y.row][D];if(!k)return;var z=(e=A(_,R==="left"?"right":"left",k))===null||e===void 0?void 0:e.insertionPoint;return console.log("SHIFTING: ",{shiftedInsertionPoint:z,touchPoint:R}),{insertionPoint:{left:R==="left"?z==null?void 0:z.right:void 0,right:R==="right"?z==null?void 0:z.left:void 0}}}return A(_,R,L)}}}}},onDragEnd:function(t){var e=t.state,n=e.insertionPoint,r=e.draggingTile,i=e.tiles;if(console.log("Drag end start:",{insertionPoint:n,draggingTile:r,tiles:i}),!(!i||!r||!n)){var o=i.filter(function(p){return p.data!==r.data}),s=n.left,a=n.right,l=s?o.findIndex(function(p){return p.data===s.data})+1:-1,u=a?o.findIndex(function(p){return p.data===a.data}):-1,d=l>0?l:u;return d<0?o.push(r):o.splice(d,0,r),console.log("Drag end:",{insertionPoint:n,insertionLeftIdx:l,insertionRightIdx:u,draggingTile:r,tiles:i,newTiles:o}),{tiles:o}}}},Lx=function(t){var e=t.enabled,n=t.strategy,r=t.elementWidth,i=t.elementHeight,o=t.activeBorderSize,s=t.columns,a=t.currentTiles,l=t.canAcceptDrop,u=t.changeTilesOrder,d=t.didDrop,p=n==="reorder"?Px:Cx,g=Fs(re.useState({dragging:!1,droppable:!1}),2),h=g[0],w=g[1],_=h.tiles,A=h.dragging,v=h.insertionPoint,S=e&&A&&_||a,y=re.useMemo(function(){return Nx(S,s)},[S,s]),N=re.useMemo(function(){return Ax(y)},[y]),L={elementHeight:i,elementWidth:r,activeBorderSize:o,columns:s},R=bx(function(T){var P=Fs(T.args,1),E=P[0],W=T.dragging,B=T.tap,Q=T.xy,ee=T.movement,se=T.event;if(W)if(B||(se.preventDefault(),se.stopPropagation()),h.dragging){var X=p.onDragMove({offsetX:ee[0],offsetY:ee[1],canAcceptDrop:l,config:L,state:h,table:y})||{};w(function(G){return fn(fn(fn({},G),{offset:{x:ee[0],y:ee[1]},dropTargetTile:void 0,droppable:!1,insertionPoint:void 0}),X)})}else{var K=se.currentTarget.getBoundingClientRect(),te=N.find(function(G){return G.data===E});if(!te)return;w({dragging:!0,droppable:!1,tiles:N,draggingTile:te,dragPosition:{x:Q[0]-K.x,y:Q[1]-K.y},offset:{x:ee[0],y:ee[1]},start:{col:te.col,row:te.row}})}else{if(h.draggingTile&&h.dropTargetTile&&h.droppable)d(h.draggingTile,h.dropTargetTile);else{var de=p.onDragEnd({offsetX:ee[0],offsetY:ee[1],canAcceptDrop:l,config:L,state:h,table:y})||{},j=fn(fn({},h),de);j.tiles&&u(j.tiles)}w({dragging:!1,droppable:!1})}},{filterTaps:!0,enabled:e}),D=re.useMemo(function(){return e?N.map(function(T){var P,E,W,B,Q,ee,se,K,te,X,de,j,G,H;return fn(fn({},T),{tileWidth:r,tileHeight:i,isDragging:T.data===((P=h.draggingTile)===null||P===void 0?void 0:P.data),isDropTarget:T.data===((E=h.dropTargetTile)===null||E===void 0?void 0:E.data),insertAtLeft:T.data===((B=(W=h.insertionPoint)===null||W===void 0?void 0:W.left)===null||B===void 0?void 0:B.data),insertAtRight:T.data===((ee=(Q=h.insertionPoint)===null||Q===void 0?void 0:Q.right)===null||ee===void 0?void 0:ee.data),isDroppable:T.data===((se=h.draggingTile)===null||se===void 0?void 0:se.data)&&h.droppable,isDroppableAtInsertPosition:!!(T.data===((K=h.draggingTile)===null||K===void 0?void 0:K.data)&&h.insertionPoint),x:T.data===((te=h.draggingTile)===null||te===void 0?void 0:te.data)?(((X=h.start)===null||X===void 0?void 0:X.col)||0)*r+(((de=h.offset)===null||de===void 0?void 0:de.x)||0):T.col*r,y:T.data===((j=h.draggingTile)===null||j===void 0?void 0:j.data)?(((G=h.start)===null||G===void 0?void 0:G.row)||0)*i+(((H=h.offset)===null||H===void 0?void 0:H.y)||0):T.row*i})}).sort(function(T,P){return T.key-P.key}):N.map(function(T){return fn(fn({},T),{tileWidth:r,tileHeight:i,isDragging:!1,isDropTarget:!1,isDroppable:!1,isDroppableAtInsertPosition:!1,insertAtLeft:!1,insertAtRight:!1,x:T.col*r,y:T.row*i})}).sort(function(T,P){return T.key-P.key})},[h,N,i,r,e]),k=h.draggingTile,z=re.useMemo(function(){var T=v||{},P=T.left,E=T.right;if(P)return{x:(P.col+P.colSpan)*r,y:P.row*i};if(E)return{x:E.col*r,y:E.row*i};if(k)return{x:k.col*r,y:k.row*i}},[v,i,r,k]);return{table:y,tableHeight:y.length*i,tiles:N,insertIndicatorPosition:z,bind:R,renderTileProps:D}},kx=function(){},A8=typeof window<"u",Ex=A8?re.useLayoutEffect:re.useEffect,N8={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Tx(){var t=re.useState(null),e=t[0],n=t[1],r=re.useState(N8),i=r[0],o=r[1],s=re.useMemo(function(){return new window.ResizeObserver(function(a){if(a[0]){var l=a[0].contentRect,u=l.x,d=l.y,p=l.width,g=l.height,h=l.top,w=l.left,_=l.bottom,A=l.right;o({x:u,y:d,width:p,height:g,top:h,left:w,bottom:_,right:A})}})},[]);return Ex(function(){if(e)return s.observe(e),function(){s.disconnect()}},[e]),[n,i]}const jx=A8&&typeof window.ResizeObserver<"u"?Tx:function(){return[kx,N8]};var Td={container:"TilesContainer-module_container__2hgud",tile:"TilesContainer-module_tile__1R3DP",dragging:"TilesContainer-module_dragging__2mUA2",indicator:"TilesContainer-module_indicator__t_Y_b"},Mx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return re.useCallback(function(n){t.forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},t)},Ix=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(n){return!!n}).join(" ")},C8=typeof global=="object"&&global&&global.Object===Object&&global,Fx=typeof self=="object"&&self&&self.Object===Object&&self,Uo=C8||Fx||Function("return this")(),cc=Uo.Symbol,P8=Object.prototype,Ox=P8.hasOwnProperty,Rx=P8.toString,du=cc?cc.toStringTag:void 0;function Bx(t){var e=Ox.call(t,du),n=t[du];try{t[du]=void 0;var r=!0}catch{}var i=Rx.call(t);return r&&(e?t[du]=n:delete t[du]),i}var Dx=Object.prototype,Ux=Dx.toString;function zx(t){return Ux.call(t)}var Gx="[object Null]",qx="[object Undefined]",d3=cc?cc.toStringTag:void 0;function vh(t){return t==null?t===void 0?qx:Gx:d3&&d3 in Object(t)?Bx(t):zx(t)}function ih(t){return t!=null&&typeof t=="object"}var Uf=Array.isArray;function L8(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Vx="[object AsyncFunction]",Wx="[object Function]",Hx="[object GeneratorFunction]",Yx="[object Proxy]";function k8(t){if(!L8(t))return!1;var e=vh(t);return e==Wx||e==Hx||e==Vx||e==Yx}var Mp=Uo["__core-js_shared__"],f3=function(){var t=/[^.]+$/.exec(Mp&&Mp.keys&&Mp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Kx(t){return!!f3&&f3 in t}var Xx=Function.prototype,$x=Xx.toString;function Ia(t){if(t!=null){try{return $x.call(t)}catch{}try{return t+""}catch{}}return""}var Qx=/[\\^$.*+?()[\]{}|]/g,Jx=/^\[object .+?Constructor\]$/,Zx=Function.prototype,eA=Object.prototype,tA=Zx.toString,nA=eA.hasOwnProperty,rA=RegExp("^"+tA.call(nA).replace(Qx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iA(t){if(!L8(t)||Kx(t))return!1;var e=k8(t)?rA:Jx;return e.test(Ia(t))}function oA(t,e){return t==null?void 0:t[e]}function yc(t,e){var n=oA(t,e);return iA(n)?n:void 0}var a5=yc(Uo,"WeakMap"),sA=9007199254740991,aA=/^(?:0|[1-9]\d*)$/;function lA(t,e){var n=typeof t;return e=e??sA,!!e&&(n=="number"||n!="symbol"&&aA.test(t))&&t>-1&&t%1==0&&t<e}function E8(t,e){return t===e||t!==t&&e!==e}var cA=9007199254740991;function T8(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=cA}function uA(t){return t!=null&&T8(t.length)&&!k8(t)}var hA=Object.prototype;function dA(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||hA;return t===n}function fA(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var pA="[object Arguments]";function p3(t){return ih(t)&&vh(t)==pA}var j8=Object.prototype,gA=j8.hasOwnProperty,mA=j8.propertyIsEnumerable,vA=p3(function(){return arguments}())?p3:function(t){return ih(t)&&gA.call(t,"callee")&&!mA.call(t,"callee")};function yA(){return!1}var M8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,g3=M8&&typeof module=="object"&&module&&!module.nodeType&&module,wA=g3&&g3.exports===M8,m3=wA?Uo.Buffer:void 0,bA=m3?m3.isBuffer:void 0,l5=bA||yA,_A="[object Arguments]",SA="[object Array]",xA="[object Boolean]",AA="[object Date]",NA="[object Error]",CA="[object Function]",PA="[object Map]",LA="[object Number]",kA="[object Object]",EA="[object RegExp]",TA="[object Set]",jA="[object String]",MA="[object WeakMap]",IA="[object ArrayBuffer]",FA="[object DataView]",OA="[object Float32Array]",RA="[object Float64Array]",BA="[object Int8Array]",DA="[object Int16Array]",UA="[object Int32Array]",zA="[object Uint8Array]",GA="[object Uint8ClampedArray]",qA="[object Uint16Array]",VA="[object Uint32Array]",zt={};zt[OA]=zt[RA]=zt[BA]=zt[DA]=zt[UA]=zt[zA]=zt[GA]=zt[qA]=zt[VA]=!0;zt[_A]=zt[SA]=zt[IA]=zt[xA]=zt[FA]=zt[AA]=zt[NA]=zt[CA]=zt[PA]=zt[LA]=zt[kA]=zt[EA]=zt[TA]=zt[jA]=zt[MA]=!1;function WA(t){return ih(t)&&T8(t.length)&&!!zt[vh(t)]}function HA(t){return function(e){return t(e)}}var I8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fu=I8&&typeof module=="object"&&module&&!module.nodeType&&module,YA=Fu&&Fu.exports===I8,Ip=YA&&C8.process,v3=function(){try{var t=Fu&&Fu.require&&Fu.require("util").types;return t||Ip&&Ip.binding&&Ip.binding("util")}catch{}}(),y3=v3&&v3.isTypedArray,F8=y3?HA(y3):WA,KA=Object.prototype,XA=KA.hasOwnProperty;function $A(t,e){var n=Uf(t),r=!n&&vA(t),i=!n&&!r&&l5(t),o=!n&&!r&&!i&&F8(t),s=n||r||i||o,a=s?fA(t.length,String):[],l=a.length;for(var u in t)XA.call(t,u)&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lA(u,l)))&&a.push(u);return a}function QA(t,e){return function(n){return t(e(n))}}var JA=QA(Object.keys,Object),ZA=Object.prototype,eN=ZA.hasOwnProperty;function tN(t){if(!dA(t))return JA(t);var e=[];for(var n in Object(t))eN.call(t,n)&&n!="constructor"&&e.push(n);return e}function nN(t){return uA(t)?$A(t):tN(t)}var oh=yc(Object,"create");function rN(){this.__data__=oh?oh(null):{},this.size=0}function iN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var oN="__lodash_hash_undefined__",sN=Object.prototype,aN=sN.hasOwnProperty;function lN(t){var e=this.__data__;if(oh){var n=e[t];return n===oN?void 0:n}return aN.call(e,t)?e[t]:void 0}var cN=Object.prototype,uN=cN.hasOwnProperty;function hN(t){var e=this.__data__;return oh?e[t]!==void 0:uN.call(e,t)}var dN="__lodash_hash_undefined__";function fN(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=oh&&e===void 0?dN:e,this}function ka(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ka.prototype.clear=rN;ka.prototype.delete=iN;ka.prototype.get=lN;ka.prototype.has=hN;ka.prototype.set=fN;function pN(){this.__data__=[],this.size=0}function f1(t,e){for(var n=t.length;n--;)if(E8(t[n][0],e))return n;return-1}var gN=Array.prototype,mN=gN.splice;function vN(t){var e=this.__data__,n=f1(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():mN.call(e,n,1),--this.size,!0}function yN(t){var e=this.__data__,n=f1(e,t);return n<0?void 0:e[n][1]}function wN(t){return f1(this.__data__,t)>-1}function bN(t,e){var n=this.__data__,r=f1(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function zo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}zo.prototype.clear=pN;zo.prototype.delete=vN;zo.prototype.get=yN;zo.prototype.has=wN;zo.prototype.set=bN;var sh=yc(Uo,"Map");function _N(){this.size=0,this.__data__={hash:new ka,map:new(sh||zo),string:new ka}}function SN(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function p1(t,e){var n=t.__data__;return SN(e)?n[typeof e=="string"?"string":"hash"]:n.map}function xN(t){var e=p1(this,t).delete(t);return this.size-=e?1:0,e}function AN(t){return p1(this,t).get(t)}function NN(t){return p1(this,t).has(t)}function CN(t,e){var n=p1(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Fa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fa.prototype.clear=_N;Fa.prototype.delete=xN;Fa.prototype.get=AN;Fa.prototype.has=NN;Fa.prototype.set=CN;function PN(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function LN(){this.__data__=new zo,this.size=0}function kN(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function EN(t){return this.__data__.get(t)}function TN(t){return this.__data__.has(t)}var jN=200;function MN(t,e){var n=this.__data__;if(n instanceof zo){var r=n.__data__;if(!sh||r.length<jN-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fa(r)}return n.set(t,e),this.size=n.size,this}function js(t){var e=this.__data__=new zo(t);this.size=e.size}js.prototype.clear=LN;js.prototype.delete=kN;js.prototype.get=EN;js.prototype.has=TN;js.prototype.set=MN;function IN(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function FN(){return[]}var ON=Object.prototype,RN=ON.propertyIsEnumerable,w3=Object.getOwnPropertySymbols,BN=w3?function(t){return t==null?[]:(t=Object(t),IN(w3(t),function(e){return RN.call(t,e)}))}:FN;function DN(t,e,n){var r=e(t);return Uf(t)?r:PN(r,n(t))}function b3(t){return DN(t,nN,BN)}var c5=yc(Uo,"DataView"),u5=yc(Uo,"Promise"),h5=yc(Uo,"Set"),_3="[object Map]",UN="[object Object]",S3="[object Promise]",x3="[object Set]",A3="[object WeakMap]",N3="[object DataView]",zN=Ia(c5),GN=Ia(sh),qN=Ia(u5),VN=Ia(h5),WN=Ia(a5),ps=vh;(c5&&ps(new c5(new ArrayBuffer(1)))!=N3||sh&&ps(new sh)!=_3||u5&&ps(u5.resolve())!=S3||h5&&ps(new h5)!=x3||a5&&ps(new a5)!=A3)&&(ps=function(t){var e=vh(t),n=e==UN?t.constructor:void 0,r=n?Ia(n):"";if(r)switch(r){case zN:return N3;case GN:return _3;case qN:return S3;case VN:return x3;case WN:return A3}return e});var C3=Uo.Uint8Array,HN="__lodash_hash_undefined__";function YN(t){return this.__data__.set(t,HN),this}function KN(t){return this.__data__.has(t)}function zf(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Fa;++e<n;)this.add(t[e])}zf.prototype.add=zf.prototype.push=YN;zf.prototype.has=KN;function XN(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function $N(t,e){return t.has(e)}var QN=1,JN=2;function O8(t,e,n,r,i,o){var s=n&QN,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var p=-1,g=!0,h=n&JN?new zf:void 0;for(o.set(t,e),o.set(e,t);++p<a;){var w=t[p],_=e[p];if(r)var A=s?r(_,w,p,e,t,o):r(w,_,p,t,e,o);if(A!==void 0){if(A)continue;g=!1;break}if(h){if(!XN(e,function(v,S){if(!$N(h,S)&&(w===v||i(w,v,n,r,o)))return h.push(S)})){g=!1;break}}else if(!(w===_||i(w,_,n,r,o))){g=!1;break}}return o.delete(t),o.delete(e),g}function ZN(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function eC(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var tC=1,nC=2,rC="[object Boolean]",iC="[object Date]",oC="[object Error]",sC="[object Map]",aC="[object Number]",lC="[object RegExp]",cC="[object Set]",uC="[object String]",hC="[object Symbol]",dC="[object ArrayBuffer]",fC="[object DataView]",P3=cc?cc.prototype:void 0,Fp=P3?P3.valueOf:void 0;function pC(t,e,n,r,i,o,s){switch(n){case fC:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case dC:return!(t.byteLength!=e.byteLength||!o(new C3(t),new C3(e)));case rC:case iC:case aC:return E8(+t,+e);case oC:return t.name==e.name&&t.message==e.message;case lC:case uC:return t==e+"";case sC:var a=ZN;case cC:var l=r&tC;if(a||(a=eC),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;r|=nC,s.set(t,e);var d=O8(a(t),a(e),r,i,o,s);return s.delete(t),d;case hC:if(Fp)return Fp.call(t)==Fp.call(e)}return!1}var gC=1,mC=Object.prototype,vC=mC.hasOwnProperty;function yC(t,e,n,r,i,o){var s=n&gC,a=b3(t),l=a.length,u=b3(e),d=u.length;if(l!=d&&!s)return!1;for(var p=l;p--;){var g=a[p];if(!(s?g in e:vC.call(e,g)))return!1}var h=o.get(t),w=o.get(e);if(h&&w)return h==e&&w==t;var _=!0;o.set(t,e),o.set(e,t);for(var A=s;++p<l;){g=a[p];var v=t[g],S=e[g];if(r)var y=s?r(S,v,g,e,t,o):r(v,S,g,t,e,o);if(!(y===void 0?v===S||i(v,S,n,r,o):y)){_=!1;break}A||(A=g=="constructor")}if(_&&!A){var N=t.constructor,L=e.constructor;N!=L&&"constructor"in t&&"constructor"in e&&!(typeof N=="function"&&N instanceof N&&typeof L=="function"&&L instanceof L)&&(_=!1)}return o.delete(t),o.delete(e),_}var wC=1,L3="[object Arguments]",k3="[object Array]",jd="[object Object]",bC=Object.prototype,E3=bC.hasOwnProperty;function _C(t,e,n,r,i,o){var s=Uf(t),a=Uf(e),l=s?k3:ps(t),u=a?k3:ps(e);l=l==L3?jd:l,u=u==L3?jd:u;var d=l==jd,p=u==jd,g=l==u;if(g&&l5(t)){if(!l5(e))return!1;s=!0,d=!1}if(g&&!d)return o||(o=new js),s||F8(t)?O8(t,e,n,r,i,o):pC(t,e,l,n,r,i,o);if(!(n&wC)){var h=d&&E3.call(t,"__wrapped__"),w=p&&E3.call(e,"__wrapped__");if(h||w){var _=h?t.value():t,A=w?e.value():e;return o||(o=new js),i(_,A,n,r,o)}}return g?(o||(o=new js),yC(t,e,n,r,i,o)):!1}function R8(t,e,n,r,i){return t===e?!0:t==null||e==null||!ih(t)&&!ih(e)?t!==t&&e!==e:_C(t,e,n,r,R8,i)}function SC(t,e){return R8(t,e)}var xC=Lo.memo(function(t){var e=t.renderTile,n=u8(t,["renderTile"]);return e(n)}),AC=function(t){return!!t.forceTileWidth},NC=function(t){return!!t.columns},CC=function(){return{rowSpan:1,colSpan:1}},PC=0,Op=function(t,e){return t.map(function(n){var r=e.find(function(i){return i.item===n});return r||{item:n,key:PC++}})},Ou=function(t){var e=re.useRef(null),n=Fs(jx(),2),r=n[0],i=n[1],o=AC(t)?t.forceTileWidth:0,s=NC(t)?t.columns:o?Math.floor(i.width/o):4,a=t.onReorderTiles,l=t.ratio,u=l===void 0?1:l,d=t.forceTileHeight,p=t.data,g=t.acceptsDrop,h=t.onTileDrop,w=t.tileSize,_=w===void 0?CC:w,A=t.renderTile,v=t.renderInsertIndicator,S=t.activeBorderSize,y=S===void 0?24:S,N=t.disabled,L=t.strategy,R=L===void 0?"move":L,D=o||i.width/s,k=d||D/u,z=Fs(re.useState(function(){return Op(p,[])}),2),T=z[0],P=z[1];re.useEffect(function(){return P(function(X){return Op(p,X)})},[p,P]);var E=re.useMemo(function(){var X=[];return T.forEach(function(de){var j=de.item,G=de.key;return X.push(fn(fn({key:G},_(j)),{data:j}))}),X},[T,_]),W=Lx({columns:s,strategy:R,enabled:!N,elementHeight:k,elementWidth:D,activeBorderSize:y,currentTiles:E,canAcceptDrop:function(X,de){return g?g(X.data,de.data):!1},changeTilesOrder:function(X){var de=X.map(function(G){return G.data}),j=T.map(function(G){return G.item});SC(j,de)||(P(function(G){return Op(de,G)}),a&&a(de))},didDrop:function(X,de){P(function(j){return j.filter(function(G){return G.item!==X.data})}),h&&h(X.data,de.data)}}),B=W.bind,Q=W.renderTileProps,ee=W.tableHeight,se=W.insertIndicatorPosition,K=re.useMemo(function(){if(!se||!v)return null;var X=se.x,de=se.y;return Lo.createElement("div",{className:Td.indicator,style:{top:de+"px",left:X+"px",height:k+"px",width:D+"px"}},v())},[se,v,k,D]),te=re.useMemo(function(){return Q.map(function(X){var de=X.x,j=X.y,G=X.key,H=u8(X,["x","y","key"]);return Lo.createElement("div",fn({className:Ix(Td.tile,H.isDragging&&Td.dragging),key:"K-"+G,style:{top:j+"px",left:de+"px",width:H.colSpan*D+"px",height:H.rowSpan*k+"px"}},B(H.data)),Lo.createElement(xC,fn({},H,{renderTile:A})))})},[Q,A,B,D,k]);return Lo.createElement("div",{className:Td.container,ref:Mx(e,r),style:{height:ee+"px",minWidth:D+"px"}},K,te)};const _a="/assets/card-map-DHm-xZCt.png",LC="/assets/star_icon-B410rNrh.png",kC="/assets/star_filled_icon-DrDkFQ1g.png",ei="https://imaps.mk/api",Rn=`${ei}/protected`,Md=`${ei}/public`,Rp=`${ei}/auth`,yt={my_maps:{display:`${Rn}/my-maps`,save:`${Rn}/my-maps/save`,add:`${Rn}/my-maps/create`,load:`${Rn}/my-maps/load`,delete:`${Rn}/my-maps/delete`,publish:`${Rn}/publish/add`,publish_get:`${Rn}/publish/get`},room_types:{display:t=>t?`${Rn}/room-types`:`${Md}/room-types`,add:`${Rn}/room-types/add`},floors:{add:`${Rn}/floors/add`,load:`${Rn}/my-maps/load`,delete:`${Rn}/floors/delete`},view_maps:{display:`${Md}/maps`,load:t=>t?`${Rn}/load-map`:`${Md}/load-map`,navigate:`${Md}/navigate`,add_favourite:`${Rn}/favourites/add`,add_report:`${Rn}/reports/create`},favourites:{display:`${Rn}/favourites`,add:`${Rn}/favourites/add`,delete:`${Rn}/favourites/delete`},auth:{login:`${Rp}/login`,register:`${Rp}/register`,verify:`${Rp}/verify`,oauth:{github:{state:`${ei}/oauth/state`,redirectUri:`${ei}/oauth/callback`}}},admin:{display:`${ei}/admin`,load_pr:`${ei}/admin/load-pr`,approve_pr:`${ei}/admin/pr/approve`,deny_pr:`${ei}/admin/pr/deny`,load_reports:`${ei}/admin/load-reports`}};class Ft{constructor(e=!1){this.auth=e,this.responseType="json"}setAuthenticated(){this.auth=!0}setResponseType(e){e==="text"?this.responseType="text":e==="json"?this.responseType="json":console.error("unsupported response type in http service")}async request(e,n,r=null){const i={method:e,headers:{"Content-Type":"application/json"}};if(this.auth){const s=localStorage.getItem("token");if(s)i.headers.Authorization=`Bearer ${s}`;else throw new Error("No token found!")}r&&(i.body=JSON.stringify(r));const o=await fetch(`${n}`,i);if(!o.ok){switch(o.status){case 401:console.log("Unauthorized: Invalid token or session expired");break;case 403:console.log("Forbidden: You don't have permission to access this resource"),window.location.href="/Login";break;case 500:console.log("Server error: Try again later");break;default:console.log(`Unexpected error: ${o.status}`)}throw new Error(`Error! status: ${o.status}`)}if(console.log("HTTPSERVICE: RESPONSE:",o),this.responseType==="json")return o.json();if(this.responseType==="text")return o.text();console.error("bad resp type")}get(e){return this.request("GET",e)}post(e,n){return this.request("POST",e,n)}put(e,n){return this.request("PUT",e,n)}delete(e){return this.request("DELETE",e)}}const B8="/assets/novo_logo_nobg_cropped-CwjcgfS6.png",EC="_logoContainer_803b2_1",TC="_logoImage_803b2_9",jC="_fixedLogoContainer_803b2_20",MC="_inlineLogoContainer_803b2_28",Bp={logoContainer:EC,logoImage:TC,fixedLogoContainer:jC,inlineLogoContainer:MC};function qs({position:t="fixed"}){const e=ao(),n=()=>{e("/")};return x.jsx("div",{className:t==="fixed"?Bp.fixedLogoContainer:Bp.inlineLogoContainer,onClick:n,children:x.jsx("img",{src:B8,alt:"Logo",className:Bp.logoImage})})}const IC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAABCZJREFUeF7tm0162jAQhiWx6ynISUJOkrAoxsueoM0JunTMhvQkkJPEp+guUhmQWwH+kTT6Mel4k+dJPMLz8mlmPJpwRheKAEdZkzEjgEgREEACiCSANCcFEkAkAaQ5KZAAIgkgzUmBBBBJAGlOCiSASAJIc1IgAUQSQJqTAj8TwKqq5rPZbKGUmnPO75VSC8ZYwzlvpJSNEOLt4+OjKctyj/Q7mPlkFFjX9Q/G2HcLzxrG2K+iKOD+7Fd2gFp1W602FyCgyoeyLAFotisrwM1m86SU2iK8z67GbACrqloIIXYneIox/+Y4KHGZKy5mA7jZbHYe27ZPrE1RFHcIJXubZgFokTCepZR7UBXESMbYXAgBGbk3yRwy9+t6vV56k/A0zAUQ9mzXNbgdAabe9gD18sqylZMDPCUOuT2LeToE6qw6WOOdx86W4WkBG3tPofWaJQf48vKyPRTGT5dP5LIF+9Y4UHxOXR9OBiDnfLlarV5tFNKtQsY45/vVavVgs0aoe5IDrOv6HZLCpQNSyjvboljHQljnKg6mzsY3CRCo1XXdmYiKokjqU9IPA8cv67+2hHZJAH1vMC5x9Ja3cGfTwMX5/zqJ9CUAUISNCofsXRLRzSrwlAD4e8+771ghvRCC70xb8y1ayt93ZfktaXcmeQzUCWCs9+f8KpejBgRfsgBE9ACNnfdPeznqv/ZBsgCEDx+o5ZzDk03sdF7U0iAbQMutPOpGjsRhPlRWgIYSobHa1WEZApil+3L5QNkBHiH+rObii4AGg82hEpgkbxr0fZOTANg+XHusKaW8Z0LMuXGsqZR6g+NN24bD6N4PdMOkAAbyKekyBBCJmwASQCQBpHl2BeqC+tjih3kY+AmzMdov+Pn33RaSiG46TGZOJjnAFpgxPITUwGn4CLJ0exSKXdDFPglAQ2WPHgWziz9w73HcIxXMqAB17w5mX1zfMkahWQ6DgDqfY9aOUQCiwFmSuSZ8bWj8JhrIoAC7Jge8eYxq0GsmKfhIXDCAiPbUWRLQ3I7Ztj3m1PMx8KtjKJjNZnN43Tv0AWFexjU8BB2JCwLQA14wJ9r3Z8bY4/C01/leCNUGCwKw74z2fBdCDaeijubawDTjYohDeDRAiynTaAF8KEzq54L22NAWR7fF0AD7RjXaeiz1sI8J1Zj67wQZ4iwlGkAh5cPXifw7QsxZmhAAL2ZUTlEm9YzKWNUTa5YmDMCOYo8Ajn2l+u92GdhyMeRtPkU79osOo0ALx32cs1h28Jbxz1SsKNYoBihjePo0ChxH4Qv7ZhR45WA8JpYswyS7G1GgySQs+dtVoKVOYt+WHWBsB6e+PnoLT93B2M9HAJGECSABRBJAmpMCCSCSANKcFEgAkQSQ5qRAAogkgDQnBRJAJAGkOSmQACIJIM1JgUiAfwCxSwtvY4KpRwAAAABJRU5ErkJggg==",FC="_fixedProfileContainer_1ubol_1",OC="_inlineProfileContainer_1ubol_8",RC="_profileWrapper_1ubol_13",BC="_profileIconContainer_1ubol_19",DC="_profileImage_1ubol_24",UC="_dropdownMenu_1ubol_35",zC="_username_1ubol_49",GC="_menuList_1ubol_57",qC="_menuItem_1ubol_63",Ki={fixedProfileContainer:FC,inlineProfileContainer:OC,profileWrapper:RC,profileIconContainer:BC,profileImage:DC,dropdownMenu:UC,username:zC,menuList:GC,menuItem:qC},VC=async(t,e,n)=>{const r=localStorage.getItem("token"),i=new Ft;try{const o=await i.get(`${yt.auth.verify}?token=${r}`);o.username?(t(!0),e(o.username),console.log("/verify resp: ",o.username)):(t(!1),n(!1))}catch{t(!1)}finally{n(!1)}},D8=re.createContext(),WC=({children:t})=>{const[e,n]=re.useState(!1),[r,i]=re.useState(""),[o,s]=re.useState(!0);return re.useEffect(()=>{VC(n,i,s)},[]),x.jsx(D8.Provider,{value:{isAuthenticated:e,username:r,loading:o,setIsAuthenticated:n,setUsername:i,setLoading:s},children:t})},vr=()=>re.useContext(D8);function wc({position:t="fixed"}){const{username:e,isAuthenticated:n}=vr(),[r,i]=re.useState(!1),o=re.useRef(null),s=re.useRef(null),a=ao(),l=n?["My Maps","Logout"]:["Login"];re.useEffect(()=>{const d=p=>{o.current&&s.current&&!o.current.contains(p.target)&&!s.current.contains(p.target)&&i(!1)};return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}},[]);const u=d=>{console.log("click profile"),d==="My Maps"?a("/MyMaps"):d==="Logout"?(localStorage.removeItem("token"),window.location.reload()):d==="Login"&&a("/Login"),i(!1)};return x.jsx("div",{className:t==="fixed"?Ki.fixedProfileContainer:Ki.inlineProfileContainer,children:x.jsxs("div",{className:Ki.profileWrapper,children:[x.jsx("div",{className:Ki.profileIconContainer,onClick:()=>{i(!r),console.log("open",r)},children:x.jsx("img",{src:IC,alt:"profile",className:Ki.profileImage,ref:s})}),r&&x.jsxs("div",{ref:o,className:Ki.dropdownMenu,children:[n&&x.jsx("div",{className:Ki.username,children:e}),x.jsx("ul",{className:Ki.menuList,children:l.map(d=>d==="Login"?x.jsx("li",{className:Ki.menuItem,onClick:()=>u(d),children:d},d):x.jsx("li",{onClick:()=>u(d),className:Ki.menuItem,children:d},d))})]})]})})}const HC="_wrapper_1mlzu_6",YC="_scrollableContainer_1mlzu_13",KC="_buttonValue_1mlzu_23",XC="_active_1mlzu_40",Sl={wrapper:HC,scrollableContainer:YC,buttonValue:KC,active:XC};function $C({mapTypes:t,setFilter:e}){const[n,r]=re.useState("all"),i=re.useCallback(o=>{e(o),r(o)},[]);return x.jsx("div",{className:Sl.wrapper,children:x.jsxs("div",{className:Sl.scrollableContainer,children:[x.jsx("button",{className:`${Sl.buttonValue} ${n==="all"?Sl.active:""}`,onClick:()=>i("all"),children:"All"}),t==null?void 0:t.map((o,s)=>x.jsx("button",{className:`${Sl.buttonValue} ${n===o?Sl.active:""}`,onClick:()=>i(o),children:o},s))]})})}let fu=[];const QC=({data:t,isDragging:e,toggleFavorite:n})=>x.jsxs("div",{style:{padding:"1rem",width:"100%",position:"relative"},children:[x.jsx(oo,{to:`/Maps/View/${t.text}`,className:ys.linkStyle,children:x.jsxs("div",{className:`${ys.tile} ${e?ys.dragging:""}`,style:{width:"100%",height:"100%"},children:[x.jsx("img",{src:_a,className:ys.imgStyle,alt:"Map Thumbnail"}),x.jsxs("div",{style:{fontFamily:"exo"},children:[t.text," ",e?"DRAGGING":null]})]})}),x.jsx("div",{className:ys.favorite,onClick:()=>n(t.text,t.isFavorite),children:x.jsx("img",{src:t.isFavorite?kC:LC,alt:"Favorite Icon",style:{width:"20px",height:"20px"}})})]}),JC=t=>({colSpan:t.cols,rowSpan:t.rows});function ZC(){const[t,e]=re.useState(""),[n,r]=re.useState([]),{username:i,isAuthenticated:o}=vr(),[s,a]=re.useState("all"),[l,u]=re.useState([]);re.useEffect(()=>{(async()=>{const _=new Ft;let A=[],v=["Hospital","Faculty","House","Other"];if(o){const S=await _.get(`${yt.favourites.display}?username=${i}`);console.log("RESPONSE FAVORITE MAPS",S);const y=S.map(R=>({text:R.mapName,cols:1,rows:1,isFavorite:!0,type:R.mapType}));console.log("TUKA");const N=await _.get(yt.view_maps.display);console.log("RESPONSE MAPS PUBLIC",N);const L=N.filter(R=>!y.some(D=>D.text===R.mapName)).map(R=>({text:R.mapName,cols:1,rows:1,isFavorite:!1,type:R.mapType}));A=[...y,...L]}else{const S=await _.get(yt.view_maps.display);console.log("RESPONSE MAPS PUBLIC",S),A=S.map(y=>({text:y.mapName,cols:1,rows:1,isFavorite:!1,type:y.mapType}))}console.log("TYPES:",v),u(v),fu=[...A],g(A),r(A)})()},[o,i]);const d=async(w,_)=>{const A=new Ft,v=_?`${yt.favourites.delete}?username=${i}&mapName=${encodeURIComponent(w)}`:`${yt.favourites.add}?username=${i}&mapName=${encodeURIComponent(w)}`;console.log("Request URL:",v);let S;_?S=await A.delete(v):S=await A.post(v),console.log("Response received:",S);const y=n.map(N=>N.text===w?{...N,isFavorite:!N.isFavorite}:N);fu=[...y],g(y),r(y)},p=w=>{const _=w.target.value.toLowerCase();e(_);const A=fu.filter(v=>v.text.toLowerCase().includes(_));g(A),r(A)},g=w=>{w.sort((_,A)=>_.isFavorite===A.isFavorite?_.text.localeCompare(A.text):_.isFavorite?-1:1)},h=w=>{if(a(w),w==="all")r(fu);else{const _=fu.filter(A=>A.type===w);r(_)}};return x.jsxs("div",{className:ys.container,children:[x.jsx("h1",{children:"Explore Maps"}),x.jsx(qs,{}),x.jsx(wc,{}),x.jsx("div",{className:ys.searchBar,children:x.jsx("input",{type:"text",placeholder:"Search for maps...",value:t,onChange:p})}),x.jsx("div",{className:ys.filterBar,children:x.jsx($C,{mapTypes:l,setFilter:h})}),s!=="all"&&n.length===0&&x.jsxs("p",{children:["No maps of type ",s," found"]}),x.jsx(Ou,{data:n,renderTile:w=>QC({...w,toggleFavorite:d}),tileSize:JC,forceTileWidth:170,forceTileHeight:200})]})}const eP="_illustration_ry689_9",tP="_wrapper_ry689_14",nP="_form_ry689_25",rP="_heading_ry689_38",iP="_or_ry689_45",oP="_socialButtons_ry689_86",sP="_socialButton_ry689_86",aP="_error_ry689_202",bi={illustration:eP,wrapper:tP,form:nP,heading:rP,or:iP,socialButtons:oP,socialButton:sP,error:aP},U8="/assets/illustration_img-DZiNlDVv.png",lP="/assets/Logo-google-icon-PNG-BunlQUFk.png",cP="/assets/github-mark-white-BsLkggKK.png",uP=()=>{const[t,e]=re.useState(""),[n,r]=re.useState(""),[i,o]=re.useState(null),s=ao(),a=Do(),{setUsername:l,setIsAuthenticated:u}=vr(),{targetPath:d}=a.state||{targetPath:{pathname:"/"}},p={username:t,password:n},g=async()=>new Ft().post(yt.auth.login,p),h=async A=>{A.preventDefault(),g().then(v=>{v.token?(s(d),localStorage.setItem("token",v.token),l(v.username),u(!0),console.log("ROLES",v.roles)):o("Invalid username or password.")}).catch(v=>{console.error("Login failed",v),o("Login failed. Please try again.")})},w=async()=>{const A=new Ft;A.setResponseType("text");const v=await A.get(yt.auth.oauth.github.state),S="Iv23liqzhX5wMYNDHtnz",y=encodeURI(`${ei}/oauth/callback/github`),N=`https://github.com/login/oauth/authorize?client_id=${encodeURI(S)}&redirect_uri=${y}&state=${encodeURI(v)}&scope=user:email`;window.location.href=N},_=async()=>{console.log("Continue with Google");const A=new Ft;A.setResponseType("text");const v=await A.get(yt.auth.oauth.github.state),S="1024418489231-ml40ukvqcg9ad1h5ejor5dm6ipt6p8fo.apps.googleusercontent.com",y=encodeURI(`${ei}/oauth/callback/google`),N=`https://accounts.google.com/o/oauth2/v2/auth?client_id=${encodeURIComponent(S)}&redirect_uri=${encodeURIComponent(y)}&state=${encodeURIComponent(v)}&response_type=code&scope=${encodeURIComponent("openid profile email")}`;window.location.href=N};return x.jsxs("div",{className:bi.wrapper,children:[x.jsx(qs,{}),x.jsx("div",{className:bi.illustration,children:x.jsx("img",{src:U8,alt:"illustration"})}),x.jsxs("div",{className:bi.form,children:[x.jsx("div",{className:bi.heading,children:"LOGIN"}),x.jsxs("form",{onSubmit:h,children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"username",children:"Username"}),x.jsx("input",{type:"text",id:"name",placeholder:"Enter your username",onChange:A=>e(A.target.value),value:t,required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"password",children:"Password"}),x.jsx("input",{type:"password",id:"password",placeholder:"Enter your password",onChange:A=>r(A.target.value),value:n,required:!0})]}),i&&x.jsx("p",{className:bi.error,children:i}),x.jsx("button",{type:"submit",children:"Submit"})]}),x.jsx("div",{className:bi.or,children:"OR"}),x.jsxs("div",{className:bi.socialButtons,children:[x.jsxs("button",{className:bi.socialButton,onClick:_,children:[x.jsx("img",{src:lP,alt:"Facebook Icon",className:bi.socialIcon}),"Sign In With Google"]}),x.jsxs("button",{className:bi.socialButton,onClick:w,children:[x.jsx("img",{src:cP,alt:"GitHub Icon",className:bi.socialIcon}),"Sign In With GitHub"]})]}),x.jsxs("p",{children:["Don't have an account? ",x.jsx(oo,{to:"/Signup",children:" Sign Up "})]})]})]})},hP="_wrapper_179e9_1",dP="_form_179e9_11",fP="_heading_179e9_21",pP="_illustration_179e9_91",gP="_errorMessage_179e9_134",mP="_successMessage_179e9_135",xl={wrapper:hP,form:dP,heading:fP,illustration:pP,errorMessage:gP,successMessage:mP};function vP(){const[t,e]=re.useState(""),[n,r]=re.useState(""),[i,o]=re.useState(""),[s,a]=re.useState(""),[l,u]=re.useState(""),[d,p]=re.useState(""),g=ao(),h=async w=>{if(w.preventDefault(),i!==s){p("error"),u("Passwords do not match.");return}const _={username:t,email:n,password:i};try{const A=await fetch(yt.auth.register,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});A.ok?(p("success"),u("User registered successfully!"),setTimeout(()=>{g("/login")},1e3)):A.status===409?(p("error"),u("Email is already taken.")):(p("error"),u("Registration failed."))}catch(A){console.error("Error:",A),p("error"),u("Error registering user.")}};return x.jsxs("div",{className:xl.wrapper,children:[x.jsx(qs,{}),x.jsx("div",{className:xl.illustration,children:x.jsx("img",{src:U8,alt:"illustration"})}),x.jsxs("div",{className:xl.form,children:[x.jsx("div",{className:xl.heading,children:"CREATE AN ACCOUNT"}),x.jsxs("form",{onSubmit:h,children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"name",children:"Username"}),x.jsx("input",{type:"text",id:"name",value:t,onChange:w=>e(w.target.value),placeholder:"Enter your username",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"email",children:"E-Mail"}),x.jsx("input",{type:"email",id:"email",value:n,onChange:w=>r(w.target.value),placeholder:"Enter your email",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"password",children:"Password"}),x.jsx("input",{type:"password",id:"password",value:i,onChange:w=>o(w.target.value),placeholder:"Enter your password",required:!0})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"confirmPassword",children:"Confirm Password"}),x.jsx("input",{type:"password",id:"confirmPassword",value:s,onChange:w=>a(w.target.value),placeholder:"Confirm your password",required:!0})]}),x.jsx("button",{type:"submit",children:"Submit"}),l&&x.jsx("p",{className:d==="success"?xl.successMessage:xl.errorMessage,children:l})]}),x.jsxs("p",{children:["Have an account? ",x.jsx(oo,{to:"/Login",children:" Login "})]})]})]})}function yP(){re.useState(!1);const{isAuthenticated:t}=vr();return x.jsx("nav",{className:"modern-navbar",children:x.jsxs("div",{className:"navbar-container",children:[x.jsx("div",{className:"navbar-left",children:x.jsx(qs,{position:"relative"})}),x.jsx("div",{className:"navbar-right",children:t?x.jsx(wc,{position:"relative"}):x.jsxs(x.Fragment,{children:[x.jsx(oo,{to:"/Login",className:"navbar-btn navbar-login",children:"Log In"}),x.jsx(oo,{to:"/Signup",className:"navbar-btn navbar-signup",children:"Sign Up"})]})})]})})}const T3=["btn--primary","btn--outline","btn--test"],j3=["btn--medium","btn--large"],M3=({children:t,type:e,onClick:n,buttonStyle:r,buttonSize:i})=>{const o=T3.includes(r)?r:T3[0],s=j3.includes(i)?i:j3[0];return x.jsx("button",{className:`btn ${o} ${s}`,onClick:n,type:e,children:t})};function pu(t){return x.jsx(x.Fragment,{children:x.jsx("li",{className:"cards__item",children:x.jsxs("a",{className:"cards__item__link",href:t.path,children:[x.jsx("figure",{className:"cards__item__pic-wrap","data-category":t.label,children:x.jsx("img",{className:"cards__item__img",alt:"Travel Image",src:t.src})}),x.jsx("div",{className:"cards__item__info",children:x.jsx("h5",{className:"cards__item__text",children:t.text})})]})})})}const wP="/assets/img-9-ptiH4wdI.jpg",bP="/assets/img-2-BkMBXPmR.jpg",_P="/assets/img-3-CGN-Vi5W.jpg",SP="/assets/img-4-BNWLy8zx.jpg",xP="/assets/img-8-VmDlpmuo.jpg";function AP(){return x.jsxs("div",{className:"cards",children:[x.jsx("h1",{children:"iMaps offers:"}),x.jsx("div",{className:"cards__container",children:x.jsxs("div",{className:"cards__wrapper",children:[x.jsxs("ul",{className:"cards__items",children:[x.jsx(pu,{src:wP,text:"Create intricate floor plans for your building with precision and ease.",label:"Create",path:"#"}),x.jsx(pu,{src:bP,text:"Explore and navigate through complex building layouts seamlessly.",label:"Explore",path:"#"})]}),x.jsxs("ul",{className:"cards__items",children:[x.jsx(pu,{src:_P,text:"Add custom icons, labels, and markers to personalize your indoor maps.",label:"Customize",path:"#"}),x.jsx(pu,{src:SP,text:"Ensure accessibility by mapping out routes and facilities for all users.",label:"Accessibility",path:"#"}),x.jsx(pu,{src:xP,text:"Share your maps with others and collaborate in real-time for efficient space planning.",label:"Collaboration",path:"#"})]})]})})]})}function NP(){return x.jsx("div",{className:"footer-container",children:x.jsxs("div",{className:"footer-links",children:[x.jsx("div",{className:"footer-link-wrapper",children:x.jsxs("div",{className:"footer-link-items",children:[x.jsx("h2",{children:"Contact Us"}),x.jsx("a",{href:"#",children:"Contact"}),x.jsx("a",{href:"#",children:"Support"})]})}),x.jsxs("div",{className:"social-media-wrap",children:[x.jsx("div",{className:"footer-logo",children:x.jsx("img",{src:B8,alt:"logo"})}),x.jsxs("small",{className:"website-rights",children:["iMaps © ",2024]})]}),x.jsx("div",{children:x.jsx("div",{className:"footer-link-wrapper",children:x.jsxs("div",{className:"footer-link-items",children:[x.jsx("h2",{children:"Legal & Privacy"}),x.jsx(oo,{to:"/privacy-policy",children:"Privacy Policy"}),x.jsx(oo,{to:"/terms-of-service",children:"Terms Of Service"})]})})})]})})}function CP(){return x.jsxs("div",{className:"home",children:[x.jsxs("div",{className:"hero-container",children:[x.jsx("h1",{children:"Map Your World"}),x.jsx("h2",{className:"description",children:"Create and explore detailed indoor maps."}),x.jsxs("div",{className:"hero-btns",children:[x.jsx(oo,{to:"/Maps",children:x.jsxs(M3,{buttonSize:"btn--large",children:["Browse Maps ",x.jsx("i",{className:"far fa-play-circle"})]})}),x.jsx(oo,{to:"/myMaps",children:x.jsx(M3,{buttonSize:"btn--large",buttonStyle:"btn--outline",children:"Create Maps"})})]})]}),x.jsx(AP,{}),x.jsx(NP,{})]})}function PP(){return x.jsxs("div",{className:"homebg",children:[x.jsx(yP,{}),x.jsx(CP,{})]})}const LP="_topPanelH_1dtk6_10",kP="_logo_1dtk6_18",EP="_title_1dtk6_22",TP="_titleLink_1dtk6_33",jP="_paragraph_1dtk6_40",MP="_guideWrapper_1dtk6_44",IP="_wrapper_1dtk6_52",FP="_cont_1dtk6_59",OP="_panel_1dtk6_68",RP="_buttonContainer_1dtk6_84",BP="_renderButton_1dtk6_93",DP="_shapeOptions_1dtk6_122",UP="_shapeOption_1dtk6_122",zP="_templateCont_1dtk6_154",GP="_fpscounter_1dtk6_161",qP="_popup_1dtk6_176",VP="_fadeInOut_1dtk6_1",WP="_popupContent_1dtk6_206",HP="_entrance_1dtk6_212",YP="_wall_1dtk6_216",KP="_room_1dtk6_220",XP="_stairs_1dtk6_223",$P="_floorSection_1dtk6_226",QP="_floorLabel_1dtk6_238",JP="_floorList_1dtk6_246",ZP="_floorItems_1dtk6_254",eL="_addFloorButton_1dtk6_262",tL="_icon_1dtk6_285",nL="_floorButton_1dtk6_291",rL="_active_1dtk6_308",iL="_floorInput_1dtk6_314",oL="_floorActions_1dtk6_331",sL="_errorMessage_1dtk6_339",aL="_floorItemWrapper_1dtk6_345",lL="_floorItem_1dtk6_254",cL="_activeFloor_1dtk6_369",uL="_deleteFloorButton_1dtk6_375",bt={topPanelH:LP,logo:kP,title:EP,titleLink:TP,paragraph:jP,guideWrapper:MP,wrapper:IP,cont:FP,panel:OP,buttonContainer:RP,renderButton:BP,shapeOptions:DP,shapeOption:UP,templateCont:zP,fpscounter:GP,popup:qP,fadeInOut:VP,popupContent:WP,entrance:HP,wall:YP,room:KP,stairs:XP,floorSection:$P,floorLabel:QP,floorList:JP,floorItems:ZP,addFloorButton:eL,icon:tL,floorButton:nL,active:rL,floorInput:iL,floorActions:oL,errorMessage:sL,floorItemWrapper:aL,floorItem:lL,activeFloor:cL,deleteFloorButton:uL},hL="_activeModal_13596_2",dL="_modal_13596_7",fL="_overlay_13596_8",pL="_draggableHeader_13596_21",gL="_modalContent_13596_31",mL="_title_13596_47",vL="_btnModal_13596_52",yL="_closeModal_13596_68",wL="_form_13596_84",bL="_formGroup_13596_89",_L="_customFileInput_13596_101",SL="_uploadButton_13596_105",xL="_formGroupCheckbox_13596_154",AL="_addButton_13596_170",NL="_submitButton_13596_185",CL="_pinList_13596_200",PL="_pinItem_13596_206",LL="_removeButton_13596_217",Xt={activeModal:hL,modal:dL,overlay:fL,draggableHeader:pL,modalContent:gL,title:mL,btnModal:vL,closeModal:yL,form:wL,formGroup:bL,customFileInput:_L,uploadButton:SL,formGroupCheckbox:xL,addButton:AL,submitButton:NL,pinList:CL,pinItem:PL,removeButton:LL};function g1({shapeInfo:t,updateModalData:e,phtext:n}){return x.jsxs("div",{className:Xt.formGroup,children:[x.jsx("label",{htmlFor:"name",children:"Name:"}),x.jsx("input",{type:"text",id:"name",name:"name",value:t.name,onChange:e,placeholder:n,required:!0})]})}function m1({shapeInfo:t,updateModalData:e}){return x.jsxs("div",{className:Xt.formGroup,children:[x.jsx("label",{htmlFor:"description",children:"Description:"}),x.jsx("textarea",{id:"description",name:"description",value:t.description,onChange:e,rows:"3"})]})}function v1({saveDetails:t}){return x.jsx("div",{className:Xt.formGroup,children:x.jsx("button",{type:"button",id:"submit-details",onClick:t,className:Xt.submitButton,children:"Save"})})}function y1({children:t,title:e,isOpen:n,toggleModal:r}){const i=re.useRef(null),[o,s]=re.useState(!1),[a,l]=re.useState({x:"50%",y:"50%"}),[u,d]=re.useState({x:0,y:0}),p=w=>{if(!i.current)return;s(!0);const _=i.current.getBoundingClientRect();d({x:w.clientX-_.left,y:w.clientY-_.top})},g=w=>{o&&l({x:w.clientX-u.x,y:w.clientY-u.y})},h=()=>{s(!1)};return re.useEffect(()=>(o?(window.addEventListener("mousemove",g),window.addEventListener("mouseup",h)):(window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)}),[o]),n?document.body.classList.add(Xt.activeModal):document.body.classList.remove(Xt.activeModal),x.jsx(x.Fragment,{children:n&&x.jsxs("div",{className:Xt.modal,children:[x.jsx("div",{onClick:r,className:Xt.overlay}),x.jsxs("div",{ref:i,className:Xt.modalContent,style:{top:typeof a.y=="string"?a.y:`${a.y}px`,left:typeof a.x=="string"?a.x:`${a.x}px`,transform:typeof a.x=="string"&&typeof a.y=="string"?"translate(-50%, -50%)":"none"},children:[x.jsx("div",{className:Xt.draggableHeader,onMouseDown:p,children:x.jsx("h2",{className:Xt.title,children:e})}),x.jsxs("form",{className:Xt.form,children:[t,x.jsx("button",{className:Xt.closeModal,onClick:r,children:"CLOSE"})]})]})]})})}const kL="_activeModal_knxpl_3",EL="_modal_knxpl_7",TL="_overlay_knxpl_8",jL="_modalContent_knxpl_22",ML="_btnModal_knxpl_42",IL="_closeModal_knxpl_58",FL="_form_knxpl_74",OL="_formGroup_knxpl_79",RL="_submitButton_knxpl_110",BL={activeModal:kL,modal:EL,overlay:TL,modalContent:jL,btnModal:ML,closeModal:IL,form:FL,formGroup:OL,submitButton:RL};function DL({shapeInfo:t,updateModalData:e,roomTypes:n}){return console.log("ROOM TYPES: "+n),x.jsxs("div",{className:BL.formGroup,children:[x.jsx("label",{htmlFor:"type",children:"Type:"}),x.jsxs("select",{id:"type",name:"type",onChange:e,value:t.type,required:!0,children:[x.jsx("option",{value:"",children:"Select Room Type"}),n==null?void 0:n.map((r,i)=>x.jsx("option",{value:r.name,children:r.name},i))]})]})}let z8=!0;const I3=new CustomEvent("mapsave",{}),F3=t=>{z8=t},Ql=()=>{z8&&(window.dispatchEvent(I3),F3(!1),setTimeout(()=>{F3(!0),window.dispatchEvent(I3)},2e3))};function w1(t){const[e,n]=re.useState(!1),[r,i]=re.useState(null),[o,s]=re.useState({}),a=()=>{e&&(r.setInfo(o),t.updateRoomNames(),Ql(),t.attachKeyPressEventListeners()),n(!e)};return{modalState:{isOpen:e,shapeInfo:o,setIsOpen:n,shape:r,setShape:i,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:d=>{const{name:p,value:g,type:h,checked:w}=d.target;s(_=>({..._,[p]:h==="checkbox"?w:g})),console.log("SHAPE INFO UPDATE",r.info)},saveDetails:()=>{r&&a()}}}}function b1(t,e){re.useEffect(()=>{if(e!=null)return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[])}function UL(){const t=re.useRef(null),e=()=>{t.current.click()};return x.jsxs("div",{className:Xt.formGroup,children:[x.jsx("label",{htmlFor:"name",children:"Room Image"}),x.jsxs("div",{className:Xt.customFileInput,children:[x.jsx("button",{type:"button",className:Xt.uploadButton,onClick:e,children:"Upload Image"}),x.jsx("input",{type:"file",accept:"image/*",ref:t,style:{display:"none"}})]})]})}function zL({map:t,roomTypes:e}){const{modalState:{isOpen:n,setIsOpen:r,setShape:i,shapeInfo:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t);return b1(d=>{const p=d.detail.room;i(p),s(p.info),r(!0),d.detail.map.detachKeyPressEventListeners()},"openRoomModalEvent"),x.jsxs(y1,{isOpen:n,toggleModal:a,title:"Enter Room Details",children:[x.jsx(g1,{shapeInfo:o,updateModalData:l}),x.jsx(DL,{updateModalData:l,shapeInfo:o,roomTypes:e}),x.jsx(m1,{shapeInfo:o,updateModalData:l}),x.jsx(UL,{}),x.jsx(v1,{saveDetails:u})]})}var G8={exports:{}},GL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qL=GL,VL=qL;function q8(){}function V8(){}V8.resetWarningCache=q8;var WL=function(){function t(r,i,o,s,a,l){if(l!==VL){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:V8,resetWarningCache:q8};return n.PropTypes=n,n};G8.exports=WL();var HL=G8.exports;const Sa=Kf(HL);var $e={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof Om<"u"?Om:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.16",isBrowser:n(),isUnminified:/param/.test((function(i){}).toString()),dblClickWindow:400,getAngle(i){return t.Konva.angleDeg?i*e:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isTransforming(){var i;return(i=t.Konva.Transformer)===null||i===void 0?void 0:i.isTransforming()},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(i){t.glob.Konva=i}};const r=i=>{t.Konva[i.prototype.getClassName()]=i};t._registerNode=r,t.Konva._injectGlobal(t.Konva)})($e);var jg={exports:{}},_1={},W8={},en={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=$e;class n{constructor(N=[1,0,0,1,0,0]){this.dirty=!1,this.m=N&&N.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(N){N.m[0]=this.m[0],N.m[1]=this.m[1],N.m[2]=this.m[2],N.m[3]=this.m[3],N.m[4]=this.m[4],N.m[5]=this.m[5]}point(N){const L=this.m;return{x:L[0]*N.x+L[2]*N.y+L[4],y:L[1]*N.x+L[3]*N.y+L[5]}}translate(N,L){return this.m[4]+=this.m[0]*N+this.m[2]*L,this.m[5]+=this.m[1]*N+this.m[3]*L,this}scale(N,L){return this.m[0]*=N,this.m[1]*=N,this.m[2]*=L,this.m[3]*=L,this}rotate(N){const L=Math.cos(N),R=Math.sin(N),D=this.m[0]*L+this.m[2]*R,k=this.m[1]*L+this.m[3]*R,z=this.m[0]*-R+this.m[2]*L,T=this.m[1]*-R+this.m[3]*L;return this.m[0]=D,this.m[1]=k,this.m[2]=z,this.m[3]=T,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(N,L){const R=this.m[0]+this.m[2]*L,D=this.m[1]+this.m[3]*L,k=this.m[2]+this.m[0]*N,z=this.m[3]+this.m[1]*N;return this.m[0]=R,this.m[1]=D,this.m[2]=k,this.m[3]=z,this}multiply(N){const L=this.m[0]*N.m[0]+this.m[2]*N.m[1],R=this.m[1]*N.m[0]+this.m[3]*N.m[1],D=this.m[0]*N.m[2]+this.m[2]*N.m[3],k=this.m[1]*N.m[2]+this.m[3]*N.m[3],z=this.m[0]*N.m[4]+this.m[2]*N.m[5]+this.m[4],T=this.m[1]*N.m[4]+this.m[3]*N.m[5]+this.m[5];return this.m[0]=L,this.m[1]=R,this.m[2]=D,this.m[3]=k,this.m[4]=z,this.m[5]=T,this}invert(){const N=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),L=this.m[3]*N,R=-this.m[1]*N,D=-this.m[2]*N,k=this.m[0]*N,z=N*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),T=N*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=L,this.m[1]=R,this.m[2]=D,this.m[3]=k,this.m[4]=z,this.m[5]=T,this}getMatrix(){return this.m}decompose(){const N=this.m[0],L=this.m[1],R=this.m[2],D=this.m[3],k=this.m[4],z=this.m[5],T=N*D-L*R,P={x:k,y:z,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(N!=0||L!=0){const E=Math.sqrt(N*N+L*L);P.rotation=L>0?Math.acos(N/E):-Math.acos(N/E),P.scaleX=E,P.scaleY=T/E,P.skewX=(N*R+L*D)/T,P.skewY=0}else if(R!=0||D!=0){const E=Math.sqrt(R*R+D*D);P.rotation=Math.PI/2-(D>0?Math.acos(-R/E):-Math.acos(R/E)),P.scaleX=T/E,P.scaleY=E,P.skewX=0,P.skewY=(N*R+L*D)/T}return P.rotation=t.Util._getRotation(P.rotation),P}}t.Transform=n;let r="[object Array]",i="[object Number]",o="[object String]",s="[object Boolean]",a=Math.PI/180,l=180/Math.PI,u="#",d="",p="0",g="Konva warning: ",h="Konva error: ",w="rgb(",_={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},A=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,v=[];const S=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(y){setTimeout(y,60)};t.Util={_isElement(y){return!!(y&&y.nodeType==1)},_isFunction(y){return!!(y&&y.constructor&&y.call&&y.apply)},_isPlainObject(y){return!!y&&y.constructor===Object},_isArray(y){return Object.prototype.toString.call(y)===r},_isNumber(y){return Object.prototype.toString.call(y)===i&&!isNaN(y)&&isFinite(y)},_isString(y){return Object.prototype.toString.call(y)===o},_isBoolean(y){return Object.prototype.toString.call(y)===s},isObject(y){return y instanceof Object},isValidSelector(y){if(typeof y!="string")return!1;const N=y[0];return N==="#"||N==="."||N===N.toUpperCase()},_sign(y){return y===0||y>0?1:-1},requestAnimFrame(y){v.push(y),v.length===1&&S(function(){const N=v;v=[],N.forEach(function(L){L()})})},createCanvasElement(){const y=document.createElement("canvas");try{y.style=y.style||{}}catch{}return y},createImageElement(){return document.createElement("img")},_isInDocument(y){for(;y=y.parentNode;)if(y==document)return!0;return!1},_urlToImage(y,N){const L=t.Util.createImageElement();L.onload=function(){N(L)},L.src=y},_rgbToHex(y,N,L){return((1<<24)+(y<<16)+(N<<8)+L).toString(16).slice(1)},_hexToRgb(y){y=y.replace(u,d);const N=parseInt(y,16);return{r:N>>16&255,g:N>>8&255,b:N&255}},getRandomColor(){let y=(Math.random()*16777215<<0).toString(16);for(;y.length<6;)y=p+y;return u+y},getRGB(y){let N;return y in _?(N=_[y],{r:N[0],g:N[1],b:N[2]}):y[0]===u?this._hexToRgb(y.substring(1)):y.substr(0,4)===w?(N=A.exec(y.replace(/ /g,"")),{r:parseInt(N[1],10),g:parseInt(N[2],10),b:parseInt(N[3],10)}):{r:0,g:0,b:0}},colorToRGBA(y){return y=y||"black",t.Util._namedColorToRBA(y)||t.Util._hex3ColorToRGBA(y)||t.Util._hex4ColorToRGBA(y)||t.Util._hex6ColorToRGBA(y)||t.Util._hex8ColorToRGBA(y)||t.Util._rgbColorToRGBA(y)||t.Util._rgbaColorToRGBA(y)||t.Util._hslColorToRGBA(y)},_namedColorToRBA(y){const N=_[y.toLowerCase()];return N?{r:N[0],g:N[1],b:N[2],a:1}:null},_rgbColorToRGBA(y){if(y.indexOf("rgb(")===0){y=y.match(/rgb\(([^)]+)\)/)[1];const N=y.split(/ *, */).map(Number);return{r:N[0],g:N[1],b:N[2],a:1}}},_rgbaColorToRGBA(y){if(y.indexOf("rgba(")===0){y=y.match(/rgba\(([^)]+)\)/)[1];const N=y.split(/ *, */).map((L,R)=>L.slice(-1)==="%"?R===3?parseInt(L)/100:parseInt(L)/100*255:Number(L));return{r:N[0],g:N[1],b:N[2],a:N[3]}}},_hex8ColorToRGBA(y){if(y[0]==="#"&&y.length===9)return{r:parseInt(y.slice(1,3),16),g:parseInt(y.slice(3,5),16),b:parseInt(y.slice(5,7),16),a:parseInt(y.slice(7,9),16)/255}},_hex6ColorToRGBA(y){if(y[0]==="#"&&y.length===7)return{r:parseInt(y.slice(1,3),16),g:parseInt(y.slice(3,5),16),b:parseInt(y.slice(5,7),16),a:1}},_hex4ColorToRGBA(y){if(y[0]==="#"&&y.length===5)return{r:parseInt(y[1]+y[1],16),g:parseInt(y[2]+y[2],16),b:parseInt(y[3]+y[3],16),a:parseInt(y[4]+y[4],16)/255}},_hex3ColorToRGBA(y){if(y[0]==="#"&&y.length===4)return{r:parseInt(y[1]+y[1],16),g:parseInt(y[2]+y[2],16),b:parseInt(y[3]+y[3],16),a:1}},_hslColorToRGBA(y){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(y)){const[N,...L]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(y),R=Number(L[0])/360,D=Number(L[1])/100,k=Number(L[2])/100;let z,T,P;if(D===0)return P=k*255,{r:Math.round(P),g:Math.round(P),b:Math.round(P),a:1};k<.5?z=k*(1+D):z=k+D-k*D;const E=2*k-z,W=[0,0,0];for(let B=0;B<3;B++)T=R+1/3*-(B-1),T<0&&T++,T>1&&T--,6*T<1?P=E+(z-E)*6*T:2*T<1?P=z:3*T<2?P=E+(z-E)*(2/3-T)*6:P=E,W[B]=P*255;return{r:Math.round(W[0]),g:Math.round(W[1]),b:Math.round(W[2]),a:1}}},haveIntersection(y,N){return!(N.x>y.x+y.width||N.x+N.width<y.x||N.y>y.y+y.height||N.y+N.height<y.y)},cloneObject(y){const N={};for(const L in y)this._isPlainObject(y[L])?N[L]=this.cloneObject(y[L]):this._isArray(y[L])?N[L]=this.cloneArray(y[L]):N[L]=y[L];return N},cloneArray(y){return y.slice(0)},degToRad(y){return y*a},radToDeg(y){return y*l},_degToRad(y){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(y)},_radToDeg(y){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(y)},_getRotation(y){return e.Konva.angleDeg?t.Util.radToDeg(y):y},_capitalize(y){return y.charAt(0).toUpperCase()+y.slice(1)},throw(y){throw new Error(h+y)},error(y){console.error(h+y)},warn(y){e.Konva.showWarnings&&console.warn(g+y)},each(y,N){for(const L in y)N(L,y[L])},_inRange(y,N,L){return N<=y&&y<L},_getProjectionToSegment(y,N,L,R,D,k){let z,T,P;const E=(y-L)*(y-L)+(N-R)*(N-R);if(E==0)z=y,T=N,P=(D-L)*(D-L)+(k-R)*(k-R);else{const W=((D-y)*(L-y)+(k-N)*(R-N))/E;W<0?(z=y,T=N,P=(y-D)*(y-D)+(N-k)*(N-k)):W>1?(z=L,T=R,P=(L-D)*(L-D)+(R-k)*(R-k)):(z=y+W*(L-y),T=N+W*(R-N),P=(z-D)*(z-D)+(T-k)*(T-k))}return[z,T,P]},_getProjectionToLine(y,N,L){const R=t.Util.cloneObject(y);let D=Number.MAX_VALUE;return N.forEach(function(k,z){if(!L&&z===N.length-1)return;const T=N[(z+1)%N.length],P=t.Util._getProjectionToSegment(k.x,k.y,T.x,T.y,y.x,y.y),E=P[0],W=P[1],B=P[2];B<D&&(R.x=E,R.y=W,D=B)}),R},_prepareArrayForTween(y,N,L){let R,D=[],k=[];if(y.length>N.length){const T=N;N=y,y=T}for(R=0;R<y.length;R+=2)D.push({x:y[R],y:y[R+1]});for(R=0;R<N.length;R+=2)k.push({x:N[R],y:N[R+1]});const z=[];return k.forEach(function(T){const P=t.Util._getProjectionToLine(T,D,L);z.push(P.x),z.push(P.y)}),z},_prepareToStringify(y){let N;y.visitedByCircularReferenceRemoval=!0;for(const L in y)if(y.hasOwnProperty(L)&&y[L]&&typeof y[L]=="object"){if(N=Object.getOwnPropertyDescriptor(y,L),y[L].visitedByCircularReferenceRemoval||t.Util._isElement(y[L]))if(N.configurable)delete y[L];else return null;else if(t.Util._prepareToStringify(y[L])===null)if(N.configurable)delete y[L];else return null}return delete y.visitedByCircularReferenceRemoval,y},_assign(y,N){for(const L in N)y[L]=N[L];return y},_getFirstPointerId(y){return y.touches?y.changedTouches[0].identifier:y.pointerId||999},releaseCanvas(...y){e.Konva.releaseCanvasOnDestroy&&y.forEach(N=>{N.width=0,N.height=0})},drawRoundedRectPath(y,N,L,R){let D=0,k=0,z=0,T=0;typeof R=="number"?D=k=z=T=Math.min(R,N/2,L/2):(D=Math.min(R[0]||0,N/2,L/2),k=Math.min(R[1]||0,N/2,L/2),T=Math.min(R[2]||0,N/2,L/2),z=Math.min(R[3]||0,N/2,L/2)),y.moveTo(D,0),y.lineTo(N-k,0),y.arc(N-k,k,k,Math.PI*3/2,0,!1),y.lineTo(N,L-T),y.arc(N-T,L-T,T,0,Math.PI/2,!1),y.lineTo(z,L),y.arc(z,L-z,z,Math.PI/2,Math.PI,!1),y.lineTo(0,D),y.arc(D,D,D,Math.PI,Math.PI*3/2,!1)}}})(en);var Yt={},at={},Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.RGBComponent=YL;Xe.alphaComponent=KL;Xe.getNumberValidator=XL;Xe.getNumberOrArrayOfNumbersValidator=$L;Xe.getNumberOrAutoValidator=QL;Xe.getStringValidator=JL;Xe.getStringOrGradientValidator=ZL;Xe.getFunctionValidator=ek;Xe.getNumberArrayValidator=tk;Xe.getBooleanValidator=nk;Xe.getComponentValidator=rk;const Go=$e,ln=en;function qo(t){return ln.Util._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||ln.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function YL(t){return t>255?255:t<0?0:Math.round(t)}function KL(t){return t>1?1:t<1e-4?1e-4:t}function XL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isNumber(t)||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function $L(t){if(Go.Konva.isUnminified)return function(e,n){const r=ln.Util._isNumber(e),i=ln.Util._isArray(e)&&e.length==t;return!r&&!i&&ln.Util.warn(qo(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function QL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isNumber(t)||t==="auto"||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function JL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isString(t)||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function ZL(){if(Go.Konva.isUnminified)return function(t,e){const n=ln.Util._isString(t),r=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return n||r||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function ek(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isFunction(t)||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}function tk(){if(Go.Konva.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(ln.Util._isArray(t)?t.forEach(function(r){ln.Util._isNumber(r)||ln.Util.warn('"'+e+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function nk(){if(Go.Konva.isUnminified)return function(t,e){return t===!0||t===!1||ln.Util.warn(qo(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function rk(t){if(Go.Konva.isUnminified)return function(e,n){return e==null||ln.Util.isObject(e)||ln.Util.warn(qo(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=en,n=Xe,r="get",i="set";t.Factory={addGetterSetter(o,s,a,l,u){t.Factory.addGetter(o,s,a),t.Factory.addSetter(o,s,l,u),t.Factory.addOverloadedGetterSetter(o,s)},addGetter(o,s,a){const l=r+e.Util._capitalize(s);o.prototype[l]=o.prototype[l]||function(){const u=this.attrs[s];return u===void 0?a:u}},addSetter(o,s,a,l){const u=i+e.Util._capitalize(s);o.prototype[u]||t.Factory.overWriteSetter(o,s,a,l)},overWriteSetter(o,s,a,l){const u=i+e.Util._capitalize(s);o.prototype[u]=function(d){return a&&d!==void 0&&d!==null&&(d=a.call(this,d,s)),this._setAttr(s,d),l&&l.call(this),this}},addComponentsGetterSetter(o,s,a,l,u){let d=a.length,p=e.Util._capitalize,g=r+p(s),h=i+p(s),w,_;o.prototype[g]=function(){const v={};for(w=0;w<d;w++)_=a[w],v[_]=this.getAttr(s+p(_));return v};const A=(0,n.getComponentValidator)(a);o.prototype[h]=function(v){let S=this.attrs[s],y;l&&(v=l.call(this,v)),A&&A.call(this,v,s);for(y in v)v.hasOwnProperty(y)&&this._setAttr(s+p(y),v[y]);return v||a.forEach(N=>{this._setAttr(s+p(N),void 0)}),this._fireChangeEvent(s,S,v),u&&u.call(this),this},t.Factory.addOverloadedGetterSetter(o,s)},addOverloadedGetterSetter(o,s){const a=e.Util._capitalize(s),l=i+a,u=r+a;o.prototype[s]=function(){return arguments.length?(this[l](arguments[0]),this):this[u]()}},addDeprecatedGetterSetter(o,s,a,l){e.Util.error("Adding deprecated "+s);const u=r+e.Util._capitalize(s),d=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[u]=function(){e.Util.error(d);const p=this.attrs[s];return p===void 0?a:p},t.Factory.addSetter(o,s,l,function(){e.Util.error(d)}),t.Factory.addOverloadedGetterSetter(o,s)},backCompat(o,s){e.Util.each(s,function(a,l){const u=o.prototype[l],d=r+e.Util._capitalize(a),p=i+e.Util._capitalize(a);function g(){u.apply(this,arguments),e.Util.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+l+'" instead.')}o.prototype[a]=g,o.prototype[d]=g,o.prototype[p]=g})},afterSetFilter(){this._filterUpToDate=!1}}})(at);var ji={},jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.HitContext=jo.SceneContext=jo.Context=void 0;const H8=en,ik=$e;function ok(t){let e=[],n=t.length,r=H8.Util,i,o;for(i=0;i<n;i++)o=t[i],r._isNumber(o)?o=Math.round(o*1e3)/1e3:r._isString(o)||(o=o+""),e.push(o);return e}const O3=",",sk="(",ak=")",lk="([",ck="])",uk=";",hk="()",dk="=",R3=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],fk=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],pk=100;class S1{constructor(e){this.canvas=e,ik.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,n){let r=this.traceArr,i=r.length,o="",s,a,l,u;for(s=0;s<i;s++)a=r[s],l=a.method,l?(u=a.args,o+=l,e?o+=hk:H8.Util._isArray(u[0])?o+=lk+u.join(O3)+ck:(n&&(u=u.map(d=>typeof d=="number"?Math.floor(d):d)),o+=sk+u.join(O3)+ak)):(o+=a.property,e||(o+=dk+a.val)),o+=uk;return o}clearTrace(){this.traceArr=[]}_trace(e){let n=this.traceArr,r;n.push(e),r=n.length,r>=pk&&n.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const n=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(e){const n=e.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(e){const n=e.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(e){const n=e.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(e,n){this._context[e]=n}arc(e,n,r,i,o,s){this._context.arc(e,n,r,i,o,s)}arcTo(e,n,r,i,o){this._context.arcTo(e,n,r,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,r,i,o,s){this._context.bezierCurveTo(e,n,r,i,o,s)}clearRect(e,n,r,i){this._context.clearRect(e,n,r,i)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,n){const r=arguments;if(r.length===2)return this._context.createImageData(e,n);if(r.length===1)return this._context.createImageData(e)}createLinearGradient(e,n,r,i){return this._context.createLinearGradient(e,n,r,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,r,i,o,s){return this._context.createRadialGradient(e,n,r,i,o,s)}drawImage(e,n,r,i,o,s,a,l,u){const d=arguments,p=this._context;d.length===3?p.drawImage(e,n,r):d.length===5?p.drawImage(e,n,r,i,o):d.length===9&&p.drawImage(e,n,r,i,o,s,a,l,u)}ellipse(e,n,r,i,o,s,a,l){this._context.ellipse(e,n,r,i,o,s,a,l)}isPointInPath(e,n,r,i){return r?this._context.isPointInPath(r,e,n,i):this._context.isPointInPath(e,n,i)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,n,r,i){this._context.fillRect(e,n,r,i)}strokeRect(e,n,r,i){this._context.strokeRect(e,n,r,i)}fillText(e,n,r,i){i?this._context.fillText(e,n,r,i):this._context.fillText(e,n,r)}measureText(e){return this._context.measureText(e)}getImageData(e,n,r,i){return this._context.getImageData(e,n,r,i)}lineTo(e,n){this._context.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}rect(e,n,r,i){this._context.rect(e,n,r,i)}roundRect(e,n,r,i,o){this._context.roundRect(e,n,r,i,o)}putImageData(e,n,r){this._context.putImageData(e,n,r)}quadraticCurveTo(e,n,r,i){this._context.quadraticCurveTo(e,n,r,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,n,r,i,o,s){this._context.setTransform(e,n,r,i,o,s)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,r,i){this._context.strokeText(e,n,r,i)}transform(e,n,r,i,o,s){this._context.transform(e,n,r,i,o,s)}translate(e,n){this._context.translate(e,n)}_enableTrace(){let e=this,n=R3.length,r=this.setAttr,i,o;const s=function(a){let l=e[a],u;e[a]=function(){return o=ok(Array.prototype.slice.call(arguments,0)),u=l.apply(e,arguments),e._trace({method:a,args:o}),u}};for(i=0;i<n;i++)s(R3[i]);e.setAttr=function(){r.apply(e,arguments);const a=arguments[0];let l=arguments[1];(a==="shadowOffsetX"||a==="shadowOffsetY"||a==="shadowBlur")&&(l=l/this.canvas.getPixelRatio()),e._trace({property:a,val:l})}}_applyGlobalCompositeOperation(e){const n=e.attrs.globalCompositeOperation;!n||n==="source-over"||this.setAttr("globalCompositeOperation",n)}}jo.Context=S1;fk.forEach(function(t){Object.defineProperty(S1.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class gk extends S1{constructor(e,{willReadFrequently:n=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(e){const n=e.fill();this.setAttr("fillStyle",n),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const n=e._getLinearGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fillRadialGradient(e){const n=e._getRadialGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fill(e){const n=e.fill(),r=e.getFillPriority();if(n&&r==="color"){this._fillColor(e);return}const i=e.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(e);return}const o=e.getFillLinearGradientColorStops();if(o&&r==="linear-gradient"){this._fillLinearGradient(e);return}const s=e.getFillRadialGradientColorStops();if(s&&r==="radial-gradient"){this._fillRadialGradient(e);return}n?this._fillColor(e):i?this._fillPattern(e):o?this._fillLinearGradient(e):s&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const n=e.getStrokeLinearGradientStartPoint(),r=e.getStrokeLinearGradientEndPoint(),i=e.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(let s=0;s<i.length;s+=2)o.addColorStop(i[s],i[s+1]);this.setAttr("strokeStyle",o)}}_stroke(e){const n=e.dash(),r=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!r){this.save();const o=this.getCanvas().getPixelRatio();this.setTransform(o,0,0,o,0,0)}this._applyLineCap(e),n&&e.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),r||this.restore()}}_applyShadow(e){var n,r,i;const o=(n=e.getShadowRGBA())!==null&&n!==void 0?n:"black",s=(r=e.getShadowBlur())!==null&&r!==void 0?r:5,a=(i=e.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},l=e.getAbsoluteScale(),u=this.canvas.getPixelRatio(),d=l.x*u,p=l.y*u;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",s*Math.min(Math.abs(d),Math.abs(p))),this.setAttr("shadowOffsetX",a.x*d),this.setAttr("shadowOffsetY",a.y*p)}}jo.SceneContext=gk;class mk extends S1{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const n=e.getStrokeScaleEnabled();if(!n){this.save();const o=this.getCanvas().getPixelRatio();this.setTransform(o,0,0,o,0,0)}this._applyLineCap(e);const r=e.hitStrokeWidth(),i=r==="auto"?e.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),n||this.restore()}}}jo.HitContext=mk;Object.defineProperty(ji,"__esModule",{value:!0});ji.HitCanvas=ji.SceneCanvas=ji.Canvas=void 0;const Gf=en,Y8=jo,K8=$e,vk=at,yk=Xe;let Id;function wk(){if(Id)return Id;const t=Gf.Util.createCanvasElement(),e=t.getContext("2d");return Id=function(){const n=K8.Konva._global.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r}(),Gf.Util.releaseCanvas(t),Id}class x1{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const r=(e||{}).pixelRatio||K8.Konva.pixelRatio||wk();this.pixelRatio=r,this._canvas=Gf.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const n=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,n){this.setWidth(e||0),this.setHeight(n||0)}toDataURL(e,n){try{return this._canvas.toDataURL(e,n)}catch{try{return this._canvas.toDataURL()}catch(i){return Gf.Util.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}ji.Canvas=x1;vk.Factory.addGetterSetter(x1,"pixelRatio",void 0,(0,yk.getNumberValidator)());class bk extends x1{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new Y8.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}}ji.SceneCanvas=bk;class _k extends x1{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new Y8.HitContext(this),this.setSize(e.width,e.height)}}ji.HitCanvas=_k;var A1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const e=$e,n=en;t.DD={get isDragging(){let r=!1;return t.DD._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){let r;return t.DD._dragElements.forEach(i=>{r=i.node}),r},_dragElements:new Map,_drag(r){const i=[];t.DD._dragElements.forEach((o,s)=>{const{node:a}=o,l=a.getStage();l.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const u=l._changedPointerPositions.find(d=>d.id===o.pointerId);if(u){if(o.dragStatus!=="dragging"){const d=a.dragDistance();if(Math.max(Math.abs(u.x-o.startPointerPos.x),Math.abs(u.y-o.startPointerPos.y))<d||(a.startDrag({evt:r}),!a.isDragging()))return}a._setDragPosition(r,o),i.push(a)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const i=[];t.DD._dragElements.forEach(o=>{const{node:s}=o,a=s.getStage();if(r&&a.setPointersPositions(r),!a._changedPointerPositions.find(d=>d.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,o.dragStatus="stopped");const u=o.node.getLayer()||o.node instanceof e.Konva.Stage&&o.node;u&&i.indexOf(u)===-1&&i.push(u)}),i.forEach(o=>{o.draw()})},_endDragAfter(r){t.DD._dragElements.forEach((i,o)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:r},!0),i.dragStatus!=="dragging"&&t.DD._dragElements.delete(o)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("touchcancel",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1),window.addEventListener("touchcancel",t.DD._endDragAfter,!1))})(A1);Object.defineProperty(Yt,"__esModule",{value:!0});Yt.Node=void 0;const dt=en,yh=at,gu=ji,as=$e,Zr=A1,wn=Xe,sf="absoluteOpacity",Fd="allEventListeners",No="absoluteTransform",B3="absoluteScale",ca="canvas",Sk="Change",xk="children",Ak="konva",d5="listening",D3="mouseenter",U3="mouseleave",z3="set",G3="Shape",af=" ",q3="stage",hs="transform",Nk="Stage",f5="visible",Ck=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(af);let Pk=1;class Je{constructor(e){this._id=Pk++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===hs||e===No)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,n){let r=this._cache.get(e);return(r===void 0||(e===hs||e===No)&&r.dirty===!0)&&(r=n.call(this),this._cache.set(e,r)),r}_calculate(e,n,r){if(!this._attachedDepsListeners.get(e)){const i=n.map(o=>o+"Change.konva").join(af);this.on(i,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,r)}_getCanvasCache(){return this._cache.get(ca)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===No&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(ca)){const{scene:e,filter:n,hit:r}=this._cache.get(ca);dt.Util.releaseCanvas(e,n,r),this._cache.delete(ca)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){const n=e||{};let r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(n.width||r.width),o=Math.ceil(n.height||r.height),s=n.pixelRatio,a=n.x===void 0?Math.floor(r.x):n.x,l=n.y===void 0?Math.floor(r.y):n.y,u=n.offset||0,d=n.drawBorder||!1,p=n.hitCanvasPixelRatio||1;if(!i||!o){dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const g=Math.abs(Math.round(r.x)-a)>.5?1:0,h=Math.abs(Math.round(r.y)-l)>.5?1:0;i+=u*2+g,o+=u*2+h,a-=u,l-=u;const w=new gu.SceneCanvas({pixelRatio:s,width:i,height:o}),_=new gu.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),A=new gu.HitCanvas({pixelRatio:p,width:i,height:o}),v=w.getContext(),S=A.getContext();return A.isCache=!0,w.isCache=!0,this._cache.delete(ca),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(w.getContext()._context.imageSmoothingEnabled=!1,_.getContext()._context.imageSmoothingEnabled=!1),v.save(),S.save(),v.translate(-a,-l),S.translate(-a,-l),this._isUnderCache=!0,this._clearSelfAndDescendantCache(sf),this._clearSelfAndDescendantCache(B3),this.drawScene(w,this),this.drawHit(A,this),this._isUnderCache=!1,v.restore(),S.restore(),d&&(v.save(),v.beginPath(),v.rect(0,0,i,o),v.closePath(),v.setAttr("strokeStyle","red"),v.setAttr("lineWidth",5),v.stroke(),v.restore()),this._cache.set(ca,{scene:w,filter:_,hit:A,x:a,y:l}),this._requestDraw(),this}isCached(){return this._cache.has(ca)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,n){const r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}];let i=1/0,o=1/0,s=-1/0,a=-1/0;const l=this.getAbsoluteTransform(n);return r.forEach(function(u){const d=l.point(u);i===void 0&&(i=s=d.x,o=a=d.y),i=Math.min(i,d.x),o=Math.min(o,d.y),s=Math.max(s,d.x),a=Math.max(a,d.y)}),{x:i,y:o,width:s-i,height:a-o}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();e.translate(n.x,n.y);const r=this._getCachedSceneCanvas(),i=r.pixelRatio;e.drawImage(r._canvas,0,0,r.width/i,r.height/i),e.restore()}_drawCachedHitCanvas(e){const n=this._getCanvasCache(),r=n.hit;e.save(),e.translate(n.x,n.y),e.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,o=i.getContext(),s,a,l,u;if(e){if(!this._filterUpToDate){const d=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(s=e.length,o.clear(),o.drawImage(r._canvas,0,0,r.getWidth()/d,r.getHeight()/d),a=o.getImageData(0,0,i.getWidth(),i.getHeight()),l=0;l<s;l++){if(u=e[l],typeof u!="function"){dt.Util.error("Filter should be type of function, but got "+typeof u+" instead. Please check correct filters");continue}u.call(this,a),o.putImageData(a,0,0)}}catch(p){dt.Util.error("Unable to apply filter. "+p.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(e,n){if(this._cache&&this._cache.delete(Fd),arguments.length===3)return this._delegate.apply(this,arguments);let r=e.split(af),i=r.length,o,s,a,l,u;for(o=0;o<i;o++)s=r[o],a=s.split("."),l=a[0],u=a[1]||"",this.eventListeners[l]||(this.eventListeners[l]=[]),this.eventListeners[l].push({name:u,handler:n});return this}off(e,n){let r=(e||"").split(af),i=r.length,o,s,a,l,u,d;if(this._cache&&this._cache.delete(Fd),!e)for(s in this.eventListeners)this._off(s);for(o=0;o<i;o++)if(a=r[o],l=a.split("."),u=l[0],d=l[1],u)this.eventListeners[u]&&this._off(u,d,n);else for(s in this.eventListeners)this._off(s,d,n);return this}dispatchEvent(e){const n={target:this,type:e.type,evt:e};return this.fire(e.type,n),this}addEventListener(e,n){return this.on(e,function(r){n.call(this,r.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,n,r){const i=this;this.on(e,function(o){const s=o.target.findAncestors(n,!0,i);for(let a=0;a<s.length;a++)o=dt.Util.cloneObject(o),o.currentTarget=s[a],r.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),Zr.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(No),this._clearSelfAndDescendantCache(sf),this._clearSelfAndDescendantCache(B3),this._clearSelfAndDescendantCache(q3),this._clearSelfAndDescendantCache(f5),this._clearSelfAndDescendantCache(d5)}_remove(){this._clearCaches();const e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){const n="get"+dt.Util._capitalize(e);return dt.Util._isFunction(this[n])?this[n]():this.attrs[e]}getAncestors(){let e=this.getParent(),n=[];for(;e;)n.push(e),e=e.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{let n,r;if(!e)return this;for(n in e)n!==xk&&(r=z3+dt.Util._capitalize(n),dt.Util._isFunction(this[r])?this[r](e[n]):this._setAttr(n,e[n]))}),this}isListening(){return this._getCache(d5,this._isListening)}_isListening(e){if(!this.listening())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isListening(e):!0}isVisible(){return this._getCache(f5,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isVisible(e):!0}shouldDrawHit(e,n=!1){if(e)return this._isVisible(e)&&this._isListening(e);const r=this.getLayer();let i=!1;Zr.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===r)&&(i=!0)});const o=!n&&!as.Konva.hitOnDragEnabled&&(i||as.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e=this.getDepth(),n=this,r=0,i,o,s,a;function l(d){for(i=[],o=d.length,s=0;s<o;s++)a=d[s],r++,a.nodeType!==G3&&(i=i.concat(a.getChildren().slice())),a._id===n._id&&(s=o);i.length>0&&i[0].getDepth()<=e&&l(i)}const u=this.getStage();return n.nodeType!==Nk&&u&&l(u.getChildren()),r}getDepth(){let e=0,n=this.parent;for(;n;)e++,n=n.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(hs),this._clearSelfAndDescendantCache(No)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;const n=e.getPointerPosition();if(!n)return null;const r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(e){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!e&&(e=!0);const i=this.getAbsoluteTransform(e).getMatrix(),o=new dt.Transform,s=this.offset();return o.m=i.slice(),o.translate(s.x,s.y),o.getTranslation()}setAbsolutePosition(e){const{x:n,y:r,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=r,this._clearCache(hs);const o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(e.x,e.y),e={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(i),this.setPosition({x:e.x,y:e.y}),this._clearCache(hs),this._clearSelfAndDescendantCache(No),this}_setTransform(e){let n;for(n in e)this.attrs[n]=e[n]}_clearTransform(){const e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let n=e.x,r=e.y,i=this.x(),o=this.y();return n!==void 0&&(i+=n),r!==void 0&&(o+=r),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(e,n){let r=[],i=this.getParent(),o,s;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(o=r.length,s=0;s<o;s++)e(r[s])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return dt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return dt.Util.warn("Node has no parent. moveUp function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return dt.Util.warn("Node has no parent. moveDown function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&dt.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(sf,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity();const n=this.getParent();return n&&!n._isUnderCache&&(e*=n.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e=this.getAttrs(),n,r,i,o,s;const a={attrs:{},className:this.getClassName()};for(n in e)r=e[n],s=dt.Util.isObject(r)&&!dt.Util._isPlainObject(r)&&!dt.Util._isArray(r),!s&&(i=typeof this[n]=="function"&&this[n],delete e[n],o=i?i.call(this):null,e[n]=r,o!==r&&(a.attrs[n]=r));return dt.Util._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,n,r){const i=[];n&&this._isMatch(e)&&i.push(this);let o=this.parent;for(;o;){if(o===r)return i;o._isMatch(e)&&i.push(o),o=o.parent}return i}isAncestorOf(e){return!1}findAncestor(e,n,r){return this.findAncestors(e,n,r)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);let n=e.replace(/ /g,"").split(","),r=n.length,i,o;for(i=0;i<r;i++)if(o=n[i],dt.Util.isValidSelector(o)||(dt.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),dt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),dt.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){const e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(q3,this._getStage)}_getStage(){const e=this.getParent();return e?e.getStage():null}fire(e,n={},r){return n.target=n.target||this,r?this._fireAndBubble(e,n):this._fire(e,n),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(No,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let n;if(e)return n=new dt.Transform,this._eachAncestorReverse(function(r){const i=r.transformsEnabled();i==="all"?n.multiply(r.getTransform()):i==="position"&&n.translate(r.x()-r.offsetX(),r.y()-r.offsetY())},e),n;{n=this._cache.get(No)||new dt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();const r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,s=this.attrs.offsetX||0,a=this.attrs.offsetY||0;n.translate(i-s,o-a)}return n.dirty=!1,n}}getAbsoluteScale(e){let n=this;for(;n;)n._isUnderCache&&(e=n),n=n.getParent();const i=this.getAbsoluteTransform(e).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(hs,this._getTransform)}_getTransform(){var e,n;const r=this._cache.get(hs)||new dt.Transform;r.reset();const i=this.x(),o=this.y(),s=as.Konva.getAngle(this.rotation()),a=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,l=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,d=this.attrs.skewY||0,p=this.attrs.offsetX||0,g=this.attrs.offsetY||0;return(i!==0||o!==0)&&r.translate(i,o),s!==0&&r.rotate(s),(u!==0||d!==0)&&r.skew(u,d),(a!==1||l!==1)&&r.scale(a,l),(p!==0||g!==0)&&r.translate(-1*p,-1*g),r.dirty=!1,r}clone(e){let n=dt.Util.cloneObject(this.attrs),r,i,o,s,a;for(r in e)n[r]=e[r];const l=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],o=i.length,s=0;s<o;s++)a=i[s],a.name.indexOf(Ak)<0&&(l.eventListeners[r]||(l.eventListeners[r]=[]),l.eventListeners[r].push(a));return l}_toKonvaCanvas(e){e=e||{};const n=this.getClientRect(),r=this.getStage(),i=e.x!==void 0?e.x:Math.floor(n.x),o=e.y!==void 0?e.y:Math.floor(n.y),s=e.pixelRatio||1,a=new gu.SceneCanvas({width:e.width||Math.ceil(n.width)||(r?r.width():0),height:e.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:s}),l=a.getContext(),u=new gu.SceneCanvas({width:a.width/a.pixelRatio+Math.abs(i),height:a.height/a.pixelRatio+Math.abs(o),pixelRatio:a.pixelRatio});return e.imageSmoothingEnabled===!1&&(l._context.imageSmoothingEnabled=!1),l.save(),(i||o)&&l.translate(-1*i,-1*o),this.drawScene(a,void 0,u),l.restore(),a}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};const n=e.mimeType||null,r=e.quality||null,i=this._toKonvaCanvas(e).toDataURL(n,r);return e.callback&&e.callback(i),i}toImage(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,dt.Util._urlToImage(this.toDataURL(e),function(o){n(o),i==null||i(o)})}catch(i){r(i)}})}toBlob(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,this.toCanvas(e).toBlob(o=>{n(o),i==null||i(o)},e==null?void 0:e.mimeType,e==null?void 0:e.quality)}catch(i){r(i)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():as.Konva.dragDistance}_off(e,n,r){let i=this.eventListeners[e],o,s,a;for(o=0;o<i.length;o++)if(s=i[o].name,a=i[o].handler,(s!=="konva"||n==="konva")&&(!n||s===n)&&(!r||r===a)){if(i.splice(o,1),i.length===0){delete this.eventListeners[e];break}o--}}_fireChangeEvent(e,n,r){this._fire(e+Sk,{oldVal:n,newVal:r})}addName(e){if(!this.hasName(e)){const n=this.name(),r=n?n+" "+e:e;this.name(r)}return this}hasName(e){if(!e)return!1;const n=this.name();return n?(n||"").split(/\s/g).indexOf(e)!==-1:!1}removeName(e){const n=(this.name()||"").split(/\s/g),r=n.indexOf(e);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(e,n){const r=this[z3+dt.Util._capitalize(e)];return dt.Util._isFunction(r)?r.call(this,n):this._setAttr(e,n),this}_requestDraw(){if(as.Konva.autoDrawEnabled){const e=this.getLayer()||this.getStage();e==null||e.batchDraw()}}_setAttr(e,n){const r=this.attrs[e];r===n&&!dt.Util.isObject(n)||(n==null?delete this.attrs[e]:this.attrs[e]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(e,r,n),this._requestDraw())}_setComponentAttr(e,n,r){let i;r!==void 0&&(i=this.attrs[e],i||(this.attrs[e]=this.getAttr(e)),this.attrs[e][n]=r,this._fireChangeEvent(e,i,r))}_fireAndBubble(e,n,r){if(n&&this.nodeType===G3&&(n.target=this),!((e===D3||e===U3)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r))){this._fire(e,n);const o=(e===D3||e===U3)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,n,r):this._fireAndBubble.call(this.parent,e,n))}}_getProtoListeners(e){var n,r,i;const o=(n=this._cache.get(Fd))!==null&&n!==void 0?n:{};let s=o==null?void 0:o[e];if(s===void 0){s=[];let a=Object.getPrototypeOf(this);for(;a;){const l=(i=(r=a.eventListeners)===null||r===void 0?void 0:r[e])!==null&&i!==void 0?i:[];s.push(...l),a=Object.getPrototypeOf(a)}o[e]=s,this._cache.set(Fd,o)}return s}_fire(e,n){n=n||{},n.currentTarget=this,n.type=e;const r=this._getProtoListeners(e);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const o=this.eventListeners[e];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){const n=e?e.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition();if(!r)return;const o=r._getPointerById(n)||r._changedPointerPositions[0]||i;Zr.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-i.x,y:o.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(e,n=!0){Zr.DD._dragElements.has(this._id)||this._createDragElement(e);const r=Zr.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},n)}_setDragPosition(e,n){const r=this.getStage()._getPointerById(n.pointerId);if(!r)return;let i={x:r.x-n.offset.x,y:r.y-n.offset.y};const o=this.dragBoundFunc();if(o!==void 0){const s=o.call(this,i,e);s?i=s:dt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(e){const n=Zr.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Zr.DD._endDragBefore(e),Zr.DD._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=Zr.DD._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){if(!(!(e.evt.button!==void 0)||as.Konva.dragButtons.indexOf(e.evt.button)>=0)||this.isDragging())return;let i=!1;Zr.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(i=!0)}),i||this._createDragElement(e)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const n=Zr.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Zr.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-e.x,y:-e.y,width:n.width()+2*e.x,height:n.height()+2*e.y};return dt.Util.haveIntersection(r,this.getClientRect())}static create(e,n){return dt.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)}static _createNode(e,n){let r=Je.prototype.getClassName.call(e),i=e.children,o,s,a;n&&(e.attrs.container=n),as.Konva[r]||(dt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const l=as.Konva[r];if(o=new l(e.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(Je._createNode(i[a]));return o}}Yt.Node=Je;Je.prototype.nodeType="Node";Je.prototype._attrsAffectingSize=[];Je.prototype.eventListeners={};Je.prototype.on.call(Je.prototype,Ck,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(hs),this._clearSelfAndDescendantCache(No)});Je.prototype.on.call(Je.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(f5)});Je.prototype.on.call(Je.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(d5)});Je.prototype.on.call(Je.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(sf)});const Ot=yh.Factory.addGetterSetter;Ot(Je,"zIndex");Ot(Je,"absolutePosition");Ot(Je,"position");Ot(Je,"x",0,(0,wn.getNumberValidator)());Ot(Je,"y",0,(0,wn.getNumberValidator)());Ot(Je,"globalCompositeOperation","source-over",(0,wn.getStringValidator)());Ot(Je,"opacity",1,(0,wn.getNumberValidator)());Ot(Je,"name","",(0,wn.getStringValidator)());Ot(Je,"id","",(0,wn.getStringValidator)());Ot(Je,"rotation",0,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"scale",["x","y"]);Ot(Je,"scaleX",1,(0,wn.getNumberValidator)());Ot(Je,"scaleY",1,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"skew",["x","y"]);Ot(Je,"skewX",0,(0,wn.getNumberValidator)());Ot(Je,"skewY",0,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"offset",["x","y"]);Ot(Je,"offsetX",0,(0,wn.getNumberValidator)());Ot(Je,"offsetY",0,(0,wn.getNumberValidator)());Ot(Je,"dragDistance",null,(0,wn.getNumberValidator)());Ot(Je,"width",0,(0,wn.getNumberValidator)());Ot(Je,"height",0,(0,wn.getNumberValidator)());Ot(Je,"listening",!0,(0,wn.getBooleanValidator)());Ot(Je,"preventDefault",!0,(0,wn.getBooleanValidator)());Ot(Je,"filters",null,function(t){return this._filterUpToDate=!1,t});Ot(Je,"visible",!0,(0,wn.getBooleanValidator)());Ot(Je,"transformsEnabled","all",(0,wn.getStringValidator)());Ot(Je,"size");Ot(Je,"dragBoundFunc");Ot(Je,"draggable",!1,(0,wn.getBooleanValidator)());yh.Factory.backCompat(Je,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.Container=void 0;const bc=at,Dp=Yt,N1=Xe;class Ra extends Dp.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const n=this.children||[],r=[];return n.forEach(function(i){e(i)&&r.push(i)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let r=0;r<e.length;r++)this.add(e[r]);return this}const n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const n=this._generalFind(e,!0);return n.length>0?n[0]:void 0}_generalFind(e,n){const r=[];return this._descendants(i=>{const o=i._isMatch(e);return o&&r.push(i),!!(o&&n)}),r}_descendants(e){let n=!1;const r=this.getChildren();for(const i of r){if(n=e(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(e),n))return!0}return!1}toObject(){const e=Dp.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(n=>{e.children.push(n.toObject())}),e}isAncestorOf(e){let n=e.getParent();for(;n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(e){const n=Dp.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(e){const n=[];return this.find("Shape").forEach(r=>{r.isVisible()&&r.intersects(e)&&n.push(r)}),n}_clearSelfAndDescendantCache(e){var n;super._clearSelfAndDescendantCache(e),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(e,n,r){const i=this.getLayer(),o=e||i&&i.getCanvas(),s=o&&o.getContext(),a=this._getCanvasCache(),l=a&&a.scene,u=o&&o.isCache;if(!this.isVisible()&&!u)return this;if(l){s.save();const d=this.getAbsoluteTransform(n).getMatrix();s.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(s),s.restore()}else this._drawChildren("drawScene",o,n,r);return this}drawHit(e,n){if(!this.shouldDrawHit(n))return this;const r=this.getLayer(),i=e||r&&r.hitCanvas,o=i&&i.getContext(),s=this._getCanvasCache();if(s&&s.hit){o.save();const l=this.getAbsoluteTransform(n).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(e,n,r,i){var o;const s=n&&n.getContext(),a=this.clipWidth(),l=this.clipHeight(),u=this.clipFunc(),d=typeof a=="number"&&typeof l=="number"||u,p=r===this;if(d){s.save();const h=this.getAbsoluteTransform(r);let w=h.getMatrix();s.transform(w[0],w[1],w[2],w[3],w[4],w[5]),s.beginPath();let _;if(u)_=u.call(this,s,this);else{const A=this.clipX(),v=this.clipY();s.rect(A||0,v||0,a,l)}s.clip.apply(s,_),w=h.copy().invert().getMatrix(),s.transform(w[0],w[1],w[2],w[3],w[4],w[5])}const g=!p&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";g&&(s.save(),s._applyGlobalCompositeOperation(this)),(o=this.children)===null||o===void 0||o.forEach(function(h){h[e](n,r,i)}),g&&s.restore(),d&&s.restore()}getClientRect(e={}){var n;const r=e.skipTransform,i=e.relativeTo;let o,s,a,l,u={x:1/0,y:1/0,width:0,height:0};const d=this;(n=this.children)===null||n===void 0||n.forEach(function(h){if(!h.visible())return;const w=h.getClientRect({relativeTo:d,skipShadow:e.skipShadow,skipStroke:e.skipStroke});w.width===0&&w.height===0||(o===void 0?(o=w.x,s=w.y,a=w.x+w.width,l=w.y+w.height):(o=Math.min(o,w.x),s=Math.min(s,w.y),a=Math.max(a,w.x+w.width),l=Math.max(l,w.y+w.height)))});const p=this.find("Shape");let g=!1;for(let h=0;h<p.length;h++)if(p[h]._isVisible(this)){g=!0;break}return g&&o!==void 0?u={x:o,y:s,width:a-o,height:l-s}:u={x:0,y:0,width:0,height:0},r?u:this._transformedRect(u,i)}}Oa.Container=Ra;bc.Factory.addComponentsGetterSetter(Ra,"clip",["x","y","width","height"]);bc.Factory.addGetterSetter(Ra,"clipX",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Ra,"clipY",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Ra,"clipWidth",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Ra,"clipHeight",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Ra,"clipFunc");var X8={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getCapturedShape=kk;Vs.createEvent=Mg;Vs.hasPointerCapture=Ek;Vs.setPointerCapture=Tk;Vs.releaseCapture=Q8;const Lk=$e,ah=new Map,$8=Lk.Konva._global.PointerEvent!==void 0;function kk(t){return ah.get(t)}function Mg(t){return{evt:t,pointerId:t.pointerId}}function Ek(t,e){return ah.get(t)===e}function Tk(t,e){Q8(t),e.getStage()&&(ah.set(t,e),$8&&e._fire("gotpointercapture",Mg(new PointerEvent("gotpointercapture"))))}function Q8(t,e){const n=ah.get(t);if(!n)return;const r=n.getStage();r&&r.content,ah.delete(t),$8&&n._fire("lostpointercapture",Mg(new PointerEvent("lostpointercapture")))}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const e=en,n=at,r=Oa,i=$e,o=ji,s=A1,a=$e,l=Vs,u="Stage",d="string",p="px",g="mouseout",h="mouseleave",w="mouseover",_="mouseenter",A="mousemove",v="mousedown",S="mouseup",y="pointermove",N="pointerdown",L="pointerup",R="pointercancel",D="lostpointercapture",k="pointerout",z="pointerleave",T="pointerover",P="pointerenter",E="contextmenu",W="touchstart",B="touchend",Q="touchmove",ee="touchcancel",se="wheel",K=5,te=[[_,"_pointerenter"],[v,"_pointerdown"],[A,"_pointermove"],[S,"_pointerup"],[h,"_pointerleave"],[W,"_pointerdown"],[Q,"_pointermove"],[B,"_pointerup"],[ee,"_pointercancel"],[w,"_pointerover"],[se,"_wheel"],[E,"_contextmenu"],[N,"_pointerdown"],[y,"_pointermove"],[L,"_pointerup"],[R,"_pointercancel"],[D,"_lostpointercapture"]],X={mouse:{[k]:g,[z]:h,[T]:w,[P]:_,[y]:A,[N]:v,[L]:S,[R]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[k]:"touchout",[z]:"touchleave",[T]:"touchover",[P]:"touchenter",[y]:Q,[N]:W,[L]:B,[R]:ee,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[k]:k,[z]:z,[T]:T,[P]:P,[y]:y,[N]:N,[L]:L,[R]:R,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},de=ie=>ie.indexOf("pointer")>=0?"pointer":ie.indexOf("touch")>=0?"touch":"mouse",j=ie=>{const q=de(ie);if(q==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(q==="touch")return X.touch;if(q==="mouse")return X.mouse};function G(ie={}){return(ie.clipFunc||ie.clipWidth||ie.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ie}const H="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";t.stages=[];class ne extends r.Container{constructor(q){super(G(q)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{G(this.attrs)}),this._checkVisibility()}_validateAdd(q){const Z=q.getType()==="Layer",ce=q.getType()==="FastLayer";Z||ce||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const q=this.visible()?"":"none";this.content.style.display=q}setContainer(q){if(typeof q===d){if(q.charAt(0)==="."){const ce=q.slice(1);q=document.getElementsByClassName(ce)[0]}else{var Z;q.charAt(0)!=="#"?Z=q:Z=q.slice(1),q=document.getElementById(Z)}if(!q)throw"Can not find container in document with id "+Z}return this._setAttr("container",q),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),q.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){let q=this.children,Z=q.length,ce;for(ce=0;ce<Z;ce++)q[ce].clear();return this}clone(q){return q||(q={}),q.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,q)}destroy(){super.destroy();const q=this.content;q&&e.Util._isInDocument(q)&&this.container().removeChild(q);const Z=t.stages.indexOf(this);return Z>-1&&t.stages.splice(Z,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const q=this._pointerPositions[0]||this._changedPointerPositions[0];return q?{x:q.x,y:q.y}:(e.Util.warn(H),null)}_getPointerById(q){return this._pointerPositions.find(Z=>Z.id===q)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(q){q=q||{},q.x=q.x||0,q.y=q.y||0,q.width=q.width||this.width(),q.height=q.height||this.height();const Z=new o.SceneCanvas({width:q.width,height:q.height,pixelRatio:q.pixelRatio||1}),ce=Z.getContext()._context,xe=this.children;return(q.x||q.y)&&ce.translate(-1*q.x,-1*q.y),xe.forEach(function(we){if(!we.isVisible())return;const Ce=we._toKonvaCanvas(q);ce.drawImage(Ce._canvas,q.x,q.y,Ce.getWidth()/Ce.getPixelRatio(),Ce.getHeight()/Ce.getPixelRatio())}),Z}getIntersection(q){if(!q)return null;let Z=this.children,ce=Z.length,xe=ce-1,we;for(we=xe;we>=0;we--){const Ce=Z[we].getIntersection(q);if(Ce)return Ce}return null}_resizeDOM(){const q=this.width(),Z=this.height();this.content&&(this.content.style.width=q+p,this.content.style.height=Z+p),this.bufferCanvas.setSize(q,Z),this.bufferHitCanvas.setSize(q,Z),this.children.forEach(ce=>{ce.setSize({width:q,height:Z}),ce.draw()})}add(q,...Z){if(arguments.length>1){for(let xe=0;xe<arguments.length;xe++)this.add(arguments[xe]);return this}super.add(q);const ce=this.children.length;return ce>K&&e.Util.warn("The stage has "+ce+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),q.setSize({width:this.width(),height:this.height()}),q.draw(),i.Konva.isBrowser&&this.content.appendChild(q.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(q){return l.hasPointerCapture(q,this)}setPointerCapture(q){l.setPointerCapture(q,this)}releaseCapture(q){l.releaseCapture(q,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&te.forEach(([q,Z])=>{this.content.addEventListener(q,ce=>{this[Z](ce)},{passive:!1})})}_pointerenter(q){this.setPointersPositions(q);const Z=j(q.type);Z&&this._fire(Z.pointerenter,{evt:q,target:this,currentTarget:this})}_pointerover(q){this.setPointersPositions(q);const Z=j(q.type);Z&&this._fire(Z.pointerover,{evt:q,target:this,currentTarget:this})}_getTargetShape(q){let Z=this[q+"targetShape"];return Z&&!Z.getStage()&&(Z=null),Z}_pointerleave(q){const Z=j(q.type),ce=de(q.type);if(!Z)return;this.setPointersPositions(q);const xe=this._getTargetShape(ce),we=!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled;xe&&we?(xe._fireAndBubble(Z.pointerout,{evt:q}),xe._fireAndBubble(Z.pointerleave,{evt:q}),this._fire(Z.pointerleave,{evt:q,target:this,currentTarget:this}),this[ce+"targetShape"]=null):we&&(this._fire(Z.pointerleave,{evt:q,target:this,currentTarget:this}),this._fire(Z.pointerout,{evt:q,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(q){const Z=j(q.type),ce=de(q.type);if(!Z)return;this.setPointersPositions(q);let xe=!1;this._changedPointerPositions.forEach(we=>{const Ce=this.getIntersection(we);if(s.DD.justDragged=!1,i.Konva["_"+ce+"ListenClick"]=!0,!Ce||!Ce.isListening()){this[ce+"ClickStartShape"]=void 0;return}i.Konva.capturePointerEventsEnabled&&Ce.setPointerCapture(we.id),this[ce+"ClickStartShape"]=Ce,Ce._fireAndBubble(Z.pointerdown,{evt:q,pointerId:we.id}),xe=!0;const ke=q.type.indexOf("touch")>=0;Ce.preventDefault()&&q.cancelable&&ke&&q.preventDefault()}),xe||this._fire(Z.pointerdown,{evt:q,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(q){const Z=j(q.type),ce=de(q.type);if(!Z||(i.Konva.isDragging()&&s.DD.node.preventDefault()&&q.cancelable&&q.preventDefault(),this.setPointersPositions(q),!(!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled)))return;const we={};let Ce=!1;const ke=this._getTargetShape(ce);this._changedPointerPositions.forEach(ze=>{const me=l.getCapturedShape(ze.id)||this.getIntersection(ze),J=ze.id,Ve={evt:q,pointerId:J},Be=ke!==me;if(Be&&ke&&(ke._fireAndBubble(Z.pointerout,{...Ve},me),ke._fireAndBubble(Z.pointerleave,{...Ve},me)),me){if(we[me._id])return;we[me._id]=!0}me&&me.isListening()?(Ce=!0,Be&&(me._fireAndBubble(Z.pointerover,{...Ve},ke),me._fireAndBubble(Z.pointerenter,{...Ve},ke),this[ce+"targetShape"]=me),me._fireAndBubble(Z.pointermove,{...Ve})):ke&&(this._fire(Z.pointerover,{evt:q,target:this,currentTarget:this,pointerId:J}),this[ce+"targetShape"]=null)}),Ce||this._fire(Z.pointermove,{evt:q,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(q){const Z=j(q.type),ce=de(q.type);if(!Z)return;this.setPointersPositions(q);const xe=this[ce+"ClickStartShape"],we=this[ce+"ClickEndShape"],Ce={};let ke=!1;this._changedPointerPositions.forEach(ze=>{const me=l.getCapturedShape(ze.id)||this.getIntersection(ze);if(me){if(me.releaseCapture(ze.id),Ce[me._id])return;Ce[me._id]=!0}const J=ze.id,Ve={evt:q,pointerId:J};let Be=!1;i.Konva["_"+ce+"InDblClickWindow"]?(Be=!0,clearTimeout(this[ce+"DblTimeout"])):s.DD.justDragged||(i.Konva["_"+ce+"InDblClickWindow"]=!0,clearTimeout(this[ce+"DblTimeout"])),this[ce+"DblTimeout"]=setTimeout(function(){i.Konva["_"+ce+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),me&&me.isListening()?(ke=!0,this[ce+"ClickEndShape"]=me,me._fireAndBubble(Z.pointerup,{...Ve}),i.Konva["_"+ce+"ListenClick"]&&xe&&xe===me&&(me._fireAndBubble(Z.pointerclick,{...Ve}),Be&&we&&we===me&&me._fireAndBubble(Z.pointerdblclick,{...Ve}))):(this[ce+"ClickEndShape"]=null,i.Konva["_"+ce+"ListenClick"]&&this._fire(Z.pointerclick,{evt:q,target:this,currentTarget:this,pointerId:J}),Be&&this._fire(Z.pointerdblclick,{evt:q,target:this,currentTarget:this,pointerId:J}))}),ke||this._fire(Z.pointerup,{evt:q,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+ce+"ListenClick"]=!1,q.cancelable&&ce!=="touch"&&q.preventDefault()}_contextmenu(q){this.setPointersPositions(q);const Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(E,{evt:q}):this._fire(E,{evt:q,target:this,currentTarget:this})}_wheel(q){this.setPointersPositions(q);const Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(se,{evt:q}):this._fire(se,{evt:q,target:this,currentTarget:this})}_pointercancel(q){this.setPointersPositions(q);const Z=l.getCapturedShape(q.pointerId)||this.getIntersection(this.getPointerPosition());Z&&Z._fireAndBubble(L,l.createEvent(q)),l.releaseCapture(q.pointerId)}_lostpointercapture(q){l.releaseCapture(q.pointerId)}setPointersPositions(q){let Z=this._getContentPosition(),ce=null,xe=null;q=q||window.event,q.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(q.touches,we=>{this._pointerPositions.push({id:we.identifier,x:(we.clientX-Z.left)/Z.scaleX,y:(we.clientY-Z.top)/Z.scaleY})}),Array.prototype.forEach.call(q.changedTouches||q.touches,we=>{this._changedPointerPositions.push({id:we.identifier,x:(we.clientX-Z.left)/Z.scaleX,y:(we.clientY-Z.top)/Z.scaleY})})):(ce=(q.clientX-Z.left)/Z.scaleX,xe=(q.clientY-Z.top)/Z.scaleY,this.pointerPos={x:ce,y:xe},this._pointerPositions=[{x:ce,y:xe,id:e.Util._getFirstPointerId(q)}],this._changedPointerPositions=[{x:ce,y:xe,id:e.Util._getFirstPointerId(q)}])}_setPointerPosition(q){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(q)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const q=this.content.getBoundingClientRect();return{top:q.top,left:q.left,scaleX:q.width/this.content.clientWidth||1,scaleY:q.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!i.Konva.isBrowser)return;const q=this.container();if(!q)throw"Stage has no container. A container is required.";q.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),q.appendChild(this.content),this._resizeDOM()}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(q){q.batchDraw()}),this}}t.Stage=ne,ne.prototype.nodeType=u,(0,a._registerNode)(ne),n.Factory.addGetterSetter(ne,"container"),i.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{t.stages.forEach(ie=>{ie.batchDraw()})})})(X8);var wh={},jn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=$e,n=en,r=at,i=Yt,o=Xe,s=$e,a=Vs,l="hasShadow",u="shadowRGBA",d="patternImage",p="linearGradient",g="radialGradient";let h;function w(){return h||(h=n.Util.createCanvasElement().getContext("2d"),h)}t.shapes={};function _(z){const T=this.attrs.fillRule;T?z.fill(T):z.fill()}function A(z){z.stroke()}function v(z){const T=this.attrs.fillRule;T?z.fill(T):z.fill()}function S(z){z.stroke()}function y(){this._clearCache(l)}function N(){this._clearCache(u)}function L(){this._clearCache(d)}function R(){this._clearCache(p)}function D(){this._clearCache(g)}class k extends i.Node{constructor(T){super(T);let P;for(;P=n.Util.getRandomColor(),!(P&&!(P in t.shapes)););this.colorKey=P,t.shapes[P]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(l,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(d,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const P=w().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(P&&P.setTransform){const E=new n.Transform;E.translate(this.fillPatternX(),this.fillPatternY()),E.rotate(e.Konva.getAngle(this.fillPatternRotation())),E.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),E.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const W=E.getMatrix(),B=typeof DOMMatrix>"u"?{a:W[0],b:W[1],c:W[2],d:W[3],e:W[4],f:W[5]}:new DOMMatrix(W);P.setTransform(B)}return P}}_getLinearGradient(){return this._getCache(p,this.__getLinearGradient)}__getLinearGradient(){const T=this.fillLinearGradientColorStops();if(T){const P=w(),E=this.fillLinearGradientStartPoint(),W=this.fillLinearGradientEndPoint(),B=P.createLinearGradient(E.x,E.y,W.x,W.y);for(let Q=0;Q<T.length;Q+=2)B.addColorStop(T[Q],T[Q+1]);return B}}_getRadialGradient(){return this._getCache(g,this.__getRadialGradient)}__getRadialGradient(){const T=this.fillRadialGradientColorStops();if(T){const P=w(),E=this.fillRadialGradientStartPoint(),W=this.fillRadialGradientEndPoint(),B=P.createRadialGradient(E.x,E.y,this.fillRadialGradientStartRadius(),W.x,W.y,this.fillRadialGradientEndRadius());for(let Q=0;Q<T.length;Q+=2)B.addColorStop(T[Q],T[Q+1]);return B}}getShadowRGBA(){return this._getCache(u,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const T=n.Util.colorToRGBA(this.shadowColor());if(T)return"rgba("+T.r+","+T.g+","+T.b+","+T.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const T=this.hitStrokeWidth();return T==="auto"?this.hasStroke():this.strokeEnabled()&&!!T}intersects(T){const P=this.getStage();if(!P)return!1;const E=P.bufferHitCanvas;return E.getContext().clear(),this.drawHit(E,void 0,!0),E.context.getImageData(Math.round(T.x),Math.round(T.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(T){var P;if(!((P=this.attrs.perfectDrawEnabled)!==null&&P!==void 0?P:!0))return!1;const W=T||this.hasFill(),B=this.hasStroke(),Q=this.getAbsoluteOpacity()!==1;if(W&&B&&Q)return!0;const ee=this.hasShadow(),se=this.shadowForStrokeEnabled();return!!(W&&B&&ee&&se)}setStrokeHitEnabled(T){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),T?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const T=this.size();return{x:this._centroid?-T.width/2:0,y:this._centroid?-T.height/2:0,width:T.width,height:T.height}}getClientRect(T={}){let P=!1,E=this.getParent();for(;E;){if(E.isCached()){P=!0;break}E=E.getParent()}const W=T.skipTransform,B=T.relativeTo||P&&this.getStage()||void 0,Q=this.getSelfRect(),se=!T.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,K=Q.width+se,te=Q.height+se,X=!T.skipShadow&&this.hasShadow(),de=X?this.shadowOffsetX():0,j=X?this.shadowOffsetY():0,G=K+Math.abs(de),H=te+Math.abs(j),ne=X&&this.shadowBlur()||0,ie=G+ne*2,q=H+ne*2,Z={width:ie,height:q,x:-(se/2+ne)+Math.min(de,0)+Q.x,y:-(se/2+ne)+Math.min(j,0)+Q.y};return W?Z:this._transformedRect(Z,B)}drawScene(T,P,E){const W=this.getLayer();let B=T||W.getCanvas(),Q=B.getContext(),ee=this._getCanvasCache(),se=this.getSceneFunc(),K=this.hasShadow(),te,X;const de=B.isCache,j=P===this;if(!this.isVisible()&&!j)return this;if(ee){Q.save();const H=this.getAbsoluteTransform(P).getMatrix();return Q.transform(H[0],H[1],H[2],H[3],H[4],H[5]),this._drawCachedSceneCanvas(Q),Q.restore(),this}if(!se)return this;if(Q.save(),this._useBufferCanvas()&&!de){te=this.getStage();const H=E||te.bufferCanvas;X=H.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var G=this.getAbsoluteTransform(P).getMatrix();X.transform(G[0],G[1],G[2],G[3],G[4],G[5]),se.call(this,X,this),X.restore();const ne=H.pixelRatio;K&&Q._applyShadow(this),Q._applyOpacity(this),Q._applyGlobalCompositeOperation(this),Q.drawImage(H._canvas,0,0,H.width/ne,H.height/ne)}else{if(Q._applyLineJoin(this),!j){var G=this.getAbsoluteTransform(P).getMatrix();Q.transform(G[0],G[1],G[2],G[3],G[4],G[5]),Q._applyOpacity(this),Q._applyGlobalCompositeOperation(this)}K&&Q._applyShadow(this),se.call(this,Q,this)}return Q.restore(),this}drawHit(T,P,E=!1){if(!this.shouldDrawHit(P,E))return this;const W=this.getLayer(),B=T||W.hitCanvas,Q=B&&B.getContext(),ee=this.hitFunc()||this.sceneFunc(),se=this._getCanvasCache(),K=se&&se.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),K){Q.save();const X=this.getAbsoluteTransform(P).getMatrix();return Q.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(Q),Q.restore(),this}if(!ee)return this;if(Q.save(),Q._applyLineJoin(this),!(this===P)){const X=this.getAbsoluteTransform(P).getMatrix();Q.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return ee.call(this,Q,this),Q.restore(),this}drawHitFromCache(T=0){let P=this._getCanvasCache(),E=this._getCachedSceneCanvas(),W=P.hit,B=W.getContext(),Q=W.getWidth(),ee=W.getHeight(),se,K,te,X,de,j;B.clear(),B.drawImage(E._canvas,0,0,Q,ee);try{for(se=B.getImageData(0,0,Q,ee),K=se.data,te=K.length,X=n.Util._hexToRgb(this.colorKey),de=0;de<te;de+=4)j=K[de+3],j>T?(K[de]=X.r,K[de+1]=X.g,K[de+2]=X.b,K[de+3]=255):K[de+3]=0;B.putImageData(se,0,0)}catch(G){n.Util.error("Unable to draw hit graph from cached scene canvas. "+G.message)}return this}hasPointerCapture(T){return a.hasPointerCapture(T,this)}setPointerCapture(T){a.setPointerCapture(T,this)}releaseCapture(T){a.releaseCapture(T,this)}}t.Shape=k,k.prototype._fillFunc=_,k.prototype._strokeFunc=A,k.prototype._fillFuncHit=v,k.prototype._strokeFuncHit=S,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,s._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",y),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",N),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",L),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",R),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",D),r.Factory.addGetterSetter(k,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(k,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"lineJoin"),r.Factory.addGetterSetter(k,"lineCap"),r.Factory.addGetterSetter(k,"sceneFunc"),r.Factory.addGetterSetter(k,"hitFunc"),r.Factory.addGetterSetter(k,"dash"),r.Factory.addGetterSetter(k,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(k,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternImage"),r.Factory.addGetterSetter(k,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(k,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(k,"fillEnabled",!0),r.Factory.addGetterSetter(k,"strokeEnabled",!0),r.Factory.addGetterSetter(k,"shadowEnabled",!0),r.Factory.addGetterSetter(k,"dashEnabled",!0),r.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(k,"fillPriority","color"),r.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(k,"fillPatternRotation",0),r.Factory.addGetterSetter(k,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(jn);Object.defineProperty(wh,"__esModule",{value:!0});wh.Layer=void 0;const xo=en,Up=Oa,Al=Yt,Ig=at,V3=ji,jk=Xe,Mk=jn,Ik=$e,Fk="#",Ok="beforeDraw",Rk="draw",J8=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Bk=J8.length;class _c extends Up.Container{constructor(e){super(e),this.canvas=new V3.SceneCanvas,this.hitCanvas=new V3.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),e<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Al.Node.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Al.Node.prototype.moveUp.call(this))return!1;const n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Al.Node.prototype.moveDown.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Al.Node.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return Al.Node.prototype.remove.call(this),e&&e.parentNode&&xo.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:n}){return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&xo.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e=e||{},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),Al.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){xo.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){xo.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,xo.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let n=1,r=!1;for(;;){for(let i=0;i<Bk;i++){const o=J8[i],s=this._getIntersection({x:e.x+o.x*n,y:e.y+o.y*n}),a=s.shape;if(a)return a;if(r=!!s.antialiased,!s.antialiased)break}if(r)n+=1;else return null}}_getIntersection(e){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(e.x*n),Math.round(e.y*n),1,1).data,i=r[3];if(i===255){const o=xo.Util._rgbToHex(r[0],r[1],r[2]),s=Mk.shapes[Fk+o];return s?{shape:s}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(e,n){const r=this.getLayer(),i=e||r&&r.getCanvas();return this._fire(Ok,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),Up.Container.prototype.drawScene.call(this,i,n),this._fire(Rk,{node:this}),this}drawHit(e,n){const r=this.getLayer(),i=e||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),Up.Container.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){xo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return xo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return xo.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}wh.Layer=_c;_c.prototype.nodeType="Layer";(0,Ik._registerNode)(_c);Ig.Factory.addGetterSetter(_c,"imageSmoothingEnabled",!0);Ig.Factory.addGetterSetter(_c,"clearBeforeDraw",!0);Ig.Factory.addGetterSetter(_c,"hitGraphEnabled",!0,(0,jk.getBooleanValidator)());var C1={};Object.defineProperty(C1,"__esModule",{value:!0});C1.FastLayer=void 0;const Dk=en,Uk=wh,zk=$e;class Fg extends Uk.Layer{constructor(e){super(e),this.listening(!1),Dk.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}C1.FastLayer=Fg;Fg.prototype.nodeType="FastLayer";(0,zk._registerNode)(Fg);var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.Group=void 0;const Gk=en,qk=Oa,Vk=$e;class Og extends qk.Container{_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&Gk.Util.throw("You may only add groups and shapes to groups.")}}Sc.Group=Og;Og.prototype.nodeType="Group";(0,Vk._registerNode)(Og);var xc={};Object.defineProperty(xc,"__esModule",{value:!0});xc.Animation=void 0;const zp=$e,W3=en,Gp=function(){return zp.glob.performance&&zp.glob.performance.now?function(){return zp.glob.performance.now()}:function(){return new Date().getTime()}}();class eo{constructor(e,n){this.id=eo.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Gp(),frameRate:0},this.func=e,this.setLayers(n)}setLayers(e){let n=[];return e&&(n=Array.isArray(e)?e:[e]),this.layers=n,this}getLayers(){return this.layers}addLayer(e){const n=this.layers,r=n.length;for(let i=0;i<r;i++)if(n[i]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const n=eo.animations,r=n.length;for(let i=0;i<r;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Gp(),eo._addAnimation(this),this}stop(){return eo._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const n=e.id,r=this.animations,i=r.length;for(let o=0;o<i;o++)if(r[o].id===n){this.animations.splice(o,1);break}}static _runFrames(){const e={},n=this.animations;for(let r=0;r<n.length;r++){const i=n[r],o=i.layers,s=i.func;i._updateFrameObject(Gp());const a=o.length;let l;if(s?l=s.call(i,i.frame)!==!1:l=!0,!!l)for(let u=0;u<a;u++){const d=o[u];d._id!==void 0&&(e[d._id]=d)}}for(const r in e)e.hasOwnProperty(r)&&e[r].batchDraw()}static _animationLoop(){const e=eo;e.animations.length?(e._runFrames(),W3.Util.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,W3.Util.requestAnimFrame(this._animationLoop))}}xc.Animation=eo;eo.animations=[];eo.animIdCounter=0;eo.animRunning=!1;var Z8={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const e=en,n=xc,r=Yt,i=$e;let o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},s=1,a=2,l=3,u=0,d=["fill","stroke","shadowColor"];class p{constructor(w,_,A,v,S,y,N){this.prop=w,this.propFunc=_,this.begin=v,this._pos=v,this.duration=y,this._change=0,this.prevPos=0,this.yoyo=N,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=A,this._change=S-this.begin,this.pause()}fire(w){const _=this[w];_&&_()}setTime(w){w>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():w<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=w,this.update())}getTime(){return this._time}setPosition(w){this.prevPos=this._pos,this.propFunc(w),this._pos=w}getPosition(w){return w===void 0&&(w=this._time),this.func(w,this.begin,this._change,this.duration)}play(){this.state=a,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=l,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(w){this.pause(),this._time=w,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const w=this.getTimer()-this._startTime;this.state===a?this.setTime(w):this.state===l&&this.setTime(this.duration-w)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class g{constructor(w){let _=this,A=w.node,v=A._id,S,y=w.easing||t.Easings.Linear,N=!!w.yoyo,L;typeof w.duration>"u"?S=.3:w.duration===0?S=.001:S=w.duration,this.node=A,this._id=u++;const R=A.getLayer()||(A instanceof i.Konva.Stage?A.getLayers():null);R||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){_.tween.onEnterFrame()},R),this.tween=new p(L,function(D){_._tweenFunc(D)},y,0,1,S*1e3,N),this._addListeners(),g.attrs[v]||(g.attrs[v]={}),g.attrs[v][this._id]||(g.attrs[v][this._id]={}),g.tweens[v]||(g.tweens[v]={});for(L in w)o[L]===void 0&&this._addAttr(L,w[L]);this.reset(),this.onFinish=w.onFinish,this.onReset=w.onReset,this.onUpdate=w.onUpdate}_addAttr(w,_){let A=this.node,v=A._id,S,y,N,L,R,D,k,z;if(N=g.tweens[v][w],N&&delete g.attrs[v][N][w],S=A.getAttr(w),e.Util._isArray(_))if(y=[],R=Math.max(_.length,S.length),w==="points"&&_.length!==S.length&&(_.length>S.length?(k=S,S=e.Util._prepareArrayForTween(S,_,A.closed())):(D=_,_=e.Util._prepareArrayForTween(_,S,A.closed()))),w.indexOf("fill")===0)for(L=0;L<R;L++)if(L%2===0)y.push(_[L]-S[L]);else{const T=e.Util.colorToRGBA(S[L]);z=e.Util.colorToRGBA(_[L]),S[L]=T,y.push({r:z.r-T.r,g:z.g-T.g,b:z.b-T.b,a:z.a-T.a})}else for(L=0;L<R;L++)y.push(_[L]-S[L]);else d.indexOf(w)!==-1?(S=e.Util.colorToRGBA(S),z=e.Util.colorToRGBA(_),y={r:z.r-S.r,g:z.g-S.g,b:z.b-S.b,a:z.a-S.a}):y=_-S;g.attrs[v][this._id][w]={start:S,diff:y,end:_,trueEnd:D,trueStart:k},g.tweens[v][w]=this._id}_tweenFunc(w){let _=this.node,A=g.attrs[_._id][this._id],v,S,y,N,L,R,D,k;for(v in A){if(S=A[v],y=S.start,N=S.diff,k=S.end,e.Util._isArray(y))if(L=[],D=Math.max(y.length,k.length),v.indexOf("fill")===0)for(R=0;R<D;R++)R%2===0?L.push((y[R]||0)+N[R]*w):L.push("rgba("+Math.round(y[R].r+N[R].r*w)+","+Math.round(y[R].g+N[R].g*w)+","+Math.round(y[R].b+N[R].b*w)+","+(y[R].a+N[R].a*w)+")");else for(R=0;R<D;R++)L.push((y[R]||0)+N[R]*w);else d.indexOf(v)!==-1?L="rgba("+Math.round(y.r+N.r*w)+","+Math.round(y.g+N.g*w)+","+Math.round(y.b+N.b*w)+","+(y.a+N.a*w)+")":L=y+N*w;_.setAttr(v,L)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const w=this.node,_=g.attrs[w._id][this._id];_.points&&_.points.trueEnd&&w.setAttr("points",_.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const w=this.node,_=g.attrs[w._id][this._id];_.points&&_.points.trueStart&&w.points(_.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(w){return this.tween.seek(w*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){let w=this.node._id,_=this._id,A=g.tweens[w],v;this.pause();for(v in A)delete g.tweens[w][v];delete g.attrs[w][_]}}t.Tween=g,g.attrs={},g.tweens={},r.Node.prototype.to=function(h){const w=h.onFinish;h.node=this,h.onFinish=function(){this.destroy(),w&&w()},new g(h).play()},t.Easings={BackEaseIn(h,w,_,A){return _*(h/=A)*h*((1.70158+1)*h-1.70158)+w},BackEaseOut(h,w,_,A){return _*((h=h/A-1)*h*((1.70158+1)*h+1.70158)+1)+w},BackEaseInOut(h,w,_,A){let v=1.70158;return(h/=A/2)<1?_/2*(h*h*(((v*=1.525)+1)*h-v))+w:_/2*((h-=2)*h*(((v*=1.525)+1)*h+v)+2)+w},ElasticEaseIn(h,w,_,A,v,S){let y=0;return h===0?w:(h/=A)===1?w+_:(S||(S=A*.3),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),-(v*Math.pow(2,10*(h-=1))*Math.sin((h*A-y)*(2*Math.PI)/S))+w)},ElasticEaseOut(h,w,_,A,v,S){let y=0;return h===0?w:(h/=A)===1?w+_:(S||(S=A*.3),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),v*Math.pow(2,-10*h)*Math.sin((h*A-y)*(2*Math.PI)/S)+_+w)},ElasticEaseInOut(h,w,_,A,v,S){let y=0;return h===0?w:(h/=A/2)===2?w+_:(S||(S=A*(.3*1.5)),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),h<1?-.5*(v*Math.pow(2,10*(h-=1))*Math.sin((h*A-y)*(2*Math.PI)/S))+w:v*Math.pow(2,-10*(h-=1))*Math.sin((h*A-y)*(2*Math.PI)/S)*.5+_+w)},BounceEaseOut(h,w,_,A){return(h/=A)<1/2.75?_*(7.5625*h*h)+w:h<2/2.75?_*(7.5625*(h-=1.5/2.75)*h+.75)+w:h<2.5/2.75?_*(7.5625*(h-=2.25/2.75)*h+.9375)+w:_*(7.5625*(h-=2.625/2.75)*h+.984375)+w},BounceEaseIn(h,w,_,A){return _-t.Easings.BounceEaseOut(A-h,0,_,A)+w},BounceEaseInOut(h,w,_,A){return h<A/2?t.Easings.BounceEaseIn(h*2,0,_,A)*.5+w:t.Easings.BounceEaseOut(h*2-A,0,_,A)*.5+_*.5+w},EaseIn(h,w,_,A){return _*(h/=A)*h+w},EaseOut(h,w,_,A){return-_*(h/=A)*(h-2)+w},EaseInOut(h,w,_,A){return(h/=A/2)<1?_/2*h*h+w:-_/2*(--h*(h-2)-1)+w},StrongEaseIn(h,w,_,A){return _*(h/=A)*h*h*h*h+w},StrongEaseOut(h,w,_,A){return _*((h=h/A-1)*h*h*h*h+1)+w},StrongEaseInOut(h,w,_,A){return(h/=A/2)<1?_/2*h*h*h*h*h+w:_/2*((h-=2)*h*h*h*h+2)+w},Linear(h,w,_,A){return _*h/A+w}}})(Z8);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const e=$e,n=en,r=Yt,i=Oa,o=X8,s=wh,a=C1,l=Sc,u=A1,d=jn,p=xc,g=Z8,h=jo,w=ji;t.Konva=n.Util._assign(e.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:i.Container,Stage:o.Stage,stages:o.stages,Layer:s.Layer,FastLayer:a.FastLayer,Group:l.Group,DD:u.DD,Shape:d.Shape,shapes:d.shapes,Animation:p.Animation,Tween:g.Tween,Easings:g.Easings,Context:h.Context,Canvas:w.Canvas}),t.default=t.Konva})(W8);var P1={};Object.defineProperty(P1,"__esModule",{value:!0});P1.Arc=void 0;const L1=at,Wk=jn,H3=$e,k1=Xe,Hk=$e;class Vo extends Wk.Shape{_sceneFunc(e){const n=H3.Konva.getAngle(this.angle()),r=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,n,r),e.arc(0,0,this.innerRadius(),n,0,!r),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=H3.Konva.getAngle(r?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),l=Math.sin(Math.min(i,Math.PI/2)),u=o*(o>0?e:n),d=s*n,p=a*(a>0?e:n),g=l*(l>0?n:e);return{x:u,y:r?-1*g:p,width:d-u,height:g-p}}}P1.Arc=Vo;Vo.prototype._centroid=!0;Vo.prototype.className="Arc";Vo.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Hk._registerNode)(Vo);L1.Factory.addGetterSetter(Vo,"innerRadius",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(Vo,"outerRadius",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(Vo,"angle",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(Vo,"clockwise",!1,(0,k1.getBooleanValidator)());var E1={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});bh.Line=void 0;const T1=at,Yk=$e,Kk=jn,ew=Xe;function p5(t,e,n,r,i,o,s){const a=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=s*a/(a+l),d=s*l/(a+l),p=n-u*(i-t),g=r-u*(o-e),h=n+d*(i-t),w=r+d*(o-e);return[p,g,h,w]}function Y3(t,e){const n=t.length,r=[];for(let i=2;i<n-2;i+=2){const o=p5(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e);isNaN(o[0])||(r.push(o[0]),r.push(o[1]),r.push(t[i]),r.push(t[i+1]),r.push(o[2]),r.push(o[3]))}return r}class Ws extends Kk.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){let n=this.points(),r=n.length,i=this.tension(),o=this.closed(),s=this.bezier(),a,l,u;if(r){if(e.beginPath(),e.moveTo(n[0],n[1]),i!==0&&r>4){for(a=this.getTensionPoints(),l=a.length,u=o?0:4,o||e.quadraticCurveTo(a[0],a[1],a[2],a[3]);u<l-2;)e.bezierCurveTo(a[u++],a[u++],a[u++],a[u++],a[u++],a[u++]);o||e.quadraticCurveTo(a[l-2],a[l-1],n[r-2],n[r-1])}else if(s)for(u=2;u<r;)e.bezierCurveTo(n[u++],n[u++],n[u++],n[u++],n[u++],n[u++]);else for(u=2;u<r;u+=2)e.lineTo(n[u],n[u+1]);o?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():Y3(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),n=e.length,r=this.tension(),i=p5(e[n-2],e[n-1],e[0],e[1],e[2],e[3],r),o=p5(e[n-4],e[n-3],e[n-2],e[n-1],e[0],e[1],r),s=Y3(e,r);return[i[2],i[3]].concat(s).concat([o[0],o[1],e[n-2],e[n-1],o[2],o[3],i[0],i[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:e=this.points();let n=e[0],r=e[0],i=e[1],o=e[1],s,a;for(let l=0;l<e.length/2;l++)s=e[l*2],a=e[l*2+1],n=Math.min(n,s),r=Math.max(r,s),i=Math.min(i,a),o=Math.max(o,a);return{x:n,y:i,width:r-n,height:o-i}}}bh.Line=Ws;Ws.prototype.className="Line";Ws.prototype._attrsAffectingSize=["points","bezier","tension"];(0,Yk._registerNode)(Ws);T1.Factory.addGetterSetter(Ws,"closed",!1);T1.Factory.addGetterSetter(Ws,"bezier",!1);T1.Factory.addGetterSetter(Ws,"tension",0,(0,ew.getNumberValidator)());T1.Factory.addGetterSetter(Ws,"points",[],(0,ew.getNumberArrayValidator)());var Ac={},tw={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],t.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const e=(s,a,l)=>{let u,d;const g=l/2;u=0;for(let h=0;h<20;h++)d=g*t.tValues[20][h]+g,u+=t.cValues[20][h]*r(s,a,d);return g*u};t.getCubicArcLength=e;const n=(s,a,l)=>{l===void 0&&(l=1);const u=s[0]-2*s[1]+s[2],d=a[0]-2*a[1]+a[2],p=2*s[1]-2*s[0],g=2*a[1]-2*a[0],h=4*(u*u+d*d),w=4*(u*p+d*g),_=p*p+g*g;if(h===0)return l*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(a[2]-a[0],2));const A=w/(2*h),v=_/h,S=l+A,y=v-A*A,N=S*S+y>0?Math.sqrt(S*S+y):0,L=A*A+y>0?Math.sqrt(A*A+y):0,R=A+Math.sqrt(A*A+y)!==0?y*Math.log(Math.abs((S+N)/(A+L))):0;return Math.sqrt(h)/2*(S*N-A*L+R)};t.getQuadraticArcLength=n;function r(s,a,l){const u=i(1,l,s),d=i(1,l,a),p=u*u+d*d;return Math.sqrt(p)}const i=(s,a,l)=>{const u=l.length-1;let d,p;if(u===0)return 0;if(s===0){p=0;for(let g=0;g<=u;g++)p+=t.binomialCoefficients[u][g]*Math.pow(1-a,u-g)*Math.pow(a,g)*l[g];return p}else{d=new Array(u);for(let g=0;g<u;g++)d[g]=u*(l[g+1]-l[g]);return i(s-1,a,d)}},o=(s,a,l)=>{let u=1,d=s/a,p=(s-l(d))/a,g=0;for(;u>.001;){const h=l(d+p),w=Math.abs(s-h)/a;if(w<u)u=w,d+=p;else{const _=l(d-p),A=Math.abs(s-_)/a;A<u?(u=A,d-=p):p/=2}if(g++,g>500)break}return d};t.t2length=o})(tw);Object.defineProperty(Ac,"__esModule",{value:!0});Ac.Path=void 0;const Xk=at,$k=jn,Qk=$e,Nl=tw;class kn extends $k.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=kn.parsePathData(this.data()),this.pathLength=kn.getPathLength(this.dataArray)}_sceneFunc(e){const n=this.dataArray;e.beginPath();let r=!1;for(let _=0;_<n.length;_++){const A=n[_].command,v=n[_].points;switch(A){case"L":e.lineTo(v[0],v[1]);break;case"M":e.moveTo(v[0],v[1]);break;case"C":e.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);break;case"Q":e.quadraticCurveTo(v[0],v[1],v[2],v[3]);break;case"A":var i=v[0],o=v[1],s=v[2],a=v[3],l=v[4],u=v[5],d=v[6],p=v[7],g=s>a?s:a,h=s>a?1:s/a,w=s>a?a/s:1;e.translate(i,o),e.rotate(d),e.scale(h,w),e.arc(0,0,g,l,l+u,1-p),e.scale(1/h,1/w),e.rotate(-d),e.translate(-i,-o);break;case"z":r=!0,e.closePath();break}}!r&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach(function(l){if(l.command==="A"){const u=l.points[4],d=l.points[5],p=l.points[4]+d;let g=Math.PI/180;if(Math.abs(u-p)<g&&(g=Math.abs(u-p)),d<0)for(let h=u-g;h>p;h-=g){const w=kn.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],h,0);e.push(w.x,w.y)}else for(let h=u+g;h<p;h+=g){const w=kn.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],h,0);e.push(w.x,w.y)}}else if(l.command==="C")for(let u=0;u<=1;u+=.01){const d=kn.getPointOnCubicBezier(u,l.start.x,l.start.y,l.points[0],l.points[1],l.points[2],l.points[3],l.points[4],l.points[5]);e.push(d.x,d.y)}else e=e.concat(l.points)});let n=e[0],r=e[0],i=e[1],o=e[1],s,a;for(let l=0;l<e.length/2;l++)s=e[l*2],a=e[l*2+1],isNaN(s)||(n=Math.min(n,s),r=Math.max(r,s)),isNaN(a)||(i=Math.min(i,a),o=Math.max(o,a));return{x:n,y:i,width:r-n,height:o-i}}getLength(){return this.pathLength}getPointAtLength(e){return kn.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,n,r,i){return Math.sqrt((r-e)*(r-e)+(i-n)*(i-n))}static getPathLength(e){let n=0;for(let r=0;r<e.length;++r)n+=e[r].pathLength;return n}static getPointAtLengthOfDataArray(e,n){let r,i=0,o=n.length;if(!o)return null;for(;i<o&&e>n[i].pathLength;)e-=n[i].pathLength,++i;if(i===o)return r=n[i-1].points.slice(-2),{x:r[0],y:r[1]};if(e<.01)return r=n[i].points.slice(0,2),{x:r[0],y:r[1]};const s=n[i],a=s.points;switch(s.command){case"L":return kn.getPointOnLine(e,s.start.x,s.start.y,a[0],a[1]);case"C":return kn.getPointOnCubicBezier((0,Nl.t2length)(e,kn.getPathLength(n),_=>(0,Nl.getCubicArcLength)([s.start.x,a[0],a[2],a[4]],[s.start.y,a[1],a[3],a[5]],_)),s.start.x,s.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return kn.getPointOnQuadraticBezier((0,Nl.t2length)(e,kn.getPathLength(n),_=>(0,Nl.getQuadraticArcLength)([s.start.x,a[0],a[2]],[s.start.y,a[1],a[3]],_)),s.start.x,s.start.y,a[0],a[1],a[2],a[3]);case"A":var l=a[0],u=a[1],d=a[2],p=a[3],g=a[4],h=a[5],w=a[6];return g+=h*e/s.pathLength,kn.getPointOnEllipticalArc(l,u,d,p,g,w)}return null}static getPointOnLine(e,n,r,i,o,s,a){s=s??n,a=a??r;const l=this.getLineLength(n,r,i,o);if(l<1e-10)return{x:n,y:r};if(i===n)return{x:s,y:a+(o>r?e:-e)};const u=(o-r)/(i-n),d=Math.sqrt(e*e/(1+u*u))*(i<n?-1:1),p=u*d;if(Math.abs(a-r-u*(s-n))<1e-10)return{x:s+d,y:a+p};const g=((s-n)*(i-n)+(a-r)*(o-r))/(l*l),h=n+g*(i-n),w=r+g*(o-r),_=this.getLineLength(s,a,h,w),A=Math.sqrt(e*e-_*_),v=Math.sqrt(A*A/(1+u*u))*(i<n?-1:1),S=u*v;return{x:h+v,y:w+S}}static getPointOnCubicBezier(e,n,r,i,o,s,a,l,u){function d(A){return A*A*A}function p(A){return 3*A*A*(1-A)}function g(A){return 3*A*(1-A)*(1-A)}function h(A){return(1-A)*(1-A)*(1-A)}const w=l*d(e)+s*p(e)+i*g(e)+n*h(e),_=u*d(e)+a*p(e)+o*g(e)+r*h(e);return{x:w,y:_}}static getPointOnQuadraticBezier(e,n,r,i,o,s,a){function l(h){return h*h}function u(h){return 2*h*(1-h)}function d(h){return(1-h)*(1-h)}const p=s*l(e)+i*u(e)+n*d(e),g=a*l(e)+o*u(e)+r*d(e);return{x:p,y:g}}static getPointOnEllipticalArc(e,n,r,i,o,s){const a=Math.cos(s),l=Math.sin(s),u={x:r*Math.cos(o),y:i*Math.sin(o)};return{x:e+(u.x*a-u.y*l),y:n+(u.x*l+u.y*a)}}static parsePathData(e){if(!e)return[];let n=e;const r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);const o=n.split("|"),s=[],a=[];let l=0,u=0;const d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let p;for(i=1;i<o.length;i++){let k=o[i],z=k.charAt(0);for(k=k.slice(1),a.length=0;p=d.exec(k);)a.push(p[0]);const T=[];for(let P=0,E=a.length;P<E;P++){if(a[P]==="00"){T.push(0,0);continue}const W=parseFloat(a[P]);isNaN(W)?T.push(0):T.push(W)}for(;T.length>0&&!isNaN(T[0]);){let P="",E=[];const W=l,B=u;var g,h,w,_,A,v,S,y,N,L;switch(z){case"l":l+=T.shift(),u+=T.shift(),P="L",E.push(l,u);break;case"L":l=T.shift(),u=T.shift(),E.push(l,u);break;case"m":var R=T.shift(),D=T.shift();if(l+=R,u+=D,P="M",s.length>2&&s[s.length-1].command==="z"){for(let Q=s.length-2;Q>=0;Q--)if(s[Q].command==="M"){l=s[Q].points[0]+R,u=s[Q].points[1]+D;break}}E.push(l,u),z="l";break;case"M":l=T.shift(),u=T.shift(),P="M",E.push(l,u),z="L";break;case"h":l+=T.shift(),P="L",E.push(l,u);break;case"H":l=T.shift(),P="L",E.push(l,u);break;case"v":u+=T.shift(),P="L",E.push(l,u);break;case"V":u=T.shift(),P="L",E.push(l,u);break;case"C":E.push(T.shift(),T.shift(),T.shift(),T.shift()),l=T.shift(),u=T.shift(),E.push(l,u);break;case"c":E.push(l+T.shift(),u+T.shift(),l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="C",E.push(l,u);break;case"S":h=l,w=u,g=s[s.length-1],g.command==="C"&&(h=l+(l-g.points[2]),w=u+(u-g.points[3])),E.push(h,w,T.shift(),T.shift()),l=T.shift(),u=T.shift(),P="C",E.push(l,u);break;case"s":h=l,w=u,g=s[s.length-1],g.command==="C"&&(h=l+(l-g.points[2]),w=u+(u-g.points[3])),E.push(h,w,l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="C",E.push(l,u);break;case"Q":E.push(T.shift(),T.shift()),l=T.shift(),u=T.shift(),E.push(l,u);break;case"q":E.push(l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="Q",E.push(l,u);break;case"T":h=l,w=u,g=s[s.length-1],g.command==="Q"&&(h=l+(l-g.points[0]),w=u+(u-g.points[1])),l=T.shift(),u=T.shift(),P="Q",E.push(h,w,l,u);break;case"t":h=l,w=u,g=s[s.length-1],g.command==="Q"&&(h=l+(l-g.points[0]),w=u+(u-g.points[1])),l+=T.shift(),u+=T.shift(),P="Q",E.push(h,w,l,u);break;case"A":_=T.shift(),A=T.shift(),v=T.shift(),S=T.shift(),y=T.shift(),N=l,L=u,l=T.shift(),u=T.shift(),P="A",E=this.convertEndpointToCenterParameterization(N,L,l,u,S,y,_,A,v);break;case"a":_=T.shift(),A=T.shift(),v=T.shift(),S=T.shift(),y=T.shift(),N=l,L=u,l+=T.shift(),u+=T.shift(),P="A",E=this.convertEndpointToCenterParameterization(N,L,l,u,S,y,_,A,v);break}s.push({command:P||z,points:E,start:{x:W,y:B},pathLength:this.calcLength(W,B,P||z,E)})}(z==="z"||z==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(e,n,r,i){let o,s,a,l;const u=kn;switch(r){case"L":return u.getLineLength(e,n,i[0],i[1]);case"C":return(0,Nl.getCubicArcLength)([e,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return(0,Nl.getQuadraticArcLength)([e,i[0],i[2]],[n,i[1],i[3]],1);case"A":o=0;var d=i[4],p=i[5],g=i[4]+p,h=Math.PI/180;if(Math.abs(d-g)<h&&(h=Math.abs(d-g)),s=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),p<0)for(l=d-h;l>g;l-=h)a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(l=d+h;l<g;l+=h)a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],g,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),o}return 0}static convertEndpointToCenterParameterization(e,n,r,i,o,s,a,l,u){const d=u*(Math.PI/180),p=Math.cos(d)*(e-r)/2+Math.sin(d)*(n-i)/2,g=-1*Math.sin(d)*(e-r)/2+Math.cos(d)*(n-i)/2,h=p*p/(a*a)+g*g/(l*l);h>1&&(a*=Math.sqrt(h),l*=Math.sqrt(h));let w=Math.sqrt((a*a*(l*l)-a*a*(g*g)-l*l*(p*p))/(a*a*(g*g)+l*l*(p*p)));o===s&&(w*=-1),isNaN(w)&&(w=0);const _=w*a*g/l,A=w*-l*p/a,v=(e+r)/2+Math.cos(d)*_-Math.sin(d)*A,S=(n+i)/2+Math.sin(d)*_+Math.cos(d)*A,y=function(T){return Math.sqrt(T[0]*T[0]+T[1]*T[1])},N=function(T,P){return(T[0]*P[0]+T[1]*P[1])/(y(T)*y(P))},L=function(T,P){return(T[0]*P[1]<T[1]*P[0]?-1:1)*Math.acos(N(T,P))},R=L([1,0],[(p-_)/a,(g-A)/l]),D=[(p-_)/a,(g-A)/l],k=[(-1*p-_)/a,(-1*g-A)/l];let z=L(D,k);return N(D,k)<=-1&&(z=Math.PI),N(D,k)>=1&&(z=0),s===0&&z>0&&(z=z-2*Math.PI),s===1&&z<0&&(z=z+2*Math.PI),[v,S,a,l,R,z,d,s]}}Ac.Path=kn;kn.prototype.className="Path";kn.prototype._attrsAffectingSize=["data"];(0,Qk._registerNode)(kn);Xk.Factory.addGetterSetter(kn,"data");Object.defineProperty(E1,"__esModule",{value:!0});E1.Arrow=void 0;const j1=at,Jk=bh,nw=Xe,Zk=$e,K3=Ac;class Ba extends Jk.Line{_sceneFunc(e){super._sceneFunc(e);const n=Math.PI*2,r=this.points();let i=r;const o=this.tension()!==0&&r.length>4;o&&(i=this.getTensionPoints());const s=this.pointerLength(),a=r.length;let l,u;if(o){const g=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],r[a-2],r[a-1]],h=K3.Path.calcLength(i[i.length-4],i[i.length-3],"C",g),w=K3.Path.getPointOnQuadraticBezier(Math.min(1,1-s/h),g[0],g[1],g[2],g[3],g[4],g[5]);l=r[a-2]-w.x,u=r[a-1]-w.y}else l=r[a-2]-r[a-4],u=r[a-1]-r[a-3];const d=(Math.atan2(u,l)+n)%n,p=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(r[a-2],r[a-1]),e.rotate(d),e.moveTo(0,0),e.lineTo(-s,p/2),e.lineTo(-s,-p/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(r[0],r[1]),o?(l=(i[0]+i[2])/2-r[0],u=(i[1]+i[3])/2-r[1]):(l=r[2]-r[0],u=r[3]-r[1]),e.rotate((Math.atan2(-u,-l)+n)%n),e.moveTo(0,0),e.lineTo(-s,p/2),e.lineTo(-s,-p/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),n=this.pointerWidth()/2;return{x:e.x-n,y:e.y-n,width:e.width+n*2,height:e.height+n*2}}}E1.Arrow=Ba;Ba.prototype.className="Arrow";(0,Zk._registerNode)(Ba);j1.Factory.addGetterSetter(Ba,"pointerLength",10,(0,nw.getNumberValidator)());j1.Factory.addGetterSetter(Ba,"pointerWidth",10,(0,nw.getNumberValidator)());j1.Factory.addGetterSetter(Ba,"pointerAtBeginning",!1);j1.Factory.addGetterSetter(Ba,"pointerAtEnding",!0);var M1={};Object.defineProperty(M1,"__esModule",{value:!0});M1.Circle=void 0;const eE=at,tE=jn,nE=Xe,rE=$e;class Nc extends tE.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}M1.Circle=Nc;Nc.prototype._centroid=!0;Nc.prototype.className="Circle";Nc.prototype._attrsAffectingSize=["radius"];(0,rE._registerNode)(Nc);eE.Factory.addGetterSetter(Nc,"radius",0,(0,nE.getNumberValidator)());var I1={};Object.defineProperty(I1,"__esModule",{value:!0});I1.Ellipse=void 0;const Rg=at,iE=jn,rw=Xe,oE=$e;class Hs extends iE.Shape{_sceneFunc(e){const n=this.radiusX(),r=this.radiusY();e.beginPath(),e.save(),n!==r&&e.scale(1,r/n),e.arc(0,0,n,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}I1.Ellipse=Hs;Hs.prototype.className="Ellipse";Hs.prototype._centroid=!0;Hs.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,oE._registerNode)(Hs);Rg.Factory.addComponentsGetterSetter(Hs,"radius",["x","y"]);Rg.Factory.addGetterSetter(Hs,"radiusX",0,(0,rw.getNumberValidator)());Rg.Factory.addGetterSetter(Hs,"radiusY",0,(0,rw.getNumberValidator)());var F1={};Object.defineProperty(F1,"__esModule",{value:!0});F1.Image=void 0;const qp=en,Da=at,sE=jn,aE=$e,_h=Xe;let lo=class iw extends sE.Shape{constructor(e){super(e),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const e=!!this.cornerRadius(),n=this.hasShadow();return e&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(e){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let s;if(o){const a=this.attrs.cropWidth,l=this.attrs.cropHeight;a&&l?s=[o,this.cropX(),this.cropY(),a,l,0,0,n,r]:s=[o,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?qp.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)),o&&(i&&e.clip(),e.drawImage.apply(e,s))}_hitFunc(e){const n=this.width(),r=this.height(),i=this.cornerRadius();e.beginPath(),i?qp.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,n;return(e=this.attrs.width)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var e,n;return(e=this.attrs.height)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(e,n,r=null){const i=qp.Util.createImageElement();i.onload=function(){const o=new iw({image:i});n(o)},i.onerror=r,i.crossOrigin="Anonymous",i.src=e}};F1.Image=lo;lo.prototype.className="Image";(0,aE._registerNode)(lo);Da.Factory.addGetterSetter(lo,"cornerRadius",0,(0,_h.getNumberOrArrayOfNumbersValidator)(4));Da.Factory.addGetterSetter(lo,"image");Da.Factory.addComponentsGetterSetter(lo,"crop",["x","y","width","height"]);Da.Factory.addGetterSetter(lo,"cropX",0,(0,_h.getNumberValidator)());Da.Factory.addGetterSetter(lo,"cropY",0,(0,_h.getNumberValidator)());Da.Factory.addGetterSetter(lo,"cropWidth",0,(0,_h.getNumberValidator)());Da.Factory.addGetterSetter(lo,"cropHeight",0,(0,_h.getNumberValidator)());var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.Tag=uc.Label=void 0;const O1=at,lE=jn,cE=Sc,Bg=Xe,ow=$e,sw=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],uE="Change.konva",hE="none",g5="up",m5="right",v5="down",y5="left",dE=sw.length;class Dg extends cE.Group{constructor(e){super(e),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let n=this,r;const i=function(){n._sync()};for(r=0;r<dE;r++)e.on(sw[r]+uE,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),n=this.getTag(),r,i,o,s,a,l,u;if(e&&n){switch(r=e.width(),i=e.height(),o=n.pointerDirection(),s=n.pointerWidth(),u=n.pointerHeight(),a=0,l=0,o){case g5:a=r/2,l=-1*u;break;case m5:a=r+s,l=i/2;break;case v5:a=r/2,l=i+u;break;case y5:a=-1*s,l=i/2;break}n.setAttrs({x:-1*a,y:-1*l,width:r,height:i}),e.setAttrs({x:-1*a,y:-1*l})}}}uc.Label=Dg;Dg.prototype.className="Label";(0,ow._registerNode)(Dg);class Ua extends lE.Shape{_sceneFunc(e){const n=this.width(),r=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),s=this.pointerHeight(),a=this.cornerRadius();let l=0,u=0,d=0,p=0;typeof a=="number"?l=u=d=p=Math.min(a,n/2,r/2):(l=Math.min(a[0]||0,n/2,r/2),u=Math.min(a[1]||0,n/2,r/2),p=Math.min(a[2]||0,n/2,r/2),d=Math.min(a[3]||0,n/2,r/2)),e.beginPath(),e.moveTo(l,0),i===g5&&(e.lineTo((n-o)/2,0),e.lineTo(n/2,-1*s),e.lineTo((n+o)/2,0)),e.lineTo(n-u,0),e.arc(n-u,u,u,Math.PI*3/2,0,!1),i===m5&&(e.lineTo(n,(r-s)/2),e.lineTo(n+o,r/2),e.lineTo(n,(r+s)/2)),e.lineTo(n,r-p),e.arc(n-p,r-p,p,0,Math.PI/2,!1),i===v5&&(e.lineTo((n+o)/2,r),e.lineTo(n/2,r+s),e.lineTo((n-o)/2,r)),e.lineTo(d,r),e.arc(d,r-d,d,Math.PI/2,Math.PI,!1),i===y5&&(e.lineTo(0,(r+s)/2),e.lineTo(-1*o,r/2),e.lineTo(0,(r-s)/2)),e.lineTo(0,l),e.arc(l,l,l,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),s=this.width(),a=this.height();return o===g5?(n-=i,a+=i):o===v5?a+=i:o===y5?(e-=r*1.5,s+=r):o===m5&&(s+=r*1.5),{x:e,y:n,width:s,height:a}}}uc.Tag=Ua;Ua.prototype.className="Tag";(0,ow._registerNode)(Ua);O1.Factory.addGetterSetter(Ua,"pointerDirection",hE);O1.Factory.addGetterSetter(Ua,"pointerWidth",0,(0,Bg.getNumberValidator)());O1.Factory.addGetterSetter(Ua,"pointerHeight",0,(0,Bg.getNumberValidator)());O1.Factory.addGetterSetter(Ua,"cornerRadius",0,(0,Bg.getNumberOrArrayOfNumbersValidator)(4));var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Rect=void 0;const fE=at,pE=jn,gE=$e,mE=en,vE=Xe;class R1 extends pE.Shape{_sceneFunc(e){const n=this.cornerRadius(),r=this.width(),i=this.height();e.beginPath(),n?mE.Util.drawRoundedRectPath(e,r,i,n):e.rect(0,0,r,i),e.closePath(),e.fillStrokeShape(this)}}Sh.Rect=R1;R1.prototype.className="Rect";(0,gE._registerNode)(R1);fE.Factory.addGetterSetter(R1,"cornerRadius",0,(0,vE.getNumberOrArrayOfNumbersValidator)(4));var B1={};Object.defineProperty(B1,"__esModule",{value:!0});B1.RegularPolygon=void 0;const aw=at,yE=jn,lw=Xe,wE=$e;class za extends yE.Shape{_sceneFunc(e){const n=this._getPoints();e.beginPath(),e.moveTo(n[0].x,n[0].y);for(let r=1;r<n.length;r++)e.lineTo(n[r].x,n[r].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,n=this.attrs.radius||0,r=[];for(let i=0;i<e;i++)r.push({x:n*Math.sin(i*2*Math.PI/e),y:-1*n*Math.cos(i*2*Math.PI/e)});return r}getSelfRect(){const e=this._getPoints();let n=e[0].x,r=e[0].y,i=e[0].x,o=e[0].y;return e.forEach(s=>{n=Math.min(n,s.x),r=Math.max(r,s.x),i=Math.min(i,s.y),o=Math.max(o,s.y)}),{x:n,y:i,width:r-n,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}B1.RegularPolygon=za;za.prototype.className="RegularPolygon";za.prototype._centroid=!0;za.prototype._attrsAffectingSize=["radius"];(0,wE._registerNode)(za);aw.Factory.addGetterSetter(za,"radius",0,(0,lw.getNumberValidator)());aw.Factory.addGetterSetter(za,"sides",0,(0,lw.getNumberValidator)());var D1={};Object.defineProperty(D1,"__esModule",{value:!0});D1.Ring=void 0;const cw=at,bE=jn,uw=Xe,_E=$e,X3=Math.PI*2;class Ga extends bE.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,X3,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),X3,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}D1.Ring=Ga;Ga.prototype.className="Ring";Ga.prototype._centroid=!0;Ga.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,_E._registerNode)(Ga);cw.Factory.addGetterSetter(Ga,"innerRadius",0,(0,uw.getNumberValidator)());cw.Factory.addGetterSetter(Ga,"outerRadius",0,(0,uw.getNumberValidator)());var U1={};Object.defineProperty(U1,"__esModule",{value:!0});U1.Sprite=void 0;const qa=at,SE=jn,xE=xc,hw=Xe,AE=$e;class co extends SE.Shape{constructor(e){super(e),this._updated=!0,this.anim=new xE.Animation(()=>{const n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){const n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],s=this.frameOffsets(),a=o[i+0],l=o[i+1],u=o[i+2],d=o[i+3],p=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,u,d),e.closePath(),e.fillStrokeShape(this)),p)if(s){const g=s[n],h=r*2;e.drawImage(p,a,l,u,d,g[h+0],g[h+1],u,d)}else e.drawImage(p,a,l,u,d,0,0,u,d)}_hitFunc(e){const n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],s=this.frameOffsets(),a=o[i+2],l=o[i+3];if(e.beginPath(),s){const u=s[n],d=r*2;e.rect(u[d+0],u[d+1],a,l)}else e.rect(0,0,a,l);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],o=i.length/4;e<o-1?this.frameIndex(e+1):this.frameIndex(0)}}U1.Sprite=co;co.prototype.className="Sprite";(0,AE._registerNode)(co);qa.Factory.addGetterSetter(co,"animation");qa.Factory.addGetterSetter(co,"animations");qa.Factory.addGetterSetter(co,"frameOffsets");qa.Factory.addGetterSetter(co,"image");qa.Factory.addGetterSetter(co,"frameIndex",0,(0,hw.getNumberValidator)());qa.Factory.addGetterSetter(co,"frameRate",17,(0,hw.getNumberValidator)());qa.Factory.backCompat(co,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});var z1={};Object.defineProperty(z1,"__esModule",{value:!0});z1.Star=void 0;const Ug=at,NE=jn,zg=Xe,CE=$e;class Ys extends NE.Shape{_sceneFunc(e){const n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-r);for(let o=1;o<i*2;o++){const s=o%2===0?r:n,a=s*Math.sin(o*Math.PI/i),l=-1*s*Math.cos(o*Math.PI/i);e.lineTo(a,l)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}z1.Star=Ys;Ys.prototype.className="Star";Ys.prototype._centroid=!0;Ys.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,CE._registerNode)(Ys);Ug.Factory.addGetterSetter(Ys,"numPoints",5,(0,zg.getNumberValidator)());Ug.Factory.addGetterSetter(Ys,"innerRadius",0,(0,zg.getNumberValidator)());Ug.Factory.addGetterSetter(Ys,"outerRadius",0,(0,zg.getNumberValidator)());var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.Text=void 0;Cc.stringToArray=dw;const w5=en,lr=at,PE=jn,Vp=$e,Ks=Xe,LE=$e;function dw(t){return[...t].reduce((e,n,r,i)=>(new RegExp("\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?(?:\\u200D\\p{Emoji_Presentation})+","u").test(n)?e.push(n):new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(i[r+1]||""))?e.push(n+i[r+1]):r>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?e[e.length-1]+=n:e.push(n),e),[])}const Cl="auto",kE="center",fw="inherit",mu="justify",EE="Change.konva",TE="2d",$3="-",pw="left",jE="text",ME="Text",IE="top",FE="bottom",Q3="middle",gw="normal",OE="px ",Od=" ",RE="right",J3="rtl",BE="word",DE="char",Z3="none",Wp="…",mw=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],UE=mw.length;function zE(t){return t.split(",").map(e=>{e=e.trim();const n=e.indexOf(" ")>=0,r=e.indexOf('"')>=0||e.indexOf("'")>=0;return n&&!r&&(e=`"${e}"`),e}).join(", ")}let Rd;function Hp(){return Rd||(Rd=w5.Util.createCanvasElement().getContext(TE),Rd)}function GE(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function qE(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function VE(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}class cn extends PE.Shape{constructor(e){super(VE(e)),this._partialTextX=0,this._partialTextY=0;for(let n=0;n<UE;n++)this.on(mw[n]+EE,this._setTextData);this._setTextData()}_sceneFunc(e){const n=this.textArr,r=n.length;if(!this.text())return;let i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,a=this.verticalAlign(),l=this.direction(),u=0,d=this.align(),p=this.getWidth(),g=this.letterSpacing(),h=this.fill(),w=this.textDecoration(),_=w.indexOf("underline")!==-1,A=w.indexOf("line-through")!==-1,v;l=l===fw?e.direction:l;let S=s/2,y=Q3;if(Vp.Konva._fixTextRendering){const W=this.measureSize("M");y="alphabetic",S=(W.fontBoundingBoxAscent-W.fontBoundingBoxDescent)/2+s/2}var N=0,L=0;for(l===J3&&e.setAttr("direction",l),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",y),e.setAttr("textAlign",pw),a===Q3?u=(this.getHeight()-r*s-i*2)/2:a===FE&&(u=this.getHeight()-r*s-i*2),e.translate(i,u+i),v=0;v<r;v++){var N=0,L=0,R=n[v],D=R.text,k=R.width,z=R.lastInParagraph,T,P,E;if(e.save(),d===RE?N+=p-k-i*2:d===kE&&(N+=(p-k-i*2)/2),_){e.save(),e.beginPath();const Q=Vp.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2),ee=N,se=S+L+Q;e.moveTo(ee,se),T=D.split(" ").length-1,P=T===0,E=d===mu&&!z?p-i*2:k,e.lineTo(ee+Math.round(E),se),e.lineWidth=o/15;const K=this._getLinearGradient();e.strokeStyle=K||h,e.stroke(),e.restore()}if(A){e.save(),e.beginPath();const Q=Vp.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(N,S+L+Q),T=D.split(" ").length-1,P=T===0,E=d===mu&&z&&!P?p-i*2:k,e.lineTo(N+Math.round(E),S+L+Q),e.lineWidth=o/15;const ee=this._getLinearGradient();e.strokeStyle=ee||h,e.stroke(),e.restore()}if(l!==J3&&(g!==0||d===mu)){T=D.split(" ").length-1;const Q=dw(D);for(let ee=0;ee<Q.length;ee++){const se=Q[ee];se===" "&&!z&&d===mu&&(N+=(p-i*2-k)/T),this._partialTextX=N,this._partialTextY=S+L,this._partialText=se,e.fillStrokeShape(this),N+=this.measureSize(se).width+g}}else g!==0&&e.setAttr("letterSpacing",`${g}px`),this._partialTextX=N,this._partialTextY=S+L,this._partialText=D,e.fillStrokeShape(this);e.restore(),r>1&&(S+=s)}}_hitFunc(e){const n=this.getWidth(),r=this.getHeight();e.beginPath(),e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}setText(e){const n=w5.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(jE,n),this}getWidth(){return this.attrs.width===Cl||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Cl||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return w5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var n,r,i,o,s,a,l,u,d,p,g;let h=Hp(),w=this.fontSize(),_;h.save(),h.font=this._getContextFont(),_=h.measureText(e),h.restore();const A=w/100;return{actualBoundingBoxAscent:(n=_.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*A,actualBoundingBoxDescent:(r=_.actualBoundingBoxDescent)!==null&&r!==void 0?r:0,actualBoundingBoxLeft:(i=_.actualBoundingBoxLeft)!==null&&i!==void 0?i:-7.421875*A,actualBoundingBoxRight:(o=_.actualBoundingBoxRight)!==null&&o!==void 0?o:75.732421875*A,alphabeticBaseline:(s=_.alphabeticBaseline)!==null&&s!==void 0?s:0,emHeightAscent:(a=_.emHeightAscent)!==null&&a!==void 0?a:100*A,emHeightDescent:(l=_.emHeightDescent)!==null&&l!==void 0?l:-20*A,fontBoundingBoxAscent:(u=_.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*A,fontBoundingBoxDescent:(d=_.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*A,hangingBaseline:(p=_.hangingBaseline)!==null&&p!==void 0?p:72.80000305175781*A,ideographicBaseline:(g=_.ideographicBaseline)!==null&&g!==void 0?g:-21*A,width:_.width,height:w}}_getContextFont(){return this.fontStyle()+Od+this.fontVariant()+Od+(this.fontSize()+OE)+zE(this.fontFamily())}_addTextLine(e){this.align()===mu&&(e=e.trim());const r=this._getTextWidth(e);return this.textArr.push({text:e,width:r,lastInParagraph:!1})}_getTextWidth(e){const n=this.letterSpacing(),r=e.length;return Hp().measureText(e).width+(r?n*(r-1):0)}_setTextData(){let e=this.text().split(`
+`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==Cl&&o!==void 0,l=s!==Cl&&s!==void 0,u=this.padding(),d=o-u*2,p=s-u*2,g=0,h=this.wrap(),w=h!==Z3,_=h!==DE&&w,A=this.ellipsis();this.textArr=[],Hp().font=this._getContextFont();const v=A?this._getTextWidth(Wp):0;for(let y=0,N=e.length;y<N;++y){let L=e[y],R=this._getTextWidth(L);if(a&&R>d)for(;L.length>0;){let D=0,k=L.length,z="",T=0;for(;D<k;){const P=D+k>>>1,E=L.slice(0,P+1),W=this._getTextWidth(E)+v;W<=d?(D=P+1,z=E,T=W):k=P}if(z){if(_){var S;const E=L[z.length];(E===Od||E===$3)&&T<=d?S=z.length:S=Math.max(z.lastIndexOf(Od),z.lastIndexOf($3))+1,S>0&&(D=S,z=z.slice(0,D),T=this._getTextWidth(z))}if(z=z.trimRight(),this._addTextLine(z),r=Math.max(r,T),g+=i,this._shouldHandleEllipsis(g)){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(D),L=L.trimLeft(),L.length>0&&(R=this._getTextWidth(L),R<=d)){this._addTextLine(L),g+=i,r=Math.max(r,R);break}}else break}else this._addTextLine(L),g+=i,r=Math.max(r,R),this._shouldHandleEllipsis(g)&&y<N-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&g+i>p)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(e){const n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Cl&&i!==void 0,s=this.padding(),a=i-s*2;return!(this.wrap()!==Z3)||o&&e+r>a}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,n=e!==Cl&&e!==void 0,r=this.padding(),i=e-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];!s||!o||(n&&(this._getTextWidth(s.text+Wp)<i||(s.text=s.text.slice(0,s.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Wp))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return e&&n?!0:super._useBufferCanvas()}}Cc.Text=cn;cn.prototype._fillFunc=GE;cn.prototype._strokeFunc=qE;cn.prototype.className=ME;cn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,LE._registerNode)(cn);lr.Factory.overWriteSetter(cn,"width",(0,Ks.getNumberOrAutoValidator)());lr.Factory.overWriteSetter(cn,"height",(0,Ks.getNumberOrAutoValidator)());lr.Factory.addGetterSetter(cn,"direction",fw);lr.Factory.addGetterSetter(cn,"fontFamily","Arial");lr.Factory.addGetterSetter(cn,"fontSize",12,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"fontStyle",gw);lr.Factory.addGetterSetter(cn,"fontVariant",gw);lr.Factory.addGetterSetter(cn,"padding",0,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"align",pw);lr.Factory.addGetterSetter(cn,"verticalAlign",IE);lr.Factory.addGetterSetter(cn,"lineHeight",1,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"wrap",BE);lr.Factory.addGetterSetter(cn,"ellipsis",!1,(0,Ks.getBooleanValidator)());lr.Factory.addGetterSetter(cn,"letterSpacing",0,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"text","",(0,Ks.getStringValidator)());lr.Factory.addGetterSetter(cn,"textDecoration","");var G1={};Object.defineProperty(G1,"__esModule",{value:!0});G1.TextPath=void 0;const Yp=en,Ii=at,WE=jn,vu=Ac,Kp=Cc,vw=Xe,HE=$e,YE="",yw="normal";function ww(t){t.fillText(this.partialText,0,0)}function bw(t){t.strokeText(this.partialText,0,0)}class Mn extends WE.Shape{constructor(e){super(e),this.dummyCanvas=Yp.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return vu.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const n=this.pathLength;return e-1>n?null:vu.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=vu.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&e.beginPath();for(let s=0;s<o.length;s++){e.save();const a=o[s].p0;e.translate(a.x,a.y),e.rotate(o[s].rotation),this.partialText=o[s].text,e.fillStrokeShape(this),n==="underline"&&(s===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}n==="underline"&&(e.strokeStyle=r,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();const n=this.glyphInfo;if(n.length>=1){const r=n[0].p0;e.moveTo(r.x,r.y)}for(let r=0;r<n.length;r++){const i=n[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return Yp.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return Kp.Text.prototype.setText.call(this,e)}_getContextFont(){return Kp.Text.prototype._getContextFont.call(this)}_getTextSize(e){const r=this.dummyCanvas.getContext("2d");r.save(),r.font=this._getContextFont();const i=r.measureText(e);return r.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:e,height:n}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=n,this.glyphInfo=[],!this.attrs.data)return null;const r=this.letterSpacing(),i=this.align(),o=this.kerningFunc(),s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);let a=0;i==="center"&&(a=Math.max(0,this.pathLength/2-s/2)),i==="right"&&(a=Math.max(0,this.pathLength-s));const l=(0,Kp.stringToArray)(this.text());let u=a;for(let d=0;d<l.length;d++){const p=this._getPointAtLength(u);if(!p)return;let g=this._getTextSize(l[d]).width+r;if(l[d]===" "&&i==="justify"){const S=this.text().split(" ").length-1;g+=(this.pathLength-s)/S}const h=this._getPointAtLength(u+g);if(!h)return;const w=vu.Path.getLineLength(p.x,p.y,h.x,h.y);let _=0;if(o)try{_=o(l[d-1],l[d])*this.fontSize()}catch{_=0}p.x+=_,h.x+=_,this.textWidth+=_;const A=vu.Path.getPointOnLine(_+w/2,p.x,p.y,h.x,h.y),v=Math.atan2(h.y-p.y,h.x-p.x);this.glyphInfo.push({transposeX:A.x,transposeY:A.y,text:l[d],rotation:v,p0:p,p1:h}),u+=g}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach(function(u){e.push(u.p0.x),e.push(u.p0.y),e.push(u.p1.x),e.push(u.p1.y)});let n=e[0]||0,r=e[0]||0,i=e[1]||0,o=e[1]||0,s,a;for(let u=0;u<e.length/2;u++)s=e[u*2],a=e[u*2+1],n=Math.min(n,s),r=Math.max(r,s),i=Math.min(i,a),o=Math.max(o,a);const l=this.fontSize();return{x:n-l/2,y:i-l/2,width:r-n+l,height:o-i+l}}destroy(){return Yp.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}G1.TextPath=Mn;Mn.prototype._fillFunc=ww;Mn.prototype._strokeFunc=bw;Mn.prototype._fillFuncHit=ww;Mn.prototype._strokeFuncHit=bw;Mn.prototype.className="TextPath";Mn.prototype._attrsAffectingSize=["text","fontSize","data"];(0,HE._registerNode)(Mn);Ii.Factory.addGetterSetter(Mn,"data");Ii.Factory.addGetterSetter(Mn,"fontFamily","Arial");Ii.Factory.addGetterSetter(Mn,"fontSize",12,(0,vw.getNumberValidator)());Ii.Factory.addGetterSetter(Mn,"fontStyle",yw);Ii.Factory.addGetterSetter(Mn,"align","left");Ii.Factory.addGetterSetter(Mn,"letterSpacing",0,(0,vw.getNumberValidator)());Ii.Factory.addGetterSetter(Mn,"textBaseline","middle");Ii.Factory.addGetterSetter(Mn,"fontVariant",yw);Ii.Factory.addGetterSetter(Mn,"text",YE);Ii.Factory.addGetterSetter(Mn,"textDecoration",null);Ii.Factory.addGetterSetter(Mn,"kerningFunc",null);var q1={};Object.defineProperty(q1,"__esModule",{value:!0});q1.Transformer=void 0;const Tt=en,St=at,e4=Yt,KE=jn,XE=Sh,t4=Sc,Ni=$e,Xs=Xe,$E=$e,_w="tr-konva",QE=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${_w}`).join(" "),n4="nodesRect",JE=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ZE={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},eT="ontouchstart"in Ni.Konva._global;function tT(t,e,n){if(t==="rotater")return n;e+=Tt.Util.degToRad(ZE[t]||0);const r=(Tt.Util.radToDeg(e)%360+360)%360;return Tt.Util._inRange(r,315+22.5,360)||Tt.Util._inRange(r,0,22.5)?"ns-resize":Tt.Util._inRange(r,45-22.5,45+22.5)?"nesw-resize":Tt.Util._inRange(r,90-22.5,90+22.5)?"ew-resize":Tt.Util._inRange(r,135-22.5,135+22.5)?"nwse-resize":Tt.Util._inRange(r,180-22.5,180+22.5)?"ns-resize":Tt.Util._inRange(r,225-22.5,225+22.5)?"nesw-resize":Tt.Util._inRange(r,270-22.5,270+22.5)?"ew-resize":Tt.Util._inRange(r,315-22.5,315+22.5)?"nwse-resize":(Tt.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}const qf=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],r4=1e8;function nT(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function Sw(t,e,n){const r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:r,y:i}}function rT(t,e){const n=nT(t);return Sw(t,e,n)}function iT(t,e,n){let r=e;for(let i=0;i<t.length;i++){const o=Ni.Konva.getAngle(t[i]),s=Math.abs(o-e)%(Math.PI*2);Math.min(s,Math.PI*2-s)<n&&(r=o)}return r}let b5=0;class ft extends t4.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(QE,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return Tt.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return _w+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const n=e.filter(i=>i.isAncestorOf(this)?(Tt.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=n,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=i._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");i.on(s,o),i.on(JE.map(a=>a+`.${this._getEventNamespace()}`).join(" "),o),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,o),this._proxyDrag(i)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let n;e.on(`dragstart.${this._getEventNamespace()}`,r=>{n=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(r,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!n)return;const i=e.getAbsolutePosition(),o=i.x-n.x,s=i.y-n.y;this.nodes().forEach(a=>{if(a===e||a.isDragging())return;const l=a.getAbsolutePosition();a.setAbsolutePosition({x:l.x+o,y:l.y+s}),a.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(n4),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(n4,this.__getNodeRect)}__getNodeShape(e,n=this.rotation(),r){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=e.getAbsoluteScale(r),s=e.getAbsolutePosition(r),a=i.x*o.x-e.offsetX()*o.x,l=i.y*o.y-e.offsetY()*o.y,u=(Ni.Konva.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),d={x:s.x+a*Math.cos(u)+l*Math.sin(-u),y:s.y+l*Math.cos(u)+a*Math.sin(u),width:i.width*o.x,height:i.height*o.y,rotation:u};return Sw(d,-Ni.Konva.getAngle(n),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-r4,y:-r4,width:0,height:0,rotation:0};const n=[];this.nodes().map(u=>{const d=u.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),p=[{x:d.x,y:d.y},{x:d.x+d.width,y:d.y},{x:d.x+d.width,y:d.y+d.height},{x:d.x,y:d.y+d.height}],g=u.getAbsoluteTransform();p.forEach(function(h){const w=g.point(h);n.push(w)})});const r=new Tt.Transform;r.rotate(-Ni.Konva.getAngle(this.rotation()));let i=1/0,o=1/0,s=-1/0,a=-1/0;n.forEach(function(u){const d=r.point(u);i===void 0&&(i=s=d.x,o=a=d.y),i=Math.min(i,d.x),o=Math.min(o,d.y),s=Math.max(s,d.x),a=Math.max(a,d.y)}),r.invert();const l=r.point({x:i,y:o});return{x:l.x,y:l.y,width:s-i,height:a-o,rotation:Ni.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),qf.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){const n=new XE.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:eT?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{const i=Ni.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=tT(e,i,o);n.getStage().content&&(n.getStage().content.style.cursor=s),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){const e=new KE.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(n,r){const i=r.getParent(),o=i.padding();n.beginPath(),n.rect(-o,-o,r.width()+o*2,r.height()+o*2),n.moveTo(r.width()/2,-o),i.rotateEnabled()&&i.rotateLineVisible()&&n.lineTo(r.width()/2,-i.rotateAnchorOffset()*Tt.Util._sign(r.height())-o),n.fillStrokeShape(r)},hitFunc:(n,r)=>{if(!this.shouldOverdrawWholeArea())return;const i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}});this.add(e),this._proxyDrag(e),e.on("dragstart",n=>{n.cancelBubble=!0}),e.on("dragmove",n=>{n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const n=this._getNodeRect(),r=n.width,i=n.height,o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(r/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const s=e.target.getAbsolutePosition(),a=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-s.x,y:a.y-s.y},b5++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(l=>{l._fire("transformstart",{evt:e.evt,target:l})})}_handleMouseMove(e){let n,r,i;const o=this.findOne("."+this._movingAnchorName),s=o.getStage();s.setPointersPositions(e);const a=s.getPointerPosition();let l={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const u=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(l=this.anchorDragBoundFunc()(u,l,e)),o.setAbsolutePosition(l);const d=o.getAbsolutePosition();if(u.x===d.x&&u.y===d.y)return;if(this._movingAnchorName==="rotater"){const L=this._getNodeRect();n=o.x()-L.width/2,r=-o.y()+L.height/2;let R=Math.atan2(-r,n)+Math.PI/2;L.height<0&&(R-=Math.PI);const k=Ni.Konva.getAngle(this.rotation())+R,z=Ni.Konva.getAngle(this.rotationSnapTolerance()),P=iT(this.rotationSnaps(),k,z)-L.rotation,E=rT(L,P);this._fitNodesInto(E,e);return}const p=this.shiftBehavior();let g;p==="inverted"?g=this.keepRatio()&&!e.shiftKey:p==="none"?g=this.keepRatio():g=this.keepRatio()||e.shiftKey;var v=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(h.x-o.x(),2)+Math.pow(h.y-o.y(),2));var w=this.findOne(".top-left").x()>h.x?-1:1,_=this.findOne(".top-left").y()>h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".top-left").x(h.x-n),this.findOne(".top-left").y(h.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-h.x,2)+Math.pow(h.y-o.y(),2));var w=this.findOne(".top-right").x()<h.x?-1:1,_=this.findOne(".top-right").y()>h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".top-right").x(h.x+n),this.findOne(".top-right").y(h.y-r)}var A=o.position();this.findOne(".top-left").y(A.y),this.findOne(".bottom-right").x(A.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(h.x-o.x(),2)+Math.pow(o.y()-h.y,2));var w=h.x<o.x()?-1:1,_=o.y()<h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,o.x(h.x-n),o.y(h.y+r)}A=o.position(),this.findOne(".top-left").x(A.x),this.findOne(".bottom-right").y(A.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-h.x,2)+Math.pow(o.y()-h.y,2));var w=this.findOne(".bottom-right").x()<h.x?-1:1,_=this.findOne(".bottom-right").y()<h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".bottom-right").x(h.x+n),this.findOne(".bottom-right").y(h.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var v=this.centeredScaling()||e.altKey;if(v){const L=this.findOne(".top-left"),R=this.findOne(".bottom-right"),D=L.x(),k=L.y(),z=this.getWidth()-R.x(),T=this.getHeight()-R.y();R.move({x:-D,y:-k}),L.move({x:z,y:T})}const S=this.findOne(".top-left").getAbsolutePosition();n=S.x,r=S.y;const y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),N=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:y,height:N,rotation:Ni.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var n;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const r=this.getNode();b5--,this._fire("transformend",{evt:e,target:r}),(n=this.getLayer())===null||n===void 0||n.batchDraw(),r&&this._nodes.forEach(i=>{var o;i._fire("transformend",{evt:e,target:i}),(o=i.getLayer())===null||o===void 0||o.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,n){const r=this._getNodeRect(),i=1;if(Tt.Util._inRange(e.width,-this.padding()*2-i,i)){this.update();return}if(Tt.Util._inRange(e.height,-this.padding()*2-i,i)){this.update();return}const o=new Tt.Transform;if(o.rotate(Ni.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const g=o.point({x:-this.padding()*2,y:0});e.x+=g.x,e.y+=g.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const g=o.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const g=o.point({x:0,y:-this.padding()*2});e.x+=g.x,e.y+=g.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const g=o.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){const g=this.boundBoxFunc()(r,e);g?e=g:Tt.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,a=new Tt.Transform;a.translate(r.x,r.y),a.rotate(r.rotation),a.scale(r.width/s,r.height/s);const l=new Tt.Transform,u=e.width/s,d=e.height/s;this.flipEnabled()===!1?(l.translate(e.x,e.y),l.rotate(e.rotation),l.translate(e.width<0?e.width:0,e.height<0?e.height:0),l.scale(Math.abs(u),Math.abs(d))):(l.translate(e.x,e.y),l.rotate(e.rotation),l.scale(u,d));const p=l.multiply(a.invert());this._nodes.forEach(g=>{var h;const w=g.getParent().getAbsoluteTransform(),_=g.getTransform().copy();_.translate(g.offsetX(),g.offsetY());const A=new Tt.Transform;A.multiply(w.copy().invert()).multiply(p).multiply(w).multiply(_);const v=A.decompose();g.setAttrs(v),(h=g.getLayer())===null||h===void 0||h.batchDraw()}),this.rotation(Tt.Util._getRotation(e.rotation)),this._nodes.forEach(g=>{this._fire("transform",{evt:n,target:g}),g._fire("transform",{evt:n,target:g})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,n){this.findOne(e).setAttrs(n)}update(){var e;const n=this._getNodeRect();this.rotation(Tt.Util._getRotation(n.rotation));const r=n.width,i=n.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),l=this.anchorSize(),u=this.find("._anchor");u.forEach(p=>{p.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+a,offsetY:l/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:l/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:l/2-a,offsetY:l/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:l/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:l/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:l/2+a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:l/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:l/2-a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*Tt.Util._sign(i)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const d=this.anchorStyleFunc();d&&u.forEach(p=>{d(p)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),t4.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return e4.Node.prototype.toObject.call(this)}clone(e){return e4.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}q1.Transformer=ft;ft.isTransforming=()=>b5>0;function oT(t){return t instanceof Array||Tt.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){qf.indexOf(e)===-1&&Tt.Util.warn("Unknown anchor name: "+e+". Available names are: "+qf.join(", "))}),t||[]}ft.prototype.className="Transformer";(0,$E._registerNode)(ft);St.Factory.addGetterSetter(ft,"enabledAnchors",qf,oT);St.Factory.addGetterSetter(ft,"flipEnabled",!0,(0,Xs.getBooleanValidator)());St.Factory.addGetterSetter(ft,"resizeEnabled",!0);St.Factory.addGetterSetter(ft,"anchorSize",10,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"rotateEnabled",!0);St.Factory.addGetterSetter(ft,"rotateLineVisible",!0);St.Factory.addGetterSetter(ft,"rotationSnaps",[]);St.Factory.addGetterSetter(ft,"rotateAnchorOffset",50,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"rotateAnchorCursor","crosshair");St.Factory.addGetterSetter(ft,"rotationSnapTolerance",5,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderEnabled",!0);St.Factory.addGetterSetter(ft,"anchorStroke","rgb(0, 161, 255)");St.Factory.addGetterSetter(ft,"anchorStrokeWidth",1,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"anchorFill","white");St.Factory.addGetterSetter(ft,"anchorCornerRadius",0,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderStroke","rgb(0, 161, 255)");St.Factory.addGetterSetter(ft,"borderStrokeWidth",1,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderDash");St.Factory.addGetterSetter(ft,"keepRatio",!0);St.Factory.addGetterSetter(ft,"shiftBehavior","default");St.Factory.addGetterSetter(ft,"centeredScaling",!1);St.Factory.addGetterSetter(ft,"ignoreStroke",!1);St.Factory.addGetterSetter(ft,"padding",0,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"node");St.Factory.addGetterSetter(ft,"nodes");St.Factory.addGetterSetter(ft,"boundBoxFunc");St.Factory.addGetterSetter(ft,"anchorDragBoundFunc");St.Factory.addGetterSetter(ft,"anchorStyleFunc");St.Factory.addGetterSetter(ft,"shouldOverdrawWholeArea",!1);St.Factory.addGetterSetter(ft,"useSingleNodeRotation",!0);St.Factory.backCompat(ft,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var V1={};Object.defineProperty(V1,"__esModule",{value:!0});V1.Wedge=void 0;const W1=at,sT=jn,aT=$e,xw=Xe,lT=$e;class Wo extends sT.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,aT.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}V1.Wedge=Wo;Wo.prototype.className="Wedge";Wo.prototype._centroid=!0;Wo.prototype._attrsAffectingSize=["radius"];(0,lT._registerNode)(Wo);W1.Factory.addGetterSetter(Wo,"radius",0,(0,xw.getNumberValidator)());W1.Factory.addGetterSetter(Wo,"angle",0,(0,xw.getNumberValidator)());W1.Factory.addGetterSetter(Wo,"clockwise",!1);W1.Factory.backCompat(Wo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var H1={};Object.defineProperty(H1,"__esModule",{value:!0});H1.Blur=void 0;const i4=at,cT=Yt,uT=Xe;function o4(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const hT=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],dT=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function fT(t,e){const n=t.data,r=t.width,i=t.height;let o,s,a,l,u,d,p,g,h,w,_,A,v,S,y,N,L,R,D,k,z,T,P,E,W=e+e+1,B=r-1,Q=i-1,ee=e+1,se=ee*(ee+1)/2,K=new o4,te=null,X=K,de=null,j=null,G=hT[e],H=dT[e];for(a=1;a<W;a++)X=X.next=new o4,a===ee&&(te=X);for(X.next=K,p=d=0,s=0;s<i;s++){for(N=L=R=D=g=h=w=_=0,A=ee*(k=n[d]),v=ee*(z=n[d+1]),S=ee*(T=n[d+2]),y=ee*(P=n[d+3]),g+=se*k,h+=se*z,w+=se*T,_+=se*P,X=K,a=0;a<ee;a++)X.r=k,X.g=z,X.b=T,X.a=P,X=X.next;for(a=1;a<ee;a++)l=d+((B<a?B:a)<<2),g+=(X.r=k=n[l])*(E=ee-a),h+=(X.g=z=n[l+1])*E,w+=(X.b=T=n[l+2])*E,_+=(X.a=P=n[l+3])*E,N+=k,L+=z,R+=T,D+=P,X=X.next;for(de=K,j=te,o=0;o<r;o++)n[d+3]=P=_*G>>H,P!==0?(P=255/P,n[d]=(g*G>>H)*P,n[d+1]=(h*G>>H)*P,n[d+2]=(w*G>>H)*P):n[d]=n[d+1]=n[d+2]=0,g-=A,h-=v,w-=S,_-=y,A-=de.r,v-=de.g,S-=de.b,y-=de.a,l=p+((l=o+e+1)<B?l:B)<<2,N+=de.r=n[l],L+=de.g=n[l+1],R+=de.b=n[l+2],D+=de.a=n[l+3],g+=N,h+=L,w+=R,_+=D,de=de.next,A+=k=j.r,v+=z=j.g,S+=T=j.b,y+=P=j.a,N-=k,L-=z,R-=T,D-=P,j=j.next,d+=4;p+=r}for(o=0;o<r;o++){for(L=R=D=N=h=w=_=g=0,d=o<<2,A=ee*(k=n[d]),v=ee*(z=n[d+1]),S=ee*(T=n[d+2]),y=ee*(P=n[d+3]),g+=se*k,h+=se*z,w+=se*T,_+=se*P,X=K,a=0;a<ee;a++)X.r=k,X.g=z,X.b=T,X.a=P,X=X.next;for(u=r,a=1;a<=e;a++)d=u+o<<2,g+=(X.r=k=n[d])*(E=ee-a),h+=(X.g=z=n[d+1])*E,w+=(X.b=T=n[d+2])*E,_+=(X.a=P=n[d+3])*E,N+=k,L+=z,R+=T,D+=P,X=X.next,a<Q&&(u+=r);for(d=o,de=K,j=te,s=0;s<i;s++)l=d<<2,n[l+3]=P=_*G>>H,P>0?(P=255/P,n[l]=(g*G>>H)*P,n[l+1]=(h*G>>H)*P,n[l+2]=(w*G>>H)*P):n[l]=n[l+1]=n[l+2]=0,g-=A,h-=v,w-=S,_-=y,A-=de.r,v-=de.g,S-=de.b,y-=de.a,l=o+((l=s+ee)<Q?l:Q)*r<<2,g+=N+=de.r=n[l],h+=L+=de.g=n[l+1],w+=R+=de.b=n[l+2],_+=D+=de.a=n[l+3],de=de.next,A+=k=j.r,v+=z=j.g,S+=T=j.b,y+=P=j.a,N-=k,L-=z,R-=T,D-=P,j=j.next,d+=r}}const pT=function(e){const n=Math.round(this.blurRadius());n>0&&fT(e,n)};H1.Blur=pT;i4.Factory.addGetterSetter(cT.Node,"blurRadius",0,(0,uT.getNumberValidator)(),i4.Factory.afterSetFilter);var Y1={};Object.defineProperty(Y1,"__esModule",{value:!0});Y1.Brighten=void 0;const s4=at,gT=Yt,mT=Xe,vT=function(t){let e=this.brightness()*255,n=t.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=e,n[i+1]+=e,n[i+2]+=e};Y1.Brighten=vT;s4.Factory.addGetterSetter(gT.Node,"brightness",0,(0,mT.getNumberValidator)(),s4.Factory.afterSetFilter);var K1={};Object.defineProperty(K1,"__esModule",{value:!0});K1.Contrast=void 0;const a4=at,yT=Yt,wT=Xe,bT=function(t){const e=Math.pow((this.contrast()+100)/100,2);let n=t.data,r=n.length,i=150,o=150,s=150,a;for(a=0;a<r;a+=4)i=n[a],o=n[a+1],s=n[a+2],i/=255,i-=.5,i*=e,i+=.5,i*=255,o/=255,o-=.5,o*=e,o+=.5,o*=255,s/=255,s-=.5,s*=e,s+=.5,s*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,n[a]=i,n[a+1]=o,n[a+2]=s};K1.Contrast=bT;a4.Factory.addGetterSetter(yT.Node,"contrast",0,(0,wT.getNumberValidator)(),a4.Factory.afterSetFilter);var X1={};Object.defineProperty(X1,"__esModule",{value:!0});X1.Emboss=void 0;const Os=at,$1=Yt,_T=en,Aw=Xe,ST=function(t){let e=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),o=0,s=0,a=t.data,l=t.width,u=t.height,d=l*4,p=u;switch(r){case"top-left":o=-1,s=-1;break;case"top":o=-1,s=0;break;case"top-right":o=-1,s=1;break;case"right":o=0,s=1;break;case"bottom-right":o=1,s=1;break;case"bottom":o=1,s=0;break;case"bottom-left":o=1,s=-1;break;case"left":o=0,s=-1;break;default:_T.Util.error("Unknown emboss direction: "+r)}do{const g=(p-1)*d;let h=o;p+h<1&&(h=0),p+h>u&&(h=0);const w=(p-1+h)*l*4;let _=l;do{const A=g+(_-1)*4;let v=s;_+v<1&&(v=0),_+v>l&&(v=0);const S=w+(_-1+v)*4,y=a[A]-a[S],N=a[A+1]-a[S+1],L=a[A+2]-a[S+2];let R=y;const D=R>0?R:-R,k=N>0?N:-N,z=L>0?L:-L;if(k>D&&(R=N),z>D&&(R=L),R*=e,i){const T=a[A]+R,P=a[A+1]+R,E=a[A+2]+R;a[A]=T>255?255:T<0?0:T,a[A+1]=P>255?255:P<0?0:P,a[A+2]=E>255?255:E<0?0:E}else{let T=n-R;T<0?T=0:T>255&&(T=255),a[A]=a[A+1]=a[A+2]=T}}while(--_)}while(--p)};X1.Emboss=ST;Os.Factory.addGetterSetter($1.Node,"embossStrength",.5,(0,Aw.getNumberValidator)(),Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossWhiteLevel",.5,(0,Aw.getNumberValidator)(),Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossDirection","top-left",null,Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossBlend",!1,null,Os.Factory.afterSetFilter);var Q1={};Object.defineProperty(Q1,"__esModule",{value:!0});Q1.Enhance=void 0;const l4=at,xT=Yt,AT=Xe;function Xp(t,e,n,r,i){let o=n-e,s=i-r,a;return o===0?r+s/2:s===0?r:(a=(t-e)/o,a=s*a+r,a)}const NT=function(t){let e=t.data,n=e.length,r=e[0],i=r,o,s=e[1],a=s,l,u=e[2],d=u,p,g;const h=this.enhance();if(h===0)return;for(g=0;g<n;g+=4)o=e[g+0],o<r?r=o:o>i&&(i=o),l=e[g+1],l<s?s=l:l>a&&(a=l),p=e[g+2],p<u?u=p:p>d&&(d=p);i===r&&(i=255,r=0),a===s&&(a=255,s=0),d===u&&(d=255,u=0);let w,_,A,v,S,y,N,L,R;for(h>0?(_=i+h*(255-i),A=r-h*(r-0),S=a+h*(255-a),y=s-h*(s-0),L=d+h*(255-d),R=u-h*(u-0)):(w=(i+r)*.5,_=i+h*(i-w),A=r+h*(r-w),v=(a+s)*.5,S=a+h*(a-v),y=s+h*(s-v),N=(d+u)*.5,L=d+h*(d-N),R=u+h*(u-N)),g=0;g<n;g+=4)e[g+0]=Xp(e[g+0],r,i,A,_),e[g+1]=Xp(e[g+1],s,a,y,S),e[g+2]=Xp(e[g+2],u,d,R,L)};Q1.Enhance=NT;l4.Factory.addGetterSetter(xT.Node,"enhance",0,(0,AT.getNumberValidator)(),l4.Factory.afterSetFilter);var J1={};Object.defineProperty(J1,"__esModule",{value:!0});J1.Grayscale=void 0;const CT=function(t){let e=t.data,n=e.length,r,i;for(r=0;r<n;r+=4)i=.34*e[r]+.5*e[r+1]+.16*e[r+2],e[r]=i,e[r+1]=i,e[r+2]=i};J1.Grayscale=CT;var Z1={};Object.defineProperty(Z1,"__esModule",{value:!0});Z1.HSL=void 0;const hc=at,Gg=Yt,qg=Xe;hc.Factory.addGetterSetter(Gg.Node,"hue",0,(0,qg.getNumberValidator)(),hc.Factory.afterSetFilter);hc.Factory.addGetterSetter(Gg.Node,"saturation",0,(0,qg.getNumberValidator)(),hc.Factory.afterSetFilter);hc.Factory.addGetterSetter(Gg.Node,"luminance",0,(0,qg.getNumberValidator)(),hc.Factory.afterSetFilter);const PT=function(t){let e=t.data,n=e.length,r=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=this.luminance()*127,a;const l=r*i*Math.cos(o*Math.PI/180),u=r*i*Math.sin(o*Math.PI/180),d=.299*r+.701*l+.167*u,p=.587*r-.587*l+.33*u,g=.114*r-.114*l-.497*u,h=.299*r-.299*l-.328*u,w=.587*r+.413*l+.035*u,_=.114*r-.114*l+.293*u,A=.299*r-.3*l+1.25*u,v=.587*r-.586*l-1.05*u,S=.114*r+.886*l-.2*u;let y,N,L,R;for(a=0;a<n;a+=4)y=e[a+0],N=e[a+1],L=e[a+2],R=e[a+3],e[a+0]=d*y+p*N+g*L+s,e[a+1]=h*y+w*N+_*L+s,e[a+2]=A*y+v*N+S*L+s,e[a+3]=R};Z1.HSL=PT;var e0={};Object.defineProperty(e0,"__esModule",{value:!0});e0.HSV=void 0;const dc=at,Vg=Yt,Wg=Xe,LT=function(t){const e=t.data,n=e.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=r*i*Math.cos(o*Math.PI/180),a=r*i*Math.sin(o*Math.PI/180),l=.299*r+.701*s+.167*a,u=.587*r-.587*s+.33*a,d=.114*r-.114*s-.497*a,p=.299*r-.299*s-.328*a,g=.587*r+.413*s+.035*a,h=.114*r-.114*s+.293*a,w=.299*r-.3*s+1.25*a,_=.587*r-.586*s-1.05*a,A=.114*r+.886*s-.2*a;let v,S,y,N;for(let L=0;L<n;L+=4)v=e[L+0],S=e[L+1],y=e[L+2],N=e[L+3],e[L+0]=l*v+u*S+d*y,e[L+1]=p*v+g*S+h*y,e[L+2]=w*v+_*S+A*y,e[L+3]=N};e0.HSV=LT;dc.Factory.addGetterSetter(Vg.Node,"hue",0,(0,Wg.getNumberValidator)(),dc.Factory.afterSetFilter);dc.Factory.addGetterSetter(Vg.Node,"saturation",0,(0,Wg.getNumberValidator)(),dc.Factory.afterSetFilter);dc.Factory.addGetterSetter(Vg.Node,"value",0,(0,Wg.getNumberValidator)(),dc.Factory.afterSetFilter);var t0={};Object.defineProperty(t0,"__esModule",{value:!0});t0.Invert=void 0;const kT=function(t){let e=t.data,n=e.length,r;for(r=0;r<n;r+=4)e[r]=255-e[r],e[r+1]=255-e[r+1],e[r+2]=255-e[r+2]};t0.Invert=kT;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});n0.Kaleidoscope=void 0;const Vf=at,Nw=Yt,c4=en,Cw=Xe,ET=function(t,e,n){let r=t.data,i=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2,u,d,p,g=0,h=0,w=0,_=0,A,v=Math.sqrt(a*a+l*l);d=o-a,p=s-l,A=Math.sqrt(d*d+p*p),v=A>v?A:v;let S=s,y=o,N,L,R=360/y*Math.PI/180,D,k;for(L=0;L<y;L+=1)for(D=Math.sin(L*R),k=Math.cos(L*R),N=0;N<S;N+=1)d=Math.floor(a+v*N/S*k),p=Math.floor(l+v*N/S*D),u=(p*o+d)*4,g=r[u+0],h=r[u+1],w=r[u+2],_=r[u+3],u=(L+N*o)*4,i[u+0]=g,i[u+1]=h,i[u+2]=w,i[u+3]=_},TT=function(t,e,n){let r=t.data,i=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2,u,d,p,g,h,w=0,_=0,A=0,v=0,S,y=Math.sqrt(a*a+l*l);d=o-a,p=s-l,S=Math.sqrt(d*d+p*p),y=S>y?S:y;let N=s,L=o,R,D,k=0,z,T;for(d=0;d<o;d+=1)for(p=0;p<s;p+=1)g=d-a,h=p-l,R=Math.sqrt(g*g+h*h)*N/y,D=(Math.atan2(h,g)*180/Math.PI+360+k)%360,D=D*L/360,z=Math.floor(D),T=Math.floor(R),u=(T*o+z)*4,w=r[u+0],_=r[u+1],A=r[u+2],v=r[u+3],u=(p*o+d)*4,i[u+0]=w,i[u+1]=_,i[u+2]=A,i[u+3]=v},jT=function(t){const e=t.width,n=t.height;let r,i,o,s,a,l,u,d,p,g,h=Math.round(this.kaleidoscopePower());const w=Math.round(this.kaleidoscopeAngle()),_=Math.floor(e*(w%360)/360);if(h<1)return;const A=c4.Util.createCanvasElement();A.width=e,A.height=n;const v=A.getContext("2d").getImageData(0,0,e,n);c4.Util.releaseCanvas(A),ET(t,v,{polarCenterX:e/2,polarCenterY:n/2});let S=e/Math.pow(2,h);for(;S<=8;)S=S*2,h-=1;S=Math.ceil(S);let y=S,N=0,L=y,R=1;for(_+S>e&&(N=y,L=0,R=-1),i=0;i<n;i+=1)for(r=N;r!==L;r+=R)o=Math.round(r+_)%e,p=(e*i+o)*4,a=v.data[p+0],l=v.data[p+1],u=v.data[p+2],d=v.data[p+3],g=(e*i+r)*4,v.data[g+0]=a,v.data[g+1]=l,v.data[g+2]=u,v.data[g+3]=d;for(i=0;i<n;i+=1)for(y=Math.floor(S),s=0;s<h;s+=1){for(r=0;r<y+1;r+=1)p=(e*i+r)*4,a=v.data[p+0],l=v.data[p+1],u=v.data[p+2],d=v.data[p+3],g=(e*i+y*2-r-1)*4,v.data[g+0]=a,v.data[g+1]=l,v.data[g+2]=u,v.data[g+3]=d;y*=2}TT(v,t,{polarRotation:0})};n0.Kaleidoscope=jT;Vf.Factory.addGetterSetter(Nw.Node,"kaleidoscopePower",2,(0,Cw.getNumberValidator)(),Vf.Factory.afterSetFilter);Vf.Factory.addGetterSetter(Nw.Node,"kaleidoscopeAngle",0,(0,Cw.getNumberValidator)(),Vf.Factory.afterSetFilter);var r0={};Object.defineProperty(r0,"__esModule",{value:!0});r0.Mask=void 0;const u4=at,MT=Yt,IT=Xe;function Bd(t,e,n){let r=(n*t.width+e)*4;const i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function yu(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function FT(t){const e=[0,0,0];for(let n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function OT(t,e){const n=Bd(t,0,0),r=Bd(t,t.width-1,0),i=Bd(t,0,t.height-1),o=Bd(t,t.width-1,t.height-1),s=e||10;if(yu(n,r)<s&&yu(r,o)<s&&yu(o,i)<s&&yu(i,n)<s){const a=FT([r,n,o,i]),l=[];for(let u=0;u<t.width*t.height;u++){const d=yu(a,[t.data[u*4],t.data[u*4+1],t.data[u*4+2]]);l[u]=d<s?0:255}return l}}function RT(t,e){for(let n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function BT(t,e,n){const r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,A=r[p*i+g];d+=t[_]*A}}s[u]=d===255*8?255:0}return s}function DT(t,e,n){const r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,A=r[p*i+g];d+=t[_]*A}}s[u]=d>=255*4?255:0}return s}function UT(t,e,n){const r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,A=r[p*i+g];d+=t[_]*A}}s[u]=d}return s}const zT=function(t){let e=this.threshold(),n=OT(t,e);return n&&(n=BT(n,t.width,t.height),n=DT(n,t.width,t.height),n=UT(n,t.width,t.height),RT(t,n)),t};r0.Mask=zT;u4.Factory.addGetterSetter(MT.Node,"threshold",0,(0,IT.getNumberValidator)(),u4.Factory.afterSetFilter);var i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.Noise=void 0;const h4=at,GT=Yt,qT=Xe,VT=function(t){const e=this.noise()*255,n=t.data,r=n.length,i=e/2;for(let o=0;o<r;o+=4)n[o+0]+=i-2*i*Math.random(),n[o+1]+=i-2*i*Math.random(),n[o+2]+=i-2*i*Math.random()};i0.Noise=VT;h4.Factory.addGetterSetter(GT.Node,"noise",.2,(0,qT.getNumberValidator)(),h4.Factory.afterSetFilter);var o0={};Object.defineProperty(o0,"__esModule",{value:!0});o0.Pixelate=void 0;const d4=at,WT=en,HT=Yt,YT=Xe,KT=function(t){let e=Math.ceil(this.pixelSize()),n=t.width,r=t.height,i,o,s,a,l,u,d,p=Math.ceil(n/e),g=Math.ceil(r/e),h,w,_,A,v,S,y,N=t.data;if(e<=0){WT.Util.error("pixelSize value can not be <= 0");return}for(v=0;v<p;v+=1)for(S=0;S<g;S+=1){for(a=0,l=0,u=0,d=0,h=v*e,w=h+e,_=S*e,A=_+e,y=0,i=h;i<w;i+=1)if(!(i>=n))for(o=_;o<A;o+=1)o>=r||(s=(n*o+i)*4,a+=N[s+0],l+=N[s+1],u+=N[s+2],d+=N[s+3],y+=1);for(a=a/y,l=l/y,u=u/y,d=d/y,i=h;i<w;i+=1)if(!(i>=n))for(o=_;o<A;o+=1)o>=r||(s=(n*o+i)*4,N[s+0]=a,N[s+1]=l,N[s+2]=u,N[s+3]=d)}};o0.Pixelate=KT;d4.Factory.addGetterSetter(HT.Node,"pixelSize",8,(0,YT.getNumberValidator)(),d4.Factory.afterSetFilter);var s0={};Object.defineProperty(s0,"__esModule",{value:!0});s0.Posterize=void 0;const f4=at,XT=Yt,$T=Xe,QT=function(t){let e=Math.round(this.levels()*254)+1,n=t.data,r=n.length,i=255/e,o;for(o=0;o<r;o+=1)n[o]=Math.floor(n[o]/i)*i};s0.Posterize=QT;f4.Factory.addGetterSetter(XT.Node,"levels",.5,(0,$T.getNumberValidator)(),f4.Factory.afterSetFilter);var a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.RGB=void 0;const Wf=at,Hg=Yt,JT=Xe,ZT=function(t){let e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),s,a;for(s=0;s<n;s+=4)a=(.34*e[s]+.5*e[s+1]+.16*e[s+2])/255,e[s]=a*r,e[s+1]=a*i,e[s+2]=a*o,e[s+3]=e[s+3]};a0.RGB=ZT;Wf.Factory.addGetterSetter(Hg.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Wf.Factory.addGetterSetter(Hg.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Wf.Factory.addGetterSetter(Hg.Node,"blue",0,JT.RGBComponent,Wf.Factory.afterSetFilter);var l0={};Object.defineProperty(l0,"__esModule",{value:!0});l0.RGBA=void 0;const lh=at,c0=Yt,ej=Xe,tj=function(t){const e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),s=this.alpha();for(let a=0;a<n;a+=4){const l=1-s;e[a]=r*s+e[a]*l,e[a+1]=i*s+e[a+1]*l,e[a+2]=o*s+e[a+2]*l}};l0.RGBA=tj;lh.Factory.addGetterSetter(c0.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});lh.Factory.addGetterSetter(c0.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});lh.Factory.addGetterSetter(c0.Node,"blue",0,ej.RGBComponent,lh.Factory.afterSetFilter);lh.Factory.addGetterSetter(c0.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.Sepia=void 0;const nj=function(t){let e=t.data,n=e.length,r,i,o,s;for(r=0;r<n;r+=4)i=e[r+0],o=e[r+1],s=e[r+2],e[r+0]=Math.min(255,i*.393+o*.769+s*.189),e[r+1]=Math.min(255,i*.349+o*.686+s*.168),e[r+2]=Math.min(255,i*.272+o*.534+s*.131)};u0.Sepia=nj;var h0={};Object.defineProperty(h0,"__esModule",{value:!0});h0.Solarize=void 0;const rj=function(t){const e=t.data,n=t.width,r=t.height,i=n*4;let o=r;do{const s=(o-1)*i;let a=n;do{const l=s+(a-1)*4;let u=e[l],d=e[l+1],p=e[l+2];u>127&&(u=255-u),d>127&&(d=255-d),p>127&&(p=255-p),e[l]=u,e[l+1]=d,e[l+2]=p}while(--a)}while(--o)};h0.Solarize=rj;var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.Threshold=void 0;const p4=at,ij=Yt,oj=Xe,sj=function(t){const e=this.threshold()*255,n=t.data,r=n.length;for(let i=0;i<r;i+=1)n[i]=n[i]<e?0:255};d0.Threshold=sj;p4.Factory.addGetterSetter(ij.Node,"threshold",.5,(0,oj.getNumberValidator)(),p4.Factory.afterSetFilter);Object.defineProperty(_1,"__esModule",{value:!0});_1.Konva=void 0;const g4=W8,aj=P1,lj=E1,cj=M1,uj=I1,hj=F1,m4=uc,dj=bh,fj=Ac,pj=Sh,gj=B1,mj=D1,vj=U1,yj=z1,wj=Cc,bj=G1,_j=q1,Sj=V1,xj=H1,Aj=Y1,Nj=K1,Cj=X1,Pj=Q1,Lj=J1,kj=Z1,Ej=e0,Tj=t0,jj=n0,Mj=r0,Ij=i0,Fj=o0,Oj=s0,Rj=a0,Bj=l0,Dj=u0,Uj=h0,zj=d0;_1.Konva=g4.Konva.Util._assign(g4.Konva,{Arc:aj.Arc,Arrow:lj.Arrow,Circle:cj.Circle,Ellipse:uj.Ellipse,Image:hj.Image,Label:m4.Label,Tag:m4.Tag,Line:dj.Line,Path:fj.Path,Rect:pj.Rect,RegularPolygon:gj.RegularPolygon,Ring:mj.Ring,Sprite:vj.Sprite,Star:yj.Star,Text:wj.Text,TextPath:bj.TextPath,Transformer:_j.Transformer,Wedge:Sj.Wedge,Filters:{Blur:xj.Blur,Brighten:Aj.Brighten,Contrast:Nj.Contrast,Emboss:Cj.Emboss,Enhance:Pj.Enhance,Grayscale:Lj.Grayscale,HSL:kj.HSL,HSV:Ej.HSV,Invert:Tj.Invert,Kaleidoscope:jj.Kaleidoscope,Mask:Mj.Mask,Noise:Ij.Noise,Pixelate:Fj.Pixelate,Posterize:Oj.Posterize,RGB:Rj.RGB,RGBA:Bj.RGBA,Sepia:Dj.Sepia,Solarize:Uj.Solarize,Threshold:zj.Threshold}});var Gj=jg.exports;Object.defineProperty(Gj,"__esModule",{value:!0});const qj=_1;jg.exports=qj.Konva;var Vj=jg.exports;const Wt=Kf(Vj);class xh extends Wt.Shape{constructor(e,n,r,i){if(new.target===xh)throw new Error("Cannot instantiate abstract class BaseShape directly.");super(e),this.layer=n,this.blockSize=r,this._type="",this.snappable=i,this._info={},this.eventName="",this.infoText=null,this.floorNum,this.shadowForStrokeEnabled(!1),this.on("mouseover",()=>document.body.style.cursor="pointer"),this.on("mouseout",()=>document.body.style.cursor="default"),this.on("click",o=>{o.evt.altKey&&(this.moveToTop(),this.getLayer().find("Transformer").forEach(s=>s.moveToTop()))}),i&&(this.on("dragend",this.snapToGrid.bind(this)),this.on("dblclick",this.snapToGrid.bind(this))),this.on("transform",()=>{const o=this.scaleX(),s=this.scaleY();this.strokeWidth(1/Math.max(o,s))}),this.on("dragmove",()=>{this.infoText&&this.updateTextPosition()})}loadInfo(e){console.log("Abstract function")}initText(){this.textOffsetX=0,this.textOffsetY=-30,this.infoText=new Wt.Text({x:this.x()+this.textOffsetX,y:this.y()+this.textOffsetY,text:this._info.name,fontSize:12,fontFamily:"Exo",fill:"white"})}updateTextPosition(){this.infoText&&(this.infoText.x(this.x()+this.textOffsetX),this.infoText.y(this.y()+this.textOffsetY))}displayName(e){this.infoText&&(this.infoText.text(this._info.name),e.add(this.infoText))}destroy(){super.destroy(),this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}setInfo(e){this.info=e}load(){console.log("Abstract function")}_sceneFunc(e){let n=this.width(),r=this.height();e.beginPath(),e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}clearText(){this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}updateText(e){this.infoText.text=e,console.log("Updated text to : "+e)}snapToGrid(){this.position({x:Math.round(this.x()/this.blockSize)*this.blockSize,y:Math.round(this.y()/this.blockSize)*this.blockSize})}saveShapeDetails(){console.log("This shape does not contain information")}onPlace(){}get info(){return this._info}set info(e){this._info=e}get type(){return this._type}set type(e){this._type=e}}class Ro extends xh{constructor(e,n,r,i){if(new.target===Ro)throw new Error("Cannot instantiate abstract class NodeShape directly.");super(e,n,r,i),this.connectionLines=[],this.connLine=new Wt.Line({stroke:"rgba(245,37,37,0.85)",dash:[2,3],strokeWidth:2,lineCap:"round",lineJoin:"miter",opacity:.8}),this.connLine.cache(),this.on("dragmove",()=>{this.connectionLines.forEach(o=>{console.log("other",o.otherShape);let s=[this.x(),this.y(),o.otherShape.x(),o.otherShape.y()];o.line.points(s)})})}connect(e,n=!0){if(e.info.selectedPins.includes(this.info.name)||(console.log("vleze conn 2ds"),e.info.selectedPins.push(this.info.name)),!n)return;const r=this.connLine.clone({points:[this.x(),this.y(),e.x(),e.y()]});let i={line:r,otherShape:e};this.connectionLines.push(i);let o={line:r,otherShape:this};e.addLineReference(o),this.layer.add(i.line)}addLineReference(e){this.connectionLines.push(e)}removeLineWrapper(e){this.connectionLines=this.connectionLines.filter(n=>n.otherShape!==e)}removeConnection(e){this.info.selectedPins=this.info.selectedPins.filter(n=>n!==e.info.name)}removeConnectionLine(e){this.connectionLines.forEach(n=>{n.otherShape===e&&(n.line.remove(),e.removeLineWrapper(this),this.removeLineWrapper(e))})}destroy(){super.destroy(),this.connectionLines.forEach(e=>{e.line.remove(),e.otherShape.removeLineWrapper(this)})}}class Ea{static findAllByType(...e){return An.getShapes().filter(n=>e.includes(n.className))}static findNodeByName(e,n){return e.filter(r=>r instanceof Ro&&r.info.name===n)[0]}static findAllByTypeAndFloor(e,...n){return An.getShapes().filter(r=>n.includes(r.className)&&r.floorNum===e)}static getAllNodes(e=null){return An.getShapes(e).filter(n=>n instanceof Ro)}}class Ru{constructor(){return Ru.instance||(this.store={floors:{}},Ru.instance=this),Ru.instance}getShapes(e=null){return this.store.floors[e]||(this.store.floors[e]=[]),e!=null?this.store.floors[e]:Object.values(this.store.floors).flat()}add(e){console.log("floor: "+e.floorNum),this.store.floors[e.floorNum]||(this.store.floors[e.floorNum]=[]),this.store.floors[e.floorNum].push(e)}delete(e){const n=this.store.floors[e.floorNum];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}clear(e=null){if(e!=null){const n=this.store.floors[e];Array.isArray(n)&&(n.forEach(r=>r.destroy()),this.store.floors[e]=[])}else Object.keys(this.store.floors).forEach(n=>{const r=this.store.floors[n];Array.isArray(r)&&(r.forEach(i=>i.destroy()),this.store.floors[n]=[])})}updateConnections(){Object.values(this.store.floors).forEach(e=>{e.forEach(n=>{(n.className==="InfoPin"||n.className==="Entrance"||n.className==="Stairs")&&n.info.selectedPins.forEach(r=>{const i=e.find(o=>o.info.name===r);i&&(i.className==="InfoPin"||i.className==="Entrance"||i.className==="Stairs")&&(i.info.selectedPins.includes(n.info.name)||i.info.selectedPins.push(n.info.name))})})})}drawConnection(e,n){const r=Object.values(this.store.floors).flat().find(o=>o instanceof Ro&&o.info.name===e),i=Object.values(this.store.floors).flat().find(o=>o instanceof Ro&&o.info.name===n);console.log("NODE1: "+JSON.stringify(r)),console.log("NODE2: "+JSON.stringify(i)),r&&i?(r.connect(i),console.log("N1",r.info.selectedPins,"N2",i.info.selectedPins)):console.error("Cant find node1 or node 2.","Node1: "+r,"Node2: "+i)}removeConnection(e,n){let r=Object.values(this.store.floors).flat(),i=Ea.findNodeByName(r,e),o=Ea.findNodeByName(r,n);i.floorNum===o.floorNum&&i.removeConnectionLine(o),Object.values(this.store.floors).flat().filter(s=>s.info.name===e||s.info.name===n).forEach(s=>{s.info.name===e?s.info.selectedPins=s.info.selectedPins.filter(a=>a!==n):s.info.selectedPins=s.info.selectedPins.filter(a=>a!==e)}),console.log("Remove")}saveDetails(){Object.values(this.store.floors).flat().forEach(e=>{e.saveShapeDetails(),console.log(e.info)})}}const An=new Ru;Object.freeze(An);class Yg extends Ro{constructor(e,n){e.fromLoad||(e.height*=2),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(126,238,167)",stroke:"#252627",strokeWidth:1,opacity:.9,name:"mapObj",draggable:!0,rotation:e.rotation,zIndex:1},e.layer,e.blockSize,e.snap),this.type="Entrance",this.eventName="openEntranceModalEvent",this.floorNum=e.floorNum,this.id=n,this._info={name:`Entrance${n} [${this.floorNum}F]`,connectedRoom:"",description:"",isMainEntrance:!1,selectedPin:"",selectedPins:[]},this.initText(),this.moveToTop(),console.log("room CONNECT: "+e.connected_room,this.info.connectedRoom+"CON"),console.log("entrance: "+this.info.name)}loadInfo(e){this.info.name=e.obj_name??`Entrance${this.id} [${this.floorNum}F]`,this.info.connectedRoom=e.connected_room??"",this.info.description=e.description??"",this.info.isMainEntrance=e.is_main_entrance??!1,this.info.selectedPins=e.connected_pins??[]}saveShapeDetails(){console.info("fnum entrance",this.attrs.floorNum),this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("obj_name",this.info.name),this.setAttr("description",this.info.description),this.setAttr("is_main_entrance",this.info.isMainEntrance),this.setAttr("connected_room",this.info.connectedRoom),this.setAttr("floor_num",this.floorNum)}connect(e,n=!0){this.floorNum===e.floorNum&&super.connect(e)}setInfo(e){this.info=e,this.setHighlight()}setHighlight(){console.log("info room: "+this.info.connectedRoom),this.info.connectedRoom==null||this.info.connectedRoom===""?(console.log("vleze if"),this.strokeWidth(2),this.stroke("#8a000d")):(this.strokeWidth(1),this.stroke("black"))}onPlace(){Ea.findAllByTypeAndFloor(this.floorNum,"Room").forEach(e=>{Wt.Util.haveIntersection(e.getClientRect(),this.getClientRect())&&(this.info.connectedRoom=e.info.name)}),this.setHighlight()}}Yg.prototype.className="Entrance";$e._registerNode(Yg);class Kg extends xh{constructor(e){e.fromLoad||(e.height*=8),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"#d3d3d3",stroke:"grey",strokeWidth:1,name:"mapObj",draggable:!0,rotation:e.rotation,zIndex:0},e.layer,e.blockSize,e.snap),this.type="Wall",this.floorNum=e.floorNum}loadInfo(e){this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("floor_num",this.floorNum)}}Kg.prototype.className="Wall";$e._registerNode(Kg);class Xg extends xh{constructor(e,n){e.fromLoad||(e.width*=12,e.height*=8),console.log(e.position,"hehe"),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(86,168,253)",stroke:"grey",strokeWidth:1,name:"mapObj",rotation:e.rotation,draggable:!0},e.layer,e.blockSize,e.snap),this.floorNum=e.floorNum,this._info={name:`Room${n} [${this.floorNum}F]`,type:"",description:""},this.type="Room",this.eventName="openRoomModalEvent",this.id=n,this.initText()}loadInfo(e){this.info.name=e.obj_name,this.info.type=e.room_type,this.info.description=e.description,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("obj_name",this.info.name),this.setAttr("room_type",this.info.type),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum)}}Xg.prototype.className="Room";$e._registerNode(Xg);class $g extends Ro{constructor(e,n){e.snap=!1,super({x:e.position.x,y:e.position.y,radiusX:e.blockSize*.5,radiusY:e.blockSize*.7,tailHeight:e.blockSize*1.2,fill:"#f60000",stroke:"#1b1b1b",strokeWidth:1,draggable:!0,name:"mapObj"},e.layer,e.blockSize,e.snap),this.id=n,this.eventName="openPinModalEvent",this.floorNum=e.floorNum,this.type="InfoPin",this._info={name:`Pin${n} [${this.floorNum}F]`,selectedPins:[],description:""},this.on("mouseover",()=>{this.fill("#FFD700")}),this.on("mouseout",()=>{this.fill("#f60000")}),this.initText()}_sceneFunc(e,n){const{radiusX:r,radiusY:i,tailHeight:o}=this.attrs;e.beginPath(),e.ellipse(0,0,r,i,0,0,Math.PI*2),e.closePath(),e.fillStrokeShape(n),e.beginPath(),e.moveTo(-r,i),e.lineTo(0,i+o),e.lineTo(r,i),e.closePath(),e.fillStrokeShape(n)}loadInfo(e){this.info.name=e.obj_name,this.info.selectedPins=e.connected_pins,this.info.description=e.description,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("obj_name",this.info.name),this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum),console.log(this.info,"vnatre vo info")}connect(e,n=!0){this.floorNum===e.floorNum&&super.connect(e)}}$g.prototype.className="InfoPin";$e._registerNode($g);class Pc extends Wt.Shape{constructor(e){if(new.target===Pc)throw new Error("Cannot instantiate abstract class RenderedMapShape directly.");super(e),this.info={name:"",description:"",type:""},this.class="Rect",this.infoText=null,this.textOffsetX=0,this.textOffsetY=0,this.eventName=""}initText(){const e=this.width(),n=this.height();this.infoText=new Wt.Text({x:this.x(),y:this.y(),text:this.info.name||"no name",fontSize:10,fontFamily:"Exo",fill:"black",align:"center",verticalAlign:"middle"}),this.infoText.offsetX(this.infoText.width()/2),this.infoText.offsetY(this.infoText.height()/2),this.infoText.x(this.x()+e/2),this.infoText.y(this.y()+n/2),this.infoText.rotation(this.rotation())}updateTextPosition(){this.infoText&&(this.infoText.x(this.x()+this.textOffsetX),this.infoText.y(this.y()+this.textOffsetY))}clearText(){this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}_sceneFunc(e){let n=this.width(),r=this.height();const i=this.attrs.cornerRadius;e.beginPath(),i?Wt.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}displayName(e){this.infoText!=null&&e.add(this.infoText)}}class Qg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#A2D9FF",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3}),console.info("FNUM RENDER:",e.floor_num),this.floorNum=e.floor_num,this.info.name=e.obj_name,this.info.type=e.room_type,this.info.description=e.description,this.class="Room",this.textOffsetX=-50,this.eventName="openRoomInfoPanel",this.on("mouseenter",()=>{console.log(this.info.name,"NAME"),this.fill("#65c3f8")}),this.on("mouseleave",()=>{this.fill("#A2D9FF")}),this.initText()}highlight(){this.fill("rgba(29,238,78,0.49)"),this.strokeWidth(2)}unHighlight(){this.fill("#A2D9FF"),this.strokeWidth(1)}}Qg.prototype.className="RenderedRoom";$e._registerNode(Qg);class Jg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#7fef83",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3,zIndex:0}),this.info.name=e.obj_name,this.info.description=e.description,this.info.isMainEntrance=e.is_main_entrance,this.floorNum=e.floor_num,this.class="Entrance",console.log("ATTRS VIEW:  "+e),this.on("mouseenter",()=>{this.stroke("purple")}),this.on("mouseleave",()=>{this.opacity(1),this.stroke("black")})}}Jg.prototype.className="RenderedEntrance";$e._registerNode(Jg);class Zg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#4B4B4B",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3})}}Zg.prototype.className="RenderedWall";$e._registerNode(Zg);class em extends Ro{constructor(e,n){e.fromLoad||(e.width*=4),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(225,213,124)",stroke:"rgb(16,15,15)",strokeWidth:1,name:"mapObj",rotation:e.rotation,draggable:!0},e.layer,e.blockSize,e.snap),this.floorNum=e.floorNum,this.type="Stairs",this._info={name:`Stairs${n} [${this.floorNum}F]`,description:"",selectedPins:[]},this.id=n,this.eventName="openStairsModalEvent",this.initText()}_sceneFunc(e,n){const{width:r,height:i}=this.attrs;let o=5;e.beginPath();for(let s=0;s<o;s++)e.rect(-this.blockSize*s,this.blockSize*.6*s,r*.86,i/2),e.fillStrokeShape(n);e.closePath()}loadInfo(e){this.info.name=e.obj_name,this.info.description=e.description,this.info.selectedPins=e.connected_pins,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("obj_name",this.info.name),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum)}connect(e,n=!0){let r=this.floorNum===e.floorNum;super.connect(e,r)}}em.prototype.className="Stairs";$e._registerNode(em);class tm extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"rgb(199,190,133)",stroke:"rgb(16,15,15)",strokeWidth:1,name:"mapObj",rotation:e.rotation}),this.floorNum=e.floor_num,this.info.name=e.obj_name}_sceneFunc(e,n){const{width:r,height:i}=this.attrs;let o=5,s=10;e.beginPath();for(let a=0;a<o;a++)e.rect(-s*a,s*.6*a,r*.86,i/2),e.fillStrokeShape(n);e.closePath()}}tm.prototype.className="RenderedStairs";$e._registerNode(tm);const Pw={infoPin:0,wall:0,entrance:0,room:0,stairs:0},Dd=t=>{Pw[t]++},Ud=t=>Pw[t];class ya{static createShape(e,n){console.log(n,"attrs in factory"),console.log("position in factory: "+n.position.x);let r=n.scaleX?parseFloat(n.scaleX):1,i=n.scaleY?parseFloat(n.scaleY):1;switch(n.scaleX=r,n.scaleY=i,e){case"Entrance":return n.increment&&Dd("entrance"),new Yg(n,Ud("entrance"));case"Room":return n.increment&&Dd("room"),new Xg(n,Ud("room"));case"Wall":return new Kg(n);case"InfoPin":return n.increment&&Dd("infoPin"),new $g(n,Ud("infoPin"));case"Stairs":return n.increment&&Dd("stairs"),new em(n,Ud("stairs"));default:throw new Error("Invalid shape type: "+e)}}static createRenderedShape(e,n){let r=n.scaleX?parseFloat(n.scaleX):1,i=n.scaleY?parseFloat(n.scaleY):1;switch(n.width*=r,n.height*=i,console.log("SCALEX "+r),console.log("SCALEY "+i),e){case"Entrance":return new Jg(n,r,i);case"Room":return new Qg(n,r,i);case"Wall":return new Zg(n,r,i);case"Stairs":return new tm(n,r,i);default:throw new Error("Invalid shape type."+e)}}}const Lw=(t,e,n=!1)=>{if(n&&!t.evt.shiftKey)return;t.evt.preventDefault();const r=t.evt.deltaY>0?.85:1.2,i=e.scaleX();let o=i*r;const s=e.getRelativePointerPosition();let a={x:(s.x-e.x())/i,y:(s.y-e.y())/i};e.scale({x:o,y:o});let l={x:s.x-a.x*o,y:s.y-a.y*o};e.position(l),e.batchDraw()},lf=(t,e,n)=>{t.on(n,()=>{const r=t.eventName;if(r){const i={room:t,map:e},o=new CustomEvent(r,{detail:i});window.dispatchEvent(o)}})};class nm{constructor(e,n,r){this.container=document.getElementById(e),this.stage=new Wt.Stage({container:e,width:this.container.clientWidth,height:this.container.clientHeight}),this._floorNum=n,this.mapName=r,this.gridLayer=new Wt.Layer,this.mainLayer=new Wt.Layer,this.dragLayer=new Wt.Layer,this.infoPinLayer=new Wt.Layer,this.prioLayer=new Wt.Layer,this.textLayer=new Wt.Layer,this.gridLayer.listening(!1),this.isDrawEventBound=!1,this.othStairs=[],this.blockSize=10,this.efficientDrawingMode=!1,this.roomTypes=[],this.gridLine=new Wt.Line({points:[],stroke:"grey",strokeWidth:1,opacity:.3}),this.gridLine.cache(),this.mainTransformer=new Wt.Transformer({centeredScaling:!1,rotationSnaps:[0,90,180,270],anchorSize:5,padding:2,anchorFill:"#f6031f",borderStroke:"black",anchorStroke:"black",cornerRadius:20,anchorCornerRadius:10,anchorDragBoundFunc:this.transformerSnapFunc()}),this.selectionRectangle=new Wt.Rect({fill:"rgba(56,194,245,0.5)",visible:!1,listening:!1,zIndex:100}),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.selecting=!1,this.initialize()}initialize(){this.drawGrid(),this.mainLayer.add(this.mainTransformer),this.mainLayer.add(this.selectionRectangle),this.stage.add(this.gridLayer),this.stage.add(this.dragLayer),this.stage.add(this.mainLayer),this.stage.add(this.infoPinLayer),this.stage.add(this.textLayer),this.setupEventListeners()}setupEventListeners(){document.getElementById("shapeOptions").addEventListener("click",this.selectShape.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),this.boundEscapeEventListener=this.handleExitSelection.bind(this),this.boundDeleteEventListener=this.handleDelete.bind(this),this.boundRotateShapeEventListener=this.rotateShapesBy90Deg.bind(this),this.boundEfficientDrawingModeEventListener=this.toggleEfficientDrawingMode.bind(this),this.attachKeyPressEventListeners(),this.stage.on("mousedown touchstart",this.handleMouseDown.bind(this)),this.stage.on("mousemove touchmove",this.handleMouseMove.bind(this)),this.stage.on("mouseup touchend",this.handleMouseUp.bind(this)),this.stage.on("click tap",this.handleStageClick.bind(this)),this.stage.on("contextmenu",this.placeInfoPin.bind(this)),this.stage.on("dragmove",this.dragStage.bind(this)),this.stage.on("wheel",this.zoom.bind(this))}detachKeyPressEventListeners(){console.log("DETACH"),window.removeEventListener("keydown",this.boundEscapeEventListener),window.removeEventListener("keydown",this.boundDeleteEventListener),window.removeEventListener("keydown",this.boundRotateShapeEventListener),window.removeEventListener("keydown",this.boundEfficientDrawingModeEventListener)}attachKeyPressEventListeners(){console.log("ATTACH"),window.addEventListener("keydown",this.boundEscapeEventListener),window.addEventListener("keydown",this.boundDeleteEventListener),window.addEventListener("keydown",this.boundRotateShapeEventListener),window.addEventListener("keydown",this.boundEfficientDrawingModeEventListener)}dragStage(e){e.evt.shiftKey&&this.drawGrid()}transformerSnapFunc(){return(e,n)=>{if(this.mainTransformer.getActiveAnchor()==="rotater"||Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))>8)return n;const o=Math.round(n.x/this.blockSize)*this.blockSize,s=Math.abs(n.x-o),a=Math.round(n.y/this.blockSize)*this.blockSize,l=Math.abs(n.y-a),u=s<8,d=l<8;return u&&!d?{x:o,y:e.y}:!u&&d?{x:e.x,y:a}:u&&d?{x:o,y:a}:n}}handleResize(){this.stage.width(this.container.offsetWidth),this.stage.height(this.container.offsetHeight),this.drawGrid()}zoom(e){Lw(e,this.stage,!0),this.drawGrid()}get floorNum(){return this._floorNum}set floorNum(e){this._floorNum=e}drawGrid(){this.gridLayer.destroyChildren();let e=this.stage.width(),n=this.stage.height(),r=this.stage.getAbsoluteTransform().copy().invert(),i=r.point({x:0,y:0}),o=r.point({x:e,y:n}),s=Math.floor(i.x/this.blockSize)*this.blockSize,a=Math.floor(i.y/this.blockSize)*this.blockSize,l=Math.ceil(o.x/this.blockSize)*this.blockSize,u=Math.ceil(o.y/this.blockSize)*this.blockSize;for(let d=s;d<=l;d+=this.blockSize){let p=this.gridLine.clone({points:[d+.5,i.y-this.blockSize,d+.5,o.y+this.blockSize]});p.transformsEnabled("position"),p.perfectDrawEnabled(!1),p.shadowForStrokeEnabled(!1),this.gridLayer.add(p)}for(let d=a;d<=u;d+=this.blockSize){let p=this.gridLine.clone({points:[i.x-this.blockSize,d+.5,o.x+this.blockSize,d+.5]});p.perfectDrawEnabled(!1),p.shadowForStrokeEnabled(!1),p.transformsEnabled("position"),this.gridLayer.add(p)}this.mainLayer.moveToTop(),this.infoPinLayer.moveToTop(),this.gridLayer.batchDraw()}placeInfoPin(e){e.evt.preventDefault();const r={type:"InfoPin",position:this.stage.getRelativePointerPosition(),blockSize:this.blockSize,layer:this.mainLayer,rotation:0,scaleX:1,scaleY:1,increment:!0,floorNum:this.floorNum};let i=ya.createShape("InfoPin",r);lf(i,this,"dblclick"),An.add(i),this.mainLayer.add(i),i.displayName(this.textLayer),Ql(),console.log(i.name())}toggleEfficientDrawingMode(e){(e.key==="e"||e.key==="E")&&(this.efficientDrawingMode=!this.efficientDrawingMode,console.log("EFFICIENT DRAWING MODE is: ",this.efficientDrawingMode),this.efficientDrawingMode||this.stopDrawing())}placeShape(){const n={position:this.stage.getRelativePointerPosition(),width:this.blockSize,height:this.blockSize,layer:this.mainLayer,rotation:this.hoverObj.rotation(),scaleX:1,scaleY:1,increment:!0,snap:!0,fromLoad:!1,blockSize:this.blockSize,floorNum:this.floorNum},r=ya.createShape(this.hoverObj.type,n);r&&(console.info("ATTRS FNUM",n.floorNum),this.mainLayer.add(r),An.add(r),lf(r,this,"dblclick"),this.mainLayer.draw(),r.displayName(this.textLayer),r.snapToGrid(),r.onPlace(),Ql(),this.efficientDrawingMode||this.stopDrawing(),this.mainTransformer.nodes([]))}stopDrawing(){this.isDrawEventBound&&(this.mainTransformer.nodes([]),this.hoverObj!=null&&this.hoverObj.remove(),this.dragLayer.removeChildren(),this.stage.off("mousemove",this.boundMouseMoveHandler),this.stage.off("click",this.boundPlaceShapeHandler),this.isDrawEventBound=!1)}mouseMoveHandler(){const e=this.stage.getRelativePointerPosition();this.hoverObj.position({x:e.x,y:e.y}),this.hoverObj.visible(!0)}startDrawing(e){const n={position:{x:0,y:0},width:this.blockSize,height:this.blockSize,layer:this.mainLayer,rotation:0,scaleX:1,scaleY:1,increment:!1,snap:!0,fromLoad:!1,blockSize:this.blockSize};this.hoverObj=ya.createShape(e,n),console.log("HOVBER OBK:",this.hoverObj),this.hoverObj.visible(!1),this.dragLayer.add(this.hoverObj),this.dragLayer.moveToTop(),this.boundMouseMoveHandler=this.mouseMoveHandler.bind(this),this.boundPlaceShapeHandler=this.placeShape.bind(this),this.isDrawEventBound=!0,this.stage.on("mousemove",this.boundMouseMoveHandler),this.stage.on("click",this.boundPlaceShapeHandler)}selectShape(e){if(e.target.tagName==="LI"){this.stopDrawing();const n=e.target.getAttribute("data-info");this.startDrawing(n),this.mainTransformer.nodes([])}}rotateShapesBy90Deg(e){(e.key==="r"||e.key==="R")&&(this.hoverObj&&this.hoverObj.rotate(90),this.mainTransformer.nodes().forEach(n=>{n.rotate(90)}))}handleDelete(e){e.key==="Delete"&&(this.mainTransformer.nodes().forEach(n=>{n.remove(),n.destroy(),An.delete(n),Ql()}),this.mainTransformer.nodes([]),this.mainLayer.batchDraw())}handleExitSelection(e){e.key==="Escape"&&(this.mainTransformer.nodes([]),this.stopDrawing())}handleMouseDown(e){this.stage.draggable(e.evt.shiftKey),e.target===this.stage&&(e.evt.preventDefault(),this.x1=this.stage.getRelativePointerPosition().x,this.y1=this.stage.getRelativePointerPosition().y,this.x2=this.stage.getRelativePointerPosition().x,this.y2=this.stage.getRelativePointerPosition().y,this.selectionRectangle.width(0),this.selectionRectangle.height(0),this.selecting=!0)}handleMouseMove(e){this.selecting&&(e.evt.preventDefault(),this.x2=this.stage.getRelativePointerPosition().x,this.y2=this.stage.getRelativePointerPosition().y,this.selectionRectangle.setAttrs({visible:!0,x:Math.min(this.x1,this.x2),y:Math.min(this.y1,this.y2),width:Math.abs(this.x2-this.x1),height:Math.abs(this.y2-this.y1)}))}handleMouseUp(e){if(this.selecting=!1,this.stage.draggable(!1),!this.selectionRectangle.visible())return;e.evt.preventDefault(),this.selectionRectangle.visible(!1);const n=this.stage.find(".mapObj"),r=this.selectionRectangle.getClientRect(),i=n.filter(o=>Wt.Util.haveIntersection(r,o.getClientRect()));this.mainTransformer.nodes(i),console.log(this.mainTransformer.nodes())}saveShapeDetails(){return An.saveDetails(),console.log("thisflornum",this.floorNum),{shapes:An.getShapes(this.floorNum),roomTypes:JSON.stringify(this.roomTypes),mapName:this.mapName,floorNum:this.floorNum}}handleStageClick(e){if(this.selectionRectangle.visible()){console.log("STAGECLICK1");return}if(e.target===this.stage){console.log("STAGECLICK2"),this.mainTransformer.nodes([]);return}if(!e.target.hasName("mapObj")){console.log("STAGECLICK3");return}const n=e.evt.shiftKey||e.evt.ctrlKey||e.evt.metaKey,r=this.mainTransformer.nodes().indexOf(e.target)>=0;if(!n&&!r)this.mainTransformer.nodes([e.target]),console.log("Sel 1");else if(n&&r){const i=this.mainTransformer.nodes().slice();i.splice(i.indexOf(e.target),1),this.mainTransformer.nodes(i)}else if(n&&!r){const i=this.mainTransformer.nodes().concat([e.target]);this.mainTransformer.nodes(i)}}addRoomType(e){this.roomTypes.push(e)}removeRoomType(e){this.roomTypes=this.roomTypes.filter(n=>n!==e)}drawConnection(e,n){An.drawConnection(e,n)}removeConnection(e,n){An.removeConnection(e,n)}updateRoomNames(){this.textLayer.removeChildren(),An.getShapes(this.floorNum).forEach(e=>{e.displayName(this.textLayer)})}clearMap(){this.mainLayer.removeChildren(),this.hoverObj=null}loadNewFloor(e){this._floorNum=e==null?void 0:e.num;let n=e==null?void 0:e.mapData;n==null||n===""||(this.deserializeMap(n),An.getShapes(this.floorNum).forEach(r=>{this.mainLayer.add(r)}))}deserializeMap(e){console.log("DESERIALIZING: ",e),An.clear(this.floorNum),e!=null&&(JSON.parse(e).forEach(i=>{const o={position:{x:i.attrs.x,y:i.attrs.y},width:i.attrs.width,height:i.attrs.height,layer:this.mainLayer,blockSize:this.blockSize,rotation:i.attrs.rotation,scaleX:i.attrs.scaleX,scaleY:i.attrs.scaleY,increment:!1,snap:!0,fromLoad:!0,floorNum:this.floorNum},s=ya.createShape(i.className,o);s.loadInfo(i.attrs),An.add(s),lf(s,this,"dblclick")}),An.getShapes(this.floorNum).filter(i=>i.className==="InfoPin"||i.className==="Entrance"||i.className==="Stairs").forEach(i=>{let o=i.info.selectedPins;o&&o.forEach(s=>{console.log("CONN node1: "+i+"conn node2: "+s),this.drawConnection(i.info.name,s)})})),this.mainTransformer.nodes([]),this.mainLayer.add(this.mainTransformer),this.mainLayer.add(this.selectionRectangle),An.getShapes(this.floorNum).forEach(n=>{n.displayName(this.textLayer),n.className==="Entrance"&&n.setHighlight()})}}function Wj({shapeInfo:t,availableRooms:e,updateModalData:n}){return x.jsxs("div",{className:Xt.formGroup,children:[x.jsx("label",{htmlFor:"connectedRoom",children:"Select room associated with entrance:"}),x.jsxs("select",{id:"connectedRoom",name:"connectedRoom",value:t.connectedRoom,onChange:n,required:!0,children:[x.jsx("option",{value:"",children:"Select Room"}),e.map((r,i)=>x.jsx("option",{value:r.info.name,children:r.info.name},i))]})]})}function rm({connections:t,removePinFromList:e}){return re.useEffect(()=>{console.log("CONNNECTIONS: "+t)},[]),x.jsxs(x.Fragment,{children:[x.jsx("h3",{children:"Connections:"}),x.jsx("ul",{className:Xt.pinList,children:t.length>0?t.map((n,r)=>x.jsxs("li",{className:Xt.pinItem,children:[n,x.jsx("button",{onClick:()=>e(n),className:Xt.removeButton,children:"Remove"})]},r)):x.jsx("li",{children:"No connections added"})}),x.jsx("br",{})]})}function Hj({shapeInfo:t,updateModalData:e}){return x.jsxs("div",{className:Xt.formGroupCheckbox,children:[x.jsx("input",{type:"checkbox",id:"isMainEntrance",name:"isMainEntrance",checked:t.isMainEntrance,onChange:e}),x.jsx("label",{htmlFor:"isMainEntrance",style:{color:"white"},children:"Main Entrance"})]})}function im(t,e,n){const[r,i]=re.useState([]);return{connectionState:{connections:r,setConnections:i},handlers:{addConnection:()=>{!e.selectedPin||r.includes(e.selectedPin)||i(a=>{const l=[...a,e.selectedPin];return n(u=>({...u,selectedPin:"",selectedPins:l})),console.log(e.name,e.selectedPin,"TEST"),t.drawConnection(e.name,e.selectedPin),l})},removeConnection:a=>{i(l=>{const u=l.filter(d=>d!==a);return n(d=>({...d,selectedPins:u})),u}),t.removeConnection(e.name,a)}}}}function f0({shapeInfo:t,updateModalData:e,addConnection:n,availableShapes:r}){return console.log("shapes modal",r),x.jsxs("div",{className:Xt.formGroup,children:[x.jsx("label",{htmlFor:"selectedPin",children:"Select connections:"}),x.jsxs("select",{id:"selectedPin",name:"selectedPin",value:t.selectedPin,onChange:e,children:[x.jsx("option",{value:"",children:"Select Connection"}),r.filter(i=>!i.info.selectedPins.includes(t.name)&&i.info.name!==""&&i.info.name!==t.name).map((i,o)=>x.jsx("option",{value:i.info.name,children:i.info.name},o))]}),x.jsx("button",{type:"button",onClick:n,className:Xt.addButton,children:"Add Connection"})]})}f0.propTypes={shapeInfo:Sa.object,updateModalData:Sa.func,addConnection:Sa.func};function kw({map:t}){const{modalState:{isOpen:e,setIsOpen:n,shape:r,setShape:i,shapeInfo:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t),{connectionState:{connections:d,setConnections:p},handlers:{addConnection:g,removeConnection:h}}=im(t,o,s);return b1(w=>{const _=w.detail.room;i(_),s({..._.info,selectedPin:""});const A=_.info.selectedPins||[];p(A),n(!0),w.detail.map.detachKeyPressEventListeners(),console.log(A,"Loaded pins on modal open")},"openEntranceModalEvent"),x.jsxs(y1,{isOpen:e,toggleModal:a,title:"Enter Entrance Details",children:[x.jsx(g1,{shapeInfo:o,updateModalData:l}),x.jsx(Wj,{shapeInfo:o,availableRooms:Ea.findAllByTypeAndFloor(r==null?void 0:r.floorNum,"Room"),updateModalData:l}),x.jsx(f0,{availableShapes:Ea.findAllByTypeAndFloor(t==null?void 0:t.floorNum,"Entrance","InfoPin"),addConnection:g,updateModalData:l,shapeInfo:o}),x.jsx(rm,{connections:d,removePinFromList:h}),x.jsx(m1,{shapeInfo:o,updateModalData:l}),x.jsx(Hj,{shapeInfo:o,updateModalData:l}),x.jsx(v1,{saveDetails:u})]})}kw.propTypes={map:Sa.instanceOf(nm)};const Yj="_activeModal_xoq0w_3",Kj="_modal_xoq0w_7",Xj="_overlay_xoq0w_8",$j="_title_xoq0w_23",Qj="_paragraph_xoq0w_27",Jj="_modalContent_xoq0w_31",Zj="_btnModal_xoq0w_51",eM="_iconImage_xoq0w_78",tM="_closeModal_xoq0w_83",nM="_form_xoq0w_99",rM="_formGroup_xoq0w_104",iM="_submitButton_xoq0w_135",ls={activeModal:Yj,modal:Kj,overlay:Xj,title:$j,paragraph:Qj,modalContent:Jj,btnModal:Zj,iconImage:eM,closeModal:tM,form:nM,formGroup:rM,submitButton:iM};function oM(){const[t,e]=re.useState(!1),n=()=>{e(!t)};return x.jsxs(x.Fragment,{children:[x.jsx("button",{onClick:n,className:ls.btnModal}),t&&x.jsxs("div",{className:ls.modal,children:[x.jsx("div",{onClick:n,className:ls.overlay}),x.jsxs("div",{className:ls.modalContent,children:[x.jsx("h2",{className:ls.title,children:"How to Use the Map Builder"}),x.jsx("p",{className:ls.paragraph,children:"Welcome to the Map Builder! Here you can create an indoor map, render it and enjoy!:"}),x.jsx("br",{}),x.jsxs("ul",{children:[x.jsx("h3",{children:"Shapes and Placement"}),x.jsx("li",{children:"There are 4 types of shapes : Walls, Rooms, Entrances and Pins. "}),x.jsx("li",{children:"By clicking on a shape's respective icon, that shape will follow your mouse untill you place it by clicking anywhere on the canvas"}),x.jsx("li",{children:"Placed shapes automatically get snapped in place, with respect to the grid"}),x.jsx("li",{children:"You can place a pin on the canvas by right clicking and then left clicking - imat bug tuka nekogas direktno se postavuvaat"}),x.jsx("br",{}),x.jsx("h3",{children:"Adding information"}),x.jsx("li",{children:"By double clicking on any shape (except a Wall), you can add information to the shape"}),x.jsx("li",{children:"Every shape holds basic information like a name, and more advanced information for navigation aswell"}),x.jsx("br",{}),x.jsx("li",{children:"To explore map building in detail you can check our own wiki page. TODO"})]}),x.jsx("br",{}),x.jsx("p",{className:ls.paragraph,children:"After completing your map, click the render button and go to the View page to see your full featured map!"}),x.jsx("button",{className:ls.closeModal,onClick:n,children:"CLOSE"})]})]})]})}const sM="_activeModal_hib35_2",aM="_modal_hib35_7",lM="_overlay_hib35_8",cM="_modalContent_hib35_24",uM="_btnModal_hib35_47",hM="_closeModal_hib35_64",dM="_form_hib35_81",fM="_formGroup_hib35_87",pM="_addButton_hib35_122",gM="_roomTypeList_hib35_137",mM="_roomTypeItem_hib35_144",vM="_removeButton_hib35_156",_i={activeModal:sM,modal:aM,overlay:lM,modalContent:cM,btnModal:uM,closeModal:hM,form:dM,formGroup:fM,addButton:pM,roomTypeList:gM,roomTypeItem:mM,removeButton:vM};function yM({map:t,roomTypes:e,addRoomTypeDB:n}){const[r,i]=re.useState(!1),[o,s]=re.useState(""),a=()=>{i(!r)},l=async()=>{await n(o),s("")},u=d=>{const{name:p,value:g}=d.target;s(g)};return x.jsxs(x.Fragment,{children:[x.jsx("button",{onClick:a,className:_i.btnModal,children:"Room Types"}),r&&x.jsxs("div",{className:_i.modal,children:[x.jsx("div",{onClick:a,className:_i.overlay}),x.jsxs("div",{className:_i.modalContent,children:[x.jsx("h2",{style:{color:"white"},children:"Manage Room Types"}),x.jsx("form",{className:_i.form,children:x.jsxs("div",{className:_i.formGroup,children:[x.jsx("label",{htmlFor:"roomTypeName",children:"Add New Room Type:"}),x.jsx("input",{type:"text",id:"roomTypeName",name:"roomTypeName",value:o,onChange:u,placeholder:"Enter a new room type (e.g., Office, Classroom)"}),x.jsx("button",{type:"button",className:_i.addButton,onClick:l,children:"Add Type"})]})}),x.jsx("h3",{children:"Available Room Types:"}),x.jsx("ul",{className:_i.roomTypeList,children:e.length>0?e.map((d,p)=>x.jsxs("li",{className:_i.roomTypeItem,children:[d.name,x.jsx("button",{className:_i.removeButton,children:"Remove"})]},p)):x.jsx("li",{children:"No room types available"})}),x.jsx("button",{className:_i.closeModal,onClick:a,children:"CLOSE"})]})]})]})}function Ew({map:t}){const{modalState:{isOpen:e,shapeInfo:n,shape:r,setIsOpen:i,setShape:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t),{connectionState:{connections:d,setConnections:p},handlers:{addConnection:g,removeConnection:h}}=im(t,n,s);return b1(w=>{const _=w.detail.room;o(_),s({..._.info,selectedPin:""}),p(_.info.selectedPins||[]),i(!0),w.detail.map.detachKeyPressEventListeners(),console.log(_.info.selectedPins,"Loaded pins on modal open")},"openPinModalEvent"),x.jsxs(y1,{isOpen:e,toggleModal:a,title:"Enter Pin Details",children:[x.jsx(g1,{shapeInfo:n,updateModalData:l}),x.jsx(f0,{shapeInfo:n,availableShapes:Ea.findAllByTypeAndFloor(t==null?void 0:t.floorNum,"Stairs","InfoPin","Entrance"),updateModalData:l,addConnection:g}),x.jsx(rm,{connections:d,removePinFromList:h}),x.jsx(m1,{shapeInfo:n,updateModalData:l}),x.jsx(v1,{saveDetails:u})]})}Ew.propTypes={map:Sa.instanceOf(nm)};const wM="_saveMapContainer_1k6lk_1",bM="_saveMapForm_1k6lk_8",_M="_saveMapInput_1k6lk_15",SM="_saveMapButton_1k6lk_22",$p={saveMapContainer:wM,saveMapForm:bM,saveMapInput:_M,saveMapButton:SM},xM=({submitHandler:t})=>{re.useState("");const e=n=>{n.preventDefault(),Ql()};return x.jsx(x.Fragment,{children:x.jsx("div",{className:$p.saveMapContainer,children:x.jsx("form",{onSubmit:e,className:$p.saveMapForm,children:x.jsx("div",{children:x.jsx("button",{type:"submit",className:$p.saveMapButton,children:"Save Map"})})})})})};function AM({map:t}){const{modalState:{isOpen:e,setIsOpen:n,setShape:r,shapeInfo:i,setShapeInfo:o},handlers:{toggleModal:s,updateModalData:a,saveDetails:l}}=w1(t),{connectionState:{connections:u,setConnections:d},handlers:{addConnection:p,removeConnection:g}}=im(t,i,o);return b1(h=>{const w=h.detail.room;r(w),o(w.info),console.log("stairs connections shape info: "+w.info.selectedPins),d(w.info.selectedPins||[]),n(!0),console.log(w.info.selectedPins,"Loaded pins on modal open"),h.detail.map.detachKeyPressEventListeners()},"openStairsModalEvent"),x.jsxs(y1,{isOpen:e,toggleModal:s,title:"Enter Stair Details",children:[x.jsx(g1,{shapeInfo:i,updateModalData:a,phtext:"Enter name of stairs"}),x.jsx(f0,{shapeInfo:i,updateModalData:a,addConnection:p,availableShapes:Ea.findAllByType("Stairs")}),x.jsx(rm,{connections:u,removePinFromList:g}),x.jsx(m1,{shapeInfo:i,updateModalData:a}),x.jsx(v1,{saveDetails:l})]})}function Tw(t,e,n){if(t==null||t==="")return[];const r=JSON.parse(t);console.log("VLEZE use");let i=[];return r.filter(e).forEach(o=>{console.log(o.attrs,"Sattrs pls"),o.attrs.position={x:o.attrs.x,y:o.attrs.y};const s=n?ya.createRenderedShape(o.className,o.attrs):ya.createShape(o.className,o.attrs);n||(s.loadInfo(o.attrs),An.add(s)),i.push(s)}),i}const NM=(t,e,n,r)=>{const[i,o]=re.useState([]),[s,a]=re.useState(!1),[l,u]=re.useState(null);re.useEffect(()=>{n.has("floor")||r({floor:"0"},{replace:!0})},[r,n]),re.useEffect(()=>{s||(async()=>{const g=new Ft;try{const h=await g.get(`${yt.my_maps.load}?mapName=${t}&username=${e}`);console.log("Floors loaded:",h),o(h),a(!0),h.forEach(w=>{Tw(w.mapData,()=>!0,!1)})}catch(h){console.error("Can't load map:",h.message)}})()},[t,e]),re.useEffect(()=>{if(!s||i===void 0||i.length===0)return;const p=parseInt(n.get("floor")),g=i.find(w=>w.num===p);if(!g){console.error(`Floor ${p} not found`);return}console.log("Changing to floor:",g);const h=new nm("container",p,t);h.loadNewFloor(g),u(h),console.log("Fchange"),Ql()},[n,s]);const d=async()=>{const p=l.saveShapeDetails(),g=new Ft(!0);try{const h=await g.put(`${yt.my_maps.save}?username=${e}`,p);console.log("FLOORS",i.length),o(w=>w.map(_=>_.num===h.num?h:_)),console.log(h,"resp in builder")}catch(h){console.log("ERROR --> Could not Save map --->",h)}};return re.useEffect(()=>{if(l){const p=()=>{console.log("mapsave event triggered"),d()};return window.addEventListener("mapsave",p),()=>{window.removeEventListener("mapsave",p)}}},[l]),re.useEffect(()=>()=>{l&&(l.clearMap(),l.stage.destroy())},[l]),{app:l,floors:i,saveFloor:d,setFloors:o}},_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAoJJREFUeF7tm2tOwlAQRmENJur+V2eIrgHTkChW2nncmX7eePjbeZRzOhdKL+cTLymBs7Q7zU8IEF8ECECAmIC4PROAADEBcXsmAAFiAuL2TAACxATE7ZkABIgJiNszAQgQExC3ZwIQICYgbs8EIEBMQNyeCUBAjMDb5eO6l/H6/DTVRTXVyS7gERC7YMujEVCONFZwW8CyMp1PLEExnuFoJiCMrDYBAbU8w9UQEEZWm4CAWp7haggII6tN2BOw3NS8cCNWC3xdjQno5WtWXwtYrvr73ya4DzARjgUwAWP8hrMRMIxwrAACxvgNZyNgGOFYAQSM8RvOfru8X5dfPbdefAsaRrxfgAloBmyV/yng9gzg/sUEWAQHjy8C1jdfCBiEGklnCYrQaojlx7gGqJGSTIBBywL0KH1vTY/IOSK2+kO+fF+QtWvhCEhLjy6pEws4Cn1vnykEdF19vWi/qz8+/559RwcuQUfh6+0zxQT8QtA9Ep76nhiHuzkFON6YK6QIoqvXRtD/FpAkV+ntzwtIMnKnPfyae0e4GpD7xJKB5R/CyfNwp1k3eghwo8wFsi0lx60siwkoQ5krhIAct7IsHsiUocwVYgJy3MqyEFCGMlcIATluZVkIKEOZK8TGrBy3sqy1AP4fUIbWV4glyMepLQoBbWh9hRHg49QWxd7QNrS+wkyAj1Nb1JeAjcdcPA9oQ38rzH1AM2CrPEuQRaj5OAKaAVvlEWARaj7OA5lmwFZ5JsAixPEQgen2BYXe3QTBCBBLQgACxATE7ZkABIgJiNszAQgQExC3ZwIQICYgbs8EIEBMQNyeCUCAmIC4PROAADEBcXsmAAFiAuL2TIBYwCdmLPZhW7llLQAAAABJRU5ErkJggg==",CM=({floorConfig:t})=>{const{floors:e,searchParams:n,addFloorHandler:r,setSearchParams:i,deleteFloorHandler:o}=t;return x.jsx("div",{className:bt.floorSection,children:x.jsxs("div",{className:bt.floorList,children:[x.jsx("label",{className:bt.floorLabel,children:"Available Floors:"}),x.jsxs("div",{className:bt.floorItems,children:[x.jsx("button",{className:bt.addFloorButton,onClick:()=>{const s=Math.max(...e.map(a=>a.num))+1;r(s)},children:x.jsx("img",{src:_5,alt:"Add Positive Floor",className:bt.icon})}),e.sort((s,a)=>a.num-s.num).map(s=>x.jsxs("div",{className:bt.floorItemWrapper,children:[x.jsxs("button",{onClick:()=>i({floor:s.num},{replace:!0}),className:`${bt.floorItem} ${n.get("floor")==s.num?bt.activeFloor:""}`,children:["Floor ",s.num]}),x.jsx("button",{className:bt.deleteFloorButton,onClick:()=>o(s.num),children:"🗑️"})]},s.num)),x.jsx("button",{className:bt.addFloorButton,onClick:()=>{const s=Math.min(...e.map(a=>a.num))-1;r(s)},children:x.jsx("img",{src:_5,alt:"Add Negative Floor",className:bt.icon})})]})]})})},PM=(t,e,n)=>(re.useEffect(()=>{(async()=>{const o=new Ft;o.setAuthenticated();const s=await o.get(`${yt.room_types.display(!0)}?mapName=${e}&username=${n}`);console.log("loaded ROOM TYPES: "+s),t(s)})().then(o=>{console.log("LOADED ROOM TYPES")})},[]),{addRoomType:async i=>{const o=new Ft;o.setAuthenticated(),await o.post(`${yt.room_types.add}?roomTypeName=${i}&username=${n}&mapName=${e}`),t(s=>[...s,{name:i}])}});function LM(){const{mapName:t}=o8(),{username:e}=vr(),[n,r]=re.useState(!1),[i,o]=re.useState("Error"),[s,a]=re.useState(!1),[l,u]=c8(),[d,p]=re.useState([]),{app:g,floors:h,saveFloor:w,setFloors:_}=NM(t,e,l,u),{addRoomType:A}=PM(p,t,e),v=async N=>{const L=new Ft;L.setAuthenticated();const R={num:N,mapName:t};try{await L.put(`${yt.floors.add}`,R),console.log(`Added floor ${N}`),_(D=>[...D,{num:N}])}catch(D){console.error("Error adding floor:",D)}},S=async N=>{if(N===0)return;const L=new Ft;L.setAuthenticated();try{await L.delete(`${yt.floors.delete}?floorNum=${N}&mapName=${t}`),_(D=>D.filter(k=>k.num!==N)),l.get("floor")==N&&u({floor:"0"},{replace:!0}),console.log(`Deleted floor ${N}`)}catch(R){console.error("Error deleting floor:",R)}};re.useEffect(()=>()=>{An.clear()},[]);const y=async()=>{w(),r(!0),setTimeout(()=>{r(!1)},3e3)};return x.jsxs("div",{className:bt.wrapper,id:"wrapper",children:[x.jsx(qs,{}),x.jsx("div",{id:"container",className:bt.cont}),x.jsxs("div",{className:bt.panel,children:[x.jsx("div",{className:bt.topPanelH,children:x.jsx(wc,{position:"inline"})}),x.jsx(oo,{to:`/myMaps/View/${t}`,className:bt.titleLink,children:x.jsx("h1",{className:bt.title,children:t})}),x.jsx("div",{className:bt.guideWrapper,children:x.jsx(oM,{})}),x.jsx("hr",{}),x.jsx("br",{}),x.jsxs("ul",{className:bt.shapeOptions,id:"shapeOptions",children:[x.jsx("li",{"data-info":"Entrance",className:`${bt.shapeOption} ${bt.entrance}`}),x.jsx("li",{"data-info":"Wall",className:`${bt.shapeOption} ${bt.wall}`,id:"wall"}),x.jsx("li",{"data-info":"Room",className:`${bt.shapeOption} ${bt.room}`,id:"room"}),x.jsx("li",{"data-info":"Stairs",className:`${bt.shapeOption} ${bt.stairs}`,id:"stairs"})]}),x.jsx(yM,{map:g,roomTypes:d,addRoomTypeDB:A}),x.jsx("br",{}),x.jsx("hr",{}),x.jsx("br",{}),x.jsx(CM,{floorConfig:{floors:h,searchParams:l,setSearchParams:u,addFloorHandler:v,deleteFloorHandler:S}}),x.jsx("br",{}),x.jsx("hr",{}),x.jsx("br",{}),s&&x.jsx("p",{style:{color:"red",textAlign:"center"},children:i}),x.jsx("div",{className:bt.templateCont,children:x.jsx(xM,{submitHandler:y})}),x.jsxs("div",{className:bt.hide,children:[x.jsx(zL,{map:g,roomTypes:d}),x.jsx(kw,{map:g}),x.jsx(Ew,{map:g}),x.jsx(AM,{map:g})]})]}),n&&x.jsx("div",{className:bt.popup,children:x.jsxs("div",{className:bt.popupContent,children:[x.jsx("h2",{children:"Map Saved!"}),x.jsx("p",{children:"Your map has been successfully saved."})]})})]})}function kM(){return x.jsx("h1",{children:"Oops! Page not found !"})}const EM=()=>x.jsx("div",{className:"loading-container",children:x.jsx("div",{className:"spinner"})}),TM=()=>{const t=Do(),{loading:e,isAuthenticated:n}=vr();return e?x.jsx(EM,{}):n?x.jsx(sS,{}):x.jsx(oS,{to:"/Login",state:{targetPath:t},replace:!0})},jM=(t,e,n,r)=>{const i=new CustomEvent("navigate",{detail:{nodes:t,offset:e,changeFloorTo:n,shape:r}});window.dispatchEvent(i)},MM=(t,e)=>{let n=new CustomEvent(t,{detail:e});window.dispatchEvent(n)},IM="modulepreload",FM=function(t){return"/"+t},v4={},S5=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=FM(l),l in v4)return;v4[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":IM,u||(p.as="script"),p.crossOrigin="",p.href=l,a&&p.setAttribute("nonce",a),document.head.appendChild(p),u)return new Promise((g,h)=>{p.addEventListener("load",g),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var or=Uint8Array,Ur=Uint16Array,om=Int32Array,p0=new or([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),g0=new or([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),x5=new or([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jw=function(t,e){for(var n=new Ur(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];for(var i=new om(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},Mw=jw(p0,2),Iw=Mw.b,A5=Mw.r;Iw[28]=258,A5[258]=28;var Fw=jw(g0,0),OM=Fw.b,y4=Fw.r,N5=new Ur(32768);for(var Gt=0;Gt<32768;++Gt){var cs=(Gt&43690)>>1|(Gt&21845)<<1;cs=(cs&52428)>>2|(cs&13107)<<2,cs=(cs&61680)>>4|(cs&3855)<<4,N5[Gt]=((cs&65280)>>8|(cs&255)<<8)>>1}var io=function(t,e,n){for(var r=t.length,i=0,o=new Ur(e);i<r;++i)t[i]&&++o[t[i]-1];var s=new Ur(e);for(i=1;i<e;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(n){a=new Ur(1<<e);var l=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],d=e-t[i],p=s[t[i]-1]++<<d,g=p|(1<<d)-1;p<=g;++p)a[N5[p]>>l]=u}else for(a=new Ur(r),i=0;i<r;++i)t[i]&&(a[i]=N5[s[t[i]-1]++]>>15-t[i]);return a},Rs=new or(288);for(var Gt=0;Gt<144;++Gt)Rs[Gt]=8;for(var Gt=144;Gt<256;++Gt)Rs[Gt]=9;for(var Gt=256;Gt<280;++Gt)Rs[Gt]=7;for(var Gt=280;Gt<288;++Gt)Rs[Gt]=8;var ch=new or(32);for(var Gt=0;Gt<32;++Gt)ch[Gt]=5;var RM=io(Rs,9,0),BM=io(Rs,9,1),DM=io(ch,5,0),UM=io(ch,5,1),Qp=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},Si=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(e&7)&n},Jp=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(e&7)},sm=function(t){return(t+7)/8|0},Ow=function(t,e,n){return(n==null||n>t.length)&&(n=t.length),new or(t.subarray(e,n))},zM=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pi=function(t,e,n){var r=new Error(e||zM[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Pi),!n)throw r;return r},GM=function(t,e,n,r){var i=t.length,o=0;if(!i||e.f&&!e.l)return n||new or(0);var s=!n,a=s||e.i!=2,l=e.i;s&&(n=new or(i*3));var u=function(we){var Ce=n.length;if(we>Ce){var ke=new or(Math.max(Ce*2,we));ke.set(n),n=ke}},d=e.f||0,p=e.p||0,g=e.b||0,h=e.l,w=e.d,_=e.m,A=e.n,v=i*8;do{if(!h){d=Si(t,p,1);var S=Si(t,p+1,3);if(p+=3,S)if(S==1)h=BM,w=UM,_=9,A=5;else if(S==2){var R=Si(t,p,31)+257,D=Si(t,p+10,15)+4,k=R+Si(t,p+5,31)+1;p+=14;for(var z=new or(k),T=new or(19),P=0;P<D;++P)T[x5[P]]=Si(t,p+P*3,7);p+=D*3;for(var E=Qp(T),W=(1<<E)-1,B=io(T,E,1),P=0;P<k;){var Q=B[Si(t,p,W)];p+=Q&15;var y=Q>>4;if(y<16)z[P++]=y;else{var ee=0,se=0;for(y==16?(se=3+Si(t,p,3),p+=2,ee=z[P-1]):y==17?(se=3+Si(t,p,7),p+=3):y==18&&(se=11+Si(t,p,127),p+=7);se--;)z[P++]=ee}}var K=z.subarray(0,R),te=z.subarray(R);_=Qp(K),A=Qp(te),h=io(K,_,1),w=io(te,A,1)}else Pi(1);else{var y=sm(p)+4,N=t[y-4]|t[y-3]<<8,L=y+N;if(L>i){l&&Pi(0);break}a&&u(g+N),n.set(t.subarray(y,L),g),e.b=g+=N,e.p=p=L*8,e.f=d;continue}if(p>v){l&&Pi(0);break}}a&&u(g+131072);for(var X=(1<<_)-1,de=(1<<A)-1,j=p;;j=p){var ee=h[Jp(t,p)&X],G=ee>>4;if(p+=ee&15,p>v){l&&Pi(0);break}if(ee||Pi(2),G<256)n[g++]=G;else if(G==256){j=p,h=null;break}else{var H=G-254;if(G>264){var P=G-257,ne=p0[P];H=Si(t,p,(1<<ne)-1)+Iw[P],p+=ne}var ie=w[Jp(t,p)&de],q=ie>>4;ie||Pi(3),p+=ie&15;var te=OM[q];if(q>3){var ne=g0[q];te+=Jp(t,p)&(1<<ne)-1,p+=ne}if(p>v){l&&Pi(0);break}a&&u(g+131072);var Z=g+H;if(g<te){var ce=o-te,xe=Math.min(te,Z);for(ce+g<0&&Pi(3);g<xe;++g)n[g]=r[ce+g]}for(;g<Z;++g)n[g]=n[g-te]}}e.l=h,e.p=j,e.b=g,e.f=d,h&&(d=1,e.m=_,e.d=w,e.n=A)}while(!d);return g!=n.length&&s?Ow(n,0,g):n.subarray(0,g)},Ao=function(t,e,n){n<<=e&7;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8},wu=function(t,e,n){n<<=e&7;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8,t[r+2]|=n>>16},Zp=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,o=n.slice();if(!i)return{t:Bw,l:0};if(i==1){var s=new or(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(L,R){return L.f-R.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,d=1,p=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[u].f<n[p].f?u++:p++],l=n[u!=d&&n[u].f<n[p].f?u++:p++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var g=o[0].s,r=1;r<i;++r)o[r].s>g&&(g=o[r].s);var h=new Ur(g+1),w=C5(n[d-1],h,0);if(w>e){var r=0,_=0,A=w-e,v=1<<A;for(o.sort(function(R,D){return h[D.s]-h[R.s]||R.f-D.f});r<i;++r){var S=o[r].s;if(h[S]>e)_+=v-(1<<w-h[S]),h[S]=e;else break}for(_>>=A;_>0;){var y=o[r].s;h[y]<e?_-=1<<e-h[y]++-1:++r}for(;r>=0&&_;--r){var N=o[r].s;h[N]==e&&(--h[N],++_)}w=e}return{t:new or(h),l:w}},C5=function(t,e,n){return t.s==-1?Math.max(C5(t.l,e,n+1),C5(t.r,e,n+1)):e[t.s]=n},w4=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Ur(++e),r=0,i=t[0],o=1,s=function(l){n[r++]=l},a=1;a<=e;++a)if(t[a]==i&&a!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[a]}return{c:n.subarray(0,r),n:e}},bu=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},Rw=function(t,e,n){var r=n.length,i=sm(e+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var o=0;o<r;++o)t[i+o+4]=n[o];return(i+4+r)*8},b4=function(t,e,n,r,i,o,s,a,l,u,d){Ao(e,d++,n),++i[256];for(var p=Zp(i,15),g=p.t,h=p.l,w=Zp(o,15),_=w.t,A=w.l,v=w4(g),S=v.c,y=v.n,N=w4(_),L=N.c,R=N.n,D=new Ur(19),k=0;k<S.length;++k)++D[S[k]&31];for(var k=0;k<L.length;++k)++D[L[k]&31];for(var z=Zp(D,7),T=z.t,P=z.l,E=19;E>4&&!T[x5[E-1]];--E);var W=u+5<<3,B=bu(i,Rs)+bu(o,ch)+s,Q=bu(i,g)+bu(o,_)+s+14+3*E+bu(D,T)+2*D[16]+3*D[17]+7*D[18];if(l>=0&&W<=B&&W<=Q)return Rw(e,d,t.subarray(l,l+u));var ee,se,K,te;if(Ao(e,d,1+(Q<B)),d+=2,Q<B){ee=io(g,h,0),se=g,K=io(_,A,0),te=_;var X=io(T,P,0);Ao(e,d,y-257),Ao(e,d+5,R-1),Ao(e,d+10,E-4),d+=14;for(var k=0;k<E;++k)Ao(e,d+3*k,T[x5[k]]);d+=3*E;for(var de=[S,L],j=0;j<2;++j)for(var G=de[j],k=0;k<G.length;++k){var H=G[k]&31;Ao(e,d,X[H]),d+=T[H],H>15&&(Ao(e,d,G[k]>>5&127),d+=G[k]>>12)}}else ee=RM,se=Rs,K=DM,te=ch;for(var k=0;k<a;++k){var ne=r[k];if(ne>255){var H=ne>>18&31;wu(e,d,ee[H+257]),d+=se[H+257],H>7&&(Ao(e,d,ne>>23&31),d+=p0[H]);var ie=ne&31;wu(e,d,K[ie]),d+=te[ie],ie>3&&(wu(e,d,ne>>5&8191),d+=g0[ie])}else wu(e,d,ee[ne]),d+=se[ne]}return wu(e,d,ee[256]),d+se[256]},qM=new om([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Bw=new or(0),VM=function(t,e,n,r,i,o){var s=o.z||t.length,a=new or(r+s+5*(1+Math.ceil(s/7e3))+i),l=a.subarray(r,a.length-i),u=o.l,d=(o.r||0)&7;if(e){d&&(l[0]=o.r>>3);for(var p=qM[e-1],g=p>>13,h=p&8191,w=(1<<n)-1,_=o.p||new Ur(32768),A=o.h||new Ur(w+1),v=Math.ceil(n/3),S=2*v,y=function(ze){return(t[ze]^t[ze+1]<<v^t[ze+2]<<S)&w},N=new om(25e3),L=new Ur(288),R=new Ur(32),D=0,k=0,z=o.i||0,T=0,P=o.w||0,E=0;z+2<s;++z){var W=y(z),B=z&32767,Q=A[W];if(_[B]=Q,A[W]=B,P<=z){var ee=s-z;if((D>7e3||T>24576)&&(ee>423||!u)){d=b4(t,l,0,N,L,R,k,T,E,z-E,d),T=D=k=0,E=z;for(var se=0;se<286;++se)L[se]=0;for(var se=0;se<30;++se)R[se]=0}var K=2,te=0,X=h,de=B-Q&32767;if(ee>2&&W==y(z-de))for(var j=Math.min(g,ee)-1,G=Math.min(32767,z),H=Math.min(258,ee);de<=G&&--X&&B!=Q;){if(t[z+K]==t[z+K-de]){for(var ne=0;ne<H&&t[z+ne]==t[z+ne-de];++ne);if(ne>K){if(K=ne,te=de,ne>j)break;for(var ie=Math.min(de,ne-2),q=0,se=0;se<ie;++se){var Z=z-de+se&32767,ce=_[Z],xe=Z-ce&32767;xe>q&&(q=xe,Q=Z)}}}B=Q,Q=_[B],de+=B-Q&32767}if(te){N[T++]=268435456|A5[K]<<18|y4[te];var we=A5[K]&31,Ce=y4[te]&31;k+=p0[we]+g0[Ce],++L[257+we],++R[Ce],P=z+K,++D}else N[T++]=t[z],++L[t[z]]}}for(z=Math.max(z,P);z<s;++z)N[T++]=t[z],++L[t[z]];d=b4(t,l,u,N,L,R,k,T,E,z-E,d),u||(o.r=d&7|l[d/8|0]<<3,d-=7,o.h=A,o.p=_,o.i=z,o.w=P)}else{for(var z=o.w||0;z<s+u;z+=65535){var ke=z+65535;ke>=s&&(l[d/8|0]=u,ke=s),d=Rw(l,d+1,t.subarray(z,ke))}o.i=s}return Ow(a,0,r+sm(d)+i)},Dw=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length|0,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=r+=n[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,e=i},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},WM=function(t,e,n,r,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),s=new or(o.length+t.length);s.set(o),s.set(t,o.length),t=s,i.w=o.length}return VM(t,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,n,r,i)},Uw=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},HM=function(t,e){var n=e.level,r=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var i=Dw();i.p(e.dictionary),Uw(t,2,i.d())}},YM=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Pi(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Pi(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function P5(t,e){e||(e={});var n=Dw();n.p(t);var r=WM(t,e,e.dictionary?6:2,4);return HM(r,e),Uw(r,r.length-4,n.d()),r}function KM(t,e){return GM(t.subarray(YM(t,e),-4),{i:2},e,e)}var XM=typeof TextDecoder<"u"&&new TextDecoder,$M=0;try{XM.decode(Bw,{stream:!0}),$M=1}catch{}var Ke=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function e2(){Ke.console&&typeof Ke.console.log=="function"&&Ke.console.log.apply(Ke.console,arguments)}var It={log:e2,warn:function(t){Ke.console&&(typeof Ke.console.warn=="function"?Ke.console.warn.apply(Ke.console,arguments):e2.call(null,arguments))},error:function(t){Ke.console&&(typeof Ke.console.error=="function"?Ke.console.error.apply(Ke.console,arguments):e2(t))}};function t2(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){fa(r.response,e,n)},r.onerror=function(){It.error("could not download file")},r.send()}function _4(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function zd(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Bu,L5,fa=Ke.saveAs||((typeof window>"u"?"undefined":Pt(window))!=="object"||window!==Ke?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=Ke.URL||Ke.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?_4(i.href)?t2(t,e,n):zd(i,i.target="_blank"):zd(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){zd(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download",typeof t=="string")if(_4(t))t2(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){zd(r)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Pt(o)!=="object"&&(It.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return t2(t,e,n);var i=t.type==="application/octet-stream",o=/constructor/i.test(Ke.HTMLElement)||Ke.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&(typeof FileReader>"u"?"undefined":Pt(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var d=a.result;d=s?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},a.readAsDataURL(t)}else{var l=Ke.URL||Ke.webkitURL,u=l.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});/**
+ * A class to parse color values
+ * @author Stoyan Stefanov <sstoo@gmail.com>
+ * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
+ * @license Use it if you like it
+ */function zw(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(t);s&&(e=o(s),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+a+l+u}}/**
+ * @license
+ * Joseph Myers does not specify a particular license for his work.
+ *
+ * Author: Joseph Myers
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
+ *
+ * Modified by: Owen Leong
+ */function n2(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=Jn(n,r,i,o,e[0],7,-680876936),o=Jn(o,n,r,i,e[1],12,-389564586),i=Jn(i,o,n,r,e[2],17,606105819),r=Jn(r,i,o,n,e[3],22,-1044525330),n=Jn(n,r,i,o,e[4],7,-176418897),o=Jn(o,n,r,i,e[5],12,1200080426),i=Jn(i,o,n,r,e[6],17,-1473231341),r=Jn(r,i,o,n,e[7],22,-45705983),n=Jn(n,r,i,o,e[8],7,1770035416),o=Jn(o,n,r,i,e[9],12,-1958414417),i=Jn(i,o,n,r,e[10],17,-42063),r=Jn(r,i,o,n,e[11],22,-1990404162),n=Jn(n,r,i,o,e[12],7,1804603682),o=Jn(o,n,r,i,e[13],12,-40341101),i=Jn(i,o,n,r,e[14],17,-1502002290),n=Zn(n,r=Jn(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=Zn(o,n,r,i,e[6],9,-1069501632),i=Zn(i,o,n,r,e[11],14,643717713),r=Zn(r,i,o,n,e[0],20,-373897302),n=Zn(n,r,i,o,e[5],5,-701558691),o=Zn(o,n,r,i,e[10],9,38016083),i=Zn(i,o,n,r,e[15],14,-660478335),r=Zn(r,i,o,n,e[4],20,-405537848),n=Zn(n,r,i,o,e[9],5,568446438),o=Zn(o,n,r,i,e[14],9,-1019803690),i=Zn(i,o,n,r,e[3],14,-187363961),r=Zn(r,i,o,n,e[8],20,1163531501),n=Zn(n,r,i,o,e[13],5,-1444681467),o=Zn(o,n,r,i,e[2],9,-51403784),i=Zn(i,o,n,r,e[7],14,1735328473),n=er(n,r=Zn(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=er(o,n,r,i,e[8],11,-2022574463),i=er(i,o,n,r,e[11],16,1839030562),r=er(r,i,o,n,e[14],23,-35309556),n=er(n,r,i,o,e[1],4,-1530992060),o=er(o,n,r,i,e[4],11,1272893353),i=er(i,o,n,r,e[7],16,-155497632),r=er(r,i,o,n,e[10],23,-1094730640),n=er(n,r,i,o,e[13],4,681279174),o=er(o,n,r,i,e[0],11,-358537222),i=er(i,o,n,r,e[3],16,-722521979),r=er(r,i,o,n,e[6],23,76029189),n=er(n,r,i,o,e[9],4,-640364487),o=er(o,n,r,i,e[12],11,-421815835),i=er(i,o,n,r,e[15],16,530742520),n=tr(n,r=er(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=tr(o,n,r,i,e[7],10,1126891415),i=tr(i,o,n,r,e[14],15,-1416354905),r=tr(r,i,o,n,e[5],21,-57434055),n=tr(n,r,i,o,e[12],6,1700485571),o=tr(o,n,r,i,e[3],10,-1894986606),i=tr(i,o,n,r,e[10],15,-1051523),r=tr(r,i,o,n,e[1],21,-2054922799),n=tr(n,r,i,o,e[8],6,1873313359),o=tr(o,n,r,i,e[15],10,-30611744),i=tr(i,o,n,r,e[6],15,-1560198380),r=tr(r,i,o,n,e[13],21,1309151649),n=tr(n,r,i,o,e[4],6,-145523070),o=tr(o,n,r,i,e[11],10,-1120210379),i=tr(i,o,n,r,e[2],15,718787259),r=tr(r,i,o,n,e[9],21,-343485551),t[0]=Ss(n,t[0]),t[1]=Ss(r,t[1]),t[2]=Ss(i,t[2]),t[3]=Ss(o,t[3])}function m0(t,e,n,r,i,o){return e=Ss(Ss(e,t),Ss(r,o)),Ss(e<<i|e>>>32-i,n)}function Jn(t,e,n,r,i,o,s){return m0(e&n|~e&r,t,e,i,o,s)}function Zn(t,e,n,r,i,o,s){return m0(e&r|n&~r,t,e,i,o,s)}function er(t,e,n,r,i,o,s){return m0(e^n^r,t,e,i,o,s)}function tr(t,e,n,r,i,o,s){return m0(n^(e|~r),t,e,i,o,s)}function Gw(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)n2(r,QM(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(n2(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,n2(r,i),r}function QM(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}Bu=Ke.atob.bind(Ke),L5=Ke.btoa.bind(Ke);var S4="0123456789abcdef".split("");function JM(t){for(var e="",n=0;n<4;n++)e+=S4[t>>8*n+4&15]+S4[t>>8*n&15];return e}function ZM(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function k5(t){return Gw(t).map(ZM).join("")}var eI=function(t){for(var e=0;e<t.length;e++)t[e]=JM(t[e]);return t.join("")}(Gw("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ss(t,e){if(eI){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}/**
+ * @license
+ * FPDF is released under a permissive license: there is no usage restriction.
+ * You may embed it freely in your application (commercial or not), with or
+ * without modifications.
+ *
+ * Reference: http://www.fpdf.org/en/script/script37.php
+ */function E5(t,e){var n,r,i,o;if(t!==n){for(var s=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var u=0;for(l=0;l<256;l++){var d=a[l];u=(u+d+s.charCodeAt(l))%256,a[l]=a[u],a[u]=d}n=t,r=a}else a=r;var p=e.length,g=0,h=0,w="";for(l=0;l<p;l++)h=(h+(d=a[g=(g+1)%256]))%256,a[g]=a[h],a[h]=d,s=a[(a[g]+a[h])%256],w+=String.fromCharCode(e.charCodeAt(l)^s);return w}/**
+ * @license
+ * Licensed under the MIT License.
+ * http://opensource.org/licenses/mit-license
+ * Author: Owen Leong (@owenl131)
+ * Date: 15 Oct 2020
+ * References:
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
+ * http://www.fpdf.org/en/script/script37.php
+ */var x4={print:4,modify:8,copy:16,"annot-forms":32};function El(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach(function(a){if(x4.perm!==void 0)throw new Error("Invalid permission: "+a);i+=x4[a]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(e+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=k5(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=E5(this.encryptionKey,this.padding)}function Tl(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?e+="#"+("0"+i.toString(16)).slice(-2):e+=t[r]}return e}function A4(t){if(Pt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[r,!!i],o},this.unsubscribe=function(n){for(var r in e)if(e[r][n])return delete e[r][n],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var s=e[n][o];try{s[0].apply(t,r)}catch(a){Ke.console&&It.error("jsPDF PubSub Error",a.message,a)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Hf(t){if(!(this instanceof Hf))return new Hf(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function qw(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function pa(t,e,n,r,i){if(!(this instanceof pa))return new pa(t,e,n,r,i);this.type=t==="axial"?2:3,this.coords=e,this.colors=n,qw.call(this,r,i)}function Vl(t,e,n,r,i){if(!(this instanceof Vl))return new Vl(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,qw.call(this,r,i)}function Ye(t){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],a=1,l=16,u="S",d=null;Pt(t=t||{})==="object"&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,(d=t.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),u=t.defaultPathOperation||"S"),s=t.filters||(o===!0?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,g={},h={internal:{},__private__:{}};h.__private__.PubSub=A4;var w="1.3",_=h.__private__.getPdfVersion=function(){return w};h.__private__.setPdfVersion=function(m){w=m};var A={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return A};var v=h.__private__.getPageFormat=function(m){return A[m]};i=i||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},y=S.COMPAT;function N(){this.saveGraphicsState(),J(new He(Fe,0,0,-Fe,0,Ko()*Fe).toString()+" cm"),this.setFontSize(this.getFontSize()/Fe),u="n",y=S.ADVANCED}function L(){this.restoreGraphicsState(),u="S",y=S.COMPAT}var R=h.__private__.combineFontStyleAndFontWeight=function(m,I){if(m=="bold"&&I=="normal"||m=="bold"&&I==400||m=="normal"&&I=="italic"||m=="bold"&&I=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return I&&(m=I==400||I==="normal"?m==="italic"?"italic":"normal":I!=700&&I!=="bold"||m!=="normal"?(I==700?"bold":I)+""+m:"bold"),m};h.advancedAPI=function(m){var I=y===S.COMPAT;return I&&N.call(this),typeof m!="function"||(m(this),I&&L.call(this)),this},h.compatAPI=function(m){var I=y===S.ADVANCED;return I&&L.call(this),typeof m!="function"||(m(this),I&&N.call(this)),this},h.isAdvancedAPI=function(){return y===S.ADVANCED};var D,k=function(m){if(y!==S.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},z=h.roundToPrecision=h.__private__.roundToPrecision=function(m,I){var $=e||I;if(isNaN(m)||isNaN($))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed($).replace(/0+$/,"")};D=h.hpf=h.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,16)};var T=h.f2=h.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return z(m,2)},P=h.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return z(m,3)},E=h.scale=h.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return y===S.COMPAT?m*Fe:y===S.ADVANCED?m:void 0},W=function(m){return y===S.COMPAT?Ko()-m:y===S.ADVANCED?m:void 0},B=function(m){return E(W(m))};h.__private__.setPrecision=h.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(e=parseInt(m,10))};var Q,ee="00000000000000000000000000000000",se=h.__private__.getFileId=function(){return ee},K=h.__private__.setFileId=function(m){return ee=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():ee.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Kn=new El(d.userPermissions,d.userPassword,d.ownerPassword,ee)),ee};h.setFileId=function(m){return K(m),this},h.getFileId=function(){return se()};var te=h.__private__.convertDateToPDFDate=function(m){var I=m.getTimezoneOffset(),$=I<0?"+":"-",oe=Math.floor(Math.abs(I/60)),fe=Math.abs(I%60),ye=[$,H(oe),"'",H(fe),"'"].join("");return["D:",m.getFullYear(),H(m.getMonth()+1),H(m.getDate()),H(m.getHours()),H(m.getMinutes()),H(m.getSeconds()),ye].join("")},X=h.__private__.convertPDFDateToDate=function(m){var I=parseInt(m.substr(2,4),10),$=parseInt(m.substr(6,2),10)-1,oe=parseInt(m.substr(8,2),10),fe=parseInt(m.substr(10,2),10),ye=parseInt(m.substr(12,2),10),Ne=parseInt(m.substr(14,2),10);return new Date(I,$,oe,fe,ye,Ne,0)},de=h.__private__.setCreationDate=function(m){var I;if(m===void 0&&(m=new Date),m instanceof Date)I=te(m);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");I=m}return Q=I},j=h.__private__.getCreationDate=function(m){var I=Q;return m==="jsDate"&&(I=X(Q)),I};h.setCreationDate=function(m){return de(m),this},h.getCreationDate=function(m){return j(m)};var G,H=h.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},ne=h.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},ie=0,q=[],Z=[],ce=0,xe=[],we=[],Ce=!1,ke=Z,ze=function(){ie=0,ce=0,Z=[],q=[],xe=[],fo=bn(),hi=bn()};h.__private__.setCustomOutputDestination=function(m){Ce=!0,ke=m};var me=function(m){Ce||(ke=m)};h.__private__.resetCustomOutputDestination=function(){Ce=!1,ke=Z};var J=h.__private__.out=function(m){return m=m.toString(),ce+=m.length+1,ke.push(m),ke},Ve=h.__private__.write=function(m){return J(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},Be=h.__private__.getArrayBuffer=function(m){for(var I=m.length,$=new ArrayBuffer(I),oe=new Uint8Array($);I--;)oe[I]=m.charCodeAt(I);return $},Pe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Pe};var Ee=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(m){return Ee=y===S.ADVANCED?m/Fe:m,this};var Ie,Me=h.__private__.getFontSize=h.getFontSize=function(){return y===S.COMPAT?Ee:Ee*Fe},Ge=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(m){return Ge=m,this},h.__private__.getR2L=h.getR2L=function(){return Ge};var et,st=h.__private__.setZoomMode=function(m){var I=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Ie=m;else if(isNaN(m)){if(I.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Ie=m}else Ie=parseInt(m,10)};h.__private__.getZoomMode=function(){return Ie};var lt,gt=h.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');et=m};h.__private__.getPageMode=function(){return et};var kt=h.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');lt=m};h.__private__.getLayoutMode=function(){return lt},h.__private__.setDisplayMode=h.setDisplayMode=function(m,I,$){return st(m),kt(I),gt($),this};var Qe={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(m){if(Object.keys(Qe).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qe[m]},h.__private__.getDocumentProperties=function(){return Qe},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(m){for(var I in Qe)Qe.hasOwnProperty(I)&&m[I]&&(Qe[I]=m[I]);return this},h.__private__.setDocumentProperty=function(m,I){if(Object.keys(Qe).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qe[m]=I};var ct,Fe,Yn,wt,li,jt={},Vt={},Ri=[],xt={},$s={},tn={},ci={},ho=null,nn=0,tt=[],At=new A4(h),Qs=t.hotfixes||[],zn={},Bi={},Di=[],He=function m(I,$,oe,fe,ye,Ne){if(!(this instanceof m))return new m(I,$,oe,fe,ye,Ne);isNaN(I)&&(I=1),isNaN($)&&($=0),isNaN(oe)&&(oe=0),isNaN(fe)&&(fe=1),isNaN(ye)&&(ye=0),isNaN(Ne)&&(Ne=0),this._matrix=[I,$,oe,fe,ye,Ne]};Object.defineProperty(He.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(He.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(He.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(He.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(He.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(He.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(He.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(He.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(He.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(He.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(He.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(He.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(He.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(He.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(He.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(He.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),He.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(D).join(m)},He.prototype.multiply=function(m){var I=m.sx*this.sx+m.shy*this.shx,$=m.sx*this.shy+m.shy*this.sy,oe=m.shx*this.sx+m.sy*this.shx,fe=m.shx*this.shy+m.sy*this.sy,ye=m.tx*this.sx+m.ty*this.shx+this.tx,Ne=m.tx*this.shy+m.ty*this.sy+this.ty;return new He(I,$,oe,fe,ye,Ne)},He.prototype.decompose=function(){var m=this.sx,I=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty,Ne=Math.sqrt(m*m+I*I),Oe=(m/=Ne)*$+(I/=Ne)*oe;$-=m*Oe,oe-=I*Oe;var qe=Math.sqrt($*$+oe*oe);return Oe/=qe,m*(oe/=qe)<I*($/=qe)&&(m=-m,I=-I,Oe=-Oe,Ne=-Ne),{scale:new He(Ne,0,0,qe,0,0),translate:new He(1,0,0,1,fe,ye),rotate:new He(m,I,-I,m,0,0),skew:new He(1,0,Oe,1,0,0)}},He.prototype.toString=function(m){return this.join(" ")},He.prototype.inversed=function(){var m=this.sx,I=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty,Ne=1/(m*oe-I*$),Oe=oe*Ne,qe=-I*Ne,it=-$*Ne,nt=m*Ne;return new He(Oe,qe,it,nt,-Oe*fe-it*ye,-qe*fe-nt*ye)},He.prototype.applyToPoint=function(m){var I=m.x*this.sx+m.y*this.shx+this.tx,$=m.x*this.shy+m.y*this.sy+this.ty;return new il(I,$)},He.prototype.applyToRectangle=function(m){var I=this.applyToPoint(m),$=this.applyToPoint(new il(m.x+m.w,m.y+m.h));return new Bc(I.x,I.y,$.x-I.x,$.y-I.y)},He.prototype.clone=function(){var m=this.sx,I=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty;return new He(m,I,$,oe,fe,ye)},h.Matrix=He;var ui=h.matrixMult=function(m,I){return I.multiply(m)},Ui=new He(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Ui;var br=function(m,I){if(!$s[m]){var $=(I instanceof pa?"Sh":"P")+(Object.keys(xt).length+1).toString(10);I.id=$,$s[m]=$,xt[$]=I,At.publish("addPattern",I)}};h.ShadingPattern=pa,h.TilingPattern=Vl,h.addShadingPattern=function(m,I){return k("addShadingPattern()"),br(m,I),this},h.beginTilingPattern=function(m){k("beginTilingPattern()"),Gh(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},h.endTilingPattern=function(m,I){k("endTilingPattern()"),I.stream=we[G].join(`
+`),br(m,I),At.publish("endTilingPattern",I),Di.pop().restore()};var Cn=h.__private__.newObject=function(){var m=bn();return Mr(m,!0),m},bn=h.__private__.newObjectDeferred=function(){return ie++,q[ie]=function(){return ce},ie},Mr=function(m,I){return I=typeof I=="boolean"&&I,q[m]=ce,I&&J(m+" 0 obj"),m},Wa=h.__private__.newAdditionalObject=function(){var m={objId:bn(),content:""};return xe.push(m),m},fo=bn(),hi=bn(),di=h.__private__.decodeColorString=function(m){var I=m.split(" ");if(I.length!==2||I[1]!=="g"&&I[1]!=="G")I.length===5&&(I[4]==="k"||I[4]==="K")&&(I=[(1-I[0])*(1-I[3]),(1-I[1])*(1-I[3]),(1-I[2])*(1-I[3]),"r"]);else{var $=parseFloat(I[0]);I=[$,$,$,"r"]}for(var oe="#",fe=0;fe<3;fe++)oe+=("0"+Math.floor(255*parseFloat(I[fe])).toString(16)).slice(-2);return oe},fi=h.__private__.encodeColorString=function(m){var I;typeof m=="string"&&(m={ch1:m});var $=m.ch1,oe=m.ch2,fe=m.ch3,ye=m.ch4,Ne=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof $=="string"&&$.charAt(0)!=="#"){var Oe=new zw($);if(Oe.ok)$=Oe.toHex();else if(!/^\d*\.?\d*$/.test($))throw new Error('Invalid color "'+$+'" passed to jsPDF.encodeColorString.')}if(typeof $=="string"&&/^#[0-9A-Fa-f]{3}$/.test($)&&($="#"+$[1]+$[1]+$[2]+$[2]+$[3]+$[3]),typeof $=="string"&&/^#[0-9A-Fa-f]{6}$/.test($)){var qe=parseInt($.substr(1),16);$=qe>>16&255,oe=qe>>8&255,fe=255&qe}if(oe===void 0||ye===void 0&&$===oe&&oe===fe)if(typeof $=="string")I=$+" "+Ne[0];else switch(m.precision){case 2:I=T($/255)+" "+Ne[0];break;case 3:default:I=P($/255)+" "+Ne[0]}else if(ye===void 0||Pt(ye)==="object"){if(ye&&!isNaN(ye.a)&&ye.a===0)return I=["1.","1.","1.",Ne[1]].join(" ");if(typeof $=="string")I=[$,oe,fe,Ne[1]].join(" ");else switch(m.precision){case 2:I=[T($/255),T(oe/255),T(fe/255),Ne[1]].join(" ");break;default:case 3:I=[P($/255),P(oe/255),P(fe/255),Ne[1]].join(" ")}}else if(typeof $=="string")I=[$,oe,fe,ye,Ne[2]].join(" ");else switch(m.precision){case 2:I=[T($),T(oe),T(fe),T(ye),Ne[2]].join(" ");break;case 3:default:I=[P($),P(oe),P(fe),P(ye),Ne[2]].join(" ")}return I},zi=h.__private__.getFilters=function(){return s},Wr=h.__private__.putStream=function(m){var I=(m=m||{}).data||"",$=m.filters||zi(),oe=m.alreadyAppliedFilters||[],fe=m.addLength1||!1,ye=I.length,Ne=m.objectId,Oe=function(Xn){return Xn};if(d!==null&&Ne===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Oe=Kn.encryptor(Ne,0));var qe={};$===!0&&($=["FlateEncode"]);var it=m.additionalKeyValues||[],nt=(qe=Ye.API.processDataByFilters!==void 0?Ye.API.processDataByFilters(I,$):{data:I,reverseChain:[]}).reverseChain+(Array.isArray(oe)?oe.join(" "):oe.toString());if(qe.data.length!==0&&(it.push({key:"Length",value:qe.data.length}),fe===!0&&it.push({key:"Length1",value:ye})),nt.length!=0)if(nt.split("/").length-1==1)it.push({key:"Filter",value:nt});else{it.push({key:"Filter",value:"["+nt+"]"});for(var pt=0;pt<it.length;pt+=1)if(it[pt].key==="DecodeParms"){for(var Kt=[],rn=0;rn<qe.reverseChain.split("/").length-1;rn+=1)Kt.push("null");Kt.push(it[pt].value),it[pt].value="["+Kt.join(" ")+"]"}}J("<<");for(var _n=0;_n<it.length;_n++)J("/"+it[_n].key+" "+it[_n].value);J(">>"),qe.data.length!==0&&(J("stream"),J(Oe(qe.data)),J("endstream"))},Gi=h.__private__.putPage=function(m){var I=m.number,$=m.data,oe=m.objId,fe=m.contentsObjId;Mr(oe,!0),J("<</Type /Page"),J("/Parent "+m.rootDictionaryObjId+" 0 R"),J("/Resources "+m.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(D(m.mediaBox.bottomLeftX))+" "+parseFloat(D(m.mediaBox.bottomLeftY))+" "+D(m.mediaBox.topRightX)+" "+D(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&J("/CropBox ["+D(m.cropBox.bottomLeftX)+" "+D(m.cropBox.bottomLeftY)+" "+D(m.cropBox.topRightX)+" "+D(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&J("/BleedBox ["+D(m.bleedBox.bottomLeftX)+" "+D(m.bleedBox.bottomLeftY)+" "+D(m.bleedBox.topRightX)+" "+D(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&J("/TrimBox ["+D(m.trimBox.bottomLeftX)+" "+D(m.trimBox.bottomLeftY)+" "+D(m.trimBox.topRightX)+" "+D(m.trimBox.topRightY)+"]"),m.artBox!==null&&J("/ArtBox ["+D(m.artBox.bottomLeftX)+" "+D(m.artBox.bottomLeftY)+" "+D(m.artBox.topRightX)+" "+D(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&J("/UserUnit "+m.userUnit),At.publish("putPage",{objId:oe,pageContext:tt[I],pageNumber:I,page:$}),J("/Contents "+fe+" 0 R"),J(">>"),J("endobj");var ye=$.join(`
+`);return y===S.ADVANCED&&(ye+=`
+Q`),Mr(fe,!0),Wr({data:ye,filters:zi(),objectId:fe}),J("endobj"),oe},Js=h.__private__.putPages=function(){var m,I,$=[];for(m=1;m<=nn;m++)tt[m].objId=bn(),tt[m].contentsObjId=bn();for(m=1;m<=nn;m++)$.push(Gi({number:m,data:we[m],objId:tt[m].objId,contentsObjId:tt[m].contentsObjId,mediaBox:tt[m].mediaBox,cropBox:tt[m].cropBox,bleedBox:tt[m].bleedBox,trimBox:tt[m].trimBox,artBox:tt[m].artBox,userUnit:tt[m].userUnit,rootDictionaryObjId:fo,resourceDictionaryObjId:hi}));Mr(fo,!0),J("<</Type /Pages");var oe="/Kids [";for(I=0;I<nn;I++)oe+=$[I]+" 0 R ";J(oe+"]"),J("/Count "+nn),J(">>"),J("endobj"),At.publish("postPutPages")},Ha=function(m){At.publish("putFont",{font:m,out:J,newObject:Cn,putStream:Wr}),m.isAlreadyPutted!==!0&&(m.objectNumber=Cn(),J("<<"),J("/Type /Font"),J("/BaseFont /"+Tl(m.postScriptName)),J("/Subtype /Type1"),typeof m.encoding=="string"&&J("/Encoding /"+m.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},Ya=function(){for(var m in jt)jt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&Ha(jt[m])},Ka=function(m){m.objectNumber=Cn();var I=[];I.push({key:"Type",value:"/XObject"}),I.push({key:"Subtype",value:"/Form"}),I.push({key:"BBox",value:"["+[D(m.x),D(m.y),D(m.x+m.width),D(m.y+m.height)].join(" ")+"]"}),I.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var $=m.pages[1].join(`
+`);Wr({data:$,additionalKeyValues:I,objectId:m.objectNumber}),J("endobj")},Xa=function(){for(var m in zn)zn.hasOwnProperty(m)&&Ka(zn[m])},Ah=function(m,I){var $,oe=[],fe=1/(I-1);for($=0;$<1;$+=fe)oe.push($);if(oe.push(1),m[0].offset!=0){var ye={offset:0,color:m[0].color};m.unshift(ye)}if(m[m.length-1].offset!=1){var Ne={offset:1,color:m[m.length-1].color};m.push(Ne)}for(var Oe="",qe=0,it=0;it<oe.length;it++){for($=oe[it];$>m[qe+1].offset;)qe++;var nt=m[qe].offset,pt=($-nt)/(m[qe+1].offset-nt),Kt=m[qe].color,rn=m[qe+1].color;Oe+=ne(Math.round((1-pt)*Kt[0]+pt*rn[0]).toString(16))+ne(Math.round((1-pt)*Kt[1]+pt*rn[1]).toString(16))+ne(Math.round((1-pt)*Kt[2]+pt*rn[2]).toString(16))}return Oe.trim()},v0=function(m,I){I||(I=21);var $=Cn(),oe=Ah(m.colors,I),fe=[];fe.push({key:"FunctionType",value:"0"}),fe.push({key:"Domain",value:"[0.0 1.0]"}),fe.push({key:"Size",value:"["+I+"]"}),fe.push({key:"BitsPerSample",value:"8"}),fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Wr({data:oe,additionalKeyValues:fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:$}),J("endobj"),m.objectNumber=Cn(),J("<< /ShadingType "+m.type),J("/ColorSpace /DeviceRGB");var ye="/Coords ["+D(parseFloat(m.coords[0]))+" "+D(parseFloat(m.coords[1]))+" ";m.type===2?ye+=D(parseFloat(m.coords[2]))+" "+D(parseFloat(m.coords[3])):ye+=D(parseFloat(m.coords[2]))+" "+D(parseFloat(m.coords[3]))+" "+D(parseFloat(m.coords[4]))+" "+D(parseFloat(m.coords[5])),J(ye+="]"),m.matrix&&J("/Matrix ["+m.matrix.toString()+"]"),J("/Function "+$+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},y0=function(m,I){var $=bn(),oe=Cn();I.push({resourcesOid:$,objectOid:oe}),m.objectNumber=oe;var fe=[];fe.push({key:"Type",value:"/Pattern"}),fe.push({key:"PatternType",value:"1"}),fe.push({key:"PaintType",value:"1"}),fe.push({key:"TilingType",value:"1"}),fe.push({key:"BBox",value:"["+m.boundingBox.map(D).join(" ")+"]"}),fe.push({key:"XStep",value:D(m.xStep)}),fe.push({key:"YStep",value:D(m.yStep)}),fe.push({key:"Resources",value:$+" 0 R"}),m.matrix&&fe.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),Wr({data:m.stream,additionalKeyValues:fe,objectId:m.objectNumber}),J("endobj")},$a=function(m){var I;for(I in xt)xt.hasOwnProperty(I)&&(xt[I]instanceof pa?v0(xt[I]):xt[I]instanceof Vl&&y0(xt[I],m))},Nh=function(m){for(var I in m.objectNumber=Cn(),J("<<"),m)switch(I){case"opacity":J("/ca "+T(m[I]));break;case"stroke-opacity":J("/CA "+T(m[I]))}J(">>"),J("endobj")},w0=function(){var m;for(m in tn)tn.hasOwnProperty(m)&&Nh(tn[m])},Lc=function(){for(var m in J("/XObject <<"),zn)zn.hasOwnProperty(m)&&zn[m].objectNumber>=0&&J("/"+m+" "+zn[m].objectNumber+" 0 R");At.publish("putXobjectDict"),J(">>")},b0=function(){Kn.oid=Cn(),J("<<"),J("/Filter /Standard"),J("/V "+Kn.v),J("/R "+Kn.r),J("/U <"+Kn.toHexString(Kn.U)+">"),J("/O <"+Kn.toHexString(Kn.O)+">"),J("/P "+Kn.P),J(">>"),J("endobj")},Ch=function(){for(var m in J("/Font <<"),jt)jt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&J("/"+m+" "+jt[m].objectNumber+" 0 R");J(">>")},_0=function(){if(Object.keys(xt).length>0){for(var m in J("/Shading <<"),xt)xt.hasOwnProperty(m)&&xt[m]instanceof pa&&xt[m].objectNumber>=0&&J("/"+m+" "+xt[m].objectNumber+" 0 R");At.publish("putShadingPatternDict"),J(">>")}},Qa=function(m){if(Object.keys(xt).length>0){for(var I in J("/Pattern <<"),xt)xt.hasOwnProperty(I)&&xt[I]instanceof h.TilingPattern&&xt[I].objectNumber>=0&&xt[I].objectNumber<m&&J("/"+I+" "+xt[I].objectNumber+" 0 R");At.publish("putTilingPatternDict"),J(">>")}},S0=function(){if(Object.keys(tn).length>0){var m;for(m in J("/ExtGState <<"),tn)tn.hasOwnProperty(m)&&tn[m].objectNumber>=0&&J("/"+m+" "+tn[m].objectNumber+" 0 R");At.publish("putGStateDict"),J(">>")}},un=function(m){Mr(m.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ch(),_0(),Qa(m.objectOid),S0(),Lc(),J(">>"),J("endobj")},Ph=function(){var m=[];Ya(),w0(),Xa(),$a(m),At.publish("putResources"),m.forEach(un),un({resourcesOid:hi,objectOid:Number.MAX_SAFE_INTEGER}),At.publish("postPutResources")},Lh=function(){At.publish("putAdditionalObjects");for(var m=0;m<xe.length;m++){var I=xe[m];Mr(I.objId,!0),J(I.content),J("endobj")}At.publish("postPutAdditionalObjects")},kh=function(m){Vt[m.fontName]=Vt[m.fontName]||{},Vt[m.fontName][m.fontStyle]=m.id},kc=function(m,I,$,oe,fe){var ye={id:"F"+(Object.keys(jt).length+1).toString(10),postScriptName:m,fontName:I,fontStyle:$,encoding:oe,isStandardFont:fe||!1,metadata:{}};return At.publish("addFont",{font:ye,instance:this}),jt[ye.id]=ye,kh(ye),ye.id},x0=function(m){for(var I=0,$=Pe.length;I<$;I++){var oe=kc.call(this,m[I][0],m[I][1],m[I][2],Pe[I][3],!0);p===!1&&(g[oe]=!0);var fe=m[I][0].split("-");kh({id:oe,fontName:fe[0],fontStyle:fe[1]||""})}At.publish("addFonts",{fonts:jt,dictionary:Vt})},pi=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(oe){var I=oe.stack||"";~I.indexOf(" at ")&&(I=I.split(" at ")[1]);var $="Error in function "+I.split(`
+`)[0].split("<")[0]+": "+oe.message;if(!Ke.console)throw new Error($);Ke.console.error($,oe),Ke.alert&&alert($)}},m.foo.bar=m,m.foo},Ja=function(m,I){var $,oe,fe,ye,Ne,Oe,qe,it,nt;if(fe=(I=I||{}).sourceEncoding||"Unicode",Ne=I.outputEncoding,(I.autoencode||Ne)&&jt[ct].metadata&&jt[ct].metadata[fe]&&jt[ct].metadata[fe].encoding&&(ye=jt[ct].metadata[fe].encoding,!Ne&&jt[ct].encoding&&(Ne=jt[ct].encoding),!Ne&&ye.codePages&&(Ne=ye.codePages[0]),typeof Ne=="string"&&(Ne=ye[Ne]),Ne)){for(qe=!1,Oe=[],$=0,oe=m.length;$<oe;$++)(it=Ne[m.charCodeAt($)])?Oe.push(String.fromCharCode(it)):Oe.push(m[$]),Oe[$].charCodeAt(0)>>8&&(qe=!0);m=Oe.join("")}for($=m.length;qe===void 0&&$!==0;)m.charCodeAt($-1)>>8&&(qe=!0),$--;if(!qe)return m;for(Oe=I.noBOM?[]:[254,255],$=0,oe=m.length;$<oe;$++){if((nt=(it=m.charCodeAt($))>>8)>>8)throw new Error("Character at position "+$+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Oe.push(nt),Oe.push(it-(nt<<8))}return String.fromCharCode.apply(void 0,Oe)},_r=h.__private__.pdfEscape=h.pdfEscape=function(m,I){return Ja(m,I).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ec=h.__private__.beginPage=function(m){we[++nn]=[],tt[nn]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},Th(nn),me(we[G])},Eh=function(m,I){var $,oe,fe;switch(n=I||n,typeof m=="string"&&($=v(m.toLowerCase()),Array.isArray($)&&(oe=$[0],fe=$[1])),Array.isArray(m)&&(oe=m[0]*Fe,fe=m[1]*Fe),isNaN(oe)&&(oe=i[0],fe=i[1]),(oe>14400||fe>14400)&&(It.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),oe=Math.min(14400,oe),fe=Math.min(14400,fe)),i=[oe,fe],n.substr(0,1)){case"l":fe>oe&&(i=[fe,oe]);break;case"p":oe>fe&&(i=[fe,oe])}Ec(i),Rh(Ic),J(gi),Oc!==0&&J(Oc+" J"),Rc!==0&&J(Rc+" j"),At.publish("addPage",{pageNumber:nn})},A0=function(m){m>0&&m<=nn&&(we.splice(m,1),tt.splice(m,1),nn--,G>nn&&(G=nn),this.setPage(G))},Th=function(m){m>0&&m<=nn&&(G=m)},N0=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return we.length-1},jh=function(m,I,$){var oe,fe=void 0;return $=$||{},m=m!==void 0?m:jt[ct].fontName,I=I!==void 0?I:jt[ct].fontStyle,oe=m.toLowerCase(),Vt[oe]!==void 0&&Vt[oe][I]!==void 0?fe=Vt[oe][I]:Vt[m]!==void 0&&Vt[m][I]!==void 0?fe=Vt[m][I]:$.disableWarning===!1&&It.warn("Unable to look up font label for font '"+m+"', '"+I+"'. Refer to getFontList() for available fonts."),fe||$.noFallback||(fe=Vt.times[I])==null&&(fe=Vt.times.normal),fe},C0=h.__private__.putInfo=function(){var m=Cn(),I=function(oe){return oe};for(var $ in d!==null&&(I=Kn.encryptor(m,0)),J("<<"),J("/Producer ("+_r(I("jsPDF "+Ye.version))+")"),Qe)Qe.hasOwnProperty($)&&Qe[$]&&J("/"+$.substr(0,1).toUpperCase()+$.substr(1)+" ("+_r(I(Qe[$]))+")");J("/CreationDate ("+_r(I(Q))+")"),J(">>"),J("endobj")},Tc=h.__private__.putCatalog=function(m){var I=(m=m||{}).rootDictionaryObjId||fo;switch(Cn(),J("<<"),J("/Type /Catalog"),J("/Pages "+I+" 0 R"),Ie||(Ie="fullwidth"),Ie){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var $=""+Ie;$.substr($.length-1)==="%"&&(Ie=parseInt(Ie)/100),typeof Ie=="number"&&J("/OpenAction [3 0 R /XYZ null null "+T(Ie)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}et&&J("/PageMode /"+et),At.publish("putCatalog"),J(">>"),J("endobj")},P0=h.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(ie+1)),J("/Root "+ie+" 0 R"),J("/Info "+(ie-1)+" 0 R"),d!==null&&J("/Encrypt "+Kn.oid+" 0 R"),J("/ID [ <"+ee+"> <"+ee+"> ]"),J(">>")},L0=h.__private__.putHeader=function(){J("%PDF-"+w),J("%ºß¬à")},k0=h.__private__.putXRef=function(){var m="0000000000";J("xref"),J("0 "+(ie+1)),J("0000000000 65535 f ");for(var I=1;I<=ie;I++)typeof q[I]=="function"?J((m+q[I]()).slice(-10)+" 00000 n "):q[I]!==void 0?J((m+q[I]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},po=h.__private__.buildDocument=function(){ze(),me(Z),At.publish("buildDocument"),L0(),Js(),Lh(),Ph(),d!==null&&b0(),C0(),Tc();var m=ce;return k0(),P0(),J("startxref"),J(""+m),J("%%EOF"),me(we[G]),Z.join(`
+`)},Za=h.__private__.getBlob=function(m){return new Blob([Be(m)],{type:"application/pdf"})},el=h.output=h.__private__.output=pi(function(m,I){switch(typeof(I=I||{})=="string"?I={filename:I}:I.filename=I.filename||"generated.pdf",m){case void 0:return po();case"save":h.save(I.filename);break;case"arraybuffer":return Be(po());case"blob":return Za(po());case"bloburi":case"bloburl":if(Ke.URL!==void 0&&typeof Ke.URL.createObjectURL=="function")return Ke.URL&&Ke.URL.createObjectURL(Za(po()))||void 0;It.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var $="",oe=po();try{$=L5(oe)}catch{$=L5(unescape(encodeURIComponent(oe)))}return"data:application/pdf;filename="+I.filename+";base64,"+$;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ke)==="[object Window]"){var fe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ye=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';I.pdfObjectUrl&&(fe=I.pdfObjectUrl,ye="");var Ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+fe+'"'+ye+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(I)+");<\/script></body></html>",Oe=Ke.open();return Oe!==null&&Oe.document.write(Ne),Oe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ke)==="[object Window]"){var qe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(I.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+I.filename+'" width="500px" height="400px" /></body></html>',it=Ke.open();if(it!==null){it.document.write(qe);var nt=this;it.document.documentElement.querySelector("#pdfViewer").onload=function(){it.document.title=I.filename,it.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(nt.output("bloburl"))}}return it}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ke)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var pt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",I)+'"></iframe></body></html>',Kt=Ke.open();if(Kt!==null&&(Kt.document.write(pt),Kt.document.title=I.filename),Kt||typeof safari>"u")return Kt;break;case"datauri":case"dataurl":return Ke.document.location.href=this.output("datauristring",I);default:return null}}),Mh=function(m){return Array.isArray(Qs)===!0&&Qs.indexOf(m)>-1};switch(r){case"pt":Fe=1;break;case"mm":Fe=72/25.4;break;case"cm":Fe=72/2.54;break;case"in":Fe=72;break;case"px":Fe=Mh("px_scaling")==1?.75:96/72;break;case"pc":case"em":Fe=12;break;case"ex":Fe=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Fe=r}var Kn=null;de(),K();var E0=function(m){return d!==null?Kn.encryptor(m,0):function(I){return I}},Ih=h.__private__.getPageInfo=h.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:tt[m].objId,pageNumber:m,pageContext:tt[m]}},Ze=h.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var I in tt)if(tt[I].objId===m)break;return Ih(I)},T0=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:tt[G].objId,pageNumber:G,pageContext:tt[G]}};h.addPage=function(){return Eh.apply(this,arguments),this},h.setPage=function(){return Th.apply(this,arguments),me.call(this,we[G]),this},h.insertPage=function(m){return this.addPage(),this.movePage(G,m),this},h.movePage=function(m,I){var $,oe;if(m>I){$=we[m],oe=tt[m];for(var fe=m;fe>I;fe--)we[fe]=we[fe-1],tt[fe]=tt[fe-1];we[I]=$,tt[I]=oe,this.setPage(I)}else if(m<I){$=we[m],oe=tt[m];for(var ye=m;ye<I;ye++)we[ye]=we[ye+1],tt[ye]=tt[ye+1];we[I]=$,tt[I]=oe,this.setPage(I)}return this},h.deletePage=function(){return A0.apply(this,arguments),this},h.__private__.text=h.text=function(m,I,$,oe,fe){var ye,Ne,Oe,qe,it,nt,pt,Kt,rn,_n=(oe=oe||{}).scope||this;if(typeof m=="number"&&typeof I=="number"&&(typeof $=="string"||Array.isArray($))){var Xn=$;$=I,I=m,m=Xn}if(arguments[3]instanceof He?(k("The transform parameter of text() with a Matrix value"),rn=fe):(Oe=arguments[4],qe=arguments[5],Pt(pt=arguments[3])==="object"&&pt!==null||(typeof Oe=="string"&&(qe=Oe,Oe=null),typeof pt=="string"&&(qe=pt,pt=null),typeof pt=="number"&&(Oe=pt,pt=null),oe={flags:pt,angle:Oe,align:qe})),isNaN(I)||isNaN($)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return _n;var In="",mi=!1,Ir=typeof oe.lineHeightFactor=="number"?oe.lineHeightFactor:ea,Wi=_n.internal.scaleFactor;function qh(Rt){return Rt=Rt.split("	").join(Array(oe.TabLen||9).join(" ")),_r(Rt,pt)}function Gc(Rt){for(var Bt,dn=Rt.concat(),Pn=[],wo=dn.length;wo--;)typeof(Bt=dn.shift())=="string"?Pn.push(Bt):Array.isArray(Rt)&&(Bt.length===1||Bt[1]===void 0&&Bt[2]===void 0)?Pn.push(Bt[0]):Pn.push([Bt[0],Bt[1],Bt[2]]);return Pn}function qc(Rt,Bt){var dn;if(typeof Rt=="string")dn=Bt(Rt)[0];else if(Array.isArray(Rt)){for(var Pn,wo,Qc=Rt.concat(),gl=[],Kh=Qc.length;Kh--;)typeof(Pn=Qc.shift())=="string"?gl.push(Bt(Pn)[0]):Array.isArray(Pn)&&typeof Pn[0]=="string"&&(wo=Bt(Pn[0],Pn[1],Pn[2]),gl.push([wo[0],wo[1],wo[2]]));dn=gl}return dn}var sl=!1,Vc=!0;if(typeof m=="string")sl=!0;else if(Array.isArray(m)){var Wc=m.concat();Ne=[];for(var al,Gn=Wc.length;Gn--;)(typeof(al=Wc.shift())!="string"||Array.isArray(al)&&typeof al[0]!="string")&&(Vc=!1);sl=Vc}if(sl===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var ll=Ee/_n.internal.scaleFactor,cl=ll*(Ir-1);switch(oe.baseline){case"bottom":$-=cl;break;case"top":$+=ll-cl;break;case"hanging":$+=ll-2*cl;break;case"middle":$+=ll/2-cl}if((nt=oe.maxWidth||0)>0&&(typeof m=="string"?m=_n.splitTextToSize(m,nt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(Rt,Bt){return Rt.concat(_n.splitTextToSize(Bt,nt))},[]))),ye={text:m,x:I,y:$,options:oe,mutex:{pdfEscape:_r,activeFontKey:ct,fonts:jt,activeFontSize:Ee}},At.publish("preProcessText",ye),m=ye.text,Oe=(oe=ye.options).angle,!(rn instanceof He)&&Oe&&typeof Oe=="number"){Oe*=Math.PI/180,oe.rotationDirection===0&&(Oe=-Oe),y===S.ADVANCED&&(Oe=-Oe);var ul=Math.cos(Oe),Hc=Math.sin(Oe);rn=new He(ul,Hc,-Hc,ul,0,0)}else Oe&&Oe instanceof He&&(rn=Oe);y!==S.ADVANCED||rn||(rn=Ui),(it=oe.charSpace||rl)!==void 0&&(In+=D(E(it))+` Tc
+`,this.setCharSpace(this.getCharSpace()||0)),(Kt=oe.horizontalScale)!==void 0&&(In+=D(100*Kt)+` Tz
+`),oe.lang;var Sr=-1,z0=oe.renderingMode!==void 0?oe.renderingMode:oe.stroke,Yc=_n.internal.getCurrentPageInfo().pageContext;switch(z0){case 0:case!1:case"fill":Sr=0;break;case 1:case!0:case"stroke":Sr=1;break;case 2:case"fillThenStroke":Sr=2;break;case 3:case"invisible":Sr=3;break;case 4:case"fillAndAddForClipping":Sr=4;break;case 5:case"strokeAndAddPathForClipping":Sr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Sr=6;break;case 7:case"addToPathForClipping":Sr=7}var Vh=Yc.usedRenderingMode!==void 0?Yc.usedRenderingMode:-1;Sr!==-1?In+=Sr+` Tr
+`:Vh!==-1&&(In+=`0 Tr
+`),Sr!==-1&&(Yc.usedRenderingMode=Sr),qe=oe.align||"left";var Hr,hl=Ee*Ir,Wh=_n.internal.pageSize.getWidth(),Hh=jt[ct];it=oe.charSpace||rl,nt=oe.maxWidth||0,pt=Object.assign({autoencode:!0,noBOM:!0},oe.flags);var Xo=[],ra=function(Rt){return _n.getStringUnitWidth(Rt,{font:Hh,charSpace:it,fontSize:Ee,doKerning:!1})*Ee/Wi};if(Object.prototype.toString.call(m)==="[object Array]"){var xr;Ne=Gc(m),qe!=="left"&&(Hr=Ne.map(ra));var cr,$o=0;if(qe==="right"){I-=Hr[0],m=[],Gn=Ne.length;for(var mo=0;mo<Gn;mo++)mo===0?(cr=Vi(I),xr=go($)):(cr=E($o-Hr[mo]),xr=-hl),m.push([Ne[mo],cr,xr]),$o=Hr[mo]}else if(qe==="center"){I-=Hr[0]/2,m=[],Gn=Ne.length;for(var vo=0;vo<Gn;vo++)vo===0?(cr=Vi(I),xr=go($)):(cr=E(($o-Hr[vo])/2),xr=-hl),m.push([Ne[vo],cr,xr]),$o=Hr[vo]}else if(qe==="left"){m=[],Gn=Ne.length;for(var dl=0;dl<Gn;dl++)m.push(Ne[dl])}else if(qe==="justify"&&Hh.encoding==="Identity-H"){m=[],Gn=Ne.length,nt=nt!==0?nt:Wh;for(var yo=0,hn=0;hn<Gn;hn++)if(xr=hn===0?go($):-hl,cr=hn===0?Vi(I):yo,hn<Gn-1){var Kc=E((nt-Hr[hn])/(Ne[hn].split(" ").length-1)),ur=Ne[hn].split(" ");m.push([ur[0]+" ",cr,xr]),yo=0;for(var Yr=1;Yr<ur.length;Yr++){var fl=(ra(ur[Yr-1]+" "+ur[Yr])-ra(ur[Yr]))*Wi+Kc;Yr==ur.length-1?m.push([ur[Yr],fl,0]):m.push([ur[Yr]+" ",fl,0]),yo-=fl}}else m.push([Ne[hn],cr,xr]);m.push(["",yo,0])}else{if(qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],Gn=Ne.length,nt=nt!==0?nt:Wh,hn=0;hn<Gn;hn++)xr=hn===0?go($):-hl,cr=hn===0?Vi(I):0,hn<Gn-1?Xo.push(D(E((nt-Hr[hn])/(Ne[hn].split(" ").length-1)))):Xo.push(0),m.push([Ne[hn],cr,xr])}}var Yh=typeof oe.R2L=="boolean"?oe.R2L:Ge;Yh===!0&&(m=qc(m,function(Rt,Bt,dn){return[Rt.split("").reverse().join(""),Bt,dn]})),ye={text:m,x:I,y:$,options:oe,mutex:{pdfEscape:_r,activeFontKey:ct,fonts:jt,activeFontSize:Ee}},At.publish("postProcessText",ye),m=ye.text,mi=ye.mutex.isHex||!1;var Xc=jt[ct].encoding;Xc!=="WinAnsiEncoding"&&Xc!=="StandardEncoding"||(m=qc(m,function(Rt,Bt,dn){return[qh(Rt),Bt,dn]})),Ne=Gc(m),m=[];for(var ia,oa,Qo,sa=0,pl=1,aa=Array.isArray(Ne[0])?pl:sa,Jo="",$c=function(Rt,Bt,dn){var Pn="";return dn instanceof He?(dn=typeof oe.angle=="number"?ui(dn,new He(1,0,0,1,Rt,Bt)):ui(new He(1,0,0,1,Rt,Bt),dn),y===S.ADVANCED&&(dn=ui(new He(1,0,0,-1,0,0),dn)),Pn=dn.join(" ")+` Tm
+`):Pn=D(Rt)+" "+D(Bt)+` Td
+`,Pn},Kr=0;Kr<Ne.length;Kr++){switch(Jo="",aa){case pl:Qo=(mi?"<":"(")+Ne[Kr][0]+(mi?">":")"),ia=parseFloat(Ne[Kr][1]),oa=parseFloat(Ne[Kr][2]);break;case sa:Qo=(mi?"<":"(")+Ne[Kr]+(mi?">":")"),ia=Vi(I),oa=go($)}Xo!==void 0&&Xo[Kr]!==void 0&&(Jo=Xo[Kr]+` Tw
+`),Kr===0?m.push(Jo+$c(ia,oa,rn)+Qo):aa===sa?m.push(Jo+Qo):aa===pl&&m.push(Jo+$c(ia,oa,rn)+Qo)}m=aa===sa?m.join(` Tj
+T* `):m.join(` Tj
+`),m+=` Tj
+`;var Xr=`BT
+/`;return Xr+=ct+" "+Ee+` Tf
+`,Xr+=D(Ee*Ir)+` TL
+`,Xr+=ta+`
+`,Xr+=In,Xr+=m,J(Xr+="ET"),g[ct]=!0,_n};var j0=h.__private__.clip=h.clip=function(m){return J(m==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return j0("evenodd")},h.__private__.discardPath=h.discardPath=function(){return J("n"),this};var qi=h.__private__.isValidStyle=function(m){var I=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(I=!0),I};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(m){return qi(m)&&(u=m),this};var Fh=h.__private__.getStyle=h.getStyle=function(m){var I=u;switch(m){case"D":case"S":I="S";break;case"F":I="f";break;case"FD":case"DF":I="B";break;case"f":case"f*":case"B":case"B*":I=m}return I},Oh=h.close=function(){return J("h"),this};h.stroke=function(){return J("S"),this},h.fill=function(m){return tl("f",m),this},h.fillEvenOdd=function(m){return tl("f*",m),this},h.fillStroke=function(m){return tl("B",m),this},h.fillStrokeEvenOdd=function(m){return tl("B*",m),this};var tl=function(m,I){Pt(I)==="object"?I0(I,m):J(m)},jc=function(m){m===null||y===S.ADVANCED&&m===void 0||(m=Fh(m),J(m))};function M0(m,I,$,oe,fe){var ye=new Vl(I||this.boundingBox,$||this.xStep,oe||this.yStep,this.gState,fe||this.matrix);ye.stream=this.stream;var Ne=m+"$$"+this.cloneIndex+++"$$";return br(Ne,ye),ye}var I0=function(m,I){var $=$s[m.key],oe=xt[$];if(oe instanceof pa)J("q"),J(F0(I)),oe.gState&&h.setGState(oe.gState),J(m.matrix.toString()+" cm"),J("/"+$+" sh"),J("Q");else if(oe instanceof Vl){var fe=new He(1,0,0,-1,0,Ko());m.matrix&&(fe=fe.multiply(m.matrix||Ui),$=M0.call(oe,m.key,m.boundingBox,m.xStep,m.yStep,fe).id),J("q"),J("/Pattern cs"),J("/"+$+" scn"),oe.gState&&h.setGState(oe.gState),J(I),J("Q")}},F0=function(m){switch(m){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Mc=h.moveTo=function(m,I){return J(D(E(m))+" "+D(B(I))+" m"),this},Zs=h.lineTo=function(m,I){return J(D(E(m))+" "+D(B(I))+" l"),this},Ho=h.curveTo=function(m,I,$,oe,fe,ye){return J([D(E(m)),D(B(I)),D(E($)),D(B(oe)),D(E(fe)),D(B(ye)),"c"].join(" ")),this};h.__private__.line=h.line=function(m,I,$,oe,fe){if(isNaN(m)||isNaN(I)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.line");return y===S.COMPAT?this.lines([[$-m,oe-I]],m,I,[1,1],fe||"S"):this.lines([[$-m,oe-I]],m,I,[1,1]).stroke()},h.__private__.lines=h.lines=function(m,I,$,oe,fe,ye){var Ne,Oe,qe,it,nt,pt,Kt,rn,_n,Xn,In,mi;if(typeof m=="number"&&(mi=$,$=I,I=m,m=mi),oe=oe||[1,1],ye=ye||!1,isNaN(I)||isNaN($)||!Array.isArray(m)||!Array.isArray(oe)||!qi(fe)||typeof ye!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Mc(I,$),Ne=oe[0],Oe=oe[1],it=m.length,Xn=I,In=$,qe=0;qe<it;qe++)(nt=m[qe]).length===2?(Xn=nt[0]*Ne+Xn,In=nt[1]*Oe+In,Zs(Xn,In)):(pt=nt[0]*Ne+Xn,Kt=nt[1]*Oe+In,rn=nt[2]*Ne+Xn,_n=nt[3]*Oe+In,Xn=nt[4]*Ne+Xn,In=nt[5]*Oe+In,Ho(pt,Kt,rn,_n,Xn,In));return ye&&Oh(),jc(fe),this},h.path=function(m){for(var I=0;I<m.length;I++){var $=m[I],oe=$.c;switch($.op){case"m":Mc(oe[0],oe[1]);break;case"l":Zs(oe[0],oe[1]);break;case"c":Ho.apply(this,oe);break;case"h":Oh()}}return this},h.__private__.rect=h.rect=function(m,I,$,oe,fe){if(isNaN(m)||isNaN(I)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.rect");return y===S.COMPAT&&(oe=-oe),J([D(E(m)),D(B(I)),D(E($)),D(E(oe)),"re"].join(" ")),jc(fe),this},h.__private__.triangle=h.triangle=function(m,I,$,oe,fe,ye,Ne){if(isNaN(m)||isNaN(I)||isNaN($)||isNaN(oe)||isNaN(fe)||isNaN(ye)||!qi(Ne))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[$-m,oe-I],[fe-$,ye-oe],[m-fe,I-ye]],m,I,[1,1],Ne,!0),this},h.__private__.roundedRect=h.roundedRect=function(m,I,$,oe,fe,ye,Ne){if(isNaN(m)||isNaN(I)||isNaN($)||isNaN(oe)||isNaN(fe)||isNaN(ye)||!qi(Ne))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Oe=4/3*(Math.SQRT2-1);return fe=Math.min(fe,.5*$),ye=Math.min(ye,.5*oe),this.lines([[$-2*fe,0],[fe*Oe,0,fe,ye-ye*Oe,fe,ye],[0,oe-2*ye],[0,ye*Oe,-fe*Oe,ye,-fe,ye],[2*fe-$,0],[-fe*Oe,0,-fe,-ye*Oe,-fe,-ye],[0,2*ye-oe],[0,-ye*Oe,fe*Oe,-ye,fe,-ye]],m+fe,I,[1,1],Ne,!0),this},h.__private__.ellipse=h.ellipse=function(m,I,$,oe,fe){if(isNaN(m)||isNaN(I)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ye=4/3*(Math.SQRT2-1)*$,Ne=4/3*(Math.SQRT2-1)*oe;return Mc(m+$,I),Ho(m+$,I-Ne,m+ye,I-oe,m,I-oe),Ho(m-ye,I-oe,m-$,I-Ne,m-$,I),Ho(m-$,I+Ne,m-ye,I+oe,m,I+oe),Ho(m+ye,I+oe,m+$,I+Ne,m+$,I),jc(fe),this},h.__private__.circle=h.circle=function(m,I,$,oe){if(isNaN(m)||isNaN(I)||isNaN($)||!qi(oe))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,I,$,$,oe)},h.setFont=function(m,I,$){return $&&(I=R(I,$)),ct=jh(m,I,{disableWarning:!1}),this};var O0=h.__private__.getFont=h.getFont=function(){return jt[jh.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var m,I,$={};for(m in Vt)if(Vt.hasOwnProperty(m))for(I in $[m]=[],Vt[m])Vt[m].hasOwnProperty(I)&&$[m].push(I);return $},h.addFont=function(m,I,$,oe,fe){var ye=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ye.indexOf(arguments[3])!==-1?fe=arguments[3]:arguments[3]&&ye.indexOf(arguments[3])==-1&&($=R($,oe)),fe=fe||"Identity-H",kc.call(this,m,I,$,fe)};var ea,Ic=t.lineWidth||.200025,nl=h.__private__.getLineWidth=h.getLineWidth=function(){return Ic},Rh=h.__private__.setLineWidth=h.setLineWidth=function(m){return Ic=m,J(D(E(m))+" w"),this};h.__private__.setLineDash=Ye.API.setLineDash=Ye.API.setLineDashPattern=function(m,I){if(m=m||[],I=I||0,isNaN(I)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function($){return D(E($))}).join(" "),I=D(E(I)),J("["+m+"] "+I+" d"),this};var Bh=h.__private__.getLineHeight=h.getLineHeight=function(){return Ee*ea};h.__private__.getLineHeight=h.getLineHeight=function(){return Ee*ea};var Dh=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(ea=m),this},Uh=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return ea};Dh(t.lineHeight);var Vi=h.__private__.getHorizontalCoordinate=function(m){return E(m)},go=h.__private__.getVerticalCoordinate=function(m){return y===S.ADVANCED?m:tt[G].mediaBox.topRightY-tt[G].mediaBox.bottomLeftY-E(m)},R0=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(m){return D(Vi(m))},Yo=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(m){return D(go(m))},gi=t.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return di(gi)},h.__private__.setStrokeColor=h.setDrawColor=function(m,I,$,oe){return gi=fi({ch1:m,ch2:I,ch3:$,ch4:oe,pdfColorType:"draw",precision:2}),J(gi),this};var Fc=t.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return di(Fc)},h.__private__.setFillColor=h.setFillColor=function(m,I,$,oe){return Fc=fi({ch1:m,ch2:I,ch3:$,ch4:oe,pdfColorType:"fill",precision:2}),J(Fc),this};var ta=t.textColor||"0 g",B0=h.__private__.getTextColor=h.getTextColor=function(){return di(ta)};h.__private__.setTextColor=h.setTextColor=function(m,I,$,oe){return ta=fi({ch1:m,ch2:I,ch3:$,ch4:oe,pdfColorType:"text",precision:3}),this};var rl=t.charSpace,D0=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(rl||0)};h.__private__.setCharSpace=h.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return rl=m,this};var Oc=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(m){var I=h.CapJoinStyles[m];if(I===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Oc=I,J(I+" J"),this};var Rc=0;h.__private__.setLineJoin=h.setLineJoin=function(m){var I=h.CapJoinStyles[m];if(I===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Rc=I,J(I+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(D(E(m))+" M"),this},h.GState=Hf,h.setGState=function(m){(m=typeof m=="string"?tn[ci[m]]:zh(null,m)).equals(ho)||(J("/"+m.id+" gs"),ho=m)};var zh=function(m,I){if(!m||!ci[m]){var $=!1;for(var oe in tn)if(tn.hasOwnProperty(oe)&&tn[oe].equals(I)){$=!0;break}if($)I=tn[oe];else{var fe="GS"+(Object.keys(tn).length+1).toString(10);tn[fe]=I,I.id=fe}return m&&(ci[m]=I.id),At.publish("addGState",I),I}};h.addGState=function(m,I){return zh(m,I),this},h.saveGraphicsState=function(){return J("q"),Ri.push({key:ct,size:Ee,color:ta}),this},h.restoreGraphicsState=function(){J("Q");var m=Ri.pop();return ct=m.key,Ee=m.size,ta=m.color,ho=null,this},h.setCurrentTransformationMatrix=function(m){return J(m.toString()+" cm"),this},h.comment=function(m){return J("#"+m),this};var il=function(m,I){var $=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $},set:function(ye){isNaN(ye)||($=parseFloat(ye))}});var oe=I||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return oe},set:function(ye){isNaN(ye)||(oe=parseFloat(ye))}});var fe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return fe},set:function(ye){fe=ye.toString()}}),this},Bc=function(m,I,$,oe){il.call(this,m,I),this.type="rect";var fe=$||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return fe},set:function(Ne){isNaN(Ne)||(fe=parseFloat(Ne))}});var ye=oe||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ye},set:function(Ne){isNaN(Ne)||(ye=parseFloat(Ne))}}),this},Dc=function(){this.page=nn,this.currentPage=G,this.pages=we.slice(0),this.pagesContext=tt.slice(0),this.x=Yn,this.y=wt,this.matrix=li,this.width=na(G),this.height=Ko(G),this.outputDestination=ke,this.id="",this.objectNumber=-1};Dc.prototype.restore=function(){nn=this.page,G=this.currentPage,tt=this.pagesContext,we=this.pages,Yn=this.x,wt=this.y,li=this.matrix,Uc(G,this.width),zc(G,this.height),ke=this.outputDestination};var Gh=function(m,I,$,oe,fe){Di.push(new Dc),nn=G=0,we=[],Yn=m,wt=I,li=fe,Ec([$,oe])},U0=function(m){if(Bi[m])Di.pop().restore();else{var I=new Dc,$="Xo"+(Object.keys(zn).length+1).toString(10);I.id=$,Bi[m]=$,zn[$]=I,At.publish("addFormObject",I),Di.pop().restore()}};for(var ol in h.beginFormObject=function(m,I,$,oe,fe){return Gh(m,I,$,oe,fe),this},h.endFormObject=function(m){return U0(m),this},h.doFormObject=function(m,I){var $=zn[Bi[m]];return J("q"),J(I.toString()+" cm"),J("/"+$.id+" Do"),J("Q"),this},h.getFormObject=function(m){var I=zn[Bi[m]];return{x:I.x,y:I.y,width:I.width,height:I.height,matrix:I.matrix}},h.save=function(m,I){return m=m||"generated.pdf",(I=I||{}).returnPromise=I.returnPromise||!1,I.returnPromise===!1?(fa(Za(po()),m),typeof fa.unload=="function"&&Ke.setTimeout&&setTimeout(fa.unload,911),this):new Promise(function($,oe){try{var fe=fa(Za(po()),m);typeof fa.unload=="function"&&Ke.setTimeout&&setTimeout(fa.unload,911),$(fe)}catch(ye){oe(ye.message)}})},Ye.API)Ye.API.hasOwnProperty(ol)&&(ol==="events"&&Ye.API.events.length?function(m,I){var $,oe,fe;for(fe=I.length-1;fe!==-1;fe--)$=I[fe][0],oe=I[fe][1],m.subscribe.apply(m,[$].concat(typeof oe=="function"?[oe]:oe))}(At,Ye.API.events):h[ol]=Ye.API[ol]);var na=h.getPageWidth=function(m){return(tt[m=m||G].mediaBox.topRightX-tt[m].mediaBox.bottomLeftX)/Fe},Uc=h.setPageWidth=function(m,I){tt[m].mediaBox.topRightX=I*Fe+tt[m].mediaBox.bottomLeftX},Ko=h.getPageHeight=function(m){return(tt[m=m||G].mediaBox.topRightY-tt[m].mediaBox.bottomLeftY)/Fe},zc=h.setPageHeight=function(m,I){tt[m].mediaBox.topRightY=I*Fe+tt[m].mediaBox.bottomLeftY};return h.internal={pdfEscape:_r,getStyle:Fh,getFont:O0,getFontSize:Me,getCharSpace:D0,getTextColor:B0,getLineHeight:Bh,getLineHeightFactor:Uh,getLineWidth:nl,write:Ve,getHorizontalCoordinate:Vi,getVerticalCoordinate:go,getCoordinateString:R0,getVerticalCoordinateString:Yo,collections:{},newObject:Cn,newAdditionalObject:Wa,newObjectDeferred:bn,newObjectDeferredBegin:Mr,getFilters:zi,putStream:Wr,events:At,scaleFactor:Fe,pageSize:{getWidth:function(){return na(G)},setWidth:function(m){Uc(G,m)},getHeight:function(){return Ko(G)},setHeight:function(m){zc(G,m)}},encryptionOptions:d,encryption:Kn,getEncryptor:E0,output:el,getNumberOfPages:N0,pages:we,out:J,f2:T,f3:P,getPageInfo:Ih,getPageInfoByObjId:Ze,getCurrentPageInfo:T0,getPDFVersion:_,Point:il,Rectangle:Bc,Matrix:He,hasHotfix:Mh},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return na(G)},set:function(m){Uc(G,m)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ko(G)},set:function(m){zc(G,m)},enumerable:!0,configurable:!0}),x0.call(h,Pe),ct="F1",Eh(i,n),At.publish("initialized"),h}El.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},El.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},El.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},El.prototype.processOwnerPassword=function(t,e){return E5(k5(e).substr(0,5),t)},El.prototype.encryptor=function(t,e){var n=k5(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return E5(n,r)}},Hf.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||Pt(t)!==Pt(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return r===0},Ye.API={events:[]},Ye.version="2.5.2";var sn=Ye.API,am=1,Va=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pl=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},rt=function(t){return t.toFixed(2)},us=function(t){return t.toFixed(5)};sn.__acroform__={};var jr=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},N4=function(t){return t*am},Qi=function(t){var e=new Ww,n=Ue.internal.getHeight(t)||0,r=Ue.internal.getWidth(t)||0;return e.BBox=[0,0,Number(rt(r)),Number(rt(n))],e},tI=sn.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},nI=sn.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},rI=sn.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},gn=sn.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return rI(t,e-1)},mn=sn.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return tI(t,e-1)},vn=sn.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return nI(t,e-1)},iI=sn.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],s=t[2],a=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+a)||0,l.upperRight_X=n(i+s)||0,l.upperRight_Y=r(o)||0,[Number(rt(l.lowerLeft_X)),Number(rt(l.lowerLeft_Y)),Number(rt(l.upperRight_X)),Number(rt(l.upperRight_Y))]},oI=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=T5(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+rt(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Qi(t);return o.scope=t.scope,o.stream=e.join(`
+`),o}},T5=function(t,e){var n=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map(function(P){return P.split(`
+`)}):i.map(function(P){return[P]});var o=n,s=Ue.internal.getHeight(t)||0;s=s<0?-s:s;var a=Ue.internal.getWidth(t)||0;a=a<0?-a:a;var l=function(P,E,W){if(P+1<i.length){var B=E+" "+i[P+1][0];return Gd(B,t,W).width<=a-4}return!1};o++;e:for(;o>0;){e="",o--;var u,d,p=Gd("3",t,o).height,g=t.multiline?s-o:(s-p)/2,h=g+=2,w=0,_=0,A=0;if(o<=0){e=`(...) Tj
+`,e+="% Width of Text: "+Gd(e,t,o=12).width+", FieldWidth:"+a+`
+`;break}for(var v="",S=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var N=!1;if(i[y].length!==1&&A!==i[y].length-1){if((p+2)*(S+2)+2>s)continue e;v+=i[y][A],N=!0,_=y,y--}else{v=(v+=i[y][A]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var L=parseInt(y),R=l(L,v,o),D=y>=i.length-1;if(R&&!D){v+=" ",A=0;continue}if(R||D){if(D)_=L;else if(t.multiline&&(p+2)*(S+2)+2>s)continue e}else{if(!t.multiline||(p+2)*(S+2)+2>s)continue e;_=L}}for(var k="",z=w;z<=_;z++){var T=i[z];if(t.multiline){if(z===_){k+=T[A]+" ",A=(A+1)%T.length;continue}if(z===w){k+=T[T.length-1]+" ";continue}}k+=T[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,d=Gd(k,t,o).width,t.textAlign){case"right":u=a-d-2;break;case"center":u=(a-d)/2;break;case"left":default:u=2}e+=rt(u)+" "+rt(h)+` Td
+`,e+="("+Va(k)+`) Tj
+`,e+=-rt(u)+` 0 Td
+`,h=-(o+2),d=0,w=N?_:_+1,S++,v=""}break}return r.text=e,r.fontSize=o,r},Gd=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},sI={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},aI=function(t,e){var n={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},lI=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),Pt(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete t[r]}},cI=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Fi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(sI)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");am=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Hw,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o.objId=void 0,o.hasAnnotation&&aI(o,n)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(n){(function(r,i){var o=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],l=[],u=a.Rect;if(a.Rect&&(a.Rect=iI(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Ue.createDefaultAppearanceStream(a),Pt(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=u,a.hasAppearanceStream&&!a.appearanceStreamContent){var d=oI(a);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(a.appearanceStreamContent){var p="";for(var g in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(g)){var h=a.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var s in h)if(h.hasOwnProperty(s)){var w=h[s];typeof w=="function"&&(w=w.call(i,a)),p+="/"+s+" "+w+" ",i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w)}}else typeof(w=h)=="function"&&(w=w.call(i,a)),p+="/"+s+" "+w,i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w);p+=">>"}l.push({key:"AP",value:`<<
+`+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:a.objId}),i.internal.out("endobj")}o&&lI(i.internal.acroformPlugin.xForms,i)})(n,t)}),t.internal.acroformPlugin.isInitialized=!0}},Vw=sn.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(s){return s};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(o!==0&&(i+=" "),Pt(t[o])){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":t[o].substr(0,1)!=="/"?(e!==void 0&&n&&(r=n.internal.getEncryptor(e)),i+="("+Va(r(t[o].toString()))+")"):i+=t[o].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},r2=function(t,e,n){var r=function(i){return i};return e!==void 0&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),t="("+Va(r(t))+")"},to=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};to.prototype.toString=function(){return this.objId+" 0 R"},to.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},to.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var n in e)if(Object.getOwnPropertyDescriptor(this,e[n]).configurable===!1){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:Vw(i,this.objId,this.scope)}):i instanceof to?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&t.push({key:r,value:i}))}return t};var Ww=function(){to.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};jr(Ww,to);var Hw=function(){to.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Va(n(t))+")"}},set:function(n){t=n}})};jr(Hw,to);var Fi=function t(){to.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');e=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!gn(e,3)},set:function(v){v?this.F=mn(e,3):this.F=vn(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Yf)return;o="FieldObject"+t.FieldNum++}var v=function(S){return S};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Va(v(o))+")"},set:function(v){o=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(v){o=v}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/am:u},set:function(v){u=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof Yf||this instanceof xa))return r2(p,this.objId,this.scope)},set:function(v){v=v.toString(),p=v}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Dn?g:r2(g,this.objId,this.scope)},set:function(v){v=v.toString(),g=this instanceof Dn?v:v.substr(0,1)==="("?Pl(v.substr(1,v.length-2)):Pl(v)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Dn?Pl(g.substr(1,g.length-1)):g},set:function(v){v=v.toString(),g=this instanceof Dn?"/"+v:v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Dn?h:r2(h,this.objId,this.scope)},set:function(v){v=v.toString(),h=this instanceof Dn?v:v.substr(0,1)==="("?Pl(v.substr(1,v.length-2)):Pl(v)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Dn?Pl(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof Dn?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var w,_=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return _},set:function(v){v=!!v,_=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(v){w=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,1)},set:function(v){v?this.Ff=mn(this.Ff,1):this.Ff=vn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,2)},set:function(v){v?this.Ff=mn(this.Ff,2):this.Ff=vn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,3)},set:function(v){v?this.Ff=mn(this.Ff,3):this.Ff=vn(this.Ff,3)}});var A=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(A!==null)return A},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');A=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(A){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:A=2;break;case"center":case 1:A=1;break;case"left":case 0:default:A=0}}})};jr(Fi,to);var Jl=function(){Fi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Vw(e,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(o,s,a){a||(a=1);for(var l,u=[];l=s.exec(o);)u.push(l[a]);return u}(r,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(n){e=n,this.sort&&e.sort()},this.addOption=function(n){n=(n=n||"").toString(),e.push(n),this.sort&&e.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();e.indexOf(n)!==-1&&(e.splice(e.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,18)},set:function(n){n?this.Ff=mn(this.Ff,18):this.Ff=vn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=mn(this.Ff,19):this.Ff=vn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,20)},set:function(n){n?(this.Ff=mn(this.Ff,20),e.sort()):this.Ff=vn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,22)},set:function(n){n?this.Ff=mn(this.Ff,22):this.Ff=vn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,23)},set:function(n){n?this.Ff=mn(this.Ff,23):this.Ff=vn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,27)},set:function(n){n?this.Ff=mn(this.Ff,27):this.Ff=vn(this.Ff,27)}}),this.hasAppearanceStream=!1};jr(Jl,Fi);var Zl=function(){Jl.call(this),this.fontName="helvetica",this.combo=!1};jr(Zl,Jl);var ec=function(){Zl.call(this),this.combo=!0};jr(ec,Zl);var cf=function(){ec.call(this),this.edit=!0};jr(cf,ec);var Dn=function(){Fi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,15)},set:function(n){n?this.Ff=mn(this.Ff,15):this.Ff=vn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,16)},set:function(n){n?this.Ff=mn(this.Ff,16):this.Ff=vn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,17)},set:function(n){n?this.Ff=mn(this.Ff,17):this.Ff=vn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,26)},set:function(n){n?this.Ff=mn(this.Ff,26):this.Ff=vn(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,i=[];for(r in i.push("<<"),e)i.push("/"+r+" ("+Va(n(e[r]))+")");return i.push(">>"),i.join(`
+`)}},set:function(n){Pt(n)==="object"&&(e=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(n){typeof n=="string"&&(e.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}})};jr(Dn,Fi);var uf=function(){Dn.call(this),this.pushButton=!0};jr(uf,Dn);var tc=function(){Dn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};jr(tc,Dn);var Yf=function(){var t,e;Fi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var o,s=[];for(o in s.push("<<"),r)s.push("/"+o+" ("+Va(i(r[o]))+")");return s.push(">>"),s.join(`
+`)},set:function(i){Pt(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ue.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};jr(Yf,Fi),tc.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},tc.prototype.createOption=function(t){var e=new Yf;return e.Parent=this,e.optionName=t,this.Kids.push(e),uI.call(this.scope,e),e};var hf=function(){Dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ue.CheckBox.createAppearanceStream()};jr(hf,Dn);var xa=function(){Fi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,13)},set:function(e){e?this.Ff=mn(this.Ff,13):this.Ff=vn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,21)},set:function(e){e?this.Ff=mn(this.Ff,21):this.Ff=vn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,23)},set:function(e){e?this.Ff=mn(this.Ff,23):this.Ff=vn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,24)},set:function(e){e?this.Ff=mn(this.Ff,24):this.Ff=vn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,25)},set:function(e){e?this.Ff=mn(this.Ff,25):this.Ff=vn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,26)},set:function(e){e?this.Ff=mn(this.Ff,26):this.Ff=vn(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};jr(xa,Fi);var df=function(){xa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,14)},set:function(t){t?this.Ff=mn(this.Ff,14):this.Ff=vn(this.Ff,14)}}),this.password=!0};jr(df,xa);var Ue={CheckBox:{createAppearanceStream:function(){return{N:{On:Ue.CheckBox.YesNormal},D:{On:Ue.CheckBox.YesPushDown,Off:Ue.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=T5(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+rt(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join(`
+`),e},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=Ue.internal.getHeight(t),s=Ue.internal.getWidth(t),a=T5(t,t.caption);return i.push("1 g"),i.push("0 0 "+rt(s)+" "+rt(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+rt(s-1)+" "+rt(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+rt(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
+`),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ue.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ue.RadioButton.Circle.YesNormal,e.D[t]=Ue.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Ue.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ue.internal.Bezier_C).toFixed(5)),s=Number((r*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ue.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ue.RadioButton.Cross.YesNormal,e.D[t]=Ue.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+rt(Ue.internal.getWidth(t)-2)+" "+rt(Ue.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(rt(r.x1.x)+" "+rt(r.x1.y)+" m"),n.push(rt(r.x2.x)+" "+rt(r.x2.y)+" l"),n.push(rt(r.x4.x)+" "+rt(r.x4.y)+" m"),n.push(rt(r.x3.x)+" "+rt(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
+`),e},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=Ue.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+rt(Ue.internal.getWidth(t)-2)+" "+rt(Ue.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(rt(n.x1.x)+" "+rt(n.x1.y)+" m"),r.push(rt(n.x2.x)+" "+rt(n.x2.y)+" l"),r.push(rt(n.x4.x)+" "+rt(n.x4.y)+" m"),r.push(rt(n.x3.x)+" "+rt(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
+`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ue.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ue.internal.getWidth(t),n=Ue.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Ue.internal.getWidth=function(t){var e=0;return Pt(t)==="object"&&(e=N4(t.Rect[2])),e},Ue.internal.getHeight=function(t){var e=0;return Pt(t)==="object"&&(e=N4(t.Rect[3])),e};var uI=sn.addField=function(t){if(cI(this,t),!(t instanceof Fi))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};sn.AcroFormChoiceField=Jl,sn.AcroFormListBox=Zl,sn.AcroFormComboBox=ec,sn.AcroFormEditBox=cf,sn.AcroFormButton=Dn,sn.AcroFormPushButton=uf,sn.AcroFormRadioButton=tc,sn.AcroFormCheckBox=hf,sn.AcroFormTextField=xa,sn.AcroFormPasswordField=df,sn.AcroFormAppearance=Ue,sn.AcroForm={ChoiceField:Jl,ListBox:Zl,ComboBox:ec,EditBox:cf,Button:Dn,PushButton:uf,RadioButton:tc,CheckBox:hf,TextField:xa,PasswordField:df,Appearance:Ue},Ye.AcroForm={ChoiceField:Jl,ListBox:Zl,ComboBox:ec,EditBox:cf,Button:Dn,PushButton:uf,RadioButton:tc,CheckBox:hf,TextField:xa,PasswordField:df,Appearance:Ue};function Yw(t){return t.reduce(function(e,n,r){return e[n]=r,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(P,E){var W,B,Q,ee,se,K=e;if((E=E||e)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(R(P))for(se in n)for(Q=n[se],W=0;W<Q.length;W+=1){for(ee=!0,B=0;B<Q[W].length;B+=1)if(Q[W][B]!==void 0&&Q[W][B]!==P[B]){ee=!1;break}if(ee===!0){K=se;break}}else for(se in n)for(Q=n[se],W=0;W<Q.length;W+=1){for(ee=!0,B=0;B<Q[W].length;B+=1)if(Q[W][B]!==void 0&&Q[W][B]!==P.charCodeAt(B)){ee=!1;break}if(ee===!0){K=se;break}}return K===e&&E!==e&&(K=E),K},i=function P(E){for(var W=this.internal.write,B=this.internal.putStream,Q=(0,this.internal.getFilters)();Q.indexOf("FlateEncode")!==-1;)Q.splice(Q.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var ee=[];if(ee.push({key:"Type",value:"/XObject"}),ee.push({key:"Subtype",value:"/Image"}),ee.push({key:"Width",value:E.width}),ee.push({key:"Height",value:E.height}),E.colorSpace===A.INDEXED?ee.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(ee.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===A.DEVICE_CMYK&&ee.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ee.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&ee.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)){for(var se="",K=0,te=E.transparency.length;K<te;K++)se+=E.transparency[K]+" "+E.transparency[K]+" ";ee.push({key:"Mask",value:"["+se+"]"})}E.sMask!==void 0&&ee.push({key:"SMask",value:E.objectId+1+" 0 R"});var X=E.filter!==void 0?["/"+E.filter]:void 0;if(B({data:E.data,additionalKeyValues:ee,alreadyAppliedFilters:X,objectId:E.objectId}),W("endobj"),"sMask"in E&&E.sMask!==void 0){var de="/Predictor "+E.predictor+" /Colors 1 /BitsPerComponent "+E.bitsPerComponent+" /Columns "+E.width,j={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:E.bitsPerComponent,decodeParameters:de,data:E.sMask};"filter"in E&&(j.filter=E.filter),P.call(this,j)}if(E.colorSpace===A.INDEXED){var G=this.internal.newObject();B({data:k(new Uint8Array(E.palette)),objectId:G}),W("endobj")}},o=function(){var P=this.internal.collections.addImage_images;for(var E in P)i.call(this,P[E])},s=function(){var P,E=this.internal.collections.addImage_images,W=this.internal.write;for(var B in E)W("/I"+(P=E[B]).index,P.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var P=this.internal.collections.addImage_images;return a.call(this),P},u=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(P){return typeof t["process"+P.toUpperCase()]=="function"},p=function(P){return Pt(P)==="object"&&P.nodeType===1},g=function(P,E){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var W=""+P.getAttribute("src");if(W.indexOf("data:image/")===0)return Bu(unescape(W).split("base64,").pop());var B=t.loadFile(W,!0);if(B!==void 0)return B}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var Q;switch(E){case"PNG":Q="image/png";break;case"WEBP":Q="image/webp";break;case"JPEG":case"JPG":default:Q="image/jpeg"}return Bu(P.toDataURL(Q,1).split("base64,").pop())}},h=function(P){var E=this.internal.collections.addImage_images;if(E){for(var W in E)if(P===E[W].alias)return E[W]}},w=function(P,E,W){return P||E||(P=-96,E=-96),P<0&&(P=-1*W.width*72/P/this.internal.scaleFactor),E<0&&(E=-1*W.height*72/E/this.internal.scaleFactor),P===0&&(P=E*W.width/W.height),E===0&&(E=P*W.height/W.width),[P,E]},_=function(P,E,W,B,Q,ee){var se=w.call(this,W,B,Q),K=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,X=l.call(this);if(W=se[0],B=se[1],X[Q.index]=Q,ee){ee*=Math.PI/180;var de=Math.cos(ee),j=Math.sin(ee),G=function(ne){return ne.toFixed(4)},H=[G(de),G(j),G(-1*j),G(de),0,0,"cm"]}this.internal.write("q"),ee?(this.internal.write([1,"0","0",1,K(P),te(E+B),"cm"].join(" ")),this.internal.write(H.join(" ")),this.internal.write([K(W),"0","0",K(B),"0","0","cm"].join(" "))):this.internal.write([K(W),"0","0",K(B),K(P),te(E+B),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Q.index+" Do"),this.internal.write("Q")},A=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=t.__addimage__.sHashCode=function(P){var E,W,B=0;if(typeof P=="string")for(W=P.length,E=0;E<W;E++)B=(B<<5)-B+P.charCodeAt(E),B|=0;else if(R(P))for(W=P.byteLength/2,E=0;E<W;E++)B=(B<<5)-B+P[E],B|=0;return B},y=t.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var E=!0;return P.length===0&&(E=!1),P.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(E=!1),E},N=t.__addimage__.extractImageFromDataUrl=function(P){var E=(P=P||"").split("base64,"),W=null;if(E.length===2){var B=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(E[0]);Array.isArray(B)&&(W={mimeType:B[1],charset:B[2],data:E[1]})}return W},L=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(P){return L()&&P instanceof ArrayBuffer};var R=t.__addimage__.isArrayBufferView=function(P){return L()&&typeof Uint32Array<"u"&&(P instanceof Int8Array||P instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array)},D=t.__addimage__.binaryStringToUint8Array=function(P){for(var E=P.length,W=new Uint8Array(E),B=0;B<E;B++)W[B]=P.charCodeAt(B);return W},k=t.__addimage__.arrayBufferToBinaryString=function(P){for(var E="",W=R(P)?P:new Uint8Array(P),B=0;B<W.length;B+=8192)E+=String.fromCharCode.apply(null,W.subarray(B,B+8192));return E};t.addImage=function(){var P,E,W,B,Q,ee,se,K,te;if(typeof arguments[1]=="number"?(E=e,W=arguments[1],B=arguments[2],Q=arguments[3],ee=arguments[4],se=arguments[5],K=arguments[6],te=arguments[7]):(E=arguments[1],W=arguments[2],B=arguments[3],Q=arguments[4],ee=arguments[5],se=arguments[6],K=arguments[7],te=arguments[8]),Pt(P=arguments[0])==="object"&&!p(P)&&"imageData"in P){var X=P;P=X.imageData,E=X.format||E||e,W=X.x||W||0,B=X.y||B||0,Q=X.w||X.width||Q,ee=X.h||X.height||ee,se=X.alias||se,K=X.compression||K,te=X.rotation||X.angle||te}var de=this.internal.getFilters();if(K===void 0&&de.indexOf("FlateEncode")!==-1&&(K="SLOW"),isNaN(W)||isNaN(B))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var j=z.call(this,P,E,se,K);return _.call(this,W,B,Q,ee,j,te),this};var z=function(P,E,W,B){var Q,ee,se;if(typeof P=="string"&&r(P)===e){P=unescape(P);var K=T(P,!1);(K!==""||(K=t.loadFile(P,!0))!==void 0)&&(P=K)}if(p(P)&&(P=g(P,E)),E=r(P,E),!d(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((se=W)==null||se.length===0)&&(W=function(te){return typeof te=="string"||R(te)?S(te):R(te.data)?S(te.data):null}(P)),(Q=h.call(this,W))||(L()&&(P instanceof Uint8Array||E==="RGBA"||(ee=P,P=D(P))),Q=this["process"+E.toUpperCase()](P,u.call(this),W,function(te){return te&&typeof te=="string"&&(te=te.toUpperCase()),te in t.image_compression?te:v.NONE}(B),ee)),!Q)throw new Error("An unknown error occurred whilst processing the image.");return Q},T=t.__addimage__.convertBase64ToBinaryString=function(P,E){var W;E=typeof E!="boolean"||E;var B,Q="";if(typeof P=="string"){B=(W=N(P))!==null?W.data:P;try{Q=Bu(B)}catch(ee){if(E)throw y(B)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ee.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Q};t.getImageProperties=function(P){var E,W,B="";if(p(P)&&(P=g(P)),typeof P=="string"&&r(P)===e&&((B=T(P,!1))===""&&(B=t.loadFile(P)||""),P=B),W=r(P),!d(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(!L()||P instanceof Uint8Array||(P=D(P)),!(E=this["process"+W.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=W,E}})(Ye.API),function(t){var e=function(n){if(n!==void 0&&n!="")return!0};Ye.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(n){for(var r,i,o,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),u=n.pageContext.annotations,d=!1,p=0;p<u.length&&!d;p++)switch((r=u[p]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var g=0;g<u.length;g++){r=u[g];var h=this.internal.pdfEscape,w=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var _=this.internal.newAdditionalObject(),A=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(_.objId),S=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",o+=" /Popup "+A.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+h(v(S))+") >>",_.content=o;var y=_.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+y,r.open&&(o+=" /Open true"),o+=" >>",A.content=o,this.internal.write(_.objId,"0 R",A.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var N=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(w(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+N+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var L=this.annotations._nameMap[r.options.name];r.options.pageNumber=L.page,r.options.top=L.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(w(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var R=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+R+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),t.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},t.link=function(n,r,i,o,s){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(n),y:u(r),w:l(n+i),h:u(r+o)},options:s,type:"link"})},t.textWithLink=function(n,r,i,o){var s,a,l=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){a=o.maxWidth;var d=this.splitTextToSize(n,a).length;s=Math.ceil(u*d)}else a=l,s=u;return this.text(n,r,i,o),i+=.2*u,o.align==="center"&&(r-=l/2),o.align==="right"&&(r-=l),this.link(r,i-u,a,s,o),l},t.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Ye.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(_){return e[_.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(_){return typeof _=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(_)},a=t.__arabicParser__.isArabicEndLetter=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(_){return s(_)&&i.indexOf(_.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=3};var d=t.__arabicParser__.arabicLetterHasMedialForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length==4},p=t.__arabicParser__.resolveLigatures=function(_){var A=0,v=n,S="",y=0;for(A=0;A<_.length;A+=1)v[_.charCodeAt(A)]!==void 0?(y++,typeof(v=v[_.charCodeAt(A)])=="number"&&(S+=String.fromCharCode(v),v=n,y=0),A===_.length-1&&(v=n,S+=_.charAt(A-(y-1)),A-=y-1,y=0)):(v=n,S+=_.charAt(A-y),A-=y,y=0);return S};t.__arabicParser__.isArabicDiacritic=function(_){return _!==void 0&&r[_.charCodeAt(0)]!==void 0};var g=t.__arabicParser__.getCorrectForm=function(_,A,v){return s(_)?o(_)===!1?-1:!u(_)||!s(A)&&!s(v)||!s(v)&&a(A)||a(_)&&!s(A)||a(_)&&l(A)||a(_)&&a(A)?0:d(_)&&s(A)&&!a(A)&&s(v)&&u(v)?3:a(_)||!s(v)?1:2:-1},h=function(_){var A=0,v=0,S=0,y="",N="",L="",R=(_=_||"").split("\\s+"),D=[];for(A=0;A<R.length;A+=1){for(D.push(""),v=0;v<R[A].length;v+=1)y=R[A][v],N=R[A][v-1],L=R[A][v+1],s(y)?(S=g(y,N,L),D[A]+=S!==-1?String.fromCharCode(e[y.charCodeAt(0)][S]):y):D[A]+=y;D[A]=p(D[A])}return D.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var _,A=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(A)){var S=0;for(v=[],S=0;S<A.length;S+=1)Array.isArray(A[S])?v.push([h(A[S][0]),A[S][1],A[S][2]]):v.push([h(A[S])]);_=v}else _=h(A);return typeof arguments[0]=="string"?_:(arguments[0].text=_,arguments[0])};t.events.push(["preProcessText",w])}(Ye.API),Ye.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(a){o=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ye.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(_){l=_}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(_){u=_}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(_){d=_}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(_){p=_}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(_){g=_}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(_){h=_}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(_){w=_}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},t.getTextDimensions=function(l,u){r.call(this);var d=(u=u||{}).fontSize||this.getFontSize(),p=u.font||this.getFont(),g=u.scaleFactor||this.internal.scaleFactor,h=0,w=0,_=0,A=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var v=u.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(y,N){return y.concat(A.splitTextToSize(N,v))},[])):l=Array.isArray(l)?l:[l];for(var S=0;S<l.length;S++)h<(_=this.getStringUnitWidth(l[S],{font:p})*d)&&(h=_);return h!==0&&(w=l.length),{w:h/=g,h:Math.max((w*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/g,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var l;l=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var u=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,p=this.internal.__cell__.margins||e,g=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===l.lineNumber?(l.x=(u.x||0)+(u.width||0),l.y=u.y||0):u.y+u.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,h&&g&&(this.printHeaderRow(l.lineNumber,!0),l.y+=g[0].height)):l.y=u.y+u.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};t.table=function(l,u,d,p,g){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,w,_,A,v=[],S=[],y=[],N={},L={},R=[],D=[],k=(g=g||{}).autoSize||!1,z=g.printHeaders!==!1,T=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,P=g.margins||Object.assign({width:this.getPageWidth()},e),E=typeof g.padding=="number"?g.padding:3,W=g.headerBackgroundColor||"#c8c8c8",B=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=z,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=T,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=B,this.setFontSize(T),p==null)S=v=Object.keys(d[0]),y=v.map(function(){return"left"});else if(Array.isArray(p)&&Pt(p[0])==="object")for(v=p.map(function(X){return X.name}),S=p.map(function(X){return X.prompt||X.name||""}),y=p.map(function(X){return X.align||"left"}),h=0;h<p.length;h+=1)L[p[h].name]=p[h].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(S=v=p,y=v.map(function(){return"left"}));if(k||Array.isArray(p)&&typeof p[0]=="string")for(h=0;h<v.length;h+=1){for(N[A=v[h]]=d.map(function(X){return X[A]}),this.setFont(void 0,"bold"),R.push(this.getTextDimensions(S[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=N[A],this.setFont(void 0,"normal"),_=0;_<w.length;_+=1)R.push(this.getTextDimensions(w[_],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[A]=Math.max.apply(null,R)+E+E,R=[]}if(z){var Q={};for(h=0;h<v.length;h+=1)Q[v[h]]={},Q[v[h]].text=S[h],Q[v[h]].align=y[h];var ee=a.call(this,Q,L);D=v.map(function(X){return new o(l,u,L[X],ee,Q[X].text,void 0,Q[X].align)}),this.setTableHeaderRow(D),this.printHeaderRow(1,!1)}var se=p.reduce(function(X,de){return X[de.name]=de.align,X},{});for(h=0;h<d.length;h+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:h,data:d[h]},this);var K=a.call(this,d[h],L);for(_=0;_<v.length;_+=1){var te=d[h][v[_]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:h,col:_,data:te},this),s.call(this,new o(l,u,L[v[_]],K,te,h+2,se[v[_]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=u,this};var a=function(l,u){var d=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map(function(h){var w=l[h];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,u[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*p/g+d+d},this).reduce(function(h,w){return Math.max(h,w)},0)};t.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},t.printHeaderRow=function(l,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(d.y=this.internal.__cell__.margins.top||0,g.push(d)),d.lineNumber=l;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,d),this.setTextColor(w)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),n=!1}}(Ye.API);var Kw={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xw=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],j5=Yw(Xw),$w=[100,200,300,400,500,600,700,800,900],hI=Yw($w);function M5(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return Kw[o=o||"normal"]?o:"normal"}(t.style),r=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(o){return typeof j5[o=o||"normal"]=="number"?o:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function C4(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var dI={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},P4={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function L4(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function fI(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},dI,n.genericFontFamilies||{}),o=null,s=null,a=0;a<e.length;++a)if(i[(o=M5(e[a])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){s=t[o.family];break}if(!(s=s||t[r]))throw new Error("Could not find a font-family for the rule '"+L4(o)+"' and default family '"+r+"'.");if(s=function(l,u){if(u[l])return u[l];var d=j5[l],p=d<=j5.normal?-1:1,g=C4(u,Xw,d,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+l);return g}(o.stretch,s),s=function(l,u){if(u[l])return u[l];for(var d=Kw[l],p=0;p<d.length;++p)if(u[d[p]])return u[d[p]];throw new Error("Could not find a matching font-style for "+l)}(o.style,s),!(s=function(l,u){if(u[l])return u[l];if(l===400&&u[500])return u[500];if(l===500&&u[400])return u[400];var d=hI[l],p=C4(u,$w,d,l<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+l);return p}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+L4(o)+"'.");return s}function k4(t){return t.trimLeft()}function pI(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function gI(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var qd,E4,T4,i2=["times"];(function(t){var e,n,r,i,o,s,a,l,u,d=function(j){return j=j||{},this.isStrokeTransparent=j.isStrokeTransparent||!1,this.strokeOpacity=j.strokeOpacity||1,this.strokeStyle=j.strokeStyle||"#000000",this.fillStyle=j.fillStyle||"#000000",this.isFillTransparent=j.isFillTransparent||!1,this.fillOpacity=j.fillOpacity||1,this.font=j.font||"10px sans-serif",this.textBaseline=j.textBaseline||"alphabetic",this.textAlign=j.textAlign||"left",this.lineWidth=j.lineWidth||1,this.lineJoin=j.lineJoin||"miter",this.lineCap=j.lineCap||"butt",this.path=j.path||[],this.transform=j.transform!==void 0?j.transform.clone():new l,this.globalCompositeOperation=j.globalCompositeOperation||"normal",this.globalAlpha=j.globalAlpha||1,this.clip_path=j.clip_path||[],this.currentPoint=j.currentPoint||new s,this.miterLimit=j.miterLimit||10,this.lastPoint=j.lastPoint||new s,this.lineDashOffset=j.lineDashOffset||0,this.lineDash=j.lineDash||[],this.margin=j.margin||[0,0,0,0],this.prevPageLastElemOffset=j.prevPageLastElemOffset||0,this.ignoreClearRect=typeof j.ignoreClearRect!="boolean"||j.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,u=new d}]);var p=function(j){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=j;Object.defineProperty(this,"pdf",{get:function(){return G}});var H=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return H},set:function(me){H=!!me}});var ne=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ne},set:function(me){ne=!!me}});var ie=0;Object.defineProperty(this,"posX",{get:function(){return ie},set:function(me){isNaN(me)||(ie=me)}});var q=0;Object.defineProperty(this,"posY",{get:function(){return q},set:function(me){isNaN(me)||(q=me)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(me){var J;typeof me=="number"?J=[me,me,me,me]:((J=new Array(4))[0]=me[0],J[1]=me.length>=2?me[1]:J[0],J[2]=me.length>=3?me[2]:J[0],J[3]=me.length>=4?me[3]:J[1]),u.margin=J}});var Z=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Z},set:function(me){Z=me}});var ce=0;Object.defineProperty(this,"lastBreak",{get:function(){return ce},set:function(me){ce=me}});var xe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return xe},set:function(me){xe=me}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(me){me instanceof d&&(u=me)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(me){u.path=me}});var we=[];Object.defineProperty(this,"ctxStack",{get:function(){return we},set:function(me){we=me}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(me){var J;J=g(me),this.ctx.fillStyle=J.style,this.ctx.isFillTransparent=J.a===0,this.ctx.fillOpacity=J.a,this.pdf.setFillColor(J.r,J.g,J.b,{a:J.a}),this.pdf.setTextColor(J.r,J.g,J.b,{a:J.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(me){var J=g(me);this.ctx.strokeStyle=J.style,this.ctx.isStrokeTransparent=J.a===0,this.ctx.strokeOpacity=J.a,J.a===0?this.pdf.setDrawColor(255,255,255):(J.a,this.pdf.setDrawColor(J.r,J.g,J.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(me){["butt","round","square"].indexOf(me)!==-1&&(this.ctx.lineCap=me,this.pdf.setLineCap(me))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(me){isNaN(me)||(this.ctx.lineWidth=me,this.pdf.setLineWidth(me))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(me){["bevel","round","miter"].indexOf(me)!==-1&&(this.ctx.lineJoin=me,this.pdf.setLineJoin(me))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(me){isNaN(me)||(this.ctx.miterLimit=me,this.pdf.setMiterLimit(me))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(me){this.ctx.textBaseline=me}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(me){["right","end","center","left","start"].indexOf(me)!==-1&&(this.ctx.textAlign=me)}});var Ce=null;function ke(me,J){if(Ce===null){var Ve=function(Be){var Pe=[];return Object.keys(Be).forEach(function(Ee){Be[Ee].forEach(function(Ie){var Me=null;switch(Ie){case"bold":Me={family:Ee,weight:"bold"};break;case"italic":Me={family:Ee,style:"italic"};break;case"bolditalic":Me={family:Ee,weight:"bold",style:"italic"};break;case"":case"normal":Me={family:Ee}}Me!==null&&(Me.ref={name:Ee,style:Ie},Pe.push(Me))})}),Pe}(me.getFontList());Ce=function(Be){for(var Pe={},Ee=0;Ee<Be.length;++Ee){var Ie=M5(Be[Ee]),Me=Ie.family,Ge=Ie.stretch,et=Ie.style,st=Ie.weight;Pe[Me]=Pe[Me]||{},Pe[Me][Ge]=Pe[Me][Ge]||{},Pe[Me][Ge][et]=Pe[Me][Ge][et]||{},Pe[Me][Ge][et][st]=Ie}return Pe}(Ve.concat(J))}return Ce}var ze=null;Object.defineProperty(this,"fontFaces",{get:function(){return ze},set:function(me){Ce=null,ze=me}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(me){var J;if(this.ctx.font=me,(J=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(me))!==null){var Ve=J[1],Be=(J[2],J[3]),Pe=J[4],Ee=(J[5],J[6]),Ie=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pe)[2];Pe=Math.floor(Ie==="px"?parseFloat(Pe)*this.pdf.internal.scaleFactor:Ie==="em"?parseFloat(Pe)*this.pdf.getFontSize():parseFloat(Pe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pe);var Me=function(Qe){var ct,Fe,Yn=[],wt=Qe.trim();if(wt==="")return i2;if(wt in P4)return[P4[wt]];for(;wt!=="";){switch(Fe=null,ct=(wt=k4(wt)).charAt(0)){case'"':case"'":Fe=pI(wt.substring(1),ct);break;default:Fe=gI(wt)}if(Fe===null||(Yn.push(Fe[0]),(wt=k4(Fe[1]))!==""&&wt.charAt(0)!==","))return i2;wt=wt.replace(/^,/,"")}return Yn}(Ee);if(this.fontFaces){var Ge=fI(ke(this.pdf,this.fontFaces),Me.map(function(Qe){return{family:Qe,stretch:"normal",weight:Be,style:Ve}}));this.pdf.setFont(Ge.ref.name,Ge.ref.style)}else{var et="";(Be==="bold"||parseInt(Be,10)>=700||Ve==="bold")&&(et="bold"),Ve==="italic"&&(et+="italic"),et.length===0&&(et="normal");for(var st="",lt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},gt=0;gt<Me.length;gt++){if(this.pdf.internal.getFont(Me[gt],et,{noFallback:!0,disableWarning:!0})!==void 0){st=Me[gt];break}if(et==="bolditalic"&&this.pdf.internal.getFont(Me[gt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)st=Me[gt],et="bold";else if(this.pdf.internal.getFont(Me[gt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){st=Me[gt],et="normal";break}}if(st===""){for(var kt=0;kt<Me.length;kt++)if(lt[Me[kt]]){st=lt[Me[kt]];break}}st=st===""?"Times":st,this.pdf.setFont(st,et)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(me){this.ctx.globalCompositeOperation=me}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(me){this.ctx.globalAlpha=me}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(me){this.ctx.lineDashOffset=me,de.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(me){this.ctx.lineDash=me,de.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(me){this.ctx.ignoreClearRect=!!me}})};p.prototype.setLineDash=function(j){this.lineDash=j},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){N.call(this,"fill",!1)},p.prototype.stroke=function(){N.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(j,G){if(isNaN(j)||isNaN(G))throw It.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var H=this.ctx.transform.applyToPoint(new s(j,G));this.path.push({type:"mt",x:H.x,y:H.y}),this.ctx.lastPoint=new s(j,G)},p.prototype.closePath=function(){var j=new s(0,0),G=0;for(G=this.path.length-1;G!==-1;G--)if(this.path[G].type==="begin"&&Pt(this.path[G+1])==="object"&&typeof this.path[G+1].x=="number"){j=new s(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(j.x,j.y)},p.prototype.lineTo=function(j,G){if(isNaN(j)||isNaN(G))throw It.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var H=this.ctx.transform.applyToPoint(new s(j,G));this.path.push({type:"lt",x:H.x,y:H.y}),this.ctx.lastPoint=new s(H.x,H.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),N.call(this,null,!0)},p.prototype.quadraticCurveTo=function(j,G,H,ne){if(isNaN(H)||isNaN(ne)||isNaN(j)||isNaN(G))throw It.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ie=this.ctx.transform.applyToPoint(new s(H,ne)),q=this.ctx.transform.applyToPoint(new s(j,G));this.path.push({type:"qct",x1:q.x,y1:q.y,x:ie.x,y:ie.y}),this.ctx.lastPoint=new s(ie.x,ie.y)},p.prototype.bezierCurveTo=function(j,G,H,ne,ie,q){if(isNaN(ie)||isNaN(q)||isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne))throw It.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Z=this.ctx.transform.applyToPoint(new s(ie,q)),ce=this.ctx.transform.applyToPoint(new s(j,G)),xe=this.ctx.transform.applyToPoint(new s(H,ne));this.path.push({type:"bct",x1:ce.x,y1:ce.y,x2:xe.x,y2:xe.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new s(Z.x,Z.y)},p.prototype.arc=function(j,G,H,ne,ie,q){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne)||isNaN(ie))throw It.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(q=!!q,!this.ctx.transform.isIdentity){var Z=this.ctx.transform.applyToPoint(new s(j,G));j=Z.x,G=Z.y;var ce=this.ctx.transform.applyToPoint(new s(0,H)),xe=this.ctx.transform.applyToPoint(new s(0,0));H=Math.sqrt(Math.pow(ce.x-xe.x,2)+Math.pow(ce.y-xe.y,2))}Math.abs(ie-ne)>=2*Math.PI&&(ne=0,ie=2*Math.PI),this.path.push({type:"arc",x:j,y:G,radius:H,startAngle:ne,endAngle:ie,counterclockwise:q})},p.prototype.arcTo=function(j,G,H,ne,ie){throw new Error("arcTo not implemented.")},p.prototype.rect=function(j,G,H,ne){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne))throw It.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(j,G),this.lineTo(j+H,G),this.lineTo(j+H,G+ne),this.lineTo(j,G+ne),this.lineTo(j,G),this.lineTo(j+H,G),this.lineTo(j,G)},p.prototype.fillRect=function(j,G,H,ne){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne))throw It.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var ie={};this.lineCap!=="butt"&&(ie.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ie.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(j,G,H,ne),this.fill(),ie.hasOwnProperty("lineCap")&&(this.lineCap=ie.lineCap),ie.hasOwnProperty("lineJoin")&&(this.lineJoin=ie.lineJoin)}},p.prototype.strokeRect=function(j,G,H,ne){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne))throw It.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(j,G,H,ne),this.stroke())},p.prototype.clearRect=function(j,G,H,ne){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne))throw It.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(j,G,H,ne))},p.prototype.save=function(j){j=typeof j!="boolean"||j;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),j){this.ctx.fontSize=this.pdf.internal.getFontSize();var ne=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ne}},p.prototype.restore=function(j){j=typeof j!="boolean"||j;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("Q");this.pdf.setPage(G),j&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(j){var G,H,ne,ie;if(j.isCanvasGradient===!0&&(j=j.getColor()),!j)return{r:0,g:0,b:0,a:0,style:j};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(j))G=0,H=0,ne=0,ie=0;else{var q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(j);if(q!==null)G=parseInt(q[1]),H=parseInt(q[2]),ne=parseInt(q[3]),ie=1;else if((q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(j))!==null)G=parseInt(q[1]),H=parseInt(q[2]),ne=parseInt(q[3]),ie=parseFloat(q[4]);else{if(ie=1,typeof j=="string"&&j.charAt(0)!=="#"){var Z=new zw(j);j=Z.ok?Z.toHex():"#000000"}j.length===4?(G=j.substring(1,2),G+=G,H=j.substring(2,3),H+=H,ne=j.substring(3,4),ne+=ne):(G=j.substring(1,3),H=j.substring(3,5),ne=j.substring(5,7)),G=parseInt(G,16),H=parseInt(H,16),ne=parseInt(ne,16)}}return{r:G,g:H,b:ne,a:ie,style:j}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(j,G,H,ne){if(isNaN(G)||isNaN(H)||typeof j!="string")throw It.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ne=isNaN(ne)?void 0:ne,!h.call(this)){var ie=K(this.ctx.transform.rotation),q=this.ctx.transform.scaleX;E.call(this,{text:j,x:G,y:H,scale:q,angle:ie,align:this.textAlign,maxWidth:ne})}},p.prototype.strokeText=function(j,G,H,ne){if(isNaN(G)||isNaN(H)||typeof j!="string")throw It.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){ne=isNaN(ne)?void 0:ne;var ie=K(this.ctx.transform.rotation),q=this.ctx.transform.scaleX;E.call(this,{text:j,x:G,y:H,scale:q,renderingMode:"stroke",angle:ie,align:this.textAlign,maxWidth:ne})}},p.prototype.measureText=function(j){if(typeof j!="string")throw It.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,H=this.pdf.internal.scaleFactor,ne=G.internal.getFontSize(),ie=G.getStringUnitWidth(j)*ne/G.internal.scaleFactor,q=function(Z){var ce=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ce}}),this};return new q({width:ie*=Math.round(96*H/72*1e4)/1e4})},p.prototype.scale=function(j,G){if(isNaN(j)||isNaN(G))throw It.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var H=new l(j,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(H)},p.prototype.rotate=function(j){if(isNaN(j))throw It.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new l(Math.cos(j),Math.sin(j),-Math.sin(j),Math.cos(j),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},p.prototype.translate=function(j,G){if(isNaN(j)||isNaN(G))throw It.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var H=new l(1,0,0,1,j,G);this.ctx.transform=this.ctx.transform.multiply(H)},p.prototype.transform=function(j,G,H,ne,ie,q){if(isNaN(j)||isNaN(G)||isNaN(H)||isNaN(ne)||isNaN(ie)||isNaN(q))throw It.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Z=new l(j,G,H,ne,ie,q);this.ctx.transform=this.ctx.transform.multiply(Z)},p.prototype.setTransform=function(j,G,H,ne,ie,q){j=isNaN(j)?1:j,G=isNaN(G)?0:G,H=isNaN(H)?0:H,ne=isNaN(ne)?1:ne,ie=isNaN(ie)?0:ie,q=isNaN(q)?0:q,this.ctx.transform=new l(j,G,H,ne,ie,q)};var _=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(j,G,H,ne,ie,q,Z,ce,xe){var we=this.pdf.getImageProperties(j),Ce=1,ke=1,ze=1,me=1;ne!==void 0&&ce!==void 0&&(ze=ce/ne,me=xe/ie,Ce=we.width/ne*ce/ne,ke=we.height/ie*xe/ie),q===void 0&&(q=G,Z=H,G=0,H=0),ne!==void 0&&ce===void 0&&(ce=ne,xe=ie),ne===void 0&&ce===void 0&&(ce=we.width,xe=we.height);for(var J,Ve=this.ctx.transform.decompose(),Be=K(Ve.rotate.shx),Pe=new l,Ee=(Pe=(Pe=(Pe=Pe.multiply(Ve.translate)).multiply(Ve.skew)).multiply(Ve.scale)).applyToRectangle(new a(q-G*ze,Z-H*me,ne*Ce,ie*ke)),Ie=A.call(this,Ee),Me=[],Ge=0;Ge<Ie.length;Ge+=1)Me.indexOf(Ie[Ge])===-1&&Me.push(Ie[Ge]);if(y(Me),this.autoPaging)for(var et=Me[0],st=Me[Me.length-1],lt=et;lt<st+1;lt++){this.pdf.setPage(lt);var gt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kt=lt===1?this.posY+this.margin[0]:this.margin[0],Qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ct=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Fe=lt===1?0:Qe+(lt-2)*ct;if(this.ctx.clip_path.length!==0){var Yn=this.path;J=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(J,this.posX+this.margin[3],-Fe+kt+this.ctx.prevPageLastElemOffset),L.call(this,"fill",!0),this.path=Yn}var wt=JSON.parse(JSON.stringify(Ee));wt=S([wt],this.posX+this.margin[3],-Fe+kt+this.ctx.prevPageLastElemOffset)[0];var li=(lt>et||lt<st)&&_.call(this);li&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],gt,ct,null).clip().discardPath()),this.pdf.addImage(j,"JPEG",wt.x,wt.y,wt.w,wt.h,null,null,Be),li&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(j,"JPEG",Ee.x,Ee.y,Ee.w,Ee.h,null,null,Be)};var A=function(j,G,H){var ne=[];G=G||this.pdf.internal.pageSize.width,H=H||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ie=this.posY+this.ctx.prevPageLastElemOffset;switch(j.type){default:case"mt":case"lt":ne.push(Math.floor((j.y+ie)/H)+1);break;case"arc":ne.push(Math.floor((j.y+ie-j.radius)/H)+1),ne.push(Math.floor((j.y+ie+j.radius)/H)+1);break;case"qct":var q=te(this.ctx.lastPoint.x,this.ctx.lastPoint.y,j.x1,j.y1,j.x,j.y);ne.push(Math.floor((q.y+ie)/H)+1),ne.push(Math.floor((q.y+q.h+ie)/H)+1);break;case"bct":var Z=X(this.ctx.lastPoint.x,this.ctx.lastPoint.y,j.x1,j.y1,j.x2,j.y2,j.x,j.y);ne.push(Math.floor((Z.y+ie)/H)+1),ne.push(Math.floor((Z.y+Z.h+ie)/H)+1);break;case"rect":ne.push(Math.floor((j.y+ie)/H)+1),ne.push(Math.floor((j.y+j.h+ie)/H)+1)}for(var ce=0;ce<ne.length;ce+=1)for(;this.pdf.internal.getNumberOfPages()<ne[ce];)v.call(this);return ne},v=function(){var j=this.fillStyle,G=this.strokeStyle,H=this.font,ne=this.lineCap,ie=this.lineWidth,q=this.lineJoin;this.pdf.addPage(),this.fillStyle=j,this.strokeStyle=G,this.font=H,this.lineCap=ne,this.lineWidth=ie,this.lineJoin=q},S=function(j,G,H){for(var ne=0;ne<j.length;ne++)switch(j[ne].type){case"bct":j[ne].x2+=G,j[ne].y2+=H;case"qct":j[ne].x1+=G,j[ne].y1+=H;case"mt":case"lt":case"arc":default:j[ne].x+=G,j[ne].y+=H}return j},y=function(j){return j.sort(function(G,H){return G-H})},N=function(j,G){for(var H,ne,ie=this.fillStyle,q=this.strokeStyle,Z=this.lineCap,ce=this.lineWidth,xe=Math.abs(ce*this.ctx.transform.scaleX),we=this.lineJoin,Ce=JSON.parse(JSON.stringify(this.path)),ke=JSON.parse(JSON.stringify(this.path)),ze=[],me=0;me<ke.length;me++)if(ke[me].x!==void 0)for(var J=A.call(this,ke[me]),Ve=0;Ve<J.length;Ve+=1)ze.indexOf(J[Ve])===-1&&ze.push(J[Ve]);for(var Be=0;Be<ze.length;Be++)for(;this.pdf.internal.getNumberOfPages()<ze[Be];)v.call(this);if(y(ze),this.autoPaging)for(var Pe=ze[0],Ee=ze[ze.length-1],Ie=Pe;Ie<Ee+1;Ie++){this.pdf.setPage(Ie),this.fillStyle=ie,this.strokeStyle=q,this.lineCap=Z,this.lineWidth=xe,this.lineJoin=we;var Me=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ge=Ie===1?this.posY+this.margin[0]:this.margin[0],et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],lt=Ie===1?0:et+(Ie-2)*st;if(this.ctx.clip_path.length!==0){var gt=this.path;H=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(H,this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset),L.call(this,j,!0),this.path=gt}if(ne=JSON.parse(JSON.stringify(Ce)),this.path=S(ne,this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset),G===!1||Ie===0){var kt=(Ie>Pe||Ie<Ee)&&_.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Me,st,null).clip().discardPath()),L.call(this,j,G),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=ce}else this.lineWidth=xe,L.call(this,j,G),this.lineWidth=ce;this.path=Ce},L=function(j,G){if((j!=="stroke"||G||!w.call(this))&&(j==="stroke"||G||!h.call(this))){for(var H,ne,ie=[],q=this.path,Z=0;Z<q.length;Z++){var ce=q[Z];switch(ce.type){case"begin":ie.push({begin:!0});break;case"close":ie.push({close:!0});break;case"mt":ie.push({start:ce,deltas:[],abs:[]});break;case"lt":var xe=ie.length;if(q[Z-1]&&!isNaN(q[Z-1].x)&&(H=[ce.x-q[Z-1].x,ce.y-q[Z-1].y],xe>0)){for(;xe>=0;xe--)if(ie[xe-1].close!==!0&&ie[xe-1].begin!==!0){ie[xe-1].deltas.push(H),ie[xe-1].abs.push(ce);break}}break;case"bct":H=[ce.x1-q[Z-1].x,ce.y1-q[Z-1].y,ce.x2-q[Z-1].x,ce.y2-q[Z-1].y,ce.x-q[Z-1].x,ce.y-q[Z-1].y],ie[ie.length-1].deltas.push(H);break;case"qct":var we=q[Z-1].x+2/3*(ce.x1-q[Z-1].x),Ce=q[Z-1].y+2/3*(ce.y1-q[Z-1].y),ke=ce.x+2/3*(ce.x1-ce.x),ze=ce.y+2/3*(ce.y1-ce.y),me=ce.x,J=ce.y;H=[we-q[Z-1].x,Ce-q[Z-1].y,ke-q[Z-1].x,ze-q[Z-1].y,me-q[Z-1].x,J-q[Z-1].y],ie[ie.length-1].deltas.push(H);break;case"arc":ie.push({deltas:[],abs:[],arc:!0}),Array.isArray(ie[ie.length-1].abs)&&ie[ie.length-1].abs.push(ce)}}ne=G?null:j==="stroke"?"stroke":"fill";for(var Ve=!1,Be=0;Be<ie.length;Be++)if(ie[Be].arc)for(var Pe=ie[Be].abs,Ee=0;Ee<Pe.length;Ee++){var Ie=Pe[Ee];Ie.type==="arc"?k.call(this,Ie.x,Ie.y,Ie.radius,Ie.startAngle,Ie.endAngle,Ie.counterclockwise,void 0,G,!Ve):W.call(this,Ie.x,Ie.y),Ve=!0}else if(ie[Be].close===!0)this.pdf.internal.out("h"),Ve=!1;else if(ie[Be].begin!==!0){var Me=ie[Be].start.x,Ge=ie[Be].start.y;B.call(this,ie[Be].deltas,Me,Ge),Ve=!0}ne&&z.call(this,ne),G&&T.call(this)}},R=function(j){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,H=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return j-H;case"top":return j+G-H;case"hanging":return j+G-2*H;case"middle":return j+G/2-H;case"ideographic":return j;case"alphabetic":default:return j}},D=function(j){return j+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var j=function(){};return j.colorStops=[],j.addColorStop=function(G,H){this.colorStops.push([G,H])},j.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},j.isCanvasGradient=!0,j},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(j,G,H,ne,ie,q,Z,ce,xe){for(var we=ee.call(this,H,ne,ie,q),Ce=0;Ce<we.length;Ce++){var ke=we[Ce];Ce===0&&(xe?P.call(this,ke.x1+j,ke.y1+G):W.call(this,ke.x1+j,ke.y1+G)),Q.call(this,j,G,ke.x2,ke.y2,ke.x3,ke.y3,ke.x4,ke.y4)}ce?T.call(this):z.call(this,Z)},z=function(j){switch(j){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},T=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(j,G){this.pdf.internal.out(n(j)+" "+r(G)+" m")},E=function(j){var G;switch(j.align){case"right":case"end":G="right";break;case"center":G="center";break;case"left":case"start":default:G="left"}var H=this.pdf.getTextDimensions(j.text),ne=R.call(this,j.y),ie=D.call(this,ne)-H.h,q=this.ctx.transform.applyToPoint(new s(j.x,ne)),Z=this.ctx.transform.decompose(),ce=new l;ce=(ce=(ce=ce.multiply(Z.translate)).multiply(Z.skew)).multiply(Z.scale);for(var xe,we,Ce,ke=this.ctx.transform.applyToRectangle(new a(j.x,ne,H.w,H.h)),ze=ce.applyToRectangle(new a(j.x,ie,H.w,H.h)),me=A.call(this,ze),J=[],Ve=0;Ve<me.length;Ve+=1)J.indexOf(me[Ve])===-1&&J.push(me[Ve]);if(y(J),this.autoPaging)for(var Be=J[0],Pe=J[J.length-1],Ee=Be;Ee<Pe+1;Ee++){this.pdf.setPage(Ee);var Ie=Ee===1?this.posY+this.margin[0]:this.margin[0],Me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ge=this.pdf.internal.pageSize.height-this.margin[2],et=Ge-this.margin[0],st=this.pdf.internal.pageSize.width-this.margin[1],lt=st-this.margin[3],gt=Ee===1?0:Me+(Ee-2)*et;if(this.ctx.clip_path.length!==0){var kt=this.path;xe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(xe,this.posX+this.margin[3],-1*gt+Ie),L.call(this,"fill",!0),this.path=kt}var Qe=S([JSON.parse(JSON.stringify(ze))],this.posX+this.margin[3],-gt+Ie+this.ctx.prevPageLastElemOffset)[0];j.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*j.scale),Ce=this.lineWidth,this.lineWidth=Ce*j.scale);var ct=this.autoPaging!=="text";if(ct||Qe.y+Qe.h<=Ge){if(ct||Qe.y>=Ie&&Qe.x<=st){var Fe=ct?j.text:this.pdf.splitTextToSize(j.text,j.maxWidth||st-Qe.x)[0],Yn=S([JSON.parse(JSON.stringify(ke))],this.posX+this.margin[3],-gt+Ie+this.ctx.prevPageLastElemOffset)[0],wt=ct&&(Ee>Be||Ee<Pe)&&_.call(this);wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lt,et,null).clip().discardPath()),this.pdf.text(Fe,Yn.x,Yn.y,{angle:j.angle,align:G,renderingMode:j.renderingMode}),wt&&this.pdf.restoreGraphicsState()}}else Qe.y<Ge&&(this.ctx.prevPageLastElemOffset+=Ge-Qe.y);j.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=Ce)}else j.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*j.scale),Ce=this.lineWidth,this.lineWidth=Ce*j.scale),this.pdf.text(j.text,q.x+this.posX,q.y+this.posY,{angle:j.angle,align:G,renderingMode:j.renderingMode,maxWidth:j.maxWidth}),j.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=Ce)},W=function(j,G,H,ne){H=H||0,ne=ne||0,this.pdf.internal.out(n(j+H)+" "+r(G+ne)+" l")},B=function(j,G,H){return this.pdf.lines(j,G,H,null,null)},Q=function(j,G,H,ne,ie,q,Z,ce){this.pdf.internal.out([e(i(H+j)),e(o(ne+G)),e(i(ie+j)),e(o(q+G)),e(i(Z+j)),e(o(ce+G)),"c"].join(" "))},ee=function(j,G,H,ne){for(var ie=2*Math.PI,q=Math.PI/2;G>H;)G-=ie;var Z=Math.abs(H-G);Z<ie&&ne&&(Z=ie-Z);for(var ce=[],xe=ne?-1:1,we=G;Z>1e-5;){var Ce=we+xe*Math.min(Z,q);ce.push(se.call(this,j,we,Ce)),Z-=Math.abs(Ce-we),we=Ce}return ce},se=function(j,G,H){var ne=(H-G)/2,ie=j*Math.cos(ne),q=j*Math.sin(ne),Z=ie,ce=-q,xe=Z*Z+ce*ce,we=xe+Z*ie+ce*q,Ce=4/3*(Math.sqrt(2*xe*we)-we)/(Z*q-ce*ie),ke=Z-Ce*ce,ze=ce+Ce*Z,me=ke,J=-ze,Ve=ne+G,Be=Math.cos(Ve),Pe=Math.sin(Ve);return{x1:j*Math.cos(G),y1:j*Math.sin(G),x2:ke*Be-ze*Pe,y2:ke*Pe+ze*Be,x3:me*Be-J*Pe,y3:me*Pe+J*Be,x4:j*Math.cos(H),y4:j*Math.sin(H)}},K=function(j){return 180*j/Math.PI},te=function(j,G,H,ne,ie,q){var Z=j+.5*(H-j),ce=G+.5*(ne-G),xe=ie+.5*(H-ie),we=q+.5*(ne-q),Ce=Math.min(j,ie,Z,xe),ke=Math.max(j,ie,Z,xe),ze=Math.min(G,q,ce,we),me=Math.max(G,q,ce,we);return new a(Ce,ze,ke-Ce,me-ze)},X=function(j,G,H,ne,ie,q,Z,ce){var xe,we,Ce,ke,ze,me,J,Ve,Be,Pe,Ee,Ie,Me,Ge,et=H-j,st=ne-G,lt=ie-H,gt=q-ne,kt=Z-ie,Qe=ce-q;for(we=0;we<41;we++)Be=(J=(Ce=j+(xe=we/40)*et)+xe*((ze=H+xe*lt)-Ce))+xe*(ze+xe*(ie+xe*kt-ze)-J),Pe=(Ve=(ke=G+xe*st)+xe*((me=ne+xe*gt)-ke))+xe*(me+xe*(q+xe*Qe-me)-Ve),we==0?(Ee=Be,Ie=Pe,Me=Be,Ge=Pe):(Ee=Math.min(Ee,Be),Ie=Math.min(Ie,Pe),Me=Math.max(Me,Be),Ge=Math.max(Ge,Pe));return new a(Math.round(Ee),Math.round(Ie),Math.round(Me-Ee),Math.round(Ge-Ie))},de=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var j,G,H=(j=this.ctx.lineDash,G=this.ctx.lineDashOffset,JSON.stringify({lineDash:j,lineDashOffset:G}));this.prevLineDash!==H&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=H)}}})(Ye.API),function(t){var e=function(o){var s,a,l,u,d,p,g,h,w,_;for(a=[],l=0,u=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;u>l;l+=4)(d=(o.charCodeAt(l)<<24)+(o.charCodeAt(l+1)<<16)+(o.charCodeAt(l+2)<<8)+o.charCodeAt(l+3))!==0?(p=(d=((d=((d=((d=(d-(_=d%85))/85)-(w=d%85))/85)-(h=d%85))/85)-(g=d%85))/85)%85,a.push(p+33,g+33,h+33,w+33,_+33)):a.push(122);return function(A,v){for(var S=v;S>0;S--)A.pop()}(a,s.length),String.fromCharCode.apply(String,a)+"~>"},n=function(o){var s,a,l,u,d,p=String,g="length",h=255,w="charCodeAt",_="slice",A="replace";for(o[_](-2),o=o[_](0,-2)[A](/\s/g,"")[A]("z","!!!!!"),l=[],u=0,d=(o+=s="uuuuu"[_](o[g]%5||5))[g];d>u;u+=5)a=52200625*(o[w](u)-33)+614125*(o[w](u+1)-33)+7225*(o[w](u+2)-33)+85*(o[w](u+3)-33)+(o[w](u+4)-33),l.push(h&a>>24,h&a>>16,h&a>>8,h&a);return function(v,S){for(var y=S;y>0;y--)v.pop()}(l,s[g]),p.fromCharCode.apply(p,l)},r=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var a="",l=0;l<o.length;l+=2)a+=String.fromCharCode("0x"+(o[l]+o[l+1]));return a},i=function(o){for(var s=new Uint8Array(o.length),a=o.length;a--;)s[a]=o.charCodeAt(a);return o=(s=P5(s)).reduce(function(l,u){return l+String.fromCharCode(u)},"")};t.processDataByFilters=function(o,s){var a=0,l=o||"",u=[];for(typeof(s=s||[])=="string"&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(d){return("0"+d.charCodeAt().toString(16)).slice(-2)}).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}}(Ye.API),function(t){t.loadFile=function(e,n,r){return function(i,o,s){o=o!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(l,u,d){var p=new XMLHttpRequest,g=0,h=function(w){var _=w.length,A=[],v=String.fromCharCode;for(g=0;g<_;g+=1)A.push(v(255&w.charCodeAt(g)));return A.join("")};if(p.open("GET",l,!u),p.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(p.onload=function(){p.status===200?d(h(this.responseText)):d(void 0)}),p.send(null),u&&p.status===200)return h(p.responseText)}(i,o,s)}catch{}return a}(e,n,r)},t.loadImageFile=t.loadFile}(Ye.API),function(t){function e(){return(Ke.html2canvas?Promise.resolve(Ke.html2canvas):S5(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(Ke.DOMPurify?Promise.resolve(Ke.DOMPurify):S5(()=>import("./purify.es-C_uT9hQ1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var a=Pt(s);return a==="undefined"?"undefined":a==="string"||s instanceof String?"string":a==="number"||s instanceof Number?"number":a==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(s,a){var l=document.createElement(s);for(var u in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[u]=a.style[u];return l},o=function s(a){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),u=s.convert(Promise.resolve(),l);return u=(u=u.setProgress(1,s,1,[s])).set(a)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,a){return s.__proto__=a||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,a){return this.then(function(){switch(a=a||function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(n).then(function(l){return this.set({src:i("div",{innerHTML:s,dompurify:l})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function l(u,d){for(var p=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),g=u.firstChild;g;g=g.nextSibling)d!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(l(g,d));return u.nodeType===1&&(u.nodeName==="CANVAS"?(p.width=u.width,p.height=u.height,p.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(p.value=u.value),p.addEventListener("load",function(){p.scrollTop=u.scrollTop,p.scrollLeft=u.scrollLeft},!0)),p}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var l=this.opt.jsPDF,u=this.opt.fontFaces,d=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:d,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=u,u)for(var g=0;g<u.length;++g){var h=u[g],w=h.src.find(function(_){return _.format==="truetype"});w&&l.addFont(w.url,h.ref.name,h.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,l.context2d.save(!0),a(this.prop.container,p)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,a,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,a):this.outputPdf(s,a)},o.prototype.outputPdf=function(s,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,a)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var a=Object.keys(s||{}).map(function(l){if(l in o.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}},this);return this.then(function(){return this.thenList(a)})},o.prototype.get=function(s,a){return this.then(function(){var l=s in o.template.prop?this.prop[s]:this.opt[s];return a?a(l):l})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function a(l,u){return Math.floor(l*u/72*96)}return this.then(function(){(s=s||Ye.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:a(s.inner.width,s.k),height:a(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,a,l,u){return s!=null&&(this.progress.val=s),a!=null&&(this.progress.state=a),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,a,l,u){return this.setProgress(s?this.progress.val+s:null,a||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},o.prototype.then=function(s,a){var l=this;return this.thenCore(s,a,function(u,d){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(p){return l.updateProgress(null,u),p}).then(u,d).then(function(p){return l.updateProgress(1),p})})},o.prototype.thenCore=function(s,a,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),a&&(a=a.bind(this));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),d=l.call(u,s,a);return o.convert(d,this.__proto__)},o.prototype.thenExternal=function(s,a){return Promise.prototype.then.call(this,s,a)},o.prototype.thenList=function(s){var a=this;return s.forEach(function(l){a=a.thenCore(l)}),a},o.prototype.catch=function(s){s&&(s=s.bind(this));var a=Promise.prototype.catch.call(this,s);return o.convert(a,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Ye.getPageSize=function(s,a,l){if(Pt(s)==="object"){var u=s;s=u.orientation,a=u.unit||a,l=u.format||l}a=a||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var d,p=(""+l).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+a}var h,w=0,_=0;if(g.hasOwnProperty(p))w=g[p][1]/d,_=g[p][0]/d;else try{w=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",_>w&&(h=_,_=w,w=h);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>_&&(h=_,_=w,w=h)}return{width:_,height:w,unit:a,k:d,orientation:s}},t.html=function(s,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(M5):null;var l=new o(a);return a.worker?l:l.from(s).doCallback()}}(Ye.API),Ye.API.addJS=function(t){return T4=t,this.internal.events.subscribe("postPutResources",function(){qd=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qd+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),E4=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+T4+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){qd!==void 0&&E4!==void 0&&this.internal.out("/Names <</JavaScript "+qd+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),o=0;o<i.length;o++){var s=i[o],a=r.exec(s);if(a!=null){var l=a[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(s)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,d=[];for(o=0;o<u;o++){var p=n.internal.newObject();d.push(p);var g=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var h=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<d.length;o++)n.internal.write("(page_"+(o+1)+")"+d[o]+" 0 R");n.internal.write(" ] >>","endobj"),e=n.internal.newObject(),n.internal.write("<< /Dests "+h+" 0 R"),n.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,o){var s={title:i,options:o,children:[]};return r==null&&(r=this.root),r.children.push(s),s},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var s=r.children[o];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var l=n.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},n.outline.line=function(r){this.ctx.val+=r+`\r
+`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
+`+r.id+` 0 obj\r
+<<\r
+`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
+endobj\r
+`},n.outline.count_r=function(r,i){for(var o=0;o<i.children.length;o++)r.count++,this.count_r(r,i.children[o]);return r.count}}])}(Ye.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(n,r,i,o,s,a){var l,u=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=s||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(l=function(p){for(var g,h=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,_={width:0,height:0,numcomponents:1},A=4;A<w;A+=2){if(A+=h,e.indexOf(p.charCodeAt(A+1))!==-1){g=256*p.charCodeAt(A+5)+p.charCodeAt(A+6),_={width:256*p.charCodeAt(A+7)+p.charCodeAt(A+8),height:g,numcomponents:p.charCodeAt(A+9)};break}h=256*p.charCodeAt(A+2)+p.charCodeAt(A+3)}return _}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:u,index:r,alias:i}}return d}}(Ye.API);var Ll,Vd,j4,M4,I4,mI=function(){var t,e,n;function r(o){var s,a,l,u,d,p,g,h,w,_,A,v,S,y;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),w=(function(){var N,L;for(L=[],N=0;N<4;++N)L.push(String.fromCharCode(this.data[this.pos++]));return L}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},d=this.readUInt16(),u=this.readUInt16()||100,p.delay=1e3*d/u,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,s-=4),o=(p!=null?p.data:void 0)||this.imgData,v=0;0<=s?v<s:v>s;0<=s?++v:--v)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((_=l-this.transparency.indexed.length)>0)for(S=0;0<=_?S<_:S>_;0<=_?++S:--S)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":g=(A=this.read(s)).indexOf(0),h=String.fromCharCode.apply(String,A.slice(0,g)),this.text[h]=String.fromCharCode.apply(String,A.slice(g+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(y=this.colorType)===4||y===6,a=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*a,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(o){var s,a;for(a=[],s=0;0<=o?s<o:s>o;0<=o?++s:--s)a.push(this.data[this.pos++]);return a},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(o){var s=this.pixelBitlength/8,a=new Uint8Array(this.width*this.height*s),l=0,u=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function d(p,g,h,w){var _,A,v,S,y,N,L,R,D,k,z,T,P,E,W,B,Q,ee,se,K,te,X=Math.ceil((u.width-p)/h),de=Math.ceil((u.height-g)/w),j=u.width==X&&u.height==de;for(E=s*X,T=j?a:new Uint8Array(E*de),N=o.length,P=0,A=0;P<de&&l<N;){switch(o[l++]){case 0:for(S=Q=0;Q<E;S=Q+=1)T[A++]=o[l++];break;case 1:for(S=ee=0;ee<E;S=ee+=1)_=o[l++],y=S<s?0:T[A-s],T[A++]=(_+y)%256;break;case 2:for(S=se=0;se<E;S=se+=1)_=o[l++],v=(S-S%s)/s,W=P&&T[(P-1)*E+v*s+S%s],T[A++]=(W+_)%256;break;case 3:for(S=K=0;K<E;S=K+=1)_=o[l++],v=(S-S%s)/s,y=S<s?0:T[A-s],W=P&&T[(P-1)*E+v*s+S%s],T[A++]=(_+Math.floor((y+W)/2))%256;break;case 4:for(S=te=0;te<E;S=te+=1)_=o[l++],v=(S-S%s)/s,y=S<s?0:T[A-s],P===0?W=B=0:(W=T[(P-1)*E+v*s+S%s],B=v&&T[(P-1)*E+(v-1)*s+S%s]),L=y+W-B,R=Math.abs(L-y),k=Math.abs(L-W),z=Math.abs(L-B),D=R<=k&&R<=z?y:k<=z?W:B,T[A++]=(_+D)%256;break;default:throw new Error("Invalid filter algorithm: "+o[l-1])}if(!j){var G=((g+P*w)*u.width+p)*s,H=P*E;for(S=0;S<X;S+=1){for(var ne=0;ne<s;ne+=1)a[G++]=T[H++];G+=(h-1)*s}}P++}}return o=KM(o),u.interlaceMethod==1?(d(0,0,8,8),d(4,0,8,8),d(0,4,4,8),d(2,0,4,4),d(0,2,2,4),d(1,0,2,2),d(0,1,1,2)):d(0,0,1,1),a},r.prototype.decodePalette=function(){var o,s,a,l,u,d,p,g,h;for(a=this.palette,d=this.transparency.indexed||[],u=new Uint8Array((d.length||0)+a.length),l=0,o=0,s=p=0,g=a.length;p<g;s=p+=3)u[l++]=a[s],u[l++]=a[s+1],u[l++]=a[s+2],u[l++]=(h=d[o++])!=null?h:255;return u},r.prototype.copyToImageData=function(o,s){var a,l,u,d,p,g,h,w,_,A,v;if(l=this.colors,_=null,a=this.hasAlphaChannel,this.palette.length&&(_=(v=this._decodedPalette)!=null?v:this._decodedPalette=this.decodePalette(),l=4,a=!0),w=(u=o.data||o).length,p=_||s,d=g=0,l===1)for(;d<w;)h=_?4*s[d/4]:g,A=p[h++],u[d++]=A,u[d++]=A,u[d++]=A,u[d++]=a?p[h++]:255,g=h;else for(;d<w;)h=_?4*s[d/4]:g,u[d++]=p[h++],u[d++]=p[h++],u[d++]=p[h++],u[d++]=a?p[h++]:255,g=h},r.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var i=function(){if(Object.prototype.toString.call(Ke)==="[object Window]"){try{e=Ke.document.createElement("canvas"),n=e.getContext("2d")}catch{return!1}return!0}return!1};return i(),t=function(o){var s;if(i()===!0)return n.width=o.width,n.height=o.height,n.clearRect(0,0,o.width,o.height),n.putImageData(o,0,0),(s=new Image).src=e.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(o){var s,a,l,u,d,p,g,h;if(this.animation){for(h=[],a=d=0,p=(g=this.animation.frames).length;d<p;a=++d)s=g[a],l=o.createImageData(s.width,s.height),u=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(l,u),s.imageData=l,h.push(s.image=t(l));return h}},r.prototype.renderFrame=function(o,s){var a,l,u;return a=(l=this.animation.frames)[s],u=l[s-1],s===0&&o.clearRect(0,0,this.width,this.height),(u!=null?u.disposeOp:void 0)===1?o.clearRect(u.xOffset,u.yOffset,u.width,u.height):(u!=null?u.disposeOp:void 0)===2&&o.putImageData(u.imageData,u.xOffset,u.yOffset),a.blendOp===0&&o.clearRect(a.xOffset,a.yOffset,a.width,a.height),o.drawImage(a.image,a.xOffset,a.yOffset)},r.prototype.animate=function(o){var s,a,l,u,d,p,g=this;return a=0,p=this.animation,u=p.numFrames,l=p.frames,d=p.numPlays,(s=function(){var h,w;if(h=a++%u,w=l[h],g.renderFrame(o,h),u>1&&a/u<d)return g.animation._timeout=setTimeout(s,w.delay)})()},r.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},r.prototype.render=function(o){var s,a;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,s=o.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(a=s.createImageData(this.width,this.height),this.copyToImageData(a,this.decodePixels()),s.putImageData(a,0,0))},r}();/**
+ * @license
+ *
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * ====================================================================
+ *//**
+ * @license
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
+ *
+ * https://github.com/deanm/omggif
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
+ * including animation and compression.  It does not rely on any specific
+ * underlying system, so should run in the browser, Node, or Plask.
+ */function vI(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,s=1<<(7&i)+1;t[e++],t[e++];var a=null,l=null;o&&(a=e,l=s,e+=3*s);var u=!0,d=[],p=0,g=null,h=0,w=null;for(this.width=n,this.height=r;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,w=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var _=t[e++];p=t[e++]|t[e++]<<8,g=t[e++],!(1&_)&&(g=null),h=_>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var A=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,S=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,N=t[e++],L=N>>6&1,R=1<<(7&N)+1,D=a,k=l,z=!1;N>>7&&(z=!0,D=e,k=R,e+=3*R);var T=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}d.push({x:A,y:v,width:S,height:y,has_local_palette:z,palette_offset:D,palette_size:k,data_offset:T,data_length:e-T,transparent_index:g,interlaced:!!L,delay:p,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return w},this.frameInfo=function(E){if(E<0||E>=d.length)throw new Error("Frame index out of range.");return d[E]},this.decodeAndBlitFrameBGRA=function(E,W){var B=this.frameInfo(E),Q=B.width*B.height,ee=new Uint8Array(Q);F4(t,B.data_offset,ee,Q);var se=B.palette_offset,K=B.transparent_index;K===null&&(K=256);var te=B.width,X=n-te,de=te,j=4*(B.y*n+B.x),G=4*((B.y+B.height)*n+B.x),H=j,ne=4*X;B.interlaced===!0&&(ne+=4*n*7);for(var ie=8,q=0,Z=ee.length;q<Z;++q){var ce=ee[q];if(de===0&&(de=te,(H+=ne)>=G&&(ne=4*X+4*n*(ie-1),H=j+(te+X)*(ie<<1),ie>>=1)),ce===K)H+=4;else{var xe=t[se+3*ce],we=t[se+3*ce+1],Ce=t[se+3*ce+2];W[H++]=Ce,W[H++]=we,W[H++]=xe,W[H++]=255}--de}},this.decodeAndBlitFrameRGBA=function(E,W){var B=this.frameInfo(E),Q=B.width*B.height,ee=new Uint8Array(Q);F4(t,B.data_offset,ee,Q);var se=B.palette_offset,K=B.transparent_index;K===null&&(K=256);var te=B.width,X=n-te,de=te,j=4*(B.y*n+B.x),G=4*((B.y+B.height)*n+B.x),H=j,ne=4*X;B.interlaced===!0&&(ne+=4*n*7);for(var ie=8,q=0,Z=ee.length;q<Z;++q){var ce=ee[q];if(de===0&&(de=te,(H+=ne)>=G&&(ne=4*X+4*n*(ie-1),H=j+(te+X)*(ie<<1),ie>>=1)),ce===K)H+=4;else{var xe=t[se+3*ce],we=t[se+3*ce+1],Ce=t[se+3*ce+2];W[H++]=xe,W[H++]=we,W[H++]=Ce,W[H++]=255}--de}}}function F4(t,e,n,r){for(var i=t[e++],o=1<<i,s=o+1,a=s+1,l=i+1,u=(1<<l)-1,d=0,p=0,g=0,h=t[e++],w=new Int32Array(4096),_=null;;){for(;d<16&&h!==0;)p|=t[e++]<<d,d+=8,h===1?h=t[e++]:--h;if(d<l)break;var A=p&u;if(p>>=l,d-=l,A!==o){if(A===s)break;for(var v=A<a?A:_,S=0,y=v;y>o;)y=w[y]>>8,++S;var N=y;if(g+S+(v!==A?1:0)>r)return void It.log("Warning, gif stream longer than expected.");n[g++]=N;var L=g+=S;for(v!==A&&(n[g++]=N),y=v;S--;)y=w[y],n[--L]=255&y,y>>=8;_!==null&&a<4096&&(w[a++]=_<<8|N,a>=u+1&&l<12&&(++l,u=u<<1|1)),_=A}else a=s+1,u=(1<<(l=i+1))-1,_=null}return g!==r&&It.log("Warning, gif stream shorter than expected."),n}/**
+ * @license
+  Copyright (c) 2008, Adobe Systems Incorporated
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without 
+  modification, are permitted provided that the following conditions are
+  met:
+
+  * Redistributions of source code must retain the above copyright notice, 
+    this list of conditions and the following disclaimer.
+  
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the 
+    documentation and/or other materials provided with the distribution.
+  
+  * Neither the name of Adobe Systems Incorporated nor the names of its 
+    contributors may be used to endorse or promote products derived from 
+    this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
+  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/function o2(t){var e,n,r,i,o,s=Math.floor,a=new Array(64),l=new Array(64),u=new Array(64),d=new Array(64),p=new Array(65535),g=new Array(65535),h=new Array(64),w=new Array(64),_=[],A=0,v=7,S=new Array(64),y=new Array(64),N=new Array(64),L=new Array(256),R=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Q=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ee(j,G){for(var H=0,ne=0,ie=new Array,q=1;q<=16;q++){for(var Z=1;Z<=j[q];Z++)ie[G[ne]]=[],ie[G[ne]][0]=H,ie[G[ne]][1]=q,ne++,H++;H*=2}return ie}function se(j){for(var G=j[0],H=j[1]-1;H>=0;)G&1<<H&&(A|=1<<v),H--,--v<0&&(A==255?(K(255),K(0)):K(A),v=7,A=0)}function K(j){_.push(j)}function te(j){K(j>>8&255),K(255&j)}function X(j,G,H,ne,ie){for(var q,Z=ie[0],ce=ie[240],xe=function(Pe,Ee){var Ie,Me,Ge,et,st,lt,gt,kt,Qe,ct,Fe=0;for(Qe=0;Qe<8;++Qe){Ie=Pe[Fe],Me=Pe[Fe+1],Ge=Pe[Fe+2],et=Pe[Fe+3],st=Pe[Fe+4],lt=Pe[Fe+5],gt=Pe[Fe+6];var Yn=Ie+(kt=Pe[Fe+7]),wt=Ie-kt,li=Me+gt,jt=Me-gt,Vt=Ge+lt,Ri=Ge-lt,xt=et+st,$s=et-st,tn=Yn+xt,ci=Yn-xt,ho=li+Vt,nn=li-Vt;Pe[Fe]=tn+ho,Pe[Fe+4]=tn-ho;var tt=.707106781*(nn+ci);Pe[Fe+2]=ci+tt,Pe[Fe+6]=ci-tt;var At=.382683433*((tn=$s+Ri)-(nn=jt+wt)),Qs=.5411961*tn+At,zn=1.306562965*nn+At,Bi=.707106781*(ho=Ri+jt),Di=wt+Bi,He=wt-Bi;Pe[Fe+5]=He+Qs,Pe[Fe+3]=He-Qs,Pe[Fe+1]=Di+zn,Pe[Fe+7]=Di-zn,Fe+=8}for(Fe=0,Qe=0;Qe<8;++Qe){Ie=Pe[Fe],Me=Pe[Fe+8],Ge=Pe[Fe+16],et=Pe[Fe+24],st=Pe[Fe+32],lt=Pe[Fe+40],gt=Pe[Fe+48];var ui=Ie+(kt=Pe[Fe+56]),Ui=Ie-kt,br=Me+gt,Cn=Me-gt,bn=Ge+lt,Mr=Ge-lt,Wa=et+st,fo=et-st,hi=ui+Wa,di=ui-Wa,fi=br+bn,zi=br-bn;Pe[Fe]=hi+fi,Pe[Fe+32]=hi-fi;var Wr=.707106781*(zi+di);Pe[Fe+16]=di+Wr,Pe[Fe+48]=di-Wr;var Gi=.382683433*((hi=fo+Mr)-(zi=Cn+Ui)),Js=.5411961*hi+Gi,Ha=1.306562965*zi+Gi,Ya=.707106781*(fi=Mr+Cn),Ka=Ui+Ya,Xa=Ui-Ya;Pe[Fe+40]=Xa+Js,Pe[Fe+24]=Xa-Js,Pe[Fe+8]=Ka+Ha,Pe[Fe+56]=Ka-Ha,Fe++}for(Qe=0;Qe<64;++Qe)ct=Pe[Qe]*Ee[Qe],h[Qe]=ct>0?ct+.5|0:ct-.5|0;return h}(j,G),we=0;we<64;++we)w[D[we]]=xe[we];var Ce=w[0]-H;H=w[0],Ce==0?se(ne[0]):(se(ne[g[q=32767+Ce]]),se(p[q]));for(var ke=63;ke>0&&w[ke]==0;)ke--;if(ke==0)return se(Z),H;for(var ze,me=1;me<=ke;){for(var J=me;w[me]==0&&me<=ke;)++me;var Ve=me-J;if(Ve>=16){ze=Ve>>4;for(var Be=1;Be<=ze;++Be)se(ce);Ve&=15}q=32767+w[me],se(ie[(Ve<<4)+g[q]]),se(p[q]),me++}return ke!=63&&se(Z),H}function de(j){j=Math.min(Math.max(j,1),100),o!=j&&(function(G){for(var H=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ne=0;ne<64;ne++){var ie=s((H[ne]*G+50)/100);ie=Math.min(Math.max(ie,1),255),a[D[ne]]=ie}for(var q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Z=0;Z<64;Z++){var ce=s((q[Z]*G+50)/100);ce=Math.min(Math.max(ce,1),255),l[D[Z]]=ce}for(var xe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],we=0,Ce=0;Ce<8;Ce++)for(var ke=0;ke<8;ke++)u[we]=1/(a[D[we]]*xe[Ce]*xe[ke]*8),d[we]=1/(l[D[we]]*xe[Ce]*xe[ke]*8),we++}(j<50?Math.floor(5e3/j):Math.floor(200-2*j)),o=j)}this.encode=function(j,G){G&&de(G),_=new Array,A=0,v=7,te(65496),te(65504),te(16),K(74),K(70),K(73),K(70),K(0),K(1),K(1),K(0),te(1),te(1),K(0),K(0),function(){te(65499),te(132),K(0);for(var Me=0;Me<64;Me++)K(a[Me]);K(1);for(var Ge=0;Ge<64;Ge++)K(l[Ge])}(),function(Me,Ge){te(65472),te(17),K(8),te(Ge),te(Me),K(3),K(1),K(17),K(0),K(2),K(17),K(1),K(3),K(17),K(1)}(j.width,j.height),function(){te(65476),te(418),K(0);for(var Me=0;Me<16;Me++)K(k[Me+1]);for(var Ge=0;Ge<=11;Ge++)K(z[Ge]);K(16);for(var et=0;et<16;et++)K(T[et+1]);for(var st=0;st<=161;st++)K(P[st]);K(1);for(var lt=0;lt<16;lt++)K(E[lt+1]);for(var gt=0;gt<=11;gt++)K(W[gt]);K(17);for(var kt=0;kt<16;kt++)K(B[kt+1]);for(var Qe=0;Qe<=161;Qe++)K(Q[Qe])}(),te(65498),te(12),K(3),K(1),K(0),K(2),K(17),K(3),K(17),K(0),K(63),K(0);var H=0,ne=0,ie=0;A=0,v=7,this.encode.displayName="_encode_";for(var q,Z,ce,xe,we,Ce,ke,ze,me,J=j.data,Ve=j.width,Be=j.height,Pe=4*Ve,Ee=0;Ee<Be;){for(q=0;q<Pe;){for(we=Pe*Ee+q,ke=-1,ze=0,me=0;me<64;me++)Ce=we+(ze=me>>3)*Pe+(ke=4*(7&me)),Ee+ze>=Be&&(Ce-=Pe*(Ee+1+ze-Be)),q+ke>=Pe&&(Ce-=q+ke-Pe+4),Z=J[Ce++],ce=J[Ce++],xe=J[Ce++],S[me]=(R[Z]+R[ce+256>>0]+R[xe+512>>0]>>16)-128,y[me]=(R[Z+768>>0]+R[ce+1024>>0]+R[xe+1280>>0]>>16)-128,N[me]=(R[Z+1280>>0]+R[ce+1536>>0]+R[xe+1792>>0]>>16)-128;H=X(S,u,H,e,r),ne=X(y,d,ne,n,i),ie=X(N,d,ie,n,i),q+=32}Ee+=8}if(v>=0){var Ie=[];Ie[1]=v+1,Ie[0]=(1<<v+1)-1,se(Ie)}return te(65497),new Uint8Array(_)},t=t||50,function(){for(var j=String.fromCharCode,G=0;G<256;G++)L[G]=j(G)}(),e=ee(k,z),n=ee(E,W),r=ee(T,P),i=ee(B,Q),function(){for(var j=1,G=2,H=1;H<=15;H++){for(var ne=j;ne<G;ne++)g[32767+ne]=H,p[32767+ne]=[],p[32767+ne][1]=H,p[32767+ne][0]=ne;for(var ie=-(G-1);ie<=-j;ie++)g[32767+ie]=H,p[32767+ie]=[],p[32767+ie][1]=H,p[32767+ie][0]=G-1+ie;j<<=1,G<<=1}}(),function(){for(var j=0;j<256;j++)R[j]=19595*j,R[j+256>>0]=38470*j,R[j+512>>0]=7471*j+32768,R[j+768>>0]=-11059*j,R[j+1024>>0]=-21709*j,R[j+1280>>0]=32768*j+8421375,R[j+1536>>0]=-27439*j,R[j+1792>>0]=-5329*j}(),de(t)}/**
+ * @license
+ * Copyright (c) 2017 Aras Abbasi
+ *
+ * Licensed under the MIT License.
+ * http://opensource.org/licenses/mit-license
+ */function xi(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function O4(t){function e(k){if(!k)throw Error("assert :P")}function n(k,z,T){for(var P=0;4>P;P++)if(k[z+P]!=T.charCodeAt(P))return!0;return!1}function r(k,z,T,P,E){for(var W=0;W<E;W++)k[z+W]=T[P+W]}function i(k,z,T,P){for(var E=0;E<P;E++)k[z+E]=T}function o(k){return new Int32Array(k)}function s(k,z){for(var T=[],P=0;P<k;P++)T.push(new z);return T}function a(k,z){var T=[];return function P(E,W,B){for(var Q=B[W],ee=0;ee<Q&&(E.push(B.length>W+1?[]:new z),!(B.length<W+1));ee++)P(E[ee],W+1,B)}(T,0,k),T}var l=function(){var k=this;function z(c,f){for(var b=1<<f-1>>>0;c&b;)b>>>=1;return b?(c&b-1)+b:c}function T(c,f,b,C,M){e(!(C%b));do c[f+(C-=b)]=M;while(0<C)}function P(c,f,b,C,M){if(e(2328>=M),512>=M)var F=o(512);else if((F=o(M))==null)return 0;return function(O,U,V,Y,ae,pe){var ge,he,Se=U,ve=1<<V,le=o(16),ue=o(16);for(e(ae!=0),e(Y!=null),e(O!=null),e(0<V),he=0;he<ae;++he){if(15<Y[he])return 0;++le[Y[he]]}if(le[0]==ae)return 0;for(ue[1]=0,ge=1;15>ge;++ge){if(le[ge]>1<<ge)return 0;ue[ge+1]=ue[ge]+le[ge]}for(he=0;he<ae;++he)ge=Y[he],0<Y[he]&&(pe[ue[ge]++]=he);if(ue[15]==1)return(Y=new E).g=0,Y.value=pe[0],T(O,Se,1,ve,Y),ve;var be,Ae=-1,_e=ve-1,Re=0,Te=1,We=1,je=1<<V;for(he=0,ge=1,ae=2;ge<=V;++ge,ae<<=1){if(Te+=We<<=1,0>(We-=le[ge]))return 0;for(;0<le[ge];--le[ge])(Y=new E).g=ge,Y.value=pe[he++],T(O,Se+Re,ae,je,Y),Re=z(Re,ge)}for(ge=V+1,ae=2;15>=ge;++ge,ae<<=1){if(Te+=We<<=1,0>(We-=le[ge]))return 0;for(;0<le[ge];--le[ge]){if(Y=new E,(Re&_e)!=Ae){for(Se+=je,be=1<<(Ae=ge)-V;15>Ae&&!(0>=(be-=le[Ae]));)++Ae,be<<=1;ve+=je=1<<(be=Ae-V),O[U+(Ae=Re&_e)].g=be+V,O[U+Ae].value=Se-U-Ae}Y.g=ge-V,Y.value=pe[he++],T(O,Se+(Re>>V),ae,je,Y),Re=z(Re,ge)}}return Te!=2*ue[15]-1?0:ve}(c,f,b,C,M,F)}function E(){this.value=this.g=0}function W(){this.value=this.g=0}function B(){this.G=s(5,E),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Gn,W)}function Q(c,f,b,C){e(c!=null),e(f!=null),e(2147483648>C),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=f,c.pa=b,c.Jd=f,c.Yc=b+C,c.Zc=4<=C?b+C-4+1:b,q(c)}function ee(c,f){for(var b=0;0<f--;)b|=ce(c,128)<<f;return b}function se(c,f){var b=ee(c,f);return Z(c)?-b:b}function K(c,f,b,C){var M,F=0;for(e(c!=null),e(f!=null),e(4294967288>C),c.Sb=C,c.Ra=0,c.u=0,c.h=0,4<C&&(C=4),M=0;M<C;++M)F+=f[b+M]<<8*M;c.Ra=F,c.bb=C,c.oa=f,c.pa=b}function te(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<ul-8>>>0,++c.bb,c.u-=8;H(c)&&(c.h=1,c.u=0)}function X(c,f){if(e(0<=f),!c.h&&f<=cl){var b=G(c)&ll[f];return c.u+=f,te(c),b}return c.h=1,c.u=0}function de(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function j(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(c){return c.Ra>>>(c.u&ul-1)>>>0}function H(c){return e(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>ul}function ne(c,f){c.u=f,c.h=H(c)}function ie(c){c.u>=Hc&&(e(c.u>=Hc),te(c))}function q(c){e(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(e(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function Z(c){return ee(c,1)}function ce(c,f){var b=c.Ca;0>c.b&&q(c);var C=c.b,M=b*f>>>8,F=(c.I>>>C>M)+0;for(F?(b-=M,c.I-=M+1<<C>>>0):b=M+1,C=b,M=0;256<=C;)M+=8,C>>=8;return C=7^M+Sr[C],c.b-=C,c.Ca=(b<<C)-1,F}function xe(c,f,b){c[f+0]=b>>24&255,c[f+1]=b>>16&255,c[f+2]=b>>8&255,c[f+3]=b>>0&255}function we(c,f){return c[f+0]<<0|c[f+1]<<8}function Ce(c,f){return we(c,f)|c[f+2]<<16}function ke(c,f){return we(c,f)|we(c,f+2)<<16}function ze(c,f){var b=1<<f;return e(c!=null),e(0<f),c.X=o(b),c.X==null?0:(c.Mb=32-f,c.Xa=f,1)}function me(c,f){e(c!=null),e(f!=null),e(c.Xa==f.Xa),r(f.X,0,c.X,0,1<<f.Xa)}function J(){this.X=[],this.Xa=this.Mb=0}function Ve(c,f,b,C){e(b!=null),e(C!=null);var M=b[0],F=C[0];return M==0&&(M=(c*F+f/2)/f),F==0&&(F=(f*M+c/2)/c),0>=M||0>=F?0:(b[0]=M,C[0]=F,1)}function Be(c,f){return c+(1<<f)-1>>>f}function Pe(c,f){return((4278255360&c)+(4278255360&f)>>>0&4278255360)+((16711935&c)+(16711935&f)>>>0&16711935)>>>0}function Ee(c,f){k[f]=function(b,C,M,F,O,U,V){var Y;for(Y=0;Y<O;++Y){var ae=k[c](U[V+Y-1],M,F+Y);U[V+Y]=Pe(b[C+Y],ae)}}}function Ie(){this.ud=this.hd=this.jd=0}function Me(c,f){return((4278124286&(c^f))>>>1)+(c&f)>>>0}function Ge(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function et(c,f){return Ge(c+(c-f+.5>>1))}function st(c,f,b){return Math.abs(f-b)-Math.abs(c-b)}function lt(c,f,b,C,M,F,O){for(C=F[O-1],b=0;b<M;++b)F[O+b]=C=Pe(c[f+b],C)}function gt(c,f,b,C,M){var F;for(F=0;F<b;++F){var O=c[f+F],U=O>>8&255,V=16711935&(V=(V=16711935&O)+((U<<16)+U));C[M+F]=(4278255360&O)+V>>>0}}function kt(c,f){f.jd=c>>0&255,f.hd=c>>8&255,f.ud=c>>16&255}function Qe(c,f,b,C,M,F){var O;for(O=0;O<C;++O){var U=f[b+O],V=U>>>8,Y=U,ae=255&(ae=(ae=U>>>16)+((c.jd<<24>>24)*(V<<24>>24)>>>5));Y=255&(Y=(Y=Y+((c.hd<<24>>24)*(V<<24>>24)>>>5))+((c.ud<<24>>24)*(ae<<24>>24)>>>5)),M[F+O]=(4278255360&U)+(ae<<16)+Y}}function ct(c,f,b,C,M){k[f]=function(F,O,U,V,Y,ae,pe,ge,he){for(V=pe;V<ge;++V)for(pe=0;pe<he;++pe)Y[ae++]=M(U[C(F[O++])])},k[c]=function(F,O,U,V,Y,ae,pe){var ge=8>>F.b,he=F.Ea,Se=F.K[0],ve=F.w;if(8>ge)for(F=(1<<F.b)-1,ve=(1<<ge)-1;O<U;++O){var le,ue=0;for(le=0;le<he;++le)le&F||(ue=C(V[Y++])),ae[pe++]=M(Se[ue&ve]),ue>>=ge}else k["VP8LMapColor"+b](V,Y,Se,ve,ae,pe,O,U,he)}}function Fe(c,f,b,C,M){for(b=f+b;f<b;){var F=c[f++];C[M++]=F>>16&255,C[M++]=F>>8&255,C[M++]=F>>0&255}}function Yn(c,f,b,C,M){for(b=f+b;f<b;){var F=c[f++];C[M++]=F>>16&255,C[M++]=F>>8&255,C[M++]=F>>0&255,C[M++]=F>>24&255}}function wt(c,f,b,C,M){for(b=f+b;f<b;){var F=(O=c[f++])>>16&240|O>>12&15,O=O>>0&240|O>>28&15;C[M++]=F,C[M++]=O}}function li(c,f,b,C,M){for(b=f+b;f<b;){var F=(O=c[f++])>>16&248|O>>13&7,O=O>>5&224|O>>3&31;C[M++]=F,C[M++]=O}}function jt(c,f,b,C,M){for(b=f+b;f<b;){var F=c[f++];C[M++]=F>>0&255,C[M++]=F>>8&255,C[M++]=F>>16&255}}function Vt(c,f,b,C,M,F){if(F==0)for(b=f+b;f<b;)xe(C,((F=c[f++])[0]>>24|F[1]>>8&65280|F[2]<<8&16711680|F[3]<<24)>>>0),M+=32;else r(C,M,c,f,b)}function Ri(c,f){k[f][0]=k[c+"0"],k[f][1]=k[c+"1"],k[f][2]=k[c+"2"],k[f][3]=k[c+"3"],k[f][4]=k[c+"4"],k[f][5]=k[c+"5"],k[f][6]=k[c+"6"],k[f][7]=k[c+"7"],k[f][8]=k[c+"8"],k[f][9]=k[c+"9"],k[f][10]=k[c+"10"],k[f][11]=k[c+"11"],k[f][12]=k[c+"12"],k[f][13]=k[c+"13"],k[f][14]=k[c+"0"],k[f][15]=k[c+"0"]}function xt(c){return c==V0||c==W0||c==ed||c==H0}function $s(){this.eb=[],this.size=this.A=this.fb=0}function tn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ci(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new $s,this.f.kb=new tn,this.sd=null}function ho(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function nn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function tt(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function At(c,f){var b=c.T,C=f.ba.f.RGBA,M=C.eb,F=C.fb+c.ka*C.A,O=Qr[f.ba.S],U=c.y,V=c.O,Y=c.f,ae=c.N,pe=c.ea,ge=c.W,he=f.cc,Se=f.dc,ve=f.Mc,le=f.Nc,ue=c.ka,be=c.ka+c.T,Ae=c.U,_e=Ae+1>>1;for(ue==0?O(U,V,null,null,Y,ae,pe,ge,Y,ae,pe,ge,M,F,null,null,Ae):(O(f.ec,f.fc,U,V,he,Se,ve,le,Y,ae,pe,ge,M,F-C.A,M,F,Ae),++b);ue+2<be;ue+=2)he=Y,Se=ae,ve=pe,le=ge,ae+=c.Rc,ge+=c.Rc,F+=2*C.A,O(U,(V+=2*c.fa)-c.fa,U,V,he,Se,ve,le,Y,ae,pe,ge,M,F-C.A,M,F,Ae);return V+=c.fa,c.j+be<c.o?(r(f.ec,f.fc,U,V,Ae),r(f.cc,f.dc,Y,ae,_e),r(f.Mc,f.Nc,pe,ge,_e),b--):1&be||O(U,V,null,null,Y,ae,pe,ge,Y,ae,pe,ge,M,F+C.A,null,null,Ae),b}function Qs(c,f,b){var C=c.F,M=[c.J];if(C!=null){var F=c.U,O=f.ba.S,U=O==Zh||O==ed;f=f.ba.f.RGBA;var V=[0],Y=c.ka;V[0]=c.T,c.Kb&&(Y==0?--V[0]:(--Y,M[0]-=c.width),c.j+c.ka+c.T==c.o&&(V[0]=c.o-c.j-Y));var ae=f.eb;Y=f.fb+Y*f.A,c=Bt(C,M[0],c.width,F,V,ae,Y+(U?0:3),f.A),e(b==V),c&&xt(O)&&Xr(ae,Y,U,F,V,f.A)}return 0}function zn(c){var f=c.ma,b=f.ba.S,C=11>b,M=b==Qh||b==Jh||b==Zh||b==q0||b==12||xt(b);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!Vc(f.Oa,c,M?11:12))return 0;if(M&&xt(b)&&Ne(),c.da)alert("todo:use_scaling");else{if(C){if(f.Ib=tt,c.Kb){if(b=c.U+1>>1,f.memory=o(c.U+2*b),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+c.U,f.Mc=f.cc,f.Nc=f.dc+b,f.Ib=At,Ne()}}else alert("todo:EmitYUV");M&&(f.Jb=Qs,C&&fe())}if(C&&!ym){for(c=0;256>c;++c)S7[c]=89858*(c-128)+nd>>td,N7[c]=-22014*(c-128)+nd,A7[c]=-45773*(c-128),x7[c]=113618*(c-128)+nd>>td;for(c=Zc;c<X0;++c)f=76283*(c-16)+nd>>td,C7[c-Zc]=Ir(f,255),P7[c-Zc]=Ir(f+8>>4,15);ym=1}return 1}function Bi(c){var f=c.ma,b=c.U,C=c.T;return e(!(1&c.ka)),0>=b||0>=C?0:(b=f.Ib(c,f),f.Jb!=null&&f.Jb(c,f,b),f.Dc+=b,1)}function Di(c){c.ma.memory=null}function He(c,f,b,C){return X(c,8)!=47?0:(f[0]=X(c,14)+1,b[0]=X(c,14)+1,C[0]=X(c,1),X(c,3)!=0?0:!c.h)}function ui(c,f){if(4>c)return c+1;var b=c-2>>1;return(2+(1&c)<<b)+X(f,b)+1}function Ui(c,f){return 120<f?f-120:1<=(b=((b=l7[f-1])>>4)*c+(8-(15&b)))?b:1;var b}function br(c,f,b){var C=G(b),M=c[f+=255&C].g-8;return 0<M&&(ne(b,b.u+8),C=G(b),f+=c[f].value,f+=C&(1<<M)-1),ne(b,b.u+c[f].g),c[f].value}function Cn(c,f,b){return b.g+=c.g,b.value+=c.value<<f>>>0,e(8>=b.g),c.g}function bn(c,f,b){var C=c.xc;return e((f=C==0?0:c.vc[c.md*(b>>C)+(f>>C)])<c.Wb),c.Ya[f]}function Mr(c,f,b,C){var M=c.ab,F=c.c*f,O=c.C;f=O+f;var U=b,V=C;for(C=c.Ta,b=c.Ua;0<M--;){var Y=c.gc[M],ae=O,pe=f,ge=U,he=V,Se=(V=C,U=b,Y.Ea);switch(e(ae<pe),e(pe<=Y.nc),Y.hc){case 2:Vh(ge,he,(pe-ae)*Se,V,U);break;case 0:var ve=ae,le=pe,ue=V,be=U,Ae=(je=Y).Ea;ve==0&&(z0(ge,he,null,null,1,ue,be),lt(ge,he+1,0,0,Ae-1,ue,be+1),he+=Ae,be+=Ae,++ve);for(var _e=1<<je.b,Re=_e-1,Te=Be(Ae,je.b),We=je.K,je=je.w+(ve>>je.b)*Te;ve<le;){var _t=We,Nt=je,mt=1;for(Yc(ge,he,ue,be-Ae,1,ue,be);mt<Ae;){var ht=(mt&~Re)+_e;ht>Ae&&(ht=Ae),(0,Xo[_t[Nt++]>>8&15])(ge,he+ +mt,ue,be+mt-Ae,ht-mt,ue,be+mt),mt=ht}he+=Ae,be+=Ae,++ve&Re||(je+=Te)}pe!=Y.nc&&r(V,U-Se,V,U+(pe-ae-1)*Se,Se);break;case 1:for(Se=ge,le=he,Ae=(ge=Y.Ea)-(be=ge&~(ue=(he=1<<Y.b)-1)),ve=Be(ge,Y.b),_e=Y.K,Y=Y.w+(ae>>Y.b)*ve;ae<pe;){for(Re=_e,Te=Y,We=new Ie,je=le+be,_t=le+ge;le<je;)kt(Re[Te++],We),ra(We,Se,le,he,V,U),le+=he,U+=he;le<_t&&(kt(Re[Te++],We),ra(We,Se,le,Ae,V,U),le+=Ae,U+=Ae),++ae&ue||(Y+=ve)}break;case 3:if(ge==V&&he==U&&0<Y.b){for(le=V,ge=Se=U+(pe-ae)*Se-(be=(pe-ae)*Be(Y.Ea,Y.b)),he=V,ue=U,ve=[],be=(Ae=be)-1;0<=be;--be)ve[be]=he[ue+be];for(be=Ae-1;0<=be;--be)le[ge+be]=ve[be];Hr(Y,ae,pe,V,Se,V,U)}else Hr(Y,ae,pe,ge,he,V,U)}U=C,V=b}V!=b&&r(C,b,U,V,F)}function Wa(c,f){var b=c.V,C=c.Ba+c.c*c.C,M=f-c.C;if(e(f<=c.l.o),e(16>=M),0<M){var F=c.l,O=c.Ta,U=c.Ua,V=F.width;if(Mr(c,M,b,C),M=U=[U],e((b=c.C)<(C=f)),e(F.v<F.va),C>F.o&&(C=F.o),b<F.j){var Y=F.j-b;b=F.j,M[0]+=Y*V}if(b>=C?b=0:(M[0]+=4*F.v,F.ka=b-F.j,F.U=F.va-F.v,F.T=C-b,b=1),b){if(U=U[0],11>(b=c.ca).S){var ae=b.f.RGBA,pe=(C=b.S,M=F.U,F=F.T,Y=ae.eb,ae.A),ge=F;for(ae=ae.fb+c.Ma*ae.A;0<ge--;){var he=O,Se=U,ve=M,le=Y,ue=ae;switch(C){case $h:xr(he,Se,ve,le,ue);break;case Qh:cr(he,Se,ve,le,ue);break;case V0:cr(he,Se,ve,le,ue),Xr(le,ue,0,ve,1,0);break;case lm:vo(he,Se,ve,le,ue);break;case Jh:Vt(he,Se,ve,le,ue,1);break;case W0:Vt(he,Se,ve,le,ue,1),Xr(le,ue,0,ve,1,0);break;case Zh:Vt(he,Se,ve,le,ue,0);break;case ed:Vt(he,Se,ve,le,ue,0),Xr(le,ue,1,ve,1,0);break;case q0:$o(he,Se,ve,le,ue);break;case H0:$o(he,Se,ve,le,ue),Rt(le,ue,ve,1,0);break;case cm:mo(he,Se,ve,le,ue);break;default:e(0)}U+=V,ae+=pe}c.Ma+=F}else alert("todo:EmitRescaledRowsYUVA");e(c.Ma<=b.height)}}c.C=f,e(c.C<=c.i)}function fo(c){var f;if(0<c.ua)return 0;for(f=0;f<c.Wb;++f){var b=c.Ya[f].G,C=c.Ya[f].H;if(0<b[1][C[1]+0].g||0<b[2][C[2]+0].g||0<b[3][C[3]+0].g)return 0}return 1}function hi(c,f,b,C,M,F){if(c.Z!=0){var O=c.qd,U=c.rd;for(e(es[c.Z]!=null);f<b;++f)es[c.Z](O,U,C,M,C,M,F),O=C,U=M,M+=F;c.qd=O,c.rd=U}}function di(c,f){var b=c.l.ma,C=b.Z==0||b.Z==1?c.l.j:c.C;if(C=c.C<C?C:c.C,e(f<=c.l.o),f>C){var M=c.l.width,F=b.ca,O=b.tb+M*C,U=c.V,V=c.Ba+c.c*C,Y=c.gc;e(c.ab==1),e(Y[0].hc==3),Wh(Y[0],C,f,U,V,F,O),hi(b,C,f,F,O,M)}c.C=c.Ma=f}function fi(c,f,b,C,M,F,O){var U=c.$/C,V=c.$%C,Y=c.m,ae=c.s,pe=b+c.$,ge=pe;M=b+C*M;var he=b+C*F,Se=280+ae.ua,ve=c.Pb?U:16777216,le=0<ae.ua?ae.Wa:null,ue=ae.wc,be=pe<he?bn(ae,V,U):null;e(c.C<F),e(he<=M);var Ae=!1;e:for(;;){for(;Ae||pe<he;){var _e=0;if(U>=ve){var Re=pe-b;e((ve=c).Pb),ve.wd=ve.m,ve.xd=Re,0<ve.s.ua&&me(ve.s.Wa,ve.s.vb),ve=U+u7}if(V&ue||(be=bn(ae,V,U)),e(be!=null),be.Qb&&(f[pe]=be.qb,Ae=!0),!Ae)if(ie(Y),be.jc){_e=Y,Re=f;var Te=pe,We=be.pd[G(_e)&Gn-1];e(be.jc),256>We.g?(ne(_e,_e.u+We.g),Re[Te]=We.value,_e=0):(ne(_e,_e.u+We.g-256),e(256<=We.value),_e=We.value),_e==0&&(Ae=!0)}else _e=br(be.G[0],be.H[0],Y);if(Y.h)break;if(Ae||256>_e){if(!Ae)if(be.nd)f[pe]=(be.qb|_e<<8)>>>0;else{if(ie(Y),Ae=br(be.G[1],be.H[1],Y),ie(Y),Re=br(be.G[2],be.H[2],Y),Te=br(be.G[3],be.H[3],Y),Y.h)break;f[pe]=(Te<<24|Ae<<16|_e<<8|Re)>>>0}if(Ae=!1,++pe,++V>=C&&(V=0,++U,O!=null&&U<=F&&!(U%16)&&O(c,U),le!=null))for(;ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e}else if(280>_e){if(_e=ui(_e-256,Y),Re=br(be.G[4],be.H[4],Y),ie(Y),Re=Ui(C,Re=ui(Re,Y)),Y.h)break;if(pe-b<Re||M-pe<_e)break e;for(Te=0;Te<_e;++Te)f[pe+Te]=f[pe+Te-Re];for(pe+=_e,V+=_e;V>=C;)V-=C,++U,O!=null&&U<=F&&!(U%16)&&O(c,U);if(e(pe<=M),V&ue&&(be=bn(ae,V,U)),le!=null)for(;ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e}else{if(!(_e<Se))break e;for(Ae=_e-280,e(le!=null);ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e;_e=pe,e(!(Ae>>>(Re=le).Xa)),f[_e]=Re.X[Ae],Ae=!0}Ae||e(Y.h==H(Y))}if(c.Pb&&Y.h&&pe<M)e(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&me(c.s.vb,c.s.Wa);else{if(Y.h)break e;O!=null&&O(c,U>F?F:U),c.a=0,c.$=pe-b}return 1}return c.a=3,0}function zi(c){e(c!=null),c.vc=null,c.yc=null,c.Ya=null;var f=c.Wa;f!=null&&(f.X=null),c.vb=null,e(c!=null)}function Wr(){var c=new U0;return c==null?null:(c.a=0,c.xb=dm,Ri("Predictor","VP8LPredictors"),Ri("Predictor","VP8LPredictors_C"),Ri("PredictorAdd","VP8LPredictorsAdd"),Ri("PredictorAdd","VP8LPredictorsAdd_C"),Vh=gt,ra=Qe,xr=Fe,cr=Yn,$o=wt,mo=li,vo=jt,k.VP8LMapColor32b=hl,k.VP8LMapColor8b=Hh,c)}function Gi(c,f,b,C,M){var F=1,O=[c],U=[f],V=C.m,Y=C.s,ae=null,pe=0;e:for(;;){if(b)for(;F&&X(V,1);){var ge=O,he=U,Se=C,ve=1,le=Se.m,ue=Se.gc[Se.ab],be=X(le,2);if(Se.Oc&1<<be)F=0;else{switch(Se.Oc|=1<<be,ue.hc=be,ue.Ea=ge[0],ue.nc=he[0],ue.K=[null],++Se.ab,e(4>=Se.ab),be){case 0:case 1:ue.b=X(le,3)+2,ve=Gi(Be(ue.Ea,ue.b),Be(ue.nc,ue.b),0,Se,ue.K),ue.K=ue.K[0];break;case 3:var Ae,_e=X(le,8)+1,Re=16<_e?0:4<_e?1:2<_e?2:3;if(ge[0]=Be(ue.Ea,Re),ue.b=Re,Ae=ve=Gi(_e,1,0,Se,ue.K)){var Te,We=_e,je=ue,_t=1<<(8>>je.b),Nt=o(_t);if(Nt==null)Ae=0;else{var mt=je.K[0],ht=je.w;for(Nt[0]=je.K[0][0],Te=1;Te<1*We;++Te)Nt[Te]=Pe(mt[ht+Te],Nt[Te-1]);for(;Te<4*_t;++Te)Nt[Te]=0;je.K[0]=null,je.K[0]=Nt,Ae=1}}ve=Ae;break;case 2:break;default:e(0)}F=ve}}if(O=O[0],U=U[0],F&&X(V,1)&&!(F=1<=(pe=X(V,4))&&11>=pe)){C.a=3;break e}var Mt;if(Mt=F)t:{var Et,ot,Sn,Ar=C,xn=O,Nr=U,Ct=pe,Or=b,Rr=Ar.m,Fn=Ar.s,qn=[null],hr=1,Jr=0,Hi=c7[Ct];n:for(;;){if(Or&&X(Rr,1)){var On=X(Rr,3)+2,_o=Be(xn,On),la=Be(Nr,On),ml=_o*la;if(!Gi(_o,la,0,Ar,qn))break n;for(qn=qn[0],Fn.xc=On,Et=0;Et<ml;++Et){var ts=qn[Et]>>8&65535;qn[Et]=ts,ts>=hr&&(hr=ts+1)}}if(Rr.h)break n;for(ot=0;5>ot;++ot){var on=um[ot];!ot&&0<Ct&&(on+=1<<Ct),Jr<on&&(Jr=on)}var $0=s(hr*Hi,E),_m=hr,Sm=s(_m,B);if(Sm==null)var id=null;else e(65536>=_m),id=Sm;var eu=o(Jr);if(id==null||eu==null||$0==null){Ar.a=1;break n}var od=$0;for(Et=Sn=0;Et<hr;++Et){var yi=id[Et],vl=yi.G,yl=yi.H,xm=0,sd=1,Am=0;for(ot=0;5>ot;++ot){on=um[ot],vl[ot]=od,yl[ot]=Sn,!ot&&0<Ct&&(on+=1<<Ct);i:{var ad,Q0=on,ld=Ar,tu=eu,E7=od,T7=Sn,J0=0,ns=ld.m,j7=X(ns,1);if(i(tu,0,0,Q0),j7){var M7=X(ns,1)+1,I7=X(ns,1),Nm=X(ns,I7==0?1:8);tu[Nm]=1,M7==2&&(tu[Nm=X(ns,8)]=1);var cd=1}else{var Cm=o(19),Pm=X(ns,4)+4;if(19<Pm){ld.a=3;var ud=0;break i}for(ad=0;ad<Pm;++ad)Cm[a7[ad]]=X(ns,3);var Z0=void 0,nu=void 0,Lm=ld,F7=Cm,hd=Q0,km=tu,ep=0,rs=Lm.m,Em=8,Tm=s(128,E);r:for(;P(Tm,0,7,F7,19);){if(X(rs,1)){var O7=2+2*X(rs,3);if((Z0=2+X(rs,O7))>hd)break r}else Z0=hd;for(nu=0;nu<hd&&Z0--;){ie(rs);var jm=Tm[0+(127&G(rs))];ne(rs,rs.u+jm.g);var wl=jm.value;if(16>wl)km[nu++]=wl,wl!=0&&(Em=wl);else{var R7=wl==16,Mm=wl-16,B7=o7[Mm],Im=X(rs,i7[Mm])+B7;if(nu+Im>hd)break r;for(var D7=R7?Em:0;0<Im--;)km[nu++]=D7}}ep=1;break r}ep||(Lm.a=3),cd=ep}(cd=cd&&!ns.h)&&(J0=P(E7,T7,8,tu,Q0)),cd&&J0!=0?ud=J0:(ld.a=3,ud=0)}if(ud==0)break n;if(sd&&s7[ot]==1&&(sd=od[Sn].g==0),xm+=od[Sn].g,Sn+=ud,3>=ot){var ru,tp=eu[0];for(ru=1;ru<on;++ru)eu[ru]>tp&&(tp=eu[ru]);Am+=tp}}if(yi.nd=sd,yi.Qb=0,sd&&(yi.qb=(vl[3][yl[3]+0].value<<24|vl[1][yl[1]+0].value<<16|vl[2][yl[2]+0].value)>>>0,xm==0&&256>vl[0][yl[0]+0].value&&(yi.Qb=1,yi.qb+=vl[0][yl[0]+0].value<<8)),yi.jc=!yi.Qb&&6>Am,yi.jc){var dd,So=yi;for(dd=0;dd<Gn;++dd){var is=dd,os=So.pd[is],fd=So.G[0][So.H[0]+is];256<=fd.value?(os.g=fd.g+256,os.value=fd.value):(os.g=0,os.value=0,is>>=Cn(fd,8,os),is>>=Cn(So.G[1][So.H[1]+is],16,os),is>>=Cn(So.G[2][So.H[2]+is],0,os),Cn(So.G[3][So.H[3]+is],24,os))}}}Fn.vc=qn,Fn.Wb=hr,Fn.Ya=id,Fn.yc=$0,Mt=1;break t}Mt=0}if(!(F=Mt)){C.a=3;break e}if(0<pe){if(Y.ua=1<<pe,!ze(Y.Wa,pe)){C.a=1,F=0;break e}}else Y.ua=0;var np=C,Fm=O,U7=U,rp=np.s,ip=rp.xc;if(np.c=Fm,np.i=U7,rp.md=Be(Fm,ip),rp.wc=ip==0?-1:(1<<ip)-1,b){C.xb=v7;break e}if((ae=o(O*U))==null){C.a=1,F=0;break e}F=(F=fi(C,ae,0,O,U,U,null))&&!V.h;break e}return F?(M!=null?M[0]=ae:(e(ae==null),e(b)),C.$=0,b||zi(Y)):zi(Y),F}function Js(c,f){var b=c.c*c.i,C=b+f+16*f;return e(c.c<=f),c.V=o(C),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+b+f,1)}function Ha(c,f){var b=c.C,C=f-b,M=c.V,F=c.Ba+c.c*b;for(e(f<=c.l.o);0<C;){var O=16<C?16:C,U=c.l.ma,V=c.l.width,Y=V*O,ae=U.ca,pe=U.tb+V*b,ge=c.Ta,he=c.Ua;Mr(c,O,M,F),dn(ge,he,ae,pe,Y),hi(U,b,b+O,ae,pe,V),C-=O,M+=O*c.c,b+=O}e(b==f),c.C=c.Ma=f}function Ya(){this.ub=this.yd=this.td=this.Rb=0}function Ka(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Xa(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Ah(){this.Yb=function(){var c=[];return function f(b,C,M){for(var F=M[C],O=0;O<F&&(b.push(M.length>C+1?[]:0),!(M.length<C+1));O++)f(b[O],C+1,M)}(c,0,[3,11]),c}()}function v0(){this.jb=o(3),this.Wc=a([4,8],Ah),this.Xc=a([4,17],Ah)}function y0(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function $a(){this.ld=this.La=this.dd=this.tc=0}function Nh(){this.Na=this.la=0}function w0(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Lc(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function b0(){this.uc=this.M=this.Nb=0,this.wa=Array(new $a),this.Y=0,this.ya=Array(new Lc),this.aa=0,this.l=new Qa}function Ch(){this.y=o(16),this.f=o(8),this.ea=o(8)}function _0(){this.cb=this.a=0,this.sc="",this.m=new de,this.Od=new Ya,this.Kc=new Ka,this.ed=new y0,this.Qa=new Xa,this.Ic=this.$c=this.Aa=0,this.D=new b0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,de),this.ia=0,this.pb=s(4,w0),this.Pa=new v0,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ch),this.Hd=0,this.rb=Array(new Nh),this.sb=0,this.wa=Array(new $a),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Lc),this.L=this.aa=0,this.gd=a([4,2],$a),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Qa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function S0(){var c=new _0;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,Jc||(Jc=kh)),c}function un(c,f,b){return c.a==0&&(c.a=f,c.sc=b,c.cb=0),0}function Ph(c,f,b){return 3<=b&&c[f+0]==157&&c[f+1]==1&&c[f+2]==42}function Lh(c,f){if(c==null)return 0;if(c.a=0,c.sc="OK",f==null)return un(c,2,"null VP8Io passed to VP8GetHeaders()");var b=f.data,C=f.w,M=f.ha;if(4>M)return un(c,7,"Truncated header.");var F=b[C+0]|b[C+1]<<8|b[C+2]<<16,O=c.Od;if(O.Rb=!(1&F),O.td=F>>1&7,O.yd=F>>4&1,O.ub=F>>5,3<O.td)return un(c,3,"Incorrect keyframe parameters.");if(!O.yd)return un(c,4,"Frame not displayable.");C+=3,M-=3;var U=c.Kc;if(O.Rb){if(7>M)return un(c,7,"cannot parse picture header");if(!Ph(b,C,M))return un(c,3,"Bad code word");U.c=16383&(b[C+4]<<8|b[C+3]),U.Td=b[C+4]>>6,U.i=16383&(b[C+6]<<8|b[C+5]),U.Ud=b[C+6]>>6,C+=7,M-=7,c.za=U.c+15>>4,c.Ub=U.i+15>>4,f.width=U.c,f.height=U.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,i((F=c.Pa).jb,0,255,F.jb.length),e((F=c.Qa)!=null),F.Cb=0,F.Bb=0,F.Fb=1,i(F.Zb,0,0,F.Zb.length),i(F.Lb,0,0,F.Lb)}if(O.ub>M)return un(c,7,"bad partition length");Q(F=c.m,b,C,O.ub),C+=O.ub,M-=O.ub,O.Rb&&(U.Ld=Z(F),U.Kd=Z(F)),U=c.Qa;var V,Y=c.Pa;if(e(F!=null),e(U!=null),U.Cb=Z(F),U.Cb){if(U.Bb=Z(F),Z(F)){for(U.Fb=Z(F),V=0;4>V;++V)U.Zb[V]=Z(F)?se(F,7):0;for(V=0;4>V;++V)U.Lb[V]=Z(F)?se(F,6):0}if(U.Bb)for(V=0;3>V;++V)Y.jb[V]=Z(F)?ee(F,8):255}else U.Bb=0;if(F.Ka)return un(c,3,"cannot parse segment header");if((U=c.ed).zd=Z(F),U.Tb=ee(F,6),U.wb=ee(F,3),U.Pc=Z(F),U.Pc&&Z(F)){for(Y=0;4>Y;++Y)Z(F)&&(U.vd[Y]=se(F,6));for(Y=0;4>Y;++Y)Z(F)&&(U.od[Y]=se(F,6))}if(c.L=U.Tb==0?0:U.zd?1:2,F.Ka)return un(c,3,"cannot parse filter header");var ae=M;if(M=V=C,C=V+ae,U=ae,c.Xb=(1<<ee(c.m,2))-1,ae<3*(Y=c.Xb))b=7;else{for(V+=3*Y,U-=3*Y,ae=0;ae<Y;++ae){var pe=b[M+0]|b[M+1]<<8|b[M+2]<<16;pe>U&&(pe=U),Q(c.Jc[+ae],b,V,pe),V+=pe,U-=pe,M+=3}Q(c.Jc[+Y],b,V,U),b=V<C?0:5}if(b!=0)return un(c,b,"cannot parse partitions");for(b=ee(V=c.m,7),M=Z(V)?se(V,4):0,C=Z(V)?se(V,4):0,U=Z(V)?se(V,4):0,Y=Z(V)?se(V,4):0,V=Z(V)?se(V,4):0,ae=c.Qa,pe=0;4>pe;++pe){if(ae.Cb){var ge=ae.Zb[pe];ae.Fb||(ge+=b)}else{if(0<pe){c.pb[pe]=c.pb[0];continue}ge=b}var he=c.pb[pe];he.Sc[0]=Y0[Ir(ge+M,127)],he.Sc[1]=K0[Ir(ge+0,127)],he.Eb[0]=2*Y0[Ir(ge+C,127)],he.Eb[1]=101581*K0[Ir(ge+U,127)]>>16,8>he.Eb[1]&&(he.Eb[1]=8),he.Qc[0]=Y0[Ir(ge+Y,117)],he.Qc[1]=K0[Ir(ge+V,127)],he.lc=ge+V}if(!O.Rb)return un(c,4,"Not a key frame.");for(Z(F),O=c.Pa,b=0;4>b;++b){for(M=0;8>M;++M)for(C=0;3>C;++C)for(U=0;11>U;++U)Y=ce(F,g7[b][M][C][U])?ee(F,8):f7[b][M][C][U],O.Wc[b][M].Yb[C][U]=Y;for(M=0;17>M;++M)O.Xc[b][M]=O.Wc[b][m7[M]]}return c.kc=Z(F),c.kc&&(c.Bd=ee(F,8)),c.cb=1}function kh(c,f,b,C,M,F,O){var U=f[M].Yb[b];for(b=0;16>M;++M){if(!ce(c,U[b+0]))return M;for(;!ce(c,U[b+1]);)if(U=f[++M].Yb[0],b=0,M==16)return 16;var V=f[M+1].Yb;if(ce(c,U[b+2])){var Y=c,ae=0;if(ce(Y,(ge=U)[(pe=b)+3]))if(ce(Y,ge[pe+6])){for(U=0,pe=2*(ae=ce(Y,ge[pe+8]))+(ge=ce(Y,ge[pe+9+ae])),ae=0,ge=h7[pe];ge[U];++U)ae+=ae+ce(Y,ge[U]);ae+=3+(8<<pe)}else ce(Y,ge[pe+7])?(ae=7+2*ce(Y,165),ae+=ce(Y,145)):ae=5+ce(Y,159);else ae=ce(Y,ge[pe+4])?3+ce(Y,ge[pe+5]):2;U=V[2]}else ae=1,U=V[1];V=O+d7[M],0>(Y=c).b&&q(Y);var pe,ge=Y.b,he=(pe=Y.Ca>>1)-(Y.I>>ge)>>31;--Y.b,Y.Ca+=he,Y.Ca|=1,Y.I-=(pe+1&he)<<ge,F[V]=((ae^he)-he)*C[(0<M)+0]}return 16}function kc(c){var f=c.rb[c.sb-1];f.la=0,f.Na=0,i(c.zc,0,0,c.zc.length),c.ja=0}function x0(c,f){if(c==null)return 0;if(f==null)return un(c,2,"NULL VP8Io parameter in VP8Decode().");if(!c.cb&&!Lh(c,f))return 0;if(e(c.cb),f.ac==null||f.ac(f)){f.ob&&(c.L=0);var b=rd[c.L];if(c.L==2?(c.yb=0,c.zb=0):(c.yb=f.v-b>>4,c.zb=f.j-b>>4,0>c.yb&&(c.yb=0),0>c.zb&&(c.zb=0)),c.Va=f.o+15+b>>4,c.Hb=f.va+15+b>>4,c.Hb>c.za&&(c.Hb=c.za),c.Va>c.Ub&&(c.Va=c.Ub),0<c.L){var C=c.ed;for(b=0;4>b;++b){var M;if(c.Qa.Cb){var F=c.Qa.Lb[b];c.Qa.Fb||(F+=C.Tb)}else F=C.Tb;for(M=0;1>=M;++M){var O=c.gd[b][M],U=F;if(C.Pc&&(U+=C.vd[0],M&&(U+=C.od[0])),0<(U=0>U?0:63<U?63:U)){var V=U;0<C.wb&&(V=4<C.wb?V>>2:V>>1)>9-C.wb&&(V=9-C.wb),1>V&&(V=1),O.dd=V,O.tc=2*U+V,O.ld=40<=U?2:15<=U?1:0}else O.tc=0;O.La=M}}}b=0}else un(c,6,"Frame setup failed"),b=c.a;if(b=b==0){if(b){c.$c=0,0<c.Aa||(c.Ic=k7);e:{b=c.Ic,C=4*(V=c.za);var Y=32*V,ae=V+1,pe=0<c.L?V*(0<c.Aa?2:1):0,ge=(c.Aa==2?2:1)*V;if((O=C+832+(M=3*(16*b+rd[c.L])/2*Y)+(F=c.Fa!=null&&0<c.Fa.length?c.Kc.c*c.Kc.i:0))!=O)b=0;else{if(O>c.Vb){if(c.Vb=0,c.Ec=o(O),c.Fc=0,c.Ec==null){b=un(c,1,"no memory during frame initialization.");break e}c.Vb=O}O=c.Ec,U=c.Fc,c.Ac=O,c.Bc=U,U+=C,c.Gd=s(Y,Ch),c.Hd=0,c.rb=s(ae+1,Nh),c.sb=1,c.wa=pe?s(pe,$a):null,c.Y=0,c.D.Nb=0,c.D.wa=c.wa,c.D.Y=c.Y,0<c.Aa&&(c.D.Y+=V),e(!0),c.oc=O,c.pc=U,U+=832,c.ya=s(ge,Lc),c.aa=0,c.D.ya=c.ya,c.D.aa=c.aa,c.Aa==2&&(c.D.aa+=V),c.R=16*V,c.B=8*V,V=(Y=rd[c.L])*c.R,Y=Y/2*c.B,c.sa=O,c.ta=U+V,c.qa=c.sa,c.ra=c.ta+16*b*c.R+Y,c.Ha=c.qa,c.Ia=c.ra+8*b*c.B+Y,c.$c=0,U+=M,c.mb=F?O:null,c.nb=F?U:null,e(U+F<=c.Fc+c.Vb),kc(c),i(c.Ac,c.Bc,0,C),b=1}}if(b){if(f.ka=0,f.y=c.sa,f.O=c.ta,f.f=c.qa,f.N=c.ra,f.ea=c.Ha,f.Vd=c.Ia,f.fa=c.R,f.Rc=c.B,f.F=null,f.J=0,!Kh){for(b=-255;255>=b;++b)Pn[255+b]=0>b?-b:b;for(b=-1020;1020>=b;++b)wo[1020+b]=-128>b?-128:127<b?127:b;for(b=-112;112>=b;++b)Qc[112+b]=-16>b?-16:15<b?15:b;for(b=-255;510>=b;++b)gl[255+b]=0>b?0:255<b?255:b;Kh=1}dl=C0,yo=A0,Kc=Th,ur=N0,Yr=jh,hn=Eh,fl=Fc,Yh=ta,Xc=D0,ia=Oc,oa=B0,Qo=rl,sa=Rc,pl=zh,aa=Uh,Jo=Vi,$c=go,Kr=R0,vi[0]=qi,vi[1]=P0,vi[2]=T0,vi[3]=j0,vi[4]=Fh,vi[5]=tl,vi[6]=Oh,vi[7]=jc,vi[8]=I0,vi[9]=M0,Zo[0]=Mh,Zo[1]=k0,Zo[2]=po,Zo[3]=Za,Zo[4]=Kn,Zo[5]=E0,Zo[6]=Ih,bo[0]=Ho,bo[1]=L0,bo[2]=F0,bo[3]=Mc,bo[4]=ea,bo[5]=O0,bo[6]=Ic,b=1}else b=0}b&&(b=function(he,Se){for(he.M=0;he.M<he.Va;++he.M){var ve,le=he.Jc[he.M&he.Xb],ue=he.m,be=he;for(ve=0;ve<be.za;++ve){var Ae=ue,_e=be,Re=_e.Ac,Te=_e.Bc+4*ve,We=_e.zc,je=_e.ya[_e.aa+ve];if(_e.Qa.Bb?je.$b=ce(Ae,_e.Pa.jb[0])?2+ce(Ae,_e.Pa.jb[2]):ce(Ae,_e.Pa.jb[1]):je.$b=0,_e.kc&&(je.Ad=ce(Ae,_e.Bd)),je.Za=!ce(Ae,145)+0,je.Za){var _t=je.Ob,Nt=0;for(_e=0;4>_e;++_e){var mt,ht=We[0+_e];for(mt=0;4>mt;++mt){ht=p7[Re[Te+mt]][ht];for(var Mt=hm[ce(Ae,ht[0])];0<Mt;)Mt=hm[2*Mt+ce(Ae,ht[Mt])];ht=-Mt,Re[Te+mt]=ht}r(_t,Nt,Re,Te,4),Nt+=4,We[0+_e]=ht}}else ht=ce(Ae,156)?ce(Ae,128)?1:3:ce(Ae,163)?2:0,je.Ob[0]=ht,i(Re,Te,ht,4),i(We,0,ht,4);je.Dd=ce(Ae,142)?ce(Ae,114)?ce(Ae,183)?1:3:2:0}if(be.m.Ka)return un(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(be=le,Ae=(ue=he).rb[ue.sb-1],Re=ue.rb[ue.sb+ue.ja],ve=ue.ya[ue.aa+ue.ja],Te=ue.kc?ve.Ad:0)Ae.la=Re.la=0,ve.Za||(Ae.Na=Re.Na=0),ve.Hc=0,ve.Gc=0,ve.ia=0;else{var Et,ot;if(Ae=Re,Re=be,Te=ue.Pa.Xc,We=ue.ya[ue.aa+ue.ja],je=ue.pb[We.$b],_e=We.ad,_t=0,Nt=ue.rb[ue.sb-1],ht=mt=0,i(_e,_t,0,384),We.Za)var Sn=0,Ar=Te[3];else{Mt=o(16);var xn=Ae.Na+Nt.Na;if(xn=Jc(Re,Te[1],xn,je.Eb,0,Mt,0),Ae.Na=Nt.Na=(0<xn)+0,1<xn)dl(Mt,0,_e,_t);else{var Nr=Mt[0]+3>>3;for(Mt=0;256>Mt;Mt+=16)_e[_t+Mt]=Nr}Sn=1,Ar=Te[0]}var Ct=15&Ae.la,Or=15&Nt.la;for(Mt=0;4>Mt;++Mt){var Rr=1&Or;for(Nr=ot=0;4>Nr;++Nr)Ct=Ct>>1|(Rr=(xn=Jc(Re,Ar,xn=Rr+(1&Ct),je.Sc,Sn,_e,_t))>Sn)<<7,ot=ot<<2|(3<xn?3:1<xn?2:_e[_t+0]!=0),_t+=16;Ct>>=4,Or=Or>>1|Rr<<7,mt=(mt<<8|ot)>>>0}for(Ar=Ct,Sn=Or>>4,Et=0;4>Et;Et+=2){for(ot=0,Ct=Ae.la>>4+Et,Or=Nt.la>>4+Et,Mt=0;2>Mt;++Mt){for(Rr=1&Or,Nr=0;2>Nr;++Nr)xn=Rr+(1&Ct),Ct=Ct>>1|(Rr=0<(xn=Jc(Re,Te[2],xn,je.Qc,0,_e,_t)))<<3,ot=ot<<2|(3<xn?3:1<xn?2:_e[_t+0]!=0),_t+=16;Ct>>=2,Or=Or>>1|Rr<<5}ht|=ot<<4*Et,Ar|=Ct<<4<<Et,Sn|=(240&Or)<<Et}Ae.la=Ar,Nt.la=Sn,We.Hc=mt,We.Gc=ht,We.ia=43690&ht?0:je.ia,Te=!(mt|ht)}if(0<ue.L&&(ue.wa[ue.Y+ue.ja]=ue.gd[ve.$b][ve.Za],ue.wa[ue.Y+ue.ja].La|=!Te),be.Ka)return un(he,7,"Premature end-of-file encountered.")}if(kc(he),ue=Se,be=1,ve=(le=he).D,Ae=0<le.L&&le.M>=le.zb&&le.M<=le.Va,le.Aa==0)e:{if(ve.M=le.M,ve.uc=Ae,qc(le,ve),be=1,ve=(ot=le.D).Nb,Ae=(ht=rd[le.L])*le.R,Re=ht/2*le.B,Mt=16*ve*le.R,Nr=8*ve*le.B,Te=le.sa,We=le.ta-Ae+Mt,je=le.qa,_e=le.ra-Re+Nr,_t=le.Ha,Nt=le.Ia-Re+Nr,Or=(Ct=ot.M)==0,mt=Ct>=le.Va-1,le.Aa==2&&qc(le,ot),ot.uc)for(Rr=(xn=le).D.M,e(xn.D.uc),ot=xn.yb;ot<xn.Hb;++ot){Sn=ot,Ar=Rr;var Fn=(qn=(on=xn).D).Nb;Et=on.R;var qn=qn.wa[qn.Y+Sn],hr=on.sa,Jr=on.ta+16*Fn*Et+16*Sn,Hi=qn.dd,On=qn.tc;if(On!=0)if(e(3<=On),on.L==1)0<Sn&&Jo(hr,Jr,Et,On+4),qn.La&&Kr(hr,Jr,Et,On),0<Ar&&aa(hr,Jr,Et,On+4),qn.La&&$c(hr,Jr,Et,On);else{var _o=on.B,la=on.qa,ml=on.ra+8*Fn*_o+8*Sn,ts=on.Ha,on=on.Ia+8*Fn*_o+8*Sn;Fn=qn.ld,0<Sn&&(Yh(hr,Jr,Et,On+4,Hi,Fn),ia(la,ml,ts,on,_o,On+4,Hi,Fn)),qn.La&&(Qo(hr,Jr,Et,On,Hi,Fn),pl(la,ml,ts,on,_o,On,Hi,Fn)),0<Ar&&(fl(hr,Jr,Et,On+4,Hi,Fn),Xc(la,ml,ts,on,_o,On+4,Hi,Fn)),qn.La&&(oa(hr,Jr,Et,On,Hi,Fn),sa(la,ml,ts,on,_o,On,Hi,Fn))}}if(le.ia&&alert("todo:DitherRow"),ue.put!=null){if(ot=16*Ct,Ct=16*(Ct+1),Or?(ue.y=le.sa,ue.O=le.ta+Mt,ue.f=le.qa,ue.N=le.ra+Nr,ue.ea=le.Ha,ue.W=le.Ia+Nr):(ot-=ht,ue.y=Te,ue.O=We,ue.f=je,ue.N=_e,ue.ea=_t,ue.W=Nt),mt||(Ct-=ht),Ct>ue.o&&(Ct=ue.o),ue.F=null,ue.J=null,le.Fa!=null&&0<le.Fa.length&&ot<Ct&&(ue.J=zc(le,ue,ot,Ct-ot),ue.F=le.mb,ue.F==null&&ue.F.length==0)){be=un(le,3,"Could not decode alpha data.");break e}ot<ue.j&&(ht=ue.j-ot,ot=ue.j,e(!(1&ht)),ue.O+=le.R*ht,ue.N+=le.B*(ht>>1),ue.W+=le.B*(ht>>1),ue.F!=null&&(ue.J+=ue.width*ht)),ot<Ct&&(ue.O+=ue.v,ue.N+=ue.v>>1,ue.W+=ue.v>>1,ue.F!=null&&(ue.J+=ue.v),ue.ka=ot-ue.j,ue.U=ue.va-ue.v,ue.T=Ct-ot,be=ue.put(ue))}ve+1!=le.Ic||mt||(r(le.sa,le.ta-Ae,Te,We+16*le.R,Ae),r(le.qa,le.ra-Re,je,_e+8*le.B,Re),r(le.Ha,le.Ia-Re,_t,Nt+8*le.B,Re))}if(!be)return un(he,6,"Output aborted.")}return 1}(c,f)),f.bc!=null&&f.bc(f),b&=1}return b?(c.cb=0,b):0}function pi(c,f,b,C,M){M=c[f+b+32*C]+(M>>3),c[f+b+32*C]=-256&M?0>M?0:255:M}function Ja(c,f,b,C,M,F){pi(c,f,0,b,C+M),pi(c,f,1,b,C+F),pi(c,f,2,b,C-F),pi(c,f,3,b,C-M)}function _r(c){return(20091*c>>16)+c}function Ec(c,f,b,C){var M,F=0,O=o(16);for(M=0;4>M;++M){var U=c[f+0]+c[f+8],V=c[f+0]-c[f+8],Y=(35468*c[f+4]>>16)-_r(c[f+12]),ae=_r(c[f+4])+(35468*c[f+12]>>16);O[F+0]=U+ae,O[F+1]=V+Y,O[F+2]=V-Y,O[F+3]=U-ae,F+=4,f++}for(M=F=0;4>M;++M)U=(c=O[F+0]+4)+O[F+8],V=c-O[F+8],Y=(35468*O[F+4]>>16)-_r(O[F+12]),pi(b,C,0,0,U+(ae=_r(O[F+4])+(35468*O[F+12]>>16))),pi(b,C,1,0,V+Y),pi(b,C,2,0,V-Y),pi(b,C,3,0,U-ae),F++,C+=32}function Eh(c,f,b,C){var M=c[f+0]+4,F=35468*c[f+4]>>16,O=_r(c[f+4]),U=35468*c[f+1]>>16;Ja(b,C,0,M+O,c=_r(c[f+1]),U),Ja(b,C,1,M+F,c,U),Ja(b,C,2,M-F,c,U),Ja(b,C,3,M-O,c,U)}function A0(c,f,b,C,M){Ec(c,f,b,C),M&&Ec(c,f+16,b,C+4)}function Th(c,f,b,C){yo(c,f+0,b,C,1),yo(c,f+32,b,C+128,1)}function N0(c,f,b,C){var M;for(c=c[f+0]+4,M=0;4>M;++M)for(f=0;4>f;++f)pi(b,C,f,M,c)}function jh(c,f,b,C){c[f+0]&&ur(c,f+0,b,C),c[f+16]&&ur(c,f+16,b,C+4),c[f+32]&&ur(c,f+32,b,C+128),c[f+48]&&ur(c,f+48,b,C+128+4)}function C0(c,f,b,C){var M,F=o(16);for(M=0;4>M;++M){var O=c[f+0+M]+c[f+12+M],U=c[f+4+M]+c[f+8+M],V=c[f+4+M]-c[f+8+M],Y=c[f+0+M]-c[f+12+M];F[0+M]=O+U,F[8+M]=O-U,F[4+M]=Y+V,F[12+M]=Y-V}for(M=0;4>M;++M)O=(c=F[0+4*M]+3)+F[3+4*M],U=F[1+4*M]+F[2+4*M],V=F[1+4*M]-F[2+4*M],Y=c-F[3+4*M],b[C+0]=O+U>>3,b[C+16]=Y+V>>3,b[C+32]=O-U>>3,b[C+48]=Y-V>>3,C+=64}function Tc(c,f,b){var C,M=f-32,F=Fr,O=255-c[M-1];for(C=0;C<b;++C){var U,V=F,Y=O+c[f-1];for(U=0;U<b;++U)c[f+U]=V[Y+c[M+U]];f+=32}}function P0(c,f){Tc(c,f,4)}function L0(c,f){Tc(c,f,8)}function k0(c,f){Tc(c,f,16)}function po(c,f){var b;for(b=0;16>b;++b)r(c,f+32*b,c,f-32,16)}function Za(c,f){var b;for(b=16;0<b;--b)i(c,f,c[f-1],16),f+=32}function el(c,f,b){var C;for(C=0;16>C;++C)i(f,b+32*C,c,16)}function Mh(c,f){var b,C=16;for(b=0;16>b;++b)C+=c[f-1+32*b]+c[f+b-32];el(C>>5,c,f)}function Kn(c,f){var b,C=8;for(b=0;16>b;++b)C+=c[f-1+32*b];el(C>>4,c,f)}function E0(c,f){var b,C=8;for(b=0;16>b;++b)C+=c[f+b-32];el(C>>4,c,f)}function Ih(c,f){el(128,c,f)}function Ze(c,f,b){return c+2*f+b+2>>2}function T0(c,f){var b,C=f-32;for(C=new Uint8Array([Ze(c[C-1],c[C+0],c[C+1]),Ze(c[C+0],c[C+1],c[C+2]),Ze(c[C+1],c[C+2],c[C+3]),Ze(c[C+2],c[C+3],c[C+4])]),b=0;4>b;++b)r(c,f+32*b,C,0,C.length)}function j0(c,f){var b=c[f-1],C=c[f-1+32],M=c[f-1+64],F=c[f-1+96];xe(c,f+0,16843009*Ze(c[f-1-32],b,C)),xe(c,f+32,16843009*Ze(b,C,M)),xe(c,f+64,16843009*Ze(C,M,F)),xe(c,f+96,16843009*Ze(M,F,F))}function qi(c,f){var b,C=4;for(b=0;4>b;++b)C+=c[f+b-32]+c[f-1+32*b];for(C>>=3,b=0;4>b;++b)i(c,f+32*b,C,4)}function Fh(c,f){var b=c[f-1+0],C=c[f-1+32],M=c[f-1+64],F=c[f-1-32],O=c[f+0-32],U=c[f+1-32],V=c[f+2-32],Y=c[f+3-32];c[f+0+96]=Ze(C,M,c[f-1+96]),c[f+1+96]=c[f+0+64]=Ze(b,C,M),c[f+2+96]=c[f+1+64]=c[f+0+32]=Ze(F,b,C),c[f+3+96]=c[f+2+64]=c[f+1+32]=c[f+0+0]=Ze(O,F,b),c[f+3+64]=c[f+2+32]=c[f+1+0]=Ze(U,O,F),c[f+3+32]=c[f+2+0]=Ze(V,U,O),c[f+3+0]=Ze(Y,V,U)}function Oh(c,f){var b=c[f+1-32],C=c[f+2-32],M=c[f+3-32],F=c[f+4-32],O=c[f+5-32],U=c[f+6-32],V=c[f+7-32];c[f+0+0]=Ze(c[f+0-32],b,C),c[f+1+0]=c[f+0+32]=Ze(b,C,M),c[f+2+0]=c[f+1+32]=c[f+0+64]=Ze(C,M,F),c[f+3+0]=c[f+2+32]=c[f+1+64]=c[f+0+96]=Ze(M,F,O),c[f+3+32]=c[f+2+64]=c[f+1+96]=Ze(F,O,U),c[f+3+64]=c[f+2+96]=Ze(O,U,V),c[f+3+96]=Ze(U,V,V)}function tl(c,f){var b=c[f-1+0],C=c[f-1+32],M=c[f-1+64],F=c[f-1-32],O=c[f+0-32],U=c[f+1-32],V=c[f+2-32],Y=c[f+3-32];c[f+0+0]=c[f+1+64]=F+O+1>>1,c[f+1+0]=c[f+2+64]=O+U+1>>1,c[f+2+0]=c[f+3+64]=U+V+1>>1,c[f+3+0]=V+Y+1>>1,c[f+0+96]=Ze(M,C,b),c[f+0+64]=Ze(C,b,F),c[f+0+32]=c[f+1+96]=Ze(b,F,O),c[f+1+32]=c[f+2+96]=Ze(F,O,U),c[f+2+32]=c[f+3+96]=Ze(O,U,V),c[f+3+32]=Ze(U,V,Y)}function jc(c,f){var b=c[f+0-32],C=c[f+1-32],M=c[f+2-32],F=c[f+3-32],O=c[f+4-32],U=c[f+5-32],V=c[f+6-32],Y=c[f+7-32];c[f+0+0]=b+C+1>>1,c[f+1+0]=c[f+0+64]=C+M+1>>1,c[f+2+0]=c[f+1+64]=M+F+1>>1,c[f+3+0]=c[f+2+64]=F+O+1>>1,c[f+0+32]=Ze(b,C,M),c[f+1+32]=c[f+0+96]=Ze(C,M,F),c[f+2+32]=c[f+1+96]=Ze(M,F,O),c[f+3+32]=c[f+2+96]=Ze(F,O,U),c[f+3+64]=Ze(O,U,V),c[f+3+96]=Ze(U,V,Y)}function M0(c,f){var b=c[f-1+0],C=c[f-1+32],M=c[f-1+64],F=c[f-1+96];c[f+0+0]=b+C+1>>1,c[f+2+0]=c[f+0+32]=C+M+1>>1,c[f+2+32]=c[f+0+64]=M+F+1>>1,c[f+1+0]=Ze(b,C,M),c[f+3+0]=c[f+1+32]=Ze(C,M,F),c[f+3+32]=c[f+1+64]=Ze(M,F,F),c[f+3+64]=c[f+2+64]=c[f+0+96]=c[f+1+96]=c[f+2+96]=c[f+3+96]=F}function I0(c,f){var b=c[f-1+0],C=c[f-1+32],M=c[f-1+64],F=c[f-1+96],O=c[f-1-32],U=c[f+0-32],V=c[f+1-32],Y=c[f+2-32];c[f+0+0]=c[f+2+32]=b+O+1>>1,c[f+0+32]=c[f+2+64]=C+b+1>>1,c[f+0+64]=c[f+2+96]=M+C+1>>1,c[f+0+96]=F+M+1>>1,c[f+3+0]=Ze(U,V,Y),c[f+2+0]=Ze(O,U,V),c[f+1+0]=c[f+3+32]=Ze(b,O,U),c[f+1+32]=c[f+3+64]=Ze(C,b,O),c[f+1+64]=c[f+3+96]=Ze(M,C,b),c[f+1+96]=Ze(F,M,C)}function F0(c,f){var b;for(b=0;8>b;++b)r(c,f+32*b,c,f-32,8)}function Mc(c,f){var b;for(b=0;8>b;++b)i(c,f,c[f-1],8),f+=32}function Zs(c,f,b){var C;for(C=0;8>C;++C)i(f,b+32*C,c,8)}function Ho(c,f){var b,C=8;for(b=0;8>b;++b)C+=c[f+b-32]+c[f-1+32*b];Zs(C>>4,c,f)}function O0(c,f){var b,C=4;for(b=0;8>b;++b)C+=c[f+b-32];Zs(C>>3,c,f)}function ea(c,f){var b,C=4;for(b=0;8>b;++b)C+=c[f-1+32*b];Zs(C>>3,c,f)}function Ic(c,f){Zs(128,c,f)}function nl(c,f,b){var C=c[f-b],M=c[f+0],F=3*(M-C)+G0[1020+c[f-2*b]-c[f+b]],O=Xh[112+(F+4>>3)];c[f-b]=Fr[255+C+Xh[112+(F+3>>3)]],c[f+0]=Fr[255+M-O]}function Rh(c,f,b,C){var M=c[f+0],F=c[f+b];return $r[255+c[f-2*b]-c[f-b]]>C||$r[255+F-M]>C}function Bh(c,f,b,C){return 4*$r[255+c[f-b]-c[f+0]]+$r[255+c[f-2*b]-c[f+b]]<=C}function Dh(c,f,b,C,M){var F=c[f-3*b],O=c[f-2*b],U=c[f-b],V=c[f+0],Y=c[f+b],ae=c[f+2*b],pe=c[f+3*b];return 4*$r[255+U-V]+$r[255+O-Y]>C?0:$r[255+c[f-4*b]-F]<=M&&$r[255+F-O]<=M&&$r[255+O-U]<=M&&$r[255+pe-ae]<=M&&$r[255+ae-Y]<=M&&$r[255+Y-V]<=M}function Uh(c,f,b,C){var M=2*C+1;for(C=0;16>C;++C)Bh(c,f+C,b,M)&&nl(c,f+C,b)}function Vi(c,f,b,C){var M=2*C+1;for(C=0;16>C;++C)Bh(c,f+C*b,1,M)&&nl(c,f+C*b,1)}function go(c,f,b,C){var M;for(M=3;0<M;--M)Uh(c,f+=4*b,b,C)}function R0(c,f,b,C){var M;for(M=3;0<M;--M)Vi(c,f+=4,b,C)}function Yo(c,f,b,C,M,F,O,U){for(F=2*F+1;0<M--;){if(Dh(c,f,b,F,O))if(Rh(c,f,b,U))nl(c,f,b);else{var V=c,Y=f,ae=b,pe=V[Y-2*ae],ge=V[Y-ae],he=V[Y+0],Se=V[Y+ae],ve=V[Y+2*ae],le=27*(be=G0[1020+3*(he-ge)+G0[1020+pe-Se]])+63>>7,ue=18*be+63>>7,be=9*be+63>>7;V[Y-3*ae]=Fr[255+V[Y-3*ae]+be],V[Y-2*ae]=Fr[255+pe+ue],V[Y-ae]=Fr[255+ge+le],V[Y+0]=Fr[255+he-le],V[Y+ae]=Fr[255+Se-ue],V[Y+2*ae]=Fr[255+ve-be]}f+=C}}function gi(c,f,b,C,M,F,O,U){for(F=2*F+1;0<M--;){if(Dh(c,f,b,F,O))if(Rh(c,f,b,U))nl(c,f,b);else{var V=c,Y=f,ae=b,pe=V[Y-ae],ge=V[Y+0],he=V[Y+ae],Se=Xh[112+((ve=3*(ge-pe))+4>>3)],ve=Xh[112+(ve+3>>3)],le=Se+1>>1;V[Y-2*ae]=Fr[255+V[Y-2*ae]+le],V[Y-ae]=Fr[255+pe+ve],V[Y+0]=Fr[255+ge-Se],V[Y+ae]=Fr[255+he-le]}f+=C}}function Fc(c,f,b,C,M,F){Yo(c,f,b,1,16,C,M,F)}function ta(c,f,b,C,M,F){Yo(c,f,1,b,16,C,M,F)}function B0(c,f,b,C,M,F){var O;for(O=3;0<O;--O)gi(c,f+=4*b,b,1,16,C,M,F)}function rl(c,f,b,C,M,F){var O;for(O=3;0<O;--O)gi(c,f+=4,1,b,16,C,M,F)}function D0(c,f,b,C,M,F,O,U){Yo(c,f,M,1,8,F,O,U),Yo(b,C,M,1,8,F,O,U)}function Oc(c,f,b,C,M,F,O,U){Yo(c,f,1,M,8,F,O,U),Yo(b,C,1,M,8,F,O,U)}function Rc(c,f,b,C,M,F,O,U){gi(c,f+4*M,M,1,8,F,O,U),gi(b,C+4*M,M,1,8,F,O,U)}function zh(c,f,b,C,M,F,O,U){gi(c,f+4,1,M,8,F,O,U),gi(b,C+4,1,M,8,F,O,U)}function il(){this.ba=new ci,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new nn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Bc(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Dc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Gh(){this.ua=0,this.Wa=new J,this.vb=new J,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new B,this.yc=new E}function U0(){this.xb=this.a=0,this.l=new Qa,this.ca=new ci,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new j,this.Pb=0,this.wd=new j,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Gh,this.ab=0,this.gc=s(4,Dc),this.Oc=0}function ol(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Qa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function na(c,f,b,C,M,F,O){for(c=c==null?0:c[f+0],f=0;f<O;++f)M[F+f]=c+b[C+f]&255,c=M[F+f]}function Uc(c,f,b,C,M,F,O){var U;if(c==null)na(null,null,b,C,M,F,O);else for(U=0;U<O;++U)M[F+U]=c[f+U]+b[C+U]&255}function Ko(c,f,b,C,M,F,O){if(c==null)na(null,null,b,C,M,F,O);else{var U,V=c[f+0],Y=V,ae=V;for(U=0;U<O;++U)Y=ae+(V=c[f+U])-Y,ae=b[C+U]+(-256&Y?0>Y?0:255:Y)&255,Y=V,M[F+U]=ae}}function zc(c,f,b,C){var M=f.width,F=f.o;if(e(c!=null&&f!=null),0>b||0>=C||b+C>F)return null;if(!c.Cc){if(c.ga==null){var O;if(c.ga=new ol,(O=c.ga==null)||(O=f.width*f.o,e(c.Gb.length==0),c.Gb=o(O),c.Uc=0,c.Gb==null?O=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,O=1),O=!O),!O){O=c.ga;var U=c.Fa,V=c.P,Y=c.qc,ae=c.mb,pe=c.nb,ge=V+1,he=Y-1,Se=O.l;if(e(U!=null&&ae!=null&&f!=null),es[0]=null,es[1]=na,es[2]=Uc,es[3]=Ko,O.ca=ae,O.tb=pe,O.c=f.width,O.i=f.height,e(0<O.c&&0<O.i),1>=Y)f=0;else if(O.$a=U[V+0]>>0&3,O.Z=U[V+0]>>2&3,O.Lc=U[V+0]>>4&3,V=U[V+0]>>6&3,0>O.$a||1<O.$a||4<=O.Z||1<O.Lc||V)f=0;else if(Se.put=Bi,Se.ac=zn,Se.bc=Di,Se.ma=O,Se.width=f.width,Se.height=f.height,Se.Da=f.Da,Se.v=f.v,Se.va=f.va,Se.j=f.j,Se.o=f.o,O.$a)e:{e(O.$a==1),f=Wr();t:for(;;){if(f==null){f=0;break e}if(e(O!=null),O.mc=f,f.c=O.c,f.i=O.i,f.l=O.l,f.l.ma=O,f.l.width=O.c,f.l.height=O.i,f.a=0,K(f.m,U,ge,he),!Gi(O.c,O.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&fo(f.s)?(O.ic=1,U=f.c*f.i,f.Ta=null,f.Ua=0,f.V=o(U),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(O.ic=0,f=Js(f,O.c)),!f))break t;f=1;break e}O.mc=null,f=0}else f=he>=O.c*O.i;O=!f}if(O)return null;c.ga.Lc!=1?c.Ga=0:C=F-b}e(c.ga!=null),e(b+C<=F);e:{if(f=(U=c.ga).c,F=U.l.o,U.$a==0){if(ge=c.rc,he=c.Vc,Se=c.Fa,V=c.P+1+b*f,Y=c.mb,ae=c.nb+b*f,e(V<=c.P+c.qc),U.Z!=0)for(e(es[U.Z]!=null),O=0;O<C;++O)es[U.Z](ge,he,Se,V,Y,ae,f),ge=Y,he=ae,ae+=f,V+=f;else for(O=0;O<C;++O)r(Y,ae,Se,V,f),ge=Y,he=ae,ae+=f,V+=f;c.rc=ge,c.Vc=he}else{if(e(U.mc!=null),f=b+C,e((O=U.mc)!=null),e(f<=O.i),O.C>=f)f=1;else if(U.ic||fe(),U.ic){U=O.V,ge=O.Ba,he=O.c;var ve=O.i,le=(Se=1,V=O.$/he,Y=O.$%he,ae=O.m,pe=O.s,O.$),ue=he*ve,be=he*f,Ae=pe.wc,_e=le<be?bn(pe,Y,V):null;e(le<=ue),e(f<=ve),e(fo(pe));t:for(;;){for(;!ae.h&&le<be;){if(Y&Ae||(_e=bn(pe,Y,V)),e(_e!=null),ie(ae),256>(ve=br(_e.G[0],_e.H[0],ae)))U[ge+le]=ve,++le,++Y>=he&&(Y=0,++V<=f&&!(V%16)&&di(O,V));else{if(!(280>ve)){Se=0;break t}ve=ui(ve-256,ae);var Re,Te=br(_e.G[4],_e.H[4],ae);if(ie(ae),!(le>=(Te=Ui(he,Te=ui(Te,ae)))&&ue-le>=ve)){Se=0;break t}for(Re=0;Re<ve;++Re)U[ge+le+Re]=U[ge+le+Re-Te];for(le+=ve,Y+=ve;Y>=he;)Y-=he,++V<=f&&!(V%16)&&di(O,V);le<be&&Y&Ae&&(_e=bn(pe,Y,V))}e(ae.h==H(ae))}di(O,V>f?f:V);break t}!Se||ae.h&&le<ue?(Se=0,O.a=ae.h?5:3):O.$=le,f=Se}else f=fi(O,O.V,O.Ba,O.c,O.i,f,Ha);if(!f){C=0;break e}}b+C>=F&&(c.Cc=1),C=1}if(!C)return null;if(c.Cc&&((C=c.ga)!=null&&(C.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+b*M}function m(c,f,b,C,M,F){for(;0<M--;){var O,U=c,V=f+(b?1:0),Y=c,ae=f+(b?0:3);for(O=0;O<C;++O){var pe=Y[ae+4*O];pe!=255&&(pe*=32897,U[V+4*O+0]=U[V+4*O+0]*pe>>23,U[V+4*O+1]=U[V+4*O+1]*pe>>23,U[V+4*O+2]=U[V+4*O+2]*pe>>23)}f+=F}}function I(c,f,b,C,M){for(;0<C--;){var F;for(F=0;F<b;++F){var O=c[f+2*F+0],U=15&(Y=c[f+2*F+1]),V=4369*U,Y=(240&Y|Y>>4)*V>>16;c[f+2*F+0]=(240&O|O>>4)*V>>16&240|(15&O|O<<4)*V>>16>>4&15,c[f+2*F+1]=240&Y|U}f+=M}}function $(c,f,b,C,M,F,O,U){var V,Y,ae=255;for(Y=0;Y<M;++Y){for(V=0;V<C;++V){var pe=c[f+V];F[O+4*V]=pe,ae&=pe}f+=b,O+=U}return ae!=255}function oe(c,f,b,C,M){var F;for(F=0;F<M;++F)b[C+F]=c[f+F]>>8}function fe(){Xr=m,Rt=I,Bt=$,dn=oe}function ye(c,f,b){k[c]=function(C,M,F,O,U,V,Y,ae,pe,ge,he,Se,ve,le,ue,be,Ae){var _e,Re=Ae-1>>1,Te=U[V+0]|Y[ae+0]<<16,We=pe[ge+0]|he[Se+0]<<16;e(C!=null);var je=3*Te+We+131074>>2;for(f(C[M+0],255&je,je>>16,ve,le),F!=null&&(je=3*We+Te+131074>>2,f(F[O+0],255&je,je>>16,ue,be)),_e=1;_e<=Re;++_e){var _t=U[V+_e]|Y[ae+_e]<<16,Nt=pe[ge+_e]|he[Se+_e]<<16,mt=Te+_t+We+Nt+524296,ht=mt+2*(_t+We)>>3;je=ht+Te>>1,Te=(mt=mt+2*(Te+Nt)>>3)+_t>>1,f(C[M+2*_e-1],255&je,je>>16,ve,le+(2*_e-1)*b),f(C[M+2*_e-0],255&Te,Te>>16,ve,le+(2*_e-0)*b),F!=null&&(je=mt+We>>1,Te=ht+Nt>>1,f(F[O+2*_e-1],255&je,je>>16,ue,be+(2*_e-1)*b),f(F[O+2*_e+0],255&Te,Te>>16,ue,be+(2*_e+0)*b)),Te=_t,We=Nt}1&Ae||(je=3*Te+We+131074>>2,f(C[M+Ae-1],255&je,je>>16,ve,le+(Ae-1)*b),F!=null&&(je=3*We+Te+131074>>2,f(F[O+Ae-1],255&je,je>>16,ue,be+(Ae-1)*b)))}}function Ne(){Qr[$h]=y7,Qr[Qh]=fm,Qr[lm]=w7,Qr[Jh]=pm,Qr[Zh]=gm,Qr[q0]=mm,Qr[cm]=b7,Qr[V0]=fm,Qr[W0]=pm,Qr[ed]=gm,Qr[H0]=mm}function Oe(c){return c&~_7?0>c?0:255:c>>vm}function qe(c,f){return Oe((19077*c>>8)+(26149*f>>8)-14234)}function it(c,f,b){return Oe((19077*c>>8)-(6419*f>>8)-(13320*b>>8)+8708)}function nt(c,f){return Oe((19077*c>>8)+(33050*f>>8)-17685)}function pt(c,f,b,C,M){C[M+0]=qe(c,b),C[M+1]=it(c,f,b),C[M+2]=nt(c,f)}function Kt(c,f,b,C,M){C[M+0]=nt(c,f),C[M+1]=it(c,f,b),C[M+2]=qe(c,b)}function rn(c,f,b,C,M){var F=it(c,f,b);f=F<<3&224|nt(c,f)>>3,C[M+0]=248&qe(c,b)|F>>5,C[M+1]=f}function _n(c,f,b,C,M){var F=240&nt(c,f)|15;C[M+0]=240&qe(c,b)|it(c,f,b)>>4,C[M+1]=F}function Xn(c,f,b,C,M){C[M+0]=255,pt(c,f,b,C,M+1)}function In(c,f,b,C,M){Kt(c,f,b,C,M),C[M+3]=255}function mi(c,f,b,C,M){pt(c,f,b,C,M),C[M+3]=255}function Ir(c,f){return 0>c?0:c>f?f:c}function Wi(c,f,b){k[c]=function(C,M,F,O,U,V,Y,ae,pe){for(var ge=ae+(-2&pe)*b;ae!=ge;)f(C[M+0],F[O+0],U[V+0],Y,ae),f(C[M+1],F[O+0],U[V+0],Y,ae+b),M+=2,++O,++V,ae+=2*b;1&pe&&f(C[M+0],F[O+0],U[V+0],Y,ae)}}function qh(c,f,b){return b==0?c==0?f==0?6:5:f==0?4:0:b}function Gc(c,f,b,C,M){switch(c>>>30){case 3:yo(f,b,C,M,0);break;case 2:hn(f,b,C,M);break;case 1:ur(f,b,C,M)}}function qc(c,f){var b,C,M=f.M,F=f.Nb,O=c.oc,U=c.pc+40,V=c.oc,Y=c.pc+584,ae=c.oc,pe=c.pc+600;for(b=0;16>b;++b)O[U+32*b-1]=129;for(b=0;8>b;++b)V[Y+32*b-1]=129,ae[pe+32*b-1]=129;for(0<M?O[U-1-32]=V[Y-1-32]=ae[pe-1-32]=129:(i(O,U-32-1,127,21),i(V,Y-32-1,127,9),i(ae,pe-32-1,127,9)),C=0;C<c.za;++C){var ge=f.ya[f.aa+C];if(0<C){for(b=-1;16>b;++b)r(O,U+32*b-4,O,U+32*b+12,4);for(b=-1;8>b;++b)r(V,Y+32*b-4,V,Y+32*b+4,4),r(ae,pe+32*b-4,ae,pe+32*b+4,4)}var he=c.Gd,Se=c.Hd+C,ve=ge.ad,le=ge.Hc;if(0<M&&(r(O,U-32,he[Se].y,0,16),r(V,Y-32,he[Se].f,0,8),r(ae,pe-32,he[Se].ea,0,8)),ge.Za){var ue=O,be=U-32+16;for(0<M&&(C>=c.za-1?i(ue,be,he[Se].y[15],4):r(ue,be,he[Se+1].y,0,4)),b=0;4>b;b++)ue[be+128+b]=ue[be+256+b]=ue[be+384+b]=ue[be+0+b];for(b=0;16>b;++b,le<<=2)ue=O,be=U+wm[b],vi[ge.Ob[b]](ue,be),Gc(le,ve,16*+b,ue,be)}else if(ue=qh(C,M,ge.Ob[0]),Zo[ue](O,U),le!=0)for(b=0;16>b;++b,le<<=2)Gc(le,ve,16*+b,O,U+wm[b]);for(b=ge.Gc,ue=qh(C,M,ge.Dd),bo[ue](V,Y),bo[ue](ae,pe),le=ve,ue=V,be=Y,255&(ge=b>>0)&&(170&ge?Kc(le,256,ue,be):Yr(le,256,ue,be)),ge=ae,le=pe,255&(b>>=8)&&(170&b?Kc(ve,320,ge,le):Yr(ve,320,ge,le)),M<c.Ub-1&&(r(he[Se].y,0,O,U+480,16),r(he[Se].f,0,V,Y+224,8),r(he[Se].ea,0,ae,pe+224,8)),b=8*F*c.B,he=c.sa,Se=c.ta+16*C+16*F*c.R,ve=c.qa,ge=c.ra+8*C+b,le=c.Ha,ue=c.Ia+8*C+b,b=0;16>b;++b)r(he,Se+b*c.R,O,U+32*b,16);for(b=0;8>b;++b)r(ve,ge+b*c.B,V,Y+32*b,8),r(le,ue+b*c.B,ae,pe+32*b,8)}}function sl(c,f,b,C,M,F,O,U,V){var Y=[0],ae=[0],pe=0,ge=V!=null?V.kd:0,he=V??new Bc;if(c==null||12>b)return 7;he.data=c,he.w=f,he.ha=b,f=[f],b=[b],he.gb=[he.gb];e:{var Se=f,ve=b,le=he.gb;if(e(c!=null),e(ve!=null),e(le!=null),le[0]=0,12<=ve[0]&&!n(c,Se[0],"RIFF")){if(n(c,Se[0]+8,"WEBP")){le=3;break e}var ue=ke(c,Se[0]+4);if(12>ue||4294967286<ue){le=3;break e}if(ge&&ue>ve[0]-8){le=7;break e}le[0]=ue,Se[0]+=12,ve[0]-=12}le=0}if(le!=0)return le;for(ue=0<he.gb[0],b=b[0];;){e:{var be=c;ve=f,le=b;var Ae=Y,_e=ae,Re=Se=[0];if((je=pe=[pe])[0]=0,8>le[0])le=7;else{if(!n(be,ve[0],"VP8X")){if(ke(be,ve[0]+4)!=10){le=3;break e}if(18>le[0]){le=7;break e}var Te=ke(be,ve[0]+8),We=1+Ce(be,ve[0]+12);if(2147483648<=We*(be=1+Ce(be,ve[0]+15))){le=3;break e}Re!=null&&(Re[0]=Te),Ae!=null&&(Ae[0]=We),_e!=null&&(_e[0]=be),ve[0]+=18,le[0]-=18,je[0]=1}le=0}}if(pe=pe[0],Se=Se[0],le!=0)return le;if(ve=!!(2&Se),!ue&&pe)return 3;if(F!=null&&(F[0]=!!(16&Se)),O!=null&&(O[0]=ve),U!=null&&(U[0]=0),O=Y[0],Se=ae[0],pe&&ve&&V==null){le=0;break}if(4>b){le=7;break}if(ue&&pe||!ue&&!pe&&!n(c,f[0],"ALPH")){b=[b],he.na=[he.na],he.P=[he.P],he.Sa=[he.Sa];e:{Te=c,le=f,ue=b;var je=he.gb;Ae=he.na,_e=he.P,Re=he.Sa,We=22,e(Te!=null),e(ue!=null),be=le[0];var _t=ue[0];for(e(Ae!=null),e(Re!=null),Ae[0]=null,_e[0]=null,Re[0]=0;;){if(le[0]=be,ue[0]=_t,8>_t){le=7;break e}var Nt=ke(Te,be+4);if(4294967286<Nt){le=3;break e}var mt=8+Nt+1&-2;if(We+=mt,0<je&&We>je){le=3;break e}if(!n(Te,be,"VP8 ")||!n(Te,be,"VP8L")){le=0;break e}if(_t[0]<mt){le=7;break e}n(Te,be,"ALPH")||(Ae[0]=Te,_e[0]=be+8,Re[0]=Nt),be+=mt,_t-=mt}}if(b=b[0],he.na=he.na[0],he.P=he.P[0],he.Sa=he.Sa[0],le!=0)break}b=[b],he.Ja=[he.Ja],he.xa=[he.xa];e:if(je=c,le=f,ue=b,Ae=he.gb[0],_e=he.Ja,Re=he.xa,Te=le[0],be=!n(je,Te,"VP8 "),We=!n(je,Te,"VP8L"),e(je!=null),e(ue!=null),e(_e!=null),e(Re!=null),8>ue[0])le=7;else{if(be||We){if(je=ke(je,Te+4),12<=Ae&&je>Ae-12){le=3;break e}if(ge&&je>ue[0]-8){le=7;break e}_e[0]=je,le[0]+=8,ue[0]-=8,Re[0]=We}else Re[0]=5<=ue[0]&&je[Te+0]==47&&!(je[Te+4]>>5),_e[0]=ue[0];le=0}if(b=b[0],he.Ja=he.Ja[0],he.xa=he.xa[0],f=f[0],le!=0)break;if(4294967286<he.Ja)return 3;if(U==null||ve||(U[0]=he.xa?2:1),O=[O],Se=[Se],he.xa){if(5>b){le=7;break}U=O,ge=Se,ve=F,c==null||5>b?c=0:5<=b&&c[f+0]==47&&!(c[f+4]>>5)?(ue=[0],je=[0],Ae=[0],K(_e=new j,c,f,b),He(_e,ue,je,Ae)?(U!=null&&(U[0]=ue[0]),ge!=null&&(ge[0]=je[0]),ve!=null&&(ve[0]=Ae[0]),c=1):c=0):c=0}else{if(10>b){le=7;break}U=Se,c==null||10>b||!Ph(c,f+3,b-3)?c=0:(ge=c[f+0]|c[f+1]<<8|c[f+2]<<16,ve=16383&(c[f+7]<<8|c[f+6]),c=16383&(c[f+9]<<8|c[f+8]),1&ge||3<(ge>>1&7)||!(ge>>4&1)||ge>>5>=he.Ja||!ve||!c?c=0:(O&&(O[0]=ve),U&&(U[0]=c),c=1))}if(!c||(O=O[0],Se=Se[0],pe&&(Y[0]!=O||ae[0]!=Se)))return 3;V!=null&&(V[0]=he,V.offset=f-V.w,e(4294967286>f-V.w),e(V.offset==V.ha-b));break}return le==0||le==7&&pe&&V==null?(F!=null&&(F[0]|=he.na!=null&&0<he.na.length),C!=null&&(C[0]=O),M!=null&&(M[0]=Se),0):le}function Vc(c,f,b){var C=f.width,M=f.height,F=0,O=0,U=C,V=M;if(f.Da=c!=null&&0<c.Da,f.Da&&(U=c.cd,V=c.bd,F=c.v,O=c.j,11>b||(F&=-2,O&=-2),0>F||0>O||0>=U||0>=V||F+U>C||O+V>M))return 0;if(f.v=F,f.j=O,f.va=F+U,f.o=O+V,f.U=U,f.T=V,f.da=c!=null&&0<c.da,f.da){if(!Ve(U,V,b=[c.ib],F=[c.hb]))return 0;f.ib=b[0],f.hb=F[0]}return f.ob=c!=null&&c.ob,f.Kb=c==null||!c.Sd,f.da&&(f.ob=f.ib<3*C/4&&f.hb<3*M/4,f.Kb=0),1}function Wc(c){if(c==null)return 2;if(11>c.S){var f=c.f.RGBA;f.fb+=(c.height-1)*f.A,f.A=-f.A}else f=c.f.kb,c=c.height,f.O+=(c-1)*f.fa,f.fa=-f.fa,f.N+=(c-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(c-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(c-1)*f.lb,f.lb=-f.lb);return 0}function al(c,f,b,C){if(C==null||0>=c||0>=f)return 2;if(b!=null){if(b.Da){var M=b.cd,F=b.bd,O=-2&b.v,U=-2&b.j;if(0>O||0>U||0>=M||0>=F||O+M>c||U+F>f)return 2;c=M,f=F}if(b.da){if(!Ve(c,f,M=[b.ib],F=[b.hb]))return 2;c=M[0],f=F[0]}}C.width=c,C.height=f;e:{var V=C.width,Y=C.height;if(c=C.S,0>=V||0>=Y||!(c>=$h&&13>c))c=2;else{if(0>=C.Rd&&C.sd==null){O=F=M=f=0;var ae=(U=V*bm[c])*Y;if(11>c||(F=(Y+1)/2*(f=(V+1)/2),c==12&&(O=(M=V)*Y)),(Y=o(ae+2*F+O))==null){c=1;break e}C.sd=Y,11>c?((V=C.f.RGBA).eb=Y,V.fb=0,V.A=U,V.size=ae):((V=C.f.kb).y=Y,V.O=0,V.fa=U,V.Fd=ae,V.f=Y,V.N=0+ae,V.Ab=f,V.Cd=F,V.ea=Y,V.W=0+ae+F,V.Db=f,V.Ed=F,c==12&&(V.F=Y,V.J=0+ae+2*F),V.Tc=O,V.lb=M)}if(f=1,M=C.S,F=C.width,O=C.height,M>=$h&&13>M)if(11>M)c=C.f.RGBA,f&=(U=Math.abs(c.A))*(O-1)+F<=c.size,f&=U>=F*bm[M],f&=c.eb!=null;else{c=C.f.kb,U=(F+1)/2,ae=(O+1)/2,V=Math.abs(c.fa),Y=Math.abs(c.Ab);var pe=Math.abs(c.Db),ge=Math.abs(c.lb),he=ge*(O-1)+F;f&=V*(O-1)+F<=c.Fd,f&=Y*(ae-1)+U<=c.Cd,f=(f&=pe*(ae-1)+U<=c.Ed)&V>=F&Y>=U&pe>=U,f&=c.y!=null,f&=c.f!=null,f&=c.ea!=null,M==12&&(f&=ge>=F,f&=he<=c.Tc,f&=c.F!=null)}else f=0;c=f?0:2}}return c!=0||b!=null&&b.fd&&(c=Wc(C)),c}var Gn=64,ll=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],cl=24,ul=32,Hc=8,Sr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ee("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(c){return c},k.Predictor2=function(c,f,b){return f[b+0]},k.Predictor3=function(c,f,b){return f[b+1]},k.Predictor4=function(c,f,b){return f[b-1]},k.Predictor5=function(c,f,b){return Me(Me(c,f[b+1]),f[b+0])},k.Predictor6=function(c,f,b){return Me(c,f[b-1])},k.Predictor7=function(c,f,b){return Me(c,f[b+0])},k.Predictor8=function(c,f,b){return Me(f[b-1],f[b+0])},k.Predictor9=function(c,f,b){return Me(f[b+0],f[b+1])},k.Predictor10=function(c,f,b){return Me(Me(c,f[b-1]),Me(f[b+0],f[b+1]))},k.Predictor11=function(c,f,b){var C=f[b+0];return 0>=st(C>>24&255,c>>24&255,(f=f[b-1])>>24&255)+st(C>>16&255,c>>16&255,f>>16&255)+st(C>>8&255,c>>8&255,f>>8&255)+st(255&C,255&c,255&f)?C:c},k.Predictor12=function(c,f,b){var C=f[b+0];return(Ge((c>>24&255)+(C>>24&255)-((f=f[b-1])>>24&255))<<24|Ge((c>>16&255)+(C>>16&255)-(f>>16&255))<<16|Ge((c>>8&255)+(C>>8&255)-(f>>8&255))<<8|Ge((255&c)+(255&C)-(255&f)))>>>0},k.Predictor13=function(c,f,b){var C=f[b-1];return(et((c=Me(c,f[b+0]))>>24&255,C>>24&255)<<24|et(c>>16&255,C>>16&255)<<16|et(c>>8&255,C>>8&255)<<8|et(c>>0&255,C>>0&255))>>>0};var z0=k.PredictorAdd0;k.PredictorAdd1=lt,Ee("Predictor2","PredictorAdd2"),Ee("Predictor3","PredictorAdd3"),Ee("Predictor4","PredictorAdd4"),Ee("Predictor5","PredictorAdd5"),Ee("Predictor6","PredictorAdd6"),Ee("Predictor7","PredictorAdd7"),Ee("Predictor8","PredictorAdd8"),Ee("Predictor9","PredictorAdd9"),Ee("Predictor10","PredictorAdd10"),Ee("Predictor11","PredictorAdd11"),Ee("Predictor12","PredictorAdd12"),Ee("Predictor13","PredictorAdd13");var Yc=k.PredictorAdd2;ct("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),ct("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var Vh,Hr=k.ColorIndexInverseTransform,hl=k.MapARGB,Wh=k.VP8LColorIndexInverseTransformAlpha,Hh=k.MapAlpha,Xo=k.VP8LPredictorsAdd=[];Xo.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var ra,xr,cr,$o,mo,vo,dl,yo,hn,Kc,ur,Yr,fl,Yh,Xc,ia,oa,Qo,sa,pl,aa,Jo,$c,Kr,Xr,Rt,Bt,dn,Pn=o(511),wo=o(2041),Qc=o(225),gl=o(767),Kh=0,G0=wo,Xh=Qc,Fr=gl,$r=Pn,$h=0,Qh=1,lm=2,Jh=3,Zh=4,q0=5,cm=6,V0=7,W0=8,ed=9,H0=10,i7=[2,3,7],o7=[3,3,11],um=[280,256,256,256,40],s7=[0,1,1,1,0],a7=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],l7=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],c7=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],u7=8,Y0=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],K0=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Jc=null,h7=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],d7=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],hm=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],f7=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],p7=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],g7=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],m7=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Zo=[],vi=[],bo=[],v7=1,dm=2,es=[],Qr=[];ye("UpsampleRgbLinePair",pt,3),ye("UpsampleBgrLinePair",Kt,3),ye("UpsampleRgbaLinePair",mi,4),ye("UpsampleBgraLinePair",In,4),ye("UpsampleArgbLinePair",Xn,4),ye("UpsampleRgba4444LinePair",_n,2),ye("UpsampleRgb565LinePair",rn,2);var y7=k.UpsampleRgbLinePair,w7=k.UpsampleBgrLinePair,fm=k.UpsampleRgbaLinePair,pm=k.UpsampleBgraLinePair,gm=k.UpsampleArgbLinePair,mm=k.UpsampleRgba4444LinePair,b7=k.UpsampleRgb565LinePair,td=16,nd=1<<td-1,Zc=-227,X0=482,vm=6,_7=(256<<vm)-1,ym=0,S7=o(256),x7=o(256),A7=o(256),N7=o(256),C7=o(X0-Zc),P7=o(X0-Zc);Wi("YuvToRgbRow",pt,3),Wi("YuvToBgrRow",Kt,3),Wi("YuvToRgbaRow",mi,4),Wi("YuvToBgraRow",In,4),Wi("YuvToArgbRow",Xn,4),Wi("YuvToRgba4444Row",_n,2),Wi("YuvToRgb565Row",rn,2);var wm=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],rd=[0,2,8],L7=[8,7,6,4,4,2,2,2,1,1,1,1],k7=1;this.WebPDecodeRGBA=function(c,f,b,C,M){var F=Qh,O=new il,U=new ci;O.ba=U,U.S=F,U.width=[U.width],U.height=[U.height];var V=U.width,Y=U.height,ae=new ho;if(ae==null||c==null)var pe=2;else e(ae!=null),pe=sl(c,f,b,ae.width,ae.height,ae.Pd,ae.Qd,ae.format,null);if(pe!=0?V=0:(V!=null&&(V[0]=ae.width[0]),Y!=null&&(Y[0]=ae.height[0]),V=1),V){U.width=U.width[0],U.height=U.height[0],C!=null&&(C[0]=U.width),M!=null&&(M[0]=U.height);e:{if(C=new Qa,(M=new Bc).data=c,M.w=f,M.ha=b,M.kd=1,f=[0],e(M!=null),((c=sl(M.data,M.w,M.ha,null,null,null,f,null,M))==0||c==7)&&f[0]&&(c=4),(f=c)==0){if(e(O!=null),C.data=M.data,C.w=M.w+M.offset,C.ha=M.ha-M.offset,C.put=Bi,C.ac=zn,C.bc=Di,C.ma=O,M.xa){if((c=Wr())==null){O=1;break e}if(function(ge,he){var Se=[0],ve=[0],le=[0];t:for(;;){if(ge==null)return 0;if(he==null)return ge.a=2,0;if(ge.l=he,ge.a=0,K(ge.m,he.data,he.w,he.ha),!He(ge.m,Se,ve,le)){ge.a=3;break t}if(ge.xb=dm,he.width=Se[0],he.height=ve[0],!Gi(Se[0],ve[0],1,ge,null))break t;return 1}return e(ge.a!=0),0}(c,C)){if(C=(f=al(C.width,C.height,O.Oa,O.ba))==0){t:{C=c;n:for(;;){if(C==null){C=0;break t}if(e(C.s.yc!=null),e(C.s.Ya!=null),e(0<C.s.Wb),e((b=C.l)!=null),e((M=b.ma)!=null),C.xb!=0){if(C.ca=M.ba,C.tb=M.tb,e(C.ca!=null),!Vc(M.Oa,b,Jh)){C.a=2;break n}if(!Js(C,b.width)||b.da)break n;if((b.da||xt(C.ca.S))&&fe(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&fe()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!ze(C.s.vb,C.s.Wa.Xa)){C.a=1;break n}C.xb=0}if(!fi(C,C.V,C.Ba,C.c,C.i,b.o,Wa))break n;M.Dc=C.Ma,C=1;break t}e(C.a!=0),C=0}C=!C}C&&(f=c.a)}else f=c.a}else{if((c=new S0)==null){O=1;break e}if(c.Fa=M.na,c.P=M.P,c.qc=M.Sa,Lh(c,C)){if((f=al(C.width,C.height,O.Oa,O.ba))==0){if(c.Aa=0,b=O.Oa,e((M=c)!=null),b!=null){if(0<(V=0>(V=b.Md)?0:100<V?255:255*V/100)){for(Y=ae=0;4>Y;++Y)12>(pe=M.pb[Y]).lc&&(pe.ia=V*L7[0>pe.lc?0:pe.lc]>>3),ae|=pe.ia;ae&&(alert("todo:VP8InitRandom"),M.ia=1)}M.Ga=b.Id,100<M.Ga?M.Ga=100:0>M.Ga&&(M.Ga=0)}x0(c,C)||(f=c.a)}}else f=c.a}f==0&&O.Oa!=null&&O.Oa.fd&&(f=Wc(O.ba))}O=f}F=O!=0?null:11>F?U.f.RGBA.eb:U.f.kb.y}else F=null;return F};var bm=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(k,z){for(var T="",P=0;P<4;P++)T+=String.fromCharCode(k[z++]);return T}function d(k,z){return(k[z+0]<<0|k[z+1]<<8|k[z+2]<<16)>>>0}function p(k,z){return(k[z+0]<<0|k[z+1]<<8|k[z+2]<<16|k[z+3]<<24)>>>0}new l;var g=[0],h=[0],w=[],_=new l,A=t,v=function(k,z){var T={},P=0,E=!1,W=0,B=0;if(T.frames=[],!function(G,H,ne,ie){for(var q=0;q<ie;q++)if(G[H+q]!=ne.charCodeAt(q))return!0;return!1}(k,z,"RIFF",4)){var Q,ee;for(p(k,z+=4),z+=8;z<k.length;){var se=u(k,z),K=p(k,z+=4);z+=4;var te=K+(1&K);switch(se){case"VP8 ":case"VP8L":T.frames[P]===void 0&&(T.frames[P]={}),(j=T.frames[P]).src_off=E?B:z-8,j.src_size=W+K+8,P++,E&&(E=!1,W=0,B=0);break;case"VP8X":(j=T.header={}).feature_flags=k[z];var X=z+4;j.canvas_width=1+d(k,X),X+=3,j.canvas_height=1+d(k,X),X+=3;break;case"ALPH":E=!0,W=te+8,B=z-8;break;case"ANIM":(j=T.header).bgcolor=p(k,z),X=z+4,j.loop_count=(Q=k)[(ee=X)+0]<<0|Q[ee+1]<<8,X+=2;break;case"ANMF":var de,j;(j=T.frames[P]={}).offset_x=2*d(k,z),z+=3,j.offset_y=2*d(k,z),z+=3,j.width=1+d(k,z),z+=3,j.height=1+d(k,z),z+=3,j.duration=d(k,z),z+=3,de=k[z++],j.dispose=1&de,j.blend=de>>1&1}se!="ANMF"&&(z+=te)}return T}}(A,0);v.response=A,v.rgbaoutput=!0,v.dataurl=!1;var S=v.header?v.header:null,y=v.frames?v.frames:null;if(S){S.loop_counter=S.loop_count,g=[S.canvas_height],h=[S.canvas_width];for(var N=0;N<y.length&&y[N].blend!=0;N++);}var L=y[0],R=_.WebPDecodeRGBA(A,L.src_off,L.src_size,h,g);L.rgba=R,L.imgwidth=h[0],L.imgheight=g[0];for(var D=0;D<h[0]*g[0]*4;D++)w[D]=R[D];return this.width=h,this.height=g,this.data=w,this}(function(t){var e=function(){return typeof P5=="function"},n=function(g,h,w,_){var A=4,v=s;switch(_){case t.image_compression.FAST:A=1,v=o;break;case t.image_compression.MEDIUM:A=6,v=a;break;case t.image_compression.SLOW:A=9,v=l}g=r(g,h,w,v);var S=P5(g,{level:A});return t.__addimage__.arrayBufferToBinaryString(S)},r=function(g,h,w,_){for(var A,v,S,y=g.length/h,N=new Uint8Array(g.length+y),L=d(),R=0;R<y;R+=1){if(S=R*h,A=g.subarray(S,S+h),_)N.set(_(A,w,v),S+R);else{for(var D,k=L.length,z=[];D<k;D+=1)z[D]=L[D](A,w,v);var T=p(z.concat());N.set(z[T],S+R)}v=A}return N},i=function(g){var h=Array.apply([],g);return h.unshift(0),h},o=function(g,h){var w,_=[],A=g.length;_[0]=1;for(var v=0;v<A;v+=1)w=g[v-h]||0,_[v+1]=g[v]-w+256&255;return _},s=function(g,h,w){var _,A=[],v=g.length;A[0]=2;for(var S=0;S<v;S+=1)_=w&&w[S]||0,A[S+1]=g[S]-_+256&255;return A},a=function(g,h,w){var _,A,v=[],S=g.length;v[0]=3;for(var y=0;y<S;y+=1)_=g[y-h]||0,A=w&&w[y]||0,v[y+1]=g[y]+256-(_+A>>>1)&255;return v},l=function(g,h,w){var _,A,v,S,y=[],N=g.length;y[0]=4;for(var L=0;L<N;L+=1)_=g[L-h]||0,A=w&&w[L]||0,v=w&&w[L-h]||0,S=u(_,A,v),y[L+1]=g[L]-S+256&255;return y},u=function(g,h,w){if(g===h&&h===w)return g;var _=Math.abs(h-w),A=Math.abs(g-w),v=Math.abs(g+h-w-w);return _<=A&&_<=v?g:A<=v?h:w},d=function(){return[i,o,s,a,l]},p=function(g){var h=g.map(function(w){return w.reduce(function(_,A){return _+Math.abs(A)},0)});return h.indexOf(Math.min.apply(null,h))};t.processPNG=function(g,h,w,_){var A,v,S,y,N,L,R,D,k,z,T,P,E,W,B,Q=this.decode.FLATE_DECODE,ee="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(S=new mI(g)).imgData,v=S.bits,A=S.colorSpace,N=S.colors,[4,6].indexOf(S.colorType)!==-1){if(S.bits===8){k=(D=S.pixelBitlength==32?new Uint32Array(S.decodePixels().buffer):S.pixelBitlength==16?new Uint16Array(S.decodePixels().buffer):new Uint8Array(S.decodePixels().buffer)).length,T=new Uint8Array(k*S.colors),z=new Uint8Array(k);var se,K=S.pixelBitlength-S.bits;for(W=0,B=0;W<k;W++){for(E=D[W],se=0;se<K;)T[B++]=E>>>se&255,se+=S.bits;z[W]=E>>>se&255}}if(S.bits===16){k=(D=new Uint32Array(S.decodePixels().buffer)).length,T=new Uint8Array(k*(32/S.pixelBitlength)*S.colors),z=new Uint8Array(k*(32/S.pixelBitlength)),P=S.colors>1,W=0,B=0;for(var te=0;W<k;)E=D[W++],T[B++]=E>>>0&255,P&&(T[B++]=E>>>16&255,E=D[W++],T[B++]=E>>>0&255),z[te++]=E>>>16&255;v=8}_!==t.image_compression.NONE&&e()?(g=n(T,S.width*S.colors,S.colors,_),R=n(z,S.width,1,_)):(g=T,R=z,Q=void 0)}if(S.colorType===3&&(A=this.color_spaces.INDEXED,L=S.palette,S.transparency.indexed)){var X=S.transparency.indexed,de=0;for(W=0,k=X.length;W<k;++W)de+=X[W];if((de/=255)===k-1&&X.indexOf(0)!==-1)y=[X.indexOf(0)];else if(de!==k){for(D=S.decodePixels(),z=new Uint8Array(D.length),W=0,k=D.length;W<k;W++)z[W]=X[D[W]];R=n(z,S.width,1)}}var j=function(G){var H;switch(G){case t.image_compression.FAST:H=11;break;case t.image_compression.MEDIUM:H=13;break;case t.image_compression.SLOW:H=14;break;default:H=12}return H}(_);return Q===this.decode.FLATE_DECODE&&(ee="/Predictor "+j+" "),ee+="/Colors "+N+" /BitsPerComponent "+v+" /Columns "+S.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(R&&this.__addimage__.isArrayBuffer(R)||this.__addimage__.isArrayBufferView(R))&&(R=this.__addimage__.arrayBufferToBinaryString(R)),{alias:w,data:g,index:h,filter:Q,decodeParameters:ee,transparency:y,palette:L,sMask:R,predictor:j,width:S.width,height:S.height,bitsPerComponent:v,colorSpace:A}}}})(Ye.API),function(t){t.processGIF89A=function(e,n,r,i){var o=new vI(e),s=o.width,a=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:s,height:a},d=new o2(100).encode(u,100);return t.processJPEG.call(this,d,n,r,i)},t.processGIF87A=t.processGIF89A}(Ye.API),xi.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},xi.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(n){It.log("bit decode error:"+n)}},xi.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[o>>7-a&1];this.data[s+4*a]=l.blue,this.data[s+4*a+1]=l.green,this.data[s+4*a+2]=l.red,this.data[s+4*a+3]=255}n!==0&&(this.pos+=4-n)}},xi.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=o>>4,l=15&o,u=this.palette[a];if(this.data[s]=u.blue,this.data[s+1]=u.green,this.data[s+2]=u.red,this.data[s+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[s+4]=u.blue,this.data[s+4+1]=u.green,this.data[s+4+2]=u.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},xi.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}t!==0&&(this.pos+=4-t)}},xi.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,a=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,u=o>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=a,this.data[d+2]=s,this.data[d+3]=u}this.pos+=t}},xi.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&e)/e*255|0,l=(s>>5&n)/n*255|0,u=(s>>11)/e*255|0,d=i*this.width*4+4*o;this.data[d]=u,this.data[d+1]=l,this.data[d+2]=a,this.data[d+3]=255}this.pos+=t}},xi.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},xi.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},xi.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var o=new xi(e,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},u=new o2(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Ye.API),O4.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var o=new O4(e),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},u=new o2(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Ye.API),Ye.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,l=0,u=0;u<i;u+=4){var d=r[u],p=r[u+1],g=r[u+2],h=r[u+3];o[a++]=d,o[a++]=p,o[a++]=g,s[l++]=h}var w=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ye.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ll=Ye.API,Vd=Ll.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),a=e.widths?e.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,p=e.doKerning!==!1,g=0,h=t.length,w=0,_=a[0]||l,A=[];for(n=0;n<h;n++)r=t.charCodeAt(n),typeof i.metadata.widthOfString=="function"?A.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(g=p&&Pt(u[r])==="object"&&!isNaN(parseInt(u[r][w],10))?u[r][w]/d:0,A.push((a[r]||_)/l+g)),w=r;return A},j4=Ll.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Ll.processArabic&&(t=Ll.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,n,i)/n:Vd.apply(this,arguments).reduce(function(o,s){return o+s},0)},M4=function(t,e,n,r){for(var i=[],o=0,s=t.length,a=0;o!==s&&a+e[o]<n;)a+=e[o],o++;i.push(t.slice(0,o));var l=o;for(a=0;o!==s;)a+e[o]>r&&(i.push(t.slice(l,o)),a=0,l=o),a+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},I4=function(t,e,n){n||(n={});var r,i,o,s,a,l,u,d=[],p=[d],g=n.textIndent||0,h=0,w=0,_=t.split(" "),A=Vd.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?_[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),S=[];_.map(function(N){(N=N.split(/\s*\n/)).length>1?S=S.concat(N.map(function(L,R){return(R&&L.length?`
+`:"")+L})):S.push(N[0])}),_=S,l=j4.apply(this,[v,n])}for(o=0,s=_.length;o<s;o++){var y=0;if(r=_[o],l&&r[0]==`
+`&&(r=r.substr(1),y=1),g+h+(w=(i=Vd.apply(this,[r,n])).reduce(function(N,L){return N+L},0))>e||y){if(w>e){for(a=M4.apply(this,[r,i,e-(g+h),e]),d.push(a.shift()),d=[a.pop()];a.length;)p.push([a.shift()]);w=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(N,L){return N+L},0)}else d=[r];p.push(d),g=w+l,h=A}else d.push(r),g+=h+w,h=A}return u=l?function(N,L){return(L?v:"")+N.join(" ")}:function(N){return N.join(" ")},p.map(u)},Ll.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var p=this.internal.getFont(d.fontName,d.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var a,l,u=[];for(a=0,l=r.length;a<l;a++)u=u.concat(I4.apply(this,[r[a],s,o]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},i=0;i<e.length;i++)n[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var o=function(p){return"0x"+parseInt(p,10).toString(16)},s=t.__fontmetrics__.compress=function(p){var g,h,w,_,A=["{"];for(var v in p){if(g=p[v],isNaN(parseInt(v,10))?h="'"+v+"'":(v=parseInt(v,10),h=(h=o(v).slice(2)).slice(0,-1)+r[h.slice(-1)]),typeof g=="number")g<0?(w=o(g).slice(3),_="-"):(w=o(g).slice(2),_=""),w=_+w.slice(0,-1)+r[w.slice(-1)];else{if(Pt(g)!=="object")throw new Error("Don't know what to do with value type "+Pt(g)+".");w=s(g)}A.push(h+w)}return A.push("}"),A.join("")},a=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,h,w,_,A={},v=1,S=A,y=[],N="",L="",R=p.length-1,D=1;D<R;D+=1)(_=p[D])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(_):_=="{"?(y.push([S,w]),S={},w=void 0):_=="}"?((h=y.pop())[0][h[1]]=S,w=void 0,S=h[0]):_=="-"?v=-1:w===void 0?n.hasOwnProperty(_)?(N+=n[_],w=parseInt(N,16)*v,v=1,N=""):N+=_:n.hasOwnProperty(_)?(L+=n[_],S[w]=parseInt(L,16)*v,v=1,w=void 0,L=""):L+=_;return A},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(p){var g=p.font,h=d.Unicode[g.postScriptName];h&&(g.metadata.Unicode={},g.metadata.Unicode.widths=h.widths,g.metadata.Unicode.kerning=h.kerning);var w=u.Unicode[g.postScriptName];w&&(g.metadata.Unicode.encoding=w,g.encoding=w.codePages[0])}])}(Ye.API),function(t){var e=function(n){for(var r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);return i};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=o.existsFileInVFS(i.postScriptName)===!1?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?e(a):e(Bu(a)),s.metadata=t.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])}(Ye),function(t){function e(){return(Ke.canvg?Promise.resolve(Ke.canvg):S5(()=>import("./index.es-CJ0bM9NF.js"),[])).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ye.API.addSvgAsImage=function(n,r,i,o,s,a,l,u){if(isNaN(r)||isNaN(i))throw It.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(s))throw It.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var d=document.createElement("canvas");d.width=o,d.height=s;var p=d.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,d.width,d.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return e().then(function(w){return w.fromString(p,n,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(g)}).then(function(){h.addImage(d.toDataURL("image/jpeg",1),r,i,o,s,l,u)})}}(),Ye.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},Ye.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],u=0,d=0,p=0;function g(w,_){var A,v=!1;for(A=0;A<w.length;A+=1)w[A]===_&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var h=a.length;for(p=0;p<h;p+=1)n[a[p]].value=n[a[p]].defaultValue,n[a[p]].explicitSet=!1}if(Pt(t)==="object"){for(i in t)if(o=t[i],g(a,i)&&o!==void 0){if(n[i].type==="boolean"&&typeof o=="boolean")n[i].value=o;else if(n[i].type==="name"&&g(n[i].valueSet,o))n[i].value=o;else if(n[i].type==="integer"&&Number.isInteger(o))n[i].value=o;else if(n[i].type==="array"){for(u=0;u<o.length;u+=1)if(r=!0,o[u].length===1&&typeof o[u][0]=="number")l.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!="number"&&(r=!1);r===!0&&l.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,_=[];for(w in n)n[w].explicitSet===!0&&(n[w].type==="name"?_.push("/"+w+" /"+n[w].value):_.push("/"+w+" "+n[w].value));_.length!==0&&this.internal.write(`/ViewerPreferences
+<<
+`+_.join(`
+`)+`
+>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),u=o.length+s.length+a.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(i+o+s+a+l),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Ye.API),function(t){var e=t.API,n=e.pdfEscape16=function(o,s){for(var a,l=s.metadata.Unicode.widths,u=["","0","00","000","0000"],d=[""],p=0,g=o.length;p<g;++p){if(a=s.metadata.characterToGlyph(o.charCodeAt(p)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=o.charCodeAt(p),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return d.join("");a=a.toString(16),d.push(u[4-a.length],a)}return d.join("")},r=function(o){var s,a,l,u,d,p,g;for(d=`/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+/CMapName /Adobe-Identity-UCS def
+/CMapType 2 def
+1 begincodespacerange
+<0000><ffff>
+endcodespacerange`,l=[],p=0,g=(a=Object.keys(o).sort(function(h,w){return h-w})).length;p<g;p++)s=a[p],l.length>=100&&(d+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar`,l=[]),o[s]!==void 0&&o[s]!==null&&typeof o[s].toString=="function"&&(u=("0000"+o[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),l.push("<"+s+"><"+u+">"));return l.length&&(d+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar
+`),d+=`endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end`};e.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,u=s.newObject,d=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="Identity-H"){for(var p=a.metadata.Unicode.widths,g=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),h="",w=0;w<g.length;w++)h+=String.fromCharCode(g[w]);var _=u();d({data:h,addLength1:!0,objectId:_}),l("endobj");var A=u();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:A}),l("endobj");var v=u();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Tl(a.fontName)),l("/FontFile2 "+_+" 0 R"),l("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var S=u();l("<<"),l("/Type /Font"),l("/BaseFont /"+Tl(a.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+t.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=u(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+A+" 0 R"),l("/BaseFont /"+Tl(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+S+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,u=s.newObject,d=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var p=a.metadata.rawData,g="",h=0;h<p.length;h++)g+=String.fromCharCode(p[h]);var w=u();d({data:g,addLength1:!0,objectId:w}),l("endobj");var _=u();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:_}),l("endobj");var A=u();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+w+" 0 R"),l("/Flags 96"),l("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+Tl(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=u();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+_+" 0 R/BaseFont/"+Tl(a.fontName)+"/FontDescriptor "+A+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]);var i=function(o){var s,a=o.text||"",l=o.x,u=o.y,d=o.options||{},p=o.mutex||{},g=p.pdfEscape,h=p.activeFontKey,w=p.fonts,_=h,A="",v=0,S="",y=w[_].encoding;if(w[_].encoding!=="Identity-H")return{text:a,x:l,y:u,options:d,mutex:p};for(S=a,_=h,Array.isArray(a)&&(S=a[0]),v=0;v<S.length;v+=1)w[_].metadata.hasOwnProperty("cmap")&&(s=w[_].metadata.cmap.unicode.codeMap[S[v].charCodeAt(0)]),s||S[v].charCodeAt(0)<256&&w[_].metadata.hasOwnProperty("Unicode")?A+=S[v]:A+="";var N="";return parseInt(_.slice(1))<14||y==="WinAnsiEncoding"?N=g(A,_).split("").map(function(L){return L.charCodeAt(0).toString(16)}).join(""):y==="Identity-H"&&(N=n(A,w[_])),p.isHex=!0,{text:N,x:l,y:u,options:d,mutex:p}};e.events.push(["postProcessText",function(o){var s=o.text||"",a=[],l={text:s,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(s)){var u=0;for(u=0;u<s.length;u+=1)Array.isArray(s[u])&&s[u].length===3?a.push([i(Object.assign({},l,{text:s[u][0]})).text,s[u][1],s[u][2]]):a.push(i(Object.assign({},l,{text:s[u]})).text);o.text=a}else o.text=i(Object.assign({},l,{text:s})).text}])}(Ye),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0},t.addFileToVFS=function(n,r){return e.call(this),this.internal.vFS[n]=r,this},t.getFileFromVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Ye.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var i,o,s,a,l,u,d,p=e,g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},_={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},A=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),S=!1,y=0;this.__bidiEngine__={};var N=function(P){var E=P.charCodeAt(),W=E>>8,B=_[W];return B!==void 0?p[256*B+(255&E)]:W===252||W===253?"AL":v.test(W)?"L":W===8?"R":"N"},L=function(P){for(var E,W=0;W<P.length;W++){if((E=N(P.charAt(W)))==="L")return!1;if(E==="R")return!0}return!1},R=function(P,E,W,B){var Q,ee,se,K,te=E[B];switch(te){case"L":case"R":S=!1;break;case"N":case"AN":break;case"EN":S&&(te="AN");break;case"AL":S=!0,te="R";break;case"WS":te="N";break;case"CS":B<1||B+1>=E.length||(Q=W[B-1])!=="EN"&&Q!=="AN"||(ee=E[B+1])!=="EN"&&ee!=="AN"?te="N":S&&(ee="AN"),te=ee===Q?ee:"N";break;case"ES":te=(Q=B>0?W[B-1]:"B")==="EN"&&B+1<E.length&&E[B+1]==="EN"?"EN":"N";break;case"ET":if(B>0&&W[B-1]==="EN"){te="EN";break}if(S){te="N";break}for(se=B+1,K=E.length;se<K&&E[se]==="ET";)se++;te=se<K&&E[se]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(K=E.length,se=B+1;se<K&&E[se]==="NSM";)se++;if(se<K){var X=P[B],de=X>=1425&&X<=2303||X===64286;if(Q=E[se],de&&(Q==="R"||Q==="AL")){te="R";break}}}te=B<1||(Q=E[B-1])==="B"?"N":W[B-1];break;case"B":S=!1,i=!0,te=y;break;case"S":o=!0,te="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"BN":te="N"}return te},D=function(P,E,W){var B=P.split("");return W&&k(B,W,{hiLevel:y}),B.reverse(),E&&E.reverse(),B.join("")},k=function(P,E,W){var B,Q,ee,se,K,te=-1,X=P.length,de=0,j=[],G=y?h:g,H=[];for(S=!1,i=!1,o=!1,Q=0;Q<X;Q++)H[Q]=N(P[Q]);for(ee=0;ee<X;ee++){if(K=de,j[ee]=R(P,H,j,ee),B=240&(de=G[K][w[j[ee]]]),de&=15,E[ee]=se=G[de][5],B>0)if(B===16){for(Q=te;Q<ee;Q++)E[Q]=1;te=-1}else te=-1;if(G[de][6])te===-1&&(te=ee);else if(te>-1){for(Q=te;Q<ee;Q++)E[Q]=se;te=-1}H[ee]==="B"&&(E[ee]=0),W.hiLevel|=se}o&&function(ne,ie,q){for(var Z=0;Z<q;Z++)if(ne[Z]==="S"){ie[Z]=y;for(var ce=Z-1;ce>=0&&ne[ce]==="WS";ce--)ie[ce]=y}}(H,E,X)},z=function(P,E,W,B,Q){if(!(Q.hiLevel<P)){if(P===1&&y===1&&!i)return E.reverse(),void(W&&W.reverse());for(var ee,se,K,te,X=E.length,de=0;de<X;){if(B[de]>=P){for(K=de+1;K<X&&B[K]>=P;)K++;for(te=de,se=K-1;te<se;te++,se--)ee=E[te],E[te]=E[se],E[se]=ee,W&&(ee=W[te],W[te]=W[se],W[se]=ee);de=K}de++}}},T=function(P,E,W){var B=P.split(""),Q={hiLevel:y};return W||(W=[]),k(B,W,Q),function(ee,se,K){if(K.hiLevel!==0&&d)for(var te,X=0;X<ee.length;X++)se[X]===1&&(te=A.indexOf(ee[X]))>=0&&(ee[X]=A[te+1])}(B,W,Q),z(2,B,E,W,Q),z(1,B,E,W,Q),B.join("")};return this.__bidiEngine__.doBidiReorder=function(P,E,W){if(function(Q,ee){if(ee)for(var se=0;se<Q.length;se++)ee[se]=se;a===void 0&&(a=L(Q)),u===void 0&&(u=L(Q))}(P,E),s||!l||u)if(s&&l&&a^u)y=a?1:0,P=D(P,E,W);else if(!s&&l&&u)y=a?1:0,P=T(P,E,W),P=D(P,E);else if(!s||a||l||u){if(s&&!l&&a^u)P=D(P,E),a?(y=0,P=T(P,E,W)):(y=1,P=T(P,E,W),P=D(P,E));else if(s&&a&&!l&&u)y=1,P=T(P,E,W),P=D(P,E);else if(!s&&!l&&a^u){var B=d;a?(y=1,P=T(P,E,W),y=0,d=!1,P=T(P,E,W),d=B):(y=0,P=T(P,E,W),P=D(P,E),y=1,d=!1,P=T(P,E,W),d=B,P=D(P,E))}}else y=0,P=T(P,E,W);else y=a?1:0,P=T(P,E,W);return P},this.__bidiEngine__.setOptions=function(P){P&&(s=P.isInputVisual,l=P.isOutputVisual,a=P.isInputRtl,u=P.isOutputRtl,d=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var i=r.text,o=(r.x,r.y,r.options||{}),s=(r.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.setOptions(o),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(s=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?s.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):s.push([n.doBidiReorder(i[a])]);r.text=s}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Ye),Ye.API.TTFFont=function(){function t(e){var n;if(this.rawData=e,n=this.contents=new Bs(e),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new jI(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new yI(this.contents),this.head=new bI(this),this.name=new NI(this),this.cmap=new Qw(this),this.toUnicode={},this.hhea=new _I(this),this.maxp=new CI(this),this.hmtx=new PI(this),this.post=new xI(this),this.os2=new SI(this),this.loca=new TI(this),this.glyf=new LI(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,n,r,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,l,u;for(u=[],s=0,a=(l=this.bbox).length;s<a;s++)e=l[s],u.push(Math.round(e*this.scaleFactor));return u}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var n;return((n=this.cmap.unicode)!=null?n.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*n},t.prototype.widthOfString=function(e,n,r){var i,o,s,a;for(s=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)i=e.charCodeAt(o),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return s*(n/1e3)},t.prototype.lineHeight=function(e,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t}();var Oi,Bs=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var n,r;for(r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var n,r,i;for(i=[],n=0,r=e.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(e.charCodeAt(n)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,n,r,i,o,s,a,l;return e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^o)+65536*(255^s)+256*(255^a)+(255^l)+1):72057594037927940*e+281474976710656*n+1099511627776*r+4294967296*i+16777216*o+65536*s+256*a+l},t.prototype.writeLongLong=function(e){var n,r;return n=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var n,r;for(n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push(this.readByte());return n},t.prototype.write=function(e){var n,r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],o.push(this.writeByte(n));return o},t}(),yI=function(){var t;function e(n){var r,i,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(n){var r,i,o,s,a,l,u,d,p,g,h,w,_;for(_ in h=Object.keys(n).length,l=Math.log(2),p=16*Math.floor(Math.log(h)/l),s=Math.floor(p/l),d=16*h-p,(i=new Bs).writeInt(this.scalarType),i.writeShort(h),i.writeShort(p),i.writeShort(s),i.writeShort(d),o=16*h,u=i.pos+o,a=null,w=[],n)for(g=n[_],i.writeString(_),i.writeInt(t(g)),i.writeInt(u),i.writeInt(g.length),w=w.concat(g),_==="head"&&(a=u),u+=g.length;u%4;)w.push(0),u++;return i.write(w),r=2981146554-t(i.data),i.pos=a+8,i.writeUInt32(r),i.data},t=function(n){var r,i,o,s;for(n=Jw.call(n);n.length%4;)n.push(0);for(o=new Bs(n),i=0,r=0,s=n.length;r<s;r=r+=4)i+=o.readUInt32();return 4294967295&i},e}(),wI={}.hasOwnProperty,uo=function(t,e){for(var n in e)wI.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};Oi=function(){function t(e){var n;this.file=e,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var bI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="head",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},e.prototype.encode=function(n){var r;return(r=new Bs).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(n),r.writeShort(this.glyphDataFormat),r.data},e}(),R4=function(){function t(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,A,v,S,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=n+e.readInt(),p=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(h=e.readUInt16(),g=h/2,e.pos+=6,o=function(){var N,L;for(L=[],l=N=0;0<=g?N<g:N>g;l=0<=g?++N:--N)L.push(e.readUInt16());return L}(),e.pos+=2,_=function(){var N,L;for(L=[],l=N=0;0<=g?N<g:N>g;l=0<=g?++N:--N)L.push(e.readUInt16());return L}(),u=function(){var N,L;for(L=[],l=N=0;0<=g?N<g:N>g;l=0<=g?++N:--N)L.push(e.readUInt16());return L}(),d=function(){var N,L;for(L=[],l=N=0;0<=g?N<g:N>g;l=0<=g?++N:--N)L.push(e.readUInt16());return L}(),i=(this.length-e.pos+this.offset)/2,a=function(){var N,L;for(L=[],l=N=0;0<=i?N<i:N>i;l=0<=i?++N:--N)L.push(e.readUInt16());return L}(),l=v=0,y=o.length;v<y;l=++v)for(A=o[l],r=S=w=_[l];w<=A?S<=A:S>=A;r=w<=A?++S:--S)d[l]===0?s=r+u[l]:(s=a[d[l]/2+(r-w)-(g-l)]||0)!==0&&(s+=u[l]),this.codeMap[r]=65535&s}e.pos=p}return t.encode=function(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,A,v,S,y,N,L,R,D,k,z,T,P,E,W,B,Q,ee,se,K,te,X,de,j,G,H,ne,ie,q,Z,ce,xe,we,Ce;switch(B=new Bs,s=Object.keys(e).sort(function(ke,ze){return ke-ze}),n){case"macroman":for(_=0,A=function(){var ke=[];for(w=0;w<256;++w)ke.push(0);return ke}(),S={0:0},o={},Q=0,te=s.length;Q<te;Q++)S[ce=e[i=s[Q]]]==null&&(S[ce]=++_),o[i]={old:e[i],new:S[e[i]]},A[i]=S[e[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(A),{charMap:o,subtable:B.data,maxGlyphID:_+1};case"unicode":for(E=[],p=[],y=0,S={},r={},v=u=null,ee=0,X=s.length;ee<X;ee++)S[L=e[i=s[ee]]]==null&&(S[L]=++y),r[i]={old:L,new:S[L]},a=S[L]-i,v!=null&&a===u||(v&&p.push(v),E.push(i),u=a),v=i;for(v&&p.push(v),p.push(65535),E.push(65535),T=2*(z=E.length),k=2*Math.pow(Math.log(z)/Math.LN2,2),g=Math.log(k/2)/Math.LN2,D=2*z-k,l=[],R=[],h=[],w=se=0,de=E.length;se<de;w=++se){if(P=E[w],d=p[w],P===65535){l.push(0),R.push(0);break}if(P-(W=r[P].new)>=32768)for(l.push(0),R.push(2*(h.length+z-w)),i=K=P;P<=d?K<=d:K>=d;i=P<=d?++K:--K)h.push(r[i].new);else l.push(W-P),R.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*z+2*h.length),B.writeUInt16(0),B.writeUInt16(T),B.writeUInt16(k),B.writeUInt16(g),B.writeUInt16(D),q=0,j=p.length;q<j;q++)i=p[q],B.writeUInt16(i);for(B.writeUInt16(0),Z=0,G=E.length;Z<G;Z++)i=E[Z],B.writeUInt16(i);for(xe=0,H=l.length;xe<H;xe++)a=l[xe],B.writeUInt16(a);for(we=0,ne=R.length;we<ne;we++)N=R[we],B.writeUInt16(N);for(Ce=0,ie=h.length;Ce<ie;Ce++)_=h[Ce],B.writeUInt16(_);return{charMap:r,subtable:B.data,maxGlyphID:y+1}}},t}(),Qw=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="cmap",e.prototype.parse=function(n){var r,i,o;for(n.pos=this.offset,this.version=n.readUInt16(),o=n.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)r=new R4(n,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(n,r){var i,o;return r==null&&(r="macroman"),i=R4.encode(n,r),(o=new Bs).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},e}(),_I=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="hhea",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},e}(),SI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="OS/2",e.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(n.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(n.readInt());return i}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(n.readInt());return i}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e}(),xI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="post",e.prototype.parse=function(n){var r,i,o;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var s;for(i=n.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],o=[];n.pos<this.offset+this.length;)r=n.readByte(),o.push(this.names.push(n.readString(r)));return o;case 151552:return i=n.readUInt16(),this.offsets=n.read(i);case 196608:break;case 262144:return this.map=(function(){var a,l,u;for(u=[],s=a=0,l=this.file.maxp.numGlyphs;0<=l?a<l:a>l;s=0<=l?++a:--a)u.push(n.readUInt32());return u}).call(this)}},e}(),AI=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},NI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="name",e.prototype.parse=function(n){var r,i,o,s,a,l,u,d,p,g,h;for(n.pos=this.offset,n.readShort(),r=n.readShort(),l=n.readShort(),i=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(u={},s=p=0,g=i.length;p<g;s=++p)o=i[s],n.pos=o.offset,d=n.readString(o.length),a=new AI(d,o),u[h=o.nameID]==null&&(u[h]=[]),u[o.nameID].push(a);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},e}(),CI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="maxp",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},e}(),PI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="hmtx",e.prototype.parse=function(n){var r,i,o,s,a,l,u;for(n.pos=this.offset,this.metrics=[],r=0,l=this.file.hhea.numberOfMetrics;0<=l?r<l:r>l;r=0<=l?++r:--r)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,p;for(p=[],r=d=0;0<=o?d<o:d>o;r=0<=o?++d:--d)p.push(n.readInt16());return p}(),this.widths=(function(){var d,p,g,h;for(h=[],d=0,p=(g=this.metrics).length;d<p;d++)s=g[d],h.push(s.advance);return h}).call(this),i=this.widths[this.widths.length-1],u=[],r=a=0;0<=o?a<o:a>o;r=0<=o?++a:--a)u.push(this.widths.push(i));return u},e.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},e}(),Jw=[].slice,LI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var r,i,o,s,a,l,u,d,p,g;return n in this.cache?this.cache[n]:(s=this.file.loca,r=this.file.contents,i=s.indexOf(n),(o=s.lengthOf(n))===0?this.cache[n]=null:(r.pos=this.offset+i,a=(l=new Bs(r.read(o))).readShort(),d=l.readShort(),g=l.readShort(),u=l.readShort(),p=l.readShort(),this.cache[n]=a===-1?new EI(l,d,g,u,p):new kI(l,a,d,g,u,p),this.cache[n]))},e.prototype.encode=function(n,r,i){var o,s,a,l,u;for(a=[],s=[],l=0,u=r.length;l<u;l++)o=n[r[l]],s.push(a.length),o&&(a=a.concat(o.encode(i)));return s.push(a.length),{table:a,offsets:s}},e}(),kI=function(){function t(e,n,r,i,o,s){this.raw=e,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=o,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),EI=function(){function t(e,n,r,i,o){var s,a;for(this.raw=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return t.prototype.encode=function(){var e,n,r;for(n=new Bs(Jw.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)n.pos=this.glyphOffsets[e];return n.data},t}(),TI=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Oi),e.prototype.tag="loca",e.prototype.parse=function(n){var r,i;return n.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=2)s.push(2*n.readUInt16());return s}).call(this):(function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=4)s.push(n.readUInt32());return s}).call(this)},e.prototype.indexOf=function(n){return this.offsets[n]},e.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},e.prototype.encode=function(n,r){for(var i=new Uint32Array(this.offsets.length),o=0,s=0,a=0;a<i.length;++a)if(i[a]=o,s<r.length&&r[s]==a){++s,i[a]=o;var l=this.offsets[a],u=this.offsets[a+1]-l;u>0&&(o+=u)}for(var d=new Array(4*i.length),p=0;p<i.length;++p)d[4*p+3]=255&i[p],d[4*p+2]=(65280&i[p])>>8,d[4*p+1]=(16711680&i[p])>>16,d[4*p]=(4278190080&i[p])>>24;return d},e}(),jI=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,n,r,i,o;for(n in i=this.font.cmap.tables[0].codeMap,e={},o=this.subset)r=o[n],e[n]=i[r];return e},t.prototype.glyphsFor=function(e){var n,r,i,o,s,a,l;for(i={},s=0,a=e.length;s<a;s++)i[o=e[s]]=this.font.glyf.glyphFor(o);for(o in n=[],i)(r=i[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in l=this.glyphsFor(n))r=l[o],i[o]=r;return i},t.prototype.encode=function(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,A,v;for(i in r=Qw.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),h={0:0},v=r.charMap)h[(l=v[i]).old]=l.new;for(w in g=r.maxGlyphID,s)w in h||(h[w]=g++);return d=function(S){var y,N;for(y in N={},S)N[S[y]]=y;return N}(h),p=Object.keys(d).sort(function(S,y){return S-y}),_=function(){var S,y,N;for(N=[],S=0,y=p.length;S<y;S++)a=p[S],N.push(d[a]);return N}(),o=this.font.glyf.encode(s,_,h),u=this.font.loca.encode(o.offsets,_),A={cmap:this.font.cmap.raw(),glyf:o.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(A["OS/2"]=this.font.os2.raw()),this.font.directory.encode(A)},t}();Ye.API.PDFObject=function(){var t;function e(){}return t=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},e.convert=function(n){var r,i,o,s;if(Array.isArray(n))return"["+function(){var a,l,u;for(u=[],a=0,l=n.length;a<l;a++)r=n[a],u.push(e.convert(r));return u}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in o=["<<"],n)s=n[i],o.push("/"+i+" "+e.convert(s));return o.push(">>"),o.join(`
+`)}return""+n},e}();class MI{constructor(e,n){this.container=document.getElementById(e),this.containerId=e,this.stage=new Wt.Stage({container:e,width:window.innerWidth,height:window.innerHeight,draggable:!0}),this.selectedRoom={id:1,name:"223",type:"Laboratory",image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExIVFhUXGBsYGBcWFxgXFhcYFRgXFxUVFRYYHiggGBolGxUXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGysmHSUtLS0rLS0tLS0tLS0tLS0rKy0tKy0rLi0tLS0tKy4tLSstLS0vLS0tLS0rLS0tKy0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgMEAAECBwj/xABOEAACAQIDBAcEBwQHBAkFAAABAhEAAwQSIQUGMUETIlFhcYGRMqGxwQcUI1JyktEzQmLwQ3OCorLC4RUWJFM0RIOTs8PS4vEXVGNko//EABsBAAMBAQEBAQAAAAAAAAAAAAECAwAEBQYH/8QAMREAAgIBAwIDBgYCAwAAAAAAAAECEQMSITEEQVFhgQUTIjJx0UKhscHh8BSRFdLx/9oADAMBAAIRAxEAPwB4UV1FaFbpxDIrUVusrBOCK4YVIa4Vg3ODMQQRWMQOKgdau3LRqvcWtRijcWql1KIXBVW4tAwMupVO6lFLi1TurSsIJvJqKy1YAJIGp4+Qj4Ct7RuFYIUt3CPnQ25t4ISGRhrHL5UAlbeUENbgkGCNDB4ipcDJUTroKhxuKt4iD1lKzB059oq5hSoA6w4eHuosxZRanVKjS4v3l9RUq30++vqKUx2qVIqVGMTb++v5hUiYlPvisYkCV2ErauO/0P6VIGHf+U/pWMR5KwpUvSLIGsnQSCJ0nmK7KVglUpUbLVpkqJlrGKzLUbLVllqJhWMVWWonFWXFQuKxiO3gDcnrKq/eaYnsECSatYTY6qZN9D4K/wClD8SxEQTx7asbOk8ST41jBhbNv/mj8rVlQ7Ow7LbUPBfXMRwkknSfGspgHoQrdcit0wpusrVaomMNR43aa22VYJlHaQRxt5OpHac/uqSaVbr27lwg38hzPqVkdbioIiDIXjxiqY0m9wPjYJ7V2kF6N3FxShdmRTPsKCQ0aMsMD5+NXHtj9p98DTwH+tD8bszprIm6GckEOBxWBbI75HGrODuHKUJBymFMzKwCJ8CSPKjNLegp3FXyY4qtcFWnqvcFRMU7i1TvCr9wVUuigYEe0ygjn/PGlvelLVp1BDZrkkERAIIGs+NOCp1h40B3w2ZcuPZKBSq5s85Z4qdJ7poUEBYS3pNFtl2QV4cz8TXHRZVireyR1fM/EmgEt27I7K1i0yqI01/WrCCo8eOqPH5VjFJSTMk8KMYPZ6FVbWSAePnQm2OPh8xTNg16i/hHwoIxtMOO+plwwqS0tTBaJis2FXQxw4VnQirRWuMtYxQxdsBT5fEVTuVf2jovmPjNeX7U3rxAu3FVlyq7AdWdASPlWow9MaiY159/vXifvL+UVwd6MT95fy0aMPztULmkb/ebEfeX8taO8d/tX8v+tCjDdieI86v7NXSlzY2Na8oLRIBmBA1OnuFNGzl0FYxcfFIpgnWsrdrCq4zEamT5T1fdFapgD2Kya5Brc0QG5rJrU1qsY2TXnNu+elvIetFxwJ4jrtlgzXok1wyjsFNF07CnsANnY4W7B6TTIdSx5mNR2jUkdmorvD4tWvLFwPmUkQCDliVzDxJ1oubK/dX0Fckd1M52A4eq71O9V7lIYguVVu1ZuVWuUGYpO0GRxFDsbZzozsoBzCOffRG7UGKH2J/EKVhAlwDn2f8AxVnZg6v89pqvfq1sz2f57TQMX0FQ4/gPGp0qHaHBaLMVbY0Pl8aaMOOqvgPhSujaHypssroPAVkZktsVMq1wgruaJjoioytd61yaBgftXgv4vgprwvEvmdz2sx9STXtu3LkCexXb0H+teGCsE6rK5zVmaiY2K2awVjVjDXusn2Z8qc8GIFK+7luLY7zTTaHVjt09dKUwRwqQi/hHwrKlC1lMAZwa3NcA1uiA6mtTWprU1gmya5JrRNVNo4gpauOvFUZhPCQCRNFK9gFomo2pMt7xbRZVdcGLiMoYECJnjEMdO/3VFc30xSANc2e4VvZaXCtEzlYpB4Hh2V1/4OZuklf1QkckJOk0/Uc3NV7hpQ/+oaj28LcHbDjTyKij+yNrW8UjsgIyRpmRvaMa5Tpw50mTpM2NapxpDlhteFQvab7p9KobzLOGcdrWhqY/6xa58vGtNuVhi6nLdAZ4OW6csFWYnMCRMiY8qOLp4zhqlKvS/wBxZNxV068ef03/ACJL9h/uN6Gq2KQi1GRiS6qANDLGBxpfv7KtnEdFbv31Jd4+0YjIhuKDoO1V56z36Hd2rbWsQts32ZWslybpLAEdFrqBIl29B2TXXL2ZoWpyvvVDU/79uQdfwl4Ak4TEgKATC22gMYBMP21FgscqyrWsQIksxtKFUAmSxz6AdvdRTaW/KhcVay5biRbtlQOjudG7S7+yVnTTXiaqYcudmZm6xe1fJJME9Z9YI15V0w9nQ03OFb0t33ViRcq3f9/2wiVgkVW2h+75/KrV32m8TVXH/u+fyrwJLcdFS2DrJEDgI11k6691ONsaUoqND4j4GjeD2i7GMq+poILDIrtRVNb7/dX8x/SuxiG+6Pzf+2iAs1waq2scWzdQiCRxGscx3VSxW1GynJbcNyLKCPODQMdbTshyVPAoQfBtPlSBc3LGuoVQGYksYCqCxJMHgAae9nO91hnEEkLwjmdYPiKEbW3gwgS6hN8Bhds5glpoPWts2XpJjjEgTVcWGWR1FBuhKv7tWlMHFWgewuQdRI0Kdhqvc3fXlicOf+1UfEa04jebZ5t9HJ9gKCcJanSZaQ8yZqLbu1dm4hy1spZHR5Aowp0OV1zSJk9dTP8AAPL0I9BDVTbrxr+CalPul/v+BTtbvEmBesE9gv2yfSpbu7N1DlPODplIIOo1FMGBGAmLdyWmdLV4sAOk4RbJGjp+Twg9j7IDKeRUQCGUjJ1CGVwCDKniKh1nTRw1pbfpRROwNs2yFAUcAT8aPWR7H4vkaD4ISaNYISx7hHmdT7orhCFAKytisomLlneLCtwv2/zCrdvaVluF1D4MK8mOw16JXDtJ6PQp1ftGZSQ3YI8zI5a7TdzWTcQQRAuLoevk7ToNSfCvafsnwkU90z2C3cDcCD4Gtmk36Obk9OuVBkISUBUNBY5iCeOseAFOyWGbgpPlXl58TxTcH2JtUyA1S2sPsLv9W3+E0XOEj2iq+cn0FU9q2l6G4AWYlCBAjiOzianHlAAG7D2BhrHSFk+yEMzW0Vj1dAzKZJ1I4mBy4VS3lxv/AAFglvs0fKIM+1buATl1Pj39mlLm28S1zA4ex0F5WtFJzWWHs22UmZ11PZQS5tS89oWLl5mtoRkt9XTKCBqdVABjXtr6fF0uqamnvfd9vI3xSlqaSaeyXH1b8/Db6jDsS90g6Ug5mdm/fkfaWxo41J1PafiprdBIu4wNPs2P8GnEcKXNiYy0lkK7KGDHq5wDq9vjI7FJ4/6mNgLbcY0dIAh6DrBgR7IkTw46UfaVrp5t/wB3ReW8Ugnt+9be0yL1iGtMyrLvlW/aLHKoJ0HdQXfDeS/n6LCZksghluLauWnDEQ8SF07dOZrrEX7eGP2KlyeJTSBxjMTB8BQzH7auuZVsXZPcrRz7xXg9J10cS3jq9Tmlg+NS32KG7uIC4vpcQ5EyWuXJkliASec8+NG7WNtu7G2ely4R5UBX1z2Bly6g8OBoBg9vYxLoFzF3FT+NZJnuy8aY9oW9o3bLN0oSyUljcCocoOaSVUsugnyrr6n2vGcWlCrVLf8AgdQbAWKxpCnLgwG5ThlAntOUDSrexr6Oh6TCoGAJfLbZRxMcGE6dk1Ds/YONv2y1m+lxNRK3WjhqOso7aL293sTbUM6KABqc68fM15EutzxWzf8AtlVhiwjh36QZ14NrwI9x1FR4+y2hjQTS7j9q9Hla3cXN1uBB1ykj3ii2CxT3bSPcbMxWewCewVzxyyfKM8SRInDz+VX9l+35H5UPTh5/KiOyfaPh8xVkRYYFbrkVuaYUiw/DxJ+NbeuMMeoK0+0LKkKWljOiwcscQdeNJOairZSMXJndi8ts9K5hLY6RjBOianQUD2Ftmxh7IQ49lVnLhvq7rIJZiEziDq8yZq5t/GWzg8UUOvRRwI9shfnQnY2xMHdwdtr1u4XECOlYHVQSyWi3skniNOVet7NhrxOd967P9SPUfBs8bn6WGsJvFg1a6xxlhzcVVBuW4IChpkcPaaaUvqWHKopv4IwVLHOgJyqwIkoCQWYHXs1mAKMYndDANcsJbzoLt0JJuqwC5WYyQTGi1BvhuPg8Pcw6WL1xuleDwuEKFJJQKNTIEePnXd004456YyacuzXh4JcehLE7VRxNLj5aKLbIsm0yo2GZiDDZ7JOY2raTmJkDMLjd0jnrRNsG4s2ERrZKWkUxcT2hJcce0xSg+wFmyFuMTctPcb7M6ZC+i/e0TU8AZ7K6XdkhWctBVLTqrIYfpmhRmOgWJOY6GIrq6rocnUKpSWz8PTxOje+B22bgm4Nay94ZW9IPdzHOrtmx0ZMnQmQToCIHv04Uq7tvlxd20EsnoRdYXEtC2zEDowJ4hTmnL20z7AxC31XMW00iT1W5q686+c6rB7iehjLctdOn3l9RW6vNg3BjKfKsqADzJcfme0gkAMoYaHMQ+n86U3o50AzgZhoHWAPrMjQ8IPPmetwpGwyjpVE5jnHszHtDtEmnG+okTIJLf0f/AOxBgg+PCdRlr7Bb0dsXZc+jt8t3FkmIu6kxAiZJPCmPae+NtCQtzpDHsoCTP9kRSduvcVbe0CwBUM0g6AgAzM8BV7ZW2sPoossOwIA0+kGvlPaeRx6iSRJQUm7LZ3jv3B9laQE8TdZge/qBfnVS4+Jukh78DsT9F19TRH/b+DGjE94NtuPeIqHG4yxiUyWsX0EceqFmeQLRHka8/wB9vuF4l2MweGYatdcxyLz6/p/Ig21ibltGYNMKSuaCAYJHH+fDiQt3cdYLLtC1A1JIB94eq67mXH0THYd+7pCD86vHNFdyTxy8AFh968RdMHDYa83YcPnb0Bo4u2V6JrX1e1Ya4FLhV6NuqZEqe+pMDuZtKyfsr1pQfuXWHjpkFNO5mFvQUxdtFA1DXXtu5Y6aKrERHM61suduFKe3hY0ItPdCJj7n2T5TDZTBnnGlC323iIIW8+UjhIIgjh769+/3dwrDXD2W8baGfdVa/ujs9VzNhMOqjiciqB5iK5IOKLO2eSbJxRa2jSZKgnxohi8Y623YMZCkiSeIEiju18HgVVhhcMBAPXzXFUQP3Vza+deY3NqXCIzt7qTRqew10htw30g4lWFsIjAlQCdDrEcu+jWJvs5zOxY9/AfhHAV5rsdpuWp450HowHyr0S5VJbOheUec4jCayXT2u0EiTEwDPOm/ZjDobQB0yLrw4ga0ExWXI5Eg5THXbjGmk0cC9VdNMo08qeW1E07svMmnU60EgyQI0FWME7ISShOnIqfnQu3gV5IPSplw3iPAmq6iNB5ccOaOP7M/A1Nhr4uMEQMWbQDKw95Gg76XltMODv8AmNdPvFfwK57ZDFiAc4BMdgJGlCWSkGMLdD1a3aZVA6QSB2H9aWr24V8YlrwuWspzadYGWFvuj9w+tDdj72Yxi7G8xAuMoBhhCmOffNEn36xI0K2j4qR8DXJPM3szqhirdFbbuykt4e5av4hLJulQGIlRkbNHETIoxsfeK0iWra42wQhExk9lQoGUTObTmYpJ+kzaLXrWFZwAz53IXhoFAifGquI3Nxt62HFvDZUgFkhGJIgBpGtfSdF0ql00baq73S5OPL1ywSak0r8fL7Wel7WxSYq7hz9a+zt3TcJUgMDkYKRl1OrHSYj0oHvXhr9x7D2UF0WxcJ66oZeANWmRAngONeeXNx8cBm+rkrrqrIRoSDznkapf7LxaObYt3s4AJVMxIDaAwvbXXhx6ZpwnFtdv6/M5cXUY+079f2+4z7F2FjEe4160zRZdEBvdsABcjTpxC6DTWmI7OuZsuRspuYVSQWYZbSyxJfkDxPBSNBXm92/jbPtNibcfeNxY8c1dW95cYvDE3PMg/EV2vJ1D3qP5/UvGarYYtni9afaGIKMHCHKWU9Yu/EaDNw5VmwdoXeldoAuLBdYgOukafeHbQa1vnjV/pp8UX5CrNvfzFjj0R8UI+Bryur6XNnyvI0h1NJUemptpiJUgryPbWV5wN/r/APybPof1rK5f8DP4G1IYcZuzZt2yzXmtgR1yqnKZ0OYAHzqjY2WG/Y7UtMeUkEzMj9489aZdubAx1+09pTbyMIgHz1JWqOx/or6OHum7dYQRbt5UkjUAFuPqKMet6hfiG94yC1sp8Pgsd0l225u22IZTxJUjmBrJoDulijkkGGXQxx0puxW5633KfVfqw5lndrmuuqzlB586Vt5djNssKbF3pEdpYkAFSsAKYkZTJ104Vw5c3vcmqXJSnVkW2rpfGlu20pbvaSAT5AelBNpuwuESYZJGvNDJjymiuxtj4nat641h0tEIJnNk6sKFzAGDz9av4j6LNpkgl7Dx2XW58faQVCda7bGi3ppIUFvvyZvU0Y2ffLW1Y6mBPzq7d+jraSf9WzfhuWz8WBqlc2LjcJbm/h3tpMAsBGp01BpJpSWxSDae4QtGo9pXyltmXiBPpQ1dqZeIHrXN3auYMsLB051FYnZVzVDDa+kLG2oVbkqAMshTpAgaqaZcFtW7jLa3bzEnkvBRpxygAT5V5TYuyqyRIAH5dPlXpW6pnDL/ADyFPOKRNO0X740PgfhXndrE3mVSbSNMAk21OswfZbuPKvR7o0NeX7O2hlzAPHWJ9et/mNNiSdk8ja4CeEwWa6qiVCMLpHR5OLyFJIkiQ3OOFODikzZmPJvk5pzZE8RJP+angpWycghdCdjthuqTmmWUcDPWYL86Zdn4Dqrm4KAO8kCjlvBmBIqX6v3U73Jp0DmsDkK0MPRP6vU+Cs2s6i9cW2nMsYmOQ76z2AtzrYu6pvIXZ8g/d6sz2niNKg2/9HNy8gVL6AhgesrAGOWhNXtub/W8PiVsWRaup0YY5W4akQGEjgBpFW8Nv9hm9tbiHwDD1Bn3VzSyOzojj7oU8F9HeLtKQWstLM0q7fvMTzUdtVcZuXjBMWgfB1+Zr0JN7sE39OB4q4+VbfefB/8A3Fv1P6VN03ZROSPFd/rDdJhLEdYWwpHYzMFI9RTTa2Xi0sHqXWudJ1b/AEsrkyibeRuJkEzS7vsTc2raC8Ytx452b503Xb+KSyCFu5gWJY5GtMo4ZREg9s19t066iHT41i0/SV+nHbxRHBj6PK3HqJQu9lJrjx389jlMHjkVM1jFNKgnItoqZ6xgKsnjznxNQ7m4tRjcY+JlGXolUMjZxlDEdUEQ2oozZ21ZcW+j2gpdBlHXSQCFzAQdQSo8Y1oRuohZ8bfN1WK4hoNyW6To1A8Dw51LIlolKUVBv8SW/P7ngZep6Gm8WJOSq1Wnb68HH0sbVR8OEGVmdkhsuV4nMQwBM8KU8MFGItBrVhgtkwhNooeqx+2MKGuAE8etKrRT6SNoB7dmRbXO4uHomDZeqZUgRlYZuFJm0tqFnzW2ZRABiV4ciMx8ePE16/s/HLDgcZu278vL7no4oe7T149Dv5btvzvzOsBhA632yFsgHIEKCwEk5hry4HjyojZ2KufCh7NzLdhjlS4HupMsLYgyYEAqI1E1DstlGEu5i+ZnGSNEkR0mY5CDKkaBhEcDpR2zeVcVZK4hl6OzJdykJcCnSyFZNCcvMNqa9Fu4vbx7eX3ZaMLQqY/DWhccW1ITMcoYnMFnqhpA6wGh041lE7WAu3BnFpWBJM5uOpnUtJ1rVdSjgSppfkBxPerW0RztXB4BG/wtQjevaOONlvqaC3wAEqbzAkT1ictrSeEnvFL1vfeP6E/n/wBKmXfkc7H9/wD0r8mfUzOtdPEq7D2XtNiue50KDiCwus2stPESddZnWni/sy0VANpSOwqD8aE4TfDCkDMzISOBUmPNQaK294cIw0vp5mD6HWoym5DqGktYCwqaKAo7AIHoKtYjEW7a5nZVHafl2mlTaG9mpXDrJ++3DyX9fSl++z3Wz3XLt3nQdwFKrC0Mm0d7ZlcOn/aMPgv6+lKO8Vhr9p+kcsxjVjoOsNB2VdUcKobyOVw11gSMoDSND1WU6d+lPFboD2QotseSQmQkGCAdQYmOHZrUDbvXDwX0M13hMQGvM1vEX8rIHBypmzJmQhswI0BXXTj4Ua2cbjABMSfO2jRMnWAI1nnXQ8bXcl76+wmvgGDdFkbpS4VRGnWiCT2fpXpG6tkpYyNEoSpjgcpiR3aUPu2bv1nCi5dR1LuerbyEZbTRJzGeI5UwYNIa4B96fUAmlycI0HbJWFKV3cj7reo/Sm80UtWe6hjBkPMtkbrtnZ9T0d2IA45Msx769M2bs4LDvx5L2d57+7+RatWQOVTXCFBZiAAJJPACqNW7J6nVEVxZrg2amw2JsOARiLMn91nCn+9Vi7ZC2zcLJkXiwdSvGOIPaRTaGJqRR6Cl/fdCMKfH4Bj8qZrN5HEowYTGhnXs99L+/wBphT4n/A9JLgfH8yPKNjMxxKkkmFOpM+Gp8abXOlI9rEFHzKYMevdRK1vG40ZAfDSoZsUpO0deOSQed4qNDmdV7WA9SBQPFbwDLKoc08+EeVEdmYsnEYJSATeKPpplBciO/RJnvpYdPPkMs0VsEMWwfbgzTlV1HVBY6WwdAJJMmnnbO0bS2MVlu3B0dtujRhGuQkq2YDK3d3UlbY3cxy4x8TZVTLkqVdAwEQNHI105VBtHHbTFm5ZazdKXTNzqM8kxqXUkToO+vuMePHmxQ05EqS2tep8/1vs/F1C1u9afHavvYjxTruxvlawuEfDPYLM2frjKYz8IBjhSjcEHK4Kt3iPVT8q6sIFMtBHISDJ8uVepn6bF1MdE+OTtxTlCVxDm+O3rWMNvobPR5ZBEAFpgAwPA+tL3QNMZT6VOWcklUA/CoEeBAqFUPAtHcZ+FUhgWOKjHgbLkllnqlyMeDRfqltMyF3vaoMuqiQDcYOD7RYAEDQyDRXEYhxiMQ/7QLa6POQygJlChQGzmSOEnlxrMJbYjAWc1ph+0yHMq2yTOa65DdUhVcwIAJ0qricepOLfo7RN0wDlELLEk2SCsDQ/unQjtqkVqdVfP5yS/Rf8ApeK2SLOyrgW0g6BTodWFkkySZ69smNdJPCK1THsqyq2bQbZV66cinpOmZc4YBlbKLvVlSNPhWVw5Opjrfw9/GP8A3F0oVhXOKUlGCmDBg9/KqVjaqkhcrZjyEGreIxWQS1twO3q/+qvzrRJb0dmpcC+l8vaViTmRipPOG6y+moqWzi3BHXb8xqsbwFy6ADluCRPbOYe+a0rGuhpEotnpuyv2SeHwJq0DQ/Y9ybQ8/wBfnVlrtc5RljNVXbizhrw7bbfCuumHbVgYY30e1bAZihHEAaggak08Yu9hG1R5Bh7pUoRMqSvbpy+Aoph9qMpnN7qNYncjEICWsXBGpgBoHacpPZQv/ZA5E10y8yCRh203S2mkdUP/AHgB8qed2sSbtsueJPw0+VeePs/LeVeMqT6EV6FubaOQqBJmABzmall4VFMfLDVuwWIVRJOgFMgwUVNsvZ4siTBcjU8h/CP51qdta0I0JOVlB1CgsSABqSeAA7aStvbZN85VkWwdO1iP3j3dg/kQb2b22muvhxcCrbYqwMjMynWSdIB4Chti8riVdGH8LqT6AzXVjh3ZCT7HQFaYcABJOgAEns0HOunMCTTf9Huws5+t3BoP2QPMjQ3PAageZ7K2bIoIOOGpjTulsL6thwlwAuxztIBgtHV74jj2zVvamwsNiEKXbYZTyBZeRHFSDwNXgT21hNeY5N7nXpoRcX9Euzm1UXrZ/huk/wDiBqE4r6HbX9HinH40VvepWvTiK1NHXIZHzvv9uK+zrSXGvJcV3yCAytOVmkgyI6vbSrYvXrt2wqk9IMlq1k6rDrQgBEay3GvpHfXdxdoYfoHdkAYNKhZkcAcwMDwivP8AA/RU9i/bupezBGDQV1kagzOhmDwrox5ko0+SU4NysXVbbNgkOuJyjmydIPWGqZd78WnthD+JCp9xFew2bhiCVBHKaV333wLyrXYjQh0aOMdhFZZJPgdxS5E8b6X8oN7A3MhEqwD5WU8GXMkEEd9Vf95Nm3J6TCBe09Eg18bZmvV9m7xYS5CLibGUKAqrdVeAGmWQfKvLfpWsq+KGUBQba6rEGC4mRxrvjKcVcZM5XJeBDabZVzg/Rzw69xT/AP1kV2+62Eu628WfzW3+GWkK5hyKd93NiYO/ZU3bbq2oLo54g81aRwiuiPX9UlSm/V3+ptmtzTbi3F1t4lZ5SrJ71JqC5uzj1UqtwMpMlVunKT2lXgE1Y2hufdUj6piXnse4UkaRkKiJ4yD3VFZ2dthDC3MxH7pdSfRxMd9VXtjqIOm0ZQvgqnZW0P8AkjyWx8q1RE39sjToQe/IPkayq/8AO5fL++odMvFgVNjBBpmL6HpQxWNZhFHEHtPbyqTEKzGWJJ76g2XtoKttCYCqQSwJzMWYgg8lC5R5GiuG2hZe6bQZDwKvMKxMSNeBGvpXzs1ks6McoJC7j7UQ3YamVeymHaODQucOQA7IWU/uwJ1B7RHDuoPZS4iFGw9zOkycsWwBrmLeHrRWprgOqKlyNuw7v2I8vgKnuXNaFbAv/YBj2TwjTWDHhVZ9s27hgOsd5A9ZilhjcnQZzS3CWIxnIev6UPuXJqM3Qefpr7xVS/iZ0X1/SuuMVFbHNKTZYu491BRXaDxAY5fMcDTNufgFuWSzCTnI9y/rSWor0b6O1nDv/WH/AArS5LaMi3ht2LPTdMZJyZMpjKNZJGkzTHsrZ9qySbaAE8Tx+PDyraLVi0tSSCWi9ckVoLXRFMA+bN7v+m4n+uf/ABGg8Ub3yH/H4oD/AJz/ABoNFVQr5HX6L9gXcdiCpZhYQA3WkxrwROx21EjgJPZX0PZshVCqAFUAAAQABoAOwRXz9uPvTewtprVslQpLsCikHNOuup0EeVeh7M3/ACVU3F4gGVXt14ZtK4c7bkdWOPw2egxXJWlzD72KwlbbXBz6Ih2Xva2crjxgjvqbDb4YR/6XKf41ZffEVGh6YcM1wSahw+0bVz2LqN+FlPwNTMaxiNm7qjJqQmuawQTtqwvRu5HsqxnwBNfPN+yew89eXGa+l7qAgggEHQg8weVLmL3MwLz/AMMintSUP92K6MOVQ5J5Meo+f3HhXAEcNPCvZ8Z9G2Fb2Wur/bzf4waB4v6L/uX/AM9v5qRXQuogyTwyPNc57TRLAbfv2VyKVKzMFQdSNTPHl20wYr6OsUvsm0/9plPvB+NCcVuljE44djz6hVvgZ91OssH3E93Jdi3h987yjW2h8JHlqTRWxvtbIi5ZYdhRhp3gGAD30m38BdTR7Nxe9rbD3xFVy44aT4/LyotRluzJyiekpvkkaOY/jtgt5lXAPpWq81JPL4VlL7qI3vJBDZ7oLahrasIB1k+ccKj2stk5WW1lAIzhdAy8/A9/fXOGEKPAV1ecEEdoodzVsdY6yiBbuHe51NQGM5R/BIqbG7UxPQOGvo4cDN1QHjTKVIiQdATx7aq2F6kd0VVv24tgTOtEDQ6XGXocqMCOjRdO5ApHupBpu2XqjAknXSTPZpS6cLbOgvqDzDq6wewMoYHxMUmPlj5OERYPRxRlaEpayvEgwRqplYPf50WWqkiVa9G+jU/YXB/+T/ItecrXo30aWW6G4xBCl9D2woBjt1pZcBQ621qYLXCGuppAkk1grkVsGsY+fd8NqXRjcSmYMgvPlW4iXVXrfui4rZfKONBb+NV1I6G0rH99A6nv6ufoxPcg7oq7vmf+PxX9c/xoVdw7KAWUjxiefEcRwPHsNWEDO7yjLdj7qz49erP15hdtJPVyj5/pVfdlZW94D/NWY1Mt6z4Af3m/WuaSTmzpi6ghqtuRBBgjmOI7weVX22qzftlS93uCH/71CrnzJHdQ+2NKxjXLdFy2ww7cGvWj3hL6/wDlsB5tVmziLifssco7i1+16gqV99CIrgmtfkHcarO8ONX+nsv43LB/zBqIWt7cSBL4ZXHM220/u5qQGNVmxwRwJgnhGnvrKN8GvxPTbG/tg+0lxfDKw+M+6iFjerCPwvAfiBX3kRXie0nJusxYyY1nU6DUnnVa3i7gYwxgCO3Xjz8qdY7Qrkj6Fs422/sXEb8LA/A101eJjC4pQD0YbSeqyM3ojEg90Vibw37TZS11D2ZmH900uh9g2j2dlFRtaFeXYffi+ONwn8Sg+8a0Sw+/7fvLbbwJU++aDizbD02HFUsTsm0/tW0b8Sg/EUFsb72zxtsPwkMPlV6zvXhm4uV/Ep+U0N0Zogbc/Bkz9WtflFZREbcw5/prf5hWU2tg0+R4dBIHZWZaPW8BpXL7Prr1nNQETSq+L5eNHG2fQ3aGFKtbHafhFGMlZmti/sh9G8v591LuKX7Rh/EfjTJg7WSZ5il/HSLrEaGZoQ+ZhyfKiO1IYA6aijqUCthmObUxEnjHITTtuxsB8XcgSttfbfs/hH8R/wBasyKLW6O7jYt8zSLKnrNzY/cXv7Tyr1jD2VRQigKqiABwAHKocHhUtItu2oVVEADl2+J76nmpt2MSJXU1GDXS0DEsGuhUYNbrGPm/eozjMT/XXP8AGaGvdZtCzEDgCSQPAGnP6WFA2g0ACbaEwAJJzST2nvpMHhVUK+Q/ukNLn9n51Y28o6awe0gf3l/Wud3b5fpWIE9XgIHPlW94n1st91p9Cp+VS/Gyr+RB29iLdvR7iqSCVBmWy8QIB18a1avq4lWB8D8RSnma/ca8QYOiDsUVvIQZBIPdpUJwjdIvjtq2NZqJ6AptK6v70/iE++phtg809DU9DHCT0v7U/bW/L4miQ2kD+6fdQraVzNdtkfzBmqYlTEycE2Mudc/zyqLZ41WebAnzM0T2NhRfvsIkBWPjplUa9rMtMG08Fh7Vq0Ra67r1WGkEKCS0d1Nfwit/EBv9oKXKc6uriWIyk5l+6wDr6NIFLGD62JY9k/pTGlSnFRHhKzi9hLLcbZQ9ttjH5WkekVSv7GB9i8v9tSh9RI99EHqMmgpNBpMDXdh3wSVUHQQUdDwnkDPZUgweLHC3d9CaJVo0/vH3F0JcAxvrg/orn/dn9KyiWbvrVHX5IGl+IQStnn41qsokjYFBtt/t7Pn8RWVlNHkDL20dMsdp+FGr1hCsFVIjgQCPSsrKMQvhCRtu0qXIVQo7gB8K9n3JtgYKzAAlZMDiSTJPaaysqr4Jhp6xOVZWUrCdL/PuqUfz6VqsrAOlrf8APwrKysY8T+lf/p5/qrfwNJT1lZVVwLLkPbr+zd8vnXW3/YT8XyrKyo/jZX8CCGDUdEug9kfCoMQKysrk/Edq4KF0VwtarKqKTCqWK/aJ51lZTY+SeX5Rq3C/bt+H9T8QPSi+8o+xwv4f/LFZWUHwI/nETYn7S5/PM0xpWVlLm5HxfKafhULVlZUihlctWVlEBo1lZWURT//Z",description:"223 is a laboratory with a capacity of 40 people"},this.toggleSearch=!1,this.shapes=[],this.roomTypes=[],this.loaded=!1,this.mainLayer=new Wt.Layer,this.routeLayer=new Wt.Layer,this.textLayer=new Wt.Layer,this.stage.add(this.mainLayer),this.stage.add(this.routeLayer),this.stage.add(this.textLayer),this.cachedCanvases=[],this.floorNum=n,this.navArrow=new Wt.Arrow({stroke:"#bb0000",strokeWidth:3,dash:[12,7],lineCap:"round",tension:10,pointerLength:2,pointerWidth:3}),this.navArrow.cache(),this.stage.on("resize",()=>{this.stage.width=window.innerWidth,this.stage.height=window.innerHeight}),this.stage.on("wheel",r=>{Lw(r,this.stage)})}clearMap(){this.mainLayer.removeChildren(),this.shapes.forEach(e=>e.clearText()),this.shapes=[]}deserializeMap(e){this.clearMap(),JSON.parse(e).forEach(r=>{if(r.className!=="InfoPin"){console.log("SHAPE ATTRS CREATE: "+JSON.stringify(r.attrs));const i=ya.createRenderedShape(r.className,r.attrs);lf(i,this,"click"),this.shapes.push(i),console.log(i)}})}displayRoomNames(){this.shapes.forEach(e=>{e.displayName(this.textLayer)})}loadMapN(e){e==null||e===""||(this.deserializeMap(e),this.shapes.forEach(n=>{this.mainLayer.add(n)}),this.displayRoomNames(),this.initializeRoomTypes())}clearRoute(){this.routeLayer.removeChildren()}drawRouteNEW(e,n=0){this.clearRoute(),console.log("====PATH===="),e.forEach(s=>console.log("NODE",s));let r=n,i=[e[r].coordinates.x,e[r].coordinates.y];++r,console.log("INIT BUFFER",i),console.log("INIT IDX",r);const o=()=>{if(r>=e.length){console.log("FLOOR NUM DISPLAY: "+this.floorNum);let S={stage:this.stage.clone(),floor:this.floorNum};this.cachedCanvases.push(S),MM("navend",this.downloadURI);return}const s=e[r-1],a=e[r];if(a.floorNumber!==s.floorNumber){let S={stage:this.stage.clone(),floor:this.floorNum};this.cachedCanvases.push(S),jM(e,r,a.floorNumber,a);return}const l=s.coordinates.x,u=s.coordinates.y,d=a.coordinates.x,p=a.coordinates.y,g=10,h=(d-l)/g,w=(p-u)/g,_=S=>{const y=l+h*S,N=u+w*S;i.push(y,N);let L=this.navArrow.clone({points:[...i]});this.routeLayer.add(L),this.routeLayer.draw(),i=[y,N]};let A=1;const v=setInterval(()=>{_(A),A++,A>g&&(clearInterval(v),r++,setTimeout(o,60))},30)};o()}initializeRoomTypes(){this.roomTypes=this.shapes.filter(e=>e.class==="Room"&&e.info.type!=="").map(e=>e.info.type)}getShapeByType(e){return this.shapes.filter(n=>n.class===e)}highlightShape(e){this.shapes.filter(r=>r.info.name===e)[0].highlight()}downloadURI(e,n){let r=document.createElement("a");r.download=n,r.href=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}getRouteImages(e={mapName:"mapName",from:"from",to:"to"}){const n=new Ye("p","mm","a4"),r=n.internal.pageSize.getWidth(),i=n.internal.pageSize.getHeight(),o=10;let s=o;const a=[];this.cachedCanvases.forEach((l,u)=>{console.log("CANVASL "+JSON.stringify(l.stage));let d=Wt.Node.create(l.stage,document.createElement("div")),p=1/0,g=1/0,h=-1/0,w=-1/0;d.getLayers().forEach(y=>{y.getChildren().forEach(N=>{const L=N.x(),R=N.y(),D=N.width()*N.scaleX(),k=N.height()*N.scaleY();p=Math.min(p,L-N.offsetX()*N.scaleX()),g=Math.min(g,R-N.offsetY()*N.scaleY()),h=Math.max(h,L+D-N.offsetX()*N.scaleX()),w=Math.max(w,R+k-N.offsetY()*N.scaleY())})});let _=50;const A=h-p+_,v=w-g+_;d.size({width:A,height:v}),d.position({x:-p,y:-g}),d.batchDraw();let S=d.toDataURL({pixelRatio:1});a.push(S),console.log(`Generated Image ${u+1}`)}),a.forEach((l,u)=>{const d=`Floor: ${this.cachedCanvases[u].floor}`;n.text(d,o,s+5);const p=new Image;p.src=l;const g=r-2*o,h=i-2*o;let w=g,_=h/2;_>h&&(_=h,w=r*h/i),s+_>i-o&&(n.addPage(),s=o),n.addImage(l,"PNG",o,s,w,_),s+=_+10}),n.save(`${e.mapName}-${e.from}-->${e.to}.route.pdf`)}setFilter(e){let n=this.getShapeByType("Room");e==="All"?n.forEach(r=>{r.unHighlight()}):(n.filter(r=>r.info.type===e).forEach(r=>{r.highlight()}),n.filter(r=>r.info.type!==e).forEach(r=>{r.unHighlight()}))}}const II="_main_ctyyq_7",FI="_toolbar_ctyyq_14",OI="_toolbarContainer_ctyyq_26",RI="_logoContainer_ctyyq_35",BI="_mapTitle_ctyyq_41",DI="_searchFilterContainer_ctyyq_52",UI="_profileContainer_ctyyq_73",zI="_mapContainer_ctyyq_103",GI="_mapControlsContainer_ctyyq_113",qI="_nextButtonContainer_ctyyq_120",VI="_nextButton_ctyyq_120",WI="_pulse_ctyyq_1",HI="_floorSelectorContainer_ctyyq_158",YI="_floorSelector_ctyyq_158",KI="_floorIcon_ctyyq_179",XI="_floorDropdown_ctyyq_184",dr={main:II,toolbar:FI,toolbarContainer:OI,logoContainer:RI,mapTitle:BI,searchFilterContainer:DI,profileContainer:UI,mapContainer:zI,mapControlsContainer:GI,nextButtonContainer:qI,nextButton:VI,pulse:WI,floorSelectorContainer:HI,floorSelector:YI,floorIcon:KI,floorDropdown:XI},B4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA9BJREFUeF7tmk162jAQhkfSrj1EnZOUnCTJBsMpEk6QpTBdkJ4EcpK61+jzWCoSNshYMmMhORjsTRZYtuedb340CoE7v8id2w8jgFEBd05gDIE7F8CYBMcQiBUCnPOkfHbCGEuAART/ihwA8vl8rv5exRVUAcpoSukzADwBQAUAACRAPdpyKeWWUvo5nU4/vpJEEAD8nSfsO1vvjJpoYxr2tpqYE0IWXwXiYgA8y94owGsAL+Zpmj4EeE6nR3gDUHJnzPB6p9dWNzdDQwjx2GeO8AawWq02B8kfjG8aBAC/dVRI+YNSmjTXNMjlQoiX+Xy+9WLacZEXALvx+zcTQrZFUSzaDDCSpSN0SC5E0YsSOgNYLpdrQojK9LZrkabpG9YJnPMJpXQNEhJdJOoC6iUndAJQfvDGkuSVbL081qYGQshL7OrQCYBL+qXx3jFbQtjUeweto+gqQAPg/NeEUqE+snaF8lIJ4U+s57vCEg3AFvsq4U2n00dszJ+7L8sylT9ezWQQ+h0NwOc+qvo9yzLlHaO9BRBCPISs2Q4VRA0DtAKyLFO5r3alaYpejwVtyzOX5pi2d6MM2Gd/sjE3NLGkeQwD3T7pTVSoPGMDgQKwWq2ed53c2nyAlPJjNpu9YD2Lva8O4LCqU3+BfZdu3DA32wDE8krVa/QBGw3A0QBF8UqfsDsDML0SKwc4ym20jhAVAn2Wp9MqoNKgDFxua47E5AB1T1/lSfUbEiAxPROj3FZ2oxSgbrZJM3QlqMf/vgSGfod3J2jLzuphoZoU114g1PMv3gu0jMCCtKq22KeB9xrejVC1UKuA0M1p93CpTF1DltjeR5dBk1zLOKzzLK9tsBqrzHrnAEMF6vDjOLw4GWOpIShmLOZoec3v854yYSublwLUIlfCMl6sj76q05+iKHJ1PLYLlYQQ8hMxGa4eFR0CugyeUm0ZY+EcgD89igrBG0ClBMbIWkqyPxLTbsdusRqcqgPT2tCllGleeA5dz3njIgBHCGwipVQz/sbHI6gckqdbVZpqFCVcDMBMjowxpYQnRIxrb9sORe0QDrIKDiEYAFNqZXnTYaESnzoW280P/gohtpgjr3fOk29mpanrOCiEKADOxR3m9zNJNhiEqwVglFvbgYn6OQiEqwbQB4SrBxAbwiAAxIQwGACxIAwKQAwIgwPghuDXLA0SwBEC2wBIW/uNLpGDBXAmHNBjukEDcEBAG1/uNDGN6XXfY7TN0PWfLQevAHM36vPPGjcDwFejIwBfcreyblTArXjS145RAb7kbmXdqIBb8aSvHf8BaGVbXxWPG5EAAAAASUVORK5CYII=",Zw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABMNJREFUeF7tWmGSmzoMtsxOf/QSTU/S9CRNpjOQnGK7J+hPAjOdbE+S9CQv7xqvjfVWhBBwZJCBEKYh/3YxQv4sfZIlgXrwHzz4/tUEwGQBD47A5AIPbgATCU4u0NUF4jieBUEwPx6Ph/V6ve8qj94nmUopkjvrUy6nWysLIAUB4BkAFozQAwC8hGH46gOGQOYBEX9FUfTNR27TWm8AkiQhBZ6bBCulXqTKxnE811rvBDJpiViuRJ4XAGmaLhBxKxFMaxDxdbVaLevWp2m6Q8R5ZQ2+bbOkmfUnLT0YYz6v1+uDVBfXOjEAZKJa638ughi1mK8AwNLlDp4nX5EOAPswDD8PBgB7Uqevv2SnbfADaFhwpxVF0Udb0WtASYhSCNnhH4xSP989weH3b/OpzDWISsHl2Dq7g9gCkiShvVUMwGBmhgXzx/H3mdbvyZeJxYtfbq6VCLHZbLYciXJrc7Cu5JIrcOD6WIUIAM5UXf7NkSTnBkmSkDvNyhbDbf68GRcIde9IgBABwJGfy7cdfn1lqrZFSXxaKluy8fMaEQA+H05/pAv8U40UNlgcoJKIwfGGBLg6QKQAWBEgE8mGIo4snQCU7L8uWpQ30MZyOgNAAhxRgOLwT2PMntJWRKQEqUKA9G4URRWgWZd6gmX4tTl7vBsAFTeQpQBn4K/8PwPA4Lac7PhbwEmJQVygYOIk+aaLNFiEAhumfEjVNt9kk6AFXKeESMQBViiiCxB/F6j6tFOxLgBskoRypexHn9MdM0IvAOijORMTCF84fydyJF6ouwh1AeBuHMClskEQbC8XmdPx24THMfBfAYArMtwegA3dBgpcAWEfrtpfirxdoHyiXGi8PQDVO8mgUcA2502a7sC6yz8UAOkm3SFUixmPBQBTzfEF4HzH1jWFk1Gkwg42vypn+QJQ3MomAJ6WYfi1sZI8mjzgfmFwRFGgbRj8kaaLP1Z12f8ydHKeu4bBtgD0mwniPgxXravD3RMhg3MFl1vQsCSICkAPdxu0I8E4LKBbf6C7BVAmmBnA7S9Dd6sJumpqFws4bR4VqlW0agS1DQc09CQbr+CuPTQqW1dQJAAM4rws5BYcUNOVqqgnqSzb++kMgN3Y7BsADmT+UHIrFDRky++PGgBXN9pZjcwf+HSLRg3AuX12qv4VqkpK8eKe4X0AqHSPivJ2pY3uOP2rjRWRwTILY8xHyfxA7wBIzI/rDEvaZ650mYsQEj2yVLqO5Zuetf0wx+r2iZHst3GB57KCrk21CavFNbxpk3XPqVsEWu8sFGv9zzUVYkcPn4bslUWhUgYHcIH4ezzT78tjMwVcbOPUtXmD+Lq2ZonYCRKmIVuWWaYBSTju7AJ5TcA1OEVjbXut9a+3BIUapnwjxXFaObiXqZDL7jK5b3zwb94dqrhJ9j+PXKATB5zP252pNfcP68jKdyrtrI+UAHuxABJSM8NTSzGSYsbJv9XCg6+9Bqd6sYASCO7GaQFFZhXEEUvJaG2pF9nrcGYvUYA7XiKlIAier4YfT4sz/20annTInQUBbBGhOlSZy207ONmbBbiVfjc/Hv8b7SD1TQHokmMM9e4EwFBIj/U7kwWM9WSG0muygKGQHut3JgsY68kMpdf/8L0hffo351sAAAAASUVORK5CYII=",$I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAx1JREFUeF7t2kty4jAQBmDJLHMJjpKcJMNiXPgYOUGWprxh5iThKLkI1pQIBmHk59/dUk11lok7tj/+1sPYGv2BBCxUrcVGAcEQKKACggJguSZQAUEBsFwTqICgAFiuCVRAUAAs1wQqICgAlmsCFRAUAMs1gQoICoDlmkAFBAXAck1gzoB1Xb9aa9/3+/0OvM5V5YfD4eic+1tV1WnVP5hRxJZAj1cUxZe/BufcH2nEpmm+nHOvxpjvtm13XIgsgCGeMc4YY0URA7wuQ99tW+yq6jd5EskBH/Eee0AiiRG8AJE+ieSAIzdwuRFOxNFzO98L9EMJOWBd19vNZuMHbz/+/KBdmvj+w4E49cFZa09lWb7NmBcWHUIO6M8eQ+xfFSViKjx/TyyAkohPeL24cyWvCwQboARiyuSJAN4R7dE5exsTKdo5BzzWFg6RqMfEYbyf/uVu2/DeWFuYAzGX5Im1MCVibnhiLTyK2F8kDiy2c8RLArhmds4VLxmgP/FnXW9fejuW2OxcFMU23NX0j5GcMGJbFLFJJHbyOdu+sX1VarykCexg5ixxop8809520UaYcyu35EKGEJ/ml+svckhekmXMGOpgEoX3tks++CxaOLzgqdnWH0v5FGcpVnaTyFK87vicEJPOwh3InOTFljjSX1RlmcA1eDklMWkCQ7zIju7yVOU67pE+CqMY+5LPwg/Ji+h1S5U568SUY2KSBE61bX+dlzOiOOBSvCU7lhRJFAVci5czohggipcrogggFV6OiOyA1Hi5IbIC3vFiqzwDf3sWnZ39qYJdPvfEwgbIlbz+Irj+rLebl8d3cW47levzOk5EFkApvBzamRxQGi81IgfgL+fcMfrkwrpTWe7JXzG7IUbb+T7+tm37Rv2qLzmgv5mmaZ4QpR7DD237OPBYn0iHiFJ4Q+3MhccK2CXRGPPO8Wbo1COpLonn8/mDum3Dc7O08NTN/U9/V0Dw01RABQQFwHJNoAKCAmC5JlABQQGwXBOogKAAWK4JVEBQACzXBCogKACWawIVEBQAyzWBCggKgOWaQAUEBcDyfxlwqm8Vuar8AAAAAElFTkSuQmCC",QI="_wrapper_glpc4_1",JI="_searchBar_glpc4_12",ZI="_directionsContainer_glpc4_13",eF="_inputField_glpc4_26",tF="_dropdown_glpc4_38",nF="_dropdownItem_glpc4_53",rF="_buttons_glpc4_65",iF="_iconButton_glpc4_71",oF="_directionsInputs_glpc4_99",fr={wrapper:QI,searchBar:JI,directionsContainer:ZI,inputField:eF,dropdown:tF,dropdownItem:nF,buttons:rF,iconButton:iF,directionsInputs:oF};function sF({map:t,handleDirectionsSubmit:e,setIsPanelOpen:n,setSelectedRoom:r,availableShapes:i,handleFloorChange:o}){const[s,a]=re.useState(!1),[l,u]=re.useState(""),[d,p]=re.useState(""),[g,h]=re.useState([]),[w,_]=re.useState([]),[A,v]=re.useState(!1),[S,y]=re.useState(""),N=re.useRef(null),L=re.useRef(null),R=re.useRef(null),D=()=>a(!s),k=B=>{N.current&&!N.current.contains(B.target)&&L.current&&!L.current.contains(B.target)&&v(!1)};re.useEffect(()=>(document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}),[]);const z=()=>{const B=i.find(Q=>Q.info.name===l);B&&B.floorNum!==t.floorNum&&o(B.floorNum),t.highlightShape(l),r(B),n(!0)},T=(B,Q)=>{g.length===0&&t&&h(i.filter(ee=>ee.className==="RenderedRoom").map(ee=>ee.info.name)),y(B),v(!0),R.current=Q},P=B=>Q=>{const ee=Q.target.value;B(ee),v(!0);const se=g.filter(K=>K.toLowerCase().includes(ee.toLowerCase()));_(se)},E=B=>{S==="from"?u(B):S==="to"&&p(B),v(!1)},W=()=>{var Q;if(!A||w.length===0)return null;const B=((Q=R.current)==null?void 0:Q.getBoundingClientRect())||{top:0,left:0,width:0};return p9.createPortal(x.jsx("ul",{ref:L,className:fr.dropdown,style:{position:"absolute",top:B.top+B.height+window.scrollY,left:B.left+window.scrollX,width:B.width},children:w.map((ee,se)=>x.jsx("li",{className:fr.dropdownItem,onClick:()=>E(ee),children:ee},se))}),document.body)};return x.jsx("div",{className:fr.wrapper,ref:N,children:s?x.jsxs("div",{className:fr.directionsContainer,children:[x.jsxs("div",{className:fr.directionsInputs,children:[x.jsx("input",{type:"text",placeholder:"From","aria-label":"From",value:l,onFocus:B=>T("from",B.target),onChange:P(u),className:fr.inputField}),x.jsx("input",{type:"text",placeholder:"To","aria-label":"To",value:d,onFocus:B=>T("to",B.target),onChange:P(p),className:fr.inputField}),W()]}),x.jsxs("div",{className:fr.buttons,children:[x.jsx("button",{type:"button",className:fr.iconButton,onClick:()=>e(l,d),children:x.jsx("img",{src:B4,alt:"Submit Directions"})}),x.jsx("button",{type:"button",className:fr.iconButton,onClick:D,children:x.jsx("img",{src:$I,alt:"Close Icon"})})]})]}):x.jsxs("div",{className:fr.searchBar,children:[x.jsx("input",{type:"search",className:fr.inputField,placeholder:"Search location","aria-label":"Search",onFocus:B=>T("from",B.target),onChange:P(u),value:l}),W(),x.jsxs("div",{className:fr.buttons,children:[x.jsx("button",{type:"button",className:fr.iconButton,onClick:z,children:x.jsx("img",{src:B4,alt:"Search Icon"})}),x.jsx("button",{type:"button",className:fr.iconButton,onClick:D,children:x.jsx("img",{src:Zw,alt:"Route Icon"})})]})]})})}const aF="_wrapper_1mlzu_6",lF="_scrollableContainer_1mlzu_13",cF="_buttonValue_1mlzu_23",uF="_active_1mlzu_40",kl={wrapper:aF,scrollableContainer:lF,buttonValue:cF,active:uF};function hF({roomTypes:t,map:e}){const[n,r]=re.useState("all"),i=re.useCallback(o=>{e.setFilter(o),r(o)},[]);return x.jsx("div",{className:kl.wrapper,children:x.jsxs("div",{className:kl.scrollableContainer,children:[x.jsx("button",{className:`${kl.buttonValue} ${n==="all"?kl.active:""}`,onClick:()=>i("all"),children:"All"}),t==null?void 0:t.map((o,s)=>x.jsx("button",{className:`${kl.buttonValue} ${n===o.name?kl.active:""}`,onClick:()=>i(o.name),children:o.name},s))]})})}const dF="_roomInfoPanel_10nwd_2",fF="_open_10nwd_21",pF="_closeButton_10nwd_26",gF="_roomImageWrapper_10nwd_43",mF="_roomImage_10nwd_43",vF="_roomHeader_10nwd_58",yF="_roomDescription_10nwd_67",wF="_floorInfo_10nwd_73",bF="_navigateButton_10nwd_81",_F="_navigateIcon_10nwd_99",Xi={roomInfoPanel:dF,open:fF,closeButton:pF,roomImageWrapper:gF,roomImage:mF,roomHeader:vF,roomDescription:yF,floorInfo:wF,navigateButton:bF,navigateIcon:_F},SF=({isOpen:t,onClose:e,floor:n,room:r,handleDirectionsSubmit:i})=>{const o=re.useRef(),s="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExIVFhUXGBsYGBcWFxgXFhcYFRgXFxUVFRYYHiggGBolGxUXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGysmHSUtLS0rLS0tLS0tLS0tLS0rKy0tKy0rLi0tLS0tKy4tLSstLS0vLS0tLS0rLS0tKy0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgMEAAECBwj/xABOEAACAQIDBAcEBwQHBAkFAAABAhEAAwQSIQUGMUETIlFhcYGRMqGxwQcUI1JyktEzQmLwQ3OCorLC4RUWJFM0RIOTs8PS4vEXVGNko//EABsBAAMBAQEBAQAAAAAAAAAAAAECAwAEBQYH/8QAMREAAgIBAwIDBgYCAwAAAAAAAAECEQMSITEEQVFhgQUTIjJx0UKhscHh8BSRFdLx/9oADAMBAAIRAxEAPwB4UV1FaFbpxDIrUVusrBOCK4YVIa4Vg3ODMQQRWMQOKgdau3LRqvcWtRijcWql1KIXBVW4tAwMupVO6lFLi1TurSsIJvJqKy1YAJIGp4+Qj4Ct7RuFYIUt3CPnQ25t4ISGRhrHL5UAlbeUENbgkGCNDB4ipcDJUTroKhxuKt4iD1lKzB059oq5hSoA6w4eHuosxZRanVKjS4v3l9RUq30++vqKUx2qVIqVGMTb++v5hUiYlPvisYkCV2ErauO/0P6VIGHf+U/pWMR5KwpUvSLIGsnQSCJ0nmK7KVglUpUbLVpkqJlrGKzLUbLVllqJhWMVWWonFWXFQuKxiO3gDcnrKq/eaYnsECSatYTY6qZN9D4K/wClD8SxEQTx7asbOk8ST41jBhbNv/mj8rVlQ7Ow7LbUPBfXMRwkknSfGspgHoQrdcit0wpusrVaomMNR43aa22VYJlHaQRxt5OpHac/uqSaVbr27lwg38hzPqVkdbioIiDIXjxiqY0m9wPjYJ7V2kF6N3FxShdmRTPsKCQ0aMsMD5+NXHtj9p98DTwH+tD8bszprIm6GckEOBxWBbI75HGrODuHKUJBymFMzKwCJ8CSPKjNLegp3FXyY4qtcFWnqvcFRMU7i1TvCr9wVUuigYEe0ygjn/PGlvelLVp1BDZrkkERAIIGs+NOCp1h40B3w2ZcuPZKBSq5s85Z4qdJ7poUEBYS3pNFtl2QV4cz8TXHRZVireyR1fM/EmgEt27I7K1i0yqI01/WrCCo8eOqPH5VjFJSTMk8KMYPZ6FVbWSAePnQm2OPh8xTNg16i/hHwoIxtMOO+plwwqS0tTBaJis2FXQxw4VnQirRWuMtYxQxdsBT5fEVTuVf2jovmPjNeX7U3rxAu3FVlyq7AdWdASPlWow9MaiY159/vXifvL+UVwd6MT95fy0aMPztULmkb/ebEfeX8taO8d/tX8v+tCjDdieI86v7NXSlzY2Na8oLRIBmBA1OnuFNGzl0FYxcfFIpgnWsrdrCq4zEamT5T1fdFapgD2Kya5Brc0QG5rJrU1qsY2TXnNu+elvIetFxwJ4jrtlgzXok1wyjsFNF07CnsANnY4W7B6TTIdSx5mNR2jUkdmorvD4tWvLFwPmUkQCDliVzDxJ1oubK/dX0Fckd1M52A4eq71O9V7lIYguVVu1ZuVWuUGYpO0GRxFDsbZzozsoBzCOffRG7UGKH2J/EKVhAlwDn2f8AxVnZg6v89pqvfq1sz2f57TQMX0FQ4/gPGp0qHaHBaLMVbY0Pl8aaMOOqvgPhSujaHypssroPAVkZktsVMq1wgruaJjoioytd61yaBgftXgv4vgprwvEvmdz2sx9STXtu3LkCexXb0H+teGCsE6rK5zVmaiY2K2awVjVjDXusn2Z8qc8GIFK+7luLY7zTTaHVjt09dKUwRwqQi/hHwrKlC1lMAZwa3NcA1uiA6mtTWprU1gmya5JrRNVNo4gpauOvFUZhPCQCRNFK9gFomo2pMt7xbRZVdcGLiMoYECJnjEMdO/3VFc30xSANc2e4VvZaXCtEzlYpB4Hh2V1/4OZuklf1QkckJOk0/Uc3NV7hpQ/+oaj28LcHbDjTyKij+yNrW8UjsgIyRpmRvaMa5Tpw50mTpM2NapxpDlhteFQvab7p9KobzLOGcdrWhqY/6xa58vGtNuVhi6nLdAZ4OW6csFWYnMCRMiY8qOLp4zhqlKvS/wBxZNxV068ef03/ACJL9h/uN6Gq2KQi1GRiS6qANDLGBxpfv7KtnEdFbv31Jd4+0YjIhuKDoO1V56z36Hd2rbWsQts32ZWslybpLAEdFrqBIl29B2TXXL2ZoWpyvvVDU/79uQdfwl4Ak4TEgKATC22gMYBMP21FgscqyrWsQIksxtKFUAmSxz6AdvdRTaW/KhcVay5biRbtlQOjudG7S7+yVnTTXiaqYcudmZm6xe1fJJME9Z9YI15V0w9nQ03OFb0t33ViRcq3f9/2wiVgkVW2h+75/KrV32m8TVXH/u+fyrwJLcdFS2DrJEDgI11k6691ONsaUoqND4j4GjeD2i7GMq+poILDIrtRVNb7/dX8x/SuxiG+6Pzf+2iAs1waq2scWzdQiCRxGscx3VSxW1GynJbcNyLKCPODQMdbTshyVPAoQfBtPlSBc3LGuoVQGYksYCqCxJMHgAae9nO91hnEEkLwjmdYPiKEbW3gwgS6hN8Bhds5glpoPWts2XpJjjEgTVcWGWR1FBuhKv7tWlMHFWgewuQdRI0Kdhqvc3fXlicOf+1UfEa04jebZ5t9HJ9gKCcJanSZaQ8yZqLbu1dm4hy1spZHR5Aowp0OV1zSJk9dTP8AAPL0I9BDVTbrxr+CalPul/v+BTtbvEmBesE9gv2yfSpbu7N1DlPODplIIOo1FMGBGAmLdyWmdLV4sAOk4RbJGjp+Twg9j7IDKeRUQCGUjJ1CGVwCDKniKh1nTRw1pbfpRROwNs2yFAUcAT8aPWR7H4vkaD4ISaNYISx7hHmdT7orhCFAKytisomLlneLCtwv2/zCrdvaVluF1D4MK8mOw16JXDtJ6PQp1ftGZSQ3YI8zI5a7TdzWTcQQRAuLoevk7ToNSfCvafsnwkU90z2C3cDcCD4Gtmk36Obk9OuVBkISUBUNBY5iCeOseAFOyWGbgpPlXl58TxTcH2JtUyA1S2sPsLv9W3+E0XOEj2iq+cn0FU9q2l6G4AWYlCBAjiOzianHlAAG7D2BhrHSFk+yEMzW0Vj1dAzKZJ1I4mBy4VS3lxv/AAFglvs0fKIM+1buATl1Pj39mlLm28S1zA4ex0F5WtFJzWWHs22UmZ11PZQS5tS89oWLl5mtoRkt9XTKCBqdVABjXtr6fF0uqamnvfd9vI3xSlqaSaeyXH1b8/Db6jDsS90g6Ug5mdm/fkfaWxo41J1PafiprdBIu4wNPs2P8GnEcKXNiYy0lkK7KGDHq5wDq9vjI7FJ4/6mNgLbcY0dIAh6DrBgR7IkTw46UfaVrp5t/wB3ReW8Ugnt+9be0yL1iGtMyrLvlW/aLHKoJ0HdQXfDeS/n6LCZksghluLauWnDEQ8SF07dOZrrEX7eGP2KlyeJTSBxjMTB8BQzH7auuZVsXZPcrRz7xXg9J10cS3jq9Tmlg+NS32KG7uIC4vpcQ5EyWuXJkliASec8+NG7WNtu7G2ely4R5UBX1z2Bly6g8OBoBg9vYxLoFzF3FT+NZJnuy8aY9oW9o3bLN0oSyUljcCocoOaSVUsugnyrr6n2vGcWlCrVLf8AgdQbAWKxpCnLgwG5ThlAntOUDSrexr6Oh6TCoGAJfLbZRxMcGE6dk1Ds/YONv2y1m+lxNRK3WjhqOso7aL293sTbUM6KABqc68fM15EutzxWzf8AtlVhiwjh36QZ14NrwI9x1FR4+y2hjQTS7j9q9Hla3cXN1uBB1ykj3ii2CxT3bSPcbMxWewCewVzxyyfKM8SRInDz+VX9l+35H5UPTh5/KiOyfaPh8xVkRYYFbrkVuaYUiw/DxJ+NbeuMMeoK0+0LKkKWljOiwcscQdeNJOairZSMXJndi8ts9K5hLY6RjBOianQUD2Ftmxh7IQ49lVnLhvq7rIJZiEziDq8yZq5t/GWzg8UUOvRRwI9shfnQnY2xMHdwdtr1u4XECOlYHVQSyWi3skniNOVet7NhrxOd967P9SPUfBs8bn6WGsJvFg1a6xxlhzcVVBuW4IChpkcPaaaUvqWHKopv4IwVLHOgJyqwIkoCQWYHXs1mAKMYndDANcsJbzoLt0JJuqwC5WYyQTGi1BvhuPg8Pcw6WL1xuleDwuEKFJJQKNTIEePnXd004456YyacuzXh4JcehLE7VRxNLj5aKLbIsm0yo2GZiDDZ7JOY2raTmJkDMLjd0jnrRNsG4s2ERrZKWkUxcT2hJcce0xSg+wFmyFuMTctPcb7M6ZC+i/e0TU8AZ7K6XdkhWctBVLTqrIYfpmhRmOgWJOY6GIrq6rocnUKpSWz8PTxOje+B22bgm4Nay94ZW9IPdzHOrtmx0ZMnQmQToCIHv04Uq7tvlxd20EsnoRdYXEtC2zEDowJ4hTmnL20z7AxC31XMW00iT1W5q686+c6rB7iehjLctdOn3l9RW6vNg3BjKfKsqADzJcfme0gkAMoYaHMQ+n86U3o50AzgZhoHWAPrMjQ8IPPmetwpGwyjpVE5jnHszHtDtEmnG+okTIJLf0f/AOxBgg+PCdRlr7Bb0dsXZc+jt8t3FkmIu6kxAiZJPCmPae+NtCQtzpDHsoCTP9kRSduvcVbe0CwBUM0g6AgAzM8BV7ZW2sPoossOwIA0+kGvlPaeRx6iSRJQUm7LZ3jv3B9laQE8TdZge/qBfnVS4+Jukh78DsT9F19TRH/b+DGjE94NtuPeIqHG4yxiUyWsX0EceqFmeQLRHka8/wB9vuF4l2MweGYatdcxyLz6/p/Ig21ibltGYNMKSuaCAYJHH+fDiQt3cdYLLtC1A1JIB94eq67mXH0THYd+7pCD86vHNFdyTxy8AFh968RdMHDYa83YcPnb0Bo4u2V6JrX1e1Ya4FLhV6NuqZEqe+pMDuZtKyfsr1pQfuXWHjpkFNO5mFvQUxdtFA1DXXtu5Y6aKrERHM61suduFKe3hY0ItPdCJj7n2T5TDZTBnnGlC323iIIW8+UjhIIgjh769+/3dwrDXD2W8baGfdVa/ujs9VzNhMOqjiciqB5iK5IOKLO2eSbJxRa2jSZKgnxohi8Y623YMZCkiSeIEiju18HgVVhhcMBAPXzXFUQP3Vza+deY3NqXCIzt7qTRqew10htw30g4lWFsIjAlQCdDrEcu+jWJvs5zOxY9/AfhHAV5rsdpuWp450HowHyr0S5VJbOheUec4jCayXT2u0EiTEwDPOm/ZjDobQB0yLrw4ga0ExWXI5Eg5THXbjGmk0cC9VdNMo08qeW1E07svMmnU60EgyQI0FWME7ISShOnIqfnQu3gV5IPSplw3iPAmq6iNB5ccOaOP7M/A1Nhr4uMEQMWbQDKw95Gg76XltMODv8AmNdPvFfwK57ZDFiAc4BMdgJGlCWSkGMLdD1a3aZVA6QSB2H9aWr24V8YlrwuWspzadYGWFvuj9w+tDdj72Yxi7G8xAuMoBhhCmOffNEn36xI0K2j4qR8DXJPM3szqhirdFbbuykt4e5av4hLJulQGIlRkbNHETIoxsfeK0iWra42wQhExk9lQoGUTObTmYpJ+kzaLXrWFZwAz53IXhoFAifGquI3Nxt62HFvDZUgFkhGJIgBpGtfSdF0ql00baq73S5OPL1ywSak0r8fL7Wel7WxSYq7hz9a+zt3TcJUgMDkYKRl1OrHSYj0oHvXhr9x7D2UF0WxcJ66oZeANWmRAngONeeXNx8cBm+rkrrqrIRoSDznkapf7LxaObYt3s4AJVMxIDaAwvbXXhx6ZpwnFtdv6/M5cXUY+079f2+4z7F2FjEe4160zRZdEBvdsABcjTpxC6DTWmI7OuZsuRspuYVSQWYZbSyxJfkDxPBSNBXm92/jbPtNibcfeNxY8c1dW95cYvDE3PMg/EV2vJ1D3qP5/UvGarYYtni9afaGIKMHCHKWU9Yu/EaDNw5VmwdoXeldoAuLBdYgOukafeHbQa1vnjV/pp8UX5CrNvfzFjj0R8UI+Bryur6XNnyvI0h1NJUemptpiJUgryPbWV5wN/r/APybPof1rK5f8DP4G1IYcZuzZt2yzXmtgR1yqnKZ0OYAHzqjY2WG/Y7UtMeUkEzMj9489aZdubAx1+09pTbyMIgHz1JWqOx/or6OHum7dYQRbt5UkjUAFuPqKMet6hfiG94yC1sp8Pgsd0l225u22IZTxJUjmBrJoDulijkkGGXQxx0puxW5633KfVfqw5lndrmuuqzlB586Vt5djNssKbF3pEdpYkAFSsAKYkZTJ104Vw5c3vcmqXJSnVkW2rpfGlu20pbvaSAT5AelBNpuwuESYZJGvNDJjymiuxtj4nat641h0tEIJnNk6sKFzAGDz9av4j6LNpkgl7Dx2XW58faQVCda7bGi3ppIUFvvyZvU0Y2ffLW1Y6mBPzq7d+jraSf9WzfhuWz8WBqlc2LjcJbm/h3tpMAsBGp01BpJpSWxSDae4QtGo9pXyltmXiBPpQ1dqZeIHrXN3auYMsLB051FYnZVzVDDa+kLG2oVbkqAMshTpAgaqaZcFtW7jLa3bzEnkvBRpxygAT5V5TYuyqyRIAH5dPlXpW6pnDL/ADyFPOKRNO0X740PgfhXndrE3mVSbSNMAk21OswfZbuPKvR7o0NeX7O2hlzAPHWJ9et/mNNiSdk8ja4CeEwWa6qiVCMLpHR5OLyFJIkiQ3OOFODikzZmPJvk5pzZE8RJP+angpWycghdCdjthuqTmmWUcDPWYL86Zdn4Dqrm4KAO8kCjlvBmBIqX6v3U73Jp0DmsDkK0MPRP6vU+Cs2s6i9cW2nMsYmOQ76z2AtzrYu6pvIXZ8g/d6sz2niNKg2/9HNy8gVL6AhgesrAGOWhNXtub/W8PiVsWRaup0YY5W4akQGEjgBpFW8Nv9hm9tbiHwDD1Bn3VzSyOzojj7oU8F9HeLtKQWstLM0q7fvMTzUdtVcZuXjBMWgfB1+Zr0JN7sE39OB4q4+VbfefB/8A3Fv1P6VN03ZROSPFd/rDdJhLEdYWwpHYzMFI9RTTa2Xi0sHqXWudJ1b/AEsrkyibeRuJkEzS7vsTc2raC8Ytx452b503Xb+KSyCFu5gWJY5GtMo4ZREg9s19t066iHT41i0/SV+nHbxRHBj6PK3HqJQu9lJrjx389jlMHjkVM1jFNKgnItoqZ6xgKsnjznxNQ7m4tRjcY+JlGXolUMjZxlDEdUEQ2oozZ21ZcW+j2gpdBlHXSQCFzAQdQSo8Y1oRuohZ8bfN1WK4hoNyW6To1A8Dw51LIlolKUVBv8SW/P7ngZep6Gm8WJOSq1Wnb68HH0sbVR8OEGVmdkhsuV4nMQwBM8KU8MFGItBrVhgtkwhNooeqx+2MKGuAE8etKrRT6SNoB7dmRbXO4uHomDZeqZUgRlYZuFJm0tqFnzW2ZRABiV4ciMx8ePE16/s/HLDgcZu278vL7no4oe7T149Dv5btvzvzOsBhA632yFsgHIEKCwEk5hry4HjyojZ2KufCh7NzLdhjlS4HupMsLYgyYEAqI1E1DstlGEu5i+ZnGSNEkR0mY5CDKkaBhEcDpR2zeVcVZK4hl6OzJdykJcCnSyFZNCcvMNqa9Fu4vbx7eX3ZaMLQqY/DWhccW1ITMcoYnMFnqhpA6wGh041lE7WAu3BnFpWBJM5uOpnUtJ1rVdSjgSppfkBxPerW0RztXB4BG/wtQjevaOONlvqaC3wAEqbzAkT1ictrSeEnvFL1vfeP6E/n/wBKmXfkc7H9/wD0r8mfUzOtdPEq7D2XtNiue50KDiCwus2stPESddZnWni/sy0VANpSOwqD8aE4TfDCkDMzISOBUmPNQaK294cIw0vp5mD6HWoym5DqGktYCwqaKAo7AIHoKtYjEW7a5nZVHafl2mlTaG9mpXDrJ++3DyX9fSl++z3Wz3XLt3nQdwFKrC0Mm0d7ZlcOn/aMPgv6+lKO8Vhr9p+kcsxjVjoOsNB2VdUcKobyOVw11gSMoDSND1WU6d+lPFboD2QotseSQmQkGCAdQYmOHZrUDbvXDwX0M13hMQGvM1vEX8rIHBypmzJmQhswI0BXXTj4Ua2cbjABMSfO2jRMnWAI1nnXQ8bXcl76+wmvgGDdFkbpS4VRGnWiCT2fpXpG6tkpYyNEoSpjgcpiR3aUPu2bv1nCi5dR1LuerbyEZbTRJzGeI5UwYNIa4B96fUAmlycI0HbJWFKV3cj7reo/Sm80UtWe6hjBkPMtkbrtnZ9T0d2IA45Msx769M2bs4LDvx5L2d57+7+RatWQOVTXCFBZiAAJJPACqNW7J6nVEVxZrg2amw2JsOARiLMn91nCn+9Vi7ZC2zcLJkXiwdSvGOIPaRTaGJqRR6Cl/fdCMKfH4Bj8qZrN5HEowYTGhnXs99L+/wBphT4n/A9JLgfH8yPKNjMxxKkkmFOpM+Gp8abXOlI9rEFHzKYMevdRK1vG40ZAfDSoZsUpO0deOSQed4qNDmdV7WA9SBQPFbwDLKoc08+EeVEdmYsnEYJSATeKPpplBciO/RJnvpYdPPkMs0VsEMWwfbgzTlV1HVBY6WwdAJJMmnnbO0bS2MVlu3B0dtujRhGuQkq2YDK3d3UlbY3cxy4x8TZVTLkqVdAwEQNHI105VBtHHbTFm5ZazdKXTNzqM8kxqXUkToO+vuMePHmxQ05EqS2tep8/1vs/F1C1u9afHavvYjxTruxvlawuEfDPYLM2frjKYz8IBjhSjcEHK4Kt3iPVT8q6sIFMtBHISDJ8uVepn6bF1MdE+OTtxTlCVxDm+O3rWMNvobPR5ZBEAFpgAwPA+tL3QNMZT6VOWcklUA/CoEeBAqFUPAtHcZ+FUhgWOKjHgbLkllnqlyMeDRfqltMyF3vaoMuqiQDcYOD7RYAEDQyDRXEYhxiMQ/7QLa6POQygJlChQGzmSOEnlxrMJbYjAWc1ph+0yHMq2yTOa65DdUhVcwIAJ0qricepOLfo7RN0wDlELLEk2SCsDQ/unQjtqkVqdVfP5yS/Rf8ApeK2SLOyrgW0g6BTodWFkkySZ69smNdJPCK1THsqyq2bQbZV66cinpOmZc4YBlbKLvVlSNPhWVw5Opjrfw9/GP8A3F0oVhXOKUlGCmDBg9/KqVjaqkhcrZjyEGreIxWQS1twO3q/+qvzrRJb0dmpcC+l8vaViTmRipPOG6y+moqWzi3BHXb8xqsbwFy6ADluCRPbOYe+a0rGuhpEotnpuyv2SeHwJq0DQ/Y9ybQ8/wBfnVlrtc5RljNVXbizhrw7bbfCuumHbVgYY30e1bAZihHEAaggak08Yu9hG1R5Bh7pUoRMqSvbpy+Aoph9qMpnN7qNYncjEICWsXBGpgBoHacpPZQv/ZA5E10y8yCRh203S2mkdUP/AHgB8qed2sSbtsueJPw0+VeePs/LeVeMqT6EV6FubaOQqBJmABzmall4VFMfLDVuwWIVRJOgFMgwUVNsvZ4siTBcjU8h/CP51qdta0I0JOVlB1CgsSABqSeAA7aStvbZN85VkWwdO1iP3j3dg/kQb2b22muvhxcCrbYqwMjMynWSdIB4Chti8riVdGH8LqT6AzXVjh3ZCT7HQFaYcABJOgAEns0HOunMCTTf9Huws5+t3BoP2QPMjQ3PAageZ7K2bIoIOOGpjTulsL6thwlwAuxztIBgtHV74jj2zVvamwsNiEKXbYZTyBZeRHFSDwNXgT21hNeY5N7nXpoRcX9Euzm1UXrZ/huk/wDiBqE4r6HbX9HinH40VvepWvTiK1NHXIZHzvv9uK+zrSXGvJcV3yCAytOVmkgyI6vbSrYvXrt2wqk9IMlq1k6rDrQgBEay3GvpHfXdxdoYfoHdkAYNKhZkcAcwMDwivP8AA/RU9i/bupezBGDQV1kagzOhmDwrox5ko0+SU4NysXVbbNgkOuJyjmydIPWGqZd78WnthD+JCp9xFew2bhiCVBHKaV333wLyrXYjQh0aOMdhFZZJPgdxS5E8b6X8oN7A3MhEqwD5WU8GXMkEEd9Vf95Nm3J6TCBe09Eg18bZmvV9m7xYS5CLibGUKAqrdVeAGmWQfKvLfpWsq+KGUBQba6rEGC4mRxrvjKcVcZM5XJeBDabZVzg/Rzw69xT/AP1kV2+62Eu628WfzW3+GWkK5hyKd93NiYO/ZU3bbq2oLo54g81aRwiuiPX9UlSm/V3+ptmtzTbi3F1t4lZ5SrJ71JqC5uzj1UqtwMpMlVunKT2lXgE1Y2hufdUj6piXnse4UkaRkKiJ4yD3VFZ2dthDC3MxH7pdSfRxMd9VXtjqIOm0ZQvgqnZW0P8AkjyWx8q1RE39sjToQe/IPkayq/8AO5fL++odMvFgVNjBBpmL6HpQxWNZhFHEHtPbyqTEKzGWJJ76g2XtoKttCYCqQSwJzMWYgg8lC5R5GiuG2hZe6bQZDwKvMKxMSNeBGvpXzs1ks6McoJC7j7UQ3YamVeymHaODQucOQA7IWU/uwJ1B7RHDuoPZS4iFGw9zOkycsWwBrmLeHrRWprgOqKlyNuw7v2I8vgKnuXNaFbAv/YBj2TwjTWDHhVZ9s27hgOsd5A9ZilhjcnQZzS3CWIxnIev6UPuXJqM3Qefpr7xVS/iZ0X1/SuuMVFbHNKTZYu491BRXaDxAY5fMcDTNufgFuWSzCTnI9y/rSWor0b6O1nDv/WH/AArS5LaMi3ht2LPTdMZJyZMpjKNZJGkzTHsrZ9qySbaAE8Tx+PDyraLVi0tSSCWi9ckVoLXRFMA+bN7v+m4n+uf/ABGg8Ub3yH/H4oD/AJz/ABoNFVQr5HX6L9gXcdiCpZhYQA3WkxrwROx21EjgJPZX0PZshVCqAFUAAAQABoAOwRXz9uPvTewtprVslQpLsCikHNOuup0EeVeh7M3/ACVU3F4gGVXt14ZtK4c7bkdWOPw2egxXJWlzD72KwlbbXBz6Ih2Xva2crjxgjvqbDb4YR/6XKf41ZffEVGh6YcM1wSahw+0bVz2LqN+FlPwNTMaxiNm7qjJqQmuawQTtqwvRu5HsqxnwBNfPN+yew89eXGa+l7qAgggEHQg8weVLmL3MwLz/AMMintSUP92K6MOVQ5J5Meo+f3HhXAEcNPCvZ8Z9G2Fb2Wur/bzf4waB4v6L/uX/AM9v5qRXQuogyTwyPNc57TRLAbfv2VyKVKzMFQdSNTPHl20wYr6OsUvsm0/9plPvB+NCcVuljE44djz6hVvgZ91OssH3E93Jdi3h987yjW2h8JHlqTRWxvtbIi5ZYdhRhp3gGAD30m38BdTR7Nxe9rbD3xFVy44aT4/LyotRluzJyiekpvkkaOY/jtgt5lXAPpWq81JPL4VlL7qI3vJBDZ7oLahrasIB1k+ccKj2stk5WW1lAIzhdAy8/A9/fXOGEKPAV1ecEEdoodzVsdY6yiBbuHe51NQGM5R/BIqbG7UxPQOGvo4cDN1QHjTKVIiQdATx7aq2F6kd0VVv24tgTOtEDQ6XGXocqMCOjRdO5ApHupBpu2XqjAknXSTPZpS6cLbOgvqDzDq6wewMoYHxMUmPlj5OERYPRxRlaEpayvEgwRqplYPf50WWqkiVa9G+jU/YXB/+T/ItecrXo30aWW6G4xBCl9D2woBjt1pZcBQ621qYLXCGuppAkk1grkVsGsY+fd8NqXRjcSmYMgvPlW4iXVXrfui4rZfKONBb+NV1I6G0rH99A6nv6ufoxPcg7oq7vmf+PxX9c/xoVdw7KAWUjxiefEcRwPHsNWEDO7yjLdj7qz49erP15hdtJPVyj5/pVfdlZW94D/NWY1Mt6z4Af3m/WuaSTmzpi6ghqtuRBBgjmOI7weVX22qzftlS93uCH/71CrnzJHdQ+2NKxjXLdFy2ww7cGvWj3hL6/wDlsB5tVmziLifssco7i1+16gqV99CIrgmtfkHcarO8ONX+nsv43LB/zBqIWt7cSBL4ZXHM220/u5qQGNVmxwRwJgnhGnvrKN8GvxPTbG/tg+0lxfDKw+M+6iFjerCPwvAfiBX3kRXie0nJusxYyY1nU6DUnnVa3i7gYwxgCO3Xjz8qdY7Qrkj6Fs422/sXEb8LA/A101eJjC4pQD0YbSeqyM3ojEg90Vibw37TZS11D2ZmH900uh9g2j2dlFRtaFeXYffi+ONwn8Sg+8a0Sw+/7fvLbbwJU++aDizbD02HFUsTsm0/tW0b8Sg/EUFsb72zxtsPwkMPlV6zvXhm4uV/Ep+U0N0Zogbc/Bkz9WtflFZREbcw5/prf5hWU2tg0+R4dBIHZWZaPW8BpXL7Prr1nNQETSq+L5eNHG2fQ3aGFKtbHafhFGMlZmti/sh9G8v591LuKX7Rh/EfjTJg7WSZ5il/HSLrEaGZoQ+ZhyfKiO1IYA6aijqUCthmObUxEnjHITTtuxsB8XcgSttfbfs/hH8R/wBasyKLW6O7jYt8zSLKnrNzY/cXv7Tyr1jD2VRQigKqiABwAHKocHhUtItu2oVVEADl2+J76nmpt2MSJXU1GDXS0DEsGuhUYNbrGPm/eozjMT/XXP8AGaGvdZtCzEDgCSQPAGnP6WFA2g0ACbaEwAJJzST2nvpMHhVUK+Q/ukNLn9n51Y28o6awe0gf3l/Wud3b5fpWIE9XgIHPlW94n1st91p9Cp+VS/Gyr+RB29iLdvR7iqSCVBmWy8QIB18a1avq4lWB8D8RSnma/ca8QYOiDsUVvIQZBIPdpUJwjdIvjtq2NZqJ6AptK6v70/iE++phtg809DU9DHCT0v7U/bW/L4miQ2kD+6fdQraVzNdtkfzBmqYlTEycE2Mudc/zyqLZ41WebAnzM0T2NhRfvsIkBWPjplUa9rMtMG08Fh7Vq0Ra67r1WGkEKCS0d1Nfwit/EBv9oKXKc6uriWIyk5l+6wDr6NIFLGD62JY9k/pTGlSnFRHhKzi9hLLcbZQ9ttjH5WkekVSv7GB9i8v9tSh9RI99EHqMmgpNBpMDXdh3wSVUHQQUdDwnkDPZUgweLHC3d9CaJVo0/vH3F0JcAxvrg/orn/dn9KyiWbvrVHX5IGl+IQStnn41qsokjYFBtt/t7Pn8RWVlNHkDL20dMsdp+FGr1hCsFVIjgQCPSsrKMQvhCRtu0qXIVQo7gB8K9n3JtgYKzAAlZMDiSTJPaaysqr4Jhp6xOVZWUrCdL/PuqUfz6VqsrAOlrf8APwrKysY8T+lf/p5/qrfwNJT1lZVVwLLkPbr+zd8vnXW3/YT8XyrKyo/jZX8CCGDUdEug9kfCoMQKysrk/Edq4KF0VwtarKqKTCqWK/aJ51lZTY+SeX5Rq3C/bt+H9T8QPSi+8o+xwv4f/LFZWUHwI/nETYn7S5/PM0xpWVlLm5HxfKafhULVlZUihlctWVlEBo1lZWURT//Z";function a(){i("",r.info.name)}return re.useEffect(()=>{const l=u=>{o.current&&!o.current.contains(u.target)&&e()};return t?document.addEventListener("mousedown",l):document.removeEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[t,e]),r!==null&&x.jsxs("div",{ref:o,className:`${Xi.roomInfoPanel} ${t?Xi.open:""}`,children:[x.jsx("button",{className:Xi.closeButton,onClick:e,children:"×"}),r?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:Xi.roomHeader,children:[x.jsx("h2",{children:r.info.name}),x.jsx("h2",{children:r.info.type!==""&&"("+r.info.type+")"})]}),x.jsx("div",{className:Xi.floorInfo,children:x.jsxs("p",{children:["Floor: ",n]})}),x.jsx("div",{className:Xi.roomImageWrapper,children:x.jsx("img",{src:s,alt:r.name,className:Xi.roomImage})}),x.jsx("div",{className:Xi.roomDescription,children:x.jsx("p",{children:r.info.description})}),x.jsxs("button",{className:Xi.navigateButton,onClick:a,children:[x.jsx("img",{src:Zw,alt:"Navigate Icon",className:Xi.navigateIcon}),"Navigate"]}),x.jsx("p",{style:{fontSize:"0.8em"},children:x.jsx("i",{children:"From Main Entrance"})})]}):x.jsx("p",{children:"Select a room to see details."})]})},xF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAsNJREFUeF7tnFFOwzAQBZMzIAH3Px1C4gygNCBa0njX2+c8CtPf2LvpTNZO7LTzxMdKYLZmJ/mEAPNFgAAEmAmY01MBCDATMKenAhBgJmBOTwUgwEzAnJ4KQICZwI3pX17f3lshnh8fmhc5FYCAGwmYu1MBCDATMKenAn6LgGU2vTIdMwkPFkQFDAYchUdARGjwcQQMBhyFR0BEaPBxBAwGHIVHQERo8PF9Acs96TxxG2oTsCZGwI6AaOjIe1uv9NMbVjyI5bFdCviEmO+ebkkFDK+AtgsEICBdrYc21M0BVEBJHAJK2HSdEKBjWYqEgBI2XadIQHT3ojqTf/tWBAJUl1AxDgKK4FTdEKAiWYyDgCI4VTcEqEgW4yCgCE7VbRGws4J8SsFtqIp0cTEOAQgYTKAY/urY3RpLknl+hqACikNHxDvrCgGDBESCvo4joCDg++ru3eN9n+ZpvthTR0BBwKZLdry5kgsBCgHZ8QYBeVLRE+ze+zn5DGtLKoAK6L1mjmnfeqFqGfKfgt/lHnOW+Sx3tyMWDUFHDR15xO2WCFCRLMZBQBGcqhsCVCSLcRBQBKfqhgAVyWIcBBTBqbohQEWyGAcBRXCqbocJiB6gVF+IB7Ehazjn6/vttX4EDBGQrw8EVAVc2Typ7KcgIBJQoZovgMPW8TtOqdmUSVhFshjnbwg4VVXuvxmKnIZ1MwnofWsh//2ZA6I5YOf4vYHLXxLtlqYK2J4UAlRKqYAuklRAFy59YwTomXZFREAXLn1jBOiZdkVEQBcufWOTgO2DGLeherkXEaMNGQQkBUQgk2E2zRCQJKcXsP465d5eqk3iCpt1zwG9ArLL/1RA6Gpt0CugGfbMDgIcAs5yIgABSQLaZjfMAdpNFSogKVY6BzAEnX5TyMdIAAFG+EtqBCDATMCcngpAgJmAOT0VgAAzAXP6DxlUTXCzOiKmAAAAAElFTkSuQmCC",AF="_modalBackground_15sjt_1",NF="_modalContent_15sjt_14",CF="_fadeIn_15sjt_1",PF="_reportButton_15sjt_22",LF="_reportIcon_15sjt_33",kF="_inputField_15sjt_44",EF="_textareaField_15sjt_45",TF="_buttonGroup_15sjt_59",jF="_submitButton_15sjt_64",MF="_cancelButton_15sjt_74",$i={modalBackground:AF,modalContent:NF,fadeIn:CF,reportButton:PF,reportIcon:LF,inputField:kF,textareaField:EF,buttonGroup:TF,submitButton:jF,cancelButton:MF},IF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAABMZJREFUeF7tnGuS0zAMgBV+cYxyk+Umy0mAk5SbLDdZjsEvCsqjm2Tjh2Q9nKLOMMyAY9nfZ8lxm3aAeLkSGFyjR3AIAc6LIASEAGcCzuEjA0KAMwHn8JEBIcCZgHP4yIAQ4EzAOXxkQAiAKwA8O3H4/i/uN6fYY1jvDMjAx6HdCmxq2hTxukrwFOC58vdW3CR4CegJ/iLDRYKHgDJ8kcpSLD1HDcwlWAsow2dxE73IVIKlgDPANy9HVgJc4TMrmkkmWAigwP8FAJ9EC8q2swsAvAAA/r15JSSpS9AW0BP8BXhSQkK8qgRNAT3C706CloCe4XclQUPAGeBnJBzsBm//JF6OpAWcCX5CQlYAXiMqQVLAGeHTy9HkR0yClIAzw6dLmK4QkSAhwBj+cEu9TT0Xj5Y5jbeoA8DlVnd6a5bQMlj4AHD9U/9hitQhq+ZDgpaznOk5oUXAdQB4LtGYSUjBx+5KIVvmNA73I8Dld+LELH1Y4w7WuOysp61agtaBTDKBI8AR/shHPQNWFtQlcASUACzjlyw765U5xU9vkpw55faMWcJwKbu/j6x6D+IMtkaAFnzrDODcopKYkhrPoykJ0ISfEXBPCc6calZsbTkixSc1rhTA6bMGwNKmtAA046OE18JgSfFJjbsSYLcH7HmLLgAhARsanD7PkgGFPWjkQJo/qXFXGfBOmfoesCqB2fcpSExJjfsWcDfCmVN7Br45IcUnNQ4B8gfBEEBZ+1PbHjfhzSw4UikYRAFQAmtUAA6shwJwOgEDwK1ggCOVwqGfBXB8M0SaP6mxRgpSyPcTv4vb0OQgOFIpHvrJgONRk+ZPatzPCsz64syJuAC6yIDkmA0AeAuQi8+B5V4CsutP/4uHovM/pYBCveDMiViCes2AaWlqA6DA0mj732eABlRKnyGAQkuhbQhQgErpMgRQaCm0DQEKUCldhgAKLYW23QvAr5nis0EP95of2h0fS8kcBkm34aTGle8FIfzPyhLw+Zyv8+8MYTz888UgJj4X+yR5ENQQgOPTlJB6OEo7Zg38JTmqs19LgKaE3NPZP+fsqwZQ0fACA1zhVlz5S1ckpqTGcwT8iS9M/5qXxqrEGvzupwbmwUg/l4pxDld+Yg/AMvijBgzL1qpjTwmv43e40rPkLKqj3pLwE6HJ8Mn1ahc4L2G7RCQzAX9sI7UR4upDEK0vE/itAvB6j0zIPaEscQs8wR/g6f4E0LyYpMrOenVIpKuXhKU2Y3bh5otfGW09f5it/NY9YJ/iHhJay8z+enP4EiVoPYmihFUKS+4JEiJc4EsL8NoTWgW4wdcQcDYJrvC1BJxFgjt8TQG9S8jAP7zZZB2yamqjxG1oLk5xY15dbLUxd7HypW9DGyRsVpy2hK7ga5cg0i1qTbrmPgWpup7WSK3sSJ+Ea6dFKUe1fWq1M4FvmQELKAEJhSdD25WYwfcQQL07asdJ68EUvpcAHwnlxDGH7ylAVkIZbikPXOB7C5CVkH9UJCfADX4PAnYS2pdyaamP//8WxhV+LwKqmD1qI+23Ih6Vm9i8QoAYSl5HIYDHTeyqECCGktdRCOBxE7sqBIih5HUUAnjcxK4KAWIoeR2FAB43satCgBhKXkchgMdN7Kq/Udw9cFVOhM0AAAAASUVORK5CYII=",FF=({mapName:t})=>{const[e,n]=re.useState(!1),[r,i]=re.useState(""),[o,s]=re.useState(""),{username:a}=vr(),l=async()=>{if(!r.trim()||!o.trim()){alert("Please fill in both fields.");return}let d=new Ft(!0),p={username:a,mapName:t,subject:r,content:o};await d.post(yt.view_maps.add_report,p),i(""),s(""),n(!1)},u=d=>{d.target.classList.contains($i.modalBackground)&&n(!1)};return x.jsxs("div",{children:[x.jsx("button",{className:$i.reportButton,onClick:()=>n(!0),children:x.jsx("img",{src:IF,alt:"Report Icon",className:$i.reportIcon})}),e&&x.jsx("div",{className:$i.modalBackground,onClick:u,children:x.jsxs("div",{className:$i.modalContent,children:[x.jsx("h2",{children:"Report Issue"}),x.jsx("input",{type:"text",placeholder:"Topic",value:r,onChange:d=>i(d.target.value),className:$i.inputField}),x.jsx("textarea",{placeholder:"Description",value:o,onChange:d=>s(d.target.value),className:$i.textareaField}),x.jsxs("div",{className:$i.buttonGroup,children:[x.jsx("button",{onClick:l,className:$i.submitButton,children:"Submit"}),x.jsx("button",{onClick:()=>n(!1),className:$i.cancelButton,children:"Cancel"})]})]})})]})},D4=({isPrivate:t})=>{const{mapName:e}=o8(),{username:n}=vr(),{isAuthenticated:r}=vr(),[i,o]=re.useState(!1),[s,a]=re.useState(null),[l,u]=re.useState(!0),[d,p]=re.useState(null),[g,h]=re.useState([]);ao();const[w,_]=re.useState([]),[A,v]=c8(),[S,y]=re.useState({}),[N,L]=re.useState(!1),[R,D]=re.useState(""),[k,z]=re.useState(""),T={enabled:!1,nextFloor:0,nodes:[],offset:0},[P,E]=re.useState(T),[W,B]=re.useState([]);re.useEffect(()=>{(async()=>{const X=new Ft;let de;t?de=await X.get(`${yt.room_types.display(!0)}?mapName=${e}&username=${n}`):de=await X.get(`${yt.room_types.display(!1)}?mapName=${e}`),console.log("loaded ROOM TYPES: "+de),B(de)})().then(X=>{console.log("LOADED ROOM TYPES")})},[]),re.useEffect(()=>{A.has("floor")||v({floor:"0"},{replace:!0})},[v,A]),re.useEffect(()=>{const te=parseInt(A.get("floor")||0),X=new MI("map",te);(async()=>{const j=new Ft;try{let G;return t?(j.setAuthenticated(),G=`${yt.view_maps.load(!0)}?mapName=${e}&username=${n}`):G=`${yt.view_maps.load(!1)}?mapName=${e}`,j.get(G)}catch(G){throw new Error("Can't load map: "+G.message)}})().then(j=>{let G=j.filter(ie=>ie.num===te)[0],H=[];j.forEach(ie=>{console.log("FLR",ie);const q=Tw(ie.mapData,Z=>Z.className!=="InfoPin",!0);H=[...H,...q]}),_(H),H.forEach(ie=>{console.info("PARSED Shapes: "+ie.info.name)});const ne=H.find(ie=>ie.info.isMainEntrance);y(ne),console.log("MAIN ENTRANCE: "+ne),h(j),console.log("FLOOR DATA: "+(G==null?void 0:G.mapData)),X.loadMapN(G==null?void 0:G.mapData),a(X),o(!0)}).catch(j=>{console.log("ERROR LOADING MAP VIEW: "+j)})},[]),re.useEffect(()=>{const te=X=>{p(X.detail.room),u(!0),console.log("SHAPES REG",An.getShapes().length)};return window.addEventListener("openRoomInfoPanel",te),()=>window.removeEventListener("openRoomInfoPanel",te)},[]);const Q=(te=null,X=null)=>{if(te===null&&X===null)return;(te===null||te==="")&&(te=S.info.name);let de=w.find(ne=>ne.info.name===te);de.floorNum!=A.get("floor")&&se(de.floorNum);const j=new Ft;t&&j.setAuthenticated();const G=encodeURIComponent(te).trimEnd(),H=encodeURIComponent(X).trimEnd();D(te),z(X),j.get(`${yt.view_maps.navigate}?from=${G}&to=${H}`).then(ne=>{s.drawRouteNEW(ne)}).catch(ne=>{console.log("err",ne)})},ee=()=>{if(P&&s){console.log("NAVNEXT F: "+P.nextFloor);const te=P.nextFloor;se(te),setTimeout(()=>{s.drawRouteNEW(P.nodes,P.offset)},50),E(T)}};re.useEffect(()=>{const te=X=>{console.log("DETAIL END",X.detail),L(!0)};return window.addEventListener("navend",te),()=>{window.removeEventListener("navend",te)}},[s]),re.useEffect(()=>{const te=X=>{console.log("SHAPES NAV",w),E({enabled:!0,nextFloor:X.detail.changeFloorTo,nodes:X.detail.nodes,offset:X.detail.offset}),console.log("ROUTE LAYER",s.routeLayer)};return window.addEventListener("navigate",te),()=>{window.removeEventListener("navigate",te)}},[s,i]);const se=te=>{v({floor:te},{replace:!0});const X=g.find(de=>de.num===te);console.log("FLOOR NUM:",te,"CHFLOOR:",X),s.clearRoute(),s.loadMapN(X.mapData),s.floorNum=te,console.log(`Floor changed to: ${te}`)},K=()=>{u(!1),d.unHighlight()};return x.jsxs("div",{id:"main",className:dr.main,children:[P.enabled&&x.jsx("div",{className:dr.nextButtonContainer,children:x.jsx("button",{onClick:ee,className:dr.nextButton,children:"NEXT FLOOR"})}),x.jsx("div",{id:"map",className:dr.mapContainer}),x.jsx(SF,{isOpen:l,onClose:K,floor:A.get("floor"),room:d,handleDirectionsSubmit:Q}),x.jsx("div",{className:dr.toolbar,children:x.jsxs("div",{className:dr.toolbarContainer,children:[x.jsx("div",{className:dr.logoContainer,children:x.jsx(qs,{position:"relative"})}),x.jsx("h1",{className:dr.mapTitle,children:e}),i&&s&&x.jsxs("div",{className:dr.searchFilterContainer,children:[x.jsx(sF,{map:s,handleDirectionsSubmit:Q,setIsPanelOpen:u,setSelectedRoom:p,availableShapes:w,handleFloorChange:se}),N&&x.jsx("div",{className:dr.downloadRouteButton,children:x.jsx("button",{onClick:()=>{s.getRouteImages({mapName:e,from:R,to:k}),L(!1)},children:" Download Route"})}),x.jsx(hF,{map:s,roomTypes:W})]}),r&&x.jsx(FF,{mapName:e}),x.jsx("div",{className:dr.profileContainer,children:x.jsx(wc,{position:"relative"})})]})}),x.jsx("div",{id:"temp"}),x.jsx("div",{className:dr.floorSelectorContainer,children:x.jsxs("div",{className:dr.floorSelector,children:[x.jsx("img",{src:xF,alt:"Floor Icon",className:dr.floorIcon}),x.jsx("select",{value:A.get("floor"),onChange:te=>se(parseInt(te.target.value,10)),className:dr.floorDropdown,children:g==null?void 0:g.map(te=>x.jsxs("option",{value:te.num,children:["Floor ",te.num]},te.num))})]})})]})},OF="_container_14el6_1",RF="_mapTitle_14el6_14",BF="_categories_14el6_25",DF="_actionButtons_14el6_31",UF="_createMapsButton_14el6_38",zF="_searchBar_14el6_54",GF="_mapsContainer_14el6_77",qF="_mapColumn_14el6_84",VF="_tile_14el6_99",WF="_imgStyle_14el6_121",HF="_dragging_14el6_127",YF="_plusButton_14el6_135",KF="_header_14el6_159",rr={container:OF,mapTitle:RF,categories:BF,actionButtons:DF,createMapsButton:UF,searchBar:zF,mapsContainer:GF,mapColumn:qF,tile:VF,imgStyle:WF,dragging:HF,plusButton:YF,header:KF,"logo-wrapper":"_logo-wrapper_14el6_169","profile-wrapper":"_profile-wrapper_14el6_170"},XF="_modalOverlay_oxbvx_1",$F="_modalContent_oxbvx_15",QF="_fadeIn_oxbvx_1",JF="_mapImage_oxbvx_28",ZF="_title_oxbvx_35",eO="_buttonContainer_oxbvx_58",tO="_viewButton_oxbvx_84",nO="_editButton_oxbvx_98",rO="_deleteButton_oxbvx_112",iO="_closeButton_oxbvx_121",oO="_editPopupOverlay_oxbvx_146",sO="_editPopupContent_oxbvx_160",aO="_editField_oxbvx_171",lO="_editPopupButtons_oxbvx_192",cO="_submitButton_oxbvx_199",uO="_cancelButton_oxbvx_213",hO="_editIcon_oxbvx_227",Ln={modalOverlay:XF,modalContent:$F,fadeIn:QF,mapImage:JF,title:ZF,buttonContainer:eO,viewButton:tO,editButton:nO,deleteButton:rO,closeButton:iO,editPopupOverlay:oO,editPopupContent:sO,editField:aO,editPopupButtons:lO,submitButton:cO,cancelButton:uO,editIcon:hO},dO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAA+VJREFUeF7tnOu12jAMgJXDIu0kbTeBSdpNaCe57SZdhENxmgTnZVm2bPmh/LlwCDj3+yRZcQID6CZKYBAdXQcHFSAcBCpABQgTEB5eM0AFCBMQHl4zQAUIExAeXjNABQgTEB5eM0AFCBNYD/9jevoFAD5Nj38DwJ/X858pjlQz4D9VA/sOAF8dkP++RHwDAPOXbVMBANcJvg9UA//Xa8c5U3ze49yndwETfIPhuYCyn70fL49YJfQswCvy12oAxvXj51iGWDKhVwFe8JH6YiTcXvOGmaSDtx4FcMCfgUdL6E0AJ3wWCT0JcMLf1XpaUQluUXsRgEZ+pACjy8wF5jyBtPUgAIVPIube2UzKpDPm1gXQ4BPS4GRXcha0LIAGn5QGp6ZUwMQxCXyPBDGT8WeKyxYzIAl8F1RLTPcCssPfiDETsJmIvbeWMiAr/JNy1GkXdIErPMb1fMmNXH7MwbaQAeyR7zHZHok2J2HkhbnaBVwHgPt7Jd+ZAPOlxe8J0oRceuZjqFnAFWC42xdSjsGO8Tz35+bSo8kYpwRiBgTDr7kEHZQd75MjLwmeWRIFv1YBlJp/dmbKISEafo0COODPwR0jgQV+bQI44cdIYINfk4AU8GcJH8v9QPjsywq/DgG0kyzqauQbPj7rssOvQQAa+VbQVge/dAEofCtoq4RfsoAu4JcqoBv4JQroCn5pAhzwd/1htTV/22yVshiXLfKRVj9Jq+nqcEsQsIKPAGom8ktZjqbcLtgcfOk5YA3fHfpNwpcUkK3mIysM2Wt+CZOwIPwBBnjOX0YShy+RAXnh22VtXeKKgJ9bQF7457WnGPg5BSj8k4DIcR6g8B2dQGoBCh9pw1IKGO/bsbqO6Su2h0fUbJ+PXWhLJSDmvh3smMUvI2IHSHk9hQAtOwQD3AIUPgE+dxuq8InwOQUo/AD4XAIUfiB8DgEKPwJ+rAALPnpPX7d9PuYntAvaRL5TAB/8/TBFLaxhsI9eDxEgUnYOFFcPP7QEIV/JWlDxRf4+dJqAn0jASEvhe9ajkBKEfSlR4XvCT5UBFKlNLawRuC+7UmDNb8IywPczu4cvmQF7+OedbDMTLlcbGpsBGvmWCd9yYcuLEaDwN2mQU4DCP6hBKQSENAP2e5qu+Vs4+QW41+26gp+qCwrLgAvc4EH7zc2wgcp6F28GoKvSp/98d5E/k+AVgATXiZ9u4YeXoPBI3yrqGn64gF2kBxnpHn6kACp0e//LDeBB+pHrsqZOvqMJmQP4RtdPauJnK6vWqBkgrE8FqABhAsLDawaoAGECwsNrBqgAYQLCw2sGqABhAsLDawYIC/gHPMohcOfRSjoAAAAASUVORK5CYII=",fO="_modalOverlay_1aum1_2",pO="_denyReason_1aum1_13",gO="_denyReasonTextArea_1aum1_19",mO="_denySubmitButton_1aum1_23",vO="_modal_1aum1_2",yO="_fadeIn_1aum1_1",wO="_modalContent_1aum1_57",bO="_cancelButton_1aum1_111",_O="_approveButton_1aum1_127",SO="_denyButton_1aum1_143",xO="_buttonGroup_1aum1_160",AO="_error_1aum1_167",nr={modalOverlay:fO,denyReason:pO,denyReasonTextArea:gO,denySubmitButton:mO,modal:vO,fadeIn:yO,modalContent:wO,cancelButton:bO,approveButton:_O,denyButton:SO,buttonGroup:xO,error:AO},e7=({isAdmin:t=!1,formData:e,onSubmit:n,onCancel:r,onApprove:i,onDeny:o})=>{const[s,a]=re.useState(t?"viewing":"writing"),[l,u]=re.useState(e||{id:-1,name:"",lastName:"",mapName:"",mapType:"Other",googleMapsUrl:""}),[d,p]=re.useState({}),[g,h]=re.useState(""),[w,_]=re.useState(!1),A=["Hospital","Faculty","House","Other"],v=L=>{const{name:R,value:D}=L.target;u(k=>({...k,[R]:D})),p(k=>({...k,[R]:""}))},S=()=>{const L={};return l.name.trim()||(L.name="Name is required."),l.lastName.trim()||(L.lastName="Last Name is required."),l.googleMapsUrl.trim()||(L.googleMapsUrl="Google Maps URL is required."),L},y=()=>{const L=S();if(Object.keys(L).length>0){p(L);return}s==="writing"&&n(l)},N=()=>{if(!g.trim()){alert("Please provide a reason for denial.");return}o(l.id,l.mapName,g),_(!1)};return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:nr.modalOverlay}),x.jsx("div",{className:nr.modal,children:x.jsxs("div",{className:nr.modalContent,children:[x.jsx("h2",{children:s==="writing"?"Publish Map":"View Map Details"}),s==="writing"?x.jsxs("form",{children:[x.jsxs("div",{children:[x.jsx("label",{children:"Name:"}),x.jsx("input",{type:"text",name:"name",value:l.name,onChange:v}),d.name&&x.jsx("p",{className:nr.error,children:d.name})]}),x.jsxs("div",{children:[x.jsx("label",{children:"Last Name:"}),x.jsx("input",{type:"text",name:"lastName",value:l.lastName,onChange:v}),d.lastName&&x.jsx("p",{className:nr.error,children:d.lastName})]}),x.jsxs("div",{children:[x.jsx("label",{children:"Google Maps URL:"}),x.jsx("input",{type:"url",name:"googleMapsUrl",value:l.googleMapsUrl,onChange:v}),d.googleMapsUrl&&x.jsx("p",{className:nr.error,children:d.googleMapsUrl})]}),x.jsxs("div",{children:[x.jsx("label",{children:"Type of Map:"}),x.jsx("select",{name:"mapType",value:l.mapType,onChange:v,children:A.map(L=>x.jsx("option",{value:L,children:L},L))})]}),x.jsxs("div",{className:nr.buttonGroup,children:[x.jsx("button",{type:"button",onClick:y,children:"Submit"}),x.jsx("button",{type:"button",className:nr.cancelButton,onClick:r,children:"Cancel"})]})]}):x.jsxs("div",{children:[x.jsxs("p",{children:[x.jsx("strong",{children:"Map Name:"})," ",l.mapName]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Name:"})," ",l.name]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Last Name:"})," ",l.lastName]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Google Maps URL:"})," ",x.jsx("a",{href:l.googleMapsUrl,target:"_blank",rel:"noopener noreferrer",children:l.googleMapsUrl})]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Type of Map:"})," ",l.mapType]}),x.jsxs("div",{className:nr.buttonGroup,children:[x.jsx("button",{className:nr.cancelButton,onClick:()=>{_(!1),r()},children:"Cancel"}),x.jsx("button",{className:nr.approveButton,onClick:()=>i(l.id,l.mapName),children:"Approve"}),x.jsx("button",{className:nr.denyButton,onClick:()=>_(!0),children:"Deny"})]}),w&&x.jsxs("div",{className:nr.denyReason,children:[x.jsx("textarea",{className:nr.denyReasonTextArea,placeholder:"Enter reason for denial...",value:g,onChange:L=>h(L.target.value)}),x.jsx("div",{className:nr.buttonGroup,children:x.jsx("button",{className:nr.denySubmitButton,onClick:N,children:"Submit"})})]})]})]})})]})};function t7({isOpen:t,onClose:e,map:n,onDelete:r,onUpdate:i,onPublish:o,published:s=!1}){const[a,l]=re.useState(!1),[u,d]=re.useState((n==null?void 0:n.mapName)||""),[p,g]=re.useState((n==null?void 0:n.gmaps_url)||""),[h,w]=re.useState(!1),_=ao(),[A,v]=re.useState(null);vr();const{loading:S}=vr();re.useEffect(()=>{console.log("GMAPS: "+JSON.stringify(n))},[n]);const{username:y}=vr();if(!t||!n)return null;const N=()=>{_(`/myMaps/View/${n.mapName}`)},L=()=>{_(`/myMaps/Draw/${n.mapName}`)},R=()=>{window.confirm(`Are you sure you want to delete the map "${n.mapName}"?`)&&(r(n.mapName),e())},D=()=>{l(!0)},k=()=>{l(!1)},z=async()=>{({...n});try{l(!1)}catch(E){console.error("Error updating map:",E)}},T=async()=>{const W=await new Ft(!0).get(`${yt.my_maps.publish_get}?mapName=${n.mapName}`);console.log("MAP DTO",JSON.stringify(n)),v(W),w(!0)},P=async E=>{const W=new Ft(!0);E.mapName=n.mapName;const B=await W.post(`${yt.my_maps.publish}?username=${y}`,E);console.log("UPDATED MAP"),w(!1),o(B)};return x.jsx("div",{className:Ln.modalOverlay,onClick:e,children:x.jsxs("div",{className:Ln.modalContent,onClick:E=>E.stopPropagation(),children:[h&&x.jsx(e7,{mapName:n.mapName,formData:A,onSubmit:P,onCancel:()=>w(!1)}),!S&&x.jsxs(x.Fragment,{children:[x.jsx("img",{src:n.image_url,alt:"Map Thumbnail",className:Ln.mapImage}),x.jsxs("h2",{className:Ln.title,children:[n.mapName,x.jsx("img",{src:dO,alt:"Edit",className:Ln.editIcon,onClick:D})]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Status:"})," ",n.status]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Created At:"})," ",new Date(n.created_at).toLocaleString()]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Modified At:"})," ",new Date(n.modified_at).toLocaleString()]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Published At:"})," ",n.published_at?new Date(n.published_at).toLocaleString():"Not published yet"]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Google Maps URL:"}),x.jsx("a",{href:`${n.gmaps_url}`,rel:"noopener noreferrer",children:"Open in Google Maps"})]}),x.jsxs("div",{className:Ln.buttonContainer,children:[x.jsx("button",{className:Ln.viewButton,onClick:N,children:"View"}),x.jsx("button",{className:Ln.editButton,onClick:L,children:"Edit"}),x.jsx("button",{className:Ln.deleteButton,onClick:R,children:"Delete"}),!n.is_published&&!s&&x.jsx("button",{className:Ln.publishButton,onClick:T,children:"Publish"})]}),x.jsx("button",{className:Ln.closeButton,onClick:e,children:"Close"}),a&&x.jsx("div",{className:Ln.editPopupOverlay,onClick:k,children:x.jsxs("div",{className:Ln.editPopupContent,onClick:E=>E.stopPropagation(),children:[x.jsx("h3",{className:Ln.title,children:"Edit Map Details"}),x.jsxs("div",{className:Ln.editField,children:[x.jsx("label",{children:"Map Name:"}),x.jsx("input",{type:"text",value:u,onChange:E=>d(E.target.value)})]}),x.jsxs("div",{className:Ln.editField,children:[x.jsx("label",{children:"Google Maps URL:"}),x.jsx("input",{type:"text",value:p,onChange:E=>g(E.target.value)})]}),x.jsxs("div",{className:Ln.editPopupButtons,children:[x.jsx("button",{className:Ln.submitButton,onClick:z,children:"Submit"}),x.jsx("button",{className:Ln.cancelButton,onClick:k,children:"Cancel"})]})]})})]})]})})}const NO="_modalOverlay_arngm_2",CO="_modalContent_arngm_17",PO="_fadeIn_arngm_1",LO="_title_arngm_28",kO="_modalButtons_arngm_37",EO="_modalSubmitButton_arngm_43",TO="_modalCancelButton_arngm_61",jO="_formData_arngm_79",ua={modalOverlay:NO,modalContent:CO,fadeIn:PO,title:LO,modalButtons:kO,modalSubmitButton:EO,modalCancelButton:TO,formData:jO},n7=({isOpen:t,onClose:e,addMap:n})=>{const[r,i]=re.useState("");re.useState("");const o=s=>{n({name:r}),e()};return t?x.jsx("div",{className:ua.modalOverlay,onClick:e,children:x.jsxs("div",{className:ua.modalContent,onClick:s=>s.stopPropagation(),children:[x.jsx("h2",{className:ua.title,children:"Enter Map Details"}),x.jsxs("form",{onSubmit:o,className:ua.formData,children:[x.jsxs("label",{children:["Map Name:",x.jsx("input",{type:"text",value:r,onChange:s=>i(s.target.value),required:!0})]}),x.jsxs("div",{className:ua.modalButtons,children:[x.jsx("button",{type:"submit",className:ua.modalSubmitButton,children:"Submit"}),x.jsx("button",{type:"button",className:ua.modalCancelButton,onClick:e,children:"Cancel"})]})]})]})}):null};n7.propTypes={isOpen:Sa.bool.isRequired,onClose:Sa.func.isRequired};const MO="_toast_t4ud7_1",IO="_fadeInOut_t4ud7_1",FO="_success_t4ud7_14",OO="_error_t4ud7_18",s2={toast:MO,fadeInOut:IO,success:FO,error:OO},r7=({message:t,type:e,onClose:n})=>x.jsx("div",{className:`${s2.toast} ${e===1?s2.success:s2.error}`,onClick:n,children:t}),a2=({data:t,isDragging:e},n)=>x.jsx("div",{style:{padding:"1rem",width:"100%"},children:x.jsxs("div",{className:`${rr.tile} ${e?rr.dragging:""}`,style:{width:"100%",height:"100%"},onClick:()=>n(t),children:[x.jsx("img",{src:_a,className:rr.imgStyle,alt:"Map Thumbnail"}),x.jsx("div",{className:rr.mapTitle,children:t.mapName})]})}),l2=t=>({colSpan:t.cols,rowSpan:t.rows});function RO(){const[t,e]=re.useState([]),[n,r]=re.useState([]),{username:i}=vr(),[o,s]=re.useState(null),[a,l]=re.useState(!1),[u,d]=re.useState(!1),[p,g]=re.useState([]),[h,w]=re.useState([]),[_,A]=re.useState([]),[v,S]=re.useState(null),[y,N]=re.useState(1),L=B=>{s(B),l(!0)},R=()=>{l(!1),s(null)},D=()=>{d(!0)},k=()=>{d(!1)},z=(B,Q=1)=>{S(B),N(Q),setTimeout(()=>S(null),3e3)},T=async B=>{},P=B=>{const Q=new Ft;Q.setAuthenticated();const ee=`${yt.my_maps.delete}?mapName=${B}&username=${i}`;Q.delete(ee).then(()=>{e(se=>se.filter(K=>K.mapName!==B)),r(se=>se.filter(K=>K.mapName!==B)),z("Map deleted",1)}).catch(se=>{var te,X;const K=((X=(te=se.response)==null?void 0:te.data)==null?void 0:X.error)||se.message||"Unknown error";z(`Error deleting the map: ${K}`,0)})},E=B=>{const Q=new Ft;Q.setAuthenticated(),Q.put(`${yt.my_maps.add}?username=${encodeURI(i)}`,B).then(ee=>{const se={mapName:ee.mapName,cols:1,rows:1,status:ee.mapStatus,created_at:ee.createdAt,modified_at:ee.modifiedAt,published_at:ee.published_at,gmaps_url:ee.gmapsUrl,image_url:_a,is_published:ee.is_published};r(K=>[...K,se]),e(K=>[...K,se]),z("Map added successfully!")}).catch(ee=>{z("Map name already taken",0)})};re.useEffect(()=>{(async()=>{const Q=new Ft;Q.setAuthenticated();const se=(await Q.get(`${yt.my_maps.display}?username=${encodeURI(i)}`)).map(K=>({mapName:K.mapName,cols:1,rows:1,status:K.mapStatus,created_at:K.createdAt,modified_at:K.modifiedAt,published_at:K.published_at,gmaps_url:K.gmapsUrl,image_url:_a,numFavourites:K.numFavourites}));e(se),r(se)})()},[i]),re.useEffect(()=>{g(t.filter(B=>B.status==="PUBLIC")),w(t.filter(B=>B.status==="PRIVATE")),A(t.filter(B=>B.status==="PENDING"))},[t]);const W=B=>{const Q=B.target.value.toLowerCase();e(n.filter(ee=>ee.mapName.toLowerCase().includes(Q)))};return x.jsxs("div",{className:rr.container,children:[x.jsx("div",{className:`${rr.logoWrapper}`,children:x.jsx(qs,{})}),x.jsx("h1",{children:"Your Maps"}),x.jsx("div",{className:`${rr.profileWrapper}`,children:x.jsx(wc,{})}),x.jsx("div",{className:rr.searchBar,children:x.jsx("input",{type:"text",placeholder:"Search for maps...",onChange:W})}),x.jsxs("div",{className:rr.mapsContainer,children:[x.jsxs("div",{className:rr.mapColumn,children:[x.jsx("h3",{className:rr.categories,children:"Public Maps:"}),x.jsx("hr",{}),x.jsx(Ou,{data:p,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170})]}),x.jsxs("div",{className:rr.mapColumn,children:[x.jsx("h3",{className:rr.categories,children:"Private Maps:"}),x.jsx("hr",{}),x.jsx(Ou,{data:h,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170}),x.jsx("button",{className:rr.plusButton,onClick:D,children:x.jsx("img",{src:_5,alt:"Add Map"})})]}),x.jsxs("div",{className:rr.mapColumn,children:[x.jsx("h3",{className:rr.categories,children:"Pending Approval:"}),x.jsx("hr",{}),x.jsx(Ou,{data:_,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170})]})]}),x.jsx(t7,{isOpen:a,onClose:R,map:o,onDelete:P,onUpdate:T,onPublish:(B=null)=>{const Q={mapName:B.mapName,cols:1,rows:1,status:B.mapStatus,created_at:B.createdAt,modified_at:B.modifiedAt,published_at:B.published_at,gmaps_url:B.gMapsUrl,image_url:_a,numFavourites:B.numFavourites};z(`Map ${o.mapName} published successfully!`),w(ee=>ee.filter(se=>se.mapName!==o.mapName)),A(ee=>[...ee,Q]),R()}}),x.jsx(n7,{isOpen:u,onClose:k,addMap:E}),v&&x.jsx(r7,{message:v,type:y,onClose:()=>S(null)})]})}const BO="_container_1h1ao_1",DO="_mapsContainer_1h1ao_16",UO="_tile_1h1ao_23",zO="_imgStyle_1h1ao_46",GO="_mapTitle_1h1ao_52",qO="_buttonContainer_1h1ao_59",VO="_buttonsGroup_1h1ao_66",WO="_approveButton_1h1ao_73",HO="_denyButton_1h1ao_73",YO="_viewPublishFormButton_1h1ao_102",KO="_reasonInput_1h1ao_106",gs={container:BO,mapsContainer:DO,tile:UO,imgStyle:zO,mapTitle:GO,buttonContainer:qO,buttonsGroup:VO,approveButton:WO,denyButton:HO,viewPublishFormButton:YO,reasonInput:KO},XO="_openButton_1l2n8_1",$O="_modalBackground_1l2n8_16",QO="_modalContent_1l2n8_29",JO="_heading_1l2n8_38",ZO="_cardContainer_1l2n8_45",eR="_card_1l2n8_45",tR="_cardTitle_1l2n8_62",nR="_cardContent_1l2n8_68",rR="_cardFooter_1l2n8_74",iR="_noReports_1l2n8_79",oR="_closeButton_1l2n8_86",Ai={openButton:XO,modalBackground:$O,modalContent:QO,heading:JO,cardContainer:ZO,card:eR,cardTitle:tR,cardContent:nR,cardFooter:rR,noReports:iR,closeButton:oR},sR=()=>{const[t,e]=re.useState(!1),[n,r]=re.useState([]);re.useEffect(()=>{(async()=>{try{const a=new Ft(!0);a.setAuthenticated();const u=(await a.get(yt.admin.load_reports)).sort((d,p)=>new Date(p.date)-new Date(d.date));r(u)}catch(a){console.error("Error loading reports:",a)}})()},[]);const i=()=>{e(!0)},o=()=>{e(!1)};return x.jsxs("div",{children:[x.jsx("button",{className:Ai.openButton,onClick:i,children:"View Reports"}),t&&x.jsx("div",{className:Ai.modalBackground,onClick:o,children:x.jsxs("div",{className:Ai.modalContent,onClick:s=>s.stopPropagation(),children:[x.jsx("div",{className:Ai.heading,children:"Reports"}),x.jsx("div",{className:Ai.cardContainer,children:n.length>0?n.map((s,a)=>x.jsxs("div",{className:Ai.card,children:[x.jsx("div",{className:Ai.cardTitle,children:s.subject}),x.jsx("div",{className:Ai.cardContent,children:s.content}),x.jsxs("small",{className:Ai.cardFooter,children:["User: ",s.username," | Map: ",s.mapName," |"," ",new Date(s.date).toLocaleDateString()]})]},a)):x.jsx("p",{className:Ai.noReports,children:"No reports available"})}),x.jsx("button",{className:Ai.closeButton,onClick:o,children:"Close"})]})})]})},aR=({data:t,isDragging:e},n,r,i,o)=>x.jsxs("div",{className:`${gs.tile} ${e?gs.dragging:""}`,onClick:()=>i(t),children:[x.jsx("img",{src:_a,className:gs.imgStyle,alt:"Map Thumbnail"}),x.jsx("div",{className:gs.mapTitle,children:t.mapName}),x.jsx("button",{className:gs.viewPublishFormButton,onClick:s=>{s.stopPropagation(),o(t)},children:"View Form"}),x.jsx("div",{className:gs.buttonContainer})]}),lR=t=>({colSpan:t.cols,rowSpan:t.rows});function cR(){const[t,e]=re.useState([]),[n,r]=re.useState(null),[i,o]=re.useState(!1),[s,a]=re.useState(null),[l,u]=re.useState([]),[d,p]=re.useState({}),{username:g}=vr(),[h,w]=re.useState(null),[_,A]=re.useState(1);re.useEffect(()=>{(async()=>{const T=new Ft;T.setAuthenticated();const E=(await T.get(`${yt.admin.display}`)).map(W=>({mapName:W.mapName,cols:1,rows:1,status:W.mapStatus,created_at:W.createdAt,modified_at:W.modifiedAt,gmaps_url:W.gmaps_url,image_url:_a})).filter(W=>W.status==="PENDING");e(E)})()},[g]),re.useEffect(()=>{(async()=>{const P=await new Ft(!0).get(`${yt.admin.load_pr}`);u(P)})()},[]);const v=async(z,T)=>{const P=new Ft;P.setAuthenticated();const E=`${yt.admin.approve_pr}?id=${z}`;k();try{await P.post(E),e(W=>W.filter(B=>B.mapName!==T)),S(`Publish Request "${z}" approved.`,1)}catch(W){console.error("Error approving pr:",W),S("Failed to approve pr.",0)}},S=(z,T=1)=>{w(z),A(T),setTimeout(()=>w(null),3e3)},y=async(z,T,P)=>{const E=new Ft;E.setAuthenticated();const W=`${yt.admin.deny_pr}?id=${z}&reason=${encodeURIComponent(P)}`;k();try{await E.post(W),e(B=>B.filter(Q=>Q.mapName!==T)),S(`Publish request ${z} denied.`,1)}catch(B){console.error("Error denying pr:",B),alert("Failed to deny pr."),S("Failed to deny pr.",0)}},N=async z=>{const T=new Ft;T.setAuthenticated();const P=`${yt.admin.approve_pr}?mapName=${z.mapName}`;try{await T.post(P,z),e(E=>E.filter(W=>W.mapName!==z.mapName)),alert(`Map "${z.mapName}" published successfully.`),k()}catch(E){console.error("Error publishing map:",E),alert("Failed to publish map. Please try again.")}},L=z=>{r(z),o(!0)},R=()=>{o(!1),r(null)},D=z=>{console.log("DATA MAP NAME",z.mapName),l.forEach(P=>{console.log("PR: "+JSON.stringify(P))});const T=l.find(P=>P.mapName===z.mapName);console.log("FOUND PR: "+T),p(T),a(z)},k=()=>{a(null)};return x.jsxs("div",{className:gs.container,children:[x.jsx(qs,{}),x.jsx(wc,{}),x.jsx("h1",{children:"Pending Maps for Approval"}),x.jsx("hr",{}),s&&x.jsx(e7,{isAdmin:!0,formData:d,onSubmit:N,onCancel:k,onApprove:v,onDeny:y}),x.jsx("div",{className:gs.mapsContainer,children:x.jsx(Ou,{data:t,renderTile:z=>aR(z,v,y,L,D),tileSize:lR,forceTileWidth:200,forceTileHeight:250})}),x.jsx("hr",{}),i&&x.jsx(t7,{isOpen:i,onClose:R,map:n,onUpdate:()=>{},onDelete:()=>{},published:!0}),h&&x.jsx(r7,{message:h,type:_,onClose:()=>w(null)}),x.jsx("hr",{}),x.jsx(sR,{})]})}function uR(){const t=Do(),e=ao(),{setUsername:n,setIsAuthenticated:r}=vr();re.useEffect(()=>{const i=new URLSearchParams(t.search),o=i.get("token"),s=i.get("username");localStorage.setItem("token",o),r(!0),n(s),e("/")},[])}const hR=()=>x.jsxs("div",{className:"privacy-policy-container",children:[x.jsx("h1",{children:"Privacy Policy"}),x.jsx("p",{children:"Effective Date: January 19, 2025"}),x.jsxs("p",{children:["Welcome to ",x.jsx("strong",{children:"IMAPS"}),", your indoor mapping solution. Your privacy is important to us. This Privacy Policy explains how we collect, use, and protect your personal information."]}),x.jsx("h2",{children:"1. Information We Collect"}),x.jsx("p",{children:"We may collect the following types of information when you use our application:"}),x.jsxs("ul",{children:[x.jsx("li",{children:"Location data for providing navigation and map services."}),x.jsx("li",{children:"Device information, including operating system and browser type."}),x.jsx("li",{children:"Usage data, such as search queries, clicks, and time spent on the app."}),x.jsx("li",{children:"Any feedback or messages you provide via the app."})]}),x.jsx("h2",{children:"2. How We Use Your Information"}),x.jsx("p",{children:"The information we collect is used to:"}),x.jsxs("ul",{children:[x.jsx("li",{children:"Provide accurate navigation and mapping services."}),x.jsx("li",{children:"Enhance the app's features and functionality."}),x.jsx("li",{children:"Analyze usage trends to improve performance."}),x.jsx("li",{children:"Respond to user queries and support requests."})]}),x.jsx("h2",{children:"3. Sharing Your Information"}),x.jsx("p",{children:"We do not sell your personal information. However, we may share your data with:"}),x.jsxs("ul",{children:[x.jsx("li",{children:"Third-party service providers who assist in app operations."}),x.jsx("li",{children:"Legal authorities if required by law or to protect the app's security."})]}),x.jsx("h2",{children:"4. Data Security"}),x.jsx("p",{children:"We implement industry-standard measures to protect your data. However, no system is completely secure, and we cannot guarantee absolute security."}),x.jsx("h2",{children:"5. Your Choices"}),x.jsx("p",{children:"You can control the information we collect by managing your device settings or opting out of certain features."}),x.jsx("h2",{children:"6. Changes to This Privacy Policy"}),x.jsx("p",{children:'We may update this Privacy Policy from time to time. Changes will be posted on this page with an updated "Effective Date."'}),x.jsx("h2",{children:"7. Contact Us"}),x.jsxs("p",{children:["If you have any questions or concerns about this Privacy Policy, please contact us at ",x.jsx("a",{href:"mailto:support@imaps.mk",children:"support@imaps.mk"}),"."]})]}),dR=()=>x.jsxs("div",{className:"terms-container",children:[x.jsx("h1",{children:"Terms of Service"}),x.jsx("p",{children:"Effective Date: January 19 2024"}),x.jsxs("section",{children:[x.jsx("h2",{children:"1. Acceptance of Terms"}),x.jsx("p",{children:"By accessing or using our indoor map application (“IMaps”), you agree to comply with and be bound by these Terms of Service (“Terms”). If you do not agree to these Terms, you may not use IMaps."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"2. Changes to Terms"}),x.jsx("p",{children:"We reserve the right to modify these Terms at any time. We will notify you of significant changes by posting the updated Terms on our website. Your continued use of the IMaps constitutes acceptance of the revised Terms."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"3. Use of IMaps"}),x.jsx("p",{children:"You agree to use IMaps only for lawful purposes. You must not:"}),x.jsxs("ul",{children:[x.jsx("li",{children:"Engage in any activity that disrupts or interferes with IMaps."}),x.jsx("li",{children:"Use IMaps for any fraudulent, unlawful, or harmful activity."}),x.jsx("li",{children:"Attempt to gain unauthorized access to our servers or systems."})]})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"4. User Accounts"}),x.jsx("p",{children:"To access certain features, you may need to create an account. You are responsible for maintaining the confidentiality of your account information and for all activities that occur under your account."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"5. Intellectual Property"}),x.jsx("p",{children:"All content, designs, trademarks, and intellectual property associated with IMaps are the property of [Your Company Name] or its licensors. Unauthorized use of these materials is strictly prohibited."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"6. Limitation of Liability"}),x.jsx("p",{children:"To the maximum extent permitted by law, [Your Company Name] shall not be liable for any direct, indirect, incidental, or consequential damages arising out of your use of the IMaps."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"7. Termination"}),x.jsx("p",{children:"We reserve the right to terminate or suspend your access to IMaps at our sole discretion, without notice, for conduct that we believe violates these Terms or is harmful to other users or the IMaps."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"8. Governing Law"}),x.jsx("p",{children:"These Terms shall be governed by and construed in accordance with the laws of [Your Jurisdiction]. Any disputes arising from these Terms will be subject to the exclusive jurisdiction of the courts in [Your Location]."})]}),x.jsxs("section",{children:[x.jsx("h2",{children:"9. Contact Us"}),x.jsxs("p",{children:["If you have any questions about these Terms, please contact us at ",x.jsx("a",{href:"mailto:support@imaps.mk",children:"support@imaps.mk"}),"."]})]})]});function fR(){return x.jsx(WC,{children:x.jsx(mS,{children:x.jsxs(lS,{children:[x.jsxs(pr,{element:x.jsx(TM,{}),children:[x.jsx(pr,{path:"/myMaps/Draw/:mapName",element:x.jsx(LM,{})}),x.jsx(pr,{path:"/myMaps",element:x.jsx(RO,{})}),x.jsx(pr,{path:"/myMaps/View/:mapName",element:x.jsx(D4,{isPrivate:!0})}),x.jsx(pr,{path:"/Admin",element:x.jsx(cR,{})})]}),x.jsx(pr,{path:"/",element:x.jsx(PP,{})}),x.jsx(pr,{path:"/Maps/View/:mapName",element:x.jsx(D4,{isPrivate:!1})}),x.jsx(pr,{path:"/Maps",element:x.jsx(ZC,{})}),x.jsx(pr,{path:"/auth-callback",element:x.jsx(uR,{})}),x.jsx(pr,{path:"/privacy-policy",element:x.jsx(hR,{})}),x.jsx(pr,{path:"/terms-of-service",element:x.jsx(dR,{})}),x.jsx(pr,{path:"/Login",element:x.jsx(uP,{})}),x.jsx(pr,{path:"/Signup",element:x.jsx(vP,{})}),x.jsx(pr,{path:"*",element:x.jsx(kM,{})})]})})})}typeof GestureEvent>"u"&&(window.GestureEvent=class{});c2.createRoot(document.getElementById("root")).render(x.jsx(fR,{}));export{Pt as _,Om as c,Kf as g};
Index: imaps-frontend/dist/assets/index-Cs83xd2q.js
===================================================================
--- imaps-frontend/dist/assets/index-Cs83xd2q.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index-Cs83xd2q.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,262 @@
+function U7(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var U4={exports:{}},Xf={},z4={exports:{}},ut={};/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var uh=Symbol.for("react.element"),z7=Symbol.for("react.portal"),G7=Symbol.for("react.fragment"),V7=Symbol.for("react.strict_mode"),q7=Symbol.for("react.profiler"),W7=Symbol.for("react.provider"),H7=Symbol.for("react.context"),Y7=Symbol.for("react.forward_ref"),K7=Symbol.for("react.suspense"),X7=Symbol.for("react.memo"),$7=Symbol.for("react.lazy"),Rm=Symbol.iterator;function Q7(t){return t===null||typeof t!="object"?null:(t=Rm&&t[Rm]||t["@@iterator"],typeof t=="function"?t:null)}var G4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V4=Object.assign,q4={};function fc(t,e,n){this.props=t,this.context=e,this.refs=q4,this.updater=n||G4}fc.prototype.isReactComponent={};fc.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};fc.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function W4(){}W4.prototype=fc.prototype;function F5(t,e,n){this.props=t,this.context=e,this.refs=q4,this.updater=n||G4}var I5=F5.prototype=new W4;I5.constructor=F5;V4(I5,fc.prototype);I5.isPureReactComponent=!0;var Bm=Array.isArray,H4=Object.prototype.hasOwnProperty,O5={current:null},Y4={key:!0,ref:!0,__self:!0,__source:!0};function K4(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)H4.call(e,r)&&!Y4.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:uh,type:t,key:o,ref:s,props:i,_owner:O5.current}}function J7(t,e){return{$$typeof:uh,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function R5(t){return typeof t=="object"&&t!==null&&t.$$typeof===uh}function Z7(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Dm=/\/+/g;function op(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Z7(""+t.key):e.toString(36)}function Wd(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case uh:case z7:s=!0}}if(s)return s=t,i=i(s),t=r===""?"."+op(s,0):r,Bm(i)?(n="",t!=null&&(n=t.replace(Dm,"$&/")+"/"),Wd(i,e,n,"",function(u){return u})):i!=null&&(R5(i)&&(i=J7(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Dm,"$&/")+"/")+t)),e.push(i)),1;if(s=0,r=r===""?".":r+":",Bm(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+op(o,a);s+=Wd(o,e,n,l,i)}else if(l=Q7(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+op(o,a++),s+=Wd(o,e,n,l,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function pd(t,e,n){if(t==null)return t;var r=[],i=0;return Wd(t,r,"","",function(o){return e.call(n,o,i++)}),r}function eb(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var vr={current:null},Hd={transition:null},tb={ReactCurrentDispatcher:vr,ReactCurrentBatchConfig:Hd,ReactCurrentOwner:O5};function X4(){throw Error("act(...) is not supported in production builds of React.")}ut.Children={map:pd,forEach:function(t,e,n){pd(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return pd(t,function(){e++}),e},toArray:function(t){return pd(t,function(e){return e})||[]},only:function(t){if(!R5(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ut.Component=fc;ut.Fragment=G7;ut.Profiler=q7;ut.PureComponent=F5;ut.StrictMode=V7;ut.Suspense=K7;ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tb;ut.act=X4;ut.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=V4({},t.props),i=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=O5.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)H4.call(e,l)&&!Y4.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:uh,type:t.type,key:i,ref:o,props:r,_owner:s}};ut.createContext=function(t){return t={$$typeof:H7,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:W7,_context:t},t.Consumer=t};ut.createElement=K4;ut.createFactory=function(t){var e=K4.bind(null,t);return e.type=t,e};ut.createRef=function(){return{current:null}};ut.forwardRef=function(t){return{$$typeof:Y7,render:t}};ut.isValidElement=R5;ut.lazy=function(t){return{$$typeof:$7,_payload:{_status:-1,_result:t},_init:eb}};ut.memo=function(t,e){return{$$typeof:X7,type:t,compare:e===void 0?null:e}};ut.startTransition=function(t){var e=Hd.transition;Hd.transition={};try{t()}finally{Hd.transition=e}};ut.unstable_act=X4;ut.useCallback=function(t,e){return vr.current.useCallback(t,e)};ut.useContext=function(t){return vr.current.useContext(t)};ut.useDebugValue=function(){};ut.useDeferredValue=function(t){return vr.current.useDeferredValue(t)};ut.useEffect=function(t,e){return vr.current.useEffect(t,e)};ut.useId=function(){return vr.current.useId()};ut.useImperativeHandle=function(t,e,n){return vr.current.useImperativeHandle(t,e,n)};ut.useInsertionEffect=function(t,e){return vr.current.useInsertionEffect(t,e)};ut.useLayoutEffect=function(t,e){return vr.current.useLayoutEffect(t,e)};ut.useMemo=function(t,e){return vr.current.useMemo(t,e)};ut.useReducer=function(t,e,n){return vr.current.useReducer(t,e,n)};ut.useRef=function(t){return vr.current.useRef(t)};ut.useState=function(t){return vr.current.useState(t)};ut.useSyncExternalStore=function(t,e,n){return vr.current.useSyncExternalStore(t,e,n)};ut.useTransition=function(){return vr.current.useTransition()};ut.version="18.3.1";z4.exports=ut;var re=z4.exports;const Lo=Kf(re),nb=U7({__proto__:null,default:Lo},[re]);/**
+ * @license React
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var rb=re,ib=Symbol.for("react.element"),ob=Symbol.for("react.fragment"),sb=Object.prototype.hasOwnProperty,ab=rb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lb={key:!0,ref:!0,__self:!0,__source:!0};function $4(t,e,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)sb.call(e,r)&&!lb.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:ib,type:t,key:o,ref:s,props:i,_owner:ab.current}}Xf.Fragment=ob;Xf.jsx=$4;Xf.jsxs=$4;U4.exports=Xf;var N=U4.exports,c2={},Q4={exports:{}},Vr={},J4={exports:{}},Z4={};/**
+ * @license React
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */(function(t){function e(K,te){var X=K.length;K.push(te);e:for(;0<X;){var de=X-1>>>1,M=K[de];if(0<i(M,te))K[de]=te,K[X]=M,X=de;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var te=K[0],X=K.pop();if(X!==te){K[0]=X;e:for(var de=0,M=K.length,G=M>>>1;de<G;){var H=2*(de+1)-1,ne=K[H],ie=H+1,V=K[ie];if(0>i(ne,X))ie<M&&0>i(V,ne)?(K[de]=V,K[ie]=X,de=ie):(K[de]=ne,K[H]=X,de=H);else if(ie<M&&0>i(V,X))K[de]=V,K[ie]=X,de=ie;else break e}}return te}function i(K,te){var X=K.sortIndex-te.sortIndex;return X!==0?X:K.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,p=null,g=3,h=!1,w=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(K){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=K)r(u),te.sortIndex=te.expirationTime,e(l,te);else break;te=n(u)}}function A(K){if(_=!1,y(K),!w)if(n(l)!==null)w=!0,ee(L);else{var te=n(u);te!==null&&se(A,te.startTime-K)}}function L(K,te){w=!1,_&&(_=!1,v(k),k=-1),h=!0;var X=g;try{for(y(te),p=n(l);p!==null&&(!(p.expirationTime>te)||K&&!P());){var de=p.callback;if(typeof de=="function"){p.callback=null,g=p.priorityLevel;var M=de(p.expirationTime<=te);te=t.unstable_now(),typeof M=="function"?p.callback=M:p===n(l)&&r(l),y(te)}else r(l);p=n(l)}if(p!==null)var G=!0;else{var H=n(u);H!==null&&se(A,H.startTime-te),G=!1}return G}finally{p=null,g=X,h=!1}}var R=!1,D=null,k=-1,z=5,T=-1;function P(){return!(t.unstable_now()-T<z)}function E(){if(D!==null){var K=t.unstable_now();T=K;var te=!0;try{te=D(!0,K)}finally{te?W():(R=!1,D=null)}}else R=!1}var W;if(typeof S=="function")W=function(){S(E)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,Q=B.port2;B.port1.onmessage=E,W=function(){Q.postMessage(null)}}else W=function(){x(E,0)};function ee(K){D=K,R||(R=!0,W())}function se(K,te){k=x(function(){K(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){w||h||(w=!0,ee(L))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(K){switch(g){case 1:case 2:case 3:var te=3;break;default:te=g}var X=g;g=te;try{return K()}finally{g=X}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,te){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var X=g;g=K;try{return te()}finally{g=X}},t.unstable_scheduleCallback=function(K,te,X){var de=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?de+X:de):X=de,K){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=X+M,K={id:d++,callback:te,priorityLevel:K,startTime:X,expirationTime:M,sortIndex:-1},X>de?(K.sortIndex=X,e(u,K),n(l)===null&&K===n(u)&&(_?(v(k),k=-1):_=!0,se(A,X-de))):(K.sortIndex=M,e(l,K),w||h||(w=!0,ee(L))),K},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(K){var te=g;return function(){var X=g;g=te;try{return K.apply(this,arguments)}finally{g=X}}}})(Z4);J4.exports=Z4;var cb=J4.exports;/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var ub=re,Gr=cb;function Le(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ey=new Set,Du={};function Ea(t,e){tc(t,e),tc(t+"Capture",e)}function tc(t,e){for(Du[t]=e,t=0;t<e.length;t++)ey.add(e[t])}var jo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u2=Object.prototype.hasOwnProperty,hb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Um={},zm={};function db(t){return u2.call(zm,t)?!0:u2.call(Um,t)?!1:hb.test(t)?zm[t]=!0:(Um[t]=!0,!1)}function fb(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function pb(t,e,n,r){if(e===null||typeof e>"u"||fb(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function yr(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Hn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Hn[t]=new yr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Hn[e]=new yr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Hn[t]=new yr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Hn[t]=new yr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Hn[t]=new yr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Hn[t]=new yr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Hn[t]=new yr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Hn[t]=new yr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Hn[t]=new yr(t,5,!1,t.toLowerCase(),null,!1,!1)});var B5=/[\-:]([a-z])/g;function D5(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new yr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new yr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(B5,D5);Hn[e]=new yr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Hn[t]=new yr(t,1,!1,t.toLowerCase(),null,!1,!1)});Hn.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Hn[t]=new yr(t,1,!1,t.toLowerCase(),null,!0,!0)});function U5(t,e,n,r){var i=Hn.hasOwnProperty(e)?Hn[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(pb(e,n,i,r)&&(n=null),r||i===null?db(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Bo=ub.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gd=Symbol.for("react.element"),Tl=Symbol.for("react.portal"),Ml=Symbol.for("react.fragment"),z5=Symbol.for("react.strict_mode"),h2=Symbol.for("react.profiler"),ty=Symbol.for("react.provider"),ny=Symbol.for("react.context"),G5=Symbol.for("react.forward_ref"),d2=Symbol.for("react.suspense"),f2=Symbol.for("react.suspense_list"),V5=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),ry=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function iu(t){return t===null||typeof t!="object"?null:(t=Gm&&t[Gm]||t["@@iterator"],typeof t=="function"?t:null)}var Jt=Object.assign,sp;function _u(t){if(sp===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);sp=e&&e[1]||""}return`
+`+sp+t}var ap=!1;function lp(t,e){if(!t||ap)return"";ap=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
+`),o=r.stack.split(`
+`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
+`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{ap=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_u(t):""}function gb(t){switch(t.tag){case 5:return _u(t.type);case 16:return _u("Lazy");case 13:return _u("Suspense");case 19:return _u("SuspenseList");case 0:case 2:case 15:return t=lp(t.type,!1),t;case 11:return t=lp(t.type.render,!1),t;case 1:return t=lp(t.type,!0),t;default:return""}}function p2(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ml:return"Fragment";case Tl:return"Portal";case h2:return"Profiler";case z5:return"StrictMode";case d2:return"Suspense";case f2:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ny:return(t.displayName||"Context")+".Consumer";case ty:return(t._context.displayName||"Context")+".Provider";case G5:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case V5:return e=t.displayName||null,e!==null?e:p2(t.type)||"Memo";case ds:e=t._payload,t=t._init;try{return p2(t(e))}catch{}}return null}function mb(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p2(e);case 8:return e===z5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function js(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function iy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function vb(t){var e=iy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function md(t){t._valueTracker||(t._valueTracker=vb(t))}function oy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=iy(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ff(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function g2(t,e){var n=e.checked;return Jt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Vm(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=js(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function sy(t,e){e=e.checked,e!=null&&U5(t,"checked",e,!1)}function m2(t,e){sy(t,e);var n=js(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?v2(t,e.type,n):e.hasOwnProperty("defaultValue")&&v2(t,e.type,js(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function qm(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function v2(t,e,n){(e!=="number"||ff(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Su=Array.isArray;function ql(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+js(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function y2(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Le(91));return Jt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Wm(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Le(92));if(Su(n)){if(1<n.length)throw Error(Le(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:js(n)}}function ay(t,e){var n=js(e.value),r=js(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Hm(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function ly(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function w2(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?ly(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var vd,cy=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(vd=vd||document.createElement("div"),vd.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=vd.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Uu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Nu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yb=["Webkit","ms","Moz","O"];Object.keys(Nu).forEach(function(t){yb.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Nu[e]=Nu[t]})});function uy(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Nu.hasOwnProperty(t)&&Nu[t]?(""+e).trim():e+"px"}function hy(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=uy(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var wb=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function b2(t,e){if(e){if(wb[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Le(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Le(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Le(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Le(62))}}function _2(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var S2=null;function q5(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var x2=null,Wl=null,Hl=null;function Ym(t){if(t=fh(t)){if(typeof x2!="function")throw Error(Le(280));var e=t.stateNode;e&&(e=e1(e),x2(t.stateNode,t.type,e))}}function dy(t){Wl?Hl?Hl.push(t):Hl=[t]:Wl=t}function fy(){if(Wl){var t=Wl,e=Hl;if(Hl=Wl=null,Ym(t),e)for(t=0;t<e.length;t++)Ym(e[t])}}function py(t,e){return t(e)}function gy(){}var cp=!1;function my(t,e,n){if(cp)return t(e,n);cp=!0;try{return py(t,e,n)}finally{cp=!1,(Wl!==null||Hl!==null)&&(gy(),fy())}}function zu(t,e){var n=t.stateNode;if(n===null)return null;var r=e1(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Le(231,e,typeof n));return n}var A2=!1;if(jo)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){A2=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{A2=!1}function bb(t,e,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(d){this.onError(d)}}var Cu=!1,pf=null,gf=!1,N2=null,_b={onError:function(t){Cu=!0,pf=t}};function Sb(t,e,n,r,i,o,s,a,l){Cu=!1,pf=null,bb.apply(_b,arguments)}function xb(t,e,n,r,i,o,s,a,l){if(Sb.apply(this,arguments),Cu){if(Cu){var u=pf;Cu=!1,pf=null}else throw Error(Le(198));gf||(gf=!0,N2=u)}}function Ta(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function vy(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Km(t){if(Ta(t)!==t)throw Error(Le(188))}function Ab(t){var e=t.alternate;if(!e){if(e=Ta(t),e===null)throw Error(Le(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Km(i),t;if(o===r)return Km(i),e;o=o.sibling}throw Error(Le(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Le(189))}}if(n.alternate!==r)throw Error(Le(190))}if(n.tag!==3)throw Error(Le(188));return n.stateNode.current===n?t:e}function yy(t){return t=Ab(t),t!==null?wy(t):null}function wy(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=wy(t);if(e!==null)return e;t=t.sibling}return null}var by=Gr.unstable_scheduleCallback,Xm=Gr.unstable_cancelCallback,Nb=Gr.unstable_shouldYield,Cb=Gr.unstable_requestPaint,pn=Gr.unstable_now,Pb=Gr.unstable_getCurrentPriorityLevel,W5=Gr.unstable_ImmediatePriority,_y=Gr.unstable_UserBlockingPriority,mf=Gr.unstable_NormalPriority,Lb=Gr.unstable_LowPriority,Sy=Gr.unstable_IdlePriority,$f=null,no=null;function kb(t){if(no&&typeof no.onCommitFiberRoot=="function")try{no.onCommitFiberRoot($f,t,void 0,(t.current.flags&128)===128)}catch{}}var Ti=Math.clz32?Math.clz32:Mb,Eb=Math.log,Tb=Math.LN2;function Mb(t){return t>>>=0,t===0?32:31-(Eb(t)/Tb|0)|0}var yd=64,wd=4194304;function xu(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vf(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=xu(a):(o&=s,o!==0&&(r=xu(o)))}else s=n&~i,s!==0?r=xu(s):o!==0&&(r=xu(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Ti(e),i=1<<n,r|=t[n],e&=~i;return r}function jb(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fb(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-Ti(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=jb(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function C2(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function xy(){var t=yd;return yd<<=1,!(yd&4194240)&&(yd=64),t}function up(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function hh(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ti(e),t[e]=n}function Ib(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Ti(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function H5(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Ti(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Lt=0;function Ay(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Ny,Y5,Cy,Py,Ly,P2=!1,bd=[],xs=null,As=null,Ns=null,Gu=new Map,Vu=new Map,ms=[],Ob="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function $m(t,e){switch(t){case"focusin":case"focusout":xs=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Ns=null;break;case"pointerover":case"pointerout":Gu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vu.delete(e.pointerId)}}function su(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=fh(e),e!==null&&Y5(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Rb(t,e,n,r,i){switch(e){case"focusin":return xs=su(xs,t,e,n,r,i),!0;case"dragenter":return As=su(As,t,e,n,r,i),!0;case"mouseover":return Ns=su(Ns,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gu.set(o,su(Gu.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Vu.set(o,su(Vu.get(o)||null,t,e,n,r,i)),!0}return!1}function ky(t){var e=ga(t.target);if(e!==null){var n=Ta(e);if(n!==null){if(e=n.tag,e===13){if(e=vy(n),e!==null){t.blockedOn=e,Ly(t.priority,function(){Cy(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yd(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=L2(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);S2=r,n.target.dispatchEvent(r),S2=null}else return e=fh(n),e!==null&&Y5(e),t.blockedOn=n,!1;e.shift()}return!0}function Qm(t,e,n){Yd(t)&&n.delete(e)}function Bb(){P2=!1,xs!==null&&Yd(xs)&&(xs=null),As!==null&&Yd(As)&&(As=null),Ns!==null&&Yd(Ns)&&(Ns=null),Gu.forEach(Qm),Vu.forEach(Qm)}function au(t,e){t.blockedOn===e&&(t.blockedOn=null,P2||(P2=!0,Gr.unstable_scheduleCallback(Gr.unstable_NormalPriority,Bb)))}function qu(t){function e(i){return au(i,t)}if(0<bd.length){au(bd[0],t);for(var n=1;n<bd.length;n++){var r=bd[n];r.blockedOn===t&&(r.blockedOn=null)}}for(xs!==null&&au(xs,t),As!==null&&au(As,t),Ns!==null&&au(Ns,t),Gu.forEach(e),Vu.forEach(e),n=0;n<ms.length;n++)r=ms[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<ms.length&&(n=ms[0],n.blockedOn===null);)ky(n),n.blockedOn===null&&ms.shift()}var Yl=Bo.ReactCurrentBatchConfig,yf=!0;function Db(t,e,n,r){var i=Lt,o=Yl.transition;Yl.transition=null;try{Lt=1,K5(t,e,n,r)}finally{Lt=i,Yl.transition=o}}function Ub(t,e,n,r){var i=Lt,o=Yl.transition;Yl.transition=null;try{Lt=4,K5(t,e,n,r)}finally{Lt=i,Yl.transition=o}}function K5(t,e,n,r){if(yf){var i=L2(t,e,n,r);if(i===null)bp(t,e,r,wf,n),$m(t,r);else if(Rb(i,t,e,n,r))r.stopPropagation();else if($m(t,r),e&4&&-1<Ob.indexOf(t)){for(;i!==null;){var o=fh(i);if(o!==null&&Ny(o),o=L2(t,e,n,r),o===null&&bp(t,e,r,wf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else bp(t,e,r,null,n)}}var wf=null;function L2(t,e,n,r){if(wf=null,t=q5(r),t=ga(t),t!==null)if(e=Ta(t),e===null)t=null;else if(n=e.tag,n===13){if(t=vy(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return wf=t,null}function Ey(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Pb()){case W5:return 1;case _y:return 4;case mf:case Lb:return 16;case Sy:return 536870912;default:return 16}default:return 16}}var ws=null,X5=null,Kd=null;function Ty(){if(Kd)return Kd;var t,e=X5,n=e.length,r,i="value"in ws?ws.value:ws.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===i[o-r];r++);return Kd=i.slice(t,1<r?1-r:void 0)}function Xd(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function _d(){return!0}function Jm(){return!1}function qr(t){function e(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?_d:Jm,this.isPropagationStopped=Jm,this}return Jt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_d)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_d)},persist:function(){},isPersistent:_d}),e}var pc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$5=qr(pc),dh=Jt({},pc,{view:0,detail:0}),zb=qr(dh),hp,dp,lu,Qf=Jt({},dh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Q5,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==lu&&(lu&&t.type==="mousemove"?(hp=t.screenX-lu.screenX,dp=t.screenY-lu.screenY):dp=hp=0,lu=t),hp)},movementY:function(t){return"movementY"in t?t.movementY:dp}}),Zm=qr(Qf),Gb=Jt({},Qf,{dataTransfer:0}),Vb=qr(Gb),qb=Jt({},dh,{relatedTarget:0}),fp=qr(qb),Wb=Jt({},pc,{animationName:0,elapsedTime:0,pseudoElement:0}),Hb=qr(Wb),Yb=Jt({},pc,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Kb=qr(Yb),Xb=Jt({},pc,{data:0}),ev=qr(Xb),$b={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Jb[t])?!!e[t]:!1}function Q5(){return Zb}var e_=Jt({},dh,{key:function(t){if(t.key){var e=$b[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Xd(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Qb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Q5,charCode:function(t){return t.type==="keypress"?Xd(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xd(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),t_=qr(e_),n_=Jt({},Qf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tv=qr(n_),r_=Jt({},dh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Q5}),i_=qr(r_),o_=Jt({},pc,{propertyName:0,elapsedTime:0,pseudoElement:0}),s_=qr(o_),a_=Jt({},Qf,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),l_=qr(a_),c_=[9,13,27,32],J5=jo&&"CompositionEvent"in window,Pu=null;jo&&"documentMode"in document&&(Pu=document.documentMode);var u_=jo&&"TextEvent"in window&&!Pu,My=jo&&(!J5||Pu&&8<Pu&&11>=Pu),nv=" ",rv=!1;function jy(t,e){switch(t){case"keyup":return c_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fy(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var jl=!1;function h_(t,e){switch(t){case"compositionend":return Fy(e);case"keypress":return e.which!==32?null:(rv=!0,nv);case"textInput":return t=e.data,t===nv&&rv?null:t;default:return null}}function d_(t,e){if(jl)return t==="compositionend"||!J5&&jy(t,e)?(t=Ty(),Kd=X5=ws=null,jl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return My&&e.locale!=="ko"?null:e.data;default:return null}}var f_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function iv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!f_[t.type]:e==="textarea"}function Iy(t,e,n,r){dy(r),e=bf(e,"onChange"),0<e.length&&(n=new $5("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Lu=null,Wu=null;function p_(t){Hy(t,0)}function Jf(t){var e=Ol(t);if(oy(e))return t}function g_(t,e){if(t==="change")return e}var Oy=!1;if(jo){var pp;if(jo){var gp="oninput"in document;if(!gp){var ov=document.createElement("div");ov.setAttribute("oninput","return;"),gp=typeof ov.oninput=="function"}pp=gp}else pp=!1;Oy=pp&&(!document.documentMode||9<document.documentMode)}function sv(){Lu&&(Lu.detachEvent("onpropertychange",Ry),Wu=Lu=null)}function Ry(t){if(t.propertyName==="value"&&Jf(Wu)){var e=[];Iy(e,Wu,t,q5(t)),my(p_,e)}}function m_(t,e,n){t==="focusin"?(sv(),Lu=e,Wu=n,Lu.attachEvent("onpropertychange",Ry)):t==="focusout"&&sv()}function v_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Jf(Wu)}function y_(t,e){if(t==="click")return Jf(e)}function w_(t,e){if(t==="input"||t==="change")return Jf(e)}function b_(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Fi=typeof Object.is=="function"?Object.is:b_;function Hu(t,e){if(Fi(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u2.call(e,i)||!Fi(t[i],e[i]))return!1}return!0}function av(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function lv(t,e){var n=av(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=av(n)}}function By(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?By(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dy(){for(var t=window,e=ff();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ff(t.document)}return e}function Z5(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function __(t){var e=Dy(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&By(n.ownerDocument.documentElement,n)){if(r!==null&&Z5(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=lv(n,o);var s=lv(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var S_=jo&&"documentMode"in document&&11>=document.documentMode,Fl=null,k2=null,ku=null,E2=!1;function cv(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;E2||Fl==null||Fl!==ff(r)||(r=Fl,"selectionStart"in r&&Z5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ku&&Hu(ku,r)||(ku=r,r=bf(k2,"onSelect"),0<r.length&&(e=new $5("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Fl)))}function Sd(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Il={animationend:Sd("Animation","AnimationEnd"),animationiteration:Sd("Animation","AnimationIteration"),animationstart:Sd("Animation","AnimationStart"),transitionend:Sd("Transition","TransitionEnd")},mp={},Uy={};jo&&(Uy=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function Zf(t){if(mp[t])return mp[t];if(!Il[t])return t;var e=Il[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Uy)return mp[t]=e[n];return t}var zy=Zf("animationend"),Gy=Zf("animationiteration"),Vy=Zf("animationstart"),qy=Zf("transitionend"),Wy=new Map,uv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ds(t,e){Wy.set(t,e),Ea(e,[t])}for(var vp=0;vp<uv.length;vp++){var yp=uv[vp],x_=yp.toLowerCase(),A_=yp[0].toUpperCase()+yp.slice(1);Ds(x_,"on"+A_)}Ds(zy,"onAnimationEnd");Ds(Gy,"onAnimationIteration");Ds(Vy,"onAnimationStart");Ds("dblclick","onDoubleClick");Ds("focusin","onFocus");Ds("focusout","onBlur");Ds(qy,"onTransitionEnd");tc("onMouseEnter",["mouseout","mouseover"]);tc("onMouseLeave",["mouseout","mouseover"]);tc("onPointerEnter",["pointerout","pointerover"]);tc("onPointerLeave",["pointerout","pointerover"]);Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),N_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function hv(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,xb(r,e,void 0,t),t.currentTarget=null}function Hy(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;hv(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;hv(i,a,u),o=l}}}if(gf)throw t=N2,gf=!1,N2=null,t}function Ut(t,e){var n=e[I2];n===void 0&&(n=e[I2]=new Set);var r=t+"__bubble";n.has(r)||(Yy(e,t,2,!1),n.add(r))}function wp(t,e,n){var r=0;e&&(r|=4),Yy(n,t,r,e)}var xd="_reactListening"+Math.random().toString(36).slice(2);function Yu(t){if(!t[xd]){t[xd]=!0,ey.forEach(function(n){n!=="selectionchange"&&(N_.has(n)||wp(n,!1,t),wp(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xd]||(e[xd]=!0,wp("selectionchange",!1,e))}}function Yy(t,e,n,r){switch(Ey(e)){case 1:var i=Db;break;case 4:i=Ub;break;default:i=K5}n=i.bind(null,e,n,t),i=void 0,!A2||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function bp(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ga(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}my(function(){var u=o,d=q5(n),p=[];e:{var g=Wy.get(t);if(g!==void 0){var h=$5,w=t;switch(t){case"keypress":if(Xd(n)===0)break e;case"keydown":case"keyup":h=t_;break;case"focusin":w="focus",h=fp;break;case"focusout":w="blur",h=fp;break;case"beforeblur":case"afterblur":h=fp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Zm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Vb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=i_;break;case zy:case Gy:case Vy:h=Hb;break;case qy:h=s_;break;case"scroll":h=zb;break;case"wheel":h=l_;break;case"copy":case"cut":case"paste":h=Kb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=tv}var _=(e&4)!==0,x=!_&&t==="scroll",v=_?g!==null?g+"Capture":null:g;_=[];for(var S=u,y;S!==null;){y=S;var A=y.stateNode;if(y.tag===5&&A!==null&&(y=A,v!==null&&(A=zu(S,v),A!=null&&_.push(Ku(S,A,y)))),x)break;S=S.return}0<_.length&&(g=new h(g,w,null,n,d),p.push({event:g,listeners:_}))}}if(!(e&7)){e:{if(g=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",g&&n!==S2&&(w=n.relatedTarget||n.fromElement)&&(ga(w)||w[Fo]))break e;if((h||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,h?(w=n.relatedTarget||n.toElement,h=u,w=w?ga(w):null,w!==null&&(x=Ta(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(h=null,w=u),h!==w)){if(_=Zm,A="onMouseLeave",v="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(_=tv,A="onPointerLeave",v="onPointerEnter",S="pointer"),x=h==null?g:Ol(h),y=w==null?g:Ol(w),g=new _(A,S+"leave",h,n,d),g.target=x,g.relatedTarget=y,A=null,ga(d)===u&&(_=new _(v,S+"enter",w,n,d),_.target=y,_.relatedTarget=x,A=_),x=A,h&&w)t:{for(_=h,v=w,S=0,y=_;y;y=wl(y))S++;for(y=0,A=v;A;A=wl(A))y++;for(;0<S-y;)_=wl(_),S--;for(;0<y-S;)v=wl(v),y--;for(;S--;){if(_===v||v!==null&&_===v.alternate)break t;_=wl(_),v=wl(v)}_=null}else _=null;h!==null&&dv(p,g,h,_,!1),w!==null&&x!==null&&dv(p,x,w,_,!0)}}e:{if(g=u?Ol(u):window,h=g.nodeName&&g.nodeName.toLowerCase(),h==="select"||h==="input"&&g.type==="file")var L=g_;else if(iv(g))if(Oy)L=w_;else{L=v_;var R=m_}else(h=g.nodeName)&&h.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(L=y_);if(L&&(L=L(t,u))){Iy(p,L,n,d);break e}R&&R(t,g,u),t==="focusout"&&(R=g._wrapperState)&&R.controlled&&g.type==="number"&&v2(g,"number",g.value)}switch(R=u?Ol(u):window,t){case"focusin":(iv(R)||R.contentEditable==="true")&&(Fl=R,k2=u,ku=null);break;case"focusout":ku=k2=Fl=null;break;case"mousedown":E2=!0;break;case"contextmenu":case"mouseup":case"dragend":E2=!1,cv(p,n,d);break;case"selectionchange":if(S_)break;case"keydown":case"keyup":cv(p,n,d)}var D;if(J5)e:{switch(t){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else jl?jy(t,n)&&(k="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(My&&n.locale!=="ko"&&(jl||k!=="onCompositionStart"?k==="onCompositionEnd"&&jl&&(D=Ty()):(ws=d,X5="value"in ws?ws.value:ws.textContent,jl=!0)),R=bf(u,k),0<R.length&&(k=new ev(k,t,null,n,d),p.push({event:k,listeners:R}),D?k.data=D:(D=Fy(n),D!==null&&(k.data=D)))),(D=u_?h_(t,n):d_(t,n))&&(u=bf(u,"onBeforeInput"),0<u.length&&(d=new ev("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=D))}Hy(p,e)})}function Ku(t,e,n){return{instance:t,listener:e,currentTarget:n}}function bf(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=zu(t,n),o!=null&&r.unshift(Ku(t,o,i)),o=zu(t,e),o!=null&&r.push(Ku(t,o,i))),t=t.return}return r}function wl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function dv(t,e,n,r,i){for(var o=e._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=zu(n,o),l!=null&&s.unshift(Ku(n,l,a))):i||(l=zu(n,o),l!=null&&s.push(Ku(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var C_=/\r\n?/g,P_=/\u0000|\uFFFD/g;function fv(t){return(typeof t=="string"?t:""+t).replace(C_,`
+`).replace(P_,"")}function Ad(t,e,n){if(e=fv(e),fv(t)!==e&&n)throw Error(Le(425))}function _f(){}var T2=null,M2=null;function j2(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var F2=typeof setTimeout=="function"?setTimeout:void 0,L_=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,k_=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(t){return pv.resolve(null).then(t).catch(E_)}:F2;function E_(t){setTimeout(function(){throw t})}function _p(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),qu(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qu(e)}function Cs(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function gv(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var gc=Math.random().toString(36).slice(2),Zi="__reactFiber$"+gc,Xu="__reactProps$"+gc,Fo="__reactContainer$"+gc,I2="__reactEvents$"+gc,T_="__reactListeners$"+gc,M_="__reactHandles$"+gc;function ga(t){var e=t[Zi];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Fo]||n[Zi]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=gv(t);t!==null;){if(n=t[Zi])return n;t=gv(t)}return e}t=n,n=t.parentNode}return null}function fh(t){return t=t[Zi]||t[Fo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ol(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Le(33))}function e1(t){return t[Xu]||null}var O2=[],Rl=-1;function Us(t){return{current:t}}function Vt(t){0>Rl||(t.current=O2[Rl],O2[Rl]=null,Rl--)}function Dt(t,e){Rl++,O2[Rl]=t.current,t.current=e}var Fs={},ar=Us(Fs),Lr=Us(!1),Aa=Fs;function nc(t,e){var n=t.type.contextTypes;if(!n)return Fs;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function kr(t){return t=t.childContextTypes,t!=null}function Sf(){Vt(Lr),Vt(ar)}function mv(t,e,n){if(ar.current!==Fs)throw Error(Le(168));Dt(ar,e),Dt(Lr,n)}function Ky(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Le(108,mb(t)||"Unknown",i));return Jt({},n,r)}function xf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fs,Aa=ar.current,Dt(ar,t),Dt(Lr,Lr.current),!0}function vv(t,e,n){var r=t.stateNode;if(!r)throw Error(Le(169));n?(t=Ky(t,e,Aa),r.__reactInternalMemoizedMergedChildContext=t,Vt(Lr),Vt(ar),Dt(ar,t)):Vt(Lr),Dt(Lr,n)}var Po=null,t1=!1,Sp=!1;function Xy(t){Po===null?Po=[t]:Po.push(t)}function j_(t){t1=!0,Xy(t)}function zs(){if(!Sp&&Po!==null){Sp=!0;var t=0,e=Lt;try{var n=Po;for(Lt=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Po=null,t1=!1}catch(i){throw Po!==null&&(Po=Po.slice(t+1)),by(W5,zs),i}finally{Lt=e,Sp=!1}}return null}var Bl=[],Dl=0,Af=null,Nf=0,ti=[],ni=0,Na=null,ko=1,Eo="";function ha(t,e){Bl[Dl++]=Nf,Bl[Dl++]=Af,Af=t,Nf=e}function $y(t,e,n){ti[ni++]=ko,ti[ni++]=Eo,ti[ni++]=Na,Na=t;var r=ko;t=Eo;var i=32-Ti(r)-1;r&=~(1<<i),n+=1;var o=32-Ti(e)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ko=1<<32-Ti(e)+i|n<<i|r,Eo=o+t}else ko=1<<o|n<<i|r,Eo=t}function eg(t){t.return!==null&&(ha(t,1),$y(t,1,0))}function tg(t){for(;t===Af;)Af=Bl[--Dl],Bl[Dl]=null,Nf=Bl[--Dl],Bl[Dl]=null;for(;t===Na;)Na=ti[--ni],ti[ni]=null,Eo=ti[--ni],ti[ni]=null,ko=ti[--ni],ti[ni]=null}var zr=null,Dr=null,Wt=!1,Ei=null;function Qy(t,e){var n=ii(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function yv(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,zr=t,Dr=Cs(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,zr=t,Dr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Na!==null?{id:ko,overflow:Eo}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=ii(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,zr=t,Dr=null,!0):!1;default:return!1}}function R2(t){return(t.mode&1)!==0&&(t.flags&128)===0}function B2(t){if(Wt){var e=Dr;if(e){var n=e;if(!yv(t,e)){if(R2(t))throw Error(Le(418));e=Cs(n.nextSibling);var r=zr;e&&yv(t,e)?Qy(r,n):(t.flags=t.flags&-4097|2,Wt=!1,zr=t)}}else{if(R2(t))throw Error(Le(418));t.flags=t.flags&-4097|2,Wt=!1,zr=t}}}function wv(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;zr=t}function Nd(t){if(t!==zr)return!1;if(!Wt)return wv(t),Wt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!j2(t.type,t.memoizedProps)),e&&(e=Dr)){if(R2(t))throw Jy(),Error(Le(418));for(;e;)Qy(t,e),e=Cs(e.nextSibling)}if(wv(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Le(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Dr=Cs(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Dr=null}}else Dr=zr?Cs(t.stateNode.nextSibling):null;return!0}function Jy(){for(var t=Dr;t;)t=Cs(t.nextSibling)}function rc(){Dr=zr=null,Wt=!1}function ng(t){Ei===null?Ei=[t]:Ei.push(t)}var F_=Bo.ReactCurrentBatchConfig;function cu(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Le(309));var r=n.stateNode}if(!r)throw Error(Le(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(Le(284));if(!n._owner)throw Error(Le(290,t))}return t}function Cd(t,e){throw t=Object.prototype.toString.call(e),Error(Le(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function bv(t){var e=t._init;return e(t._payload)}function Zy(t){function e(v,S){if(t){var y=v.deletions;y===null?(v.deletions=[S],v.flags|=16):y.push(S)}}function n(v,S){if(!t)return null;for(;S!==null;)e(v,S),S=S.sibling;return null}function r(v,S){for(v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function i(v,S){return v=Es(v,S),v.index=0,v.sibling=null,v}function o(v,S,y){return v.index=y,t?(y=v.alternate,y!==null?(y=y.index,y<S?(v.flags|=2,S):y):(v.flags|=2,S)):(v.flags|=1048576,S)}function s(v){return t&&v.alternate===null&&(v.flags|=2),v}function a(v,S,y,A){return S===null||S.tag!==6?(S=kp(y,v.mode,A),S.return=v,S):(S=i(S,y),S.return=v,S)}function l(v,S,y,A){var L=y.type;return L===Ml?d(v,S,y.props.children,A,y.key):S!==null&&(S.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ds&&bv(L)===S.type)?(A=i(S,y.props),A.ref=cu(v,S,y),A.return=v,A):(A=nf(y.type,y.key,y.props,null,v.mode,A),A.ref=cu(v,S,y),A.return=v,A)}function u(v,S,y,A){return S===null||S.tag!==4||S.stateNode.containerInfo!==y.containerInfo||S.stateNode.implementation!==y.implementation?(S=Ep(y,v.mode,A),S.return=v,S):(S=i(S,y.children||[]),S.return=v,S)}function d(v,S,y,A,L){return S===null||S.tag!==7?(S=ba(y,v.mode,A,L),S.return=v,S):(S=i(S,y),S.return=v,S)}function p(v,S,y){if(typeof S=="string"&&S!==""||typeof S=="number")return S=kp(""+S,v.mode,y),S.return=v,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case gd:return y=nf(S.type,S.key,S.props,null,v.mode,y),y.ref=cu(v,null,S),y.return=v,y;case Tl:return S=Ep(S,v.mode,y),S.return=v,S;case ds:var A=S._init;return p(v,A(S._payload),y)}if(Su(S)||iu(S))return S=ba(S,v.mode,y,null),S.return=v,S;Cd(v,S)}return null}function g(v,S,y,A){var L=S!==null?S.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return L!==null?null:a(v,S,""+y,A);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gd:return y.key===L?l(v,S,y,A):null;case Tl:return y.key===L?u(v,S,y,A):null;case ds:return L=y._init,g(v,S,L(y._payload),A)}if(Su(y)||iu(y))return L!==null?null:d(v,S,y,A,null);Cd(v,y)}return null}function h(v,S,y,A,L){if(typeof A=="string"&&A!==""||typeof A=="number")return v=v.get(y)||null,a(S,v,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case gd:return v=v.get(A.key===null?y:A.key)||null,l(S,v,A,L);case Tl:return v=v.get(A.key===null?y:A.key)||null,u(S,v,A,L);case ds:var R=A._init;return h(v,S,y,R(A._payload),L)}if(Su(A)||iu(A))return v=v.get(y)||null,d(S,v,A,L,null);Cd(S,A)}return null}function w(v,S,y,A){for(var L=null,R=null,D=S,k=S=0,z=null;D!==null&&k<y.length;k++){D.index>k?(z=D,D=null):z=D.sibling;var T=g(v,D,y[k],A);if(T===null){D===null&&(D=z);break}t&&D&&T.alternate===null&&e(v,D),S=o(T,S,k),R===null?L=T:R.sibling=T,R=T,D=z}if(k===y.length)return n(v,D),Wt&&ha(v,k),L;if(D===null){for(;k<y.length;k++)D=p(v,y[k],A),D!==null&&(S=o(D,S,k),R===null?L=D:R.sibling=D,R=D);return Wt&&ha(v,k),L}for(D=r(v,D);k<y.length;k++)z=h(D,v,k,y[k],A),z!==null&&(t&&z.alternate!==null&&D.delete(z.key===null?k:z.key),S=o(z,S,k),R===null?L=z:R.sibling=z,R=z);return t&&D.forEach(function(P){return e(v,P)}),Wt&&ha(v,k),L}function _(v,S,y,A){var L=iu(y);if(typeof L!="function")throw Error(Le(150));if(y=L.call(y),y==null)throw Error(Le(151));for(var R=L=null,D=S,k=S=0,z=null,T=y.next();D!==null&&!T.done;k++,T=y.next()){D.index>k?(z=D,D=null):z=D.sibling;var P=g(v,D,T.value,A);if(P===null){D===null&&(D=z);break}t&&D&&P.alternate===null&&e(v,D),S=o(P,S,k),R===null?L=P:R.sibling=P,R=P,D=z}if(T.done)return n(v,D),Wt&&ha(v,k),L;if(D===null){for(;!T.done;k++,T=y.next())T=p(v,T.value,A),T!==null&&(S=o(T,S,k),R===null?L=T:R.sibling=T,R=T);return Wt&&ha(v,k),L}for(D=r(v,D);!T.done;k++,T=y.next())T=h(D,v,k,T.value,A),T!==null&&(t&&T.alternate!==null&&D.delete(T.key===null?k:T.key),S=o(T,S,k),R===null?L=T:R.sibling=T,R=T);return t&&D.forEach(function(E){return e(v,E)}),Wt&&ha(v,k),L}function x(v,S,y,A){if(typeof y=="object"&&y!==null&&y.type===Ml&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case gd:e:{for(var L=y.key,R=S;R!==null;){if(R.key===L){if(L=y.type,L===Ml){if(R.tag===7){n(v,R.sibling),S=i(R,y.props.children),S.return=v,v=S;break e}}else if(R.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ds&&bv(L)===R.type){n(v,R.sibling),S=i(R,y.props),S.ref=cu(v,R,y),S.return=v,v=S;break e}n(v,R);break}else e(v,R);R=R.sibling}y.type===Ml?(S=ba(y.props.children,v.mode,A,y.key),S.return=v,v=S):(A=nf(y.type,y.key,y.props,null,v.mode,A),A.ref=cu(v,S,y),A.return=v,v=A)}return s(v);case Tl:e:{for(R=y.key;S!==null;){if(S.key===R)if(S.tag===4&&S.stateNode.containerInfo===y.containerInfo&&S.stateNode.implementation===y.implementation){n(v,S.sibling),S=i(S,y.children||[]),S.return=v,v=S;break e}else{n(v,S);break}else e(v,S);S=S.sibling}S=Ep(y,v.mode,A),S.return=v,v=S}return s(v);case ds:return R=y._init,x(v,S,R(y._payload),A)}if(Su(y))return w(v,S,y,A);if(iu(y))return _(v,S,y,A);Cd(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,S!==null&&S.tag===6?(n(v,S.sibling),S=i(S,y),S.return=v,v=S):(n(v,S),S=kp(y,v.mode,A),S.return=v,v=S),s(v)):n(v,S)}return x}var ic=Zy(!0),e6=Zy(!1),Cf=Us(null),Pf=null,Ul=null,rg=null;function ig(){rg=Ul=Pf=null}function og(t){var e=Cf.current;Vt(Cf),t._currentValue=e}function D2(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Kl(t,e){Pf=t,rg=Ul=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Pr=!0),t.firstContext=null)}function si(t){var e=t._currentValue;if(rg!==t)if(t={context:t,memoizedValue:e,next:null},Ul===null){if(Pf===null)throw Error(Le(308));Ul=t,Pf.dependencies={lanes:0,firstContext:t}}else Ul=Ul.next=t;return e}var ma=null;function sg(t){ma===null?ma=[t]:ma.push(t)}function t6(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,sg(e)):(n.next=i.next,i.next=n),e.interleaved=n,Io(t,r)}function Io(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var fs=!1;function ag(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n6(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function To(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ps(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,vt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Io(t,n)}return i=r.interleaved,i===null?(e.next=e,sg(r)):(e.next=i.next,i.next=e),r.interleaved=e,Io(t,n)}function $d(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,H5(t,n)}}function _v(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Lf(t,e,n,r){var i=t.updateQueue;fs=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var p=i.baseState;s=0,d=u=l=null,a=o;do{var g=a.lane,h=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=t,_=a;switch(g=e,h=n,_.tag){case 1:if(w=_.payload,typeof w=="function"){p=w.call(h,p,g);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,g=typeof w=="function"?w.call(h,p,g):w,g==null)break e;p=Jt({},p,g);break e;case 2:fs=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else h={eventTime:h,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,l=p):d=d.next=h,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(d===null&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do s|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Pa|=s,t.lanes=s,t.memoizedState=p}}function Sv(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Le(191,i));i.call(r)}}}var ph={},ro=Us(ph),$u=Us(ph),Qu=Us(ph);function va(t){if(t===ph)throw Error(Le(174));return t}function lg(t,e){switch(Dt(Qu,e),Dt($u,t),Dt(ro,ph),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:w2(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=w2(e,t)}Vt(ro),Dt(ro,e)}function oc(){Vt(ro),Vt($u),Vt(Qu)}function r6(t){va(Qu.current);var e=va(ro.current),n=w2(e,t.type);e!==n&&(Dt($u,t),Dt(ro,n))}function cg(t){$u.current===t&&(Vt(ro),Vt($u))}var Xt=Us(0);function kf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var xp=[];function ug(){for(var t=0;t<xp.length;t++)xp[t]._workInProgressVersionPrimary=null;xp.length=0}var Qd=Bo.ReactCurrentDispatcher,Ap=Bo.ReactCurrentBatchConfig,Ca=0,Qt=null,En=null,Bn=null,Ef=!1,Eu=!1,Ju=0,I_=0;function $n(){throw Error(Le(321))}function hg(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Fi(t[n],e[n]))return!1;return!0}function dg(t,e,n,r,i,o){if(Ca=o,Qt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Qd.current=t===null||t.memoizedState===null?D_:U_,t=n(r,i),Eu){o=0;do{if(Eu=!1,Ju=0,25<=o)throw Error(Le(301));o+=1,Bn=En=null,e.updateQueue=null,Qd.current=z_,t=n(r,i)}while(Eu)}if(Qd.current=Tf,e=En!==null&&En.next!==null,Ca=0,Bn=En=Qt=null,Ef=!1,e)throw Error(Le(300));return t}function fg(){var t=Ju!==0;return Ju=0,t}function Ji(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?Qt.memoizedState=Bn=t:Bn=Bn.next=t,Bn}function ai(){if(En===null){var t=Qt.alternate;t=t!==null?t.memoizedState:null}else t=En.next;var e=Bn===null?Qt.memoizedState:Bn.next;if(e!==null)Bn=e,En=t;else{if(t===null)throw Error(Le(310));En=t,t={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null},Bn===null?Qt.memoizedState=Bn=t:Bn=Bn.next=t}return Bn}function Zu(t,e){return typeof e=="function"?e(t):e}function Np(t){var e=ai(),n=e.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=t;var r=En,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var d=u.lane;if((Ca&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=r):l=l.next=p,Qt.lanes|=d,Pa|=d}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Fi(r,e.memoizedState)||(Pr=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,Qt.lanes|=o,Pa|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Cp(t){var e=ai(),n=e.queue;if(n===null)throw Error(Le(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Fi(o,e.memoizedState)||(Pr=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function i6(){}function o6(t,e){var n=Qt,r=ai(),i=e(),o=!Fi(r.memoizedState,i);if(o&&(r.memoizedState=i,Pr=!0),r=r.queue,pg(l6.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Bn!==null&&Bn.memoizedState.tag&1){if(n.flags|=2048,eh(9,a6.bind(null,n,r,i,e),void 0,null),Un===null)throw Error(Le(349));Ca&30||s6(n,e,i)}return i}function s6(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Qt.updateQueue,e===null?(e={lastEffect:null,stores:null},Qt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function a6(t,e,n,r){e.value=n,e.getSnapshot=r,c6(e)&&u6(t)}function l6(t,e,n){return n(function(){c6(e)&&u6(t)})}function c6(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Fi(t,n)}catch{return!0}}function u6(t){var e=Io(t,1);e!==null&&Mi(e,t,1,-1)}function xv(t){var e=Ji();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zu,lastRenderedState:t},e.queue=t,t=t.dispatch=B_.bind(null,Qt,t),[e.memoizedState,t]}function eh(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Qt.updateQueue,e===null?(e={lastEffect:null,stores:null},Qt.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function h6(){return ai().memoizedState}function Jd(t,e,n,r){var i=Ji();Qt.flags|=t,i.memoizedState=eh(1|e,n,void 0,r===void 0?null:r)}function n1(t,e,n,r){var i=ai();r=r===void 0?null:r;var o=void 0;if(En!==null){var s=En.memoizedState;if(o=s.destroy,r!==null&&hg(r,s.deps)){i.memoizedState=eh(e,n,o,r);return}}Qt.flags|=t,i.memoizedState=eh(1|e,n,o,r)}function Av(t,e){return Jd(8390656,8,t,e)}function pg(t,e){return n1(2048,8,t,e)}function d6(t,e){return n1(4,2,t,e)}function f6(t,e){return n1(4,4,t,e)}function p6(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function g6(t,e,n){return n=n!=null?n.concat([t]):null,n1(4,4,p6.bind(null,e,t),n)}function gg(){}function m6(t,e){var n=ai();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&hg(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function v6(t,e){var n=ai();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&hg(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function y6(t,e,n){return Ca&21?(Fi(n,e)||(n=xy(),Qt.lanes|=n,Pa|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Pr=!0),t.memoizedState=n)}function O_(t,e){var n=Lt;Lt=n!==0&&4>n?n:4,t(!0);var r=Ap.transition;Ap.transition={};try{t(!1),e()}finally{Lt=n,Ap.transition=r}}function w6(){return ai().memoizedState}function R_(t,e,n){var r=ks(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b6(t))_6(e,n);else if(n=t6(t,e,n,r),n!==null){var i=gr();Mi(n,t,r,i),S6(n,e,r)}}function B_(t,e,n){var r=ks(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b6(t))_6(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Fi(a,s)){var l=e.interleaved;l===null?(i.next=i,sg(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=t6(t,e,i,r),n!==null&&(i=gr(),Mi(n,t,r,i),S6(n,e,r))}}function b6(t){var e=t.alternate;return t===Qt||e!==null&&e===Qt}function _6(t,e){Eu=Ef=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function S6(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,H5(t,n)}}var Tf={readContext:si,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},D_={readContext:si,useCallback:function(t,e){return Ji().memoizedState=[t,e===void 0?null:e],t},useContext:si,useEffect:Av,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Jd(4194308,4,p6.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Jd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Jd(4,2,t,e)},useMemo:function(t,e){var n=Ji();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ji();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=R_.bind(null,Qt,t),[r.memoizedState,t]},useRef:function(t){var e=Ji();return t={current:t},e.memoizedState=t},useState:xv,useDebugValue:gg,useDeferredValue:function(t){return Ji().memoizedState=t},useTransition:function(){var t=xv(!1),e=t[0];return t=O_.bind(null,t[1]),Ji().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Qt,i=Ji();if(Wt){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=e(),Un===null)throw Error(Le(349));Ca&30||s6(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,Av(l6.bind(null,r,o,t),[t]),r.flags|=2048,eh(9,a6.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Ji(),e=Un.identifierPrefix;if(Wt){var n=Eo,r=ko;n=(r&~(1<<32-Ti(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ju++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=I_++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},U_={readContext:si,useCallback:m6,useContext:si,useEffect:pg,useImperativeHandle:g6,useInsertionEffect:d6,useLayoutEffect:f6,useMemo:v6,useReducer:Np,useRef:h6,useState:function(){return Np(Zu)},useDebugValue:gg,useDeferredValue:function(t){var e=ai();return y6(e,En.memoizedState,t)},useTransition:function(){var t=Np(Zu)[0],e=ai().memoizedState;return[t,e]},useMutableSource:i6,useSyncExternalStore:o6,useId:w6,unstable_isNewReconciler:!1},z_={readContext:si,useCallback:m6,useContext:si,useEffect:pg,useImperativeHandle:g6,useInsertionEffect:d6,useLayoutEffect:f6,useMemo:v6,useReducer:Cp,useRef:h6,useState:function(){return Cp(Zu)},useDebugValue:gg,useDeferredValue:function(t){var e=ai();return En===null?e.memoizedState=t:y6(e,En.memoizedState,t)},useTransition:function(){var t=Cp(Zu)[0],e=ai().memoizedState;return[t,e]},useMutableSource:i6,useSyncExternalStore:o6,useId:w6,unstable_isNewReconciler:!1};function Pi(t,e){if(t&&t.defaultProps){e=Jt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function U2(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Jt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var r1={isMounted:function(t){return(t=t._reactInternals)?Ta(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=gr(),i=ks(t),o=To(r,i);o.payload=e,n!=null&&(o.callback=n),e=Ps(t,o,i),e!==null&&(Mi(e,t,i,r),$d(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=gr(),i=ks(t),o=To(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Ps(t,o,i),e!==null&&(Mi(e,t,i,r),$d(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=gr(),r=ks(t),i=To(n,r);i.tag=2,e!=null&&(i.callback=e),e=Ps(t,i,r),e!==null&&(Mi(e,t,r,n),$d(e,t,r))}};function Nv(t,e,n,r,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!Hu(n,r)||!Hu(i,o):!0}function x6(t,e,n){var r=!1,i=Fs,o=e.contextType;return typeof o=="object"&&o!==null?o=si(o):(i=kr(e)?Aa:ar.current,r=e.contextTypes,o=(r=r!=null)?nc(t,i):Fs),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=r1,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function Cv(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&r1.enqueueReplaceState(e,e.state,null)}function z2(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},ag(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=si(o):(o=kr(e)?Aa:ar.current,i.context=nc(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(U2(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&r1.enqueueReplaceState(i,i.state,null),Lf(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function sc(t,e){try{var n="",r=e;do n+=gb(r),r=r.return;while(r);var i=n}catch(o){i=`
+Error generating stack: `+o.message+`
+`+o.stack}return{value:t,source:e,stack:i,digest:null}}function Pp(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function G2(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var G_=typeof WeakMap=="function"?WeakMap:Map;function A6(t,e,n){n=To(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){jf||(jf=!0,J2=r),G2(t,e)},n}function N6(t,e,n){n=To(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){G2(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){G2(t,e),typeof r!="function"&&(Ls===null?Ls=new Set([this]):Ls.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function Pv(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new G_;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=n9.bind(null,t,e,n),e.then(t,t))}function Lv(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function kv(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=To(-1,1),e.tag=2,Ps(n,e,1))),n.lanes|=1),t)}var V_=Bo.ReactCurrentOwner,Pr=!1;function pr(t,e,n,r){e.child=t===null?e6(e,null,n,r):ic(e,t.child,n,r)}function Ev(t,e,n,r,i){n=n.render;var o=e.ref;return Kl(e,i),r=dg(t,e,n,r,o,i),n=fg(),t!==null&&!Pr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Oo(t,e,i)):(Wt&&n&&eg(e),e.flags|=1,pr(t,e,r,i),e.child)}function Tv(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!xg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,C6(t,e,o,r,i)):(t=nf(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hu,n(s,r)&&t.ref===e.ref)return Oo(t,e,i)}return e.flags|=1,t=Es(o,r),t.ref=e.ref,t.return=e,e.child=t}function C6(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(Hu(o,r)&&t.ref===e.ref)if(Pr=!1,e.pendingProps=r=o,(t.lanes&i)!==0)t.flags&131072&&(Pr=!0);else return e.lanes=t.lanes,Oo(t,e,i)}return V2(t,e,n,r,i)}function P6(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(Gl,Br),Br|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Dt(Gl,Br),Br|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Dt(Gl,Br),Br|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Dt(Gl,Br),Br|=r;return pr(t,e,i,n),e.child}function L6(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function V2(t,e,n,r,i){var o=kr(n)?Aa:ar.current;return o=nc(e,o),Kl(e,i),n=dg(t,e,n,r,o,i),r=fg(),t!==null&&!Pr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Oo(t,e,i)):(Wt&&r&&eg(e),e.flags|=1,pr(t,e,n,i),e.child)}function Mv(t,e,n,r,i){if(kr(n)){var o=!0;xf(e)}else o=!1;if(Kl(e,i),e.stateNode===null)Zd(t,e),x6(e,n,r),z2(e,n,r,i),r=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=si(u):(u=kr(n)?Aa:ar.current,u=nc(e,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Cv(e,s,r,u),fs=!1;var g=e.memoizedState;s.state=g,Lf(e,r,s,i),l=e.memoizedState,a!==r||g!==l||Lr.current||fs?(typeof d=="function"&&(U2(e,n,d,r),l=e.memoizedState),(a=fs||Nv(e,n,a,r,g,l,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{s=e.stateNode,n6(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Pi(e.type,a),s.props=u,p=e.pendingProps,g=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=si(l):(l=kr(n)?Aa:ar.current,l=nc(e,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||g!==l)&&Cv(e,s,r,l),fs=!1,g=e.memoizedState,s.state=g,Lf(e,r,s,i);var w=e.memoizedState;a!==p||g!==w||Lr.current||fs?(typeof h=="function"&&(U2(e,n,h,r),w=e.memoizedState),(u=fs||Nv(e,n,u,r,g,w,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),s.props=r,s.state=w,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&g===t.memoizedState||(e.flags|=1024),r=!1)}return q2(t,e,n,r,o,i)}function q2(t,e,n,r,i,o){L6(t,e);var s=(e.flags&128)!==0;if(!r&&!s)return i&&vv(e,n,!1),Oo(t,e,o);r=e.stateNode,V_.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=ic(e,t.child,null,o),e.child=ic(e,null,a,o)):pr(t,e,a,o),e.memoizedState=r.state,i&&vv(e,n,!0),e.child}function k6(t){var e=t.stateNode;e.pendingContext?mv(t,e.pendingContext,e.pendingContext!==e.context):e.context&&mv(t,e.context,!1),lg(t,e.containerInfo)}function jv(t,e,n,r,i){return rc(),ng(i),e.flags|=256,pr(t,e,n,r),e.child}var W2={dehydrated:null,treeContext:null,retryLane:0};function H2(t){return{baseLanes:t,cachePool:null,transitions:null}}function E6(t,e,n){var r=e.pendingProps,i=Xt.current,o=!1,s=(e.flags&128)!==0,a;if((a=s)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Dt(Xt,i&1),t===null)return B2(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=r.children,t=r.fallback,o?(r=e.mode,o=e.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=s1(s,r,0,null),t=ba(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=H2(n),e.memoizedState=W2,t):mg(e,s));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return q_(t,e,s,r,a,i,n);if(o){o=r.fallback,s=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Es(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Es(a,o):(o=ba(o,s,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,s=t.child.memoizedState,s=s===null?H2(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=W2,r}return o=t.child,t=o.sibling,r=Es(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function mg(t,e){return e=s1({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Pd(t,e,n,r){return r!==null&&ng(r),ic(e,t.child,null,n),t=mg(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function q_(t,e,n,r,i,o,s){if(n)return e.flags&256?(e.flags&=-257,r=Pp(Error(Le(422))),Pd(t,e,s,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=s1({mode:"visible",children:r.children},i,0,null),o=ba(o,i,s,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&ic(e,t.child,null,s),e.child.memoizedState=H2(s),e.memoizedState=W2,o);if(!(e.mode&1))return Pd(t,e,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Le(419)),r=Pp(o,r,void 0),Pd(t,e,s,r)}if(a=(s&t.childLanes)!==0,Pr||a){if(r=Un,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Io(t,i),Mi(r,t,i,-1))}return Sg(),r=Pp(Error(Le(421))),Pd(t,e,s,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=r9.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,Dr=Cs(i.nextSibling),zr=e,Wt=!0,Ei=null,t!==null&&(ti[ni++]=ko,ti[ni++]=Eo,ti[ni++]=Na,ko=t.id,Eo=t.overflow,Na=e),e=mg(e,r.children),e.flags|=4096,e)}function Fv(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),D2(t.return,e,n)}function Lp(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function T6(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(pr(t,e,r.children,n),r=Xt.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fv(t,n,e);else if(t.tag===19)Fv(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Dt(Xt,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&kf(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Lp(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&kf(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Lp(e,!0,n,null,o);break;case"together":Lp(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Zd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Oo(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Pa|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Le(153));if(e.child!==null){for(t=e.child,n=Es(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Es(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function W_(t,e,n){switch(e.tag){case 3:k6(e),rc();break;case 5:r6(e);break;case 1:kr(e.type)&&xf(e);break;case 4:lg(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Dt(Cf,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Dt(Xt,Xt.current&1),e.flags|=128,null):n&e.child.childLanes?E6(t,e,n):(Dt(Xt,Xt.current&1),t=Oo(t,e,n),t!==null?t.sibling:null);Dt(Xt,Xt.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return T6(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Dt(Xt,Xt.current),r)break;return null;case 22:case 23:return e.lanes=0,P6(t,e,n)}return Oo(t,e,n)}var M6,Y2,j6,F6;M6=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Y2=function(){};j6=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,va(ro.current);var o=null;switch(n){case"input":i=g2(t,i),r=g2(t,r),o=[];break;case"select":i=Jt({},i,{value:void 0}),r=Jt({},r,{value:void 0}),o=[];break;case"textarea":i=y2(t,i),r=y2(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=_f)}b2(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Du.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Du.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ut("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};F6=function(t,e,n,r){n!==r&&(e.flags|=4)};function uu(t,e){if(!Wt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Qn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function H_(t,e,n){var r=e.pendingProps;switch(tg(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qn(e),null;case 1:return kr(e.type)&&Sf(),Qn(e),null;case 3:return r=e.stateNode,oc(),Vt(Lr),Vt(ar),ug(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Nd(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ei!==null&&(t5(Ei),Ei=null))),Y2(t,e),Qn(e),null;case 5:cg(e);var i=va(Qu.current);if(n=e.type,t!==null&&e.stateNode!=null)j6(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Le(166));return Qn(e),null}if(t=va(ro.current),Nd(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[Zi]=e,r[Xu]=o,t=(e.mode&1)!==0,n){case"dialog":Ut("cancel",r),Ut("close",r);break;case"iframe":case"object":case"embed":Ut("load",r);break;case"video":case"audio":for(i=0;i<Au.length;i++)Ut(Au[i],r);break;case"source":Ut("error",r);break;case"img":case"image":case"link":Ut("error",r),Ut("load",r);break;case"details":Ut("toggle",r);break;case"input":Vm(r,o),Ut("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ut("invalid",r);break;case"textarea":Wm(r,o),Ut("invalid",r)}b2(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ad(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ad(r.textContent,a,t),i=["children",""+a]):Du.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ut("scroll",r)}switch(n){case"input":md(r),qm(r,o,!0);break;case"textarea":md(r),Hm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=_f)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=ly(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[Zi]=e,t[Xu]=r,M6(t,e,!1,!1),e.stateNode=t;e:{switch(s=_2(n,r),n){case"dialog":Ut("cancel",t),Ut("close",t),i=r;break;case"iframe":case"object":case"embed":Ut("load",t),i=r;break;case"video":case"audio":for(i=0;i<Au.length;i++)Ut(Au[i],t);i=r;break;case"source":Ut("error",t),i=r;break;case"img":case"image":case"link":Ut("error",t),Ut("load",t),i=r;break;case"details":Ut("toggle",t),i=r;break;case"input":Vm(t,r),i=g2(t,r),Ut("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Jt({},r,{value:void 0}),Ut("invalid",t);break;case"textarea":Wm(t,r),i=y2(t,r),Ut("invalid",t);break;default:i=r}b2(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hy(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&cy(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Uu(t,l):typeof l=="number"&&Uu(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Du.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ut("scroll",t):l!=null&&U5(t,o,l,s))}switch(n){case"input":md(t),qm(t,r,!1);break;case"textarea":md(t),Hm(t);break;case"option":r.value!=null&&t.setAttribute("value",""+js(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?ql(t,!!r.multiple,o,!1):r.defaultValue!=null&&ql(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=_f)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Qn(e),null;case 6:if(t&&e.stateNode!=null)F6(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Le(166));if(n=va(Qu.current),va(ro.current),Nd(e)){if(r=e.stateNode,n=e.memoizedProps,r[Zi]=e,(o=r.nodeValue!==n)&&(t=zr,t!==null))switch(t.tag){case 3:Ad(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ad(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zi]=e,e.stateNode=r}return Qn(e),null;case 13:if(Vt(Xt),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Wt&&Dr!==null&&e.mode&1&&!(e.flags&128))Jy(),rc(),e.flags|=98560,o=!1;else if(o=Nd(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(Le(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Le(317));o[Zi]=e}else rc(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Qn(e),o=!1}else Ei!==null&&(t5(Ei),Ei=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Xt.current&1?Tn===0&&(Tn=3):Sg())),e.updateQueue!==null&&(e.flags|=4),Qn(e),null);case 4:return oc(),Y2(t,e),t===null&&Yu(e.stateNode.containerInfo),Qn(e),null;case 10:return og(e.type._context),Qn(e),null;case 17:return kr(e.type)&&Sf(),Qn(e),null;case 19:if(Vt(Xt),o=e.memoizedState,o===null)return Qn(e),null;if(r=(e.flags&128)!==0,s=o.rendering,s===null)if(r)uu(o,!1);else{if(Tn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=kf(t),s!==null){for(e.flags|=128,uu(o,!1),r=s.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Dt(Xt,Xt.current&1|2),e.child}t=t.sibling}o.tail!==null&&pn()>ac&&(e.flags|=128,r=!0,uu(o,!1),e.lanes=4194304)}else{if(!r)if(t=kf(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),uu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Wt)return Qn(e),null}else 2*pn()-o.renderingStartTime>ac&&n!==1073741824&&(e.flags|=128,r=!0,uu(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=pn(),e.sibling=null,n=Xt.current,Dt(Xt,r?n&1|2:n&1),e):(Qn(e),null);case 22:case 23:return _g(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Br&1073741824&&(Qn(e),e.subtreeFlags&6&&(e.flags|=8192)):Qn(e),null;case 24:return null;case 25:return null}throw Error(Le(156,e.tag))}function Y_(t,e){switch(tg(e),e.tag){case 1:return kr(e.type)&&Sf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return oc(),Vt(Lr),Vt(ar),ug(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cg(e),null;case 13:if(Vt(Xt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Le(340));rc()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Vt(Xt),null;case 4:return oc(),null;case 10:return og(e.type._context),null;case 22:case 23:return _g(),null;case 24:return null;default:return null}}var Ld=!1,ir=!1,K_=typeof WeakSet=="function"?WeakSet:Set,De=null;function zl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){an(t,e,r)}else n.current=null}function K2(t,e,n){try{n()}catch(r){an(t,e,r)}}var Iv=!1;function X_(t,e){if(T2=yf,t=Dy(),Z5(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,p=t,g=null;t:for(;;){for(var h;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==o||r!==0&&p.nodeType!==3||(l=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(h=p.firstChild)!==null;)g=p,p=h;for(;;){if(p===t)break t;if(g===n&&++u===i&&(a=s),g===o&&++d===r&&(l=s),(h=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(M2={focusedElem:t,selectionRange:n},yf=!1,De=e;De!==null;)if(e=De,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,De=t;else for(;De!==null;){e=De;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,x=w.memoizedState,v=e.stateNode,S=v.getSnapshotBeforeUpdate(e.elementType===e.type?_:Pi(e.type,_),x);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(A){an(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,De=t;break}De=e.return}return w=Iv,Iv=!1,w}function Tu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&K2(e,n,o)}i=i.next}while(i!==r)}}function i1(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function X2(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function I6(t){var e=t.alternate;e!==null&&(t.alternate=null,I6(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Zi],delete e[Xu],delete e[I2],delete e[T_],delete e[M_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function O6(t){return t.tag===5||t.tag===3||t.tag===4}function Ov(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||O6(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $2(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=_f));else if(r!==4&&(t=t.child,t!==null))for($2(t,e,n),t=t.sibling;t!==null;)$2(t,e,n),t=t.sibling}function Q2(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Q2(t,e,n),t=t.sibling;t!==null;)Q2(t,e,n),t=t.sibling}var qn=null,ki=!1;function ss(t,e,n){for(n=n.child;n!==null;)R6(t,e,n),n=n.sibling}function R6(t,e,n){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount($f,n)}catch{}switch(n.tag){case 5:ir||zl(n,e);case 6:var r=qn,i=ki;qn=null,ss(t,e,n),qn=r,ki=i,qn!==null&&(ki?(t=qn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):qn.removeChild(n.stateNode));break;case 18:qn!==null&&(ki?(t=qn,n=n.stateNode,t.nodeType===8?_p(t.parentNode,n):t.nodeType===1&&_p(t,n),qu(t)):_p(qn,n.stateNode));break;case 4:r=qn,i=ki,qn=n.stateNode.containerInfo,ki=!0,ss(t,e,n),qn=r,ki=i;break;case 0:case 11:case 14:case 15:if(!ir&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&K2(n,e,s),i=i.next}while(i!==r)}ss(t,e,n);break;case 1:if(!ir&&(zl(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){an(n,e,a)}ss(t,e,n);break;case 21:ss(t,e,n);break;case 22:n.mode&1?(ir=(r=ir)||n.memoizedState!==null,ss(t,e,n),ir=r):ss(t,e,n);break;default:ss(t,e,n)}}function Rv(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new K_),e.forEach(function(r){var i=i9.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wi(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,s=e,a=s;e:for(;a!==null;){switch(a.tag){case 5:qn=a.stateNode,ki=!1;break e;case 3:qn=a.stateNode.containerInfo,ki=!0;break e;case 4:qn=a.stateNode.containerInfo,ki=!0;break e}a=a.return}if(qn===null)throw Error(Le(160));R6(o,s,i),qn=null,ki=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){an(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)B6(e,t),e=e.sibling}function B6(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(wi(e,t),Ki(t),r&4){try{Tu(3,t,t.return),i1(3,t)}catch(_){an(t,t.return,_)}try{Tu(5,t,t.return)}catch(_){an(t,t.return,_)}}break;case 1:wi(e,t),Ki(t),r&512&&n!==null&&zl(n,n.return);break;case 5:if(wi(e,t),Ki(t),r&512&&n!==null&&zl(n,n.return),t.flags&32){var i=t.stateNode;try{Uu(i,"")}catch(_){an(t,t.return,_)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,s=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&sy(i,o),_2(a,s);var u=_2(a,o);for(s=0;s<l.length;s+=2){var d=l[s],p=l[s+1];d==="style"?hy(i,p):d==="dangerouslySetInnerHTML"?cy(i,p):d==="children"?Uu(i,p):U5(i,d,p,u)}switch(a){case"input":m2(i,o);break;case"textarea":ay(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?ql(i,!!o.multiple,h,!1):g!==!!o.multiple&&(o.defaultValue!=null?ql(i,!!o.multiple,o.defaultValue,!0):ql(i,!!o.multiple,o.multiple?[]:"",!1))}i[Xu]=o}catch(_){an(t,t.return,_)}}break;case 6:if(wi(e,t),Ki(t),r&4){if(t.stateNode===null)throw Error(Le(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(_){an(t,t.return,_)}}break;case 3:if(wi(e,t),Ki(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qu(e.containerInfo)}catch(_){an(t,t.return,_)}break;case 4:wi(e,t),Ki(t);break;case 13:wi(e,t),Ki(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(wg=pn())),r&4&&Rv(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(ir=(u=ir)||d,wi(e,t),ir=u):wi(e,t),Ki(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(De=t,d=t.child;d!==null;){for(p=De=d;De!==null;){switch(g=De,h=g.child,g.tag){case 0:case 11:case 14:case 15:Tu(4,g,g.return);break;case 1:zl(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(_){an(r,n,_)}}break;case 5:zl(g,g.return);break;case 22:if(g.memoizedState!==null){Dv(p);continue}}h!==null?(h.return=g,De=h):Dv(p)}d=d.sibling}e:for(d=null,p=t;;){if(p.tag===5){if(d===null){d=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=uy("display",s))}catch(_){an(t,t.return,_)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(_){an(t,t.return,_)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===t)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:wi(e,t),Ki(t),r&4&&Rv(t);break;case 21:break;default:wi(e,t),Ki(t)}}function Ki(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(O6(n)){var r=n;break e}n=n.return}throw Error(Le(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Uu(i,""),r.flags&=-33);var o=Ov(t);Q2(t,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Ov(t);$2(t,a,s);break;default:throw Error(Le(161))}}catch(l){an(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function $_(t,e,n){De=t,D6(t)}function D6(t,e,n){for(var r=(t.mode&1)!==0;De!==null;){var i=De,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ld;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ir;a=Ld;var u=ir;if(Ld=s,(ir=l)&&!u)for(De=i;De!==null;)s=De,l=s.child,s.tag===22&&s.memoizedState!==null?Uv(i):l!==null?(l.return=s,De=l):Uv(i);for(;o!==null;)De=o,D6(o),o=o.sibling;De=i,Ld=a,ir=u}Bv(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,De=o):Bv(t)}}function Bv(t){for(;De!==null;){var e=De;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ir||i1(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ir)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Pi(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&Sv(e,o,r);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Sv(e,s,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&qu(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Le(163))}ir||e.flags&512&&X2(e)}catch(g){an(e,e.return,g)}}if(e===t){De=null;break}if(n=e.sibling,n!==null){n.return=e.return,De=n;break}De=e.return}}function Dv(t){for(;De!==null;){var e=De;if(e===t){De=null;break}var n=e.sibling;if(n!==null){n.return=e.return,De=n;break}De=e.return}}function Uv(t){for(;De!==null;){var e=De;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{i1(4,e)}catch(l){an(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){an(e,i,l)}}var o=e.return;try{X2(e)}catch(l){an(e,o,l)}break;case 5:var s=e.return;try{X2(e)}catch(l){an(e,s,l)}}}catch(l){an(e,e.return,l)}if(e===t){De=null;break}var a=e.sibling;if(a!==null){a.return=e.return,De=a;break}De=e.return}}var Q_=Math.ceil,Mf=Bo.ReactCurrentDispatcher,vg=Bo.ReactCurrentOwner,oi=Bo.ReactCurrentBatchConfig,vt=0,Un=null,Nn=null,Wn=0,Br=0,Gl=Us(0),Tn=0,th=null,Pa=0,o1=0,yg=0,Mu=null,Cr=null,wg=0,ac=1/0,Co=null,jf=!1,J2=null,Ls=null,kd=!1,bs=null,Ff=0,ju=0,Z2=null,ef=-1,tf=0;function gr(){return vt&6?pn():ef!==-1?ef:ef=pn()}function ks(t){return t.mode&1?vt&2&&Wn!==0?Wn&-Wn:F_.transition!==null?(tf===0&&(tf=xy()),tf):(t=Lt,t!==0||(t=window.event,t=t===void 0?16:Ey(t.type)),t):1}function Mi(t,e,n,r){if(50<ju)throw ju=0,Z2=null,Error(Le(185));hh(t,n,r),(!(vt&2)||t!==Un)&&(t===Un&&(!(vt&2)&&(o1|=n),Tn===4&&vs(t,Wn)),Er(t,r),n===1&&vt===0&&!(e.mode&1)&&(ac=pn()+500,t1&&zs()))}function Er(t,e){var n=t.callbackNode;Fb(t,e);var r=vf(t,t===Un?Wn:0);if(r===0)n!==null&&Xm(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Xm(n),e===1)t.tag===0?j_(zv.bind(null,t)):Xy(zv.bind(null,t)),k_(function(){!(vt&6)&&zs()}),n=null;else{switch(Ay(r)){case 1:n=W5;break;case 4:n=_y;break;case 16:n=mf;break;case 536870912:n=Sy;break;default:n=mf}n=Y6(n,U6.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function U6(t,e){if(ef=-1,tf=0,vt&6)throw Error(Le(327));var n=t.callbackNode;if(Xl()&&t.callbackNode!==n)return null;var r=vf(t,t===Un?Wn:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=If(t,r);else{e=r;var i=vt;vt|=2;var o=G6();(Un!==t||Wn!==e)&&(Co=null,ac=pn()+500,wa(t,e));do try{e9();break}catch(a){z6(t,a)}while(!0);ig(),Mf.current=o,vt=i,Nn!==null?e=0:(Un=null,Wn=0,e=Tn)}if(e!==0){if(e===2&&(i=C2(t),i!==0&&(r=i,e=e5(t,i))),e===1)throw n=th,wa(t,0),vs(t,r),Er(t,pn()),n;if(e===6)vs(t,r);else{if(i=t.current.alternate,!(r&30)&&!J_(i)&&(e=If(t,r),e===2&&(o=C2(t),o!==0&&(r=o,e=e5(t,o))),e===1))throw n=th,wa(t,0),vs(t,r),Er(t,pn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(Le(345));case 2:da(t,Cr,Co);break;case 3:if(vs(t,r),(r&130023424)===r&&(e=wg+500-pn(),10<e)){if(vf(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){gr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=F2(da.bind(null,t,Cr,Co),e);break}da(t,Cr,Co);break;case 4:if(vs(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-Ti(r);o=1<<s,s=e[s],s>i&&(i=s),r&=~o}if(r=i,r=pn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Q_(r/1960))-r,10<r){t.timeoutHandle=F2(da.bind(null,t,Cr,Co),r);break}da(t,Cr,Co);break;case 5:da(t,Cr,Co);break;default:throw Error(Le(329))}}}return Er(t,pn()),t.callbackNode===n?U6.bind(null,t):null}function e5(t,e){var n=Mu;return t.current.memoizedState.isDehydrated&&(wa(t,e).flags|=256),t=If(t,e),t!==2&&(e=Cr,Cr=n,e!==null&&t5(e)),t}function t5(t){Cr===null?Cr=t:Cr.push.apply(Cr,t)}function J_(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Fi(o(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function vs(t,e){for(e&=~yg,e&=~o1,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ti(e),r=1<<n;t[n]=-1,e&=~r}}function zv(t){if(vt&6)throw Error(Le(327));Xl();var e=vf(t,0);if(!(e&1))return Er(t,pn()),null;var n=If(t,e);if(t.tag!==0&&n===2){var r=C2(t);r!==0&&(e=r,n=e5(t,r))}if(n===1)throw n=th,wa(t,0),vs(t,e),Er(t,pn()),n;if(n===6)throw Error(Le(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,da(t,Cr,Co),Er(t,pn()),null}function bg(t,e){var n=vt;vt|=1;try{return t(e)}finally{vt=n,vt===0&&(ac=pn()+500,t1&&zs())}}function La(t){bs!==null&&bs.tag===0&&!(vt&6)&&Xl();var e=vt;vt|=1;var n=oi.transition,r=Lt;try{if(oi.transition=null,Lt=1,t)return t()}finally{Lt=r,oi.transition=n,vt=e,!(vt&6)&&zs()}}function _g(){Br=Gl.current,Vt(Gl)}function wa(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,L_(n)),Nn!==null)for(n=Nn.return;n!==null;){var r=n;switch(tg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sf();break;case 3:oc(),Vt(Lr),Vt(ar),ug();break;case 5:cg(r);break;case 4:oc();break;case 13:Vt(Xt);break;case 19:Vt(Xt);break;case 10:og(r.type._context);break;case 22:case 23:_g()}n=n.return}if(Un=t,Nn=t=Es(t.current,null),Wn=Br=e,Tn=0,th=null,yg=o1=Pa=0,Cr=Mu=null,ma!==null){for(e=0;e<ma.length;e++)if(n=ma[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}ma=null}return t}function z6(t,e){do{var n=Nn;try{if(ig(),Qd.current=Tf,Ef){for(var r=Qt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ef=!1}if(Ca=0,Bn=En=Qt=null,Eu=!1,Ju=0,vg.current=null,n===null||n.return===null){Tn=1,th=e,Nn=null;break}e:{var o=t,s=n.return,a=n,l=e;if(e=Wn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Lv(s);if(h!==null){h.flags&=-257,kv(h,s,a,o,e),h.mode&1&&Pv(o,u,e),e=h,l=u;var w=e.updateQueue;if(w===null){var _=new Set;_.add(l),e.updateQueue=_}else w.add(l);break e}else{if(!(e&1)){Pv(o,u,e),Sg();break e}l=Error(Le(426))}}else if(Wt&&a.mode&1){var x=Lv(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),kv(x,s,a,o,e),ng(sc(l,a));break e}}o=l=sc(l,a),Tn!==4&&(Tn=2),Mu===null?Mu=[o]:Mu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var v=A6(o,l,e);_v(o,v);break e;case 1:a=l;var S=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof S.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ls===null||!Ls.has(y)))){o.flags|=65536,e&=-e,o.lanes|=e;var A=N6(o,a,e);_v(o,A);break e}}o=o.return}while(o!==null)}q6(n)}catch(L){e=L,Nn===n&&n!==null&&(Nn=n=n.return);continue}break}while(!0)}function G6(){var t=Mf.current;return Mf.current=Tf,t===null?Tf:t}function Sg(){(Tn===0||Tn===3||Tn===2)&&(Tn=4),Un===null||!(Pa&268435455)&&!(o1&268435455)||vs(Un,Wn)}function If(t,e){var n=vt;vt|=2;var r=G6();(Un!==t||Wn!==e)&&(Co=null,wa(t,e));do try{Z_();break}catch(i){z6(t,i)}while(!0);if(ig(),vt=n,Mf.current=r,Nn!==null)throw Error(Le(261));return Un=null,Wn=0,Tn}function Z_(){for(;Nn!==null;)V6(Nn)}function e9(){for(;Nn!==null&&!Nb();)V6(Nn)}function V6(t){var e=H6(t.alternate,t,Br);t.memoizedProps=t.pendingProps,e===null?q6(t):Nn=e,vg.current=null}function q6(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Y_(n,e),n!==null){n.flags&=32767,Nn=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Tn=6,Nn=null;return}}else if(n=H_(n,e,Br),n!==null){Nn=n;return}if(e=e.sibling,e!==null){Nn=e;return}Nn=e=t}while(e!==null);Tn===0&&(Tn=5)}function da(t,e,n){var r=Lt,i=oi.transition;try{oi.transition=null,Lt=1,t9(t,e,n,r)}finally{oi.transition=i,Lt=r}return null}function t9(t,e,n,r){do Xl();while(bs!==null);if(vt&6)throw Error(Le(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Le(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ib(t,o),t===Un&&(Nn=Un=null,Wn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||kd||(kd=!0,Y6(mf,function(){return Xl(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=oi.transition,oi.transition=null;var s=Lt;Lt=1;var a=vt;vt|=4,vg.current=null,X_(t,n),B6(n,t),__(M2),yf=!!T2,M2=T2=null,t.current=n,$_(n),Cb(),vt=a,Lt=s,oi.transition=o}else t.current=n;if(kd&&(kd=!1,bs=t,Ff=i),o=t.pendingLanes,o===0&&(Ls=null),kb(n.stateNode),Er(t,pn()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(jf)throw jf=!1,t=J2,J2=null,t;return Ff&1&&t.tag!==0&&Xl(),o=t.pendingLanes,o&1?t===Z2?ju++:(ju=0,Z2=t):ju=0,zs(),null}function Xl(){if(bs!==null){var t=Ay(Ff),e=oi.transition,n=Lt;try{if(oi.transition=null,Lt=16>t?16:t,bs===null)var r=!1;else{if(t=bs,bs=null,Ff=0,vt&6)throw Error(Le(331));var i=vt;for(vt|=4,De=t.current;De!==null;){var o=De,s=o.child;if(De.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(De=u;De!==null;){var d=De;switch(d.tag){case 0:case 11:case 15:Tu(8,d,o)}var p=d.child;if(p!==null)p.return=d,De=p;else for(;De!==null;){d=De;var g=d.sibling,h=d.return;if(I6(d),d===u){De=null;break}if(g!==null){g.return=h,De=g;break}De=h}}}var w=o.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var x=_.sibling;_.sibling=null,_=x}while(_!==null)}}De=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,De=s;else e:for(;De!==null;){if(o=De,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tu(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,De=v;break e}De=o.return}}var S=t.current;for(De=S;De!==null;){s=De;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,De=y;else e:for(s=S;De!==null;){if(a=De,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:i1(9,a)}}catch(L){an(a,a.return,L)}if(a===s){De=null;break e}var A=a.sibling;if(A!==null){A.return=a.return,De=A;break e}De=a.return}}if(vt=i,zs(),no&&typeof no.onPostCommitFiberRoot=="function")try{no.onPostCommitFiberRoot($f,t)}catch{}r=!0}return r}finally{Lt=n,oi.transition=e}}return!1}function Gv(t,e,n){e=sc(n,e),e=A6(t,e,1),t=Ps(t,e,1),e=gr(),t!==null&&(hh(t,1,e),Er(t,e))}function an(t,e,n){if(t.tag===3)Gv(t,t,n);else for(;e!==null;){if(e.tag===3){Gv(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ls===null||!Ls.has(r))){t=sc(n,t),t=N6(e,t,1),e=Ps(e,t,1),t=gr(),e!==null&&(hh(e,1,t),Er(e,t));break}}e=e.return}}function n9(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=gr(),t.pingedLanes|=t.suspendedLanes&n,Un===t&&(Wn&n)===n&&(Tn===4||Tn===3&&(Wn&130023424)===Wn&&500>pn()-wg?wa(t,0):yg|=n),Er(t,e)}function W6(t,e){e===0&&(t.mode&1?(e=wd,wd<<=1,!(wd&130023424)&&(wd=4194304)):e=1);var n=gr();t=Io(t,e),t!==null&&(hh(t,e,n),Er(t,n))}function r9(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),W6(t,n)}function i9(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Le(314))}r!==null&&r.delete(e),W6(t,n)}var H6;H6=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Lr.current)Pr=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Pr=!1,W_(t,e,n);Pr=!!(t.flags&131072)}else Pr=!1,Wt&&e.flags&1048576&&$y(e,Nf,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Zd(t,e),t=e.pendingProps;var i=nc(e,ar.current);Kl(e,n),i=dg(null,e,r,t,i,n);var o=fg();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,kr(r)?(o=!0,xf(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ag(e),i.updater=r1,e.stateNode=i,i._reactInternals=e,z2(e,r,t,n),e=q2(null,e,r,!0,o,n)):(e.tag=0,Wt&&o&&eg(e),pr(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Zd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=s9(r),t=Pi(r,t),i){case 0:e=V2(null,e,r,t,n);break e;case 1:e=Mv(null,e,r,t,n);break e;case 11:e=Ev(null,e,r,t,n);break e;case 14:e=Tv(null,e,r,Pi(r.type,t),n);break e}throw Error(Le(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),V2(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),Mv(t,e,r,i,n);case 3:e:{if(k6(e),t===null)throw Error(Le(387));r=e.pendingProps,o=e.memoizedState,i=o.element,n6(t,e),Lf(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=sc(Error(Le(423)),e),e=jv(t,e,r,n,i);break e}else if(r!==i){i=sc(Error(Le(424)),e),e=jv(t,e,r,n,i);break e}else for(Dr=Cs(e.stateNode.containerInfo.firstChild),zr=e,Wt=!0,Ei=null,n=e6(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rc(),r===i){e=Oo(t,e,n);break e}pr(t,e,r,n)}e=e.child}return e;case 5:return r6(e),t===null&&B2(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,j2(r,i)?s=null:o!==null&&j2(r,o)&&(e.flags|=32),L6(t,e),pr(t,e,s,n),e.child;case 6:return t===null&&B2(e),null;case 13:return E6(t,e,n);case 4:return lg(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ic(e,null,r,n):pr(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),Ev(t,e,r,i,n);case 7:return pr(t,e,e.pendingProps,n),e.child;case 8:return pr(t,e,e.pendingProps.children,n),e.child;case 12:return pr(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,Dt(Cf,r._currentValue),r._currentValue=s,o!==null)if(Fi(o.value,s)){if(o.children===i.children&&!Lr.current){e=Oo(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=To(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),D2(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Le(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),D2(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}pr(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Kl(e,n),i=si(i),r=r(i),e.flags|=1,pr(t,e,r,n),e.child;case 14:return r=e.type,i=Pi(r,e.pendingProps),i=Pi(r.type,i),Tv(t,e,r,i,n);case 15:return C6(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),Zd(t,e),e.tag=1,kr(r)?(t=!0,xf(e)):t=!1,Kl(e,n),x6(e,r,i),z2(e,r,i,n),q2(null,e,r,!0,t,n);case 19:return T6(t,e,n);case 22:return P6(t,e,n)}throw Error(Le(156,e.tag))};function Y6(t,e){return by(t,e)}function o9(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(t,e,n,r){return new o9(t,e,n,r)}function xg(t){return t=t.prototype,!(!t||!t.isReactComponent)}function s9(t){if(typeof t=="function")return xg(t)?1:0;if(t!=null){if(t=t.$$typeof,t===G5)return 11;if(t===V5)return 14}return 2}function Es(t,e){var n=t.alternate;return n===null?(n=ii(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function nf(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")xg(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Ml:return ba(n.children,i,o,e);case z5:s=8,i|=8;break;case h2:return t=ii(12,n,e,i|2),t.elementType=h2,t.lanes=o,t;case d2:return t=ii(13,n,e,i),t.elementType=d2,t.lanes=o,t;case f2:return t=ii(19,n,e,i),t.elementType=f2,t.lanes=o,t;case ry:return s1(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ty:s=10;break e;case ny:s=9;break e;case G5:s=11;break e;case V5:s=14;break e;case ds:s=16,r=null;break e}throw Error(Le(130,t==null?t:typeof t,""))}return e=ii(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function ba(t,e,n,r){return t=ii(7,t,r,e),t.lanes=n,t}function s1(t,e,n,r){return t=ii(22,t,r,e),t.elementType=ry,t.lanes=n,t.stateNode={isHidden:!1},t}function kp(t,e,n){return t=ii(6,t,null,e),t.lanes=n,t}function Ep(t,e,n){return e=ii(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function a9(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=up(0),this.expirationTimes=up(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=up(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ag(t,e,n,r,i,o,s,a,l){return t=new a9(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=ii(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ag(o),t}function l9(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tl,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function K6(t){if(!t)return Fs;t=t._reactInternals;e:{if(Ta(t)!==t||t.tag!==1)throw Error(Le(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(kr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Le(171))}if(t.tag===1){var n=t.type;if(kr(n))return Ky(t,n,e)}return e}function X6(t,e,n,r,i,o,s,a,l){return t=Ag(n,r,!0,t,i,o,s,a,l),t.context=K6(null),n=t.current,r=gr(),i=ks(n),o=To(r,i),o.callback=e??null,Ps(n,o,i),t.current.lanes=i,hh(t,i,r),Er(t,r),t}function a1(t,e,n,r){var i=e.current,o=gr(),s=ks(i);return n=K6(n),e.context===null?e.context=n:e.pendingContext=n,e=To(o,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Ps(i,e,s),t!==null&&(Mi(t,i,s,o),$d(t,i,s)),s}function Of(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Vv(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ng(t,e){Vv(t,e),(t=t.alternate)&&Vv(t,e)}function c9(){return null}var $6=typeof reportError=="function"?reportError:function(t){console.error(t)};function Cg(t){this._internalRoot=t}l1.prototype.render=Cg.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Le(409));a1(t,e,null,null)};l1.prototype.unmount=Cg.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;La(function(){a1(null,t,null,null)}),e[Fo]=null}};function l1(t){this._internalRoot=t}l1.prototype.unstable_scheduleHydration=function(t){if(t){var e=Py();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ms.length&&e!==0&&e<ms[n].priority;n++);ms.splice(n,0,t),n===0&&ky(t)}};function Pg(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c1(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function qv(){}function u9(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Of(s);o.call(u)}}var s=X6(e,r,t,0,null,!1,!1,"",qv);return t._reactRootContainer=s,t[Fo]=s.current,Yu(t.nodeType===8?t.parentNode:t),La(),s}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Of(l);a.call(u)}}var l=Ag(t,0,!1,null,null,!1,!1,"",qv);return t._reactRootContainer=l,t[Fo]=l.current,Yu(t.nodeType===8?t.parentNode:t),La(function(){a1(e,l,n,r)}),l}function u1(t,e,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Of(s);a.call(l)}}a1(e,s,t,i)}else s=u9(n,e,t,i,r);return Of(s)}Ny=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=xu(e.pendingLanes);n!==0&&(H5(e,n|1),Er(e,pn()),!(vt&6)&&(ac=pn()+500,zs()))}break;case 13:La(function(){var r=Io(t,1);if(r!==null){var i=gr();Mi(r,t,1,i)}}),Ng(t,1)}};Y5=function(t){if(t.tag===13){var e=Io(t,134217728);if(e!==null){var n=gr();Mi(e,t,134217728,n)}Ng(t,134217728)}};Cy=function(t){if(t.tag===13){var e=ks(t),n=Io(t,e);if(n!==null){var r=gr();Mi(n,t,e,r)}Ng(t,e)}};Py=function(){return Lt};Ly=function(t,e){var n=Lt;try{return Lt=t,e()}finally{Lt=n}};x2=function(t,e,n){switch(e){case"input":if(m2(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=e1(r);if(!i)throw Error(Le(90));oy(r),m2(r,i)}}}break;case"textarea":ay(t,n);break;case"select":e=n.value,e!=null&&ql(t,!!n.multiple,e,!1)}};py=bg;gy=La;var h9={usingClientEntryPoint:!1,Events:[fh,Ol,e1,dy,fy,bg]},hu={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},d9={bundleType:hu.bundleType,version:hu.version,rendererPackageName:hu.rendererPackageName,rendererConfig:hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=yy(t),t===null?null:t.stateNode},findFiberByHostInstance:hu.findFiberByHostInstance||c9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{$f=Ed.inject(d9),no=Ed}catch{}}Vr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h9;Vr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pg(e))throw Error(Le(200));return l9(t,e,null,n)};Vr.createRoot=function(t,e){if(!Pg(t))throw Error(Le(299));var n=!1,r="",i=$6;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Ag(t,1,!1,null,null,n,!1,r,i),t[Fo]=e.current,Yu(t.nodeType===8?t.parentNode:t),new Cg(e)};Vr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Le(188)):(t=Object.keys(t).join(","),Error(Le(268,t)));return t=yy(e),t=t===null?null:t.stateNode,t};Vr.flushSync=function(t){return La(t)};Vr.hydrate=function(t,e,n){if(!c1(e))throw Error(Le(200));return u1(null,t,e,!0,n)};Vr.hydrateRoot=function(t,e,n){if(!Pg(t))throw Error(Le(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=$6;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=X6(e,null,t,1,n??null,i,!1,o,s),t[Fo]=e.current,Yu(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new l1(e)};Vr.render=function(t,e,n){if(!c1(e))throw Error(Le(200));return u1(null,t,e,!1,n)};Vr.unmountComponentAtNode=function(t){if(!c1(t))throw Error(Le(40));return t._reactRootContainer?(La(function(){u1(null,null,t,!1,function(){t._reactRootContainer=null,t[Fo]=null})}),!0):!1};Vr.unstable_batchedUpdates=bg;Vr.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!c1(n))throw Error(Le(200));if(t==null||t._reactInternals===void 0)throw Error(Le(38));return u1(t,e,n,!1,r)};Vr.version="18.3.1-next-f1338f8080-20240426";function Q6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q6)}catch(t){console.error(t)}}Q6(),Q4.exports=Vr;var J6=Q4.exports;const f9=Kf(J6);var Wv=J6;c2.createRoot=Wv.createRoot,c2.hydrateRoot=Wv.hydrateRoot;/**
+ * @remix-run/router v1.21.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function nh(){return nh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nh.apply(this,arguments)}var _s;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(_s||(_s={}));const Hv="popstate";function p9(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return n5("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Rf(i)}return m9(e,n,null,t)}function yn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Z6(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function g9(){return Math.random().toString(36).substr(2,8)}function Yv(t,e){return{usr:t.state,key:t.key,idx:e}}function n5(t,e,n,r){return n===void 0&&(n=null),nh({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?mc(e):e,{state:n,key:e&&e.key||r||g9()})}function Rf(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function mc(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function m9(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=_s.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(nh({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=_s.Pop;let x=d(),v=x==null?null:x-u;u=x,l&&l({action:a,location:_.location,delta:v})}function g(x,v){a=_s.Push;let S=n5(_.location,x,v);u=d()+1;let y=Yv(S,u),A=_.createHref(S);try{s.pushState(y,"",A)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;i.location.assign(A)}o&&l&&l({action:a,location:_.location,delta:1})}function h(x,v){a=_s.Replace;let S=n5(_.location,x,v);u=d();let y=Yv(S,u),A=_.createHref(S);s.replaceState(y,"",A),o&&l&&l({action:a,location:_.location,delta:0})}function w(x){let v=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof x=="string"?x:Rf(x);return S=S.replace(/ $/,"%20"),yn(v,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,v)}let _={get action(){return a},get location(){return t(i,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hv,p),l=x,()=>{i.removeEventListener(Hv,p),l=null}},createHref(x){return e(i,x)},createURL:w,encodeLocation(x){let v=w(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:g,replace:h,go(x){return s.go(x)}};return _}var Kv;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Kv||(Kv={}));function v9(t,e,n){return n===void 0&&(n="/"),y9(t,e,n,!1)}function y9(t,e,n,r){let i=typeof e=="string"?mc(e):e,o=Lg(i.pathname||"/",n);if(o==null)return null;let s=e8(t);w9(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=E9(o);a=L9(s[l],u,r)}return a}function e8(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(yn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ts([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(yn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),e8(o.children,e,d,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:C9(u,o.index),routesMeta:d})};return t.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of t8(o.path))i(o,s,l)}),e}function t8(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=t8(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function w9(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:P9(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const b9=/^:[\w-]+$/,_9=3,S9=2,x9=1,A9=10,N9=-2,Xv=t=>t==="*";function C9(t,e){let n=t.split("/"),r=n.length;return n.some(Xv)&&(r+=N9),e&&(r+=S9),n.filter(i=>!Xv(i)).reduce((i,o)=>i+(b9.test(o)?_9:o===""?x9:A9),r)}function P9(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function L9(t,e,n){let{routesMeta:r}=t,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=o==="/"?e:e.slice(o.length)||"/",p=$v({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),g=l.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=$v({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ts([o,p.pathname]),pathnameBase:F9(Ts([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=Ts([o,p.pathnameBase]))}return s}function $v(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=k9(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,p)=>{let{paramName:g,isOptional:h}=d;if(g==="*"){let _=a[p]||"";s=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const w=a[p];return h&&!w?u[g]=void 0:u[g]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:t}}function k9(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Z6(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function E9(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Z6(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Lg(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function T9(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?mc(t):t;return{pathname:n?n.startsWith("/")?n:M9(n,e):e,search:I9(r),hash:O9(i)}}function M9(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Tp(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function j9(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function kg(t,e){let n=j9(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Eg(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=mc(t):(i=nh({},t),yn(!i.pathname||!i.pathname.includes("?"),Tp("?","pathname","search",i)),yn(!i.pathname||!i.pathname.includes("#"),Tp("#","pathname","hash",i)),yn(!i.search||!i.search.includes("#"),Tp("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let p=e.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}a=p>=0?e[p]:"/"}let l=T9(i,a),u=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Ts=t=>t.join("/").replace(/\/\/+/g,"/"),F9=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),I9=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,O9=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function R9(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const n8=["post","put","patch","delete"];new Set(n8);const B9=["get",...n8];new Set(B9);/**
+ * React Router v6.28.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function rh(){return rh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rh.apply(this,arguments)}const Tg=re.createContext(null),D9=re.createContext(null),Gs=re.createContext(null),h1=re.createContext(null),so=re.createContext({outlet:null,matches:[],isDataRoute:!1}),r8=re.createContext(null);function U9(t,e){let{relative:n}=e===void 0?{}:e;vc()||yn(!1);let{basename:r,navigator:i}=re.useContext(Gs),{hash:o,pathname:s,search:a}=s8(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ts([r,s])),i.createHref({pathname:l,search:a,hash:o})}function vc(){return re.useContext(h1)!=null}function Do(){return vc()||yn(!1),re.useContext(h1).location}function i8(t){re.useContext(Gs).static||re.useLayoutEffect(t)}function ao(){let{isDataRoute:t}=re.useContext(so);return t?tS():z9()}function z9(){vc()||yn(!1);let t=re.useContext(Tg),{basename:e,future:n,navigator:r}=re.useContext(Gs),{matches:i}=re.useContext(so),{pathname:o}=Do(),s=JSON.stringify(kg(i,n.v7_relativeSplatPath)),a=re.useRef(!1);return i8(()=>{a.current=!0}),re.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=Eg(u,JSON.parse(s),o,d.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:Ts([e,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[e,r,s,o,t])}const G9=re.createContext(null);function V9(t){let e=re.useContext(so).outlet;return e&&re.createElement(G9.Provider,{value:t},e)}function o8(){let{matches:t}=re.useContext(so),e=t[t.length-1];return e?e.params:{}}function s8(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=re.useContext(Gs),{matches:i}=re.useContext(so),{pathname:o}=Do(),s=JSON.stringify(kg(i,r.v7_relativeSplatPath));return re.useMemo(()=>Eg(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}function q9(t,e){return W9(t,e)}function W9(t,e,n,r){vc()||yn(!1);let{navigator:i}=re.useContext(Gs),{matches:o}=re.useContext(so),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Do(),d;if(e){var p;let x=typeof e=="string"?mc(e):e;l==="/"||(p=x.pathname)!=null&&p.startsWith(l)||yn(!1),d=x}else d=u;let g=d.pathname||"/",h=g;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=v9(t,{pathname:h}),_=$9(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ts([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ts([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return e&&_?re.createElement(h1.Provider,{value:{location:rh({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:_s.Pop}},_):_}function H9(){let t=eS(),e=R9(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return re.createElement(re.Fragment,null,re.createElement("h2",null,"Unexpected Application Error!"),re.createElement("h3",{style:{fontStyle:"italic"}},e),n?re.createElement("pre",{style:i},n):null,null)}const Y9=re.createElement(H9,null);class K9 extends re.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?re.createElement(so.Provider,{value:this.props.routeContext},re.createElement(r8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function X9(t){let{routeContext:e,match:n,children:r}=t,i=re.useContext(Tg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),re.createElement(so.Provider,{value:e},r)}function $9(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||yn(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:g,errors:h}=n,w=p.route.loader&&g[p.route.id]===void 0&&(!h||h[p.route.id]===void 0);if(p.route.lazy||w){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,g)=>{let h,w=!1,_=null,x=null;n&&(h=a&&p.route.id?a[p.route.id]:void 0,_=p.route.errorElement||Y9,l&&(u<0&&g===0?(w=!0,x=null):u===g&&(w=!0,x=p.route.hydrateFallbackElement||null)));let v=e.concat(s.slice(0,g+1)),S=()=>{let y;return h?y=_:w?y=x:p.route.Component?y=re.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=d,re.createElement(X9,{match:p,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?re.createElement(K9,{location:n.location,revalidation:n.revalidation,component:_,error:h,children:S(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):S()},null)}var a8=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(a8||{}),Bf=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Bf||{});function Q9(t){let e=re.useContext(Tg);return e||yn(!1),e}function J9(t){let e=re.useContext(D9);return e||yn(!1),e}function Z9(t){let e=re.useContext(so);return e||yn(!1),e}function l8(t){let e=Z9(),n=e.matches[e.matches.length-1];return n.route.id||yn(!1),n.route.id}function eS(){var t;let e=re.useContext(r8),n=J9(Bf.UseRouteError),r=l8(Bf.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function tS(){let{router:t}=Q9(a8.UseNavigateStable),e=l8(Bf.UseNavigateStable),n=re.useRef(!1);return i8(()=>{n.current=!0}),re.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,rh({fromRouteId:e},o)))},[t,e])}const Qv={};function nS(t,e){Qv[e]||(Qv[e]=!0,console.warn(e))}const Jv=(t,e,n)=>nS(t,"⚠️ React Router Future Flag Warning: "+e+". "+("You can use the `"+t+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function rS(t,e){t!=null&&t.v7_startTransition||Jv("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(t!=null&&t.v7_relativeSplatPath)&&!e&&Jv("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function iS(t){let{to:e,replace:n,state:r,relative:i}=t;vc()||yn(!1);let{future:o,static:s}=re.useContext(Gs),{matches:a}=re.useContext(so),{pathname:l}=Do(),u=ao(),d=Eg(e,kg(a,o.v7_relativeSplatPath),l,i==="path"),p=JSON.stringify(d);return re.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:i}),[u,p,i,n,r]),null}function oS(t){return V9(t.context)}function Rr(t){yn(!1)}function sS(t){let{basename:e="/",children:n=null,location:r,navigationType:i=_s.Pop,navigator:o,static:s=!1,future:a}=t;vc()&&yn(!1);let l=e.replace(/^\/*/,"/"),u=re.useMemo(()=>({basename:l,navigator:o,static:s,future:rh({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=mc(r));let{pathname:d="/",search:p="",hash:g="",state:h=null,key:w="default"}=r,_=re.useMemo(()=>{let x=Lg(d,l);return x==null?null:{location:{pathname:x,search:p,hash:g,state:h,key:w},navigationType:i}},[l,d,p,g,h,w,i]);return _==null?null:re.createElement(Gs.Provider,{value:u},re.createElement(h1.Provider,{children:n,value:_}))}function aS(t){let{children:e,location:n}=t;return q9(r5(e),n)}new Promise(()=>{});function r5(t,e){e===void 0&&(e=[]);let n=[];return re.Children.forEach(t,(r,i)=>{if(!re.isValidElement(r))return;let o=[...e,i];if(r.type===re.Fragment){n.push.apply(n,r5(r.props.children,o));return}r.type!==Rr&&yn(!1),!r.props.index||!r.props.children||yn(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=r5(r.props.children,o)),n.push(s)}),n}/**
+ * React Router DOM v6.28.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function i5(){return i5=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i5.apply(this,arguments)}function lS(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function cS(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function uS(t,e){return t.button===0&&(!e||e==="_self")&&!cS(t)}function o5(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function hS(t,e){let n=o5(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(o=>{n.append(i,o)})}),n}const dS=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fS="6";try{window.__reactRouterVersion=fS}catch{}const pS="startTransition",Zv=nb[pS];function gS(t){let{basename:e,children:n,future:r,window:i}=t,o=re.useRef();o.current==null&&(o.current=p9({window:i,v5Compat:!0}));let s=o.current,[a,l]=re.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=re.useCallback(p=>{u&&Zv?Zv(()=>l(p)):l(p)},[l,u]);return re.useLayoutEffect(()=>s.listen(d),[s,d]),re.useEffect(()=>rS(r),[r]),re.createElement(sS,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const mS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ro=re.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:d,viewTransition:p}=e,g=lS(e,dS),{basename:h}=re.useContext(Gs),w,_=!1;if(typeof u=="string"&&vS.test(u)&&(w=u,mS))try{let y=new URL(window.location.href),A=u.startsWith("//")?new URL(y.protocol+u):new URL(u),L=Lg(A.pathname,h);A.origin===y.origin&&L!=null?u=L+A.search+A.hash:_=!0}catch{}let x=U9(u,{relative:i}),v=yS(u,{replace:s,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:p});function S(y){r&&r(y),y.defaultPrevented||v(y)}return re.createElement("a",i5({},g,{href:w||x,onClick:_||o?r:S,ref:n,target:l}))});var e3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(e3||(e3={}));var t3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(t3||(t3={}));function yS(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=e===void 0?{}:e,l=ao(),u=Do(),d=s8(t,{relative:s});return re.useCallback(p=>{if(uS(p,n)){p.preventDefault();let g=r!==void 0?r:Rf(u)===Rf(d);l(t,{replace:g,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,d,r,i,n,t,o,s,a])}function c8(t){let e=re.useRef(o5(t)),n=re.useRef(!1),r=Do(),i=re.useMemo(()=>hS(r.search,n.current?null:e.current),[r.search]),o=ao(),s=re.useCallback((a,l)=>{const u=o5(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,l)},[o,i]);return[i,s]}const wS="_container_lfw20_3",bS="_searchBar_lfw20_18",_S="_filterBar_lfw20_40",SS="_tile_lfw20_45",xS="_imgStyle_lfw20_67",AS="_favorite_lfw20_73",NS="_dragging_lfw20_81",CS="_linkStyle_lfw20_89",ys={container:wS,searchBar:bS,filterBar:_S,tile:SS,imgStyle:xS,favorite:AS,dragging:NS,linkStyle:CS};var fn=function(){return fn=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fn.apply(this,arguments)};function u8(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Is(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Fu(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function PS(t,e,n){return Math.max(e,Math.min(t,n))}const sr={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function n3(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function r3(t,e,n,r=.15){return r===0?PS(t,e,n):t<e?-n3(e-t,n-e,r)+e:t>n?+n3(t-n,n-e,r)+n:t}function LS(t,[e,n],[r,i]){const[[o,s],[a,l]]=t;return[r3(e,o,s,r),r3(n,a,l,i)]}function kS(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ES(t){var e=kS(t,"string");return typeof e=="symbol"?e:String(e)}function Nr(t,e,n){return e=ES(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?i3(Object(n),!0).forEach(function(r){Nr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const h8={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function o3(t){return t?t[0].toUpperCase()+t.slice(1):""}const TS=["enter","leave"];function MS(t=!1,e){return t&&!TS.includes(e)}function jS(t,e="",n=!1){const r=h8[t],i=r&&r[e]||e;return"on"+o3(t)+o3(i)+(MS(n,i)?"Capture":"")}const FS=["gotpointercapture","lostpointercapture"];function IS(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=FS.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(r);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:n}}function OS(t,e=""){const n=h8[t],r=n&&n[e]||e;return t+r}function d1(t){return"touches"in t}function d8(t){return d1(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function RS(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function BS(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function f8(t){return d1(t)?BS(t)[0]:t}function DS(t){return RS(t).map(e=>e.identifier)}function Mp(t){const e=f8(t);return d1(t)?e.identifier:e.pointerId}function s3(t){const e=f8(t);return[e.clientX,e.clientY]}function US(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return e}function Df(t,...e){return typeof t=="function"?t(...e):t}function zS(){}function GS(...t){return t.length===0?zS:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function a3(t,e){return Object.assign({},e,t||{})}const VS=32;class qS{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?Df(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,US(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const R=n._delta.map(Math.abs);sr.addTo(n._distance,R)}this.axisIntent&&this.axisIntent(e);const[s,a]=n._movement,[l,u]=r.threshold,{_step:d,values:p}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(s)>=l&&p[0]),d[1]===!1&&(d[1]=Math.abs(a)>=u&&p[1])):(d[0]===!1&&(d[0]=Math.abs(s)>=l&&Math.sign(s)*l),d[1]===!1&&(d[1]=Math.abs(a)>=u&&Math.sign(a)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const g=[0,0];if(r.hasCustomTransform){const[R,D]=p;g[0]=d[0]!==!1?R-d[0]:0,g[1]=d[1]!==!1?D-d[1]:0}else g[0]=d[0]!==!1?s-d[0]:0,g[1]=d[1]!==!1?a-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(g);const h=n.offset,w=n._active&&!n._blocked||n.active;w&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=Df(r.bounds,n)),this.setup&&this.setup()),n.movement=g,this.computeOffset()));const[_,x]=n.offset,[[v,S],[y,A]]=n._bounds;n.overflow=[_<v?-1:_>S?1:0,x<y?-1:x>A?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const L=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=LS(n._bounds,n.offset,L),n.delta=sr.sub(n.offset,h),this.computeMovement(),w&&(!n.last||o>VS)){n.delta=sr.sub(n.offset,h);const R=n.delta.map(Math.abs);sr.addTo(n.distance,R),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[R[0]/o,R[1]/o],n.timeDelta=o)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler($t($t($t({},n),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function WS([t,e],n){const r=Math.abs(t),i=Math.abs(e);if(r>i&&r>n)return"x";if(i>r&&i>n)return"y"}class HS extends qS{constructor(...e){super(...e),Nr(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=sr.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=sr.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[d8(e)]:r.axisThreshold;n.axis=WS(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const YS=t=>t,l3=.15,p8={enabled(t=!0){return t},eventOptions(t,e,n){return $t($t({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[l3,l3];case!1:return[0,0];default:return sr.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return sr.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;return this.hasCustomTransform=!!r,r||YS},threshold(t){return sr.toVector(t,0)}},KS=0,gh=$t($t({},p8),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=KS){return t},bounds(t={}){if(typeof t=="function")return o=>gh.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}}),c3={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class XS extends HS{constructor(...e){super(...e),Nr(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=gh.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=Mp(e),r._pointerActive=!0,this.computeValues(s3(e)),this.computeInitial(),n.preventScrollAxis&&d8(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const i=Mp(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=s3(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=sr.sub(o,n._values),this.computeValues(o)),sr.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=Mp(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=n._distance;if(n.tap=o<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[u,d]=n._movement,[p,g]=r.swipe.velocity,[h,w]=r.swipe.distance,_=r.swipe.duration;if(n.elapsedTime<_){const x=Math.abs(a/n.timeDelta),v=Math.abs(l/n.timeDelta);x>p&&Math.abs(u)>h&&(n.swipe[0]=Math.sign(a)),v>g&&Math.abs(d)>w&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,$S(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=c3[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,i),r._keyboardActive=!0,sr.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in c3&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function $S(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const mh=typeof window<"u"&&window.document&&window.document.createElement;function g8(){return mh&&"ontouchstart"in window}function QS(){return g8()||mh&&window.navigator.maxTouchPoints>1}function JS(){return mh&&"onpointerdown"in window}function ZS(){return mh&&"exitPointerLock"in window.document}function ex(){try{return"constructor"in GestureEvent}catch{return!1}}const ri={isBrowser:mh,gesture:ex(),touch:g8(),touchscreen:QS(),pointer:JS(),pointerLock:ZS()},tx=250,nx=180,rx=.5,ix=50,ox=250,sx=10,u3={mouse:0,touch:0,pen:8},ax=$t($t({},gh),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return this.pointerLock=r&&ri.pointerLock,ri.touch&&n?"touch":this.pointerLock?"mouse":ri.pointer&&!i?"pointer":ri.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?tx:void 0,!(!ri.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1,keys:i=!0}={}}){return this.pointerButtons=r,this.keys=i,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:i=void 0}){const o=sr.toVector(t,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:t=rx,distance:e=ix,duration:n=ox}={}){return{velocity:this.transform(sr.toVector(t)),distance:this.transform(sr.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return nx;case!1:return 0;default:return t}},axisThreshold(t){return t?$t($t({},u3),t):u3},keyboardDisplacement(t=sx){return t}});$t($t({},p8),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ri.touch&&ri.gesture)return"gesture";if(ri.touch&&r)return"touch";if(ri.touchscreen){if(ri.pointer)return"pointer";if(ri.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const i=s=>{const a=a3(Df(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},o=s=>{const a=a3(Df(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[i(),o()]:s=>[i(s),o(s)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",sr.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});$t($t({},gh),{},{mouseOnly:(t=!0)=>t});$t($t({},gh),{},{mouseOnly:(t=!0)=>t});const m8=new Map,s5=new Map;function lx(t){m8.set(t.key,t.engine),s5.set(t.key,t.resolver)}const cx={key:"drag",engine:XS,resolver:ax};function ux(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function hx(t,e){if(t==null)return{};var n=ux(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const dx={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=ri.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},fx=["target","eventOptions","window","enabled","transform"];function rf(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=rf(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}function px(t,e,n={}){const r=t,{target:i,eventOptions:o,window:s,enabled:a,transform:l}=r,u=hx(r,fx);if(n.shared=rf({target:i,eventOptions:o,window:s,enabled:a,transform:l},dx),e){const d=s5.get(e);n[e]=rf($t({shared:n.shared},u),d)}else for(const d in u){const p=s5.get(d);p&&(n[d]=rf($t({shared:n.shared},u[d]),p))}return n}class v8{constructor(e,n){Nr(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const s=this._listeners,a=OS(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=$t($t({},l),o);e.addEventListener(a,i,u);const d=()=>{e.removeEventListener(a,i,u),s.delete(d)};return s.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class gx{constructor(){Nr(this,"_timeouts",new Map)}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class mx{constructor(e){Nr(this,"gestures",new Set),Nr(this,"_targetEventStore",new v8(this)),Nr(this,"gestureEventStores",{}),Nr(this,"gestureTimeoutStores",{}),Nr(this,"handlers",{}),Nr(this,"config",{}),Nr(this,"pointerIds",new Set),Nr(this,"touchIds",new Set),Nr(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),vx(this,e)}setEventIds(e){if(d1(e))return this.touchIds=new Set(DS(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=px(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],l=h3(r,a.eventOptions,!!i);if(a.enabled){const u=m8.get(s);new u(this,e,s).bind(l)}}const o=h3(r,n.eventOptions,!!i);for(const s in this.nativeHandlers)o(s,"",a=>this.nativeHandlers[s]($t($t({},this.state.shared),{},{event:a,args:e})),void 0,!0)}for(const o in r)r[o]=GS(...r[o]);if(!i)return r;for(const o in r){const{device:s,capture:a,passive:l}=IS(o);this._targetEventStore.add(i,s,"",r[o],{capture:a,passive:l})}}}}function bl(t,e){t.gestures.add(e),t.gestureEventStores[e]=new v8(t,e),t.gestureTimeoutStores[e]=new gx}function vx(t,e){e.drag&&bl(t,"drag"),e.wheel&&bl(t,"wheel"),e.scroll&&bl(t,"scroll"),e.move&&bl(t,"move"),e.pinch&&bl(t,"pinch"),e.hover&&bl(t,"hover")}const h3=(t,e,n)=>(r,i,o,s={},a=!1)=>{var l,u;const d=(l=s.capture)!==null&&l!==void 0?l:e.capture,p=(u=s.passive)!==null&&u!==void 0?u:e.passive;let g=a?r:jS(r,i,d);n&&p&&(g+="Passive"),t[g]=t[g]||[],t[g].push(o)};function yx(t,e={},n,r){const i=Lo.useMemo(()=>new mx(t),[]);if(i.applyHandlers(t,r),i.applyConfig(e,n),Lo.useEffect(i.effect.bind(i)),Lo.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function wx(t,e){return lx(cx),yx({drag:t},e||{},"drag")}var y8=function(t,e,n){return new Array(t).fill(null).map(function(r){return new Array(e).fill(n)})},bx=function(t){return Fu([],Is(t)).map(function(e){return Fu([],Is(e))})},Ma=function(t){var e=t.length,n=e?t[0].length:0;return{rows:e,cols:n}},_x=function(t){return!t.find(function(e){return!!e})},w8=function(t,e){var n=e.col,r=e.row,i=Ma(t),o=i.cols,s=i.rows;return{col:n<0?0:n>=o?o-1:n,row:r<0?0:r>=s?s-1:r}},b8=function(t,e,n,r){var i=r.elementWidth,o=r.elementHeight,s=Math.floor(e/i),a=Math.floor(n/o);return w8(t,{col:s,row:a})},Sx=function(t,e){for(var n=Ma(e),r=n.rows,i=n.cols,o=t.row;o<t.row+t.rowSpan;o++)for(var s=t.col;s<t.col+t.colSpan;s++)if(o>r||s>i||e[o][s])return!1;return!0},of=function(t,e,n){for(var r=bx(n),i=t.row;i<t.row+t.rowSpan;i++)for(var o=t.col;o<t.col+t.colSpan;o++)r[i][o]=e;return r},_8=function(t,e){for(var n=Ma(e),r=n.rows,i=n.cols,o=!0,s=0;s<=r-t.rowSpan;s++)for(var a=0;a<=i-t.colSpan;a++){o=!0;for(var l=0;l<t.rowSpan;l++)for(var u=0;u<t.colSpan;u++)o=o&&!e[s+l][a+u];if(o)return{row:s,col:a}}},S8=function(t,e,n,r,i){for(var o=[],s=Ma(t),a=s.rows,l=s.cols,u=e;u<e+r;u++)if(!(u>=a))for(var d=function(g){if(g>=l)return"continue";var h=t[u][g];h&&!o.find(function(w){return w.data===h.data})&&o.push(h)},p=n;p<n+i;p++)d(p);return o.sort(function(g,h){return g.col+g.row*l-(h.col+h.row*l)})},xx=function(t){var e=Ma(t),n=e.rows,r=e.cols;return S8(t,0,0,n,r)},Ax=function(t,e){var n=t.reduce(function(i,o){return i+o.rowSpan},0),r=y8(n,e,void 0);return t.forEach(function(i){var o=_8(i,r);if(o){var s=fn(fn({},i),o);r=of(s,s,r)}}),r.filter(function(i){return!_x(i)})},x8=function(t,e,n,r){var i=r.elementHeight,o=r.elementWidth,s=r.activeBorderSize,a={x:n.x-e.col*o,y:n.y-e.row*i};if(t.col>=e.col&&a.x<s)return"left";if(t.col<=e.col&&a.x>o*e.colSpan-s)return"right";if(t.row<=e.row&&a.y>i*e.rowSpan-s)return"bottom";if(t.row>=e.row&&a.y<s)return"top";if(a.x>s&&a.y<o*e.colSpan-s&&a.y>s&&a.y<i*e.rowSpan-s)return"center"},Nx={onDragMove:function(t){var e=t.offsetX,n=t.offsetY,r=t.config,i=t.state,o=t.table,s=t.canAcceptDrop,a=r.elementHeight,l=r.elementWidth,u=r.columns,d=i.draggingTile,p=i.dragPosition,g=i.dropTargetTile,h=i.droppable,w=i.start,_=i.tiles;if(!(!d||!p||!w||!_)){var x=w.col*l+e+p.x,v=w.row*a+n+p.y,S=b8(o,x,v,r),y=Ma(o);if(S.col<=y.cols&&S.row<=y.rows){var A=o[S.row][S.col];if(!A||A.data===d.data)return;var L=x8(d,A,{x,y:v},r);if(!L)return;if(L==="center")return A===g?{dropTargetTile:g,droppable:h}:s(d,A)?{dropTargetTile:A,droppable:!0}:void 0;var R=Math.floor(p.y/a),D=Math.floor(p.x/l),k=w8(o,L==="right"?{col:S.col-(d.colSpan-1),row:S.row-R}:L==="left"?{col:S.col,row:S.row-R}:L==="top"?{col:S.col-D,row:S.row}:{col:S.col-D,row:S.row-(d.rowSpan-1)}),z=S8(o,k.row,k.col,d.rowSpan,d.colSpan).filter(function(Q){return Q.data!==d.data});if(!z.length)return;var T=_.filter(function(Q){return Q.data!==d.data&&!z.find(function(ee){return ee.data===Q.data})}),P=fn(fn({},d),k),E=y8(y.rows+d.rowSpan-1,y.cols,0);if(T.forEach(function(Q){E=of(Q,1,E)}),!Sx(P,E))return;E=of(P,1,E);var W=[];if(z.find(function(Q){var ee=_8(Q,E);if(!ee)return!0;var se=fn(fn({},Q),ee);return W.push(se),E=of(se,1,E),!1}))return;var B=Fu(Fu(Fu([],Is(W)),Is(T)),[P]).sort(function(Q,ee){return Q.col+Q.row*u-(ee.col+ee.row*u)});return{draggingTile:P,tiles:B}}}},onDragEnd:function(){}},Cx={onDragMove:function(t){var e,n=t.offsetX,r=t.offsetY,i=t.config,o=t.state,s=t.table,a=t.canAcceptDrop,l=i.elementHeight,u=i.elementWidth,d=o.draggingTile,p=o.dragPosition,g=o.dropTargetTile,h=o.droppable,w=o.start,_=o.tiles;if(console.log("DRAG MOVE"),!(!d||!p||!w||!_)){var x=function(T,P,E){var W=T.findIndex(function(ee){return ee.data===(E==null?void 0:E.data)});if(P==="left"){var B=W-1>=0?T[W-1]:void 0;return B===d?void 0:{insertionPoint:{right:E,left:(B==null?void 0:B.row)===E.row?B:void 0}}}else{var Q=W+1<T.length?T[W+1]:void 0;return Q===d?void 0:{insertionPoint:{left:E,right:(Q==null?void 0:Q.row)===E.row?Q:void 0}}}},v=w.col*u+n+p.x,S=w.row*l+r+p.y,y=b8(s,v,S,i),A=Ma(s),L=s[y.row][y.col];if(!(!L||L.data===d.data)){var R=x8(L,L,{x:v,y:S},i);if(R){if(console.log("touch point:",R),R==="center")return L===g?{dropTargetTile:g,droppable:h}:a(d,L)?{dropTargetTile:L,droppable:!0}:void 0;if(!(R!=="right"&&R!=="left")){if(L.row!==y.row){var D=R==="left"?y.col-1:y.col+L.colSpan;if(D<0||D>A.cols)return;var k=s[y.row][D];if(!k)return;var z=(e=x(_,R==="left"?"right":"left",k))===null||e===void 0?void 0:e.insertionPoint;return console.log("SHIFTING: ",{shiftedInsertionPoint:z,touchPoint:R}),{insertionPoint:{left:R==="left"?z==null?void 0:z.right:void 0,right:R==="right"?z==null?void 0:z.left:void 0}}}return x(_,R,L)}}}}},onDragEnd:function(t){var e=t.state,n=e.insertionPoint,r=e.draggingTile,i=e.tiles;if(console.log("Drag end start:",{insertionPoint:n,draggingTile:r,tiles:i}),!(!i||!r||!n)){var o=i.filter(function(p){return p.data!==r.data}),s=n.left,a=n.right,l=s?o.findIndex(function(p){return p.data===s.data})+1:-1,u=a?o.findIndex(function(p){return p.data===a.data}):-1,d=l>0?l:u;return d<0?o.push(r):o.splice(d,0,r),console.log("Drag end:",{insertionPoint:n,insertionLeftIdx:l,insertionRightIdx:u,draggingTile:r,tiles:i,newTiles:o}),{tiles:o}}}},Px=function(t){var e=t.enabled,n=t.strategy,r=t.elementWidth,i=t.elementHeight,o=t.activeBorderSize,s=t.columns,a=t.currentTiles,l=t.canAcceptDrop,u=t.changeTilesOrder,d=t.didDrop,p=n==="reorder"?Cx:Nx,g=Is(re.useState({dragging:!1,droppable:!1}),2),h=g[0],w=g[1],_=h.tiles,x=h.dragging,v=h.insertionPoint,S=e&&x&&_||a,y=re.useMemo(function(){return Ax(S,s)},[S,s]),A=re.useMemo(function(){return xx(y)},[y]),L={elementHeight:i,elementWidth:r,activeBorderSize:o,columns:s},R=wx(function(T){var P=Is(T.args,1),E=P[0],W=T.dragging,B=T.tap,Q=T.xy,ee=T.movement,se=T.event;if(W)if(B||(se.preventDefault(),se.stopPropagation()),h.dragging){var X=p.onDragMove({offsetX:ee[0],offsetY:ee[1],canAcceptDrop:l,config:L,state:h,table:y})||{};w(function(G){return fn(fn(fn({},G),{offset:{x:ee[0],y:ee[1]},dropTargetTile:void 0,droppable:!1,insertionPoint:void 0}),X)})}else{var K=se.currentTarget.getBoundingClientRect(),te=A.find(function(G){return G.data===E});if(!te)return;w({dragging:!0,droppable:!1,tiles:A,draggingTile:te,dragPosition:{x:Q[0]-K.x,y:Q[1]-K.y},offset:{x:ee[0],y:ee[1]},start:{col:te.col,row:te.row}})}else{if(h.draggingTile&&h.dropTargetTile&&h.droppable)d(h.draggingTile,h.dropTargetTile);else{var de=p.onDragEnd({offsetX:ee[0],offsetY:ee[1],canAcceptDrop:l,config:L,state:h,table:y})||{},M=fn(fn({},h),de);M.tiles&&u(M.tiles)}w({dragging:!1,droppable:!1})}},{filterTaps:!0,enabled:e}),D=re.useMemo(function(){return e?A.map(function(T){var P,E,W,B,Q,ee,se,K,te,X,de,M,G,H;return fn(fn({},T),{tileWidth:r,tileHeight:i,isDragging:T.data===((P=h.draggingTile)===null||P===void 0?void 0:P.data),isDropTarget:T.data===((E=h.dropTargetTile)===null||E===void 0?void 0:E.data),insertAtLeft:T.data===((B=(W=h.insertionPoint)===null||W===void 0?void 0:W.left)===null||B===void 0?void 0:B.data),insertAtRight:T.data===((ee=(Q=h.insertionPoint)===null||Q===void 0?void 0:Q.right)===null||ee===void 0?void 0:ee.data),isDroppable:T.data===((se=h.draggingTile)===null||se===void 0?void 0:se.data)&&h.droppable,isDroppableAtInsertPosition:!!(T.data===((K=h.draggingTile)===null||K===void 0?void 0:K.data)&&h.insertionPoint),x:T.data===((te=h.draggingTile)===null||te===void 0?void 0:te.data)?(((X=h.start)===null||X===void 0?void 0:X.col)||0)*r+(((de=h.offset)===null||de===void 0?void 0:de.x)||0):T.col*r,y:T.data===((M=h.draggingTile)===null||M===void 0?void 0:M.data)?(((G=h.start)===null||G===void 0?void 0:G.row)||0)*i+(((H=h.offset)===null||H===void 0?void 0:H.y)||0):T.row*i})}).sort(function(T,P){return T.key-P.key}):A.map(function(T){return fn(fn({},T),{tileWidth:r,tileHeight:i,isDragging:!1,isDropTarget:!1,isDroppable:!1,isDroppableAtInsertPosition:!1,insertAtLeft:!1,insertAtRight:!1,x:T.col*r,y:T.row*i})}).sort(function(T,P){return T.key-P.key})},[h,A,i,r,e]),k=h.draggingTile,z=re.useMemo(function(){var T=v||{},P=T.left,E=T.right;if(P)return{x:(P.col+P.colSpan)*r,y:P.row*i};if(E)return{x:E.col*r,y:E.row*i};if(k)return{x:k.col*r,y:k.row*i}},[v,i,r,k]);return{table:y,tableHeight:y.length*i,tiles:A,insertIndicatorPosition:z,bind:R,renderTileProps:D}},Lx=function(){},A8=typeof window<"u",kx=A8?re.useLayoutEffect:re.useEffect,N8={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Ex(){var t=re.useState(null),e=t[0],n=t[1],r=re.useState(N8),i=r[0],o=r[1],s=re.useMemo(function(){return new window.ResizeObserver(function(a){if(a[0]){var l=a[0].contentRect,u=l.x,d=l.y,p=l.width,g=l.height,h=l.top,w=l.left,_=l.bottom,x=l.right;o({x:u,y:d,width:p,height:g,top:h,left:w,bottom:_,right:x})}})},[]);return kx(function(){if(e)return s.observe(e),function(){s.disconnect()}},[e]),[n,i]}const Tx=A8&&typeof window.ResizeObserver<"u"?Ex:function(){return[Lx,N8]};var Td={container:"TilesContainer-module_container__2hgud",tile:"TilesContainer-module_tile__1R3DP",dragging:"TilesContainer-module_dragging__2mUA2",indicator:"TilesContainer-module_indicator__t_Y_b"},Mx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return re.useCallback(function(n){t.forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},t)},jx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(n){return!!n}).join(" ")},C8=typeof global=="object"&&global&&global.Object===Object&&global,Fx=typeof self=="object"&&self&&self.Object===Object&&self,Uo=C8||Fx||Function("return this")(),lc=Uo.Symbol,P8=Object.prototype,Ix=P8.hasOwnProperty,Ox=P8.toString,du=lc?lc.toStringTag:void 0;function Rx(t){var e=Ix.call(t,du),n=t[du];try{t[du]=void 0;var r=!0}catch{}var i=Ox.call(t);return r&&(e?t[du]=n:delete t[du]),i}var Bx=Object.prototype,Dx=Bx.toString;function Ux(t){return Dx.call(t)}var zx="[object Null]",Gx="[object Undefined]",d3=lc?lc.toStringTag:void 0;function vh(t){return t==null?t===void 0?Gx:zx:d3&&d3 in Object(t)?Rx(t):Ux(t)}function ih(t){return t!=null&&typeof t=="object"}var Uf=Array.isArray;function L8(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Vx="[object AsyncFunction]",qx="[object Function]",Wx="[object GeneratorFunction]",Hx="[object Proxy]";function k8(t){if(!L8(t))return!1;var e=vh(t);return e==qx||e==Wx||e==Vx||e==Hx}var jp=Uo["__core-js_shared__"],f3=function(){var t=/[^.]+$/.exec(jp&&jp.keys&&jp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Yx(t){return!!f3&&f3 in t}var Kx=Function.prototype,Xx=Kx.toString;function ja(t){if(t!=null){try{return Xx.call(t)}catch{}try{return t+""}catch{}}return""}var $x=/[\\^$.*+?()[\]{}|]/g,Qx=/^\[object .+?Constructor\]$/,Jx=Function.prototype,Zx=Object.prototype,eA=Jx.toString,tA=Zx.hasOwnProperty,nA=RegExp("^"+eA.call(tA).replace($x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rA(t){if(!L8(t)||Yx(t))return!1;var e=k8(t)?nA:Qx;return e.test(ja(t))}function iA(t,e){return t==null?void 0:t[e]}function yc(t,e){var n=iA(t,e);return rA(n)?n:void 0}var a5=yc(Uo,"WeakMap"),oA=9007199254740991,sA=/^(?:0|[1-9]\d*)$/;function aA(t,e){var n=typeof t;return e=e??oA,!!e&&(n=="number"||n!="symbol"&&sA.test(t))&&t>-1&&t%1==0&&t<e}function E8(t,e){return t===e||t!==t&&e!==e}var lA=9007199254740991;function T8(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=lA}function cA(t){return t!=null&&T8(t.length)&&!k8(t)}var uA=Object.prototype;function hA(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||uA;return t===n}function dA(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var fA="[object Arguments]";function p3(t){return ih(t)&&vh(t)==fA}var M8=Object.prototype,pA=M8.hasOwnProperty,gA=M8.propertyIsEnumerable,mA=p3(function(){return arguments}())?p3:function(t){return ih(t)&&pA.call(t,"callee")&&!gA.call(t,"callee")};function vA(){return!1}var j8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,g3=j8&&typeof module=="object"&&module&&!module.nodeType&&module,yA=g3&&g3.exports===j8,m3=yA?Uo.Buffer:void 0,wA=m3?m3.isBuffer:void 0,l5=wA||vA,bA="[object Arguments]",_A="[object Array]",SA="[object Boolean]",xA="[object Date]",AA="[object Error]",NA="[object Function]",CA="[object Map]",PA="[object Number]",LA="[object Object]",kA="[object RegExp]",EA="[object Set]",TA="[object String]",MA="[object WeakMap]",jA="[object ArrayBuffer]",FA="[object DataView]",IA="[object Float32Array]",OA="[object Float64Array]",RA="[object Int8Array]",BA="[object Int16Array]",DA="[object Int32Array]",UA="[object Uint8Array]",zA="[object Uint8ClampedArray]",GA="[object Uint16Array]",VA="[object Uint32Array]",zt={};zt[IA]=zt[OA]=zt[RA]=zt[BA]=zt[DA]=zt[UA]=zt[zA]=zt[GA]=zt[VA]=!0;zt[bA]=zt[_A]=zt[jA]=zt[SA]=zt[FA]=zt[xA]=zt[AA]=zt[NA]=zt[CA]=zt[PA]=zt[LA]=zt[kA]=zt[EA]=zt[TA]=zt[MA]=!1;function qA(t){return ih(t)&&T8(t.length)&&!!zt[vh(t)]}function WA(t){return function(e){return t(e)}}var F8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Iu=F8&&typeof module=="object"&&module&&!module.nodeType&&module,HA=Iu&&Iu.exports===F8,Fp=HA&&C8.process,v3=function(){try{var t=Iu&&Iu.require&&Iu.require("util").types;return t||Fp&&Fp.binding&&Fp.binding("util")}catch{}}(),y3=v3&&v3.isTypedArray,I8=y3?WA(y3):qA,YA=Object.prototype,KA=YA.hasOwnProperty;function XA(t,e){var n=Uf(t),r=!n&&mA(t),i=!n&&!r&&l5(t),o=!n&&!r&&!i&&I8(t),s=n||r||i||o,a=s?dA(t.length,String):[],l=a.length;for(var u in t)KA.call(t,u)&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||aA(u,l)))&&a.push(u);return a}function $A(t,e){return function(n){return t(e(n))}}var QA=$A(Object.keys,Object),JA=Object.prototype,ZA=JA.hasOwnProperty;function eN(t){if(!hA(t))return QA(t);var e=[];for(var n in Object(t))ZA.call(t,n)&&n!="constructor"&&e.push(n);return e}function tN(t){return cA(t)?XA(t):eN(t)}var oh=yc(Object,"create");function nN(){this.__data__=oh?oh(null):{},this.size=0}function rN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var iN="__lodash_hash_undefined__",oN=Object.prototype,sN=oN.hasOwnProperty;function aN(t){var e=this.__data__;if(oh){var n=e[t];return n===iN?void 0:n}return sN.call(e,t)?e[t]:void 0}var lN=Object.prototype,cN=lN.hasOwnProperty;function uN(t){var e=this.__data__;return oh?e[t]!==void 0:cN.call(e,t)}var hN="__lodash_hash_undefined__";function dN(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=oh&&e===void 0?hN:e,this}function ka(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ka.prototype.clear=nN;ka.prototype.delete=rN;ka.prototype.get=aN;ka.prototype.has=uN;ka.prototype.set=dN;function fN(){this.__data__=[],this.size=0}function f1(t,e){for(var n=t.length;n--;)if(E8(t[n][0],e))return n;return-1}var pN=Array.prototype,gN=pN.splice;function mN(t){var e=this.__data__,n=f1(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gN.call(e,n,1),--this.size,!0}function vN(t){var e=this.__data__,n=f1(e,t);return n<0?void 0:e[n][1]}function yN(t){return f1(this.__data__,t)>-1}function wN(t,e){var n=this.__data__,r=f1(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function zo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}zo.prototype.clear=fN;zo.prototype.delete=mN;zo.prototype.get=vN;zo.prototype.has=yN;zo.prototype.set=wN;var sh=yc(Uo,"Map");function bN(){this.size=0,this.__data__={hash:new ka,map:new(sh||zo),string:new ka}}function _N(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function p1(t,e){var n=t.__data__;return _N(e)?n[typeof e=="string"?"string":"hash"]:n.map}function SN(t){var e=p1(this,t).delete(t);return this.size-=e?1:0,e}function xN(t){return p1(this,t).get(t)}function AN(t){return p1(this,t).has(t)}function NN(t,e){var n=p1(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Fa(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fa.prototype.clear=bN;Fa.prototype.delete=SN;Fa.prototype.get=xN;Fa.prototype.has=AN;Fa.prototype.set=NN;function CN(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function PN(){this.__data__=new zo,this.size=0}function LN(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function kN(t){return this.__data__.get(t)}function EN(t){return this.__data__.has(t)}var TN=200;function MN(t,e){var n=this.__data__;if(n instanceof zo){var r=n.__data__;if(!sh||r.length<TN-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fa(r)}return n.set(t,e),this.size=n.size,this}function Ms(t){var e=this.__data__=new zo(t);this.size=e.size}Ms.prototype.clear=PN;Ms.prototype.delete=LN;Ms.prototype.get=kN;Ms.prototype.has=EN;Ms.prototype.set=MN;function jN(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function FN(){return[]}var IN=Object.prototype,ON=IN.propertyIsEnumerable,w3=Object.getOwnPropertySymbols,RN=w3?function(t){return t==null?[]:(t=Object(t),jN(w3(t),function(e){return ON.call(t,e)}))}:FN;function BN(t,e,n){var r=e(t);return Uf(t)?r:CN(r,n(t))}function b3(t){return BN(t,tN,RN)}var c5=yc(Uo,"DataView"),u5=yc(Uo,"Promise"),h5=yc(Uo,"Set"),_3="[object Map]",DN="[object Object]",S3="[object Promise]",x3="[object Set]",A3="[object WeakMap]",N3="[object DataView]",UN=ja(c5),zN=ja(sh),GN=ja(u5),VN=ja(h5),qN=ja(a5),ps=vh;(c5&&ps(new c5(new ArrayBuffer(1)))!=N3||sh&&ps(new sh)!=_3||u5&&ps(u5.resolve())!=S3||h5&&ps(new h5)!=x3||a5&&ps(new a5)!=A3)&&(ps=function(t){var e=vh(t),n=e==DN?t.constructor:void 0,r=n?ja(n):"";if(r)switch(r){case UN:return N3;case zN:return _3;case GN:return S3;case VN:return x3;case qN:return A3}return e});var C3=Uo.Uint8Array,WN="__lodash_hash_undefined__";function HN(t){return this.__data__.set(t,WN),this}function YN(t){return this.__data__.has(t)}function zf(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Fa;++e<n;)this.add(t[e])}zf.prototype.add=zf.prototype.push=HN;zf.prototype.has=YN;function KN(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function XN(t,e){return t.has(e)}var $N=1,QN=2;function O8(t,e,n,r,i,o){var s=n&$N,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var p=-1,g=!0,h=n&QN?new zf:void 0;for(o.set(t,e),o.set(e,t);++p<a;){var w=t[p],_=e[p];if(r)var x=s?r(_,w,p,e,t,o):r(w,_,p,t,e,o);if(x!==void 0){if(x)continue;g=!1;break}if(h){if(!KN(e,function(v,S){if(!XN(h,S)&&(w===v||i(w,v,n,r,o)))return h.push(S)})){g=!1;break}}else if(!(w===_||i(w,_,n,r,o))){g=!1;break}}return o.delete(t),o.delete(e),g}function JN(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ZN(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var eC=1,tC=2,nC="[object Boolean]",rC="[object Date]",iC="[object Error]",oC="[object Map]",sC="[object Number]",aC="[object RegExp]",lC="[object Set]",cC="[object String]",uC="[object Symbol]",hC="[object ArrayBuffer]",dC="[object DataView]",P3=lc?lc.prototype:void 0,Ip=P3?P3.valueOf:void 0;function fC(t,e,n,r,i,o,s){switch(n){case dC:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hC:return!(t.byteLength!=e.byteLength||!o(new C3(t),new C3(e)));case nC:case rC:case sC:return E8(+t,+e);case iC:return t.name==e.name&&t.message==e.message;case aC:case cC:return t==e+"";case oC:var a=JN;case lC:var l=r&eC;if(a||(a=ZN),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;r|=tC,s.set(t,e);var d=O8(a(t),a(e),r,i,o,s);return s.delete(t),d;case uC:if(Ip)return Ip.call(t)==Ip.call(e)}return!1}var pC=1,gC=Object.prototype,mC=gC.hasOwnProperty;function vC(t,e,n,r,i,o){var s=n&pC,a=b3(t),l=a.length,u=b3(e),d=u.length;if(l!=d&&!s)return!1;for(var p=l;p--;){var g=a[p];if(!(s?g in e:mC.call(e,g)))return!1}var h=o.get(t),w=o.get(e);if(h&&w)return h==e&&w==t;var _=!0;o.set(t,e),o.set(e,t);for(var x=s;++p<l;){g=a[p];var v=t[g],S=e[g];if(r)var y=s?r(S,v,g,e,t,o):r(v,S,g,t,e,o);if(!(y===void 0?v===S||i(v,S,n,r,o):y)){_=!1;break}x||(x=g=="constructor")}if(_&&!x){var A=t.constructor,L=e.constructor;A!=L&&"constructor"in t&&"constructor"in e&&!(typeof A=="function"&&A instanceof A&&typeof L=="function"&&L instanceof L)&&(_=!1)}return o.delete(t),o.delete(e),_}var yC=1,L3="[object Arguments]",k3="[object Array]",Md="[object Object]",wC=Object.prototype,E3=wC.hasOwnProperty;function bC(t,e,n,r,i,o){var s=Uf(t),a=Uf(e),l=s?k3:ps(t),u=a?k3:ps(e);l=l==L3?Md:l,u=u==L3?Md:u;var d=l==Md,p=u==Md,g=l==u;if(g&&l5(t)){if(!l5(e))return!1;s=!0,d=!1}if(g&&!d)return o||(o=new Ms),s||I8(t)?O8(t,e,n,r,i,o):fC(t,e,l,n,r,i,o);if(!(n&yC)){var h=d&&E3.call(t,"__wrapped__"),w=p&&E3.call(e,"__wrapped__");if(h||w){var _=h?t.value():t,x=w?e.value():e;return o||(o=new Ms),i(_,x,n,r,o)}}return g?(o||(o=new Ms),vC(t,e,n,r,i,o)):!1}function R8(t,e,n,r,i){return t===e?!0:t==null||e==null||!ih(t)&&!ih(e)?t!==t&&e!==e:bC(t,e,n,r,R8,i)}function _C(t,e){return R8(t,e)}var SC=Lo.memo(function(t){var e=t.renderTile,n=u8(t,["renderTile"]);return e(n)}),xC=function(t){return!!t.forceTileWidth},AC=function(t){return!!t.columns},NC=function(){return{rowSpan:1,colSpan:1}},CC=0,Op=function(t,e){return t.map(function(n){var r=e.find(function(i){return i.item===n});return r||{item:n,key:CC++}})},Ou=function(t){var e=re.useRef(null),n=Is(Tx(),2),r=n[0],i=n[1],o=xC(t)?t.forceTileWidth:0,s=AC(t)?t.columns:o?Math.floor(i.width/o):4,a=t.onReorderTiles,l=t.ratio,u=l===void 0?1:l,d=t.forceTileHeight,p=t.data,g=t.acceptsDrop,h=t.onTileDrop,w=t.tileSize,_=w===void 0?NC:w,x=t.renderTile,v=t.renderInsertIndicator,S=t.activeBorderSize,y=S===void 0?24:S,A=t.disabled,L=t.strategy,R=L===void 0?"move":L,D=o||i.width/s,k=d||D/u,z=Is(re.useState(function(){return Op(p,[])}),2),T=z[0],P=z[1];re.useEffect(function(){return P(function(X){return Op(p,X)})},[p,P]);var E=re.useMemo(function(){var X=[];return T.forEach(function(de){var M=de.item,G=de.key;return X.push(fn(fn({key:G},_(M)),{data:M}))}),X},[T,_]),W=Px({columns:s,strategy:R,enabled:!A,elementHeight:k,elementWidth:D,activeBorderSize:y,currentTiles:E,canAcceptDrop:function(X,de){return g?g(X.data,de.data):!1},changeTilesOrder:function(X){var de=X.map(function(G){return G.data}),M=T.map(function(G){return G.item});_C(M,de)||(P(function(G){return Op(de,G)}),a&&a(de))},didDrop:function(X,de){P(function(M){return M.filter(function(G){return G.item!==X.data})}),h&&h(X.data,de.data)}}),B=W.bind,Q=W.renderTileProps,ee=W.tableHeight,se=W.insertIndicatorPosition,K=re.useMemo(function(){if(!se||!v)return null;var X=se.x,de=se.y;return Lo.createElement("div",{className:Td.indicator,style:{top:de+"px",left:X+"px",height:k+"px",width:D+"px"}},v())},[se,v,k,D]),te=re.useMemo(function(){return Q.map(function(X){var de=X.x,M=X.y,G=X.key,H=u8(X,["x","y","key"]);return Lo.createElement("div",fn({className:jx(Td.tile,H.isDragging&&Td.dragging),key:"K-"+G,style:{top:M+"px",left:de+"px",width:H.colSpan*D+"px",height:H.rowSpan*k+"px"}},B(H.data)),Lo.createElement(SC,fn({},H,{renderTile:x})))})},[Q,x,B,D,k]);return Lo.createElement("div",{className:Td.container,ref:Mx(e,r),style:{height:ee+"px",minWidth:D+"px"}},K,te)};const _a="/assets/card-map-DHm-xZCt.png",PC="/assets/star_icon-B410rNrh.png",LC="/assets/star_filled_icon-DrDkFQ1g.png",ei="http://192.168.112.7:8080/api",Rn=`${ei}/protected`,jd=`${ei}/public`,Rp=`${ei}/auth`,bt={my_maps:{display:`${Rn}/my-maps`,save:`${Rn}/my-maps/save`,add:`${Rn}/my-maps/create`,load:`${Rn}/my-maps/load`,delete:`${Rn}/my-maps/delete`,publish:`${Rn}/publish/add`,publish_get:`${Rn}/publish/get`},room_types:{display:t=>t?`${Rn}/room-types`:`${jd}/room-types`,add:`${Rn}/room-types/add`},floors:{add:`${Rn}/floors/add`,load:`${Rn}/my-maps/load`,delete:`${Rn}/floors/delete`},view_maps:{display:`${jd}/maps`,load:t=>t?`${Rn}/load-map`:`${jd}/load-map`,navigate:`${jd}/navigate`,add_favourite:`${Rn}/favourites/add`,add_report:`${Rn}/reports/create`},favourites:{display:`${Rn}/favourites`,add:`${Rn}/favourites/add`,delete:`${Rn}/favourites/delete`},auth:{login:`${Rp}/login`,register:`${Rp}/register`,verify:`${Rp}/verify`,oauth:{github:{state:`${ei}/oauth/state`,redirectUri:`${ei}/oauth/callback`}}},admin:{display:`${ei}/admin`,load_pr:`${ei}/admin/load-pr`,approve_pr:`${ei}/admin/pr/approve`,deny_pr:`${ei}/admin/pr/deny`,load_reports:`${ei}/admin/load-reports`}};class It{constructor(e=!1){this.auth=e,this.responseType="json"}setAuthenticated(){this.auth=!0}setResponseType(e){e==="text"?this.responseType="text":e==="json"?this.responseType="json":console.error("unsupported response type in http service")}async request(e,n,r=null){const i={method:e,headers:{"Content-Type":"application/json"}};if(this.auth){const s=localStorage.getItem("token");if(s)i.headers.Authorization=`Bearer ${s}`;else throw new Error("No token found!")}r&&(i.body=JSON.stringify(r));const o=await fetch(`${n}`,i);if(!o.ok){switch(o.status){case 401:console.log("Unauthorized: Invalid token or session expired");break;case 403:console.log("Forbidden: You don't have permission to access this resource"),window.location.href="/Login";break;case 500:console.log("Server error: Try again later");break;default:console.log(`Unexpected error: ${o.status}`)}throw new Error(`Error! status: ${o.status}`)}if(console.log("HTTPSERVICE: RESPONSE:",o),this.responseType==="json")return o.json();if(this.responseType==="text")return o.text();console.error("bad resp type")}get(e){return this.request("GET",e)}post(e,n){return this.request("POST",e,n)}put(e,n){return this.request("PUT",e,n)}delete(e){return this.request("DELETE",e)}}const kC="/assets/novo_logo_nobg_cropped-CwjcgfS6.png",EC="_logoContainer_803b2_1",TC="_logoImage_803b2_9",MC="_fixedLogoContainer_803b2_20",jC="_inlineLogoContainer_803b2_28",Bp={logoContainer:EC,logoImage:TC,fixedLogoContainer:MC,inlineLogoContainer:jC};function Vs({position:t="fixed"}){const e=ao(),n=()=>{e("/")};return N.jsx("div",{className:t==="fixed"?Bp.fixedLogoContainer:Bp.inlineLogoContainer,onClick:n,children:N.jsx("img",{src:kC,alt:"Logo",className:Bp.logoImage})})}const FC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAABCZJREFUeF7tm0162jAQhiWx6ynISUJOkrAoxsueoM0JunTMhvQkkJPEp+guUhmQWwH+kTT6Mel4k+dJPMLz8mlmPJpwRheKAEdZkzEjgEgREEACiCSANCcFEkAkAaQ5KZAAIgkgzUmBBBBJAGlOCiSASAJIc1IgAUQSQJqTAj8TwKqq5rPZbKGUmnPO75VSC8ZYwzlvpJSNEOLt4+OjKctyj/Q7mPlkFFjX9Q/G2HcLzxrG2K+iKOD+7Fd2gFp1W602FyCgyoeyLAFotisrwM1m86SU2iK8z67GbACrqloIIXYneIox/+Y4KHGZKy5mA7jZbHYe27ZPrE1RFHcIJXubZgFokTCepZR7UBXESMbYXAgBGbk3yRwy9+t6vV56k/A0zAUQ9mzXNbgdAabe9gD18sqylZMDPCUOuT2LeToE6qw6WOOdx86W4WkBG3tPofWaJQf48vKyPRTGT5dP5LIF+9Y4UHxOXR9OBiDnfLlarV5tFNKtQsY45/vVavVgs0aoe5IDrOv6HZLCpQNSyjvboljHQljnKg6mzsY3CRCo1XXdmYiKokjqU9IPA8cv67+2hHZJAH1vMC5x9Ja3cGfTwMX5/zqJ9CUAUISNCofsXRLRzSrwlAD4e8+771ghvRCC70xb8y1ayt93ZfktaXcmeQzUCWCs9+f8KpejBgRfsgBE9ACNnfdPeznqv/ZBsgCEDx+o5ZzDk03sdF7U0iAbQMutPOpGjsRhPlRWgIYSobHa1WEZApil+3L5QNkBHiH+rObii4AGg82hEpgkbxr0fZOTANg+XHusKaW8Z0LMuXGsqZR6g+NN24bD6N4PdMOkAAbyKekyBBCJmwASQCQBpHl2BeqC+tjih3kY+AmzMdov+Pn33RaSiG46TGZOJjnAFpgxPITUwGn4CLJ0exSKXdDFPglAQ2WPHgWziz9w73HcIxXMqAB17w5mX1zfMkahWQ6DgDqfY9aOUQCiwFmSuSZ8bWj8JhrIoAC7Jge8eYxq0GsmKfhIXDCAiPbUWRLQ3I7Ztj3m1PMx8KtjKJjNZnN43Tv0AWFexjU8BB2JCwLQA14wJ9r3Z8bY4/C01/leCNUGCwKw74z2fBdCDaeijubawDTjYohDeDRAiynTaAF8KEzq54L22NAWR7fF0AD7RjXaeiz1sI8J1Zj67wQZ4iwlGkAh5cPXifw7QsxZmhAAL2ZUTlEm9YzKWNUTa5YmDMCOYo8Ajn2l+u92GdhyMeRtPkU79osOo0ALx32cs1h28Jbxz1SsKNYoBihjePo0ChxH4Qv7ZhR45WA8JpYswyS7G1GgySQs+dtVoKVOYt+WHWBsB6e+PnoLT93B2M9HAJGECSABRBJAmpMCCSCSANKcFEgAkQSQ5qRAAogkgDQnBRJAJAGkOSmQACIJIM1JgUiAfwCxSwtvY4KpRwAAAABJRU5ErkJggg==",IC="_fixedProfileContainer_1ubol_1",OC="_inlineProfileContainer_1ubol_8",RC="_profileWrapper_1ubol_13",BC="_profileIconContainer_1ubol_19",DC="_profileImage_1ubol_24",UC="_dropdownMenu_1ubol_35",zC="_username_1ubol_49",GC="_menuList_1ubol_57",VC="_menuItem_1ubol_63",bi={fixedProfileContainer:IC,inlineProfileContainer:OC,profileWrapper:RC,profileIconContainer:BC,profileImage:DC,dropdownMenu:UC,username:zC,menuList:GC,menuItem:VC},qC=async(t,e,n)=>{const r=localStorage.getItem("token"),i=new It;try{const o=await i.get(`${bt.auth.verify}?token=${r}`);o.username?(t(!0),e(o.username),console.log("/verify resp: ",o.username)):(t(!1),n(!1))}catch{t(!1)}finally{n(!1)}},B8=re.createContext(),WC=({children:t})=>{const[e,n]=re.useState(!1),[r,i]=re.useState(""),[o,s]=re.useState(!0);return re.useEffect(()=>{qC(n,i,s)},[]),N.jsx(B8.Provider,{value:{isAuthenticated:e,username:r,loading:o,setIsAuthenticated:n,setUsername:i,setLoading:s},children:t})},mr=()=>re.useContext(B8);function wc({position:t="fixed"}){const{username:e,isAuthenticated:n}=mr(),[r,i]=re.useState(!1),o=re.useRef(null),s=re.useRef(null),a=ao(),l=n?["My Maps","Logout"]:["Login"];re.useEffect(()=>{const d=p=>{o.current&&s.current&&!o.current.contains(p.target)&&!s.current.contains(p.target)&&i(!1)};return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}},[]);const u=d=>{console.log("click profile"),d==="My Maps"?a("/MyMaps"):d==="Logout"&&(localStorage.removeItem("token"),window.location.reload()),i(!1)};return N.jsx("div",{className:t==="fixed"?bi.fixedProfileContainer:bi.inlineProfileContainer,children:N.jsxs("div",{className:bi.profileWrapper,children:[N.jsx("div",{className:bi.profileIconContainer,onClick:()=>{i(!r),console.log("open",r)},children:N.jsx("img",{src:FC,alt:"profile",className:bi.profileImage,ref:s})}),r&&N.jsxs("div",{ref:o,className:bi.dropdownMenu,children:[n&&N.jsx("div",{className:bi.username,children:e}),N.jsx("ul",{className:bi.menuList,children:l.map(d=>d==="Login"?N.jsx("li",{className:bi.menuItem,children:N.jsx(Ro,{to:"/login",className:bi.linkStyle,children:d})},d):N.jsx("li",{onClick:()=>u(d),className:bi.menuItem,children:d},d))})]})]})})}const HC="_wrapper_1mlzu_6",YC="_scrollableContainer_1mlzu_13",KC="_buttonValue_1mlzu_23",XC="_active_1mlzu_40",_l={wrapper:HC,scrollableContainer:YC,buttonValue:KC,active:XC};function $C({mapTypes:t,setFilter:e}){const[n,r]=re.useState("all"),i=re.useCallback(o=>{e(o),r(o)},[]);return N.jsx("div",{className:_l.wrapper,children:N.jsxs("div",{className:_l.scrollableContainer,children:[N.jsx("button",{className:`${_l.buttonValue} ${n==="all"?_l.active:""}`,onClick:()=>i("all"),children:"All"}),t==null?void 0:t.map((o,s)=>N.jsx("button",{className:`${_l.buttonValue} ${n===o?_l.active:""}`,onClick:()=>i(o),children:o},s))]})})}let fu=[];const QC=({data:t,isDragging:e,toggleFavorite:n})=>N.jsxs("div",{style:{padding:"1rem",width:"100%",position:"relative"},children:[N.jsx(Ro,{to:`/Maps/View/${t.text}`,className:ys.linkStyle,children:N.jsxs("div",{className:`${ys.tile} ${e?ys.dragging:""}`,style:{width:"100%",height:"100%"},children:[N.jsx("img",{src:_a,className:ys.imgStyle,alt:"Map Thumbnail"}),N.jsxs("div",{style:{fontFamily:"exo"},children:[t.text," ",e?"DRAGGING":null]})]})}),N.jsx("div",{className:ys.favorite,onClick:()=>n(t.text,t.isFavorite),children:N.jsx("img",{src:t.isFavorite?LC:PC,alt:"Favorite Icon",style:{width:"20px",height:"20px"}})})]}),JC=t=>({colSpan:t.cols,rowSpan:t.rows});function ZC(){const[t,e]=re.useState(""),[n,r]=re.useState([]),{username:i,isAuthenticated:o}=mr(),[s,a]=re.useState("all"),[l,u]=re.useState([]);re.useEffect(()=>{(async()=>{const _=new It;let x=[],v=["Hospital","Faculty","House","Other"];if(o){const S=await _.get(`${bt.favourites.display}?username=${i}`);console.log("RESPONSE FAVORITE MAPS",S);const y=S.map(R=>({text:R.mapName,cols:1,rows:1,isFavorite:!0,type:R.mapType}));console.log("TUKA");const A=await _.get(bt.view_maps.display);console.log("RESPONSE MAPS PUBLIC",A);const L=A.filter(R=>!y.some(D=>D.text===R.mapName)).map(R=>({text:R.mapName,cols:1,rows:1,isFavorite:!1,type:R.mapType}));x=[...y,...L]}else{const S=await _.get(bt.view_maps.display);console.log("RESPONSE MAPS PUBLIC",S),x=S.map(y=>({text:y.mapName,cols:1,rows:1,isFavorite:!1,type:y.mapType}))}console.log("TYPES:",v),u(v),fu=[...x],g(x),r(x)})()},[o,i]);const d=async(w,_)=>{const x=new It,v=_?`${bt.favourites.delete}?username=${i}&mapName=${encodeURIComponent(w)}`:`${bt.favourites.add}?username=${i}&mapName=${encodeURIComponent(w)}`;console.log("Request URL:",v);let S;_?S=await x.delete(v):S=await x.post(v),console.log("Response received:",S);const y=n.map(A=>A.text===w?{...A,isFavorite:!A.isFavorite}:A);fu=[...y],g(y),r(y)},p=w=>{const _=w.target.value.toLowerCase();e(_);const x=fu.filter(v=>v.text.toLowerCase().includes(_));g(x),r(x)},g=w=>{w.sort((_,x)=>_.isFavorite===x.isFavorite?_.text.localeCompare(x.text):_.isFavorite?-1:1)},h=w=>{if(a(w),w==="all")r(fu);else{const _=fu.filter(x=>x.type===w);r(_)}};return N.jsxs("div",{className:ys.container,children:[N.jsx("h1",{children:"Explore Maps"}),N.jsx(Vs,{}),N.jsx(wc,{}),N.jsx("div",{className:ys.searchBar,children:N.jsx("input",{type:"text",placeholder:"Search for maps...",value:t,onChange:p})}),N.jsx("div",{className:ys.filterBar,children:N.jsx($C,{mapTypes:l,setFilter:h})}),s!=="all"&&n.length===0&&N.jsxs("p",{children:["No maps of type ",s," found"]}),N.jsx(Ou,{data:n,renderTile:w=>QC({...w,toggleFavorite:d}),tileSize:JC,forceTileWidth:170,forceTileHeight:200})]})}const eP="_illustration_ry689_9",tP="_wrapper_ry689_14",nP="_form_ry689_25",rP="_heading_ry689_38",iP="_or_ry689_45",oP="_socialButtons_ry689_86",sP="_socialButton_ry689_86",aP="_error_ry689_202",_i={illustration:eP,wrapper:tP,form:nP,heading:rP,or:iP,socialButtons:oP,socialButton:sP,error:aP},D8="/assets/illustration_img-DZiNlDVv.png",lP="/assets/Logo-google-icon-PNG-BunlQUFk.png",cP="/assets/github-mark-white-BsLkggKK.png",uP=()=>{const[t,e]=re.useState(""),[n,r]=re.useState(""),[i,o]=re.useState(null),s=ao(),a=Do(),{setUsername:l,setIsAuthenticated:u}=mr(),{targetPath:d}=a.state||{targetPath:{pathname:"/"}},p={username:t,password:n},g=async()=>new It().post(bt.auth.login,p),h=async x=>{x.preventDefault(),g().then(v=>{v.token?(s(d),localStorage.setItem("token",v.token),l(v.username),u(!0),console.log("ROLES",v.roles)):o("Invalid username or password.")}).catch(v=>{console.error("Login failed",v),o("Login failed. Please try again.")})},w=async()=>{const x=new It;x.setResponseType("text");const v=await x.get(bt.auth.oauth.github.state),S="Iv23liqzhX5wMYNDHtnz",y=encodeURI(`${ei}/oauth/callback/github`),A=`https://github.com/login/oauth/authorize?client_id=${encodeURI(S)}&redirect_uri=${y}&state=${encodeURI(v)}&scope=user:email`;window.location.href=A},_=async()=>{console.log("Continue with Google");const x=new It;x.setResponseType("text");const v=await x.get(bt.auth.oauth.github.state),S="1024418489231-ml40ukvqcg9ad1h5ejor5dm6ipt6p8fo.apps.googleusercontent.com",y=encodeURI(`${ei}/oauth/callback/google`),A=`https://accounts.google.com/o/oauth2/v2/auth?client_id=${encodeURIComponent(S)}&redirect_uri=${encodeURIComponent(y)}&state=${encodeURIComponent(v)}&response_type=code&scope=${encodeURIComponent("openid profile email")}`;window.location.href=A};return N.jsxs("div",{className:_i.wrapper,children:[N.jsx(Vs,{}),N.jsx("div",{className:_i.illustration,children:N.jsx("img",{src:D8,alt:"illustration"})}),N.jsxs("div",{className:_i.form,children:[N.jsx("div",{className:_i.heading,children:"LOGIN"}),N.jsxs("form",{onSubmit:h,children:[N.jsxs("div",{children:[N.jsx("label",{htmlFor:"username",children:"Username"}),N.jsx("input",{type:"text",id:"name",placeholder:"Enter your username",onChange:x=>e(x.target.value),value:t,required:!0})]}),N.jsxs("div",{children:[N.jsx("label",{htmlFor:"password",children:"Password"}),N.jsx("input",{type:"password",id:"password",placeholder:"Enter your password",onChange:x=>r(x.target.value),value:n,required:!0})]}),i&&N.jsx("p",{className:_i.error,children:i}),N.jsx("button",{type:"submit",children:"Submit"})]}),N.jsx("div",{className:_i.or,children:"OR"}),N.jsxs("div",{className:_i.socialButtons,children:[N.jsxs("button",{className:_i.socialButton,onClick:_,children:[N.jsx("img",{src:lP,alt:"Facebook Icon",className:_i.socialIcon}),"Sign In With Google"]}),N.jsxs("button",{className:_i.socialButton,onClick:w,children:[N.jsx("img",{src:cP,alt:"GitHub Icon",className:_i.socialIcon}),"Sign In With GitHub"]})]}),N.jsxs("p",{children:["Don't have an account? ",N.jsx(Ro,{to:"/Signup",children:" Sign Up "})]})]})]})},hP="_wrapper_179e9_1",dP="_form_179e9_11",fP="_heading_179e9_21",pP="_illustration_179e9_91",gP="_errorMessage_179e9_134",mP="_successMessage_179e9_135",Sl={wrapper:hP,form:dP,heading:fP,illustration:pP,errorMessage:gP,successMessage:mP};function vP(){const[t,e]=re.useState(""),[n,r]=re.useState(""),[i,o]=re.useState(""),[s,a]=re.useState(""),[l,u]=re.useState(""),[d,p]=re.useState(""),g=ao(),h=async w=>{if(w.preventDefault(),i!==s){p("error"),u("Passwords do not match.");return}const _={username:t,email:n,password:i};try{const x=await fetch("http://localhost:8080/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});x.ok?(p("success"),u("User registered successfully!"),setTimeout(()=>{g("/login")},3e3)):x.status===409?(p("error"),u("Email is already taken.")):(p("error"),u("Registration failed."))}catch(x){console.error("Error:",x),p("error"),u("Error registering user.")}};return N.jsxs("div",{className:Sl.wrapper,children:[N.jsx(Vs,{}),N.jsx("div",{className:Sl.illustration,children:N.jsx("img",{src:D8,alt:"illustration"})}),N.jsxs("div",{className:Sl.form,children:[N.jsx("div",{className:Sl.heading,children:"CREATE AN ACCOUNT"}),N.jsxs("form",{onSubmit:h,children:[N.jsxs("div",{children:[N.jsx("label",{htmlFor:"name",children:"Username"}),N.jsx("input",{type:"text",id:"name",value:t,onChange:w=>e(w.target.value),placeholder:"Enter your username",required:!0})]}),N.jsxs("div",{children:[N.jsx("label",{htmlFor:"email",children:"E-Mail"}),N.jsx("input",{type:"email",id:"email",value:n,onChange:w=>r(w.target.value),placeholder:"Enter your email",required:!0})]}),N.jsxs("div",{children:[N.jsx("label",{htmlFor:"password",children:"Password"}),N.jsx("input",{type:"password",id:"password",value:i,onChange:w=>o(w.target.value),placeholder:"Enter your password",required:!0})]}),N.jsxs("div",{children:[N.jsx("label",{htmlFor:"confirmPassword",children:"Confirm Password"}),N.jsx("input",{type:"password",id:"confirmPassword",value:s,onChange:w=>a(w.target.value),placeholder:"Confirm your password",required:!0})]}),N.jsx("button",{type:"submit",children:"Submit"}),l&&N.jsx("p",{className:d==="success"?Sl.successMessage:Sl.errorMessage,children:l})]}),N.jsxs("p",{children:["Have an account? ",N.jsx(Ro,{to:"/Login",children:" Login "})]})]})]})}function yP(){re.useState(!1);const{isAuthenticated:t}=mr();return N.jsx("nav",{className:"modern-navbar",children:N.jsxs("div",{className:"navbar-container",children:[N.jsx("div",{className:"navbar-left",children:N.jsx(Vs,{position:"relative"})}),N.jsx("div",{className:"navbar-right",children:t?N.jsx(wc,{position:"relative"}):N.jsxs(N.Fragment,{children:[N.jsx(Ro,{to:"/Login",className:"navbar-btn navbar-login",children:"Log In"}),N.jsx(Ro,{to:"/Signup",className:"navbar-btn navbar-signup",children:"Sign Up"})]})})]})})}const T3=["btn--primary","btn--outline","btn--test"],M3=["btn--medium","btn--large"],j3=({children:t,type:e,onClick:n,buttonStyle:r,buttonSize:i})=>{const o=T3.includes(r)?r:T3[0],s=M3.includes(i)?i:M3[0];return N.jsx("button",{className:`btn ${o} ${s}`,onClick:n,type:e,children:t})};function pu(t){return N.jsx(N.Fragment,{children:N.jsx("li",{className:"cards__item",children:N.jsxs("a",{className:"cards__item__link",href:t.path,children:[N.jsx("figure",{className:"cards__item__pic-wrap","data-category":t.label,children:N.jsx("img",{className:"cards__item__img",alt:"Travel Image",src:t.src})}),N.jsx("div",{className:"cards__item__info",children:N.jsx("h5",{className:"cards__item__text",children:t.text})})]})})})}const wP="/assets/img-9-ptiH4wdI.jpg",bP="/assets/img-2-BkMBXPmR.jpg",_P="/assets/img-3-CGN-Vi5W.jpg",SP="/assets/img-4-BNWLy8zx.jpg",xP="/assets/img-8-VmDlpmuo.jpg";function AP(){return N.jsxs("div",{className:"cards",children:[N.jsx("h1",{children:"iMaps offers:"}),N.jsx("div",{className:"cards__container",children:N.jsxs("div",{className:"cards__wrapper",children:[N.jsxs("ul",{className:"cards__items",children:[N.jsx(pu,{src:wP,text:"Create intricate floor plans for your building with precision and ease.",label:"Create",path:"/services"}),N.jsx(pu,{src:bP,text:"Explore and navigate through complex building layouts seamlessly.",label:"Explore",path:"/services"})]}),N.jsxs("ul",{className:"cards__items",children:[N.jsx(pu,{src:_P,text:"Add custom icons, labels, and markers to personalize your indoor maps.",label:"Customize",path:"/services"}),N.jsx(pu,{src:SP,text:"Ensure accessibility by mapping out routes and facilities for all users.",label:"Accessibility",path:"/products"}),N.jsx(pu,{src:xP,text:"Share your maps with others and collaborate in real-time for efficient space planning.",label:"Collaboration",path:"/sign-up"})]})]})})]})}function NP(){return N.jsx("div",{className:"footer-container",children:N.jsx("section",{className:"social-media",children:N.jsxs("div",{className:"social-media-wrap",children:[N.jsx("div",{className:"footer-logo",children:N.jsx("a",{href:"#",className:"social-logo",children:"iMaps"})}),N.jsxs("small",{className:"website-rights",children:["iMaps © ",2024]}),N.jsxs("div",{className:"social-icons",children:[N.jsx("a",{className:"social-icon-link facebook",href:"#","aria-label":"Facebook",children:N.jsx("i",{className:"fab fa-facebook-f"})}),N.jsx("a",{className:"social-icon-link instagram",href:"#","aria-label":"Instagram",children:N.jsx("i",{className:"fab fa-instagram"})}),N.jsx("a",{className:"social-icon-link youtube",href:"#","aria-label":"Youtube",children:N.jsx("i",{className:"fab fa-youtube"})}),N.jsx("a",{className:"social-icon-link twitter",href:"#","aria-label":"Twitter",children:N.jsx("i",{className:"fab fa-twitter"})}),N.jsx("a",{className:"social-icon-link linkedin",href:"#","aria-label":"LinkedIn",children:N.jsx("i",{className:"fab fa-linkedin"})})]})]})})})}function CP(){return N.jsxs("div",{className:"home",children:[N.jsxs("div",{className:"hero-container",children:[N.jsx("h1",{children:"Map Your World"}),N.jsx("h2",{className:"description",children:"Create and explore detailed indoor maps."}),N.jsxs("div",{className:"hero-btns",children:[N.jsx(Ro,{to:"/Maps",children:N.jsxs(j3,{buttonSize:"btn--large",children:["Browse Maps ",N.jsx("i",{className:"far fa-play-circle"})]})}),N.jsx(Ro,{to:"/myMaps",children:N.jsx(j3,{buttonSize:"btn--large",buttonStyle:"btn--outline",children:"Create Maps"})})]})]}),N.jsx(AP,{}),N.jsx(NP,{})]})}function PP(){return N.jsxs("div",{className:"homebg",children:[N.jsx(yP,{}),N.jsx(CP,{})]})}const LP="_topPanelH_1dtk6_10",kP="_logo_1dtk6_18",EP="_title_1dtk6_22",TP="_titleLink_1dtk6_33",MP="_paragraph_1dtk6_40",jP="_guideWrapper_1dtk6_44",FP="_wrapper_1dtk6_52",IP="_cont_1dtk6_59",OP="_panel_1dtk6_68",RP="_buttonContainer_1dtk6_84",BP="_renderButton_1dtk6_93",DP="_shapeOptions_1dtk6_122",UP="_shapeOption_1dtk6_122",zP="_templateCont_1dtk6_154",GP="_fpscounter_1dtk6_161",VP="_popup_1dtk6_176",qP="_fadeInOut_1dtk6_1",WP="_popupContent_1dtk6_206",HP="_entrance_1dtk6_212",YP="_wall_1dtk6_216",KP="_room_1dtk6_220",XP="_stairs_1dtk6_223",$P="_floorSection_1dtk6_226",QP="_floorLabel_1dtk6_238",JP="_floorList_1dtk6_246",ZP="_floorItems_1dtk6_254",eL="_addFloorButton_1dtk6_262",tL="_icon_1dtk6_285",nL="_floorButton_1dtk6_291",rL="_active_1dtk6_308",iL="_floorInput_1dtk6_314",oL="_floorActions_1dtk6_331",sL="_errorMessage_1dtk6_339",aL="_floorItemWrapper_1dtk6_345",lL="_floorItem_1dtk6_254",cL="_activeFloor_1dtk6_369",uL="_deleteFloorButton_1dtk6_375",wt={topPanelH:LP,logo:kP,title:EP,titleLink:TP,paragraph:MP,guideWrapper:jP,wrapper:FP,cont:IP,panel:OP,buttonContainer:RP,renderButton:BP,shapeOptions:DP,shapeOption:UP,templateCont:zP,fpscounter:GP,popup:VP,fadeInOut:qP,popupContent:WP,entrance:HP,wall:YP,room:KP,stairs:XP,floorSection:$P,floorLabel:QP,floorList:JP,floorItems:ZP,addFloorButton:eL,icon:tL,floorButton:nL,active:rL,floorInput:iL,floorActions:oL,errorMessage:sL,floorItemWrapper:aL,floorItem:lL,activeFloor:cL,deleteFloorButton:uL},hL="_activeModal_wxjvs_2",dL="_modal_wxjvs_7",fL="_overlay_wxjvs_8",pL="_draggableHeader_wxjvs_21",gL="_modalContent_wxjvs_31",mL="_title_wxjvs_47",vL="_btnModal_wxjvs_52",yL="_closeModal_wxjvs_68",wL="_form_wxjvs_84",bL="_formGroup_wxjvs_89",_L="_formGroupCheckbox_wxjvs_116",SL="_addButton_wxjvs_132",xL="_submitButton_wxjvs_147",AL="_pinList_wxjvs_162",NL="_pinItem_wxjvs_168",CL="_removeButton_wxjvs_179",An={activeModal:hL,modal:dL,overlay:fL,draggableHeader:pL,modalContent:gL,title:mL,btnModal:vL,closeModal:yL,form:wL,formGroup:bL,formGroupCheckbox:_L,addButton:SL,submitButton:xL,pinList:AL,pinItem:NL,removeButton:CL};function g1({shapeInfo:t,updateModalData:e,phtext:n}){return N.jsxs("div",{className:An.formGroup,children:[N.jsx("label",{htmlFor:"name",children:"Name:"}),N.jsx("input",{type:"text",id:"name",name:"name",value:t.name,onChange:e,placeholder:n,required:!0})]})}function m1({shapeInfo:t,updateModalData:e}){return N.jsxs("div",{className:An.formGroup,children:[N.jsx("label",{htmlFor:"description",children:"Description:"}),N.jsx("textarea",{id:"description",name:"description",value:t.description,onChange:e,rows:"3"})]})}function v1({saveDetails:t}){return N.jsx("div",{className:An.formGroup,children:N.jsx("button",{type:"button",id:"submit-details",onClick:t,className:An.submitButton,children:"Save"})})}function y1({children:t,title:e,isOpen:n,toggleModal:r}){const i=re.useRef(null),[o,s]=re.useState(!1),[a,l]=re.useState({x:"50%",y:"50%"}),[u,d]=re.useState({x:0,y:0}),p=w=>{if(!i.current)return;s(!0);const _=i.current.getBoundingClientRect();d({x:w.clientX-_.left,y:w.clientY-_.top})},g=w=>{o&&l({x:w.clientX-u.x,y:w.clientY-u.y})},h=()=>{s(!1)};return re.useEffect(()=>(o?(window.addEventListener("mousemove",g),window.addEventListener("mouseup",h)):(window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)),()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)}),[o]),n?document.body.classList.add(An.activeModal):document.body.classList.remove(An.activeModal),N.jsx(N.Fragment,{children:n&&N.jsxs("div",{className:An.modal,children:[N.jsx("div",{onClick:r,className:An.overlay}),N.jsxs("div",{ref:i,className:An.modalContent,style:{top:typeof a.y=="string"?a.y:`${a.y}px`,left:typeof a.x=="string"?a.x:`${a.x}px`,transform:typeof a.x=="string"&&typeof a.y=="string"?"translate(-50%, -50%)":"none"},children:[N.jsx("div",{className:An.draggableHeader,onMouseDown:p,children:N.jsx("h2",{className:An.title,children:e})}),N.jsxs("form",{className:An.form,children:[t,N.jsx("button",{className:An.closeModal,onClick:r,children:"CLOSE"})]})]})]})})}const PL="_activeModal_knxpl_3",LL="_modal_knxpl_7",kL="_overlay_knxpl_8",EL="_modalContent_knxpl_22",TL="_btnModal_knxpl_42",ML="_closeModal_knxpl_58",jL="_form_knxpl_74",FL="_formGroup_knxpl_79",IL="_submitButton_knxpl_110",OL={activeModal:PL,modal:LL,overlay:kL,modalContent:EL,btnModal:TL,closeModal:ML,form:jL,formGroup:FL,submitButton:IL};function RL({shapeInfo:t,updateModalData:e,roomTypes:n}){return console.log("ROOM TYPES: "+n),N.jsxs("div",{className:OL.formGroup,children:[N.jsx("label",{htmlFor:"type",children:"Type:"}),N.jsxs("select",{id:"type",name:"type",onChange:e,value:t.type,required:!0,children:[N.jsx("option",{value:"",children:"Select Room Type"}),n==null?void 0:n.map((r,i)=>N.jsx("option",{value:r.name,children:r.name},i))]})]})}let U8=!0;const F3=new CustomEvent("mapsave",{}),I3=t=>{U8=t},$l=()=>{U8&&(window.dispatchEvent(F3),I3(!1),setTimeout(()=>{I3(!0),window.dispatchEvent(F3)},2e3))};function w1(t){const[e,n]=re.useState(!1),[r,i]=re.useState(null),[o,s]=re.useState({}),a=()=>{e&&(r.setInfo(o),t.updateRoomNames(),$l(),console.log("SHAPE BEF CLOSE:",r.info),t.attachKeyPressEventListeners()),n(!e)};return{modalState:{isOpen:e,shapeInfo:o,setIsOpen:n,shape:r,setShape:i,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:d=>{const{name:p,value:g,type:h,checked:w}=d.target;s(_=>({..._,[p]:h==="checkbox"?w:g})),console.log("SHAPE INFO UPDATE",r.info)},saveDetails:()=>{r&&a()}}}}function b1(t,e){re.useEffect(()=>{if(e!=null)return window.addEventListener(e,t),()=>{window.removeEventListener(e,t)}},[])}function BL({map:t,roomTypes:e}){const{modalState:{isOpen:n,setIsOpen:r,setShape:i,shapeInfo:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t);return b1(d=>{const p=d.detail.room;i(p),s(p.info),r(!0),d.detail.map.detachKeyPressEventListeners()},"openRoomModalEvent"),N.jsxs(y1,{isOpen:n,toggleModal:a,title:"Enter Room Details",children:[N.jsx(g1,{shapeInfo:o,updateModalData:l}),N.jsx(RL,{updateModalData:l,shapeInfo:o,roomTypes:e}),N.jsx(m1,{shapeInfo:o,updateModalData:l}),N.jsx(v1,{saveDetails:u})]})}var z8={exports:{}},DL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",UL=DL,zL=UL;function G8(){}function V8(){}V8.resetWarningCache=G8;var GL=function(){function t(r,i,o,s,a,l){if(l!==zL){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:V8,resetWarningCache:G8};return n.PropTypes=n,n};z8.exports=GL();var VL=z8.exports;const Sa=Kf(VL);var $e={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function n(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof Om<"u"?Om:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.16",isBrowser:n(),isUnminified:/param/.test((function(i){}).toString()),dblClickWindow:400,getAngle(i){return t.Konva.angleDeg?i*e:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isTransforming(){var i;return(i=t.Konva.Transformer)===null||i===void 0?void 0:i.isTransforming()},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(i){t.glob.Konva=i}};const r=i=>{t.Konva[i.prototype.getClassName()]=i};t._registerNode=r,t.Konva._injectGlobal(t.Konva)})($e);var Mg={exports:{}},_1={},q8={},Zt={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=$e;class n{constructor(A=[1,0,0,1,0,0]){this.dirty=!1,this.m=A&&A.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(A){A.m[0]=this.m[0],A.m[1]=this.m[1],A.m[2]=this.m[2],A.m[3]=this.m[3],A.m[4]=this.m[4],A.m[5]=this.m[5]}point(A){const L=this.m;return{x:L[0]*A.x+L[2]*A.y+L[4],y:L[1]*A.x+L[3]*A.y+L[5]}}translate(A,L){return this.m[4]+=this.m[0]*A+this.m[2]*L,this.m[5]+=this.m[1]*A+this.m[3]*L,this}scale(A,L){return this.m[0]*=A,this.m[1]*=A,this.m[2]*=L,this.m[3]*=L,this}rotate(A){const L=Math.cos(A),R=Math.sin(A),D=this.m[0]*L+this.m[2]*R,k=this.m[1]*L+this.m[3]*R,z=this.m[0]*-R+this.m[2]*L,T=this.m[1]*-R+this.m[3]*L;return this.m[0]=D,this.m[1]=k,this.m[2]=z,this.m[3]=T,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(A,L){const R=this.m[0]+this.m[2]*L,D=this.m[1]+this.m[3]*L,k=this.m[2]+this.m[0]*A,z=this.m[3]+this.m[1]*A;return this.m[0]=R,this.m[1]=D,this.m[2]=k,this.m[3]=z,this}multiply(A){const L=this.m[0]*A.m[0]+this.m[2]*A.m[1],R=this.m[1]*A.m[0]+this.m[3]*A.m[1],D=this.m[0]*A.m[2]+this.m[2]*A.m[3],k=this.m[1]*A.m[2]+this.m[3]*A.m[3],z=this.m[0]*A.m[4]+this.m[2]*A.m[5]+this.m[4],T=this.m[1]*A.m[4]+this.m[3]*A.m[5]+this.m[5];return this.m[0]=L,this.m[1]=R,this.m[2]=D,this.m[3]=k,this.m[4]=z,this.m[5]=T,this}invert(){const A=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),L=this.m[3]*A,R=-this.m[1]*A,D=-this.m[2]*A,k=this.m[0]*A,z=A*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),T=A*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=L,this.m[1]=R,this.m[2]=D,this.m[3]=k,this.m[4]=z,this.m[5]=T,this}getMatrix(){return this.m}decompose(){const A=this.m[0],L=this.m[1],R=this.m[2],D=this.m[3],k=this.m[4],z=this.m[5],T=A*D-L*R,P={x:k,y:z,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(A!=0||L!=0){const E=Math.sqrt(A*A+L*L);P.rotation=L>0?Math.acos(A/E):-Math.acos(A/E),P.scaleX=E,P.scaleY=T/E,P.skewX=(A*R+L*D)/T,P.skewY=0}else if(R!=0||D!=0){const E=Math.sqrt(R*R+D*D);P.rotation=Math.PI/2-(D>0?Math.acos(-R/E):-Math.acos(R/E)),P.scaleX=T/E,P.scaleY=E,P.skewX=0,P.skewY=(A*R+L*D)/T}return P.rotation=t.Util._getRotation(P.rotation),P}}t.Transform=n;let r="[object Array]",i="[object Number]",o="[object String]",s="[object Boolean]",a=Math.PI/180,l=180/Math.PI,u="#",d="",p="0",g="Konva warning: ",h="Konva error: ",w="rgb(",_={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},x=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,v=[];const S=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(y){setTimeout(y,60)};t.Util={_isElement(y){return!!(y&&y.nodeType==1)},_isFunction(y){return!!(y&&y.constructor&&y.call&&y.apply)},_isPlainObject(y){return!!y&&y.constructor===Object},_isArray(y){return Object.prototype.toString.call(y)===r},_isNumber(y){return Object.prototype.toString.call(y)===i&&!isNaN(y)&&isFinite(y)},_isString(y){return Object.prototype.toString.call(y)===o},_isBoolean(y){return Object.prototype.toString.call(y)===s},isObject(y){return y instanceof Object},isValidSelector(y){if(typeof y!="string")return!1;const A=y[0];return A==="#"||A==="."||A===A.toUpperCase()},_sign(y){return y===0||y>0?1:-1},requestAnimFrame(y){v.push(y),v.length===1&&S(function(){const A=v;v=[],A.forEach(function(L){L()})})},createCanvasElement(){const y=document.createElement("canvas");try{y.style=y.style||{}}catch{}return y},createImageElement(){return document.createElement("img")},_isInDocument(y){for(;y=y.parentNode;)if(y==document)return!0;return!1},_urlToImage(y,A){const L=t.Util.createImageElement();L.onload=function(){A(L)},L.src=y},_rgbToHex(y,A,L){return((1<<24)+(y<<16)+(A<<8)+L).toString(16).slice(1)},_hexToRgb(y){y=y.replace(u,d);const A=parseInt(y,16);return{r:A>>16&255,g:A>>8&255,b:A&255}},getRandomColor(){let y=(Math.random()*16777215<<0).toString(16);for(;y.length<6;)y=p+y;return u+y},getRGB(y){let A;return y in _?(A=_[y],{r:A[0],g:A[1],b:A[2]}):y[0]===u?this._hexToRgb(y.substring(1)):y.substr(0,4)===w?(A=x.exec(y.replace(/ /g,"")),{r:parseInt(A[1],10),g:parseInt(A[2],10),b:parseInt(A[3],10)}):{r:0,g:0,b:0}},colorToRGBA(y){return y=y||"black",t.Util._namedColorToRBA(y)||t.Util._hex3ColorToRGBA(y)||t.Util._hex4ColorToRGBA(y)||t.Util._hex6ColorToRGBA(y)||t.Util._hex8ColorToRGBA(y)||t.Util._rgbColorToRGBA(y)||t.Util._rgbaColorToRGBA(y)||t.Util._hslColorToRGBA(y)},_namedColorToRBA(y){const A=_[y.toLowerCase()];return A?{r:A[0],g:A[1],b:A[2],a:1}:null},_rgbColorToRGBA(y){if(y.indexOf("rgb(")===0){y=y.match(/rgb\(([^)]+)\)/)[1];const A=y.split(/ *, */).map(Number);return{r:A[0],g:A[1],b:A[2],a:1}}},_rgbaColorToRGBA(y){if(y.indexOf("rgba(")===0){y=y.match(/rgba\(([^)]+)\)/)[1];const A=y.split(/ *, */).map((L,R)=>L.slice(-1)==="%"?R===3?parseInt(L)/100:parseInt(L)/100*255:Number(L));return{r:A[0],g:A[1],b:A[2],a:A[3]}}},_hex8ColorToRGBA(y){if(y[0]==="#"&&y.length===9)return{r:parseInt(y.slice(1,3),16),g:parseInt(y.slice(3,5),16),b:parseInt(y.slice(5,7),16),a:parseInt(y.slice(7,9),16)/255}},_hex6ColorToRGBA(y){if(y[0]==="#"&&y.length===7)return{r:parseInt(y.slice(1,3),16),g:parseInt(y.slice(3,5),16),b:parseInt(y.slice(5,7),16),a:1}},_hex4ColorToRGBA(y){if(y[0]==="#"&&y.length===5)return{r:parseInt(y[1]+y[1],16),g:parseInt(y[2]+y[2],16),b:parseInt(y[3]+y[3],16),a:parseInt(y[4]+y[4],16)/255}},_hex3ColorToRGBA(y){if(y[0]==="#"&&y.length===4)return{r:parseInt(y[1]+y[1],16),g:parseInt(y[2]+y[2],16),b:parseInt(y[3]+y[3],16),a:1}},_hslColorToRGBA(y){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(y)){const[A,...L]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(y),R=Number(L[0])/360,D=Number(L[1])/100,k=Number(L[2])/100;let z,T,P;if(D===0)return P=k*255,{r:Math.round(P),g:Math.round(P),b:Math.round(P),a:1};k<.5?z=k*(1+D):z=k+D-k*D;const E=2*k-z,W=[0,0,0];for(let B=0;B<3;B++)T=R+1/3*-(B-1),T<0&&T++,T>1&&T--,6*T<1?P=E+(z-E)*6*T:2*T<1?P=z:3*T<2?P=E+(z-E)*(2/3-T)*6:P=E,W[B]=P*255;return{r:Math.round(W[0]),g:Math.round(W[1]),b:Math.round(W[2]),a:1}}},haveIntersection(y,A){return!(A.x>y.x+y.width||A.x+A.width<y.x||A.y>y.y+y.height||A.y+A.height<y.y)},cloneObject(y){const A={};for(const L in y)this._isPlainObject(y[L])?A[L]=this.cloneObject(y[L]):this._isArray(y[L])?A[L]=this.cloneArray(y[L]):A[L]=y[L];return A},cloneArray(y){return y.slice(0)},degToRad(y){return y*a},radToDeg(y){return y*l},_degToRad(y){return t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(y)},_radToDeg(y){return t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(y)},_getRotation(y){return e.Konva.angleDeg?t.Util.radToDeg(y):y},_capitalize(y){return y.charAt(0).toUpperCase()+y.slice(1)},throw(y){throw new Error(h+y)},error(y){console.error(h+y)},warn(y){e.Konva.showWarnings&&console.warn(g+y)},each(y,A){for(const L in y)A(L,y[L])},_inRange(y,A,L){return A<=y&&y<L},_getProjectionToSegment(y,A,L,R,D,k){let z,T,P;const E=(y-L)*(y-L)+(A-R)*(A-R);if(E==0)z=y,T=A,P=(D-L)*(D-L)+(k-R)*(k-R);else{const W=((D-y)*(L-y)+(k-A)*(R-A))/E;W<0?(z=y,T=A,P=(y-D)*(y-D)+(A-k)*(A-k)):W>1?(z=L,T=R,P=(L-D)*(L-D)+(R-k)*(R-k)):(z=y+W*(L-y),T=A+W*(R-A),P=(z-D)*(z-D)+(T-k)*(T-k))}return[z,T,P]},_getProjectionToLine(y,A,L){const R=t.Util.cloneObject(y);let D=Number.MAX_VALUE;return A.forEach(function(k,z){if(!L&&z===A.length-1)return;const T=A[(z+1)%A.length],P=t.Util._getProjectionToSegment(k.x,k.y,T.x,T.y,y.x,y.y),E=P[0],W=P[1],B=P[2];B<D&&(R.x=E,R.y=W,D=B)}),R},_prepareArrayForTween(y,A,L){let R,D=[],k=[];if(y.length>A.length){const T=A;A=y,y=T}for(R=0;R<y.length;R+=2)D.push({x:y[R],y:y[R+1]});for(R=0;R<A.length;R+=2)k.push({x:A[R],y:A[R+1]});const z=[];return k.forEach(function(T){const P=t.Util._getProjectionToLine(T,D,L);z.push(P.x),z.push(P.y)}),z},_prepareToStringify(y){let A;y.visitedByCircularReferenceRemoval=!0;for(const L in y)if(y.hasOwnProperty(L)&&y[L]&&typeof y[L]=="object"){if(A=Object.getOwnPropertyDescriptor(y,L),y[L].visitedByCircularReferenceRemoval||t.Util._isElement(y[L]))if(A.configurable)delete y[L];else return null;else if(t.Util._prepareToStringify(y[L])===null)if(A.configurable)delete y[L];else return null}return delete y.visitedByCircularReferenceRemoval,y},_assign(y,A){for(const L in A)y[L]=A[L];return y},_getFirstPointerId(y){return y.touches?y.changedTouches[0].identifier:y.pointerId||999},releaseCanvas(...y){e.Konva.releaseCanvasOnDestroy&&y.forEach(A=>{A.width=0,A.height=0})},drawRoundedRectPath(y,A,L,R){let D=0,k=0,z=0,T=0;typeof R=="number"?D=k=z=T=Math.min(R,A/2,L/2):(D=Math.min(R[0]||0,A/2,L/2),k=Math.min(R[1]||0,A/2,L/2),T=Math.min(R[2]||0,A/2,L/2),z=Math.min(R[3]||0,A/2,L/2)),y.moveTo(D,0),y.lineTo(A-k,0),y.arc(A-k,k,k,Math.PI*3/2,0,!1),y.lineTo(A,L-T),y.arc(A-T,L-T,T,0,Math.PI/2,!1),y.lineTo(z,L),y.arc(z,L-z,z,Math.PI/2,Math.PI,!1),y.lineTo(0,D),y.arc(D,D,D,Math.PI,Math.PI*3/2,!1)}}})(Zt);var Ht={},at={},Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.RGBComponent=qL;Xe.alphaComponent=WL;Xe.getNumberValidator=HL;Xe.getNumberOrArrayOfNumbersValidator=YL;Xe.getNumberOrAutoValidator=KL;Xe.getStringValidator=XL;Xe.getStringOrGradientValidator=$L;Xe.getFunctionValidator=QL;Xe.getNumberArrayValidator=JL;Xe.getBooleanValidator=ZL;Xe.getComponentValidator=ek;const Go=$e,ln=Zt;function Vo(t){return ln.Util._isString(t)?'"'+t+'"':Object.prototype.toString.call(t)==="[object Number]"||ln.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}function qL(t){return t>255?255:t<0?0:Math.round(t)}function WL(t){return t>1?1:t<1e-4?1e-4:t}function HL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isNumber(t)||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}}function YL(t){if(Go.Konva.isUnminified)return function(e,n){const r=ln.Util._isNumber(e),i=ln.Util._isArray(e)&&e.length==t;return!r&&!i&&ln.Util.warn(Vo(e)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+t+")"),e}}function KL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isNumber(t)||t==="auto"||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}}function XL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isString(t)||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}}function $L(){if(Go.Konva.isUnminified)return function(t,e){const n=ln.Util._isString(t),r=Object.prototype.toString.call(t)==="[object CanvasGradient]"||t&&t.addColorStop;return n||r||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a string or a native gradient.'),t}}function QL(){if(Go.Konva.isUnminified)return function(t,e){return ln.Util._isFunction(t)||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}}function JL(){if(Go.Konva.isUnminified)return function(t,e){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&t instanceof n||(ln.Util._isArray(t)?t.forEach(function(r){ln.Util._isNumber(r)||ln.Util.warn('"'+e+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.')),t}}function ZL(){if(Go.Konva.isUnminified)return function(t,e){return t===!0||t===!1||ln.Util.warn(Vo(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}}function ek(t){if(Go.Konva.isUnminified)return function(e,n){return e==null||ln.Util.isObject(e)||ln.Util.warn(Vo(e)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+t),e}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const e=Zt,n=Xe,r="get",i="set";t.Factory={addGetterSetter(o,s,a,l,u){t.Factory.addGetter(o,s,a),t.Factory.addSetter(o,s,l,u),t.Factory.addOverloadedGetterSetter(o,s)},addGetter(o,s,a){const l=r+e.Util._capitalize(s);o.prototype[l]=o.prototype[l]||function(){const u=this.attrs[s];return u===void 0?a:u}},addSetter(o,s,a,l){const u=i+e.Util._capitalize(s);o.prototype[u]||t.Factory.overWriteSetter(o,s,a,l)},overWriteSetter(o,s,a,l){const u=i+e.Util._capitalize(s);o.prototype[u]=function(d){return a&&d!==void 0&&d!==null&&(d=a.call(this,d,s)),this._setAttr(s,d),l&&l.call(this),this}},addComponentsGetterSetter(o,s,a,l,u){let d=a.length,p=e.Util._capitalize,g=r+p(s),h=i+p(s),w,_;o.prototype[g]=function(){const v={};for(w=0;w<d;w++)_=a[w],v[_]=this.getAttr(s+p(_));return v};const x=(0,n.getComponentValidator)(a);o.prototype[h]=function(v){let S=this.attrs[s],y;l&&(v=l.call(this,v)),x&&x.call(this,v,s);for(y in v)v.hasOwnProperty(y)&&this._setAttr(s+p(y),v[y]);return v||a.forEach(A=>{this._setAttr(s+p(A),void 0)}),this._fireChangeEvent(s,S,v),u&&u.call(this),this},t.Factory.addOverloadedGetterSetter(o,s)},addOverloadedGetterSetter(o,s){const a=e.Util._capitalize(s),l=i+a,u=r+a;o.prototype[s]=function(){return arguments.length?(this[l](arguments[0]),this):this[u]()}},addDeprecatedGetterSetter(o,s,a,l){e.Util.error("Adding deprecated "+s);const u=r+e.Util._capitalize(s),d=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[u]=function(){e.Util.error(d);const p=this.attrs[s];return p===void 0?a:p},t.Factory.addSetter(o,s,l,function(){e.Util.error(d)}),t.Factory.addOverloadedGetterSetter(o,s)},backCompat(o,s){e.Util.each(s,function(a,l){const u=o.prototype[l],d=r+e.Util._capitalize(a),p=i+e.Util._capitalize(a);function g(){u.apply(this,arguments),e.Util.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+l+'" instead.')}o.prototype[a]=g,o.prototype[d]=g,o.prototype[p]=g})},afterSetFilter(){this._filterUpToDate=!1}}})(at);var ji={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HitContext=Mo.SceneContext=Mo.Context=void 0;const W8=Zt,tk=$e;function nk(t){let e=[],n=t.length,r=W8.Util,i,o;for(i=0;i<n;i++)o=t[i],r._isNumber(o)?o=Math.round(o*1e3)/1e3:r._isString(o)||(o=o+""),e.push(o);return e}const O3=",",rk="(",ik=")",ok="([",sk="])",ak=";",lk="()",ck="=",R3=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],uk=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"],hk=100;class S1{constructor(e){this.canvas=e,tk.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,n){let r=this.traceArr,i=r.length,o="",s,a,l,u;for(s=0;s<i;s++)a=r[s],l=a.method,l?(u=a.args,o+=l,e?o+=lk:W8.Util._isArray(u[0])?o+=ok+u.join(O3)+sk:(n&&(u=u.map(d=>typeof d=="number"?Math.floor(d):d)),o+=rk+u.join(O3)+ik)):(o+=a.property,e||(o+=ck+a.val)),o+=ak;return o}clearTrace(){this.traceArr=[]}_trace(e){let n=this.traceArr,r;n.push(e),r=n.length,r>=hk&&n.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const n=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(e){const n=e.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(e){const n=e.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(e){const n=e.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(e,n){this._context[e]=n}arc(e,n,r,i,o,s){this._context.arc(e,n,r,i,o,s)}arcTo(e,n,r,i,o){this._context.arcTo(e,n,r,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(e,n,r,i,o,s){this._context.bezierCurveTo(e,n,r,i,o,s)}clearRect(e,n,r,i){this._context.clearRect(e,n,r,i)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,n){const r=arguments;if(r.length===2)return this._context.createImageData(e,n);if(r.length===1)return this._context.createImageData(e)}createLinearGradient(e,n,r,i){return this._context.createLinearGradient(e,n,r,i)}createPattern(e,n){return this._context.createPattern(e,n)}createRadialGradient(e,n,r,i,o,s){return this._context.createRadialGradient(e,n,r,i,o,s)}drawImage(e,n,r,i,o,s,a,l,u){const d=arguments,p=this._context;d.length===3?p.drawImage(e,n,r):d.length===5?p.drawImage(e,n,r,i,o):d.length===9&&p.drawImage(e,n,r,i,o,s,a,l,u)}ellipse(e,n,r,i,o,s,a,l){this._context.ellipse(e,n,r,i,o,s,a,l)}isPointInPath(e,n,r,i){return r?this._context.isPointInPath(r,e,n,i):this._context.isPointInPath(e,n,i)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,n,r,i){this._context.fillRect(e,n,r,i)}strokeRect(e,n,r,i){this._context.strokeRect(e,n,r,i)}fillText(e,n,r,i){i?this._context.fillText(e,n,r,i):this._context.fillText(e,n,r)}measureText(e){return this._context.measureText(e)}getImageData(e,n,r,i){return this._context.getImageData(e,n,r,i)}lineTo(e,n){this._context.lineTo(e,n)}moveTo(e,n){this._context.moveTo(e,n)}rect(e,n,r,i){this._context.rect(e,n,r,i)}roundRect(e,n,r,i,o){this._context.roundRect(e,n,r,i,o)}putImageData(e,n,r){this._context.putImageData(e,n,r)}quadraticCurveTo(e,n,r,i){this._context.quadraticCurveTo(e,n,r,i)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,n){this._context.scale(e,n)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,n,r,i,o,s){this._context.setTransform(e,n,r,i,o,s)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,n,r,i){this._context.strokeText(e,n,r,i)}transform(e,n,r,i,o,s){this._context.transform(e,n,r,i,o,s)}translate(e,n){this._context.translate(e,n)}_enableTrace(){let e=this,n=R3.length,r=this.setAttr,i,o;const s=function(a){let l=e[a],u;e[a]=function(){return o=nk(Array.prototype.slice.call(arguments,0)),u=l.apply(e,arguments),e._trace({method:a,args:o}),u}};for(i=0;i<n;i++)s(R3[i]);e.setAttr=function(){r.apply(e,arguments);const a=arguments[0];let l=arguments[1];(a==="shadowOffsetX"||a==="shadowOffsetY"||a==="shadowBlur")&&(l=l/this.canvas.getPixelRatio()),e._trace({property:a,val:l})}}_applyGlobalCompositeOperation(e){const n=e.attrs.globalCompositeOperation;!n||n==="source-over"||this.setAttr("globalCompositeOperation",n)}}Mo.Context=S1;uk.forEach(function(t){Object.defineProperty(S1.prototype,t,{get(){return this._context[t]},set(e){this._context[t]=e}})});class dk extends S1{constructor(e,{willReadFrequently:n=!1}={}){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(e){const n=e.fill();this.setAttr("fillStyle",n),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){const n=e._getLinearGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fillRadialGradient(e){const n=e._getRadialGradient();n&&(this.setAttr("fillStyle",n),e._fillFunc(this))}_fill(e){const n=e.fill(),r=e.getFillPriority();if(n&&r==="color"){this._fillColor(e);return}const i=e.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(e);return}const o=e.getFillLinearGradientColorStops();if(o&&r==="linear-gradient"){this._fillLinearGradient(e);return}const s=e.getFillRadialGradientColorStops();if(s&&r==="radial-gradient"){this._fillRadialGradient(e);return}n?this._fillColor(e):i?this._fillPattern(e):o?this._fillLinearGradient(e):s&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const n=e.getStrokeLinearGradientStartPoint(),r=e.getStrokeLinearGradientEndPoint(),i=e.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(let s=0;s<i.length;s+=2)o.addColorStop(i[s],i[s+1]);this.setAttr("strokeStyle",o)}}_stroke(e){const n=e.dash(),r=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!r){this.save();const o=this.getCanvas().getPixelRatio();this.setTransform(o,0,0,o,0,0)}this._applyLineCap(e),n&&e.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),r||this.restore()}}_applyShadow(e){var n,r,i;const o=(n=e.getShadowRGBA())!==null&&n!==void 0?n:"black",s=(r=e.getShadowBlur())!==null&&r!==void 0?r:5,a=(i=e.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},l=e.getAbsoluteScale(),u=this.canvas.getPixelRatio(),d=l.x*u,p=l.y*u;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",s*Math.min(Math.abs(d),Math.abs(p))),this.setAttr("shadowOffsetX",a.x*d),this.setAttr("shadowOffsetY",a.y*p)}}Mo.SceneContext=dk;class fk extends S1{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const n=e.getStrokeScaleEnabled();if(!n){this.save();const o=this.getCanvas().getPixelRatio();this.setTransform(o,0,0,o,0,0)}this._applyLineCap(e);const r=e.hitStrokeWidth(),i=r==="auto"?e.strokeWidth():r;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),n||this.restore()}}}Mo.HitContext=fk;Object.defineProperty(ji,"__esModule",{value:!0});ji.HitCanvas=ji.SceneCanvas=ji.Canvas=void 0;const Gf=Zt,H8=Mo,Y8=$e,pk=at,gk=Xe;let Fd;function mk(){if(Fd)return Fd;const t=Gf.Util.createCanvasElement(),e=t.getContext("2d");return Fd=function(){const n=Y8.Konva._global.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/r}(),Gf.Util.releaseCanvas(t),Fd}class x1{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const r=(e||{}).pixelRatio||Y8.Konva.pixelRatio||mk();this.pixelRatio=r,this._canvas=Gf.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){const n=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";const n=this.pixelRatio;this.getContext()._context.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,n){this.setWidth(e||0),this.setHeight(n||0)}toDataURL(e,n){try{return this._canvas.toDataURL(e,n)}catch{try{return this._canvas.toDataURL()}catch(i){return Gf.Util.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}ji.Canvas=x1;pk.Factory.addGetterSetter(x1,"pixelRatio",void 0,(0,gk.getNumberValidator)());class vk extends x1{constructor(e={width:0,height:0,willReadFrequently:!1}){super(e),this.context=new H8.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}}ji.SceneCanvas=vk;class yk extends x1{constructor(e={width:0,height:0}){super(e),this.hitCanvas=!0,this.context=new H8.HitContext(this),this.setSize(e.width,e.height)}}ji.HitCanvas=yk;var A1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const e=$e,n=Zt;t.DD={get isDragging(){let r=!1;return t.DD._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){let r;return t.DD._dragElements.forEach(i=>{r=i.node}),r},_dragElements:new Map,_drag(r){const i=[];t.DD._dragElements.forEach((o,s)=>{const{node:a}=o,l=a.getStage();l.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const u=l._changedPointerPositions.find(d=>d.id===o.pointerId);if(u){if(o.dragStatus!=="dragging"){const d=a.dragDistance();if(Math.max(Math.abs(u.x-o.startPointerPos.x),Math.abs(u.y-o.startPointerPos.y))<d||(a.startDrag({evt:r}),!a.isDragging()))return}a._setDragPosition(r,o),i.push(a)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const i=[];t.DD._dragElements.forEach(o=>{const{node:s}=o,a=s.getStage();if(r&&a.setPointersPositions(r),!a._changedPointerPositions.find(d=>d.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(t.DD.justDragged=!0,e.Konva._mouseListenClick=!1,e.Konva._touchListenClick=!1,e.Konva._pointerListenClick=!1,o.dragStatus="stopped");const u=o.node.getLayer()||o.node instanceof e.Konva.Stage&&o.node;u&&i.indexOf(u)===-1&&i.push(u)}),i.forEach(o=>{o.draw()})},_endDragAfter(r){t.DD._dragElements.forEach((i,o)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:r},!0),i.dragStatus!=="dragging"&&t.DD._dragElements.delete(o)})}},e.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("touchcancel",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1),window.addEventListener("touchcancel",t.DD._endDragAfter,!1))})(A1);Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Node=void 0;const dt=Zt,yh=at,gu=ji,as=$e,Zr=A1,wn=Xe,sf="absoluteOpacity",Id="allEventListeners",No="absoluteTransform",B3="absoluteScale",ca="canvas",wk="Change",bk="children",_k="konva",d5="listening",D3="mouseenter",U3="mouseleave",z3="set",G3="Shape",af=" ",V3="stage",hs="transform",Sk="Stage",f5="visible",xk=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(af);let Ak=1;class Je{constructor(e){this._id=Ak++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){(e===hs||e===No)&&this._cache.get(e)?this._cache.get(e).dirty=!0:e?this._cache.delete(e):this._cache.clear()}_getCache(e,n){let r=this._cache.get(e);return(r===void 0||(e===hs||e===No)&&r.dirty===!0)&&(r=n.call(this),this._cache.set(e,r)),r}_calculate(e,n,r){if(!this._attachedDepsListeners.get(e)){const i=n.map(o=>o+"Change.konva").join(af);this.on(i,()=>{this._clearCache(e)}),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,r)}_getCanvasCache(){return this._cache.get(ca)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===No&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(ca)){const{scene:e,filter:n,hit:r}=this._cache.get(ca);dt.Util.releaseCanvas(e,n,r),this._cache.delete(ca)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){const n=e||{};let r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(n.width||r.width),o=Math.ceil(n.height||r.height),s=n.pixelRatio,a=n.x===void 0?Math.floor(r.x):n.x,l=n.y===void 0?Math.floor(r.y):n.y,u=n.offset||0,d=n.drawBorder||!1,p=n.hitCanvasPixelRatio||1;if(!i||!o){dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const g=Math.abs(Math.round(r.x)-a)>.5?1:0,h=Math.abs(Math.round(r.y)-l)>.5?1:0;i+=u*2+g,o+=u*2+h,a-=u,l-=u;const w=new gu.SceneCanvas({pixelRatio:s,width:i,height:o}),_=new gu.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),x=new gu.HitCanvas({pixelRatio:p,width:i,height:o}),v=w.getContext(),S=x.getContext();return x.isCache=!0,w.isCache=!0,this._cache.delete(ca),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(w.getContext()._context.imageSmoothingEnabled=!1,_.getContext()._context.imageSmoothingEnabled=!1),v.save(),S.save(),v.translate(-a,-l),S.translate(-a,-l),this._isUnderCache=!0,this._clearSelfAndDescendantCache(sf),this._clearSelfAndDescendantCache(B3),this.drawScene(w,this),this.drawHit(x,this),this._isUnderCache=!1,v.restore(),S.restore(),d&&(v.save(),v.beginPath(),v.rect(0,0,i,o),v.closePath(),v.setAttr("strokeStyle","red"),v.setAttr("lineWidth",5),v.stroke(),v.restore()),this._cache.set(ca,{scene:w,filter:_,hit:x,x:a,y:l}),this._requestDraw(),this}isCached(){return this._cache.has(ca)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,n){const r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}];let i=1/0,o=1/0,s=-1/0,a=-1/0;const l=this.getAbsoluteTransform(n);return r.forEach(function(u){const d=l.point(u);i===void 0&&(i=s=d.x,o=a=d.y),i=Math.min(i,d.x),o=Math.min(o,d.y),s=Math.max(s,d.x),a=Math.max(a,d.y)}),{x:i,y:o,width:s-i,height:a-o}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();e.translate(n.x,n.y);const r=this._getCachedSceneCanvas(),i=r.pixelRatio;e.drawImage(r._canvas,0,0,r.width/i,r.height/i),e.restore()}_drawCachedHitCanvas(e){const n=this._getCanvasCache(),r=n.hit;e.save(),e.translate(n.x,n.y),e.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),e.restore()}_getCachedSceneCanvas(){let e=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,o=i.getContext(),s,a,l,u;if(e){if(!this._filterUpToDate){const d=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(s=e.length,o.clear(),o.drawImage(r._canvas,0,0,r.getWidth()/d,r.getHeight()/d),a=o.getImageData(0,0,i.getWidth(),i.getHeight()),l=0;l<s;l++){if(u=e[l],typeof u!="function"){dt.Util.error("Filter should be type of function, but got "+typeof u+" instead. Please check correct filters");continue}u.call(this,a),o.putImageData(a,0,0)}}catch(p){dt.Util.error("Unable to apply filter. "+p.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(e,n){if(this._cache&&this._cache.delete(Id),arguments.length===3)return this._delegate.apply(this,arguments);let r=e.split(af),i=r.length,o,s,a,l,u;for(o=0;o<i;o++)s=r[o],a=s.split("."),l=a[0],u=a[1]||"",this.eventListeners[l]||(this.eventListeners[l]=[]),this.eventListeners[l].push({name:u,handler:n});return this}off(e,n){let r=(e||"").split(af),i=r.length,o,s,a,l,u,d;if(this._cache&&this._cache.delete(Id),!e)for(s in this.eventListeners)this._off(s);for(o=0;o<i;o++)if(a=r[o],l=a.split("."),u=l[0],d=l[1],u)this.eventListeners[u]&&this._off(u,d,n);else for(s in this.eventListeners)this._off(s,d,n);return this}dispatchEvent(e){const n={target:this,type:e.type,evt:e};return this.fire(e.type,n),this}addEventListener(e,n){return this.on(e,function(r){n.call(this,r.evt)}),this}removeEventListener(e){return this.off(e),this}_delegate(e,n,r){const i=this;this.on(e,function(o){const s=o.target.findAncestors(n,!0,i);for(let a=0;a<s.length;a++)o=dt.Util.cloneObject(o),o.currentTarget=s[a],r.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),Zr.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(No),this._clearSelfAndDescendantCache(sf),this._clearSelfAndDescendantCache(B3),this._clearSelfAndDescendantCache(V3),this._clearSelfAndDescendantCache(f5),this._clearSelfAndDescendantCache(d5)}_remove(){this._clearCaches();const e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){const n="get"+dt.Util._capitalize(e);return dt.Util._isFunction(this[n])?this[n]():this.attrs[e]}getAncestors(){let e=this.getParent(),n=[];for(;e;)n.push(e),e=e.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges(()=>{let n,r;if(!e)return this;for(n in e)n!==bk&&(r=z3+dt.Util._capitalize(n),dt.Util._isFunction(this[r])?this[r](e[n]):this._setAttr(n,e[n]))}),this}isListening(){return this._getCache(d5,this._isListening)}_isListening(e){if(!this.listening())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isListening(e):!0}isVisible(){return this._getCache(f5,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const r=this.getParent();return r&&r!==e&&this!==e?r._isVisible(e):!0}shouldDrawHit(e,n=!1){if(e)return this._isVisible(e)&&this._isListening(e);const r=this.getLayer();let i=!1;Zr.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===r)&&(i=!0)});const o=!n&&!as.Konva.hitOnDragEnabled&&(i||as.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let e=this.getDepth(),n=this,r=0,i,o,s,a;function l(d){for(i=[],o=d.length,s=0;s<o;s++)a=d[s],r++,a.nodeType!==G3&&(i=i.concat(a.getChildren().slice())),a._id===n._id&&(s=o);i.length>0&&i[0].getDepth()<=e&&l(i)}const u=this.getStage();return n.nodeType!==Sk&&u&&l(u.getChildren()),r}getDepth(){let e=0,n=this.parent;for(;n;)e++,n=n.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(hs),this._clearSelfAndDescendantCache(No)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges(()=>{this.x(e.x),this.y(e.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;const n=e.getPointerPosition();if(!n)return null;const r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(e){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!e&&(e=!0);const i=this.getAbsoluteTransform(e).getMatrix(),o=new dt.Transform,s=this.offset();return o.m=i.slice(),o.translate(s.x,s.y),o.getTranslation()}setAbsolutePosition(e){const{x:n,y:r,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=r,this._clearCache(hs);const o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(e.x,e.y),e={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(i),this.setPosition({x:e.x,y:e.y}),this._clearCache(hs),this._clearSelfAndDescendantCache(No),this}_setTransform(e){let n;for(n in e)this.attrs[n]=e[n]}_clearTransform(){const e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){let n=e.x,r=e.y,i=this.x(),o=this.y();return n!==void 0&&(i+=n),r!==void 0&&(o+=r),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(e,n){let r=[],i=this.getParent(),o,s;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(o=r.length,s=0;s<o;s++)e(r[s])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return dt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return dt.Util.warn("Node has no parent. moveUp function is ignored."),!1;const e=this.index,n=this.parent.getChildren().length;return e<n-1?(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return dt.Util.warn("Node has no parent. moveDown function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const e=this.index;return e>0?(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(e){if(!this.parent)return dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&dt.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(sf,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let e=this.opacity();const n=this.getParent();return n&&!n._isUnderCache&&(e*=n.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){let e=this.getAttrs(),n,r,i,o,s;const a={attrs:{},className:this.getClassName()};for(n in e)r=e[n],s=dt.Util.isObject(r)&&!dt.Util._isPlainObject(r)&&!dt.Util._isArray(r),!s&&(i=typeof this[n]=="function"&&this[n],delete e[n],o=i?i.call(this):null,e[n]=r,o!==r&&(a.attrs[n]=r));return dt.Util._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,n,r){const i=[];n&&this._isMatch(e)&&i.push(this);let o=this.parent;for(;o;){if(o===r)return i;o._isMatch(e)&&i.push(o),o=o.parent}return i}isAncestorOf(e){return!1}findAncestor(e,n,r){return this.findAncestors(e,n,r)[0]}_isMatch(e){if(!e)return!1;if(typeof e=="function")return e(this);let n=e.replace(/ /g,"").split(","),r=n.length,i,o;for(i=0;i<r;i++)if(o=n[i],dt.Util.isValidSelector(o)||(dt.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),dt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),dt.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){const e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(V3,this._getStage)}_getStage(){const e=this.getParent();return e?e.getStage():null}fire(e,n={},r){return n.target=n.target||this,r?this._fireAndBubble(e,n):this._fire(e,n),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(No,this._getAbsoluteTransform)}_getAbsoluteTransform(e){let n;if(e)return n=new dt.Transform,this._eachAncestorReverse(function(r){const i=r.transformsEnabled();i==="all"?n.multiply(r.getTransform()):i==="position"&&n.translate(r.x()-r.offsetX(),r.y()-r.offsetY())},e),n;{n=this._cache.get(No)||new dt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();const r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,s=this.attrs.offsetX||0,a=this.attrs.offsetY||0;n.translate(i-s,o-a)}return n.dirty=!1,n}}getAbsoluteScale(e){let n=this;for(;n;)n._isUnderCache&&(e=n),n=n.getParent();const i=this.getAbsoluteTransform(e).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(hs,this._getTransform)}_getTransform(){var e,n;const r=this._cache.get(hs)||new dt.Transform;r.reset();const i=this.x(),o=this.y(),s=as.Konva.getAngle(this.rotation()),a=(e=this.attrs.scaleX)!==null&&e!==void 0?e:1,l=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,d=this.attrs.skewY||0,p=this.attrs.offsetX||0,g=this.attrs.offsetY||0;return(i!==0||o!==0)&&r.translate(i,o),s!==0&&r.rotate(s),(u!==0||d!==0)&&r.skew(u,d),(a!==1||l!==1)&&r.scale(a,l),(p!==0||g!==0)&&r.translate(-1*p,-1*g),r.dirty=!1,r}clone(e){let n=dt.Util.cloneObject(this.attrs),r,i,o,s,a;for(r in e)n[r]=e[r];const l=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],o=i.length,s=0;s<o;s++)a=i[s],a.name.indexOf(_k)<0&&(l.eventListeners[r]||(l.eventListeners[r]=[]),l.eventListeners[r].push(a));return l}_toKonvaCanvas(e){e=e||{};const n=this.getClientRect(),r=this.getStage(),i=e.x!==void 0?e.x:Math.floor(n.x),o=e.y!==void 0?e.y:Math.floor(n.y),s=e.pixelRatio||1,a=new gu.SceneCanvas({width:e.width||Math.ceil(n.width)||(r?r.width():0),height:e.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:s}),l=a.getContext(),u=new gu.SceneCanvas({width:a.width/a.pixelRatio+Math.abs(i),height:a.height/a.pixelRatio+Math.abs(o),pixelRatio:a.pixelRatio});return e.imageSmoothingEnabled===!1&&(l._context.imageSmoothingEnabled=!1),l.save(),(i||o)&&l.translate(-1*i,-1*o),this.drawScene(a,void 0,u),l.restore(),a}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){e=e||{};const n=e.mimeType||null,r=e.quality||null,i=this._toKonvaCanvas(e).toDataURL(n,r);return e.callback&&e.callback(i),i}toImage(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,dt.Util._urlToImage(this.toDataURL(e),function(o){n(o),i==null||i(o)})}catch(i){r(i)}})}toBlob(e){return new Promise((n,r)=>{try{const i=e==null?void 0:e.callback;i&&delete e.callback,this.toCanvas(e).toBlob(o=>{n(o),i==null||i(o)},e==null?void 0:e.mimeType,e==null?void 0:e.quality)}catch(i){r(i)}})}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():as.Konva.dragDistance}_off(e,n,r){let i=this.eventListeners[e],o,s,a;for(o=0;o<i.length;o++)if(s=i[o].name,a=i[o].handler,(s!=="konva"||n==="konva")&&(!n||s===n)&&(!r||r===a)){if(i.splice(o,1),i.length===0){delete this.eventListeners[e];break}o--}}_fireChangeEvent(e,n,r){this._fire(e+wk,{oldVal:n,newVal:r})}addName(e){if(!this.hasName(e)){const n=this.name(),r=n?n+" "+e:e;this.name(r)}return this}hasName(e){if(!e)return!1;const n=this.name();return n?(n||"").split(/\s/g).indexOf(e)!==-1:!1}removeName(e){const n=(this.name()||"").split(/\s/g),r=n.indexOf(e);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(e,n){const r=this[z3+dt.Util._capitalize(e)];return dt.Util._isFunction(r)?r.call(this,n):this._setAttr(e,n),this}_requestDraw(){if(as.Konva.autoDrawEnabled){const e=this.getLayer()||this.getStage();e==null||e.batchDraw()}}_setAttr(e,n){const r=this.attrs[e];r===n&&!dt.Util.isObject(n)||(n==null?delete this.attrs[e]:this.attrs[e]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(e,r,n),this._requestDraw())}_setComponentAttr(e,n,r){let i;r!==void 0&&(i=this.attrs[e],i||(this.attrs[e]=this.getAttr(e)),this.attrs[e][n]=r,this._fireChangeEvent(e,i,r))}_fireAndBubble(e,n,r){if(n&&this.nodeType===G3&&(n.target=this),!((e===D3||e===U3)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r))){this._fire(e,n);const o=(e===D3||e===U3)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,e,n,r):this._fireAndBubble.call(this.parent,e,n))}}_getProtoListeners(e){var n,r,i;const o=(n=this._cache.get(Id))!==null&&n!==void 0?n:{};let s=o==null?void 0:o[e];if(s===void 0){s=[];let a=Object.getPrototypeOf(this);for(;a;){const l=(i=(r=a.eventListeners)===null||r===void 0?void 0:r[e])!==null&&i!==void 0?i:[];s.push(...l),a=Object.getPrototypeOf(a)}o[e]=s,this._cache.set(Id,o)}return s}_fire(e,n){n=n||{},n.currentTarget=this,n.type=e;const r=this._getProtoListeners(e);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const o=this.eventListeners[e];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){const n=e?e.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition();if(!r)return;const o=r._getPointerById(n)||r._changedPointerPositions[0]||i;Zr.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-i.x,y:o.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(e,n=!0){Zr.DD._dragElements.has(this._id)||this._createDragElement(e);const r=Zr.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},n)}_setDragPosition(e,n){const r=this.getStage()._getPointerById(n.pointerId);if(!r)return;let i={x:r.x-n.offset.x,y:r.y-n.offset.y};const o=this.dragBoundFunc();if(o!==void 0){const s=o.call(this,i,e);s?i=s:dt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}stopDrag(e){const n=Zr.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Zr.DD._endDragBefore(e),Zr.DD._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=Zr.DD._dragElements.get(this._id);return e?e.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(e){if(!(!(e.evt.button!==void 0)||as.Konva.dragButtons.indexOf(e.evt.button)>=0)||this.isDragging())return;let i=!1;Zr.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(i=!0)}),i||this._createDragElement(e)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const n=Zr.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Zr.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(e={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-e.x,y:-e.y,width:n.width()+2*e.x,height:n.height()+2*e.y};return dt.Util.haveIntersection(r,this.getClientRect())}static create(e,n){return dt.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)}static _createNode(e,n){let r=Je.prototype.getClassName.call(e),i=e.children,o,s,a;n&&(e.attrs.container=n),as.Konva[r]||(dt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const l=as.Konva[r];if(o=new l(e.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(Je._createNode(i[a]));return o}}Ht.Node=Je;Je.prototype.nodeType="Node";Je.prototype._attrsAffectingSize=[];Je.prototype.eventListeners={};Je.prototype.on.call(Je.prototype,xk,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(hs),this._clearSelfAndDescendantCache(No)});Je.prototype.on.call(Je.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(f5)});Je.prototype.on.call(Je.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(d5)});Je.prototype.on.call(Je.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(sf)});const Ot=yh.Factory.addGetterSetter;Ot(Je,"zIndex");Ot(Je,"absolutePosition");Ot(Je,"position");Ot(Je,"x",0,(0,wn.getNumberValidator)());Ot(Je,"y",0,(0,wn.getNumberValidator)());Ot(Je,"globalCompositeOperation","source-over",(0,wn.getStringValidator)());Ot(Je,"opacity",1,(0,wn.getNumberValidator)());Ot(Je,"name","",(0,wn.getStringValidator)());Ot(Je,"id","",(0,wn.getStringValidator)());Ot(Je,"rotation",0,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"scale",["x","y"]);Ot(Je,"scaleX",1,(0,wn.getNumberValidator)());Ot(Je,"scaleY",1,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"skew",["x","y"]);Ot(Je,"skewX",0,(0,wn.getNumberValidator)());Ot(Je,"skewY",0,(0,wn.getNumberValidator)());yh.Factory.addComponentsGetterSetter(Je,"offset",["x","y"]);Ot(Je,"offsetX",0,(0,wn.getNumberValidator)());Ot(Je,"offsetY",0,(0,wn.getNumberValidator)());Ot(Je,"dragDistance",null,(0,wn.getNumberValidator)());Ot(Je,"width",0,(0,wn.getNumberValidator)());Ot(Je,"height",0,(0,wn.getNumberValidator)());Ot(Je,"listening",!0,(0,wn.getBooleanValidator)());Ot(Je,"preventDefault",!0,(0,wn.getBooleanValidator)());Ot(Je,"filters",null,function(t){return this._filterUpToDate=!1,t});Ot(Je,"visible",!0,(0,wn.getBooleanValidator)());Ot(Je,"transformsEnabled","all",(0,wn.getStringValidator)());Ot(Je,"size");Ot(Je,"dragBoundFunc");Ot(Je,"draggable",!1,(0,wn.getBooleanValidator)());yh.Factory.backCompat(Je,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.Container=void 0;const bc=at,Dp=Ht,N1=Xe;class Oa extends Dp.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const n=this.children||[],r=[];return n.forEach(function(i){e(i)&&r.push(i)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let r=0;r<e.length;r++)this.add(e[r]);return this}const n=e[0];return n.getParent()?(n.moveTo(this),this):(this._validateAdd(n),n.index=this.getChildren().length,n.parent=this,n._clearCaches(),this.getChildren().push(n),this._fire("add",{child:n}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){const n=this._generalFind(e,!0);return n.length>0?n[0]:void 0}_generalFind(e,n){const r=[];return this._descendants(i=>{const o=i._isMatch(e);return o&&r.push(i),!!(o&&n)}),r}_descendants(e){let n=!1;const r=this.getChildren();for(const i of r){if(n=e(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(e),n))return!0}return!1}toObject(){const e=Dp.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(n=>{e.children.push(n.toObject())}),e}isAncestorOf(e){let n=e.getParent();for(;n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(e){const n=Dp.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(e){const n=[];return this.find("Shape").forEach(r=>{r.isVisible()&&r.intersects(e)&&n.push(r)}),n}_clearSelfAndDescendantCache(e){var n;super._clearSelfAndDescendantCache(e),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(e,n,r){const i=this.getLayer(),o=e||i&&i.getCanvas(),s=o&&o.getContext(),a=this._getCanvasCache(),l=a&&a.scene,u=o&&o.isCache;if(!this.isVisible()&&!u)return this;if(l){s.save();const d=this.getAbsoluteTransform(n).getMatrix();s.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(s),s.restore()}else this._drawChildren("drawScene",o,n,r);return this}drawHit(e,n){if(!this.shouldDrawHit(n))return this;const r=this.getLayer(),i=e||r&&r.hitCanvas,o=i&&i.getContext(),s=this._getCanvasCache();if(s&&s.hit){o.save();const l=this.getAbsoluteTransform(n).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(e,n,r,i){var o;const s=n&&n.getContext(),a=this.clipWidth(),l=this.clipHeight(),u=this.clipFunc(),d=typeof a=="number"&&typeof l=="number"||u,p=r===this;if(d){s.save();const h=this.getAbsoluteTransform(r);let w=h.getMatrix();s.transform(w[0],w[1],w[2],w[3],w[4],w[5]),s.beginPath();let _;if(u)_=u.call(this,s,this);else{const x=this.clipX(),v=this.clipY();s.rect(x||0,v||0,a,l)}s.clip.apply(s,_),w=h.copy().invert().getMatrix(),s.transform(w[0],w[1],w[2],w[3],w[4],w[5])}const g=!p&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";g&&(s.save(),s._applyGlobalCompositeOperation(this)),(o=this.children)===null||o===void 0||o.forEach(function(h){h[e](n,r,i)}),g&&s.restore(),d&&s.restore()}getClientRect(e={}){var n;const r=e.skipTransform,i=e.relativeTo;let o,s,a,l,u={x:1/0,y:1/0,width:0,height:0};const d=this;(n=this.children)===null||n===void 0||n.forEach(function(h){if(!h.visible())return;const w=h.getClientRect({relativeTo:d,skipShadow:e.skipShadow,skipStroke:e.skipStroke});w.width===0&&w.height===0||(o===void 0?(o=w.x,s=w.y,a=w.x+w.width,l=w.y+w.height):(o=Math.min(o,w.x),s=Math.min(s,w.y),a=Math.max(a,w.x+w.width),l=Math.max(l,w.y+w.height)))});const p=this.find("Shape");let g=!1;for(let h=0;h<p.length;h++)if(p[h]._isVisible(this)){g=!0;break}return g&&o!==void 0?u={x:o,y:s,width:a-o,height:l-s}:u={x:0,y:0,width:0,height:0},r?u:this._transformedRect(u,i)}}Ia.Container=Oa;bc.Factory.addComponentsGetterSetter(Oa,"clip",["x","y","width","height"]);bc.Factory.addGetterSetter(Oa,"clipX",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Oa,"clipY",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Oa,"clipWidth",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Oa,"clipHeight",void 0,(0,N1.getNumberValidator)());bc.Factory.addGetterSetter(Oa,"clipFunc");var K8={},qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.getCapturedShape=Ck;qs.createEvent=jg;qs.hasPointerCapture=Pk;qs.setPointerCapture=Lk;qs.releaseCapture=$8;const Nk=$e,ah=new Map,X8=Nk.Konva._global.PointerEvent!==void 0;function Ck(t){return ah.get(t)}function jg(t){return{evt:t,pointerId:t.pointerId}}function Pk(t,e){return ah.get(t)===e}function Lk(t,e){$8(t),e.getStage()&&(ah.set(t,e),X8&&e._fire("gotpointercapture",jg(new PointerEvent("gotpointercapture"))))}function $8(t,e){const n=ah.get(t);if(!n)return;const r=n.getStage();r&&r.content,ah.delete(t),X8&&n._fire("lostpointercapture",jg(new PointerEvent("lostpointercapture")))}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const e=Zt,n=at,r=Ia,i=$e,o=ji,s=A1,a=$e,l=qs,u="Stage",d="string",p="px",g="mouseout",h="mouseleave",w="mouseover",_="mouseenter",x="mousemove",v="mousedown",S="mouseup",y="pointermove",A="pointerdown",L="pointerup",R="pointercancel",D="lostpointercapture",k="pointerout",z="pointerleave",T="pointerover",P="pointerenter",E="contextmenu",W="touchstart",B="touchend",Q="touchmove",ee="touchcancel",se="wheel",K=5,te=[[_,"_pointerenter"],[v,"_pointerdown"],[x,"_pointermove"],[S,"_pointerup"],[h,"_pointerleave"],[W,"_pointerdown"],[Q,"_pointermove"],[B,"_pointerup"],[ee,"_pointercancel"],[w,"_pointerover"],[se,"_wheel"],[E,"_contextmenu"],[A,"_pointerdown"],[y,"_pointermove"],[L,"_pointerup"],[R,"_pointercancel"],[D,"_lostpointercapture"]],X={mouse:{[k]:g,[z]:h,[T]:w,[P]:_,[y]:x,[A]:v,[L]:S,[R]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[k]:"touchout",[z]:"touchleave",[T]:"touchover",[P]:"touchenter",[y]:Q,[A]:W,[L]:B,[R]:ee,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[k]:k,[z]:z,[T]:T,[P]:P,[y]:y,[A]:A,[L]:L,[R]:R,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},de=ie=>ie.indexOf("pointer")>=0?"pointer":ie.indexOf("touch")>=0?"touch":"mouse",M=ie=>{const V=de(ie);if(V==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(V==="touch")return X.touch;if(V==="mouse")return X.mouse};function G(ie={}){return(ie.clipFunc||ie.clipWidth||ie.clipHeight)&&e.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ie}const H="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";t.stages=[];class ne extends r.Container{constructor(V){super(G(V)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{G(this.attrs)}),this._checkVisibility()}_validateAdd(V){const Z=V.getType()==="Layer",ce=V.getType()==="FastLayer";Z||ce||e.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const V=this.visible()?"":"none";this.content.style.display=V}setContainer(V){if(typeof V===d){if(V.charAt(0)==="."){const ce=V.slice(1);V=document.getElementsByClassName(ce)[0]}else{var Z;V.charAt(0)!=="#"?Z=V:Z=V.slice(1),V=document.getElementById(Z)}if(!V)throw"Can not find container in document with id "+Z}return this._setAttr("container",V),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),V.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){let V=this.children,Z=V.length,ce;for(ce=0;ce<Z;ce++)V[ce].clear();return this}clone(V){return V||(V={}),V.container=typeof document<"u"&&document.createElement("div"),r.Container.prototype.clone.call(this,V)}destroy(){super.destroy();const V=this.content;V&&e.Util._isInDocument(V)&&this.container().removeChild(V);const Z=t.stages.indexOf(this);return Z>-1&&t.stages.splice(Z,1),e.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const V=this._pointerPositions[0]||this._changedPointerPositions[0];return V?{x:V.x,y:V.y}:(e.Util.warn(H),null)}_getPointerById(V){return this._pointerPositions.find(Z=>Z.id===V)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(V){V=V||{},V.x=V.x||0,V.y=V.y||0,V.width=V.width||this.width(),V.height=V.height||this.height();const Z=new o.SceneCanvas({width:V.width,height:V.height,pixelRatio:V.pixelRatio||1}),ce=Z.getContext()._context,xe=this.children;return(V.x||V.y)&&ce.translate(-1*V.x,-1*V.y),xe.forEach(function(we){if(!we.isVisible())return;const Ce=we._toKonvaCanvas(V);ce.drawImage(Ce._canvas,V.x,V.y,Ce.getWidth()/Ce.getPixelRatio(),Ce.getHeight()/Ce.getPixelRatio())}),Z}getIntersection(V){if(!V)return null;let Z=this.children,ce=Z.length,xe=ce-1,we;for(we=xe;we>=0;we--){const Ce=Z[we].getIntersection(V);if(Ce)return Ce}return null}_resizeDOM(){const V=this.width(),Z=this.height();this.content&&(this.content.style.width=V+p,this.content.style.height=Z+p),this.bufferCanvas.setSize(V,Z),this.bufferHitCanvas.setSize(V,Z),this.children.forEach(ce=>{ce.setSize({width:V,height:Z}),ce.draw()})}add(V,...Z){if(arguments.length>1){for(let xe=0;xe<arguments.length;xe++)this.add(arguments[xe]);return this}super.add(V);const ce=this.children.length;return ce>K&&e.Util.warn("The stage has "+ce+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),V.setSize({width:this.width(),height:this.height()}),V.draw(),i.Konva.isBrowser&&this.content.appendChild(V.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(V){return l.hasPointerCapture(V,this)}setPointerCapture(V){l.setPointerCapture(V,this)}releaseCapture(V){l.releaseCapture(V,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&te.forEach(([V,Z])=>{this.content.addEventListener(V,ce=>{this[Z](ce)},{passive:!1})})}_pointerenter(V){this.setPointersPositions(V);const Z=M(V.type);Z&&this._fire(Z.pointerenter,{evt:V,target:this,currentTarget:this})}_pointerover(V){this.setPointersPositions(V);const Z=M(V.type);Z&&this._fire(Z.pointerover,{evt:V,target:this,currentTarget:this})}_getTargetShape(V){let Z=this[V+"targetShape"];return Z&&!Z.getStage()&&(Z=null),Z}_pointerleave(V){const Z=M(V.type),ce=de(V.type);if(!Z)return;this.setPointersPositions(V);const xe=this._getTargetShape(ce),we=!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled;xe&&we?(xe._fireAndBubble(Z.pointerout,{evt:V}),xe._fireAndBubble(Z.pointerleave,{evt:V}),this._fire(Z.pointerleave,{evt:V,target:this,currentTarget:this}),this[ce+"targetShape"]=null):we&&(this._fire(Z.pointerleave,{evt:V,target:this,currentTarget:this}),this._fire(Z.pointerout,{evt:V,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(V){const Z=M(V.type),ce=de(V.type);if(!Z)return;this.setPointersPositions(V);let xe=!1;this._changedPointerPositions.forEach(we=>{const Ce=this.getIntersection(we);if(s.DD.justDragged=!1,i.Konva["_"+ce+"ListenClick"]=!0,!Ce||!Ce.isListening()){this[ce+"ClickStartShape"]=void 0;return}i.Konva.capturePointerEventsEnabled&&Ce.setPointerCapture(we.id),this[ce+"ClickStartShape"]=Ce,Ce._fireAndBubble(Z.pointerdown,{evt:V,pointerId:we.id}),xe=!0;const ke=V.type.indexOf("touch")>=0;Ce.preventDefault()&&V.cancelable&&ke&&V.preventDefault()}),xe||this._fire(Z.pointerdown,{evt:V,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(V){const Z=M(V.type),ce=de(V.type);if(!Z||(i.Konva.isDragging()&&s.DD.node.preventDefault()&&V.cancelable&&V.preventDefault(),this.setPointersPositions(V),!(!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled)))return;const we={};let Ce=!1;const ke=this._getTargetShape(ce);this._changedPointerPositions.forEach(ze=>{const me=l.getCapturedShape(ze.id)||this.getIntersection(ze),J=ze.id,qe={evt:V,pointerId:J},Be=ke!==me;if(Be&&ke&&(ke._fireAndBubble(Z.pointerout,{...qe},me),ke._fireAndBubble(Z.pointerleave,{...qe},me)),me){if(we[me._id])return;we[me._id]=!0}me&&me.isListening()?(Ce=!0,Be&&(me._fireAndBubble(Z.pointerover,{...qe},ke),me._fireAndBubble(Z.pointerenter,{...qe},ke),this[ce+"targetShape"]=me),me._fireAndBubble(Z.pointermove,{...qe})):ke&&(this._fire(Z.pointerover,{evt:V,target:this,currentTarget:this,pointerId:J}),this[ce+"targetShape"]=null)}),Ce||this._fire(Z.pointermove,{evt:V,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(V){const Z=M(V.type),ce=de(V.type);if(!Z)return;this.setPointersPositions(V);const xe=this[ce+"ClickStartShape"],we=this[ce+"ClickEndShape"],Ce={};let ke=!1;this._changedPointerPositions.forEach(ze=>{const me=l.getCapturedShape(ze.id)||this.getIntersection(ze);if(me){if(me.releaseCapture(ze.id),Ce[me._id])return;Ce[me._id]=!0}const J=ze.id,qe={evt:V,pointerId:J};let Be=!1;i.Konva["_"+ce+"InDblClickWindow"]?(Be=!0,clearTimeout(this[ce+"DblTimeout"])):s.DD.justDragged||(i.Konva["_"+ce+"InDblClickWindow"]=!0,clearTimeout(this[ce+"DblTimeout"])),this[ce+"DblTimeout"]=setTimeout(function(){i.Konva["_"+ce+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),me&&me.isListening()?(ke=!0,this[ce+"ClickEndShape"]=me,me._fireAndBubble(Z.pointerup,{...qe}),i.Konva["_"+ce+"ListenClick"]&&xe&&xe===me&&(me._fireAndBubble(Z.pointerclick,{...qe}),Be&&we&&we===me&&me._fireAndBubble(Z.pointerdblclick,{...qe}))):(this[ce+"ClickEndShape"]=null,i.Konva["_"+ce+"ListenClick"]&&this._fire(Z.pointerclick,{evt:V,target:this,currentTarget:this,pointerId:J}),Be&&this._fire(Z.pointerdblclick,{evt:V,target:this,currentTarget:this,pointerId:J}))}),ke||this._fire(Z.pointerup,{evt:V,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+ce+"ListenClick"]=!1,V.cancelable&&ce!=="touch"&&V.preventDefault()}_contextmenu(V){this.setPointersPositions(V);const Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(E,{evt:V}):this._fire(E,{evt:V,target:this,currentTarget:this})}_wheel(V){this.setPointersPositions(V);const Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(se,{evt:V}):this._fire(se,{evt:V,target:this,currentTarget:this})}_pointercancel(V){this.setPointersPositions(V);const Z=l.getCapturedShape(V.pointerId)||this.getIntersection(this.getPointerPosition());Z&&Z._fireAndBubble(L,l.createEvent(V)),l.releaseCapture(V.pointerId)}_lostpointercapture(V){l.releaseCapture(V.pointerId)}setPointersPositions(V){let Z=this._getContentPosition(),ce=null,xe=null;V=V||window.event,V.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(V.touches,we=>{this._pointerPositions.push({id:we.identifier,x:(we.clientX-Z.left)/Z.scaleX,y:(we.clientY-Z.top)/Z.scaleY})}),Array.prototype.forEach.call(V.changedTouches||V.touches,we=>{this._changedPointerPositions.push({id:we.identifier,x:(we.clientX-Z.left)/Z.scaleX,y:(we.clientY-Z.top)/Z.scaleY})})):(ce=(V.clientX-Z.left)/Z.scaleX,xe=(V.clientY-Z.top)/Z.scaleY,this.pointerPos={x:ce,y:xe},this._pointerPositions=[{x:ce,y:xe,id:e.Util._getFirstPointerId(V)}],this._changedPointerPositions=[{x:ce,y:xe,id:e.Util._getFirstPointerId(V)}])}_setPointerPosition(V){e.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(V)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const V=this.content.getBoundingClientRect();return{top:V.top,left:V.left,scaleX:V.width/this.content.clientWidth||1,scaleY:V.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!i.Konva.isBrowser)return;const V=this.container();if(!V)throw"Stage has no container. A container is required.";V.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),V.appendChild(this.content),this._resizeDOM()}cache(){return e.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(V){V.batchDraw()}),this}}t.Stage=ne,ne.prototype.nodeType=u,(0,a._registerNode)(ne),n.Factory.addGetterSetter(ne,"container"),i.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{t.stages.forEach(ie=>{ie.batchDraw()})})})(K8);var wh={},Mn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const e=$e,n=Zt,r=at,i=Ht,o=Xe,s=$e,a=qs,l="hasShadow",u="shadowRGBA",d="patternImage",p="linearGradient",g="radialGradient";let h;function w(){return h||(h=n.Util.createCanvasElement().getContext("2d"),h)}t.shapes={};function _(z){const T=this.attrs.fillRule;T?z.fill(T):z.fill()}function x(z){z.stroke()}function v(z){const T=this.attrs.fillRule;T?z.fill(T):z.fill()}function S(z){z.stroke()}function y(){this._clearCache(l)}function A(){this._clearCache(u)}function L(){this._clearCache(d)}function R(){this._clearCache(p)}function D(){this._clearCache(g)}class k extends i.Node{constructor(T){super(T);let P;for(;P=n.Util.getRandomColor(),!(P&&!(P in t.shapes)););this.colorKey=P,t.shapes[P]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(l,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(d,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const P=w().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(P&&P.setTransform){const E=new n.Transform;E.translate(this.fillPatternX(),this.fillPatternY()),E.rotate(e.Konva.getAngle(this.fillPatternRotation())),E.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),E.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const W=E.getMatrix(),B=typeof DOMMatrix>"u"?{a:W[0],b:W[1],c:W[2],d:W[3],e:W[4],f:W[5]}:new DOMMatrix(W);P.setTransform(B)}return P}}_getLinearGradient(){return this._getCache(p,this.__getLinearGradient)}__getLinearGradient(){const T=this.fillLinearGradientColorStops();if(T){const P=w(),E=this.fillLinearGradientStartPoint(),W=this.fillLinearGradientEndPoint(),B=P.createLinearGradient(E.x,E.y,W.x,W.y);for(let Q=0;Q<T.length;Q+=2)B.addColorStop(T[Q],T[Q+1]);return B}}_getRadialGradient(){return this._getCache(g,this.__getRadialGradient)}__getRadialGradient(){const T=this.fillRadialGradientColorStops();if(T){const P=w(),E=this.fillRadialGradientStartPoint(),W=this.fillRadialGradientEndPoint(),B=P.createRadialGradient(E.x,E.y,this.fillRadialGradientStartRadius(),W.x,W.y,this.fillRadialGradientEndRadius());for(let Q=0;Q<T.length;Q+=2)B.addColorStop(T[Q],T[Q+1]);return B}}getShadowRGBA(){return this._getCache(u,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const T=n.Util.colorToRGBA(this.shadowColor());if(T)return"rgba("+T.r+","+T.g+","+T.b+","+T.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const T=this.hitStrokeWidth();return T==="auto"?this.hasStroke():this.strokeEnabled()&&!!T}intersects(T){const P=this.getStage();if(!P)return!1;const E=P.bufferHitCanvas;return E.getContext().clear(),this.drawHit(E,void 0,!0),E.context.getImageData(Math.round(T.x),Math.round(T.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(T){var P;if(!((P=this.attrs.perfectDrawEnabled)!==null&&P!==void 0?P:!0))return!1;const W=T||this.hasFill(),B=this.hasStroke(),Q=this.getAbsoluteOpacity()!==1;if(W&&B&&Q)return!0;const ee=this.hasShadow(),se=this.shadowForStrokeEnabled();return!!(W&&B&&ee&&se)}setStrokeHitEnabled(T){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),T?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const T=this.size();return{x:this._centroid?-T.width/2:0,y:this._centroid?-T.height/2:0,width:T.width,height:T.height}}getClientRect(T={}){let P=!1,E=this.getParent();for(;E;){if(E.isCached()){P=!0;break}E=E.getParent()}const W=T.skipTransform,B=T.relativeTo||P&&this.getStage()||void 0,Q=this.getSelfRect(),se=!T.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,K=Q.width+se,te=Q.height+se,X=!T.skipShadow&&this.hasShadow(),de=X?this.shadowOffsetX():0,M=X?this.shadowOffsetY():0,G=K+Math.abs(de),H=te+Math.abs(M),ne=X&&this.shadowBlur()||0,ie=G+ne*2,V=H+ne*2,Z={width:ie,height:V,x:-(se/2+ne)+Math.min(de,0)+Q.x,y:-(se/2+ne)+Math.min(M,0)+Q.y};return W?Z:this._transformedRect(Z,B)}drawScene(T,P,E){const W=this.getLayer();let B=T||W.getCanvas(),Q=B.getContext(),ee=this._getCanvasCache(),se=this.getSceneFunc(),K=this.hasShadow(),te,X;const de=B.isCache,M=P===this;if(!this.isVisible()&&!M)return this;if(ee){Q.save();const H=this.getAbsoluteTransform(P).getMatrix();return Q.transform(H[0],H[1],H[2],H[3],H[4],H[5]),this._drawCachedSceneCanvas(Q),Q.restore(),this}if(!se)return this;if(Q.save(),this._useBufferCanvas()&&!de){te=this.getStage();const H=E||te.bufferCanvas;X=H.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var G=this.getAbsoluteTransform(P).getMatrix();X.transform(G[0],G[1],G[2],G[3],G[4],G[5]),se.call(this,X,this),X.restore();const ne=H.pixelRatio;K&&Q._applyShadow(this),Q._applyOpacity(this),Q._applyGlobalCompositeOperation(this),Q.drawImage(H._canvas,0,0,H.width/ne,H.height/ne)}else{if(Q._applyLineJoin(this),!M){var G=this.getAbsoluteTransform(P).getMatrix();Q.transform(G[0],G[1],G[2],G[3],G[4],G[5]),Q._applyOpacity(this),Q._applyGlobalCompositeOperation(this)}K&&Q._applyShadow(this),se.call(this,Q,this)}return Q.restore(),this}drawHit(T,P,E=!1){if(!this.shouldDrawHit(P,E))return this;const W=this.getLayer(),B=T||W.hitCanvas,Q=B&&B.getContext(),ee=this.hitFunc()||this.sceneFunc(),se=this._getCanvasCache(),K=se&&se.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),K){Q.save();const X=this.getAbsoluteTransform(P).getMatrix();return Q.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(Q),Q.restore(),this}if(!ee)return this;if(Q.save(),Q._applyLineJoin(this),!(this===P)){const X=this.getAbsoluteTransform(P).getMatrix();Q.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return ee.call(this,Q,this),Q.restore(),this}drawHitFromCache(T=0){let P=this._getCanvasCache(),E=this._getCachedSceneCanvas(),W=P.hit,B=W.getContext(),Q=W.getWidth(),ee=W.getHeight(),se,K,te,X,de,M;B.clear(),B.drawImage(E._canvas,0,0,Q,ee);try{for(se=B.getImageData(0,0,Q,ee),K=se.data,te=K.length,X=n.Util._hexToRgb(this.colorKey),de=0;de<te;de+=4)M=K[de+3],M>T?(K[de]=X.r,K[de+1]=X.g,K[de+2]=X.b,K[de+3]=255):K[de+3]=0;B.putImageData(se,0,0)}catch(G){n.Util.error("Unable to draw hit graph from cached scene canvas. "+G.message)}return this}hasPointerCapture(T){return a.hasPointerCapture(T,this)}setPointerCapture(T){a.setPointerCapture(T,this)}releaseCapture(T){a.releaseCapture(T,this)}}t.Shape=k,k.prototype._fillFunc=_,k.prototype._strokeFunc=x,k.prototype._fillFuncHit=v,k.prototype._strokeFuncHit=S,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,s._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",y),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",A),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",L),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",R),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",D),r.Factory.addGetterSetter(k,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(k,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(k,"lineJoin"),r.Factory.addGetterSetter(k,"lineCap"),r.Factory.addGetterSetter(k,"sceneFunc"),r.Factory.addGetterSetter(k,"hitFunc"),r.Factory.addGetterSetter(k,"dash"),r.Factory.addGetterSetter(k,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(k,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternImage"),r.Factory.addGetterSetter(k,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(k,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(k,"fillEnabled",!0),r.Factory.addGetterSetter(k,"strokeEnabled",!0),r.Factory.addGetterSetter(k,"shadowEnabled",!0),r.Factory.addGetterSetter(k,"dashEnabled",!0),r.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(k,"fillPriority","color"),r.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(k,"fillPatternRotation",0),r.Factory.addGetterSetter(k,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Mn);Object.defineProperty(wh,"__esModule",{value:!0});wh.Layer=void 0;const xo=Zt,Up=Ia,xl=Ht,Fg=at,q3=ji,kk=Xe,Ek=Mn,Tk=$e,Mk="#",jk="beforeDraw",Fk="draw",Q8=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Ik=Q8.length;class _c extends Up.Container{constructor(e){super(e),this.canvas=new q3.SceneCanvas,this.hitCanvas=new q3.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),e<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[e+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){xl.Node.prototype.moveToTop.call(this);const e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!xl.Node.prototype.moveUp.call(this))return!1;const n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(xl.Node.prototype.moveDown.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(xl.Node.prototype.moveToBottom.call(this)){const e=this.getStage();if(e){const n=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const e=this.getNativeCanvasElement();return xl.Node.prototype.remove.call(this),e&&e.parentNode&&xo.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize({width:e,height:n}){return this.canvas.setSize(e,n),this.hitCanvas.setSize(e,n),this._setSmoothEnabled(),this}_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&xo.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return e=e||{},e.width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=e.x!==void 0?e.x:this.x(),e.y=e.y!==void 0?e.y:this.y(),xl.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){xo.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){xo.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,xo.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let n=1,r=!1;for(;;){for(let i=0;i<Ik;i++){const o=Q8[i],s=this._getIntersection({x:e.x+o.x*n,y:e.y+o.y*n}),a=s.shape;if(a)return a;if(r=!!s.antialiased,!s.antialiased)break}if(r)n+=1;else return null}}_getIntersection(e){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(e.x*n),Math.round(e.y*n),1,1).data,i=r[3];if(i===255){const o=xo.Util._rgbToHex(r[0],r[1],r[2]),s=Ek.shapes[Mk+o];return s?{shape:s}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(e,n){const r=this.getLayer(),i=e||r&&r.getCanvas();return this._fire(jk,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),Up.Container.prototype.drawScene.call(this,i,n),this._fire(Fk,{node:this}),this}drawHit(e,n){const r=this.getLayer(),i=e||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),Up.Container.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){xo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return xo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return xo.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}wh.Layer=_c;_c.prototype.nodeType="Layer";(0,Tk._registerNode)(_c);Fg.Factory.addGetterSetter(_c,"imageSmoothingEnabled",!0);Fg.Factory.addGetterSetter(_c,"clearBeforeDraw",!0);Fg.Factory.addGetterSetter(_c,"hitGraphEnabled",!0,(0,kk.getBooleanValidator)());var C1={};Object.defineProperty(C1,"__esModule",{value:!0});C1.FastLayer=void 0;const Ok=Zt,Rk=wh,Bk=$e;class Ig extends Rk.Layer{constructor(e){super(e),this.listening(!1),Ok.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}C1.FastLayer=Ig;Ig.prototype.nodeType="FastLayer";(0,Bk._registerNode)(Ig);var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.Group=void 0;const Dk=Zt,Uk=Ia,zk=$e;class Og extends Uk.Container{_validateAdd(e){const n=e.getType();n!=="Group"&&n!=="Shape"&&Dk.Util.throw("You may only add groups and shapes to groups.")}}Sc.Group=Og;Og.prototype.nodeType="Group";(0,zk._registerNode)(Og);var xc={};Object.defineProperty(xc,"__esModule",{value:!0});xc.Animation=void 0;const zp=$e,W3=Zt,Gp=function(){return zp.glob.performance&&zp.glob.performance.now?function(){return zp.glob.performance.now()}:function(){return new Date().getTime()}}();class eo{constructor(e,n){this.id=eo.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Gp(),frameRate:0},this.func=e,this.setLayers(n)}setLayers(e){let n=[];return e&&(n=Array.isArray(e)?e:[e]),this.layers=n,this}getLayers(){return this.layers}addLayer(e){const n=this.layers,r=n.length;for(let i=0;i<r;i++)if(n[i]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const n=eo.animations,r=n.length;for(let i=0;i<r;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Gp(),eo._addAnimation(this),this}stop(){return eo._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const n=e.id,r=this.animations,i=r.length;for(let o=0;o<i;o++)if(r[o].id===n){this.animations.splice(o,1);break}}static _runFrames(){const e={},n=this.animations;for(let r=0;r<n.length;r++){const i=n[r],o=i.layers,s=i.func;i._updateFrameObject(Gp());const a=o.length;let l;if(s?l=s.call(i,i.frame)!==!1:l=!0,!!l)for(let u=0;u<a;u++){const d=o[u];d._id!==void 0&&(e[d._id]=d)}}for(const r in e)e.hasOwnProperty(r)&&e[r].batchDraw()}static _animationLoop(){const e=eo;e.animations.length?(e._runFrames(),W3.Util.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,W3.Util.requestAnimFrame(this._animationLoop))}}xc.Animation=eo;eo.animations=[];eo.animIdCounter=0;eo.animRunning=!1;var J8={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const e=Zt,n=xc,r=Ht,i=$e;let o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},s=1,a=2,l=3,u=0,d=["fill","stroke","shadowColor"];class p{constructor(w,_,x,v,S,y,A){this.prop=w,this.propFunc=_,this.begin=v,this._pos=v,this.duration=y,this._change=0,this.prevPos=0,this.yoyo=A,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=x,this._change=S-this.begin,this.pause()}fire(w){const _=this[w];_&&_()}setTime(w){w>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():w<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=w,this.update())}getTime(){return this._time}setPosition(w){this.prevPos=this._pos,this.propFunc(w),this._pos=w}getPosition(w){return w===void 0&&(w=this._time),this.func(w,this.begin,this._change,this.duration)}play(){this.state=a,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=l,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(w){this.pause(),this._time=w,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const w=this.getTimer()-this._startTime;this.state===a?this.setTime(w):this.state===l&&this.setTime(this.duration-w)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class g{constructor(w){let _=this,x=w.node,v=x._id,S,y=w.easing||t.Easings.Linear,A=!!w.yoyo,L;typeof w.duration>"u"?S=.3:w.duration===0?S=.001:S=w.duration,this.node=x,this._id=u++;const R=x.getLayer()||(x instanceof i.Konva.Stage?x.getLayers():null);R||e.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){_.tween.onEnterFrame()},R),this.tween=new p(L,function(D){_._tweenFunc(D)},y,0,1,S*1e3,A),this._addListeners(),g.attrs[v]||(g.attrs[v]={}),g.attrs[v][this._id]||(g.attrs[v][this._id]={}),g.tweens[v]||(g.tweens[v]={});for(L in w)o[L]===void 0&&this._addAttr(L,w[L]);this.reset(),this.onFinish=w.onFinish,this.onReset=w.onReset,this.onUpdate=w.onUpdate}_addAttr(w,_){let x=this.node,v=x._id,S,y,A,L,R,D,k,z;if(A=g.tweens[v][w],A&&delete g.attrs[v][A][w],S=x.getAttr(w),e.Util._isArray(_))if(y=[],R=Math.max(_.length,S.length),w==="points"&&_.length!==S.length&&(_.length>S.length?(k=S,S=e.Util._prepareArrayForTween(S,_,x.closed())):(D=_,_=e.Util._prepareArrayForTween(_,S,x.closed()))),w.indexOf("fill")===0)for(L=0;L<R;L++)if(L%2===0)y.push(_[L]-S[L]);else{const T=e.Util.colorToRGBA(S[L]);z=e.Util.colorToRGBA(_[L]),S[L]=T,y.push({r:z.r-T.r,g:z.g-T.g,b:z.b-T.b,a:z.a-T.a})}else for(L=0;L<R;L++)y.push(_[L]-S[L]);else d.indexOf(w)!==-1?(S=e.Util.colorToRGBA(S),z=e.Util.colorToRGBA(_),y={r:z.r-S.r,g:z.g-S.g,b:z.b-S.b,a:z.a-S.a}):y=_-S;g.attrs[v][this._id][w]={start:S,diff:y,end:_,trueEnd:D,trueStart:k},g.tweens[v][w]=this._id}_tweenFunc(w){let _=this.node,x=g.attrs[_._id][this._id],v,S,y,A,L,R,D,k;for(v in x){if(S=x[v],y=S.start,A=S.diff,k=S.end,e.Util._isArray(y))if(L=[],D=Math.max(y.length,k.length),v.indexOf("fill")===0)for(R=0;R<D;R++)R%2===0?L.push((y[R]||0)+A[R]*w):L.push("rgba("+Math.round(y[R].r+A[R].r*w)+","+Math.round(y[R].g+A[R].g*w)+","+Math.round(y[R].b+A[R].b*w)+","+(y[R].a+A[R].a*w)+")");else for(R=0;R<D;R++)L.push((y[R]||0)+A[R]*w);else d.indexOf(v)!==-1?L="rgba("+Math.round(y.r+A.r*w)+","+Math.round(y.g+A.g*w)+","+Math.round(y.b+A.b*w)+","+(y.a+A.a*w)+")":L=y+A*w;_.setAttr(v,L)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const w=this.node,_=g.attrs[w._id][this._id];_.points&&_.points.trueEnd&&w.setAttr("points",_.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const w=this.node,_=g.attrs[w._id][this._id];_.points&&_.points.trueStart&&w.points(_.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(w){return this.tween.seek(w*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){let w=this.node._id,_=this._id,x=g.tweens[w],v;this.pause();for(v in x)delete g.tweens[w][v];delete g.attrs[w][_]}}t.Tween=g,g.attrs={},g.tweens={},r.Node.prototype.to=function(h){const w=h.onFinish;h.node=this,h.onFinish=function(){this.destroy(),w&&w()},new g(h).play()},t.Easings={BackEaseIn(h,w,_,x){return _*(h/=x)*h*((1.70158+1)*h-1.70158)+w},BackEaseOut(h,w,_,x){return _*((h=h/x-1)*h*((1.70158+1)*h+1.70158)+1)+w},BackEaseInOut(h,w,_,x){let v=1.70158;return(h/=x/2)<1?_/2*(h*h*(((v*=1.525)+1)*h-v))+w:_/2*((h-=2)*h*(((v*=1.525)+1)*h+v)+2)+w},ElasticEaseIn(h,w,_,x,v,S){let y=0;return h===0?w:(h/=x)===1?w+_:(S||(S=x*.3),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),-(v*Math.pow(2,10*(h-=1))*Math.sin((h*x-y)*(2*Math.PI)/S))+w)},ElasticEaseOut(h,w,_,x,v,S){let y=0;return h===0?w:(h/=x)===1?w+_:(S||(S=x*.3),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),v*Math.pow(2,-10*h)*Math.sin((h*x-y)*(2*Math.PI)/S)+_+w)},ElasticEaseInOut(h,w,_,x,v,S){let y=0;return h===0?w:(h/=x/2)===2?w+_:(S||(S=x*(.3*1.5)),!v||v<Math.abs(_)?(v=_,y=S/4):y=S/(2*Math.PI)*Math.asin(_/v),h<1?-.5*(v*Math.pow(2,10*(h-=1))*Math.sin((h*x-y)*(2*Math.PI)/S))+w:v*Math.pow(2,-10*(h-=1))*Math.sin((h*x-y)*(2*Math.PI)/S)*.5+_+w)},BounceEaseOut(h,w,_,x){return(h/=x)<1/2.75?_*(7.5625*h*h)+w:h<2/2.75?_*(7.5625*(h-=1.5/2.75)*h+.75)+w:h<2.5/2.75?_*(7.5625*(h-=2.25/2.75)*h+.9375)+w:_*(7.5625*(h-=2.625/2.75)*h+.984375)+w},BounceEaseIn(h,w,_,x){return _-t.Easings.BounceEaseOut(x-h,0,_,x)+w},BounceEaseInOut(h,w,_,x){return h<x/2?t.Easings.BounceEaseIn(h*2,0,_,x)*.5+w:t.Easings.BounceEaseOut(h*2-x,0,_,x)*.5+_*.5+w},EaseIn(h,w,_,x){return _*(h/=x)*h+w},EaseOut(h,w,_,x){return-_*(h/=x)*(h-2)+w},EaseInOut(h,w,_,x){return(h/=x/2)<1?_/2*h*h+w:-_/2*(--h*(h-2)-1)+w},StrongEaseIn(h,w,_,x){return _*(h/=x)*h*h*h*h+w},StrongEaseOut(h,w,_,x){return _*((h=h/x-1)*h*h*h*h+1)+w},StrongEaseInOut(h,w,_,x){return(h/=x/2)<1?_/2*h*h*h*h*h+w:_/2*((h-=2)*h*h*h*h+2)+w},Linear(h,w,_,x){return _*h/x+w}}})(J8);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const e=$e,n=Zt,r=Ht,i=Ia,o=K8,s=wh,a=C1,l=Sc,u=A1,d=Mn,p=xc,g=J8,h=Mo,w=ji;t.Konva=n.Util._assign(e.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:i.Container,Stage:o.Stage,stages:o.stages,Layer:s.Layer,FastLayer:a.FastLayer,Group:l.Group,DD:u.DD,Shape:d.Shape,shapes:d.shapes,Animation:p.Animation,Tween:g.Tween,Easings:g.Easings,Context:h.Context,Canvas:w.Canvas}),t.default=t.Konva})(q8);var P1={};Object.defineProperty(P1,"__esModule",{value:!0});P1.Arc=void 0;const L1=at,Gk=Mn,H3=$e,k1=Xe,Vk=$e;class qo extends Gk.Shape{_sceneFunc(e){const n=H3.Konva.getAngle(this.angle()),r=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,n,r),e.arc(0,0,this.innerRadius(),n,0,!r),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=H3.Konva.getAngle(r?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),l=Math.sin(Math.min(i,Math.PI/2)),u=o*(o>0?e:n),d=s*n,p=a*(a>0?e:n),g=l*(l>0?n:e);return{x:u,y:r?-1*g:p,width:d-u,height:g-p}}}P1.Arc=qo;qo.prototype._centroid=!0;qo.prototype.className="Arc";qo.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Vk._registerNode)(qo);L1.Factory.addGetterSetter(qo,"innerRadius",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(qo,"outerRadius",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(qo,"angle",0,(0,k1.getNumberValidator)());L1.Factory.addGetterSetter(qo,"clockwise",!1,(0,k1.getBooleanValidator)());var E1={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});bh.Line=void 0;const T1=at,qk=$e,Wk=Mn,Z8=Xe;function p5(t,e,n,r,i,o,s){const a=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=s*a/(a+l),d=s*l/(a+l),p=n-u*(i-t),g=r-u*(o-e),h=n+d*(i-t),w=r+d*(o-e);return[p,g,h,w]}function Y3(t,e){const n=t.length,r=[];for(let i=2;i<n-2;i+=2){const o=p5(t[i-2],t[i-1],t[i],t[i+1],t[i+2],t[i+3],e);isNaN(o[0])||(r.push(o[0]),r.push(o[1]),r.push(t[i]),r.push(t[i+1]),r.push(o[2]),r.push(o[3]))}return r}class Ws extends Wk.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(e){let n=this.points(),r=n.length,i=this.tension(),o=this.closed(),s=this.bezier(),a,l,u;if(r){if(e.beginPath(),e.moveTo(n[0],n[1]),i!==0&&r>4){for(a=this.getTensionPoints(),l=a.length,u=o?0:4,o||e.quadraticCurveTo(a[0],a[1],a[2],a[3]);u<l-2;)e.bezierCurveTo(a[u++],a[u++],a[u++],a[u++],a[u++],a[u++]);o||e.quadraticCurveTo(a[l-2],a[l-1],n[r-2],n[r-1])}else if(s)for(u=2;u<r;)e.bezierCurveTo(n[u++],n[u++],n[u++],n[u++],n[u++],n[u++]);else for(u=2;u<r;u+=2)e.lineTo(n[u],n[u+1]);o?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():Y3(this.points(),this.tension())}_getTensionPointsClosed(){const e=this.points(),n=e.length,r=this.tension(),i=p5(e[n-2],e[n-1],e[0],e[1],e[2],e[3],r),o=p5(e[n-4],e[n-3],e[n-2],e[n-1],e[0],e[1],r),s=Y3(e,r);return[i[2],i[3]].concat(s).concat([o[0],o[1],e[n-2],e[n-1],o[2],o[3],i[0],i[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};this.tension()!==0?e=[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:e=this.points();let n=e[0],r=e[0],i=e[1],o=e[1],s,a;for(let l=0;l<e.length/2;l++)s=e[l*2],a=e[l*2+1],n=Math.min(n,s),r=Math.max(r,s),i=Math.min(i,a),o=Math.max(o,a);return{x:n,y:i,width:r-n,height:o-i}}}bh.Line=Ws;Ws.prototype.className="Line";Ws.prototype._attrsAffectingSize=["points","bezier","tension"];(0,qk._registerNode)(Ws);T1.Factory.addGetterSetter(Ws,"closed",!1);T1.Factory.addGetterSetter(Ws,"bezier",!1);T1.Factory.addGetterSetter(Ws,"tension",0,(0,Z8.getNumberValidator)());T1.Factory.addGetterSetter(Ws,"points",[],(0,Z8.getNumberArrayValidator)());var Ac={},ew={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],t.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const e=(s,a,l)=>{let u,d;const g=l/2;u=0;for(let h=0;h<20;h++)d=g*t.tValues[20][h]+g,u+=t.cValues[20][h]*r(s,a,d);return g*u};t.getCubicArcLength=e;const n=(s,a,l)=>{l===void 0&&(l=1);const u=s[0]-2*s[1]+s[2],d=a[0]-2*a[1]+a[2],p=2*s[1]-2*s[0],g=2*a[1]-2*a[0],h=4*(u*u+d*d),w=4*(u*p+d*g),_=p*p+g*g;if(h===0)return l*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(a[2]-a[0],2));const x=w/(2*h),v=_/h,S=l+x,y=v-x*x,A=S*S+y>0?Math.sqrt(S*S+y):0,L=x*x+y>0?Math.sqrt(x*x+y):0,R=x+Math.sqrt(x*x+y)!==0?y*Math.log(Math.abs((S+A)/(x+L))):0;return Math.sqrt(h)/2*(S*A-x*L+R)};t.getQuadraticArcLength=n;function r(s,a,l){const u=i(1,l,s),d=i(1,l,a),p=u*u+d*d;return Math.sqrt(p)}const i=(s,a,l)=>{const u=l.length-1;let d,p;if(u===0)return 0;if(s===0){p=0;for(let g=0;g<=u;g++)p+=t.binomialCoefficients[u][g]*Math.pow(1-a,u-g)*Math.pow(a,g)*l[g];return p}else{d=new Array(u);for(let g=0;g<u;g++)d[g]=u*(l[g+1]-l[g]);return i(s-1,a,d)}},o=(s,a,l)=>{let u=1,d=s/a,p=(s-l(d))/a,g=0;for(;u>.001;){const h=l(d+p),w=Math.abs(s-h)/a;if(w<u)u=w,d+=p;else{const _=l(d-p),x=Math.abs(s-_)/a;x<u?(u=x,d-=p):p/=2}if(g++,g>500)break}return d};t.t2length=o})(ew);Object.defineProperty(Ac,"__esModule",{value:!0});Ac.Path=void 0;const Hk=at,Yk=Mn,Kk=$e,Al=ew;class kn extends Yk.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=kn.parsePathData(this.data()),this.pathLength=kn.getPathLength(this.dataArray)}_sceneFunc(e){const n=this.dataArray;e.beginPath();let r=!1;for(let _=0;_<n.length;_++){const x=n[_].command,v=n[_].points;switch(x){case"L":e.lineTo(v[0],v[1]);break;case"M":e.moveTo(v[0],v[1]);break;case"C":e.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);break;case"Q":e.quadraticCurveTo(v[0],v[1],v[2],v[3]);break;case"A":var i=v[0],o=v[1],s=v[2],a=v[3],l=v[4],u=v[5],d=v[6],p=v[7],g=s>a?s:a,h=s>a?1:s/a,w=s>a?a/s:1;e.translate(i,o),e.rotate(d),e.scale(h,w),e.arc(0,0,g,l,l+u,1-p),e.scale(1/h,1/w),e.rotate(-d),e.translate(-i,-o);break;case"z":r=!0,e.closePath();break}}!r&&!this.hasFill()?e.strokeShape(this):e.fillStrokeShape(this)}getSelfRect(){let e=[];this.dataArray.forEach(function(l){if(l.command==="A"){const u=l.points[4],d=l.points[5],p=l.points[4]+d;let g=Math.PI/180;if(Math.abs(u-p)<g&&(g=Math.abs(u-p)),d<0)for(let h=u-g;h>p;h-=g){const w=kn.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],h,0);e.push(w.x,w.y)}else for(let h=u+g;h<p;h+=g){const w=kn.getPointOnEllipticalArc(l.points[0],l.points[1],l.points[2],l.points[3],h,0);e.push(w.x,w.y)}}else if(l.command==="C")for(let u=0;u<=1;u+=.01){const d=kn.getPointOnCubicBezier(u,l.start.x,l.start.y,l.points[0],l.points[1],l.points[2],l.points[3],l.points[4],l.points[5]);e.push(d.x,d.y)}else e=e.concat(l.points)});let n=e[0],r=e[0],i=e[1],o=e[1],s,a;for(let l=0;l<e.length/2;l++)s=e[l*2],a=e[l*2+1],isNaN(s)||(n=Math.min(n,s),r=Math.max(r,s)),isNaN(a)||(i=Math.min(i,a),o=Math.max(o,a));return{x:n,y:i,width:r-n,height:o-i}}getLength(){return this.pathLength}getPointAtLength(e){return kn.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,n,r,i){return Math.sqrt((r-e)*(r-e)+(i-n)*(i-n))}static getPathLength(e){let n=0;for(let r=0;r<e.length;++r)n+=e[r].pathLength;return n}static getPointAtLengthOfDataArray(e,n){let r,i=0,o=n.length;if(!o)return null;for(;i<o&&e>n[i].pathLength;)e-=n[i].pathLength,++i;if(i===o)return r=n[i-1].points.slice(-2),{x:r[0],y:r[1]};if(e<.01)return r=n[i].points.slice(0,2),{x:r[0],y:r[1]};const s=n[i],a=s.points;switch(s.command){case"L":return kn.getPointOnLine(e,s.start.x,s.start.y,a[0],a[1]);case"C":return kn.getPointOnCubicBezier((0,Al.t2length)(e,kn.getPathLength(n),_=>(0,Al.getCubicArcLength)([s.start.x,a[0],a[2],a[4]],[s.start.y,a[1],a[3],a[5]],_)),s.start.x,s.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return kn.getPointOnQuadraticBezier((0,Al.t2length)(e,kn.getPathLength(n),_=>(0,Al.getQuadraticArcLength)([s.start.x,a[0],a[2]],[s.start.y,a[1],a[3]],_)),s.start.x,s.start.y,a[0],a[1],a[2],a[3]);case"A":var l=a[0],u=a[1],d=a[2],p=a[3],g=a[4],h=a[5],w=a[6];return g+=h*e/s.pathLength,kn.getPointOnEllipticalArc(l,u,d,p,g,w)}return null}static getPointOnLine(e,n,r,i,o,s,a){s=s??n,a=a??r;const l=this.getLineLength(n,r,i,o);if(l<1e-10)return{x:n,y:r};if(i===n)return{x:s,y:a+(o>r?e:-e)};const u=(o-r)/(i-n),d=Math.sqrt(e*e/(1+u*u))*(i<n?-1:1),p=u*d;if(Math.abs(a-r-u*(s-n))<1e-10)return{x:s+d,y:a+p};const g=((s-n)*(i-n)+(a-r)*(o-r))/(l*l),h=n+g*(i-n),w=r+g*(o-r),_=this.getLineLength(s,a,h,w),x=Math.sqrt(e*e-_*_),v=Math.sqrt(x*x/(1+u*u))*(i<n?-1:1),S=u*v;return{x:h+v,y:w+S}}static getPointOnCubicBezier(e,n,r,i,o,s,a,l,u){function d(x){return x*x*x}function p(x){return 3*x*x*(1-x)}function g(x){return 3*x*(1-x)*(1-x)}function h(x){return(1-x)*(1-x)*(1-x)}const w=l*d(e)+s*p(e)+i*g(e)+n*h(e),_=u*d(e)+a*p(e)+o*g(e)+r*h(e);return{x:w,y:_}}static getPointOnQuadraticBezier(e,n,r,i,o,s,a){function l(h){return h*h}function u(h){return 2*h*(1-h)}function d(h){return(1-h)*(1-h)}const p=s*l(e)+i*u(e)+n*d(e),g=a*l(e)+o*u(e)+r*d(e);return{x:p,y:g}}static getPointOnEllipticalArc(e,n,r,i,o,s){const a=Math.cos(s),l=Math.sin(s),u={x:r*Math.cos(o),y:i*Math.sin(o)};return{x:e+(u.x*a-u.y*l),y:n+(u.x*l+u.y*a)}}static parsePathData(e){if(!e)return[];let n=e;const r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);const o=n.split("|"),s=[],a=[];let l=0,u=0;const d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let p;for(i=1;i<o.length;i++){let k=o[i],z=k.charAt(0);for(k=k.slice(1),a.length=0;p=d.exec(k);)a.push(p[0]);const T=[];for(let P=0,E=a.length;P<E;P++){if(a[P]==="00"){T.push(0,0);continue}const W=parseFloat(a[P]);isNaN(W)?T.push(0):T.push(W)}for(;T.length>0&&!isNaN(T[0]);){let P="",E=[];const W=l,B=u;var g,h,w,_,x,v,S,y,A,L;switch(z){case"l":l+=T.shift(),u+=T.shift(),P="L",E.push(l,u);break;case"L":l=T.shift(),u=T.shift(),E.push(l,u);break;case"m":var R=T.shift(),D=T.shift();if(l+=R,u+=D,P="M",s.length>2&&s[s.length-1].command==="z"){for(let Q=s.length-2;Q>=0;Q--)if(s[Q].command==="M"){l=s[Q].points[0]+R,u=s[Q].points[1]+D;break}}E.push(l,u),z="l";break;case"M":l=T.shift(),u=T.shift(),P="M",E.push(l,u),z="L";break;case"h":l+=T.shift(),P="L",E.push(l,u);break;case"H":l=T.shift(),P="L",E.push(l,u);break;case"v":u+=T.shift(),P="L",E.push(l,u);break;case"V":u=T.shift(),P="L",E.push(l,u);break;case"C":E.push(T.shift(),T.shift(),T.shift(),T.shift()),l=T.shift(),u=T.shift(),E.push(l,u);break;case"c":E.push(l+T.shift(),u+T.shift(),l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="C",E.push(l,u);break;case"S":h=l,w=u,g=s[s.length-1],g.command==="C"&&(h=l+(l-g.points[2]),w=u+(u-g.points[3])),E.push(h,w,T.shift(),T.shift()),l=T.shift(),u=T.shift(),P="C",E.push(l,u);break;case"s":h=l,w=u,g=s[s.length-1],g.command==="C"&&(h=l+(l-g.points[2]),w=u+(u-g.points[3])),E.push(h,w,l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="C",E.push(l,u);break;case"Q":E.push(T.shift(),T.shift()),l=T.shift(),u=T.shift(),E.push(l,u);break;case"q":E.push(l+T.shift(),u+T.shift()),l+=T.shift(),u+=T.shift(),P="Q",E.push(l,u);break;case"T":h=l,w=u,g=s[s.length-1],g.command==="Q"&&(h=l+(l-g.points[0]),w=u+(u-g.points[1])),l=T.shift(),u=T.shift(),P="Q",E.push(h,w,l,u);break;case"t":h=l,w=u,g=s[s.length-1],g.command==="Q"&&(h=l+(l-g.points[0]),w=u+(u-g.points[1])),l+=T.shift(),u+=T.shift(),P="Q",E.push(h,w,l,u);break;case"A":_=T.shift(),x=T.shift(),v=T.shift(),S=T.shift(),y=T.shift(),A=l,L=u,l=T.shift(),u=T.shift(),P="A",E=this.convertEndpointToCenterParameterization(A,L,l,u,S,y,_,x,v);break;case"a":_=T.shift(),x=T.shift(),v=T.shift(),S=T.shift(),y=T.shift(),A=l,L=u,l+=T.shift(),u+=T.shift(),P="A",E=this.convertEndpointToCenterParameterization(A,L,l,u,S,y,_,x,v);break}s.push({command:P||z,points:E,start:{x:W,y:B},pathLength:this.calcLength(W,B,P||z,E)})}(z==="z"||z==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(e,n,r,i){let o,s,a,l;const u=kn;switch(r){case"L":return u.getLineLength(e,n,i[0],i[1]);case"C":return(0,Al.getCubicArcLength)([e,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return(0,Al.getQuadraticArcLength)([e,i[0],i[2]],[n,i[1],i[3]],1);case"A":o=0;var d=i[4],p=i[5],g=i[4]+p,h=Math.PI/180;if(Math.abs(d-g)<h&&(h=Math.abs(d-g)),s=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],d,0),p<0)for(l=d-h;l>g;l-=h)a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(l=d+h;l<g;l+=h)a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],g,0),o+=u.getLineLength(s.x,s.y,a.x,a.y),o}return 0}static convertEndpointToCenterParameterization(e,n,r,i,o,s,a,l,u){const d=u*(Math.PI/180),p=Math.cos(d)*(e-r)/2+Math.sin(d)*(n-i)/2,g=-1*Math.sin(d)*(e-r)/2+Math.cos(d)*(n-i)/2,h=p*p/(a*a)+g*g/(l*l);h>1&&(a*=Math.sqrt(h),l*=Math.sqrt(h));let w=Math.sqrt((a*a*(l*l)-a*a*(g*g)-l*l*(p*p))/(a*a*(g*g)+l*l*(p*p)));o===s&&(w*=-1),isNaN(w)&&(w=0);const _=w*a*g/l,x=w*-l*p/a,v=(e+r)/2+Math.cos(d)*_-Math.sin(d)*x,S=(n+i)/2+Math.sin(d)*_+Math.cos(d)*x,y=function(T){return Math.sqrt(T[0]*T[0]+T[1]*T[1])},A=function(T,P){return(T[0]*P[0]+T[1]*P[1])/(y(T)*y(P))},L=function(T,P){return(T[0]*P[1]<T[1]*P[0]?-1:1)*Math.acos(A(T,P))},R=L([1,0],[(p-_)/a,(g-x)/l]),D=[(p-_)/a,(g-x)/l],k=[(-1*p-_)/a,(-1*g-x)/l];let z=L(D,k);return A(D,k)<=-1&&(z=Math.PI),A(D,k)>=1&&(z=0),s===0&&z>0&&(z=z-2*Math.PI),s===1&&z<0&&(z=z+2*Math.PI),[v,S,a,l,R,z,d,s]}}Ac.Path=kn;kn.prototype.className="Path";kn.prototype._attrsAffectingSize=["data"];(0,Kk._registerNode)(kn);Hk.Factory.addGetterSetter(kn,"data");Object.defineProperty(E1,"__esModule",{value:!0});E1.Arrow=void 0;const M1=at,Xk=bh,tw=Xe,$k=$e,K3=Ac;class Ra extends Xk.Line{_sceneFunc(e){super._sceneFunc(e);const n=Math.PI*2,r=this.points();let i=r;const o=this.tension()!==0&&r.length>4;o&&(i=this.getTensionPoints());const s=this.pointerLength(),a=r.length;let l,u;if(o){const g=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],r[a-2],r[a-1]],h=K3.Path.calcLength(i[i.length-4],i[i.length-3],"C",g),w=K3.Path.getPointOnQuadraticBezier(Math.min(1,1-s/h),g[0],g[1],g[2],g[3],g[4],g[5]);l=r[a-2]-w.x,u=r[a-1]-w.y}else l=r[a-2]-r[a-4],u=r[a-1]-r[a-3];const d=(Math.atan2(u,l)+n)%n,p=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(r[a-2],r[a-1]),e.rotate(d),e.moveTo(0,0),e.lineTo(-s,p/2),e.lineTo(-s,-p/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(r[0],r[1]),o?(l=(i[0]+i[2])/2-r[0],u=(i[1]+i[3])/2-r[1]):(l=r[2]-r[0],u=r[3]-r[1]),e.rotate((Math.atan2(-u,-l)+n)%n),e.moveTo(0,0),e.lineTo(-s,p/2),e.lineTo(-s,-p/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),n=this.pointerWidth()/2;return{x:e.x-n,y:e.y-n,width:e.width+n*2,height:e.height+n*2}}}E1.Arrow=Ra;Ra.prototype.className="Arrow";(0,$k._registerNode)(Ra);M1.Factory.addGetterSetter(Ra,"pointerLength",10,(0,tw.getNumberValidator)());M1.Factory.addGetterSetter(Ra,"pointerWidth",10,(0,tw.getNumberValidator)());M1.Factory.addGetterSetter(Ra,"pointerAtBeginning",!1);M1.Factory.addGetterSetter(Ra,"pointerAtEnding",!0);var j1={};Object.defineProperty(j1,"__esModule",{value:!0});j1.Circle=void 0;const Qk=at,Jk=Mn,Zk=Xe,eE=$e;class Nc extends Jk.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}j1.Circle=Nc;Nc.prototype._centroid=!0;Nc.prototype.className="Circle";Nc.prototype._attrsAffectingSize=["radius"];(0,eE._registerNode)(Nc);Qk.Factory.addGetterSetter(Nc,"radius",0,(0,Zk.getNumberValidator)());var F1={};Object.defineProperty(F1,"__esModule",{value:!0});F1.Ellipse=void 0;const Rg=at,tE=Mn,nw=Xe,nE=$e;class Hs extends tE.Shape{_sceneFunc(e){const n=this.radiusX(),r=this.radiusY();e.beginPath(),e.save(),n!==r&&e.scale(1,r/n),e.arc(0,0,n,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}F1.Ellipse=Hs;Hs.prototype.className="Ellipse";Hs.prototype._centroid=!0;Hs.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,nE._registerNode)(Hs);Rg.Factory.addComponentsGetterSetter(Hs,"radius",["x","y"]);Rg.Factory.addGetterSetter(Hs,"radiusX",0,(0,nw.getNumberValidator)());Rg.Factory.addGetterSetter(Hs,"radiusY",0,(0,nw.getNumberValidator)());var I1={};Object.defineProperty(I1,"__esModule",{value:!0});I1.Image=void 0;const Vp=Zt,Ba=at,rE=Mn,iE=$e,_h=Xe;let lo=class rw extends rE.Shape{constructor(e){super(e),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&e.readyState===4||e&&e.addEventListener&&e.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const e=!!this.cornerRadius(),n=this.hasShadow();return e&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(e){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let s;if(o){const a=this.attrs.cropWidth,l=this.attrs.cropHeight;a&&l?s=[o,this.cropX(),this.cropY(),a,l,0,0,n,r]:s=[o,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?Vp.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)),o&&(i&&e.clip(),e.drawImage.apply(e,s))}_hitFunc(e){const n=this.width(),r=this.height(),i=this.cornerRadius();e.beginPath(),i?Vp.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,n;return(e=this.attrs.width)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var e,n;return(e=this.attrs.height)!==null&&e!==void 0?e:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(e,n,r=null){const i=Vp.Util.createImageElement();i.onload=function(){const o=new rw({image:i});n(o)},i.onerror=r,i.crossOrigin="Anonymous",i.src=e}};I1.Image=lo;lo.prototype.className="Image";(0,iE._registerNode)(lo);Ba.Factory.addGetterSetter(lo,"cornerRadius",0,(0,_h.getNumberOrArrayOfNumbersValidator)(4));Ba.Factory.addGetterSetter(lo,"image");Ba.Factory.addComponentsGetterSetter(lo,"crop",["x","y","width","height"]);Ba.Factory.addGetterSetter(lo,"cropX",0,(0,_h.getNumberValidator)());Ba.Factory.addGetterSetter(lo,"cropY",0,(0,_h.getNumberValidator)());Ba.Factory.addGetterSetter(lo,"cropWidth",0,(0,_h.getNumberValidator)());Ba.Factory.addGetterSetter(lo,"cropHeight",0,(0,_h.getNumberValidator)());var cc={};Object.defineProperty(cc,"__esModule",{value:!0});cc.Tag=cc.Label=void 0;const O1=at,oE=Mn,sE=Sc,Bg=Xe,iw=$e,ow=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],aE="Change.konva",lE="none",g5="up",m5="right",v5="down",y5="left",cE=ow.length;class Dg extends sE.Group{constructor(e){super(e),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let n=this,r;const i=function(){n._sync()};for(r=0;r<cE;r++)e.on(ow[r]+aE,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let e=this.getText(),n=this.getTag(),r,i,o,s,a,l,u;if(e&&n){switch(r=e.width(),i=e.height(),o=n.pointerDirection(),s=n.pointerWidth(),u=n.pointerHeight(),a=0,l=0,o){case g5:a=r/2,l=-1*u;break;case m5:a=r+s,l=i/2;break;case v5:a=r/2,l=i+u;break;case y5:a=-1*s,l=i/2;break}n.setAttrs({x:-1*a,y:-1*l,width:r,height:i}),e.setAttrs({x:-1*a,y:-1*l})}}}cc.Label=Dg;Dg.prototype.className="Label";(0,iw._registerNode)(Dg);class Da extends oE.Shape{_sceneFunc(e){const n=this.width(),r=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),s=this.pointerHeight(),a=this.cornerRadius();let l=0,u=0,d=0,p=0;typeof a=="number"?l=u=d=p=Math.min(a,n/2,r/2):(l=Math.min(a[0]||0,n/2,r/2),u=Math.min(a[1]||0,n/2,r/2),p=Math.min(a[2]||0,n/2,r/2),d=Math.min(a[3]||0,n/2,r/2)),e.beginPath(),e.moveTo(l,0),i===g5&&(e.lineTo((n-o)/2,0),e.lineTo(n/2,-1*s),e.lineTo((n+o)/2,0)),e.lineTo(n-u,0),e.arc(n-u,u,u,Math.PI*3/2,0,!1),i===m5&&(e.lineTo(n,(r-s)/2),e.lineTo(n+o,r/2),e.lineTo(n,(r+s)/2)),e.lineTo(n,r-p),e.arc(n-p,r-p,p,0,Math.PI/2,!1),i===v5&&(e.lineTo((n+o)/2,r),e.lineTo(n/2,r+s),e.lineTo((n-o)/2,r)),e.lineTo(d,r),e.arc(d,r-d,d,Math.PI/2,Math.PI,!1),i===y5&&(e.lineTo(0,(r+s)/2),e.lineTo(-1*o,r/2),e.lineTo(0,(r-s)/2)),e.lineTo(0,l),e.arc(l,l,l,Math.PI,Math.PI*3/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){let e=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),s=this.width(),a=this.height();return o===g5?(n-=i,a+=i):o===v5?a+=i:o===y5?(e-=r*1.5,s+=r):o===m5&&(s+=r*1.5),{x:e,y:n,width:s,height:a}}}cc.Tag=Da;Da.prototype.className="Tag";(0,iw._registerNode)(Da);O1.Factory.addGetterSetter(Da,"pointerDirection",lE);O1.Factory.addGetterSetter(Da,"pointerWidth",0,(0,Bg.getNumberValidator)());O1.Factory.addGetterSetter(Da,"pointerHeight",0,(0,Bg.getNumberValidator)());O1.Factory.addGetterSetter(Da,"cornerRadius",0,(0,Bg.getNumberOrArrayOfNumbersValidator)(4));var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Rect=void 0;const uE=at,hE=Mn,dE=$e,fE=Zt,pE=Xe;class R1 extends hE.Shape{_sceneFunc(e){const n=this.cornerRadius(),r=this.width(),i=this.height();e.beginPath(),n?fE.Util.drawRoundedRectPath(e,r,i,n):e.rect(0,0,r,i),e.closePath(),e.fillStrokeShape(this)}}Sh.Rect=R1;R1.prototype.className="Rect";(0,dE._registerNode)(R1);uE.Factory.addGetterSetter(R1,"cornerRadius",0,(0,pE.getNumberOrArrayOfNumbersValidator)(4));var B1={};Object.defineProperty(B1,"__esModule",{value:!0});B1.RegularPolygon=void 0;const sw=at,gE=Mn,aw=Xe,mE=$e;class Ua extends gE.Shape{_sceneFunc(e){const n=this._getPoints();e.beginPath(),e.moveTo(n[0].x,n[0].y);for(let r=1;r<n.length;r++)e.lineTo(n[r].x,n[r].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,n=this.attrs.radius||0,r=[];for(let i=0;i<e;i++)r.push({x:n*Math.sin(i*2*Math.PI/e),y:-1*n*Math.cos(i*2*Math.PI/e)});return r}getSelfRect(){const e=this._getPoints();let n=e[0].x,r=e[0].y,i=e[0].x,o=e[0].y;return e.forEach(s=>{n=Math.min(n,s.x),r=Math.max(r,s.x),i=Math.min(i,s.y),o=Math.max(o,s.y)}),{x:n,y:i,width:r-n,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}B1.RegularPolygon=Ua;Ua.prototype.className="RegularPolygon";Ua.prototype._centroid=!0;Ua.prototype._attrsAffectingSize=["radius"];(0,mE._registerNode)(Ua);sw.Factory.addGetterSetter(Ua,"radius",0,(0,aw.getNumberValidator)());sw.Factory.addGetterSetter(Ua,"sides",0,(0,aw.getNumberValidator)());var D1={};Object.defineProperty(D1,"__esModule",{value:!0});D1.Ring=void 0;const lw=at,vE=Mn,cw=Xe,yE=$e,X3=Math.PI*2;class za extends vE.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,X3,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),X3,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}D1.Ring=za;za.prototype.className="Ring";za.prototype._centroid=!0;za.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,yE._registerNode)(za);lw.Factory.addGetterSetter(za,"innerRadius",0,(0,cw.getNumberValidator)());lw.Factory.addGetterSetter(za,"outerRadius",0,(0,cw.getNumberValidator)());var U1={};Object.defineProperty(U1,"__esModule",{value:!0});U1.Sprite=void 0;const Ga=at,wE=Mn,bE=xc,uw=Xe,_E=$e;class co extends wE.Shape{constructor(e){super(e),this._updated=!0,this.anim=new bE.Animation(()=>{const n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){const n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],s=this.frameOffsets(),a=o[i+0],l=o[i+1],u=o[i+2],d=o[i+3],p=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,u,d),e.closePath(),e.fillStrokeShape(this)),p)if(s){const g=s[n],h=r*2;e.drawImage(p,a,l,u,d,g[h+0],g[h+1],u,d)}else e.drawImage(p,a,l,u,d,0,0,u,d)}_hitFunc(e){const n=this.animation(),r=this.frameIndex(),i=r*4,o=this.animations()[n],s=this.frameOffsets(),a=o[i+2],l=o[i+3];if(e.beginPath(),s){const u=s[n],d=r*2;e.rect(u[d+0],u[d+1],a,l)}else e.rect(0,0,a,l);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],o=i.length/4;e<o-1?this.frameIndex(e+1):this.frameIndex(0)}}U1.Sprite=co;co.prototype.className="Sprite";(0,_E._registerNode)(co);Ga.Factory.addGetterSetter(co,"animation");Ga.Factory.addGetterSetter(co,"animations");Ga.Factory.addGetterSetter(co,"frameOffsets");Ga.Factory.addGetterSetter(co,"image");Ga.Factory.addGetterSetter(co,"frameIndex",0,(0,uw.getNumberValidator)());Ga.Factory.addGetterSetter(co,"frameRate",17,(0,uw.getNumberValidator)());Ga.Factory.backCompat(co,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});var z1={};Object.defineProperty(z1,"__esModule",{value:!0});z1.Star=void 0;const Ug=at,SE=Mn,zg=Xe,xE=$e;class Ys extends SE.Shape{_sceneFunc(e){const n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();e.beginPath(),e.moveTo(0,0-r);for(let o=1;o<i*2;o++){const s=o%2===0?r:n,a=s*Math.sin(o*Math.PI/i),l=-1*s*Math.cos(o*Math.PI/i);e.lineTo(a,l)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}z1.Star=Ys;Ys.prototype.className="Star";Ys.prototype._centroid=!0;Ys.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,xE._registerNode)(Ys);Ug.Factory.addGetterSetter(Ys,"numPoints",5,(0,zg.getNumberValidator)());Ug.Factory.addGetterSetter(Ys,"innerRadius",0,(0,zg.getNumberValidator)());Ug.Factory.addGetterSetter(Ys,"outerRadius",0,(0,zg.getNumberValidator)());var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.Text=void 0;Cc.stringToArray=hw;const w5=Zt,lr=at,AE=Mn,qp=$e,Ks=Xe,NE=$e;function hw(t){return[...t].reduce((e,n,r,i)=>(new RegExp("\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?(?:\\u200D\\p{Emoji_Presentation})+","u").test(n)?e.push(n):new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(i[r+1]||""))?e.push(n+i[r+1]):r>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?e[e.length-1]+=n:e.push(n),e),[])}const Nl="auto",CE="center",dw="inherit",mu="justify",PE="Change.konva",LE="2d",$3="-",fw="left",kE="text",EE="Text",TE="top",ME="bottom",Q3="middle",pw="normal",jE="px ",Od=" ",FE="right",J3="rtl",IE="word",OE="char",Z3="none",Wp="…",gw=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],RE=gw.length;function BE(t){return t.split(",").map(e=>{e=e.trim();const n=e.indexOf(" ")>=0,r=e.indexOf('"')>=0||e.indexOf("'")>=0;return n&&!r&&(e=`"${e}"`),e}).join(", ")}let Rd;function Hp(){return Rd||(Rd=w5.Util.createCanvasElement().getContext(LE),Rd)}function DE(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)}function UE(t){t.setAttr("miterLimit",2),t.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function zE(t){return t=t||{},!t.fillLinearGradientColorStops&&!t.fillRadialGradientColorStops&&!t.fillPatternImage&&(t.fill=t.fill||"black"),t}class cn extends AE.Shape{constructor(e){super(zE(e)),this._partialTextX=0,this._partialTextY=0;for(let n=0;n<RE;n++)this.on(gw[n]+PE,this._setTextData);this._setTextData()}_sceneFunc(e){const n=this.textArr,r=n.length;if(!this.text())return;let i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,a=this.verticalAlign(),l=this.direction(),u=0,d=this.align(),p=this.getWidth(),g=this.letterSpacing(),h=this.fill(),w=this.textDecoration(),_=w.indexOf("underline")!==-1,x=w.indexOf("line-through")!==-1,v;l=l===dw?e.direction:l;let S=s/2,y=Q3;if(qp.Konva._fixTextRendering){const W=this.measureSize("M");y="alphabetic",S=(W.fontBoundingBoxAscent-W.fontBoundingBoxDescent)/2+s/2}var A=0,L=0;for(l===J3&&e.setAttr("direction",l),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",y),e.setAttr("textAlign",fw),a===Q3?u=(this.getHeight()-r*s-i*2)/2:a===ME&&(u=this.getHeight()-r*s-i*2),e.translate(i,u+i),v=0;v<r;v++){var A=0,L=0,R=n[v],D=R.text,k=R.width,z=R.lastInParagraph,T,P,E;if(e.save(),d===FE?A+=p-k-i*2:d===CE&&(A+=(p-k-i*2)/2),_){e.save(),e.beginPath();const Q=qp.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2),ee=A,se=S+L+Q;e.moveTo(ee,se),T=D.split(" ").length-1,P=T===0,E=d===mu&&!z?p-i*2:k,e.lineTo(ee+Math.round(E),se),e.lineWidth=o/15;const K=this._getLinearGradient();e.strokeStyle=K||h,e.stroke(),e.restore()}if(x){e.save(),e.beginPath();const Q=qp.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(A,S+L+Q),T=D.split(" ").length-1,P=T===0,E=d===mu&&z&&!P?p-i*2:k,e.lineTo(A+Math.round(E),S+L+Q),e.lineWidth=o/15;const ee=this._getLinearGradient();e.strokeStyle=ee||h,e.stroke(),e.restore()}if(l!==J3&&(g!==0||d===mu)){T=D.split(" ").length-1;const Q=hw(D);for(let ee=0;ee<Q.length;ee++){const se=Q[ee];se===" "&&!z&&d===mu&&(A+=(p-i*2-k)/T),this._partialTextX=A,this._partialTextY=S+L,this._partialText=se,e.fillStrokeShape(this),A+=this.measureSize(se).width+g}}else g!==0&&e.setAttr("letterSpacing",`${g}px`),this._partialTextX=A,this._partialTextY=S+L,this._partialText=D,e.fillStrokeShape(this);e.restore(),r>1&&(S+=s)}}_hitFunc(e){const n=this.getWidth(),r=this.getHeight();e.beginPath(),e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}setText(e){const n=w5.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(kE,n),this}getWidth(){return this.attrs.width===Nl||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Nl||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return w5.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var n,r,i,o,s,a,l,u,d,p,g;let h=Hp(),w=this.fontSize(),_;h.save(),h.font=this._getContextFont(),_=h.measureText(e),h.restore();const x=w/100;return{actualBoundingBoxAscent:(n=_.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*x,actualBoundingBoxDescent:(r=_.actualBoundingBoxDescent)!==null&&r!==void 0?r:0,actualBoundingBoxLeft:(i=_.actualBoundingBoxLeft)!==null&&i!==void 0?i:-7.421875*x,actualBoundingBoxRight:(o=_.actualBoundingBoxRight)!==null&&o!==void 0?o:75.732421875*x,alphabeticBaseline:(s=_.alphabeticBaseline)!==null&&s!==void 0?s:0,emHeightAscent:(a=_.emHeightAscent)!==null&&a!==void 0?a:100*x,emHeightDescent:(l=_.emHeightDescent)!==null&&l!==void 0?l:-20*x,fontBoundingBoxAscent:(u=_.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*x,fontBoundingBoxDescent:(d=_.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*x,hangingBaseline:(p=_.hangingBaseline)!==null&&p!==void 0?p:72.80000305175781*x,ideographicBaseline:(g=_.ideographicBaseline)!==null&&g!==void 0?g:-21*x,width:_.width,height:w}}_getContextFont(){return this.fontStyle()+Od+this.fontVariant()+Od+(this.fontSize()+jE)+BE(this.fontFamily())}_addTextLine(e){this.align()===mu&&(e=e.trim());const r=this._getTextWidth(e);return this.textArr.push({text:e,width:r,lastInParagraph:!1})}_getTextWidth(e){const n=this.letterSpacing(),r=e.length;return Hp().measureText(e).width+(r?n*(r-1):0)}_setTextData(){let e=this.text().split(`
+`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==Nl&&o!==void 0,l=s!==Nl&&s!==void 0,u=this.padding(),d=o-u*2,p=s-u*2,g=0,h=this.wrap(),w=h!==Z3,_=h!==OE&&w,x=this.ellipsis();this.textArr=[],Hp().font=this._getContextFont();const v=x?this._getTextWidth(Wp):0;for(let y=0,A=e.length;y<A;++y){let L=e[y],R=this._getTextWidth(L);if(a&&R>d)for(;L.length>0;){let D=0,k=L.length,z="",T=0;for(;D<k;){const P=D+k>>>1,E=L.slice(0,P+1),W=this._getTextWidth(E)+v;W<=d?(D=P+1,z=E,T=W):k=P}if(z){if(_){var S;const E=L[z.length];(E===Od||E===$3)&&T<=d?S=z.length:S=Math.max(z.lastIndexOf(Od),z.lastIndexOf($3))+1,S>0&&(D=S,z=z.slice(0,D),T=this._getTextWidth(z))}if(z=z.trimRight(),this._addTextLine(z),r=Math.max(r,T),g+=i,this._shouldHandleEllipsis(g)){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(D),L=L.trimLeft(),L.length>0&&(R=this._getTextWidth(L),R<=d)){this._addTextLine(L),g+=i,r=Math.max(r,R);break}}else break}else this._addTextLine(L),g+=i,r=Math.max(r,R),this._shouldHandleEllipsis(g)&&y<A-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&g+i>p)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(e){const n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Nl&&i!==void 0,s=this.padding(),a=i-s*2;return!(this.wrap()!==Z3)||o&&e+r>a}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,n=e!==Nl&&e!==void 0,r=this.padding(),i=e-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];!s||!o||(n&&(this._getTextWidth(s.text+Wp)<i||(s.text=s.text.slice(0,s.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Wp))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return e&&n?!0:super._useBufferCanvas()}}Cc.Text=cn;cn.prototype._fillFunc=DE;cn.prototype._strokeFunc=UE;cn.prototype.className=EE;cn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,NE._registerNode)(cn);lr.Factory.overWriteSetter(cn,"width",(0,Ks.getNumberOrAutoValidator)());lr.Factory.overWriteSetter(cn,"height",(0,Ks.getNumberOrAutoValidator)());lr.Factory.addGetterSetter(cn,"direction",dw);lr.Factory.addGetterSetter(cn,"fontFamily","Arial");lr.Factory.addGetterSetter(cn,"fontSize",12,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"fontStyle",pw);lr.Factory.addGetterSetter(cn,"fontVariant",pw);lr.Factory.addGetterSetter(cn,"padding",0,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"align",fw);lr.Factory.addGetterSetter(cn,"verticalAlign",TE);lr.Factory.addGetterSetter(cn,"lineHeight",1,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"wrap",IE);lr.Factory.addGetterSetter(cn,"ellipsis",!1,(0,Ks.getBooleanValidator)());lr.Factory.addGetterSetter(cn,"letterSpacing",0,(0,Ks.getNumberValidator)());lr.Factory.addGetterSetter(cn,"text","",(0,Ks.getStringValidator)());lr.Factory.addGetterSetter(cn,"textDecoration","");var G1={};Object.defineProperty(G1,"__esModule",{value:!0});G1.TextPath=void 0;const Yp=Zt,Ii=at,GE=Mn,vu=Ac,Kp=Cc,mw=Xe,VE=$e,qE="",vw="normal";function yw(t){t.fillText(this.partialText,0,0)}function ww(t){t.strokeText(this.partialText,0,0)}class jn extends GE.Shape{constructor(e){super(e),this.dummyCanvas=Yp.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return vu.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const n=this.pathLength;return e-1>n?null:vu.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=vu.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&e.beginPath();for(let s=0;s<o.length;s++){e.save();const a=o[s].p0;e.translate(a.x,a.y),e.rotate(o[s].rotation),this.partialText=o[s].text,e.fillStrokeShape(this),n==="underline"&&(s===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}n==="underline"&&(e.strokeStyle=r,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();const n=this.glyphInfo;if(n.length>=1){const r=n[0].p0;e.moveTo(r.x,r.y)}for(let r=0;r<n.length;r++){const i=n[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return Yp.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return Kp.Text.prototype.setText.call(this,e)}_getContextFont(){return Kp.Text.prototype._getContextFont.call(this)}_getTextSize(e){const r=this.dummyCanvas.getContext("2d");r.save(),r.font=this._getContextFont();const i=r.measureText(e);return r.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:e,height:n}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=n,this.glyphInfo=[],!this.attrs.data)return null;const r=this.letterSpacing(),i=this.align(),o=this.kerningFunc(),s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);let a=0;i==="center"&&(a=Math.max(0,this.pathLength/2-s/2)),i==="right"&&(a=Math.max(0,this.pathLength-s));const l=(0,Kp.stringToArray)(this.text());let u=a;for(let d=0;d<l.length;d++){const p=this._getPointAtLength(u);if(!p)return;let g=this._getTextSize(l[d]).width+r;if(l[d]===" "&&i==="justify"){const S=this.text().split(" ").length-1;g+=(this.pathLength-s)/S}const h=this._getPointAtLength(u+g);if(!h)return;const w=vu.Path.getLineLength(p.x,p.y,h.x,h.y);let _=0;if(o)try{_=o(l[d-1],l[d])*this.fontSize()}catch{_=0}p.x+=_,h.x+=_,this.textWidth+=_;const x=vu.Path.getPointOnLine(_+w/2,p.x,p.y,h.x,h.y),v=Math.atan2(h.y-p.y,h.x-p.x);this.glyphInfo.push({transposeX:x.x,transposeY:x.y,text:l[d],rotation:v,p0:p,p1:h}),u+=g}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const e=[];this.glyphInfo.forEach(function(u){e.push(u.p0.x),e.push(u.p0.y),e.push(u.p1.x),e.push(u.p1.y)});let n=e[0]||0,r=e[0]||0,i=e[1]||0,o=e[1]||0,s,a;for(let u=0;u<e.length/2;u++)s=e[u*2],a=e[u*2+1],n=Math.min(n,s),r=Math.max(r,s),i=Math.min(i,a),o=Math.max(o,a);const l=this.fontSize();return{x:n-l/2,y:i-l/2,width:r-n+l,height:o-i+l}}destroy(){return Yp.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}G1.TextPath=jn;jn.prototype._fillFunc=yw;jn.prototype._strokeFunc=ww;jn.prototype._fillFuncHit=yw;jn.prototype._strokeFuncHit=ww;jn.prototype.className="TextPath";jn.prototype._attrsAffectingSize=["text","fontSize","data"];(0,VE._registerNode)(jn);Ii.Factory.addGetterSetter(jn,"data");Ii.Factory.addGetterSetter(jn,"fontFamily","Arial");Ii.Factory.addGetterSetter(jn,"fontSize",12,(0,mw.getNumberValidator)());Ii.Factory.addGetterSetter(jn,"fontStyle",vw);Ii.Factory.addGetterSetter(jn,"align","left");Ii.Factory.addGetterSetter(jn,"letterSpacing",0,(0,mw.getNumberValidator)());Ii.Factory.addGetterSetter(jn,"textBaseline","middle");Ii.Factory.addGetterSetter(jn,"fontVariant",vw);Ii.Factory.addGetterSetter(jn,"text",qE);Ii.Factory.addGetterSetter(jn,"textDecoration",null);Ii.Factory.addGetterSetter(jn,"kerningFunc",null);var V1={};Object.defineProperty(V1,"__esModule",{value:!0});V1.Transformer=void 0;const Tt=Zt,St=at,e4=Ht,WE=Mn,HE=Sh,t4=Sc,Ci=$e,Xs=Xe,YE=$e,bw="tr-konva",KE=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(t=>t+`.${bw}`).join(" "),n4="nodesRect",XE=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],$E={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},QE="ontouchstart"in Ci.Konva._global;function JE(t,e,n){if(t==="rotater")return n;e+=Tt.Util.degToRad($E[t]||0);const r=(Tt.Util.radToDeg(e)%360+360)%360;return Tt.Util._inRange(r,315+22.5,360)||Tt.Util._inRange(r,0,22.5)?"ns-resize":Tt.Util._inRange(r,45-22.5,45+22.5)?"nesw-resize":Tt.Util._inRange(r,90-22.5,90+22.5)?"ew-resize":Tt.Util._inRange(r,135-22.5,135+22.5)?"nwse-resize":Tt.Util._inRange(r,180-22.5,180+22.5)?"ns-resize":Tt.Util._inRange(r,225-22.5,225+22.5)?"nesw-resize":Tt.Util._inRange(r,270-22.5,270+22.5)?"ew-resize":Tt.Util._inRange(r,315-22.5,315+22.5)?"nwse-resize":(Tt.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}const Vf=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],r4=1e8;function ZE(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}function _w(t,e,n){const r=n.x+(t.x-n.x)*Math.cos(e)-(t.y-n.y)*Math.sin(e),i=n.y+(t.x-n.x)*Math.sin(e)+(t.y-n.y)*Math.cos(e);return{...t,rotation:t.rotation+e,x:r,y:i}}function eT(t,e){const n=ZE(t);return _w(t,e,n)}function tT(t,e,n){let r=e;for(let i=0;i<t.length;i++){const o=Ci.Konva.getAngle(t[i]),s=Math.abs(o-e)%(Math.PI*2);Math.min(s,Math.PI*2-s)<n&&(r=o)}return r}let b5=0;class ft extends t4.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(KE,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return Tt.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return bw+this._id}setNodes(e=[]){this._nodes&&this._nodes.length&&this.detach();const n=e.filter(i=>i.isAncestorOf(this)?(Tt.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=n,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=i._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");i.on(s,o),i.on(XE.map(a=>a+`.${this._getEventNamespace()}`).join(" "),o),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,o),this._proxyDrag(i)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let n;e.on(`dragstart.${this._getEventNamespace()}`,r=>{n=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(r,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!n)return;const i=e.getAbsolutePosition(),o=i.x-n.x,s=i.y-n.y;this.nodes().forEach(a=>{if(a===e||a.isDragging())return;const l=a.getAbsolutePosition();a.setAbsolutePosition({x:l.x+o,y:l.y+s}),a.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(n4),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(n4,this.__getNodeRect)}__getNodeShape(e,n=this.rotation(),r){const i=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=e.getAbsoluteScale(r),s=e.getAbsolutePosition(r),a=i.x*o.x-e.offsetX()*o.x,l=i.y*o.y-e.offsetY()*o.y,u=(Ci.Konva.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),d={x:s.x+a*Math.cos(u)+l*Math.sin(-u),y:s.y+l*Math.cos(u)+a*Math.sin(u),width:i.width*o.x,height:i.height*o.y,rotation:u};return _w(d,-Ci.Konva.getAngle(n),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-r4,y:-r4,width:0,height:0,rotation:0};const n=[];this.nodes().map(u=>{const d=u.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),p=[{x:d.x,y:d.y},{x:d.x+d.width,y:d.y},{x:d.x+d.width,y:d.y+d.height},{x:d.x,y:d.y+d.height}],g=u.getAbsoluteTransform();p.forEach(function(h){const w=g.point(h);n.push(w)})});const r=new Tt.Transform;r.rotate(-Ci.Konva.getAngle(this.rotation()));let i=1/0,o=1/0,s=-1/0,a=-1/0;n.forEach(function(u){const d=r.point(u);i===void 0&&(i=s=d.x,o=a=d.y),i=Math.min(i,d.x),o=Math.min(o,d.y),s=Math.max(s,d.x),a=Math.max(a,d.y)}),r.invert();const l=r.point({x:i,y:o});return{x:l.x,y:l.y,width:s-i,height:a-o,rotation:Ci.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),Vf.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){const n=new HE.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:QE?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{const i=Ci.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=JE(e,i,o);n.getStage().content&&(n.getStage().content.style.cursor=s),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){const e=new WE.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(n,r){const i=r.getParent(),o=i.padding();n.beginPath(),n.rect(-o,-o,r.width()+o*2,r.height()+o*2),n.moveTo(r.width()/2,-o),i.rotateEnabled()&&i.rotateLineVisible()&&n.lineTo(r.width()/2,-i.rotateAnchorOffset()*Tt.Util._sign(r.height())-o),n.fillStrokeShape(r)},hitFunc:(n,r)=>{if(!this.shouldOverdrawWholeArea())return;const i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}});this.add(e),this._proxyDrag(e),e.on("dragstart",n=>{n.cancelBubble=!0}),e.on("dragmove",n=>{n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const n=this._getNodeRect(),r=n.width,i=n.height,o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(r/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const s=e.target.getAbsolutePosition(),a=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-s.x,y:a.y-s.y},b5++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(l=>{l._fire("transformstart",{evt:e.evt,target:l})})}_handleMouseMove(e){let n,r,i;const o=this.findOne("."+this._movingAnchorName),s=o.getStage();s.setPointersPositions(e);const a=s.getPointerPosition();let l={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const u=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(l=this.anchorDragBoundFunc()(u,l,e)),o.setAbsolutePosition(l);const d=o.getAbsolutePosition();if(u.x===d.x&&u.y===d.y)return;if(this._movingAnchorName==="rotater"){const L=this._getNodeRect();n=o.x()-L.width/2,r=-o.y()+L.height/2;let R=Math.atan2(-r,n)+Math.PI/2;L.height<0&&(R-=Math.PI);const k=Ci.Konva.getAngle(this.rotation())+R,z=Ci.Konva.getAngle(this.rotationSnapTolerance()),P=tT(this.rotationSnaps(),k,z)-L.rotation,E=eT(L,P);this._fitNodesInto(E,e);return}const p=this.shiftBehavior();let g;p==="inverted"?g=this.keepRatio()&&!e.shiftKey:p==="none"?g=this.keepRatio():g=this.keepRatio()||e.shiftKey;var v=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(h.x-o.x(),2)+Math.pow(h.y-o.y(),2));var w=this.findOne(".top-left").x()>h.x?-1:1,_=this.findOne(".top-left").y()>h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".top-left").x(h.x-n),this.findOne(".top-left").y(h.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-h.x,2)+Math.pow(h.y-o.y(),2));var w=this.findOne(".top-right").x()<h.x?-1:1,_=this.findOne(".top-right").y()>h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".top-right").x(h.x+n),this.findOne(".top-right").y(h.y-r)}var x=o.position();this.findOne(".top-left").y(x.y),this.findOne(".bottom-right").x(x.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(h.x-o.x(),2)+Math.pow(o.y()-h.y,2));var w=h.x<o.x()?-1:1,_=o.y()<h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,o.x(h.x-n),o.y(h.y+r)}x=o.position(),this.findOne(".top-left").x(x.x),this.findOne(".bottom-right").y(x.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(g){var h=v?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-h.x,2)+Math.pow(o.y()-h.y,2));var w=this.findOne(".bottom-right").x()<h.x?-1:1,_=this.findOne(".bottom-right").y()<h.y?-1:1;n=i*this.cos*w,r=i*this.sin*_,this.findOne(".bottom-right").x(h.x+n),this.findOne(".bottom-right").y(h.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var v=this.centeredScaling()||e.altKey;if(v){const L=this.findOne(".top-left"),R=this.findOne(".bottom-right"),D=L.x(),k=L.y(),z=this.getWidth()-R.x(),T=this.getHeight()-R.y();R.move({x:-D,y:-k}),L.move({x:z,y:T})}const S=this.findOne(".top-left").getAbsolutePosition();n=S.x,r=S.y;const y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),A=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:y,height:A,rotation:Ci.Konva.getAngle(this.rotation())},e)}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var n;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const r=this.getNode();b5--,this._fire("transformend",{evt:e,target:r}),(n=this.getLayer())===null||n===void 0||n.batchDraw(),r&&this._nodes.forEach(i=>{var o;i._fire("transformend",{evt:e,target:i}),(o=i.getLayer())===null||o===void 0||o.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,n){const r=this._getNodeRect(),i=1;if(Tt.Util._inRange(e.width,-this.padding()*2-i,i)){this.update();return}if(Tt.Util._inRange(e.height,-this.padding()*2-i,i)){this.update();return}const o=new Tt.Transform;if(o.rotate(Ci.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const g=o.point({x:-this.padding()*2,y:0});e.x+=g.x,e.y+=g.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const g=o.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const g=o.point({x:0,y:-this.padding()*2});e.x+=g.x,e.y+=g.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const g=o.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){const g=this.boundBoxFunc()(r,e);g?e=g:Tt.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,a=new Tt.Transform;a.translate(r.x,r.y),a.rotate(r.rotation),a.scale(r.width/s,r.height/s);const l=new Tt.Transform,u=e.width/s,d=e.height/s;this.flipEnabled()===!1?(l.translate(e.x,e.y),l.rotate(e.rotation),l.translate(e.width<0?e.width:0,e.height<0?e.height:0),l.scale(Math.abs(u),Math.abs(d))):(l.translate(e.x,e.y),l.rotate(e.rotation),l.scale(u,d));const p=l.multiply(a.invert());this._nodes.forEach(g=>{var h;const w=g.getParent().getAbsoluteTransform(),_=g.getTransform().copy();_.translate(g.offsetX(),g.offsetY());const x=new Tt.Transform;x.multiply(w.copy().invert()).multiply(p).multiply(w).multiply(_);const v=x.decompose();g.setAttrs(v),(h=g.getLayer())===null||h===void 0||h.batchDraw()}),this.rotation(Tt.Util._getRotation(e.rotation)),this._nodes.forEach(g=>{this._fire("transform",{evt:n,target:g}),g._fire("transform",{evt:n,target:g})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,n){this.findOne(e).setAttrs(n)}update(){var e;const n=this._getNodeRect();this.rotation(Tt.Util._getRotation(n.rotation));const r=n.width,i=n.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),l=this.anchorSize(),u=this.find("._anchor");u.forEach(p=>{p.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+a,offsetY:l/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:l/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:l/2-a,offsetY:l/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:l/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:l/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:l/2+a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:l/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:l/2-a,offsetY:l/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*Tt.Util._sign(i)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const d=this.anchorStyleFunc();d&&u.forEach(p=>{d(p)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),t4.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return e4.Node.prototype.toObject.call(this)}clone(e){return e4.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}V1.Transformer=ft;ft.isTransforming=()=>b5>0;function nT(t){return t instanceof Array||Tt.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach(function(e){Vf.indexOf(e)===-1&&Tt.Util.warn("Unknown anchor name: "+e+". Available names are: "+Vf.join(", "))}),t||[]}ft.prototype.className="Transformer";(0,YE._registerNode)(ft);St.Factory.addGetterSetter(ft,"enabledAnchors",Vf,nT);St.Factory.addGetterSetter(ft,"flipEnabled",!0,(0,Xs.getBooleanValidator)());St.Factory.addGetterSetter(ft,"resizeEnabled",!0);St.Factory.addGetterSetter(ft,"anchorSize",10,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"rotateEnabled",!0);St.Factory.addGetterSetter(ft,"rotateLineVisible",!0);St.Factory.addGetterSetter(ft,"rotationSnaps",[]);St.Factory.addGetterSetter(ft,"rotateAnchorOffset",50,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"rotateAnchorCursor","crosshair");St.Factory.addGetterSetter(ft,"rotationSnapTolerance",5,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderEnabled",!0);St.Factory.addGetterSetter(ft,"anchorStroke","rgb(0, 161, 255)");St.Factory.addGetterSetter(ft,"anchorStrokeWidth",1,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"anchorFill","white");St.Factory.addGetterSetter(ft,"anchorCornerRadius",0,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderStroke","rgb(0, 161, 255)");St.Factory.addGetterSetter(ft,"borderStrokeWidth",1,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"borderDash");St.Factory.addGetterSetter(ft,"keepRatio",!0);St.Factory.addGetterSetter(ft,"shiftBehavior","default");St.Factory.addGetterSetter(ft,"centeredScaling",!1);St.Factory.addGetterSetter(ft,"ignoreStroke",!1);St.Factory.addGetterSetter(ft,"padding",0,(0,Xs.getNumberValidator)());St.Factory.addGetterSetter(ft,"node");St.Factory.addGetterSetter(ft,"nodes");St.Factory.addGetterSetter(ft,"boundBoxFunc");St.Factory.addGetterSetter(ft,"anchorDragBoundFunc");St.Factory.addGetterSetter(ft,"anchorStyleFunc");St.Factory.addGetterSetter(ft,"shouldOverdrawWholeArea",!1);St.Factory.addGetterSetter(ft,"useSingleNodeRotation",!0);St.Factory.backCompat(ft,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var q1={};Object.defineProperty(q1,"__esModule",{value:!0});q1.Wedge=void 0;const W1=at,rT=Mn,iT=$e,Sw=Xe,oT=$e;class Wo extends rT.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,iT.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}q1.Wedge=Wo;Wo.prototype.className="Wedge";Wo.prototype._centroid=!0;Wo.prototype._attrsAffectingSize=["radius"];(0,oT._registerNode)(Wo);W1.Factory.addGetterSetter(Wo,"radius",0,(0,Sw.getNumberValidator)());W1.Factory.addGetterSetter(Wo,"angle",0,(0,Sw.getNumberValidator)());W1.Factory.addGetterSetter(Wo,"clockwise",!1);W1.Factory.backCompat(Wo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var H1={};Object.defineProperty(H1,"__esModule",{value:!0});H1.Blur=void 0;const i4=at,sT=Ht,aT=Xe;function o4(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const lT=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],cT=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function uT(t,e){const n=t.data,r=t.width,i=t.height;let o,s,a,l,u,d,p,g,h,w,_,x,v,S,y,A,L,R,D,k,z,T,P,E,W=e+e+1,B=r-1,Q=i-1,ee=e+1,se=ee*(ee+1)/2,K=new o4,te=null,X=K,de=null,M=null,G=lT[e],H=cT[e];for(a=1;a<W;a++)X=X.next=new o4,a===ee&&(te=X);for(X.next=K,p=d=0,s=0;s<i;s++){for(A=L=R=D=g=h=w=_=0,x=ee*(k=n[d]),v=ee*(z=n[d+1]),S=ee*(T=n[d+2]),y=ee*(P=n[d+3]),g+=se*k,h+=se*z,w+=se*T,_+=se*P,X=K,a=0;a<ee;a++)X.r=k,X.g=z,X.b=T,X.a=P,X=X.next;for(a=1;a<ee;a++)l=d+((B<a?B:a)<<2),g+=(X.r=k=n[l])*(E=ee-a),h+=(X.g=z=n[l+1])*E,w+=(X.b=T=n[l+2])*E,_+=(X.a=P=n[l+3])*E,A+=k,L+=z,R+=T,D+=P,X=X.next;for(de=K,M=te,o=0;o<r;o++)n[d+3]=P=_*G>>H,P!==0?(P=255/P,n[d]=(g*G>>H)*P,n[d+1]=(h*G>>H)*P,n[d+2]=(w*G>>H)*P):n[d]=n[d+1]=n[d+2]=0,g-=x,h-=v,w-=S,_-=y,x-=de.r,v-=de.g,S-=de.b,y-=de.a,l=p+((l=o+e+1)<B?l:B)<<2,A+=de.r=n[l],L+=de.g=n[l+1],R+=de.b=n[l+2],D+=de.a=n[l+3],g+=A,h+=L,w+=R,_+=D,de=de.next,x+=k=M.r,v+=z=M.g,S+=T=M.b,y+=P=M.a,A-=k,L-=z,R-=T,D-=P,M=M.next,d+=4;p+=r}for(o=0;o<r;o++){for(L=R=D=A=h=w=_=g=0,d=o<<2,x=ee*(k=n[d]),v=ee*(z=n[d+1]),S=ee*(T=n[d+2]),y=ee*(P=n[d+3]),g+=se*k,h+=se*z,w+=se*T,_+=se*P,X=K,a=0;a<ee;a++)X.r=k,X.g=z,X.b=T,X.a=P,X=X.next;for(u=r,a=1;a<=e;a++)d=u+o<<2,g+=(X.r=k=n[d])*(E=ee-a),h+=(X.g=z=n[d+1])*E,w+=(X.b=T=n[d+2])*E,_+=(X.a=P=n[d+3])*E,A+=k,L+=z,R+=T,D+=P,X=X.next,a<Q&&(u+=r);for(d=o,de=K,M=te,s=0;s<i;s++)l=d<<2,n[l+3]=P=_*G>>H,P>0?(P=255/P,n[l]=(g*G>>H)*P,n[l+1]=(h*G>>H)*P,n[l+2]=(w*G>>H)*P):n[l]=n[l+1]=n[l+2]=0,g-=x,h-=v,w-=S,_-=y,x-=de.r,v-=de.g,S-=de.b,y-=de.a,l=o+((l=s+ee)<Q?l:Q)*r<<2,g+=A+=de.r=n[l],h+=L+=de.g=n[l+1],w+=R+=de.b=n[l+2],_+=D+=de.a=n[l+3],de=de.next,x+=k=M.r,v+=z=M.g,S+=T=M.b,y+=P=M.a,A-=k,L-=z,R-=T,D-=P,M=M.next,d+=r}}const hT=function(e){const n=Math.round(this.blurRadius());n>0&&uT(e,n)};H1.Blur=hT;i4.Factory.addGetterSetter(sT.Node,"blurRadius",0,(0,aT.getNumberValidator)(),i4.Factory.afterSetFilter);var Y1={};Object.defineProperty(Y1,"__esModule",{value:!0});Y1.Brighten=void 0;const s4=at,dT=Ht,fT=Xe,pT=function(t){let e=this.brightness()*255,n=t.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=e,n[i+1]+=e,n[i+2]+=e};Y1.Brighten=pT;s4.Factory.addGetterSetter(dT.Node,"brightness",0,(0,fT.getNumberValidator)(),s4.Factory.afterSetFilter);var K1={};Object.defineProperty(K1,"__esModule",{value:!0});K1.Contrast=void 0;const a4=at,gT=Ht,mT=Xe,vT=function(t){const e=Math.pow((this.contrast()+100)/100,2);let n=t.data,r=n.length,i=150,o=150,s=150,a;for(a=0;a<r;a+=4)i=n[a],o=n[a+1],s=n[a+2],i/=255,i-=.5,i*=e,i+=.5,i*=255,o/=255,o-=.5,o*=e,o+=.5,o*=255,s/=255,s-=.5,s*=e,s+=.5,s*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,n[a]=i,n[a+1]=o,n[a+2]=s};K1.Contrast=vT;a4.Factory.addGetterSetter(gT.Node,"contrast",0,(0,mT.getNumberValidator)(),a4.Factory.afterSetFilter);var X1={};Object.defineProperty(X1,"__esModule",{value:!0});X1.Emboss=void 0;const Os=at,$1=Ht,yT=Zt,xw=Xe,wT=function(t){let e=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),o=0,s=0,a=t.data,l=t.width,u=t.height,d=l*4,p=u;switch(r){case"top-left":o=-1,s=-1;break;case"top":o=-1,s=0;break;case"top-right":o=-1,s=1;break;case"right":o=0,s=1;break;case"bottom-right":o=1,s=1;break;case"bottom":o=1,s=0;break;case"bottom-left":o=1,s=-1;break;case"left":o=0,s=-1;break;default:yT.Util.error("Unknown emboss direction: "+r)}do{const g=(p-1)*d;let h=o;p+h<1&&(h=0),p+h>u&&(h=0);const w=(p-1+h)*l*4;let _=l;do{const x=g+(_-1)*4;let v=s;_+v<1&&(v=0),_+v>l&&(v=0);const S=w+(_-1+v)*4,y=a[x]-a[S],A=a[x+1]-a[S+1],L=a[x+2]-a[S+2];let R=y;const D=R>0?R:-R,k=A>0?A:-A,z=L>0?L:-L;if(k>D&&(R=A),z>D&&(R=L),R*=e,i){const T=a[x]+R,P=a[x+1]+R,E=a[x+2]+R;a[x]=T>255?255:T<0?0:T,a[x+1]=P>255?255:P<0?0:P,a[x+2]=E>255?255:E<0?0:E}else{let T=n-R;T<0?T=0:T>255&&(T=255),a[x]=a[x+1]=a[x+2]=T}}while(--_)}while(--p)};X1.Emboss=wT;Os.Factory.addGetterSetter($1.Node,"embossStrength",.5,(0,xw.getNumberValidator)(),Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossWhiteLevel",.5,(0,xw.getNumberValidator)(),Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossDirection","top-left",null,Os.Factory.afterSetFilter);Os.Factory.addGetterSetter($1.Node,"embossBlend",!1,null,Os.Factory.afterSetFilter);var Q1={};Object.defineProperty(Q1,"__esModule",{value:!0});Q1.Enhance=void 0;const l4=at,bT=Ht,_T=Xe;function Xp(t,e,n,r,i){let o=n-e,s=i-r,a;return o===0?r+s/2:s===0?r:(a=(t-e)/o,a=s*a+r,a)}const ST=function(t){let e=t.data,n=e.length,r=e[0],i=r,o,s=e[1],a=s,l,u=e[2],d=u,p,g;const h=this.enhance();if(h===0)return;for(g=0;g<n;g+=4)o=e[g+0],o<r?r=o:o>i&&(i=o),l=e[g+1],l<s?s=l:l>a&&(a=l),p=e[g+2],p<u?u=p:p>d&&(d=p);i===r&&(i=255,r=0),a===s&&(a=255,s=0),d===u&&(d=255,u=0);let w,_,x,v,S,y,A,L,R;for(h>0?(_=i+h*(255-i),x=r-h*(r-0),S=a+h*(255-a),y=s-h*(s-0),L=d+h*(255-d),R=u-h*(u-0)):(w=(i+r)*.5,_=i+h*(i-w),x=r+h*(r-w),v=(a+s)*.5,S=a+h*(a-v),y=s+h*(s-v),A=(d+u)*.5,L=d+h*(d-A),R=u+h*(u-A)),g=0;g<n;g+=4)e[g+0]=Xp(e[g+0],r,i,x,_),e[g+1]=Xp(e[g+1],s,a,y,S),e[g+2]=Xp(e[g+2],u,d,R,L)};Q1.Enhance=ST;l4.Factory.addGetterSetter(bT.Node,"enhance",0,(0,_T.getNumberValidator)(),l4.Factory.afterSetFilter);var J1={};Object.defineProperty(J1,"__esModule",{value:!0});J1.Grayscale=void 0;const xT=function(t){let e=t.data,n=e.length,r,i;for(r=0;r<n;r+=4)i=.34*e[r]+.5*e[r+1]+.16*e[r+2],e[r]=i,e[r+1]=i,e[r+2]=i};J1.Grayscale=xT;var Z1={};Object.defineProperty(Z1,"__esModule",{value:!0});Z1.HSL=void 0;const uc=at,Gg=Ht,Vg=Xe;uc.Factory.addGetterSetter(Gg.Node,"hue",0,(0,Vg.getNumberValidator)(),uc.Factory.afterSetFilter);uc.Factory.addGetterSetter(Gg.Node,"saturation",0,(0,Vg.getNumberValidator)(),uc.Factory.afterSetFilter);uc.Factory.addGetterSetter(Gg.Node,"luminance",0,(0,Vg.getNumberValidator)(),uc.Factory.afterSetFilter);const AT=function(t){let e=t.data,n=e.length,r=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=this.luminance()*127,a;const l=r*i*Math.cos(o*Math.PI/180),u=r*i*Math.sin(o*Math.PI/180),d=.299*r+.701*l+.167*u,p=.587*r-.587*l+.33*u,g=.114*r-.114*l-.497*u,h=.299*r-.299*l-.328*u,w=.587*r+.413*l+.035*u,_=.114*r-.114*l+.293*u,x=.299*r-.3*l+1.25*u,v=.587*r-.586*l-1.05*u,S=.114*r+.886*l-.2*u;let y,A,L,R;for(a=0;a<n;a+=4)y=e[a+0],A=e[a+1],L=e[a+2],R=e[a+3],e[a+0]=d*y+p*A+g*L+s,e[a+1]=h*y+w*A+_*L+s,e[a+2]=x*y+v*A+S*L+s,e[a+3]=R};Z1.HSL=AT;var e0={};Object.defineProperty(e0,"__esModule",{value:!0});e0.HSV=void 0;const hc=at,qg=Ht,Wg=Xe,NT=function(t){const e=t.data,n=e.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=r*i*Math.cos(o*Math.PI/180),a=r*i*Math.sin(o*Math.PI/180),l=.299*r+.701*s+.167*a,u=.587*r-.587*s+.33*a,d=.114*r-.114*s-.497*a,p=.299*r-.299*s-.328*a,g=.587*r+.413*s+.035*a,h=.114*r-.114*s+.293*a,w=.299*r-.3*s+1.25*a,_=.587*r-.586*s-1.05*a,x=.114*r+.886*s-.2*a;let v,S,y,A;for(let L=0;L<n;L+=4)v=e[L+0],S=e[L+1],y=e[L+2],A=e[L+3],e[L+0]=l*v+u*S+d*y,e[L+1]=p*v+g*S+h*y,e[L+2]=w*v+_*S+x*y,e[L+3]=A};e0.HSV=NT;hc.Factory.addGetterSetter(qg.Node,"hue",0,(0,Wg.getNumberValidator)(),hc.Factory.afterSetFilter);hc.Factory.addGetterSetter(qg.Node,"saturation",0,(0,Wg.getNumberValidator)(),hc.Factory.afterSetFilter);hc.Factory.addGetterSetter(qg.Node,"value",0,(0,Wg.getNumberValidator)(),hc.Factory.afterSetFilter);var t0={};Object.defineProperty(t0,"__esModule",{value:!0});t0.Invert=void 0;const CT=function(t){let e=t.data,n=e.length,r;for(r=0;r<n;r+=4)e[r]=255-e[r],e[r+1]=255-e[r+1],e[r+2]=255-e[r+2]};t0.Invert=CT;var n0={};Object.defineProperty(n0,"__esModule",{value:!0});n0.Kaleidoscope=void 0;const qf=at,Aw=Ht,c4=Zt,Nw=Xe,PT=function(t,e,n){let r=t.data,i=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2,u,d,p,g=0,h=0,w=0,_=0,x,v=Math.sqrt(a*a+l*l);d=o-a,p=s-l,x=Math.sqrt(d*d+p*p),v=x>v?x:v;let S=s,y=o,A,L,R=360/y*Math.PI/180,D,k;for(L=0;L<y;L+=1)for(D=Math.sin(L*R),k=Math.cos(L*R),A=0;A<S;A+=1)d=Math.floor(a+v*A/S*k),p=Math.floor(l+v*A/S*D),u=(p*o+d)*4,g=r[u+0],h=r[u+1],w=r[u+2],_=r[u+3],u=(L+A*o)*4,i[u+0]=g,i[u+1]=h,i[u+2]=w,i[u+3]=_},LT=function(t,e,n){let r=t.data,i=e.data,o=t.width,s=t.height,a=n.polarCenterX||o/2,l=n.polarCenterY||s/2,u,d,p,g,h,w=0,_=0,x=0,v=0,S,y=Math.sqrt(a*a+l*l);d=o-a,p=s-l,S=Math.sqrt(d*d+p*p),y=S>y?S:y;let A=s,L=o,R,D,k=0,z,T;for(d=0;d<o;d+=1)for(p=0;p<s;p+=1)g=d-a,h=p-l,R=Math.sqrt(g*g+h*h)*A/y,D=(Math.atan2(h,g)*180/Math.PI+360+k)%360,D=D*L/360,z=Math.floor(D),T=Math.floor(R),u=(T*o+z)*4,w=r[u+0],_=r[u+1],x=r[u+2],v=r[u+3],u=(p*o+d)*4,i[u+0]=w,i[u+1]=_,i[u+2]=x,i[u+3]=v},kT=function(t){const e=t.width,n=t.height;let r,i,o,s,a,l,u,d,p,g,h=Math.round(this.kaleidoscopePower());const w=Math.round(this.kaleidoscopeAngle()),_=Math.floor(e*(w%360)/360);if(h<1)return;const x=c4.Util.createCanvasElement();x.width=e,x.height=n;const v=x.getContext("2d").getImageData(0,0,e,n);c4.Util.releaseCanvas(x),PT(t,v,{polarCenterX:e/2,polarCenterY:n/2});let S=e/Math.pow(2,h);for(;S<=8;)S=S*2,h-=1;S=Math.ceil(S);let y=S,A=0,L=y,R=1;for(_+S>e&&(A=y,L=0,R=-1),i=0;i<n;i+=1)for(r=A;r!==L;r+=R)o=Math.round(r+_)%e,p=(e*i+o)*4,a=v.data[p+0],l=v.data[p+1],u=v.data[p+2],d=v.data[p+3],g=(e*i+r)*4,v.data[g+0]=a,v.data[g+1]=l,v.data[g+2]=u,v.data[g+3]=d;for(i=0;i<n;i+=1)for(y=Math.floor(S),s=0;s<h;s+=1){for(r=0;r<y+1;r+=1)p=(e*i+r)*4,a=v.data[p+0],l=v.data[p+1],u=v.data[p+2],d=v.data[p+3],g=(e*i+y*2-r-1)*4,v.data[g+0]=a,v.data[g+1]=l,v.data[g+2]=u,v.data[g+3]=d;y*=2}LT(v,t,{polarRotation:0})};n0.Kaleidoscope=kT;qf.Factory.addGetterSetter(Aw.Node,"kaleidoscopePower",2,(0,Nw.getNumberValidator)(),qf.Factory.afterSetFilter);qf.Factory.addGetterSetter(Aw.Node,"kaleidoscopeAngle",0,(0,Nw.getNumberValidator)(),qf.Factory.afterSetFilter);var r0={};Object.defineProperty(r0,"__esModule",{value:!0});r0.Mask=void 0;const u4=at,ET=Ht,TT=Xe;function Bd(t,e,n){let r=(n*t.width+e)*4;const i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function yu(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function MT(t){const e=[0,0,0];for(let n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function jT(t,e){const n=Bd(t,0,0),r=Bd(t,t.width-1,0),i=Bd(t,0,t.height-1),o=Bd(t,t.width-1,t.height-1),s=e||10;if(yu(n,r)<s&&yu(r,o)<s&&yu(o,i)<s&&yu(i,n)<s){const a=MT([r,n,o,i]),l=[];for(let u=0;u<t.width*t.height;u++){const d=yu(a,[t.data[u*4],t.data[u*4+1],t.data[u*4+2]]);l[u]=d<s?0:255}return l}}function FT(t,e){for(let n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function IT(t,e,n){const r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,x=r[p*i+g];d+=t[_]*x}}s[u]=d===255*8?255:0}return s}function OT(t,e,n){const r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,x=r[p*i+g];d+=t[_]*x}}s[u]=d>=255*4?255:0}return s}function RT(t,e,n){const r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),s=[];for(let a=0;a<n;a++)for(let l=0;l<e;l++){const u=a*e+l;let d=0;for(let p=0;p<i;p++)for(let g=0;g<i;g++){const h=a+p-o,w=l+g-o;if(h>=0&&h<n&&w>=0&&w<e){const _=h*e+w,x=r[p*i+g];d+=t[_]*x}}s[u]=d}return s}const BT=function(t){let e=this.threshold(),n=jT(t,e);return n&&(n=IT(n,t.width,t.height),n=OT(n,t.width,t.height),n=RT(n,t.width,t.height),FT(t,n)),t};r0.Mask=BT;u4.Factory.addGetterSetter(ET.Node,"threshold",0,(0,TT.getNumberValidator)(),u4.Factory.afterSetFilter);var i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.Noise=void 0;const h4=at,DT=Ht,UT=Xe,zT=function(t){const e=this.noise()*255,n=t.data,r=n.length,i=e/2;for(let o=0;o<r;o+=4)n[o+0]+=i-2*i*Math.random(),n[o+1]+=i-2*i*Math.random(),n[o+2]+=i-2*i*Math.random()};i0.Noise=zT;h4.Factory.addGetterSetter(DT.Node,"noise",.2,(0,UT.getNumberValidator)(),h4.Factory.afterSetFilter);var o0={};Object.defineProperty(o0,"__esModule",{value:!0});o0.Pixelate=void 0;const d4=at,GT=Zt,VT=Ht,qT=Xe,WT=function(t){let e=Math.ceil(this.pixelSize()),n=t.width,r=t.height,i,o,s,a,l,u,d,p=Math.ceil(n/e),g=Math.ceil(r/e),h,w,_,x,v,S,y,A=t.data;if(e<=0){GT.Util.error("pixelSize value can not be <= 0");return}for(v=0;v<p;v+=1)for(S=0;S<g;S+=1){for(a=0,l=0,u=0,d=0,h=v*e,w=h+e,_=S*e,x=_+e,y=0,i=h;i<w;i+=1)if(!(i>=n))for(o=_;o<x;o+=1)o>=r||(s=(n*o+i)*4,a+=A[s+0],l+=A[s+1],u+=A[s+2],d+=A[s+3],y+=1);for(a=a/y,l=l/y,u=u/y,d=d/y,i=h;i<w;i+=1)if(!(i>=n))for(o=_;o<x;o+=1)o>=r||(s=(n*o+i)*4,A[s+0]=a,A[s+1]=l,A[s+2]=u,A[s+3]=d)}};o0.Pixelate=WT;d4.Factory.addGetterSetter(VT.Node,"pixelSize",8,(0,qT.getNumberValidator)(),d4.Factory.afterSetFilter);var s0={};Object.defineProperty(s0,"__esModule",{value:!0});s0.Posterize=void 0;const f4=at,HT=Ht,YT=Xe,KT=function(t){let e=Math.round(this.levels()*254)+1,n=t.data,r=n.length,i=255/e,o;for(o=0;o<r;o+=1)n[o]=Math.floor(n[o]/i)*i};s0.Posterize=KT;f4.Factory.addGetterSetter(HT.Node,"levels",.5,(0,YT.getNumberValidator)(),f4.Factory.afterSetFilter);var a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.RGB=void 0;const Wf=at,Hg=Ht,XT=Xe,$T=function(t){let e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),s,a;for(s=0;s<n;s+=4)a=(.34*e[s]+.5*e[s+1]+.16*e[s+2])/255,e[s]=a*r,e[s+1]=a*i,e[s+2]=a*o,e[s+3]=e[s+3]};a0.RGB=$T;Wf.Factory.addGetterSetter(Hg.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Wf.Factory.addGetterSetter(Hg.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});Wf.Factory.addGetterSetter(Hg.Node,"blue",0,XT.RGBComponent,Wf.Factory.afterSetFilter);var l0={};Object.defineProperty(l0,"__esModule",{value:!0});l0.RGBA=void 0;const lh=at,c0=Ht,QT=Xe,JT=function(t){const e=t.data,n=e.length,r=this.red(),i=this.green(),o=this.blue(),s=this.alpha();for(let a=0;a<n;a+=4){const l=1-s;e[a]=r*s+e[a]*l,e[a+1]=i*s+e[a+1]*l,e[a+2]=o*s+e[a+2]*l}};l0.RGBA=JT;lh.Factory.addGetterSetter(c0.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});lh.Factory.addGetterSetter(c0.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)});lh.Factory.addGetterSetter(c0.Node,"blue",0,QT.RGBComponent,lh.Factory.afterSetFilter);lh.Factory.addGetterSetter(c0.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t});var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.Sepia=void 0;const ZT=function(t){let e=t.data,n=e.length,r,i,o,s;for(r=0;r<n;r+=4)i=e[r+0],o=e[r+1],s=e[r+2],e[r+0]=Math.min(255,i*.393+o*.769+s*.189),e[r+1]=Math.min(255,i*.349+o*.686+s*.168),e[r+2]=Math.min(255,i*.272+o*.534+s*.131)};u0.Sepia=ZT;var h0={};Object.defineProperty(h0,"__esModule",{value:!0});h0.Solarize=void 0;const eM=function(t){const e=t.data,n=t.width,r=t.height,i=n*4;let o=r;do{const s=(o-1)*i;let a=n;do{const l=s+(a-1)*4;let u=e[l],d=e[l+1],p=e[l+2];u>127&&(u=255-u),d>127&&(d=255-d),p>127&&(p=255-p),e[l]=u,e[l+1]=d,e[l+2]=p}while(--a)}while(--o)};h0.Solarize=eM;var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.Threshold=void 0;const p4=at,tM=Ht,nM=Xe,rM=function(t){const e=this.threshold()*255,n=t.data,r=n.length;for(let i=0;i<r;i+=1)n[i]=n[i]<e?0:255};d0.Threshold=rM;p4.Factory.addGetterSetter(tM.Node,"threshold",.5,(0,nM.getNumberValidator)(),p4.Factory.afterSetFilter);Object.defineProperty(_1,"__esModule",{value:!0});_1.Konva=void 0;const g4=q8,iM=P1,oM=E1,sM=j1,aM=F1,lM=I1,m4=cc,cM=bh,uM=Ac,hM=Sh,dM=B1,fM=D1,pM=U1,gM=z1,mM=Cc,vM=G1,yM=V1,wM=q1,bM=H1,_M=Y1,SM=K1,xM=X1,AM=Q1,NM=J1,CM=Z1,PM=e0,LM=t0,kM=n0,EM=r0,TM=i0,MM=o0,jM=s0,FM=a0,IM=l0,OM=u0,RM=h0,BM=d0;_1.Konva=g4.Konva.Util._assign(g4.Konva,{Arc:iM.Arc,Arrow:oM.Arrow,Circle:sM.Circle,Ellipse:aM.Ellipse,Image:lM.Image,Label:m4.Label,Tag:m4.Tag,Line:cM.Line,Path:uM.Path,Rect:hM.Rect,RegularPolygon:dM.RegularPolygon,Ring:fM.Ring,Sprite:pM.Sprite,Star:gM.Star,Text:mM.Text,TextPath:vM.TextPath,Transformer:yM.Transformer,Wedge:wM.Wedge,Filters:{Blur:bM.Blur,Brighten:_M.Brighten,Contrast:SM.Contrast,Emboss:xM.Emboss,Enhance:AM.Enhance,Grayscale:NM.Grayscale,HSL:CM.HSL,HSV:PM.HSV,Invert:LM.Invert,Kaleidoscope:kM.Kaleidoscope,Mask:EM.Mask,Noise:TM.Noise,Pixelate:MM.Pixelate,Posterize:jM.Posterize,RGB:FM.RGB,RGBA:IM.RGBA,Sepia:OM.Sepia,Solarize:RM.Solarize,Threshold:BM.Threshold}});var DM=Mg.exports;Object.defineProperty(DM,"__esModule",{value:!0});const UM=_1;Mg.exports=UM.Konva;var zM=Mg.exports;const Kt=Kf(zM);class xh extends Kt.Shape{constructor(e,n,r,i){if(new.target===xh)throw new Error("Cannot instantiate abstract class BaseShape directly.");super(e),this.layer=n,this.blockSize=r,this._type="",this.snappable=i,this._info={},this.eventName="",this.infoText=null,this.floorNum,this.shadowForStrokeEnabled(!1),this.on("mouseover",()=>document.body.style.cursor="pointer"),this.on("mouseout",()=>document.body.style.cursor="default"),this.on("click",o=>{o.evt.altKey&&(this.moveToTop(),this.getLayer().find("Transformer").forEach(s=>s.moveToTop()))}),i&&(this.on("dragend",this.snapToGrid.bind(this)),this.on("dblclick",this.snapToGrid.bind(this))),this.on("transform",()=>{const o=this.scaleX(),s=this.scaleY();this.strokeWidth(1/Math.max(o,s))}),this.on("dragmove",()=>{this.infoText&&this.updateTextPosition()})}loadInfo(e){console.log("Abstract function")}initText(){this.textOffsetX=0,this.textOffsetY=-30,this.infoText=new Kt.Text({x:this.x()+this.textOffsetX,y:this.y()+this.textOffsetY,text:this._info.name,fontSize:12,fontFamily:"Verdana",fill:"white"})}updateTextPosition(){this.infoText&&(this.infoText.x(this.x()+this.textOffsetX),this.infoText.y(this.y()+this.textOffsetY))}displayName(e){this.infoText&&(this.infoText.text(this._info.name),e.add(this.infoText))}destroy(){super.destroy(),this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}setInfo(e){this.info=e}load(){console.log("Abstract function")}_sceneFunc(e){let n=this.width(),r=this.height();e.beginPath(),e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}clearText(){this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}updateText(e){this.infoText.text=e,console.log("Updated text to : "+e)}snapToGrid(){this.position({x:Math.round(this.x()/this.blockSize)*this.blockSize,y:Math.round(this.y()/this.blockSize)*this.blockSize})}saveShapeDetails(){console.log("This shape does not contain information")}get info(){return this._info}set info(e){this._info=e}get type(){return this._type}set type(e){this._type=e}}class oo extends xh{constructor(e,n,r,i){if(new.target===oo)throw new Error("Cannot instantiate abstract class NodeShape directly.");super(e,n,r,i),this.connectionLines=[],this.connLine=new Kt.Line({stroke:"rgba(245,37,37,0.85)",dash:[2,3],strokeWidth:2,lineCap:"round",lineJoin:"miter",opacity:.8}),this.connLine.cache(),this.on("dragmove",()=>{this.connectionLines.forEach(o=>{console.log("other",o.otherShape);let s=[this.x(),this.y(),o.otherShape.x(),o.otherShape.y()];o.line.points(s)})})}connect(e,n=!0){if(e.info.selectedPins.includes(this.info.name)||(console.log("vleze conn 2ds"),e.info.selectedPins.push(this.info.name)),!n)return;const r=this.connLine.clone({points:[this.x(),this.y(),e.x(),e.y()]});let i={line:r,otherShape:e};this.connectionLines.push(i);let o={line:r,otherShape:this};e.addLineReference(o),this.layer.add(i.line)}addLineReference(e){this.connectionLines.push(e)}removeLineWrapper(e){this.connectionLines=this.connectionLines.filter(n=>n.otherShape!==e)}removeConnection(e){this.info.selectedPins=this.info.selectedPins.filter(n=>n!==e.info.name)}removeConnectionLine(e){this.connectionLines.forEach(n=>{n.otherShape===e&&(n.line.remove(),e.removeLineWrapper(this),this.removeLineWrapper(e))})}destroy(){super.destroy(),this.connectionLines.forEach(e=>{e.line.remove(),e.otherShape.removeLineWrapper(this)})}}class Yg extends oo{constructor(e,n){e.fromLoad||(e.height*=2),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(126,238,167)",stroke:"#252627",strokeWidth:1,opacity:.9,name:"mapObj",draggable:!0,rotation:e.rotation,zIndex:1},e.layer,e.blockSize,e.snap),this.type="Entrance",this.eventName="openEntranceModalEvent",this.floorNum=e.floorNum,this.id=n,this._info={name:`Entrance${n} [${this.floorNum}F]`,connectedRoom:"",description:"",isMainEntrance:!1,selectedPin:"",selectedPins:[]},this.initText(),this.moveToTop()}loadInfo(e){this.info.name=e.obj_name,this.info.connectedRoom=e.connected_room,this.info.description=e.description,this.info.isMainEntrance=e.is_main_entrance,this.info.selectedPins=e.connected_pins,this.floorNum=e.floor_num}saveShapeDetails(){console.info("fnum entrance",this.attrs.floorNum),this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("obj_name",this.info.name),this.setAttr("description",this.info.description),this.setAttr("is_main_entrance",this.info.isMainEntrance),this.setAttr("connected_room",this.info.connectedRoom),this.setAttr("floor_num",this.floorNum)}connect(e,n=!0){this.floorNum===e.floorNum&&super.connect(e)}setInfo(e){console.log("SA VIKNA SETINFO"),this.info=e,this.info.connectedRoom==null||this.info.connectedRoom===""?(this.strokeWidth(2),this.stroke("#a10114")):(this.strokeWidth(1),this.stroke("black"))}}Yg.prototype.className="Entrance";$e._registerNode(Yg);class Kg extends xh{constructor(e){e.fromLoad||(e.height*=8),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"#d3d3d3",stroke:"grey",strokeWidth:1,name:"mapObj",draggable:!0,rotation:e.rotation,zIndex:0},e.layer,e.blockSize,e.snap),this.type="Wall",this.floorNum=e.floorNum}loadInfo(e){this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("floor_num",this.floorNum)}}Kg.prototype.className="Wall";$e._registerNode(Kg);class Xg extends xh{constructor(e,n){e.fromLoad||(e.width*=12,e.height*=8),console.log(e.position,"hehe"),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(86,168,253)",stroke:"grey",strokeWidth:1,name:"mapObj",rotation:e.rotation,draggable:!0},e.layer,e.blockSize,e.snap),this.floorNum=e.floorNum,this._info={name:`Room${n} [${this.floorNum}F]`,type:"",description:""},this.type="Room",this.eventName="openRoomModalEvent",this.id=n,this.initText()}loadInfo(e){this.info.name=e.obj_name,this.info.type=e.room_type,this.info.description=e.description,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("obj_name",this.info.name),this.setAttr("room_type",this.info.type),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum)}}Xg.prototype.className="Room";$e._registerNode(Xg);class $g extends oo{constructor(e,n){e.snap=!1,super({x:e.position.x,y:e.position.y,radiusX:e.blockSize*.5,radiusY:e.blockSize*.7,tailHeight:e.blockSize*1.2,fill:"#f60000",stroke:"#1b1b1b",strokeWidth:1,draggable:!0,name:"mapObj"},e.layer,e.blockSize,e.snap),this.id=n,this.eventName="openPinModalEvent",this.floorNum=e.floorNum,this.type="InfoPin",this._info={name:`Pin${n} [${this.floorNum}F]`,selectedPins:[],description:""},this.on("mouseover",()=>{this.fill("#FFD700")}),this.on("mouseout",()=>{this.fill("#f60000")}),this.initText()}_sceneFunc(e,n){const{radiusX:r,radiusY:i,tailHeight:o}=this.attrs;e.beginPath(),e.ellipse(0,0,r,i,0,0,Math.PI*2),e.closePath(),e.fillStrokeShape(n),e.beginPath(),e.moveTo(-r,i),e.lineTo(0,i+o),e.lineTo(r,i),e.closePath(),e.fillStrokeShape(n)}loadInfo(e){this.info.name=e.obj_name,this.info.selectedPins=e.connected_pins,this.info.description=e.description,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("obj_name",this.info.name),this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum),console.log(this.info,"vnatre vo info")}connect(e,n=!0){this.floorNum===e.floorNum&&super.connect(e)}}$g.prototype.className="InfoPin";$e._registerNode($g);class Pc extends Kt.Shape{constructor(e){if(new.target===Pc)throw new Error("Cannot instantiate abstract class RenderedMapShape directly.");super(e),this.info={name:"",description:"",type:""},this.class="Rect",this.infoText=null,this.textOffsetX=0,this.textOffsetY=0,this.eventName=""}initText(){const e=this.width(),n=this.height();this.infoText=new Kt.Text({x:this.x(),y:this.y(),text:this.info.name||"no name",fontSize:10,fontFamily:"Exo",fill:"black",align:"center",verticalAlign:"middle"}),this.infoText.offsetX(this.infoText.width()/2),this.infoText.offsetY(this.infoText.height()/2),this.infoText.x(this.x()+e/2),this.infoText.y(this.y()+n/2),this.infoText.rotation(this.rotation())}updateTextPosition(){this.infoText&&(this.infoText.x(this.x()+this.textOffsetX),this.infoText.y(this.y()+this.textOffsetY))}clearText(){this.infoText!==null&&(this.infoText.remove(),console.log("cleared text"))}_sceneFunc(e){let n=this.width(),r=this.height();const i=this.attrs.cornerRadius;e.beginPath(),i?Kt.Util.drawRoundedRectPath(e,n,r,i):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}displayName(e){this.infoText!=null&&e.add(this.infoText)}}class Qg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#A2D9FF",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3}),console.info("FNUM RENDER:",e.floor_num),this.floorNum=e.floor_num,this.info.name=e.obj_name,this.info.type=e.room_type,this.info.description=e.description,this.class="Room",this.textOffsetX=-50,this.eventName="openRoomInfoPanel",this.on("mouseenter",()=>{console.log(this.info.name,"NAME"),this.fill("#65c3f8")}),this.on("mouseleave",()=>{this.fill("#A2D9FF")}),this.initText()}highlight(){this.fill("rgba(29,238,78,0.49)"),this.strokeWidth(2)}unHighlight(){this.fill("#A2D9FF"),this.strokeWidth(1)}}Qg.prototype.className="RenderedRoom";$e._registerNode(Qg);class Jg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#7fef83",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3,zIndex:0}),this.info.name=e.obj_name,this.info.description=e.description,this.info.isMainEntrance=e.is_main_entrance,this.floorNum=e.floor_num,this.class="Entrance",console.log("ATTRS VIEW:  "+e),this.on("mouseenter",()=>{this.stroke("purple")}),this.on("mouseleave",()=>{this.opacity(1),this.stroke("black")})}}Jg.prototype.className="RenderedEntrance";$e._registerNode(Jg);class Zg extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"#4B4B4B",stroke:"black",strokeWidth:1,draggable:!1,rotation:e.rotation,cornerRadius:3})}}Zg.prototype.className="RenderedWall";$e._registerNode(Zg);class em extends oo{constructor(e,n){e.fromLoad||(e.width*=4),super({x:e.position.x,y:e.position.y,width:e.width*e.scaleX,height:e.height*e.scaleY,fill:"rgb(225,213,124)",stroke:"rgb(16,15,15)",strokeWidth:1,name:"mapObj",rotation:e.rotation,draggable:!0},e.layer,e.blockSize,e.snap),this.floorNum=e.floorNum,this.type="Stairs",this._info={name:`Stairs${n} [${this.floorNum}F]`,description:"",selectedPins:[]},this.id=n,this.eventName="openStairsModalEvent",this.initText()}_sceneFunc(e,n){const{width:r,height:i}=this.attrs;let o=5;e.beginPath();for(let s=0;s<o;s++)e.rect(-this.blockSize*s,this.blockSize*.6*s,r*.86,i/2),e.fillStrokeShape(n);e.closePath()}loadInfo(e){this.info.name=e.obj_name,this.info.description=e.description,this.info.selectedPins=e.connected_pins,this.floorNum=e.floor_num}saveShapeDetails(){this.setAttr("connected_pins",this.info.selectedPins),this.setAttr("obj_name",this.info.name),this.setAttr("description",this.info.description),this.setAttr("floor_num",this.floorNum)}connect(e,n=!0){let r=this.floorNum===e.floorNum;super.connect(e,r)}}em.prototype.className="Stairs";$e._registerNode(em);class tm extends Pc{constructor(e,n,r){super({x:e.x,y:e.y,width:e.width,height:e.height,fill:"rgb(199,190,133)",stroke:"rgb(16,15,15)",strokeWidth:1,name:"mapObj",rotation:e.rotation}),this.floorNum=e.floor_num,this.info.name=e.obj_name}_sceneFunc(e,n){const{width:r,height:i}=this.attrs;let o=5,s=10;e.beginPath();for(let a=0;a<o;a++)e.rect(-s*a,s*.6*a,r*.86,i/2),e.fillStrokeShape(n);e.closePath()}}tm.prototype.className="RenderedStairs";$e._registerNode(tm);const Cw={infoPin:0,wall:0,entrance:0,room:0,stairs:0},Dd=t=>{Cw[t]++},Ud=t=>Cw[t];class ya{static createShape(e,n){console.log(n,"attrs in factory"),console.log("position in factory: "+n.position.x);let r=n.scaleX?parseFloat(n.scaleX):1,i=n.scaleY?parseFloat(n.scaleY):1;switch(n.scaleX=r,n.scaleY=i,e){case"Entrance":return n.increment&&Dd("entrance"),new Yg(n,Ud("entrance"));case"Room":return n.increment&&Dd("room"),new Xg(n,Ud("room"));case"Wall":return new Kg(n);case"InfoPin":return n.increment&&Dd("infoPin"),new $g(n,Ud("infoPin"));case"Stairs":return n.increment&&Dd("stairs"),new em(n,Ud("stairs"));default:throw new Error("Invalid shape type: "+e)}}static createRenderedShape(e,n){let r=n.scaleX?parseFloat(n.scaleX):1,i=n.scaleY?parseFloat(n.scaleY):1;switch(n.width*=r,n.height*=i,console.log("SCALEX "+r),console.log("SCALEY "+i),e){case"Entrance":return new Jg(n,r,i);case"Room":return new Qg(n,r,i);case"Wall":return new Zg(n,r,i);case"Stairs":return new tm(n,r,i);default:throw new Error("Invalid shape type."+e)}}}const Pw=(t,e,n=!1)=>{if(n&&!t.evt.shiftKey)return;t.evt.preventDefault();const r=t.evt.deltaY>0?.85:1.2,i=e.scaleX();let o=i*r;const s=e.getRelativePointerPosition();let a={x:(s.x-e.x())/i,y:(s.y-e.y())/i};e.scale({x:o,y:o});let l={x:s.x-a.x*o,y:s.y-a.y*o};e.position(l),e.batchDraw()},lf=(t,e,n)=>{t.on(n,()=>{const r=t.eventName;if(r){const i={room:t,map:e},o=new CustomEvent(r,{detail:i});window.dispatchEvent(o)}})};class dc{static findAllByType(...e){return on.getShapes().filter(n=>e.includes(n.className))}static findNodeByName(e,n){return e.filter(r=>r instanceof oo&&r.info.name===n)[0]}static findAllByTypeAndFloor(e,...n){return on.getShapes().filter(r=>n.includes(r.className)&&r.floorNum===e)}static getAllNodes(e=null){return on.getShapes(e).filter(n=>n instanceof oo)}}class Ru{constructor(){return Ru.instance||(this.store={floors:{}},Ru.instance=this),Ru.instance}getShapes(e=null){return this.store.floors[e]||(this.store.floors[e]=[]),e!=null?this.store.floors[e]:Object.values(this.store.floors).flat()}add(e){console.log("floor: "+e.floorNum),this.store.floors[e.floorNum]||(this.store.floors[e.floorNum]=[]),this.store.floors[e.floorNum].push(e)}delete(e){const n=this.store.floors[e.floorNum];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}clear(e=null){if(e!=null){const n=this.store.floors[e];Array.isArray(n)&&(n.forEach(r=>r.destroy()),this.store.floors[e]=[])}else Object.keys(this.store.floors).forEach(n=>{const r=this.store.floors[n];Array.isArray(r)&&(r.forEach(i=>i.destroy()),this.store.floors[n]=[])})}updateConnections(){Object.values(this.store.floors).forEach(e=>{e.forEach(n=>{(n.className==="InfoPin"||n.className==="Entrance"||n.className==="Stairs")&&n.info.selectedPins.forEach(r=>{const i=e.find(o=>o.info.name===r);i&&(i.className==="InfoPin"||i.className==="Entrance"||i.className==="Stairs")&&(i.info.selectedPins.includes(n.info.name)||i.info.selectedPins.push(n.info.name))})})})}drawConnection(e,n){const r=Object.values(this.store.floors).flat().find(o=>o instanceof oo&&o.info.name===e),i=Object.values(this.store.floors).flat().find(o=>o instanceof oo&&o.info.name===n);console.log("NODE1: "+JSON.stringify(r)),console.log("NODE2: "+JSON.stringify(i)),r&&i?(r.connect(i),console.log("N1",r.info.selectedPins,"N2",i.info.selectedPins)):console.error("Cant find node1 or node 2.","Node1: "+r,"Node2: "+i)}removeConnection(e,n){let r=Object.values(this.store.floors).flat(),i=dc.findNodeByName(r,e),o=dc.findNodeByName(r,n);i.floorNum===o.floorNum&&i.removeConnectionLine(o),Object.values(this.store.floors).flat().filter(s=>s.info.name===e||s.info.name===n).forEach(s=>{s.info.name===e?s.info.selectedPins=s.info.selectedPins.filter(a=>a!==n):s.info.selectedPins=s.info.selectedPins.filter(a=>a!==e)}),console.log("Remove")}saveDetails(){Object.values(this.store.floors).flat().forEach(e=>{e.saveShapeDetails(),console.log(e.info)})}}const on=new Ru;Object.freeze(on);class nm{constructor(e,n,r){this.container=document.getElementById(e),this.stage=new Kt.Stage({container:e,width:this.container.clientWidth,height:this.container.clientHeight}),this._floorNum=n,this.mapName=r,this.gridLayer=new Kt.Layer,this.mainLayer=new Kt.Layer,this.dragLayer=new Kt.Layer,this.infoPinLayer=new Kt.Layer,this.prioLayer=new Kt.Layer,this.textLayer=new Kt.Layer,this.gridLayer.listening(!1),this.isDrawEventBound=!1,this.othStairs=[],this.blockSize=10,this.efficientDrawingMode=!1,this.roomTypes=[],this.gridLine=new Kt.Line({points:[],stroke:"grey",strokeWidth:1,opacity:.3}),this.gridLine.cache(),this.mainTransformer=new Kt.Transformer({centeredScaling:!1,rotationSnaps:[0,90,180,270],anchorSize:5,padding:2,anchorFill:"#f6031f",borderStroke:"black",anchorStroke:"black",cornerRadius:20,anchorCornerRadius:10,anchorDragBoundFunc:this.transformerSnapFunc()}),this.selectionRectangle=new Kt.Rect({fill:"rgba(56,194,245,0.5)",visible:!1,listening:!1,zIndex:100}),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.selecting=!1,this.initialize()}initialize(){this.drawGrid(),this.mainLayer.add(this.mainTransformer),this.mainLayer.add(this.selectionRectangle),this.stage.add(this.gridLayer),this.stage.add(this.dragLayer),this.stage.add(this.mainLayer),this.stage.add(this.infoPinLayer),this.stage.add(this.textLayer),this.setupEventListeners()}setupEventListeners(){document.getElementById("shapeOptions").addEventListener("click",this.selectShape.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),this.boundEscapeEventListener=this.handleExitSelection.bind(this),this.boundDeleteEventListener=this.handleDelete.bind(this),this.boundRotateShapeEventListener=this.rotateShapesBy90Deg.bind(this),this.boundEfficientDrawingModeEventListener=this.toggleEfficientDrawingMode.bind(this),this.attachKeyPressEventListeners(),this.stage.on("mousedown touchstart",this.handleMouseDown.bind(this)),this.stage.on("mousemove touchmove",this.handleMouseMove.bind(this)),this.stage.on("mouseup touchend",this.handleMouseUp.bind(this)),this.stage.on("click tap",this.handleStageClick.bind(this)),this.stage.on("contextmenu",this.placeInfoPin.bind(this)),this.stage.on("dragmove",this.dragStage.bind(this)),this.stage.on("wheel",this.zoom.bind(this))}detachKeyPressEventListeners(){console.log("DETACH"),window.removeEventListener("keydown",this.boundEscapeEventListener),window.removeEventListener("keydown",this.boundDeleteEventListener),window.removeEventListener("keydown",this.boundRotateShapeEventListener),window.removeEventListener("keydown",this.boundEfficientDrawingModeEventListener)}attachKeyPressEventListeners(){console.log("ATTACH"),window.addEventListener("keydown",this.boundEscapeEventListener),window.addEventListener("keydown",this.boundDeleteEventListener),window.addEventListener("keydown",this.boundRotateShapeEventListener),window.addEventListener("keydown",this.boundEfficientDrawingModeEventListener)}dragStage(e){e.evt.shiftKey&&this.drawGrid()}transformerSnapFunc(){return(e,n)=>{if(this.mainTransformer.getActiveAnchor()==="rotater"||Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))>8)return n;const o=Math.round(n.x/this.blockSize)*this.blockSize,s=Math.abs(n.x-o),a=Math.round(n.y/this.blockSize)*this.blockSize,l=Math.abs(n.y-a),u=s<8,d=l<8;return u&&!d?{x:o,y:e.y}:!u&&d?{x:e.x,y:a}:u&&d?{x:o,y:a}:n}}handleResize(){this.stage.width(this.container.offsetWidth),this.stage.height(this.container.offsetHeight),this.drawGrid()}zoom(e){Pw(e,this.stage,!0),this.drawGrid()}get floorNum(){return this._floorNum}set floorNum(e){this._floorNum=e}drawGrid(){this.gridLayer.destroyChildren();let e=this.stage.width(),n=this.stage.height(),r=this.stage.getAbsoluteTransform().copy().invert(),i=r.point({x:0,y:0}),o=r.point({x:e,y:n}),s=Math.floor(i.x/this.blockSize)*this.blockSize,a=Math.floor(i.y/this.blockSize)*this.blockSize,l=Math.ceil(o.x/this.blockSize)*this.blockSize,u=Math.ceil(o.y/this.blockSize)*this.blockSize;for(let d=s;d<=l;d+=this.blockSize){let p=this.gridLine.clone({points:[d+.5,i.y-this.blockSize,d+.5,o.y+this.blockSize]});p.transformsEnabled("position"),p.perfectDrawEnabled(!1),p.shadowForStrokeEnabled(!1),this.gridLayer.add(p)}for(let d=a;d<=u;d+=this.blockSize){let p=this.gridLine.clone({points:[i.x-this.blockSize,d+.5,o.x+this.blockSize,d+.5]});p.perfectDrawEnabled(!1),p.shadowForStrokeEnabled(!1),p.transformsEnabled("position"),this.gridLayer.add(p)}this.mainLayer.moveToTop(),this.infoPinLayer.moveToTop(),this.gridLayer.batchDraw()}placeInfoPin(e){e.evt.preventDefault();const r={type:"InfoPin",position:this.stage.getRelativePointerPosition(),blockSize:this.blockSize,layer:this.mainLayer,rotation:0,scaleX:1,scaleY:1,increment:!0,floorNum:this.floorNum};let i=ya.createShape("InfoPin",r);lf(i,this,"dblclick"),on.add(i),this.mainLayer.add(i),i.displayName(this.textLayer),$l(),console.log(i.name())}toggleEfficientDrawingMode(e){(e.key==="e"||e.key==="E")&&(this.efficientDrawingMode=!this.efficientDrawingMode,console.log("EFFICIENT DRAWING MODE is: ",this.efficientDrawingMode),this.efficientDrawingMode||this.stopDrawing())}placeShape(){const n={position:this.stage.getRelativePointerPosition(),width:this.blockSize,height:this.blockSize,layer:this.mainLayer,rotation:this.hoverObj.rotation(),scaleX:1,scaleY:1,increment:!0,snap:!0,fromLoad:!1,blockSize:this.blockSize,floorNum:this.floorNum},r=ya.createShape(this.hoverObj.type,n);r&&(console.info("ATTRS FNUM",n.floorNum),this.mainLayer.add(r),on.add(r),lf(r,this,"dblclick"),this.mainLayer.draw(),r.displayName(this.textLayer),r.snapToGrid(),$l(),this.efficientDrawingMode||this.stopDrawing(),this.mainTransformer.nodes([]))}stopDrawing(){this.isDrawEventBound&&(this.mainTransformer.nodes([]),this.hoverObj!=null&&this.hoverObj.remove(),this.dragLayer.removeChildren(),this.stage.off("mousemove",this.boundMouseMoveHandler),this.stage.off("click",this.boundPlaceShapeHandler),this.isDrawEventBound=!1)}mouseMoveHandler(){const e=this.stage.getRelativePointerPosition();this.hoverObj.position({x:e.x,y:e.y}),this.hoverObj.visible(!0)}startDrawing(e){const n={position:{x:0,y:0},width:this.blockSize,height:this.blockSize,layer:this.mainLayer,rotation:0,scaleX:1,scaleY:1,increment:!1,snap:!0,fromLoad:!1,blockSize:this.blockSize};this.hoverObj=ya.createShape(e,n),console.log("HOVBER OBK:",this.hoverObj),this.hoverObj.visible(!1),this.dragLayer.add(this.hoverObj),this.dragLayer.moveToTop(),this.boundMouseMoveHandler=this.mouseMoveHandler.bind(this),this.boundPlaceShapeHandler=this.placeShape.bind(this),this.isDrawEventBound=!0,this.stage.on("mousemove",this.boundMouseMoveHandler),this.stage.on("click",this.boundPlaceShapeHandler)}selectShape(e){if(e.target.tagName==="LI"){this.stopDrawing();const n=e.target.getAttribute("data-info");this.startDrawing(n)}}rotateShapesBy90Deg(e){(e.key==="r"||e.key==="R")&&(this.hoverObj&&this.hoverObj.rotate(90),this.mainTransformer.nodes().forEach(n=>{n.rotate(90)}))}handleDelete(e){e.key==="Delete"&&(this.mainTransformer.nodes().forEach(n=>{n.remove(),n.destroy(),on.delete(n),$l()}),this.mainTransformer.nodes([]),this.mainLayer.batchDraw())}handleExitSelection(e){e.key==="Escape"&&(this.mainTransformer.nodes([]),this.stopDrawing())}handleMouseDown(e){this.stage.draggable(e.evt.shiftKey),e.target===this.stage&&(e.evt.preventDefault(),this.x1=this.stage.getRelativePointerPosition().x,this.y1=this.stage.getRelativePointerPosition().y,this.x2=this.stage.getRelativePointerPosition().x,this.y2=this.stage.getRelativePointerPosition().y,this.selectionRectangle.width(0),this.selectionRectangle.height(0),this.selecting=!0)}handleMouseMove(e){this.selecting&&(e.evt.preventDefault(),this.x2=this.stage.getRelativePointerPosition().x,this.y2=this.stage.getRelativePointerPosition().y,this.selectionRectangle.setAttrs({visible:!0,x:Math.min(this.x1,this.x2),y:Math.min(this.y1,this.y2),width:Math.abs(this.x2-this.x1),height:Math.abs(this.y2-this.y1)}))}handleMouseUp(e){if(this.selecting=!1,this.stage.draggable(!1),!this.selectionRectangle.visible())return;e.evt.preventDefault(),this.selectionRectangle.visible(!1);const n=this.stage.find(".mapObj"),r=this.selectionRectangle.getClientRect(),i=n.filter(o=>Kt.Util.haveIntersection(r,o.getClientRect()));this.mainTransformer.nodes(i),console.log(this.mainTransformer.nodes())}saveShapeDetails(){return on.saveDetails(),console.log("thisflornum",this.floorNum),{shapes:on.getShapes(this.floorNum),roomTypes:JSON.stringify(this.roomTypes),mapName:this.mapName,floorNum:this.floorNum}}handleStageClick(e){if(this.selectionRectangle.visible()){console.log("STAGECLICK1");return}if(e.target===this.stage){console.log("STAGECLICK2"),this.mainTransformer.nodes([]);return}if(!e.target.hasName("mapObj")){console.log("STAGECLICK3");return}const n=e.evt.shiftKey||e.evt.ctrlKey||e.evt.metaKey,r=this.mainTransformer.nodes().indexOf(e.target)>=0;if(!n&&!r)this.mainTransformer.nodes([e.target]),console.log("Sel 1");else if(n&&r){const i=this.mainTransformer.nodes().slice();i.splice(i.indexOf(e.target),1),this.mainTransformer.nodes(i)}else if(n&&!r){const i=this.mainTransformer.nodes().concat([e.target]);this.mainTransformer.nodes(i)}}addRoomType(e){this.roomTypes.push(e)}removeRoomType(e){this.roomTypes=this.roomTypes.filter(n=>n!==e)}getEntrances(){return this.getShapeInfoByType("Entrance")}getShapeInfoByType(e){return on.getShapes(this.floorNum).filter(n=>n.className===e).map(n=>n.info)}drawConnection(e,n){on.drawConnection(e,n)}getNodeByName(e){return on.getShapes(this.floorNum).filter(n=>n instanceof oo&&n.info.name===e)[0]}removeConnection(e,n){on.removeConnection(e,n)}updateRoomNames(){this.textLayer.removeChildren(),on.getShapes(this.floorNum).forEach(e=>{e.displayName(this.textLayer)})}clearMap(){this.mainLayer.removeChildren(),this.hoverObj=null}loadNewFloor(e){this._floorNum=e==null?void 0:e.num;let n=e==null?void 0:e.mapData;n==null||n===""||(this.deserializeMap(n),on.getShapes(this.floorNum).forEach(r=>{this.mainLayer.add(r)}))}deserializeMap(e){console.log("DESERIALIZING: ",e),on.clear(this.floorNum),e!=null&&(JSON.parse(e).forEach(i=>{const o={position:{x:i.attrs.x,y:i.attrs.y},width:i.attrs.width,height:i.attrs.height,layer:this.mainLayer,blockSize:this.blockSize,rotation:i.attrs.rotation,scaleX:i.attrs.scaleX,scaleY:i.attrs.scaleY,increment:!1,snap:!0,fromLoad:!0,floorNum:this.floorNum},s=ya.createShape(i.className,o);s.loadInfo(i.attrs),on.add(s),lf(s,this,"dblclick")}),on.getShapes(this.floorNum).filter(i=>i.className==="InfoPin"||i.className==="Entrance"||i.className==="Stairs").forEach(i=>{let o=i.info.selectedPins;o&&o.forEach(s=>{console.log("CONN node1: "+i+"conn node2: "+s),this.drawConnection(i.info.name,s)})})),this.mainTransformer.nodes([]),this.mainLayer.add(this.mainTransformer),this.mainLayer.add(this.selectionRectangle),on.getShapes(this.floorNum).forEach(n=>n.displayName(this.textLayer))}}function GM({shapeInfo:t,availableRooms:e,updateModalData:n}){return N.jsxs("div",{className:An.formGroup,children:[N.jsx("label",{htmlFor:"connectedRoom",children:"Select room associated with entrance:"}),N.jsxs("select",{id:"connectedRoom",name:"connectedRoom",value:t.connectedRoom,onChange:n,required:!0,children:[N.jsx("option",{value:"",children:"Select Room"}),e.map((r,i)=>N.jsx("option",{value:r.info.name,children:r.info.name},i))]})]})}function rm({connections:t,removePinFromList:e}){return re.useEffect(()=>{console.log("CONNNECTIONS: "+t)},[]),N.jsxs(N.Fragment,{children:[N.jsx("h3",{children:"Connections:"}),N.jsx("ul",{className:An.pinList,children:t.length>0?t.map((n,r)=>N.jsxs("li",{className:An.pinItem,children:[n,N.jsx("button",{onClick:()=>e(n),className:An.removeButton,children:"Remove"})]},r)):N.jsx("li",{children:"No connections added"})}),N.jsx("br",{})]})}function VM({shapeInfo:t,updateModalData:e}){return N.jsxs("div",{className:An.formGroupCheckbox,children:[N.jsx("input",{type:"checkbox",id:"isMainEntrance",name:"isMainEntrance",checked:t.isMainEntrance,onChange:e}),N.jsx("label",{htmlFor:"isMainEntrance",style:{color:"white"},children:"Main Entrance"})]})}function im(t,e,n){const[r,i]=re.useState([]);return{connectionState:{connections:r,setConnections:i},handlers:{addConnection:()=>{!e.selectedPin||r.includes(e.selectedPin)||i(a=>{const l=[...a,e.selectedPin];return n(u=>({...u,selectedPin:"",selectedPins:l})),console.log(e.name,e.selectedPin,"TEST"),t.drawConnection(e.name,e.selectedPin),l})},removeConnection:a=>{i(l=>{const u=l.filter(d=>d!==a);return n(d=>({...d,selectedPins:u})),u}),t.removeConnection(e.name,a)}}}}function f0({shapeInfo:t,updateModalData:e,addConnection:n,availableShapes:r}){return console.log("shapes modal",r),N.jsxs("div",{className:An.formGroup,children:[N.jsx("label",{htmlFor:"selectedPin",children:"Select connections:"}),N.jsxs("select",{id:"selectedPin",name:"selectedPin",value:t.selectedPin,onChange:e,children:[N.jsx("option",{value:"",children:"Select Connection"}),r.filter(i=>!i.info.selectedPins.includes(t.name)&&i.info.name!==""&&i.info.name!==t.name).map((i,o)=>N.jsx("option",{value:i.info.name,children:i.info.name},o))]}),N.jsx("button",{type:"button",onClick:n,className:An.addButton,children:"Add Connection"})]})}f0.propTypes={shapeInfo:Sa.object,updateModalData:Sa.func,addConnection:Sa.func};function Lw({map:t}){const{modalState:{isOpen:e,setIsOpen:n,shape:r,setShape:i,shapeInfo:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t),{connectionState:{connections:d,setConnections:p},handlers:{addConnection:g,removeConnection:h}}=im(t,o,s);return b1(w=>{const _=w.detail.room;i(_),s({..._.info,selectedPin:""});const x=_.info.selectedPins||[];p(x),n(!0),w.detail.map.detachKeyPressEventListeners(),console.log(x,"Loaded pins on modal open")},"openEntranceModalEvent"),N.jsxs(y1,{isOpen:e,toggleModal:a,title:"Enter Entrance Details",children:[N.jsx(g1,{shapeInfo:o,updateModalData:l}),N.jsx(GM,{shapeInfo:o,availableRooms:dc.findAllByTypeAndFloor(r==null?void 0:r.floorNum,"Room"),updateModalData:l}),N.jsx(f0,{availableShapes:dc.findAllByType("InfoPin","Entrance"),addConnection:g,updateModalData:l,shapeInfo:o}),N.jsx(rm,{connections:d,removePinFromList:h}),N.jsx(m1,{shapeInfo:o,updateModalData:l}),N.jsx(VM,{shapeInfo:o,updateModalData:l}),N.jsx(v1,{saveDetails:u})]})}Lw.propTypes={map:Sa.instanceOf(nm)};const qM="_activeModal_xoq0w_3",WM="_modal_xoq0w_7",HM="_overlay_xoq0w_8",YM="_title_xoq0w_23",KM="_paragraph_xoq0w_27",XM="_modalContent_xoq0w_31",$M="_btnModal_xoq0w_51",QM="_iconImage_xoq0w_78",JM="_closeModal_xoq0w_83",ZM="_form_xoq0w_99",ej="_formGroup_xoq0w_104",tj="_submitButton_xoq0w_135",ls={activeModal:qM,modal:WM,overlay:HM,title:YM,paragraph:KM,modalContent:XM,btnModal:$M,iconImage:QM,closeModal:JM,form:ZM,formGroup:ej,submitButton:tj};function nj(){const[t,e]=re.useState(!1),n=()=>{e(!t)};return N.jsxs(N.Fragment,{children:[N.jsx("button",{onClick:n,className:ls.btnModal}),t&&N.jsxs("div",{className:ls.modal,children:[N.jsx("div",{onClick:n,className:ls.overlay}),N.jsxs("div",{className:ls.modalContent,children:[N.jsx("h2",{className:ls.title,children:"How to Use the Map Builder"}),N.jsx("p",{className:ls.paragraph,children:"Welcome to the Map Builder! Here you can create an indoor map, render it and enjoy!:"}),N.jsx("br",{}),N.jsxs("ul",{children:[N.jsx("h3",{children:"Shapes and Placement"}),N.jsx("li",{children:"There are 4 types of shapes : Walls, Rooms, Entrances and Pins. "}),N.jsx("li",{children:"By clicking on a shape's respective icon, that shape will follow your mouse untill you place it by clicking anywhere on the canvas"}),N.jsx("li",{children:"Placed shapes automatically get snapped in place, with respect to the grid"}),N.jsx("li",{children:"You can place a pin on the canvas by right clicking and then left clicking - imat bug tuka nekogas direktno se postavuvaat"}),N.jsx("br",{}),N.jsx("h3",{children:"Adding information"}),N.jsx("li",{children:"By double clicking on any shape (except a Wall), you can add information to the shape"}),N.jsx("li",{children:"Every shape holds basic information like a name, and more advanced information for navigation aswell"}),N.jsx("br",{}),N.jsx("li",{children:"To explore map building in detail you can check our own wiki page. TODO"})]}),N.jsx("br",{}),N.jsx("p",{className:ls.paragraph,children:"After completing your map, click the render button and go to the View page to see your full featured map!"}),N.jsx("button",{className:ls.closeModal,onClick:n,children:"CLOSE"})]})]})]})}const rj="_activeModal_hib35_2",ij="_modal_hib35_7",oj="_overlay_hib35_8",sj="_modalContent_hib35_24",aj="_btnModal_hib35_47",lj="_closeModal_hib35_64",cj="_form_hib35_81",uj="_formGroup_hib35_87",hj="_addButton_hib35_122",dj="_roomTypeList_hib35_137",fj="_roomTypeItem_hib35_144",pj="_removeButton_hib35_156",Si={activeModal:rj,modal:ij,overlay:oj,modalContent:sj,btnModal:aj,closeModal:lj,form:cj,formGroup:uj,addButton:hj,roomTypeList:dj,roomTypeItem:fj,removeButton:pj};function gj({map:t,roomTypes:e,addRoomTypeDB:n}){const[r,i]=re.useState(!1),[o,s]=re.useState(""),a=()=>{i(!r)},l=async()=>{await n(o),s("")},u=d=>{const{name:p,value:g}=d.target;s(g)};return N.jsxs(N.Fragment,{children:[N.jsx("button",{onClick:a,className:Si.btnModal,children:"Room Types"}),r&&N.jsxs("div",{className:Si.modal,children:[N.jsx("div",{onClick:a,className:Si.overlay}),N.jsxs("div",{className:Si.modalContent,children:[N.jsx("h2",{style:{color:"white"},children:"Manage Room Types"}),N.jsx("form",{className:Si.form,children:N.jsxs("div",{className:Si.formGroup,children:[N.jsx("label",{htmlFor:"roomTypeName",children:"Add New Room Type:"}),N.jsx("input",{type:"text",id:"roomTypeName",name:"roomTypeName",value:o,onChange:u,placeholder:"Enter a new room type (e.g., Office, Classroom)"}),N.jsx("button",{type:"button",className:Si.addButton,onClick:l,children:"Add Type"})]})}),N.jsx("h3",{children:"Available Room Types:"}),N.jsx("ul",{className:Si.roomTypeList,children:e.length>0?e.map((d,p)=>N.jsxs("li",{className:Si.roomTypeItem,children:[d.name,N.jsx("button",{className:Si.removeButton,children:"Remove"})]},p)):N.jsx("li",{children:"No room types available"})}),N.jsx("button",{className:Si.closeModal,onClick:a,children:"CLOSE"})]})]})]})}function kw({map:t}){const{modalState:{isOpen:e,shapeInfo:n,shape:r,setIsOpen:i,setShape:o,setShapeInfo:s},handlers:{toggleModal:a,updateModalData:l,saveDetails:u}}=w1(t),{connectionState:{connections:d,setConnections:p},handlers:{addConnection:g,removeConnection:h}}=im(t,n,s);return b1(w=>{const _=w.detail.room;o(_),s({..._.info,selectedPin:""}),p(_.info.selectedPins||[]),i(!0),w.detail.map.detachKeyPressEventListeners(),console.log(_.info.selectedPins,"Loaded pins on modal open")},"openPinModalEvent"),N.jsxs(y1,{isOpen:e,toggleModal:a,title:"Enter Pin Details",children:[N.jsx(g1,{shapeInfo:n,updateModalData:l}),N.jsx(f0,{shapeInfo:n,availableShapes:dc.findAllByTypeAndFloor(t==null?void 0:t.floorNum,"Stairs","InfoPin","Entrance"),updateModalData:l,addConnection:g}),N.jsx(rm,{connections:d,removePinFromList:h}),N.jsx(m1,{shapeInfo:n,updateModalData:l}),N.jsx(v1,{saveDetails:u})]})}kw.propTypes={map:Sa.instanceOf(nm)};const mj="_saveMapContainer_1k6lk_1",vj="_saveMapForm_1k6lk_8",yj="_saveMapInput_1k6lk_15",wj="_saveMapButton_1k6lk_22",$p={saveMapContainer:mj,saveMapForm:vj,saveMapInput:yj,saveMapButton:wj},bj=({submitHandler:t})=>{re.useState("");const e=n=>{n.preventDefault(),$l()};return N.jsx(N.Fragment,{children:N.jsx("div",{className:$p.saveMapContainer,children:N.jsx("form",{onSubmit:e,className:$p.saveMapForm,children:N.jsx("div",{children:N.jsx("button",{type:"submit",className:$p.saveMapButton,children:"Save Map"})})})})})};function _j({map:t}){const{modalState:{isOpen:e,setIsOpen:n,setShape:r,shapeInfo:i,setShapeInfo:o},handlers:{toggleModal:s,updateModalData:a,saveDetails:l}}=w1(t),{connectionState:{connections:u,setConnections:d},handlers:{addConnection:p,removeConnection:g}}=im(t,i,o);return b1(h=>{const w=h.detail.room;r(w),o(w.info),console.log("stairs connections shape info: "+w.info.selectedPins),d(w.info.selectedPins||[]),n(!0),console.log(w.info.selectedPins,"Loaded pins on modal open"),h.detail.map.detachKeyPressEventListeners()},"openStairsModalEvent"),N.jsxs(y1,{isOpen:e,toggleModal:s,title:"Enter Stair Details",children:[N.jsx(g1,{shapeInfo:i,updateModalData:a,phtext:"Enter name of stairs"}),N.jsx(f0,{shapeInfo:i,updateModalData:a,addConnection:p,availableShapes:dc.findAllByType("Stairs")}),N.jsx(rm,{connections:u,removePinFromList:g}),N.jsx(m1,{shapeInfo:i,updateModalData:a}),N.jsx(v1,{saveDetails:l})]})}function Ew(t,e,n){if(t==null||t==="")return[];const r=JSON.parse(t);console.log("VLEZE use");let i=[];return r.filter(e).forEach(o=>{console.log(o.attrs,"Sattrs pls"),o.attrs.position={x:o.attrs.x,y:o.attrs.y};const s=n?ya.createRenderedShape(o.className,o.attrs):ya.createShape(o.className,o.attrs);n||(s.loadInfo(o.attrs),on.add(s)),i.push(s)}),i}const Sj=(t,e,n,r)=>{const[i,o]=re.useState([]),[s,a]=re.useState(!1),[l,u]=re.useState(null);re.useEffect(()=>{n.has("floor")||r({floor:"0"},{replace:!0})},[r,n]),re.useEffect(()=>{s||(async()=>{const g=new It;try{const h=await g.get(`${bt.my_maps.load}?mapName=${t}&username=${e}`);console.log("Floors loaded:",h),o(h),a(!0),h.forEach(w=>{Ew(w.mapData,()=>!0,!1)})}catch(h){console.error("Can't load map:",h.message)}})()},[t,e]),re.useEffect(()=>{if(!s||i===void 0||i.length===0)return;const p=parseInt(n.get("floor")),g=i.find(w=>w.num===p);if(!g){console.error(`Floor ${p} not found`);return}console.log("Changing to floor:",g);const h=new nm("container",p,t);h.loadNewFloor(g),u(h),console.log("Fchange"),$l()},[n,s]);const d=async()=>{const p=l.saveShapeDetails(),g=new It(!0);try{const h=await g.put(`${bt.my_maps.save}?username=${e}`,p);console.log("FLOORS",i.length),o(w=>w.map(_=>_.num===h.num?h:_)),console.log(h,"resp in builder")}catch(h){console.log("ERROR --> Could not Save map --->",h)}};return re.useEffect(()=>{if(l){const p=()=>{console.log("mapsave event triggered"),d()};return window.addEventListener("mapsave",p),()=>{window.removeEventListener("mapsave",p)}}},[l]),re.useEffect(()=>()=>{l&&(l.clearMap(),l.stage.destroy())},[l]),{app:l,floors:i,saveFloor:d,setFloors:o}},_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAoJJREFUeF7tm2tOwlAQRmENJur+V2eIrgHTkChW2nncmX7eePjbeZRzOhdKL+cTLymBs7Q7zU8IEF8ECECAmIC4PROAADEBcXsmAAFiAuL2TAACxATE7ZkABIgJiNszAQgQExC3ZwIQICYgbs8EIEBMQNyeCUBAjMDb5eO6l/H6/DTVRTXVyS7gERC7YMujEVCONFZwW8CyMp1PLEExnuFoJiCMrDYBAbU8w9UQEEZWm4CAWp7haggII6tN2BOw3NS8cCNWC3xdjQno5WtWXwtYrvr73ya4DzARjgUwAWP8hrMRMIxwrAACxvgNZyNgGOFYAQSM8RvOfru8X5dfPbdefAsaRrxfgAloBmyV/yng9gzg/sUEWAQHjy8C1jdfCBiEGklnCYrQaojlx7gGqJGSTIBBywL0KH1vTY/IOSK2+kO+fF+QtWvhCEhLjy6pEws4Cn1vnykEdF19vWi/qz8+/559RwcuQUfh6+0zxQT8QtA9Ep76nhiHuzkFON6YK6QIoqvXRtD/FpAkV+ntzwtIMnKnPfyae0e4GpD7xJKB5R/CyfNwp1k3eghwo8wFsi0lx60siwkoQ5krhIAct7IsHsiUocwVYgJy3MqyEFCGMlcIATluZVkIKEOZK8TGrBy3sqy1AP4fUIbWV4glyMepLQoBbWh9hRHg49QWxd7QNrS+wkyAj1Nb1JeAjcdcPA9oQ38rzH1AM2CrPEuQRaj5OAKaAVvlEWARaj7OA5lmwFZ5JsAixPEQgen2BYXe3QTBCBBLQgACxATE7ZkABIgJiNszAQgQExC3ZwIQICYgbs8EIEBMQNyeCUCAmIC4PROAADEBcXsmAAFiAuL2TIBYwCdmLPZhW7llLQAAAABJRU5ErkJggg==",xj=({floorConfig:t})=>{const{floors:e,searchParams:n,addFloorHandler:r,setSearchParams:i,deleteFloorHandler:o}=t;return N.jsx("div",{className:wt.floorSection,children:N.jsxs("div",{className:wt.floorList,children:[N.jsx("label",{className:wt.floorLabel,children:"Available Floors:"}),N.jsxs("div",{className:wt.floorItems,children:[N.jsx("button",{className:wt.addFloorButton,onClick:()=>{const s=Math.max(...e.map(a=>a.num))+1;r(s)},children:N.jsx("img",{src:_5,alt:"Add Positive Floor",className:wt.icon})}),e.sort((s,a)=>a.num-s.num).map(s=>N.jsxs("div",{className:wt.floorItemWrapper,children:[N.jsxs("button",{onClick:()=>i({floor:s.num},{replace:!0}),className:`${wt.floorItem} ${n.get("floor")==s.num?wt.activeFloor:""}`,children:["Floor ",s.num]}),N.jsx("button",{className:wt.deleteFloorButton,onClick:()=>o(s.num),children:"🗑️"})]},s.num)),N.jsx("button",{className:wt.addFloorButton,onClick:()=>{const s=Math.min(...e.map(a=>a.num))-1;r(s)},children:N.jsx("img",{src:_5,alt:"Add Negative Floor",className:wt.icon})})]})]})})},Aj=(t,e,n)=>(re.useEffect(()=>{(async()=>{const o=new It;o.setAuthenticated();const s=await o.get(`${bt.room_types.display(!0)}?mapName=${e}&username=${n}`);console.log("loaded ROOM TYPES: "+s),t(s)})().then(o=>{console.log("LOADED ROOM TYPES")})},[]),{addRoomType:async i=>{const o=new It;o.setAuthenticated(),await o.post(`${bt.room_types.add}?roomTypeName=${i}&username=${n}&mapName=${e}`),t(s=>[...s,{name:i}])}});function Nj(){const{mapName:t}=o8(),{username:e}=mr(),[n,r]=re.useState(!1),[i,o]=re.useState("Error"),[s,a]=re.useState(!1),[l,u]=c8(),[d,p]=re.useState([]),{app:g,floors:h,saveFloor:w,setFloors:_}=Sj(t,e,l,u),{addRoomType:x}=Aj(p,t,e),v=async A=>{const L=new It;L.setAuthenticated();const R={num:A,mapName:t};try{await L.put(`${bt.floors.add}`,R),console.log(`Added floor ${A}`),_(D=>[...D,{num:A}])}catch(D){console.error("Error adding floor:",D)}},S=async A=>{if(A===0)return;const L=new It;L.setAuthenticated();try{await L.delete(`${bt.floors.delete}?floorNum=${A}&mapName=${t}`),_(D=>D.filter(k=>k.num!==A)),l.get("floor")==A&&u({floor:"0"},{replace:!0}),console.log(`Deleted floor ${A}`)}catch(R){console.error("Error deleting floor:",R)}};re.useEffect(()=>()=>{on.clear()},[]);const y=async()=>{w(),r(!0),setTimeout(()=>{r(!1)},3e3)};return N.jsxs("div",{className:wt.wrapper,id:"wrapper",children:[N.jsx(Vs,{}),N.jsx("div",{id:"container",className:wt.cont}),N.jsxs("div",{className:wt.panel,children:[N.jsx("div",{className:wt.topPanelH,children:N.jsx(wc,{position:"inline"})}),N.jsx(Ro,{to:`/myMaps/View/${t}`,className:wt.titleLink,children:N.jsx("h1",{className:wt.title,children:t})}),N.jsx("div",{className:wt.guideWrapper,children:N.jsx(nj,{})}),N.jsx("hr",{}),N.jsx("br",{}),N.jsxs("ul",{className:wt.shapeOptions,id:"shapeOptions",children:[N.jsx("li",{"data-info":"Entrance",className:`${wt.shapeOption} ${wt.entrance}`}),N.jsx("li",{"data-info":"Wall",className:`${wt.shapeOption} ${wt.wall}`,id:"wall"}),N.jsx("li",{"data-info":"Room",className:`${wt.shapeOption} ${wt.room}`,id:"room"}),N.jsx("li",{"data-info":"Stairs",className:`${wt.shapeOption} ${wt.stairs}`,id:"stairs"})]}),N.jsx(gj,{map:g,roomTypes:d,addRoomTypeDB:x}),N.jsx("br",{}),N.jsx("hr",{}),N.jsx("br",{}),N.jsx(xj,{floorConfig:{floors:h,searchParams:l,setSearchParams:u,addFloorHandler:v,deleteFloorHandler:S}}),N.jsx("br",{}),N.jsx("hr",{}),N.jsx("br",{}),s&&N.jsx("p",{style:{color:"red",textAlign:"center"},children:i}),N.jsx("div",{className:wt.templateCont,children:N.jsx(bj,{submitHandler:y})}),N.jsxs("div",{className:wt.hide,children:[N.jsx(BL,{map:g,roomTypes:d}),N.jsx(Lw,{map:g}),N.jsx(kw,{map:g}),N.jsx(_j,{map:g})]})]}),n&&N.jsx("div",{className:wt.popup,children:N.jsxs("div",{className:wt.popupContent,children:[N.jsx("h2",{children:"Map Saved!"}),N.jsx("p",{children:"Your map has been successfully saved."})]})})]})}function Cj(){return N.jsx("h1",{children:"Oops! Page not found !"})}const Pj=()=>N.jsx("div",{className:"loading-container",children:N.jsx("div",{className:"spinner"})}),Lj=()=>{const t=Do(),{loading:e,isAuthenticated:n}=mr();return e?N.jsx(Pj,{}):n?N.jsx(oS,{}):N.jsx(iS,{to:"/Login",state:{targetPath:t},replace:!0})},kj=(t,e,n,r)=>{const i=new CustomEvent("navigate",{detail:{nodes:t,offset:e,changeFloorTo:n,shape:r}});window.dispatchEvent(i)},Ej=(t,e)=>{let n=new CustomEvent(t,{detail:e});window.dispatchEvent(n)},Tj="modulepreload",Mj=function(t){return"/"+t},v4={},S5=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Mj(l),l in v4)return;v4[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":Tj,u||(p.as="script"),p.crossOrigin="",p.href=l,a&&p.setAttribute("nonce",a),document.head.appendChild(p),u)return new Promise((g,h)=>{p.addEventListener("load",g),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var or=Uint8Array,Ur=Uint16Array,om=Int32Array,p0=new or([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),g0=new or([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),x5=new or([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tw=function(t,e){for(var n=new Ur(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];for(var i=new om(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},Mw=Tw(p0,2),jw=Mw.b,A5=Mw.r;jw[28]=258,A5[258]=28;var Fw=Tw(g0,0),jj=Fw.b,y4=Fw.r,N5=new Ur(32768);for(var Gt=0;Gt<32768;++Gt){var cs=(Gt&43690)>>1|(Gt&21845)<<1;cs=(cs&52428)>>2|(cs&13107)<<2,cs=(cs&61680)>>4|(cs&3855)<<4,N5[Gt]=((cs&65280)>>8|(cs&255)<<8)>>1}var io=function(t,e,n){for(var r=t.length,i=0,o=new Ur(e);i<r;++i)t[i]&&++o[t[i]-1];var s=new Ur(e);for(i=1;i<e;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(n){a=new Ur(1<<e);var l=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],d=e-t[i],p=s[t[i]-1]++<<d,g=p|(1<<d)-1;p<=g;++p)a[N5[p]>>l]=u}else for(a=new Ur(r),i=0;i<r;++i)t[i]&&(a[i]=N5[s[t[i]-1]++]>>15-t[i]);return a},Rs=new or(288);for(var Gt=0;Gt<144;++Gt)Rs[Gt]=8;for(var Gt=144;Gt<256;++Gt)Rs[Gt]=9;for(var Gt=256;Gt<280;++Gt)Rs[Gt]=7;for(var Gt=280;Gt<288;++Gt)Rs[Gt]=8;var ch=new or(32);for(var Gt=0;Gt<32;++Gt)ch[Gt]=5;var Fj=io(Rs,9,0),Ij=io(Rs,9,1),Oj=io(ch,5,0),Rj=io(ch,5,1),Qp=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},xi=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(e&7)&n},Jp=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(e&7)},sm=function(t){return(t+7)/8|0},Iw=function(t,e,n){return(n==null||n>t.length)&&(n=t.length),new or(t.subarray(e,n))},Bj=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Li=function(t,e,n){var r=new Error(e||Bj[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Li),!n)throw r;return r},Dj=function(t,e,n,r){var i=t.length,o=0;if(!i||e.f&&!e.l)return n||new or(0);var s=!n,a=s||e.i!=2,l=e.i;s&&(n=new or(i*3));var u=function(we){var Ce=n.length;if(we>Ce){var ke=new or(Math.max(Ce*2,we));ke.set(n),n=ke}},d=e.f||0,p=e.p||0,g=e.b||0,h=e.l,w=e.d,_=e.m,x=e.n,v=i*8;do{if(!h){d=xi(t,p,1);var S=xi(t,p+1,3);if(p+=3,S)if(S==1)h=Ij,w=Rj,_=9,x=5;else if(S==2){var R=xi(t,p,31)+257,D=xi(t,p+10,15)+4,k=R+xi(t,p+5,31)+1;p+=14;for(var z=new or(k),T=new or(19),P=0;P<D;++P)T[x5[P]]=xi(t,p+P*3,7);p+=D*3;for(var E=Qp(T),W=(1<<E)-1,B=io(T,E,1),P=0;P<k;){var Q=B[xi(t,p,W)];p+=Q&15;var y=Q>>4;if(y<16)z[P++]=y;else{var ee=0,se=0;for(y==16?(se=3+xi(t,p,3),p+=2,ee=z[P-1]):y==17?(se=3+xi(t,p,7),p+=3):y==18&&(se=11+xi(t,p,127),p+=7);se--;)z[P++]=ee}}var K=z.subarray(0,R),te=z.subarray(R);_=Qp(K),x=Qp(te),h=io(K,_,1),w=io(te,x,1)}else Li(1);else{var y=sm(p)+4,A=t[y-4]|t[y-3]<<8,L=y+A;if(L>i){l&&Li(0);break}a&&u(g+A),n.set(t.subarray(y,L),g),e.b=g+=A,e.p=p=L*8,e.f=d;continue}if(p>v){l&&Li(0);break}}a&&u(g+131072);for(var X=(1<<_)-1,de=(1<<x)-1,M=p;;M=p){var ee=h[Jp(t,p)&X],G=ee>>4;if(p+=ee&15,p>v){l&&Li(0);break}if(ee||Li(2),G<256)n[g++]=G;else if(G==256){M=p,h=null;break}else{var H=G-254;if(G>264){var P=G-257,ne=p0[P];H=xi(t,p,(1<<ne)-1)+jw[P],p+=ne}var ie=w[Jp(t,p)&de],V=ie>>4;ie||Li(3),p+=ie&15;var te=jj[V];if(V>3){var ne=g0[V];te+=Jp(t,p)&(1<<ne)-1,p+=ne}if(p>v){l&&Li(0);break}a&&u(g+131072);var Z=g+H;if(g<te){var ce=o-te,xe=Math.min(te,Z);for(ce+g<0&&Li(3);g<xe;++g)n[g]=r[ce+g]}for(;g<Z;++g)n[g]=n[g-te]}}e.l=h,e.p=M,e.b=g,e.f=d,h&&(d=1,e.m=_,e.d=w,e.n=x)}while(!d);return g!=n.length&&s?Iw(n,0,g):n.subarray(0,g)},Ao=function(t,e,n){n<<=e&7;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8},wu=function(t,e,n){n<<=e&7;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8,t[r+2]|=n>>16},Zp=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,o=n.slice();if(!i)return{t:Rw,l:0};if(i==1){var s=new or(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(L,R){return L.f-R.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,d=1,p=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[u].f<n[p].f?u++:p++],l=n[u!=d&&n[u].f<n[p].f?u++:p++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var g=o[0].s,r=1;r<i;++r)o[r].s>g&&(g=o[r].s);var h=new Ur(g+1),w=C5(n[d-1],h,0);if(w>e){var r=0,_=0,x=w-e,v=1<<x;for(o.sort(function(R,D){return h[D.s]-h[R.s]||R.f-D.f});r<i;++r){var S=o[r].s;if(h[S]>e)_+=v-(1<<w-h[S]),h[S]=e;else break}for(_>>=x;_>0;){var y=o[r].s;h[y]<e?_-=1<<e-h[y]++-1:++r}for(;r>=0&&_;--r){var A=o[r].s;h[A]==e&&(--h[A],++_)}w=e}return{t:new or(h),l:w}},C5=function(t,e,n){return t.s==-1?Math.max(C5(t.l,e,n+1),C5(t.r,e,n+1)):e[t.s]=n},w4=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Ur(++e),r=0,i=t[0],o=1,s=function(l){n[r++]=l},a=1;a<=e;++a)if(t[a]==i&&a!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[a]}return{c:n.subarray(0,r),n:e}},bu=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},Ow=function(t,e,n){var r=n.length,i=sm(e+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var o=0;o<r;++o)t[i+o+4]=n[o];return(i+4+r)*8},b4=function(t,e,n,r,i,o,s,a,l,u,d){Ao(e,d++,n),++i[256];for(var p=Zp(i,15),g=p.t,h=p.l,w=Zp(o,15),_=w.t,x=w.l,v=w4(g),S=v.c,y=v.n,A=w4(_),L=A.c,R=A.n,D=new Ur(19),k=0;k<S.length;++k)++D[S[k]&31];for(var k=0;k<L.length;++k)++D[L[k]&31];for(var z=Zp(D,7),T=z.t,P=z.l,E=19;E>4&&!T[x5[E-1]];--E);var W=u+5<<3,B=bu(i,Rs)+bu(o,ch)+s,Q=bu(i,g)+bu(o,_)+s+14+3*E+bu(D,T)+2*D[16]+3*D[17]+7*D[18];if(l>=0&&W<=B&&W<=Q)return Ow(e,d,t.subarray(l,l+u));var ee,se,K,te;if(Ao(e,d,1+(Q<B)),d+=2,Q<B){ee=io(g,h,0),se=g,K=io(_,x,0),te=_;var X=io(T,P,0);Ao(e,d,y-257),Ao(e,d+5,R-1),Ao(e,d+10,E-4),d+=14;for(var k=0;k<E;++k)Ao(e,d+3*k,T[x5[k]]);d+=3*E;for(var de=[S,L],M=0;M<2;++M)for(var G=de[M],k=0;k<G.length;++k){var H=G[k]&31;Ao(e,d,X[H]),d+=T[H],H>15&&(Ao(e,d,G[k]>>5&127),d+=G[k]>>12)}}else ee=Fj,se=Rs,K=Oj,te=ch;for(var k=0;k<a;++k){var ne=r[k];if(ne>255){var H=ne>>18&31;wu(e,d,ee[H+257]),d+=se[H+257],H>7&&(Ao(e,d,ne>>23&31),d+=p0[H]);var ie=ne&31;wu(e,d,K[ie]),d+=te[ie],ie>3&&(wu(e,d,ne>>5&8191),d+=g0[ie])}else wu(e,d,ee[ne]),d+=se[ne]}return wu(e,d,ee[256]),d+se[256]},Uj=new om([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rw=new or(0),zj=function(t,e,n,r,i,o){var s=o.z||t.length,a=new or(r+s+5*(1+Math.ceil(s/7e3))+i),l=a.subarray(r,a.length-i),u=o.l,d=(o.r||0)&7;if(e){d&&(l[0]=o.r>>3);for(var p=Uj[e-1],g=p>>13,h=p&8191,w=(1<<n)-1,_=o.p||new Ur(32768),x=o.h||new Ur(w+1),v=Math.ceil(n/3),S=2*v,y=function(ze){return(t[ze]^t[ze+1]<<v^t[ze+2]<<S)&w},A=new om(25e3),L=new Ur(288),R=new Ur(32),D=0,k=0,z=o.i||0,T=0,P=o.w||0,E=0;z+2<s;++z){var W=y(z),B=z&32767,Q=x[W];if(_[B]=Q,x[W]=B,P<=z){var ee=s-z;if((D>7e3||T>24576)&&(ee>423||!u)){d=b4(t,l,0,A,L,R,k,T,E,z-E,d),T=D=k=0,E=z;for(var se=0;se<286;++se)L[se]=0;for(var se=0;se<30;++se)R[se]=0}var K=2,te=0,X=h,de=B-Q&32767;if(ee>2&&W==y(z-de))for(var M=Math.min(g,ee)-1,G=Math.min(32767,z),H=Math.min(258,ee);de<=G&&--X&&B!=Q;){if(t[z+K]==t[z+K-de]){for(var ne=0;ne<H&&t[z+ne]==t[z+ne-de];++ne);if(ne>K){if(K=ne,te=de,ne>M)break;for(var ie=Math.min(de,ne-2),V=0,se=0;se<ie;++se){var Z=z-de+se&32767,ce=_[Z],xe=Z-ce&32767;xe>V&&(V=xe,Q=Z)}}}B=Q,Q=_[B],de+=B-Q&32767}if(te){A[T++]=268435456|A5[K]<<18|y4[te];var we=A5[K]&31,Ce=y4[te]&31;k+=p0[we]+g0[Ce],++L[257+we],++R[Ce],P=z+K,++D}else A[T++]=t[z],++L[t[z]]}}for(z=Math.max(z,P);z<s;++z)A[T++]=t[z],++L[t[z]];d=b4(t,l,u,A,L,R,k,T,E,z-E,d),u||(o.r=d&7|l[d/8|0]<<3,d-=7,o.h=x,o.p=_,o.i=z,o.w=P)}else{for(var z=o.w||0;z<s+u;z+=65535){var ke=z+65535;ke>=s&&(l[d/8|0]=u,ke=s),d=Ow(l,d+1,t.subarray(z,ke))}o.i=s}return Iw(a,0,r+sm(d)+i)},Bw=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length|0,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=r+=n[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,e=i},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},Gj=function(t,e,n,r,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),s=new or(o.length+t.length);s.set(o),s.set(t,o.length),t=s,i.w=o.length}return zj(t,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,n,r,i)},Dw=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},Vj=function(t,e){var n=e.level,r=n==0?0:n<6?1:n==9?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var i=Bw();i.p(e.dictionary),Dw(t,2,i.d())}},qj=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Li(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Li(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function P5(t,e){e||(e={});var n=Bw();n.p(t);var r=Gj(t,e,e.dictionary?6:2,4);return Vj(r,e),Dw(r,r.length-4,n.d()),r}function Wj(t,e){return Dj(t.subarray(qj(t,e),-4),{i:2},e,e)}var Hj=typeof TextDecoder<"u"&&new TextDecoder,Yj=0;try{Hj.decode(Rw,{stream:!0}),Yj=1}catch{}var Ke=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function e2(){Ke.console&&typeof Ke.console.log=="function"&&Ke.console.log.apply(Ke.console,arguments)}var Ft={log:e2,warn:function(t){Ke.console&&(typeof Ke.console.warn=="function"?Ke.console.warn.apply(Ke.console,arguments):e2.call(null,arguments))},error:function(t){Ke.console&&(typeof Ke.console.error=="function"?Ke.console.error.apply(Ke.console,arguments):e2(t))}};function t2(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){fa(r.response,e,n)},r.onerror=function(){Ft.error("could not download file")},r.send()}function _4(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function zd(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Bu,L5,fa=Ke.saveAs||((typeof window>"u"?"undefined":Pt(window))!=="object"||window!==Ke?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=Ke.URL||Ke.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?_4(i.href)?t2(t,e,n):zd(i,i.target="_blank"):zd(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){zd(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download",typeof t=="string")if(_4(t))t2(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){zd(r)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:Pt(o)!=="object"&&(Ft.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return t2(t,e,n);var i=t.type==="application/octet-stream",o=/constructor/i.test(Ke.HTMLElement)||Ke.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&(typeof FileReader>"u"?"undefined":Pt(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var d=a.result;d=s?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},a.readAsDataURL(t)}else{var l=Ke.URL||Ke.webkitURL,u=l.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});/**
+ * A class to parse color values
+ * @author Stoyan Stefanov <sstoo@gmail.com>
+ * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
+ * @license Use it if you like it
+ */function Uw(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(t);s&&(e=o(s),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+a+l+u}}/**
+ * @license
+ * Joseph Myers does not specify a particular license for his work.
+ *
+ * Author: Joseph Myers
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
+ *
+ * Modified by: Owen Leong
+ */function n2(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=Jn(n,r,i,o,e[0],7,-680876936),o=Jn(o,n,r,i,e[1],12,-389564586),i=Jn(i,o,n,r,e[2],17,606105819),r=Jn(r,i,o,n,e[3],22,-1044525330),n=Jn(n,r,i,o,e[4],7,-176418897),o=Jn(o,n,r,i,e[5],12,1200080426),i=Jn(i,o,n,r,e[6],17,-1473231341),r=Jn(r,i,o,n,e[7],22,-45705983),n=Jn(n,r,i,o,e[8],7,1770035416),o=Jn(o,n,r,i,e[9],12,-1958414417),i=Jn(i,o,n,r,e[10],17,-42063),r=Jn(r,i,o,n,e[11],22,-1990404162),n=Jn(n,r,i,o,e[12],7,1804603682),o=Jn(o,n,r,i,e[13],12,-40341101),i=Jn(i,o,n,r,e[14],17,-1502002290),n=Zn(n,r=Jn(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=Zn(o,n,r,i,e[6],9,-1069501632),i=Zn(i,o,n,r,e[11],14,643717713),r=Zn(r,i,o,n,e[0],20,-373897302),n=Zn(n,r,i,o,e[5],5,-701558691),o=Zn(o,n,r,i,e[10],9,38016083),i=Zn(i,o,n,r,e[15],14,-660478335),r=Zn(r,i,o,n,e[4],20,-405537848),n=Zn(n,r,i,o,e[9],5,568446438),o=Zn(o,n,r,i,e[14],9,-1019803690),i=Zn(i,o,n,r,e[3],14,-187363961),r=Zn(r,i,o,n,e[8],20,1163531501),n=Zn(n,r,i,o,e[13],5,-1444681467),o=Zn(o,n,r,i,e[2],9,-51403784),i=Zn(i,o,n,r,e[7],14,1735328473),n=er(n,r=Zn(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=er(o,n,r,i,e[8],11,-2022574463),i=er(i,o,n,r,e[11],16,1839030562),r=er(r,i,o,n,e[14],23,-35309556),n=er(n,r,i,o,e[1],4,-1530992060),o=er(o,n,r,i,e[4],11,1272893353),i=er(i,o,n,r,e[7],16,-155497632),r=er(r,i,o,n,e[10],23,-1094730640),n=er(n,r,i,o,e[13],4,681279174),o=er(o,n,r,i,e[0],11,-358537222),i=er(i,o,n,r,e[3],16,-722521979),r=er(r,i,o,n,e[6],23,76029189),n=er(n,r,i,o,e[9],4,-640364487),o=er(o,n,r,i,e[12],11,-421815835),i=er(i,o,n,r,e[15],16,530742520),n=tr(n,r=er(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=tr(o,n,r,i,e[7],10,1126891415),i=tr(i,o,n,r,e[14],15,-1416354905),r=tr(r,i,o,n,e[5],21,-57434055),n=tr(n,r,i,o,e[12],6,1700485571),o=tr(o,n,r,i,e[3],10,-1894986606),i=tr(i,o,n,r,e[10],15,-1051523),r=tr(r,i,o,n,e[1],21,-2054922799),n=tr(n,r,i,o,e[8],6,1873313359),o=tr(o,n,r,i,e[15],10,-30611744),i=tr(i,o,n,r,e[6],15,-1560198380),r=tr(r,i,o,n,e[13],21,1309151649),n=tr(n,r,i,o,e[4],6,-145523070),o=tr(o,n,r,i,e[11],10,-1120210379),i=tr(i,o,n,r,e[2],15,718787259),r=tr(r,i,o,n,e[9],21,-343485551),t[0]=Ss(n,t[0]),t[1]=Ss(r,t[1]),t[2]=Ss(i,t[2]),t[3]=Ss(o,t[3])}function m0(t,e,n,r,i,o){return e=Ss(Ss(e,t),Ss(r,o)),Ss(e<<i|e>>>32-i,n)}function Jn(t,e,n,r,i,o,s){return m0(e&n|~e&r,t,e,i,o,s)}function Zn(t,e,n,r,i,o,s){return m0(e&r|n&~r,t,e,i,o,s)}function er(t,e,n,r,i,o,s){return m0(e^n^r,t,e,i,o,s)}function tr(t,e,n,r,i,o,s){return m0(n^(e|~r),t,e,i,o,s)}function zw(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)n2(r,Kj(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(n2(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,n2(r,i),r}function Kj(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}Bu=Ke.atob.bind(Ke),L5=Ke.btoa.bind(Ke);var S4="0123456789abcdef".split("");function Xj(t){for(var e="",n=0;n<4;n++)e+=S4[t>>8*n+4&15]+S4[t>>8*n&15];return e}function $j(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function k5(t){return zw(t).map($j).join("")}var Qj=function(t){for(var e=0;e<t.length;e++)t[e]=Xj(t[e]);return t.join("")}(zw("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ss(t,e){if(Qj){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}/**
+ * @license
+ * FPDF is released under a permissive license: there is no usage restriction.
+ * You may embed it freely in your application (commercial or not), with or
+ * without modifications.
+ *
+ * Reference: http://www.fpdf.org/en/script/script37.php
+ */function E5(t,e){var n,r,i,o;if(t!==n){for(var s=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var u=0;for(l=0;l<256;l++){var d=a[l];u=(u+d+s.charCodeAt(l))%256,a[l]=a[u],a[u]=d}n=t,r=a}else a=r;var p=e.length,g=0,h=0,w="";for(l=0;l<p;l++)h=(h+(d=a[g=(g+1)%256]))%256,a[g]=a[h],a[h]=d,s=a[(a[g]+a[h])%256],w+=String.fromCharCode(e.charCodeAt(l)^s);return w}/**
+ * @license
+ * Licensed under the MIT License.
+ * http://opensource.org/licenses/mit-license
+ * Author: Owen Leong (@owenl131)
+ * Date: 15 Oct 2020
+ * References:
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
+ * http://www.fpdf.org/en/script/script37.php
+ */var x4={print:4,modify:8,copy:16,"annot-forms":32};function kl(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach(function(a){if(x4.perm!==void 0)throw new Error("Invalid permission: "+a);i+=x4[a]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(e+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=k5(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=E5(this.encryptionKey,this.padding)}function El(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?e+="#"+("0"+i.toString(16)).slice(-2):e+=t[r]}return e}function A4(t){if(Pt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[r,!!i],o},this.unsubscribe=function(n){for(var r in e)if(e[r][n])return delete e[r][n],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var s=e[n][o];try{s[0].apply(t,r)}catch(a){Ke.console&&Ft.error("jsPDF PubSub Error",a.message,a)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Hf(t){if(!(this instanceof Hf))return new Hf(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Gw(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function pa(t,e,n,r,i){if(!(this instanceof pa))return new pa(t,e,n,r,i);this.type=t==="axial"?2:3,this.coords=e,this.colors=n,Gw.call(this,r,i)}function Vl(t,e,n,r,i){if(!(this instanceof Vl))return new Vl(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Gw.call(this,r,i)}function Ye(t){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],a=1,l=16,u="S",d=null;Pt(t=t||{})==="object"&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,(d=t.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),u=t.defaultPathOperation||"S"),s=t.filters||(o===!0?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,g={},h={internal:{},__private__:{}};h.__private__.PubSub=A4;var w="1.3",_=h.__private__.getPdfVersion=function(){return w};h.__private__.setPdfVersion=function(m){w=m};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return x};var v=h.__private__.getPageFormat=function(m){return x[m]};i=i||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},y=S.COMPAT;function A(){this.saveGraphicsState(),J(new He(Ie,0,0,-Ie,0,Ko()*Ie).toString()+" cm"),this.setFontSize(this.getFontSize()/Ie),u="n",y=S.ADVANCED}function L(){this.restoreGraphicsState(),u="S",y=S.COMPAT}var R=h.__private__.combineFontStyleAndFontWeight=function(m,F){if(m=="bold"&&F=="normal"||m=="bold"&&F==400||m=="normal"&&F=="italic"||m=="bold"&&F=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return F&&(m=F==400||F==="normal"?m==="italic"?"italic":"normal":F!=700&&F!=="bold"||m!=="normal"?(F==700?"bold":F)+""+m:"bold"),m};h.advancedAPI=function(m){var F=y===S.COMPAT;return F&&A.call(this),typeof m!="function"||(m(this),F&&L.call(this)),this},h.compatAPI=function(m){var F=y===S.ADVANCED;return F&&L.call(this),typeof m!="function"||(m(this),F&&A.call(this)),this},h.isAdvancedAPI=function(){return y===S.ADVANCED};var D,k=function(m){if(y!==S.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},z=h.roundToPrecision=h.__private__.roundToPrecision=function(m,F){var $=e||F;if(isNaN(m)||isNaN($))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed($).replace(/0+$/,"")};D=h.hpf=h.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return z(m,16)};var T=h.f2=h.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return z(m,2)},P=h.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return z(m,3)},E=h.scale=h.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return y===S.COMPAT?m*Ie:y===S.ADVANCED?m:void 0},W=function(m){return y===S.COMPAT?Ko()-m:y===S.ADVANCED?m:void 0},B=function(m){return E(W(m))};h.__private__.setPrecision=h.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(e=parseInt(m,10))};var Q,ee="00000000000000000000000000000000",se=h.__private__.getFileId=function(){return ee},K=h.__private__.setFileId=function(m){return ee=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():ee.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Kn=new kl(d.userPermissions,d.userPassword,d.ownerPassword,ee)),ee};h.setFileId=function(m){return K(m),this},h.getFileId=function(){return se()};var te=h.__private__.convertDateToPDFDate=function(m){var F=m.getTimezoneOffset(),$=F<0?"+":"-",oe=Math.floor(Math.abs(F/60)),fe=Math.abs(F%60),ye=[$,H(oe),"'",H(fe),"'"].join("");return["D:",m.getFullYear(),H(m.getMonth()+1),H(m.getDate()),H(m.getHours()),H(m.getMinutes()),H(m.getSeconds()),ye].join("")},X=h.__private__.convertPDFDateToDate=function(m){var F=parseInt(m.substr(2,4),10),$=parseInt(m.substr(6,2),10)-1,oe=parseInt(m.substr(8,2),10),fe=parseInt(m.substr(10,2),10),ye=parseInt(m.substr(12,2),10),Ne=parseInt(m.substr(14,2),10);return new Date(F,$,oe,fe,ye,Ne,0)},de=h.__private__.setCreationDate=function(m){var F;if(m===void 0&&(m=new Date),m instanceof Date)F=te(m);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");F=m}return Q=F},M=h.__private__.getCreationDate=function(m){var F=Q;return m==="jsDate"&&(F=X(Q)),F};h.setCreationDate=function(m){return de(m),this},h.getCreationDate=function(m){return M(m)};var G,H=h.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},ne=h.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},ie=0,V=[],Z=[],ce=0,xe=[],we=[],Ce=!1,ke=Z,ze=function(){ie=0,ce=0,Z=[],V=[],xe=[],fo=bn(),hi=bn()};h.__private__.setCustomOutputDestination=function(m){Ce=!0,ke=m};var me=function(m){Ce||(ke=m)};h.__private__.resetCustomOutputDestination=function(){Ce=!1,ke=Z};var J=h.__private__.out=function(m){return m=m.toString(),ce+=m.length+1,ke.push(m),ke},qe=h.__private__.write=function(m){return J(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},Be=h.__private__.getArrayBuffer=function(m){for(var F=m.length,$=new ArrayBuffer(F),oe=new Uint8Array($);F--;)oe[F]=m.charCodeAt(F);return $},Pe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Pe};var Ee=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(m){return Ee=y===S.ADVANCED?m/Ie:m,this};var Fe,je=h.__private__.getFontSize=h.getFontSize=function(){return y===S.COMPAT?Ee:Ee*Ie},Ge=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(m){return Ge=m,this},h.__private__.getR2L=h.getR2L=function(){return Ge};var et,st=h.__private__.setZoomMode=function(m){var F=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Fe=m;else if(isNaN(m)){if(F.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Fe=m}else Fe=parseInt(m,10)};h.__private__.getZoomMode=function(){return Fe};var lt,gt=h.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');et=m};h.__private__.getPageMode=function(){return et};var kt=h.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');lt=m};h.__private__.getLayoutMode=function(){return lt},h.__private__.setDisplayMode=h.setDisplayMode=function(m,F,$){return st(m),kt(F),gt($),this};var Qe={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(m){if(Object.keys(Qe).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qe[m]},h.__private__.getDocumentProperties=function(){return Qe},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(m){for(var F in Qe)Qe.hasOwnProperty(F)&&m[F]&&(Qe[F]=m[F]);return this},h.__private__.setDocumentProperty=function(m,F){if(Object.keys(Qe).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qe[m]=F};var ct,Ie,Yn,yt,li,Mt={},qt={},Bi=[],xt={},$s={},en={},ci={},ho=null,tn=0,tt=[],At=new A4(h),Qs=t.hotfixes||[],zn={},Di={},Ui=[],He=function m(F,$,oe,fe,ye,Ne){if(!(this instanceof m))return new m(F,$,oe,fe,ye,Ne);isNaN(F)&&(F=1),isNaN($)&&($=0),isNaN(oe)&&(oe=0),isNaN(fe)&&(fe=1),isNaN(ye)&&(ye=0),isNaN(Ne)&&(Ne=0),this._matrix=[F,$,oe,fe,ye,Ne]};Object.defineProperty(He.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(He.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(He.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(He.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(He.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(He.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(He.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(He.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(He.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(He.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(He.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(He.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(He.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(He.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(He.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(He.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),He.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(D).join(m)},He.prototype.multiply=function(m){var F=m.sx*this.sx+m.shy*this.shx,$=m.sx*this.shy+m.shy*this.sy,oe=m.shx*this.sx+m.sy*this.shx,fe=m.shx*this.shy+m.sy*this.sy,ye=m.tx*this.sx+m.ty*this.shx+this.tx,Ne=m.tx*this.shy+m.ty*this.sy+this.ty;return new He(F,$,oe,fe,ye,Ne)},He.prototype.decompose=function(){var m=this.sx,F=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty,Ne=Math.sqrt(m*m+F*F),Oe=(m/=Ne)*$+(F/=Ne)*oe;$-=m*Oe,oe-=F*Oe;var Ve=Math.sqrt($*$+oe*oe);return Oe/=Ve,m*(oe/=Ve)<F*($/=Ve)&&(m=-m,F=-F,Oe=-Oe,Ne=-Ne),{scale:new He(Ne,0,0,Ve,0,0),translate:new He(1,0,0,1,fe,ye),rotate:new He(m,F,-F,m,0,0),skew:new He(1,0,Oe,1,0,0)}},He.prototype.toString=function(m){return this.join(" ")},He.prototype.inversed=function(){var m=this.sx,F=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty,Ne=1/(m*oe-F*$),Oe=oe*Ne,Ve=-F*Ne,it=-$*Ne,nt=m*Ne;return new He(Oe,Ve,it,nt,-Oe*fe-it*ye,-Ve*fe-nt*ye)},He.prototype.applyToPoint=function(m){var F=m.x*this.sx+m.y*this.shx+this.tx,$=m.x*this.shy+m.y*this.sy+this.ty;return new rl(F,$)},He.prototype.applyToRectangle=function(m){var F=this.applyToPoint(m),$=this.applyToPoint(new rl(m.x+m.w,m.y+m.h));return new Bc(F.x,F.y,$.x-F.x,$.y-F.y)},He.prototype.clone=function(){var m=this.sx,F=this.shy,$=this.shx,oe=this.sy,fe=this.tx,ye=this.ty;return new He(m,F,$,oe,fe,ye)},h.Matrix=He;var ui=h.matrixMult=function(m,F){return F.multiply(m)},zi=new He(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=zi;var wr=function(m,F){if(!$s[m]){var $=(F instanceof pa?"Sh":"P")+(Object.keys(xt).length+1).toString(10);F.id=$,$s[m]=$,xt[$]=F,At.publish("addPattern",F)}};h.ShadingPattern=pa,h.TilingPattern=Vl,h.addShadingPattern=function(m,F){return k("addShadingPattern()"),wr(m,F),this},h.beginTilingPattern=function(m){k("beginTilingPattern()"),Gh(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},h.endTilingPattern=function(m,F){k("endTilingPattern()"),F.stream=we[G].join(`
+`),wr(m,F),At.publish("endTilingPattern",F),Ui.pop().restore()};var Cn=h.__private__.newObject=function(){var m=bn();return Mr(m,!0),m},bn=h.__private__.newObjectDeferred=function(){return ie++,V[ie]=function(){return ce},ie},Mr=function(m,F){return F=typeof F=="boolean"&&F,V[m]=ce,F&&J(m+" 0 obj"),m},qa=h.__private__.newAdditionalObject=function(){var m={objId:bn(),content:""};return xe.push(m),m},fo=bn(),hi=bn(),di=h.__private__.decodeColorString=function(m){var F=m.split(" ");if(F.length!==2||F[1]!=="g"&&F[1]!=="G")F.length===5&&(F[4]==="k"||F[4]==="K")&&(F=[(1-F[0])*(1-F[3]),(1-F[1])*(1-F[3]),(1-F[2])*(1-F[3]),"r"]);else{var $=parseFloat(F[0]);F=[$,$,$,"r"]}for(var oe="#",fe=0;fe<3;fe++)oe+=("0"+Math.floor(255*parseFloat(F[fe])).toString(16)).slice(-2);return oe},fi=h.__private__.encodeColorString=function(m){var F;typeof m=="string"&&(m={ch1:m});var $=m.ch1,oe=m.ch2,fe=m.ch3,ye=m.ch4,Ne=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof $=="string"&&$.charAt(0)!=="#"){var Oe=new Uw($);if(Oe.ok)$=Oe.toHex();else if(!/^\d*\.?\d*$/.test($))throw new Error('Invalid color "'+$+'" passed to jsPDF.encodeColorString.')}if(typeof $=="string"&&/^#[0-9A-Fa-f]{3}$/.test($)&&($="#"+$[1]+$[1]+$[2]+$[2]+$[3]+$[3]),typeof $=="string"&&/^#[0-9A-Fa-f]{6}$/.test($)){var Ve=parseInt($.substr(1),16);$=Ve>>16&255,oe=Ve>>8&255,fe=255&Ve}if(oe===void 0||ye===void 0&&$===oe&&oe===fe)if(typeof $=="string")F=$+" "+Ne[0];else switch(m.precision){case 2:F=T($/255)+" "+Ne[0];break;case 3:default:F=P($/255)+" "+Ne[0]}else if(ye===void 0||Pt(ye)==="object"){if(ye&&!isNaN(ye.a)&&ye.a===0)return F=["1.","1.","1.",Ne[1]].join(" ");if(typeof $=="string")F=[$,oe,fe,Ne[1]].join(" ");else switch(m.precision){case 2:F=[T($/255),T(oe/255),T(fe/255),Ne[1]].join(" ");break;default:case 3:F=[P($/255),P(oe/255),P(fe/255),Ne[1]].join(" ")}}else if(typeof $=="string")F=[$,oe,fe,ye,Ne[2]].join(" ");else switch(m.precision){case 2:F=[T($),T(oe),T(fe),T(ye),Ne[2]].join(" ");break;case 3:default:F=[P($),P(oe),P(fe),P(ye),Ne[2]].join(" ")}return F},Gi=h.__private__.getFilters=function(){return s},Wr=h.__private__.putStream=function(m){var F=(m=m||{}).data||"",$=m.filters||Gi(),oe=m.alreadyAppliedFilters||[],fe=m.addLength1||!1,ye=F.length,Ne=m.objectId,Oe=function(Xn){return Xn};if(d!==null&&Ne===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Oe=Kn.encryptor(Ne,0));var Ve={};$===!0&&($=["FlateEncode"]);var it=m.additionalKeyValues||[],nt=(Ve=Ye.API.processDataByFilters!==void 0?Ye.API.processDataByFilters(F,$):{data:F,reverseChain:[]}).reverseChain+(Array.isArray(oe)?oe.join(" "):oe.toString());if(Ve.data.length!==0&&(it.push({key:"Length",value:Ve.data.length}),fe===!0&&it.push({key:"Length1",value:ye})),nt.length!=0)if(nt.split("/").length-1==1)it.push({key:"Filter",value:nt});else{it.push({key:"Filter",value:"["+nt+"]"});for(var pt=0;pt<it.length;pt+=1)if(it[pt].key==="DecodeParms"){for(var Yt=[],nn=0;nn<Ve.reverseChain.split("/").length-1;nn+=1)Yt.push("null");Yt.push(it[pt].value),it[pt].value="["+Yt.join(" ")+"]"}}J("<<");for(var _n=0;_n<it.length;_n++)J("/"+it[_n].key+" "+it[_n].value);J(">>"),Ve.data.length!==0&&(J("stream"),J(Oe(Ve.data)),J("endstream"))},Vi=h.__private__.putPage=function(m){var F=m.number,$=m.data,oe=m.objId,fe=m.contentsObjId;Mr(oe,!0),J("<</Type /Page"),J("/Parent "+m.rootDictionaryObjId+" 0 R"),J("/Resources "+m.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(D(m.mediaBox.bottomLeftX))+" "+parseFloat(D(m.mediaBox.bottomLeftY))+" "+D(m.mediaBox.topRightX)+" "+D(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&J("/CropBox ["+D(m.cropBox.bottomLeftX)+" "+D(m.cropBox.bottomLeftY)+" "+D(m.cropBox.topRightX)+" "+D(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&J("/BleedBox ["+D(m.bleedBox.bottomLeftX)+" "+D(m.bleedBox.bottomLeftY)+" "+D(m.bleedBox.topRightX)+" "+D(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&J("/TrimBox ["+D(m.trimBox.bottomLeftX)+" "+D(m.trimBox.bottomLeftY)+" "+D(m.trimBox.topRightX)+" "+D(m.trimBox.topRightY)+"]"),m.artBox!==null&&J("/ArtBox ["+D(m.artBox.bottomLeftX)+" "+D(m.artBox.bottomLeftY)+" "+D(m.artBox.topRightX)+" "+D(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&J("/UserUnit "+m.userUnit),At.publish("putPage",{objId:oe,pageContext:tt[F],pageNumber:F,page:$}),J("/Contents "+fe+" 0 R"),J(">>"),J("endobj");var ye=$.join(`
+`);return y===S.ADVANCED&&(ye+=`
+Q`),Mr(fe,!0),Wr({data:ye,filters:Gi(),objectId:fe}),J("endobj"),oe},Js=h.__private__.putPages=function(){var m,F,$=[];for(m=1;m<=tn;m++)tt[m].objId=bn(),tt[m].contentsObjId=bn();for(m=1;m<=tn;m++)$.push(Vi({number:m,data:we[m],objId:tt[m].objId,contentsObjId:tt[m].contentsObjId,mediaBox:tt[m].mediaBox,cropBox:tt[m].cropBox,bleedBox:tt[m].bleedBox,trimBox:tt[m].trimBox,artBox:tt[m].artBox,userUnit:tt[m].userUnit,rootDictionaryObjId:fo,resourceDictionaryObjId:hi}));Mr(fo,!0),J("<</Type /Pages");var oe="/Kids [";for(F=0;F<tn;F++)oe+=$[F]+" 0 R ";J(oe+"]"),J("/Count "+tn),J(">>"),J("endobj"),At.publish("postPutPages")},Wa=function(m){At.publish("putFont",{font:m,out:J,newObject:Cn,putStream:Wr}),m.isAlreadyPutted!==!0&&(m.objectNumber=Cn(),J("<<"),J("/Type /Font"),J("/BaseFont /"+El(m.postScriptName)),J("/Subtype /Type1"),typeof m.encoding=="string"&&J("/Encoding /"+m.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},Ha=function(){for(var m in Mt)Mt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&Wa(Mt[m])},Ya=function(m){m.objectNumber=Cn();var F=[];F.push({key:"Type",value:"/XObject"}),F.push({key:"Subtype",value:"/Form"}),F.push({key:"BBox",value:"["+[D(m.x),D(m.y),D(m.x+m.width),D(m.y+m.height)].join(" ")+"]"}),F.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var $=m.pages[1].join(`
+`);Wr({data:$,additionalKeyValues:F,objectId:m.objectNumber}),J("endobj")},Ka=function(){for(var m in zn)zn.hasOwnProperty(m)&&Ya(zn[m])},Ah=function(m,F){var $,oe=[],fe=1/(F-1);for($=0;$<1;$+=fe)oe.push($);if(oe.push(1),m[0].offset!=0){var ye={offset:0,color:m[0].color};m.unshift(ye)}if(m[m.length-1].offset!=1){var Ne={offset:1,color:m[m.length-1].color};m.push(Ne)}for(var Oe="",Ve=0,it=0;it<oe.length;it++){for($=oe[it];$>m[Ve+1].offset;)Ve++;var nt=m[Ve].offset,pt=($-nt)/(m[Ve+1].offset-nt),Yt=m[Ve].color,nn=m[Ve+1].color;Oe+=ne(Math.round((1-pt)*Yt[0]+pt*nn[0]).toString(16))+ne(Math.round((1-pt)*Yt[1]+pt*nn[1]).toString(16))+ne(Math.round((1-pt)*Yt[2]+pt*nn[2]).toString(16))}return Oe.trim()},v0=function(m,F){F||(F=21);var $=Cn(),oe=Ah(m.colors,F),fe=[];fe.push({key:"FunctionType",value:"0"}),fe.push({key:"Domain",value:"[0.0 1.0]"}),fe.push({key:"Size",value:"["+F+"]"}),fe.push({key:"BitsPerSample",value:"8"}),fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Wr({data:oe,additionalKeyValues:fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:$}),J("endobj"),m.objectNumber=Cn(),J("<< /ShadingType "+m.type),J("/ColorSpace /DeviceRGB");var ye="/Coords ["+D(parseFloat(m.coords[0]))+" "+D(parseFloat(m.coords[1]))+" ";m.type===2?ye+=D(parseFloat(m.coords[2]))+" "+D(parseFloat(m.coords[3])):ye+=D(parseFloat(m.coords[2]))+" "+D(parseFloat(m.coords[3]))+" "+D(parseFloat(m.coords[4]))+" "+D(parseFloat(m.coords[5])),J(ye+="]"),m.matrix&&J("/Matrix ["+m.matrix.toString()+"]"),J("/Function "+$+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},y0=function(m,F){var $=bn(),oe=Cn();F.push({resourcesOid:$,objectOid:oe}),m.objectNumber=oe;var fe=[];fe.push({key:"Type",value:"/Pattern"}),fe.push({key:"PatternType",value:"1"}),fe.push({key:"PaintType",value:"1"}),fe.push({key:"TilingType",value:"1"}),fe.push({key:"BBox",value:"["+m.boundingBox.map(D).join(" ")+"]"}),fe.push({key:"XStep",value:D(m.xStep)}),fe.push({key:"YStep",value:D(m.yStep)}),fe.push({key:"Resources",value:$+" 0 R"}),m.matrix&&fe.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),Wr({data:m.stream,additionalKeyValues:fe,objectId:m.objectNumber}),J("endobj")},Xa=function(m){var F;for(F in xt)xt.hasOwnProperty(F)&&(xt[F]instanceof pa?v0(xt[F]):xt[F]instanceof Vl&&y0(xt[F],m))},Nh=function(m){for(var F in m.objectNumber=Cn(),J("<<"),m)switch(F){case"opacity":J("/ca "+T(m[F]));break;case"stroke-opacity":J("/CA "+T(m[F]))}J(">>"),J("endobj")},w0=function(){var m;for(m in en)en.hasOwnProperty(m)&&Nh(en[m])},Lc=function(){for(var m in J("/XObject <<"),zn)zn.hasOwnProperty(m)&&zn[m].objectNumber>=0&&J("/"+m+" "+zn[m].objectNumber+" 0 R");At.publish("putXobjectDict"),J(">>")},b0=function(){Kn.oid=Cn(),J("<<"),J("/Filter /Standard"),J("/V "+Kn.v),J("/R "+Kn.r),J("/U <"+Kn.toHexString(Kn.U)+">"),J("/O <"+Kn.toHexString(Kn.O)+">"),J("/P "+Kn.P),J(">>"),J("endobj")},Ch=function(){for(var m in J("/Font <<"),Mt)Mt.hasOwnProperty(m)&&(p===!1||p===!0&&g.hasOwnProperty(m))&&J("/"+m+" "+Mt[m].objectNumber+" 0 R");J(">>")},_0=function(){if(Object.keys(xt).length>0){for(var m in J("/Shading <<"),xt)xt.hasOwnProperty(m)&&xt[m]instanceof pa&&xt[m].objectNumber>=0&&J("/"+m+" "+xt[m].objectNumber+" 0 R");At.publish("putShadingPatternDict"),J(">>")}},$a=function(m){if(Object.keys(xt).length>0){for(var F in J("/Pattern <<"),xt)xt.hasOwnProperty(F)&&xt[F]instanceof h.TilingPattern&&xt[F].objectNumber>=0&&xt[F].objectNumber<m&&J("/"+F+" "+xt[F].objectNumber+" 0 R");At.publish("putTilingPatternDict"),J(">>")}},S0=function(){if(Object.keys(en).length>0){var m;for(m in J("/ExtGState <<"),en)en.hasOwnProperty(m)&&en[m].objectNumber>=0&&J("/"+m+" "+en[m].objectNumber+" 0 R");At.publish("putGStateDict"),J(">>")}},un=function(m){Mr(m.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ch(),_0(),$a(m.objectOid),S0(),Lc(),J(">>"),J("endobj")},Ph=function(){var m=[];Ha(),w0(),Ka(),Xa(m),At.publish("putResources"),m.forEach(un),un({resourcesOid:hi,objectOid:Number.MAX_SAFE_INTEGER}),At.publish("postPutResources")},Lh=function(){At.publish("putAdditionalObjects");for(var m=0;m<xe.length;m++){var F=xe[m];Mr(F.objId,!0),J(F.content),J("endobj")}At.publish("postPutAdditionalObjects")},kh=function(m){qt[m.fontName]=qt[m.fontName]||{},qt[m.fontName][m.fontStyle]=m.id},kc=function(m,F,$,oe,fe){var ye={id:"F"+(Object.keys(Mt).length+1).toString(10),postScriptName:m,fontName:F,fontStyle:$,encoding:oe,isStandardFont:fe||!1,metadata:{}};return At.publish("addFont",{font:ye,instance:this}),Mt[ye.id]=ye,kh(ye),ye.id},x0=function(m){for(var F=0,$=Pe.length;F<$;F++){var oe=kc.call(this,m[F][0],m[F][1],m[F][2],Pe[F][3],!0);p===!1&&(g[oe]=!0);var fe=m[F][0].split("-");kh({id:oe,fontName:fe[0],fontStyle:fe[1]||""})}At.publish("addFonts",{fonts:Mt,dictionary:qt})},pi=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(oe){var F=oe.stack||"";~F.indexOf(" at ")&&(F=F.split(" at ")[1]);var $="Error in function "+F.split(`
+`)[0].split("<")[0]+": "+oe.message;if(!Ke.console)throw new Error($);Ke.console.error($,oe),Ke.alert&&alert($)}},m.foo.bar=m,m.foo},Qa=function(m,F){var $,oe,fe,ye,Ne,Oe,Ve,it,nt;if(fe=(F=F||{}).sourceEncoding||"Unicode",Ne=F.outputEncoding,(F.autoencode||Ne)&&Mt[ct].metadata&&Mt[ct].metadata[fe]&&Mt[ct].metadata[fe].encoding&&(ye=Mt[ct].metadata[fe].encoding,!Ne&&Mt[ct].encoding&&(Ne=Mt[ct].encoding),!Ne&&ye.codePages&&(Ne=ye.codePages[0]),typeof Ne=="string"&&(Ne=ye[Ne]),Ne)){for(Ve=!1,Oe=[],$=0,oe=m.length;$<oe;$++)(it=Ne[m.charCodeAt($)])?Oe.push(String.fromCharCode(it)):Oe.push(m[$]),Oe[$].charCodeAt(0)>>8&&(Ve=!0);m=Oe.join("")}for($=m.length;Ve===void 0&&$!==0;)m.charCodeAt($-1)>>8&&(Ve=!0),$--;if(!Ve)return m;for(Oe=F.noBOM?[]:[254,255],$=0,oe=m.length;$<oe;$++){if((nt=(it=m.charCodeAt($))>>8)>>8)throw new Error("Character at position "+$+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Oe.push(nt),Oe.push(it-(nt<<8))}return String.fromCharCode.apply(void 0,Oe)},br=h.__private__.pdfEscape=h.pdfEscape=function(m,F){return Qa(m,F).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ec=h.__private__.beginPage=function(m){we[++tn]=[],tt[tn]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},Th(tn),me(we[G])},Eh=function(m,F){var $,oe,fe;switch(n=F||n,typeof m=="string"&&($=v(m.toLowerCase()),Array.isArray($)&&(oe=$[0],fe=$[1])),Array.isArray(m)&&(oe=m[0]*Ie,fe=m[1]*Ie),isNaN(oe)&&(oe=i[0],fe=i[1]),(oe>14400||fe>14400)&&(Ft.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),oe=Math.min(14400,oe),fe=Math.min(14400,fe)),i=[oe,fe],n.substr(0,1)){case"l":fe>oe&&(i=[fe,oe]);break;case"p":oe>fe&&(i=[fe,oe])}Ec(i),Rh(Fc),J(gi),Oc!==0&&J(Oc+" J"),Rc!==0&&J(Rc+" j"),At.publish("addPage",{pageNumber:tn})},A0=function(m){m>0&&m<=tn&&(we.splice(m,1),tt.splice(m,1),tn--,G>tn&&(G=tn),this.setPage(G))},Th=function(m){m>0&&m<=tn&&(G=m)},N0=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return we.length-1},Mh=function(m,F,$){var oe,fe=void 0;return $=$||{},m=m!==void 0?m:Mt[ct].fontName,F=F!==void 0?F:Mt[ct].fontStyle,oe=m.toLowerCase(),qt[oe]!==void 0&&qt[oe][F]!==void 0?fe=qt[oe][F]:qt[m]!==void 0&&qt[m][F]!==void 0?fe=qt[m][F]:$.disableWarning===!1&&Ft.warn("Unable to look up font label for font '"+m+"', '"+F+"'. Refer to getFontList() for available fonts."),fe||$.noFallback||(fe=qt.times[F])==null&&(fe=qt.times.normal),fe},C0=h.__private__.putInfo=function(){var m=Cn(),F=function(oe){return oe};for(var $ in d!==null&&(F=Kn.encryptor(m,0)),J("<<"),J("/Producer ("+br(F("jsPDF "+Ye.version))+")"),Qe)Qe.hasOwnProperty($)&&Qe[$]&&J("/"+$.substr(0,1).toUpperCase()+$.substr(1)+" ("+br(F(Qe[$]))+")");J("/CreationDate ("+br(F(Q))+")"),J(">>"),J("endobj")},Tc=h.__private__.putCatalog=function(m){var F=(m=m||{}).rootDictionaryObjId||fo;switch(Cn(),J("<<"),J("/Type /Catalog"),J("/Pages "+F+" 0 R"),Fe||(Fe="fullwidth"),Fe){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var $=""+Fe;$.substr($.length-1)==="%"&&(Fe=parseInt(Fe)/100),typeof Fe=="number"&&J("/OpenAction [3 0 R /XYZ null null "+T(Fe)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}et&&J("/PageMode /"+et),At.publish("putCatalog"),J(">>"),J("endobj")},P0=h.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(ie+1)),J("/Root "+ie+" 0 R"),J("/Info "+(ie-1)+" 0 R"),d!==null&&J("/Encrypt "+Kn.oid+" 0 R"),J("/ID [ <"+ee+"> <"+ee+"> ]"),J(">>")},L0=h.__private__.putHeader=function(){J("%PDF-"+w),J("%ºß¬à")},k0=h.__private__.putXRef=function(){var m="0000000000";J("xref"),J("0 "+(ie+1)),J("0000000000 65535 f ");for(var F=1;F<=ie;F++)typeof V[F]=="function"?J((m+V[F]()).slice(-10)+" 00000 n "):V[F]!==void 0?J((m+V[F]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},po=h.__private__.buildDocument=function(){ze(),me(Z),At.publish("buildDocument"),L0(),Js(),Lh(),Ph(),d!==null&&b0(),C0(),Tc();var m=ce;return k0(),P0(),J("startxref"),J(""+m),J("%%EOF"),me(we[G]),Z.join(`
+`)},Ja=h.__private__.getBlob=function(m){return new Blob([Be(m)],{type:"application/pdf"})},Za=h.output=h.__private__.output=pi(function(m,F){switch(typeof(F=F||{})=="string"?F={filename:F}:F.filename=F.filename||"generated.pdf",m){case void 0:return po();case"save":h.save(F.filename);break;case"arraybuffer":return Be(po());case"blob":return Ja(po());case"bloburi":case"bloburl":if(Ke.URL!==void 0&&typeof Ke.URL.createObjectURL=="function")return Ke.URL&&Ke.URL.createObjectURL(Ja(po()))||void 0;Ft.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var $="",oe=po();try{$=L5(oe)}catch{$=L5(unescape(encodeURIComponent(oe)))}return"data:application/pdf;filename="+F.filename+";base64,"+$;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ke)==="[object Window]"){var fe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ye=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';F.pdfObjectUrl&&(fe=F.pdfObjectUrl,ye="");var Ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+fe+'"'+ye+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(F)+");<\/script></body></html>",Oe=Ke.open();return Oe!==null&&Oe.document.write(Ne),Oe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ke)==="[object Window]"){var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(F.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+F.filename+'" width="500px" height="400px" /></body></html>',it=Ke.open();if(it!==null){it.document.write(Ve);var nt=this;it.document.documentElement.querySelector("#pdfViewer").onload=function(){it.document.title=F.filename,it.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(nt.output("bloburl"))}}return it}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ke)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var pt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",F)+'"></iframe></body></html>',Yt=Ke.open();if(Yt!==null&&(Yt.document.write(pt),Yt.document.title=F.filename),Yt||typeof safari>"u")return Yt;break;case"datauri":case"dataurl":return Ke.document.location.href=this.output("datauristring",F);default:return null}}),jh=function(m){return Array.isArray(Qs)===!0&&Qs.indexOf(m)>-1};switch(r){case"pt":Ie=1;break;case"mm":Ie=72/25.4;break;case"cm":Ie=72/2.54;break;case"in":Ie=72;break;case"px":Ie=jh("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ie=12;break;case"ex":Ie=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Ie=r}var Kn=null;de(),K();var E0=function(m){return d!==null?Kn.encryptor(m,0):function(F){return F}},Fh=h.__private__.getPageInfo=h.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:tt[m].objId,pageNumber:m,pageContext:tt[m]}},Ze=h.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var F in tt)if(tt[F].objId===m)break;return Fh(F)},T0=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:tt[G].objId,pageNumber:G,pageContext:tt[G]}};h.addPage=function(){return Eh.apply(this,arguments),this},h.setPage=function(){return Th.apply(this,arguments),me.call(this,we[G]),this},h.insertPage=function(m){return this.addPage(),this.movePage(G,m),this},h.movePage=function(m,F){var $,oe;if(m>F){$=we[m],oe=tt[m];for(var fe=m;fe>F;fe--)we[fe]=we[fe-1],tt[fe]=tt[fe-1];we[F]=$,tt[F]=oe,this.setPage(F)}else if(m<F){$=we[m],oe=tt[m];for(var ye=m;ye<F;ye++)we[ye]=we[ye+1],tt[ye]=tt[ye+1];we[F]=$,tt[F]=oe,this.setPage(F)}return this},h.deletePage=function(){return A0.apply(this,arguments),this},h.__private__.text=h.text=function(m,F,$,oe,fe){var ye,Ne,Oe,Ve,it,nt,pt,Yt,nn,_n=(oe=oe||{}).scope||this;if(typeof m=="number"&&typeof F=="number"&&(typeof $=="string"||Array.isArray($))){var Xn=$;$=F,F=m,m=Xn}if(arguments[3]instanceof He?(k("The transform parameter of text() with a Matrix value"),nn=fe):(Oe=arguments[4],Ve=arguments[5],Pt(pt=arguments[3])==="object"&&pt!==null||(typeof Oe=="string"&&(Ve=Oe,Oe=null),typeof pt=="string"&&(Ve=pt,pt=null),typeof pt=="number"&&(Oe=pt,pt=null),oe={flags:pt,angle:Oe,align:Ve})),isNaN(F)||isNaN($)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return _n;var Fn="",mi=!1,jr=typeof oe.lineHeightFactor=="number"?oe.lineHeightFactor:ea,Hi=_n.internal.scaleFactor;function Vh(Rt){return Rt=Rt.split("	").join(Array(oe.TabLen||9).join(" ")),br(Rt,pt)}function Gc(Rt){for(var Bt,dn=Rt.concat(),Pn=[],wo=dn.length;wo--;)typeof(Bt=dn.shift())=="string"?Pn.push(Bt):Array.isArray(Rt)&&(Bt.length===1||Bt[1]===void 0&&Bt[2]===void 0)?Pn.push(Bt[0]):Pn.push([Bt[0],Bt[1],Bt[2]]);return Pn}function Vc(Rt,Bt){var dn;if(typeof Rt=="string")dn=Bt(Rt)[0];else if(Array.isArray(Rt)){for(var Pn,wo,Qc=Rt.concat(),pl=[],Kh=Qc.length;Kh--;)typeof(Pn=Qc.shift())=="string"?pl.push(Bt(Pn)[0]):Array.isArray(Pn)&&typeof Pn[0]=="string"&&(wo=Bt(Pn[0],Pn[1],Pn[2]),pl.push([wo[0],wo[1],wo[2]]));dn=pl}return dn}var ol=!1,qc=!0;if(typeof m=="string")ol=!0;else if(Array.isArray(m)){var Wc=m.concat();Ne=[];for(var sl,Gn=Wc.length;Gn--;)(typeof(sl=Wc.shift())!="string"||Array.isArray(sl)&&typeof sl[0]!="string")&&(qc=!1);ol=qc}if(ol===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var al=Ee/_n.internal.scaleFactor,ll=al*(jr-1);switch(oe.baseline){case"bottom":$-=ll;break;case"top":$+=al-ll;break;case"hanging":$+=al-2*ll;break;case"middle":$+=al/2-ll}if((nt=oe.maxWidth||0)>0&&(typeof m=="string"?m=_n.splitTextToSize(m,nt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(Rt,Bt){return Rt.concat(_n.splitTextToSize(Bt,nt))},[]))),ye={text:m,x:F,y:$,options:oe,mutex:{pdfEscape:br,activeFontKey:ct,fonts:Mt,activeFontSize:Ee}},At.publish("preProcessText",ye),m=ye.text,Oe=(oe=ye.options).angle,!(nn instanceof He)&&Oe&&typeof Oe=="number"){Oe*=Math.PI/180,oe.rotationDirection===0&&(Oe=-Oe),y===S.ADVANCED&&(Oe=-Oe);var cl=Math.cos(Oe),Hc=Math.sin(Oe);nn=new He(cl,Hc,-Hc,cl,0,0)}else Oe&&Oe instanceof He&&(nn=Oe);y!==S.ADVANCED||nn||(nn=zi),(it=oe.charSpace||nl)!==void 0&&(Fn+=D(E(it))+` Tc
+`,this.setCharSpace(this.getCharSpace()||0)),(Yt=oe.horizontalScale)!==void 0&&(Fn+=D(100*Yt)+` Tz
+`),oe.lang;var _r=-1,z0=oe.renderingMode!==void 0?oe.renderingMode:oe.stroke,Yc=_n.internal.getCurrentPageInfo().pageContext;switch(z0){case 0:case!1:case"fill":_r=0;break;case 1:case!0:case"stroke":_r=1;break;case 2:case"fillThenStroke":_r=2;break;case 3:case"invisible":_r=3;break;case 4:case"fillAndAddForClipping":_r=4;break;case 5:case"strokeAndAddPathForClipping":_r=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_r=6;break;case 7:case"addToPathForClipping":_r=7}var qh=Yc.usedRenderingMode!==void 0?Yc.usedRenderingMode:-1;_r!==-1?Fn+=_r+` Tr
+`:qh!==-1&&(Fn+=`0 Tr
+`),_r!==-1&&(Yc.usedRenderingMode=_r),Ve=oe.align||"left";var Hr,ul=Ee*jr,Wh=_n.internal.pageSize.getWidth(),Hh=Mt[ct];it=oe.charSpace||nl,nt=oe.maxWidth||0,pt=Object.assign({autoencode:!0,noBOM:!0},oe.flags);var Xo=[],ra=function(Rt){return _n.getStringUnitWidth(Rt,{font:Hh,charSpace:it,fontSize:Ee,doKerning:!1})*Ee/Hi};if(Object.prototype.toString.call(m)==="[object Array]"){var Sr;Ne=Gc(m),Ve!=="left"&&(Hr=Ne.map(ra));var cr,$o=0;if(Ve==="right"){F-=Hr[0],m=[],Gn=Ne.length;for(var mo=0;mo<Gn;mo++)mo===0?(cr=Wi(F),Sr=go($)):(cr=E($o-Hr[mo]),Sr=-ul),m.push([Ne[mo],cr,Sr]),$o=Hr[mo]}else if(Ve==="center"){F-=Hr[0]/2,m=[],Gn=Ne.length;for(var vo=0;vo<Gn;vo++)vo===0?(cr=Wi(F),Sr=go($)):(cr=E(($o-Hr[vo])/2),Sr=-ul),m.push([Ne[vo],cr,Sr]),$o=Hr[vo]}else if(Ve==="left"){m=[],Gn=Ne.length;for(var hl=0;hl<Gn;hl++)m.push(Ne[hl])}else if(Ve==="justify"&&Hh.encoding==="Identity-H"){m=[],Gn=Ne.length,nt=nt!==0?nt:Wh;for(var yo=0,hn=0;hn<Gn;hn++)if(Sr=hn===0?go($):-ul,cr=hn===0?Wi(F):yo,hn<Gn-1){var Kc=E((nt-Hr[hn])/(Ne[hn].split(" ").length-1)),ur=Ne[hn].split(" ");m.push([ur[0]+" ",cr,Sr]),yo=0;for(var Yr=1;Yr<ur.length;Yr++){var dl=(ra(ur[Yr-1]+" "+ur[Yr])-ra(ur[Yr]))*Hi+Kc;Yr==ur.length-1?m.push([ur[Yr],dl,0]):m.push([ur[Yr]+" ",dl,0]),yo-=dl}}else m.push([Ne[hn],cr,Sr]);m.push(["",yo,0])}else{if(Ve!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(m=[],Gn=Ne.length,nt=nt!==0?nt:Wh,hn=0;hn<Gn;hn++)Sr=hn===0?go($):-ul,cr=hn===0?Wi(F):0,hn<Gn-1?Xo.push(D(E((nt-Hr[hn])/(Ne[hn].split(" ").length-1)))):Xo.push(0),m.push([Ne[hn],cr,Sr])}}var Yh=typeof oe.R2L=="boolean"?oe.R2L:Ge;Yh===!0&&(m=Vc(m,function(Rt,Bt,dn){return[Rt.split("").reverse().join(""),Bt,dn]})),ye={text:m,x:F,y:$,options:oe,mutex:{pdfEscape:br,activeFontKey:ct,fonts:Mt,activeFontSize:Ee}},At.publish("postProcessText",ye),m=ye.text,mi=ye.mutex.isHex||!1;var Xc=Mt[ct].encoding;Xc!=="WinAnsiEncoding"&&Xc!=="StandardEncoding"||(m=Vc(m,function(Rt,Bt,dn){return[Vh(Rt),Bt,dn]})),Ne=Gc(m),m=[];for(var ia,oa,Qo,sa=0,fl=1,aa=Array.isArray(Ne[0])?fl:sa,Jo="",$c=function(Rt,Bt,dn){var Pn="";return dn instanceof He?(dn=typeof oe.angle=="number"?ui(dn,new He(1,0,0,1,Rt,Bt)):ui(new He(1,0,0,1,Rt,Bt),dn),y===S.ADVANCED&&(dn=ui(new He(1,0,0,-1,0,0),dn)),Pn=dn.join(" ")+` Tm
+`):Pn=D(Rt)+" "+D(Bt)+` Td
+`,Pn},Kr=0;Kr<Ne.length;Kr++){switch(Jo="",aa){case fl:Qo=(mi?"<":"(")+Ne[Kr][0]+(mi?">":")"),ia=parseFloat(Ne[Kr][1]),oa=parseFloat(Ne[Kr][2]);break;case sa:Qo=(mi?"<":"(")+Ne[Kr]+(mi?">":")"),ia=Wi(F),oa=go($)}Xo!==void 0&&Xo[Kr]!==void 0&&(Jo=Xo[Kr]+` Tw
+`),Kr===0?m.push(Jo+$c(ia,oa,nn)+Qo):aa===sa?m.push(Jo+Qo):aa===fl&&m.push(Jo+$c(ia,oa,nn)+Qo)}m=aa===sa?m.join(` Tj
+T* `):m.join(` Tj
+`),m+=` Tj
+`;var Xr=`BT
+/`;return Xr+=ct+" "+Ee+` Tf
+`,Xr+=D(Ee*jr)+` TL
+`,Xr+=ta+`
+`,Xr+=Fn,Xr+=m,J(Xr+="ET"),g[ct]=!0,_n};var M0=h.__private__.clip=h.clip=function(m){return J(m==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return M0("evenodd")},h.__private__.discardPath=h.discardPath=function(){return J("n"),this};var qi=h.__private__.isValidStyle=function(m){var F=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(F=!0),F};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(m){return qi(m)&&(u=m),this};var Ih=h.__private__.getStyle=h.getStyle=function(m){var F=u;switch(m){case"D":case"S":F="S";break;case"F":F="f";break;case"FD":case"DF":F="B";break;case"f":case"f*":case"B":case"B*":F=m}return F},Oh=h.close=function(){return J("h"),this};h.stroke=function(){return J("S"),this},h.fill=function(m){return el("f",m),this},h.fillEvenOdd=function(m){return el("f*",m),this},h.fillStroke=function(m){return el("B",m),this},h.fillStrokeEvenOdd=function(m){return el("B*",m),this};var el=function(m,F){Pt(F)==="object"?F0(F,m):J(m)},Mc=function(m){m===null||y===S.ADVANCED&&m===void 0||(m=Ih(m),J(m))};function j0(m,F,$,oe,fe){var ye=new Vl(F||this.boundingBox,$||this.xStep,oe||this.yStep,this.gState,fe||this.matrix);ye.stream=this.stream;var Ne=m+"$$"+this.cloneIndex+++"$$";return wr(Ne,ye),ye}var F0=function(m,F){var $=$s[m.key],oe=xt[$];if(oe instanceof pa)J("q"),J(I0(F)),oe.gState&&h.setGState(oe.gState),J(m.matrix.toString()+" cm"),J("/"+$+" sh"),J("Q");else if(oe instanceof Vl){var fe=new He(1,0,0,-1,0,Ko());m.matrix&&(fe=fe.multiply(m.matrix||zi),$=j0.call(oe,m.key,m.boundingBox,m.xStep,m.yStep,fe).id),J("q"),J("/Pattern cs"),J("/"+$+" scn"),oe.gState&&h.setGState(oe.gState),J(F),J("Q")}},I0=function(m){switch(m){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},jc=h.moveTo=function(m,F){return J(D(E(m))+" "+D(B(F))+" m"),this},Zs=h.lineTo=function(m,F){return J(D(E(m))+" "+D(B(F))+" l"),this},Ho=h.curveTo=function(m,F,$,oe,fe,ye){return J([D(E(m)),D(B(F)),D(E($)),D(B(oe)),D(E(fe)),D(B(ye)),"c"].join(" ")),this};h.__private__.line=h.line=function(m,F,$,oe,fe){if(isNaN(m)||isNaN(F)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.line");return y===S.COMPAT?this.lines([[$-m,oe-F]],m,F,[1,1],fe||"S"):this.lines([[$-m,oe-F]],m,F,[1,1]).stroke()},h.__private__.lines=h.lines=function(m,F,$,oe,fe,ye){var Ne,Oe,Ve,it,nt,pt,Yt,nn,_n,Xn,Fn,mi;if(typeof m=="number"&&(mi=$,$=F,F=m,m=mi),oe=oe||[1,1],ye=ye||!1,isNaN(F)||isNaN($)||!Array.isArray(m)||!Array.isArray(oe)||!qi(fe)||typeof ye!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(jc(F,$),Ne=oe[0],Oe=oe[1],it=m.length,Xn=F,Fn=$,Ve=0;Ve<it;Ve++)(nt=m[Ve]).length===2?(Xn=nt[0]*Ne+Xn,Fn=nt[1]*Oe+Fn,Zs(Xn,Fn)):(pt=nt[0]*Ne+Xn,Yt=nt[1]*Oe+Fn,nn=nt[2]*Ne+Xn,_n=nt[3]*Oe+Fn,Xn=nt[4]*Ne+Xn,Fn=nt[5]*Oe+Fn,Ho(pt,Yt,nn,_n,Xn,Fn));return ye&&Oh(),Mc(fe),this},h.path=function(m){for(var F=0;F<m.length;F++){var $=m[F],oe=$.c;switch($.op){case"m":jc(oe[0],oe[1]);break;case"l":Zs(oe[0],oe[1]);break;case"c":Ho.apply(this,oe);break;case"h":Oh()}}return this},h.__private__.rect=h.rect=function(m,F,$,oe,fe){if(isNaN(m)||isNaN(F)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.rect");return y===S.COMPAT&&(oe=-oe),J([D(E(m)),D(B(F)),D(E($)),D(E(oe)),"re"].join(" ")),Mc(fe),this},h.__private__.triangle=h.triangle=function(m,F,$,oe,fe,ye,Ne){if(isNaN(m)||isNaN(F)||isNaN($)||isNaN(oe)||isNaN(fe)||isNaN(ye)||!qi(Ne))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[$-m,oe-F],[fe-$,ye-oe],[m-fe,F-ye]],m,F,[1,1],Ne,!0),this},h.__private__.roundedRect=h.roundedRect=function(m,F,$,oe,fe,ye,Ne){if(isNaN(m)||isNaN(F)||isNaN($)||isNaN(oe)||isNaN(fe)||isNaN(ye)||!qi(Ne))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Oe=4/3*(Math.SQRT2-1);return fe=Math.min(fe,.5*$),ye=Math.min(ye,.5*oe),this.lines([[$-2*fe,0],[fe*Oe,0,fe,ye-ye*Oe,fe,ye],[0,oe-2*ye],[0,ye*Oe,-fe*Oe,ye,-fe,ye],[2*fe-$,0],[-fe*Oe,0,-fe,-ye*Oe,-fe,-ye],[0,2*ye-oe],[0,-ye*Oe,fe*Oe,-ye,fe,-ye]],m+fe,F,[1,1],Ne,!0),this},h.__private__.ellipse=h.ellipse=function(m,F,$,oe,fe){if(isNaN(m)||isNaN(F)||isNaN($)||isNaN(oe)||!qi(fe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ye=4/3*(Math.SQRT2-1)*$,Ne=4/3*(Math.SQRT2-1)*oe;return jc(m+$,F),Ho(m+$,F-Ne,m+ye,F-oe,m,F-oe),Ho(m-ye,F-oe,m-$,F-Ne,m-$,F),Ho(m-$,F+Ne,m-ye,F+oe,m,F+oe),Ho(m+ye,F+oe,m+$,F+Ne,m+$,F),Mc(fe),this},h.__private__.circle=h.circle=function(m,F,$,oe){if(isNaN(m)||isNaN(F)||isNaN($)||!qi(oe))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,F,$,$,oe)},h.setFont=function(m,F,$){return $&&(F=R(F,$)),ct=Mh(m,F,{disableWarning:!1}),this};var O0=h.__private__.getFont=h.getFont=function(){return Mt[Mh.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var m,F,$={};for(m in qt)if(qt.hasOwnProperty(m))for(F in $[m]=[],qt[m])qt[m].hasOwnProperty(F)&&$[m].push(F);return $},h.addFont=function(m,F,$,oe,fe){var ye=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ye.indexOf(arguments[3])!==-1?fe=arguments[3]:arguments[3]&&ye.indexOf(arguments[3])==-1&&($=R($,oe)),fe=fe||"Identity-H",kc.call(this,m,F,$,fe)};var ea,Fc=t.lineWidth||.200025,tl=h.__private__.getLineWidth=h.getLineWidth=function(){return Fc},Rh=h.__private__.setLineWidth=h.setLineWidth=function(m){return Fc=m,J(D(E(m))+" w"),this};h.__private__.setLineDash=Ye.API.setLineDash=Ye.API.setLineDashPattern=function(m,F){if(m=m||[],F=F||0,isNaN(F)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function($){return D(E($))}).join(" "),F=D(E(F)),J("["+m+"] "+F+" d"),this};var Bh=h.__private__.getLineHeight=h.getLineHeight=function(){return Ee*ea};h.__private__.getLineHeight=h.getLineHeight=function(){return Ee*ea};var Dh=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(ea=m),this},Uh=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return ea};Dh(t.lineHeight);var Wi=h.__private__.getHorizontalCoordinate=function(m){return E(m)},go=h.__private__.getVerticalCoordinate=function(m){return y===S.ADVANCED?m:tt[G].mediaBox.topRightY-tt[G].mediaBox.bottomLeftY-E(m)},R0=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(m){return D(Wi(m))},Yo=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(m){return D(go(m))},gi=t.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return di(gi)},h.__private__.setStrokeColor=h.setDrawColor=function(m,F,$,oe){return gi=fi({ch1:m,ch2:F,ch3:$,ch4:oe,pdfColorType:"draw",precision:2}),J(gi),this};var Ic=t.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return di(Ic)},h.__private__.setFillColor=h.setFillColor=function(m,F,$,oe){return Ic=fi({ch1:m,ch2:F,ch3:$,ch4:oe,pdfColorType:"fill",precision:2}),J(Ic),this};var ta=t.textColor||"0 g",B0=h.__private__.getTextColor=h.getTextColor=function(){return di(ta)};h.__private__.setTextColor=h.setTextColor=function(m,F,$,oe){return ta=fi({ch1:m,ch2:F,ch3:$,ch4:oe,pdfColorType:"text",precision:3}),this};var nl=t.charSpace,D0=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(nl||0)};h.__private__.setCharSpace=h.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return nl=m,this};var Oc=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(m){var F=h.CapJoinStyles[m];if(F===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Oc=F,J(F+" J"),this};var Rc=0;h.__private__.setLineJoin=h.setLineJoin=function(m){var F=h.CapJoinStyles[m];if(F===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Rc=F,J(F+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(D(E(m))+" M"),this},h.GState=Hf,h.setGState=function(m){(m=typeof m=="string"?en[ci[m]]:zh(null,m)).equals(ho)||(J("/"+m.id+" gs"),ho=m)};var zh=function(m,F){if(!m||!ci[m]){var $=!1;for(var oe in en)if(en.hasOwnProperty(oe)&&en[oe].equals(F)){$=!0;break}if($)F=en[oe];else{var fe="GS"+(Object.keys(en).length+1).toString(10);en[fe]=F,F.id=fe}return m&&(ci[m]=F.id),At.publish("addGState",F),F}};h.addGState=function(m,F){return zh(m,F),this},h.saveGraphicsState=function(){return J("q"),Bi.push({key:ct,size:Ee,color:ta}),this},h.restoreGraphicsState=function(){J("Q");var m=Bi.pop();return ct=m.key,Ee=m.size,ta=m.color,ho=null,this},h.setCurrentTransformationMatrix=function(m){return J(m.toString()+" cm"),this},h.comment=function(m){return J("#"+m),this};var rl=function(m,F){var $=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $},set:function(ye){isNaN(ye)||($=parseFloat(ye))}});var oe=F||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return oe},set:function(ye){isNaN(ye)||(oe=parseFloat(ye))}});var fe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return fe},set:function(ye){fe=ye.toString()}}),this},Bc=function(m,F,$,oe){rl.call(this,m,F),this.type="rect";var fe=$||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return fe},set:function(Ne){isNaN(Ne)||(fe=parseFloat(Ne))}});var ye=oe||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ye},set:function(Ne){isNaN(Ne)||(ye=parseFloat(Ne))}}),this},Dc=function(){this.page=tn,this.currentPage=G,this.pages=we.slice(0),this.pagesContext=tt.slice(0),this.x=Yn,this.y=yt,this.matrix=li,this.width=na(G),this.height=Ko(G),this.outputDestination=ke,this.id="",this.objectNumber=-1};Dc.prototype.restore=function(){tn=this.page,G=this.currentPage,tt=this.pagesContext,we=this.pages,Yn=this.x,yt=this.y,li=this.matrix,Uc(G,this.width),zc(G,this.height),ke=this.outputDestination};var Gh=function(m,F,$,oe,fe){Ui.push(new Dc),tn=G=0,we=[],Yn=m,yt=F,li=fe,Ec([$,oe])},U0=function(m){if(Di[m])Ui.pop().restore();else{var F=new Dc,$="Xo"+(Object.keys(zn).length+1).toString(10);F.id=$,Di[m]=$,zn[$]=F,At.publish("addFormObject",F),Ui.pop().restore()}};for(var il in h.beginFormObject=function(m,F,$,oe,fe){return Gh(m,F,$,oe,fe),this},h.endFormObject=function(m){return U0(m),this},h.doFormObject=function(m,F){var $=zn[Di[m]];return J("q"),J(F.toString()+" cm"),J("/"+$.id+" Do"),J("Q"),this},h.getFormObject=function(m){var F=zn[Di[m]];return{x:F.x,y:F.y,width:F.width,height:F.height,matrix:F.matrix}},h.save=function(m,F){return m=m||"generated.pdf",(F=F||{}).returnPromise=F.returnPromise||!1,F.returnPromise===!1?(fa(Ja(po()),m),typeof fa.unload=="function"&&Ke.setTimeout&&setTimeout(fa.unload,911),this):new Promise(function($,oe){try{var fe=fa(Ja(po()),m);typeof fa.unload=="function"&&Ke.setTimeout&&setTimeout(fa.unload,911),$(fe)}catch(ye){oe(ye.message)}})},Ye.API)Ye.API.hasOwnProperty(il)&&(il==="events"&&Ye.API.events.length?function(m,F){var $,oe,fe;for(fe=F.length-1;fe!==-1;fe--)$=F[fe][0],oe=F[fe][1],m.subscribe.apply(m,[$].concat(typeof oe=="function"?[oe]:oe))}(At,Ye.API.events):h[il]=Ye.API[il]);var na=h.getPageWidth=function(m){return(tt[m=m||G].mediaBox.topRightX-tt[m].mediaBox.bottomLeftX)/Ie},Uc=h.setPageWidth=function(m,F){tt[m].mediaBox.topRightX=F*Ie+tt[m].mediaBox.bottomLeftX},Ko=h.getPageHeight=function(m){return(tt[m=m||G].mediaBox.topRightY-tt[m].mediaBox.bottomLeftY)/Ie},zc=h.setPageHeight=function(m,F){tt[m].mediaBox.topRightY=F*Ie+tt[m].mediaBox.bottomLeftY};return h.internal={pdfEscape:br,getStyle:Ih,getFont:O0,getFontSize:je,getCharSpace:D0,getTextColor:B0,getLineHeight:Bh,getLineHeightFactor:Uh,getLineWidth:tl,write:qe,getHorizontalCoordinate:Wi,getVerticalCoordinate:go,getCoordinateString:R0,getVerticalCoordinateString:Yo,collections:{},newObject:Cn,newAdditionalObject:qa,newObjectDeferred:bn,newObjectDeferredBegin:Mr,getFilters:Gi,putStream:Wr,events:At,scaleFactor:Ie,pageSize:{getWidth:function(){return na(G)},setWidth:function(m){Uc(G,m)},getHeight:function(){return Ko(G)},setHeight:function(m){zc(G,m)}},encryptionOptions:d,encryption:Kn,getEncryptor:E0,output:Za,getNumberOfPages:N0,pages:we,out:J,f2:T,f3:P,getPageInfo:Fh,getPageInfoByObjId:Ze,getCurrentPageInfo:T0,getPDFVersion:_,Point:rl,Rectangle:Bc,Matrix:He,hasHotfix:jh},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return na(G)},set:function(m){Uc(G,m)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ko(G)},set:function(m){zc(G,m)},enumerable:!0,configurable:!0}),x0.call(h,Pe),ct="F1",Eh(i,n),At.publish("initialized"),h}kl.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},kl.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},kl.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},kl.prototype.processOwnerPassword=function(t,e){return E5(k5(e).substr(0,5),t)},kl.prototype.encryptor=function(t,e){var n=k5(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return E5(n,r)}},Hf.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||Pt(t)!==Pt(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return r===0},Ye.API={events:[]},Ye.version="2.5.2";var sn=Ye.API,am=1,Va=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Cl=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},rt=function(t){return t.toFixed(2)},us=function(t){return t.toFixed(5)};sn.__acroform__={};var Tr=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},N4=function(t){return t*am},Qi=function(t){var e=new qw,n=Ue.internal.getHeight(t)||0,r=Ue.internal.getWidth(t)||0;return e.BBox=[0,0,Number(rt(r)),Number(rt(n))],e},Jj=sn.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},Zj=sn.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},eF=sn.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},gn=sn.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return eF(t,e-1)},mn=sn.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Jj(t,e-1)},vn=sn.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zj(t,e-1)},tF=sn.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],s=t[2],a=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+a)||0,l.upperRight_X=n(i+s)||0,l.upperRight_Y=r(o)||0,[Number(rt(l.lowerLeft_X)),Number(rt(l.lowerLeft_Y)),Number(rt(l.upperRight_X)),Number(rt(l.upperRight_Y))]},nF=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=T5(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+rt(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Qi(t);return o.scope=t.scope,o.stream=e.join(`
+`),o}},T5=function(t,e){var n=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map(function(P){return P.split(`
+`)}):i.map(function(P){return[P]});var o=n,s=Ue.internal.getHeight(t)||0;s=s<0?-s:s;var a=Ue.internal.getWidth(t)||0;a=a<0?-a:a;var l=function(P,E,W){if(P+1<i.length){var B=E+" "+i[P+1][0];return Gd(B,t,W).width<=a-4}return!1};o++;e:for(;o>0;){e="",o--;var u,d,p=Gd("3",t,o).height,g=t.multiline?s-o:(s-p)/2,h=g+=2,w=0,_=0,x=0;if(o<=0){e=`(...) Tj
+`,e+="% Width of Text: "+Gd(e,t,o=12).width+", FieldWidth:"+a+`
+`;break}for(var v="",S=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var A=!1;if(i[y].length!==1&&x!==i[y].length-1){if((p+2)*(S+2)+2>s)continue e;v+=i[y][x],A=!0,_=y,y--}else{v=(v+=i[y][x]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var L=parseInt(y),R=l(L,v,o),D=y>=i.length-1;if(R&&!D){v+=" ",x=0;continue}if(R||D){if(D)_=L;else if(t.multiline&&(p+2)*(S+2)+2>s)continue e}else{if(!t.multiline||(p+2)*(S+2)+2>s)continue e;_=L}}for(var k="",z=w;z<=_;z++){var T=i[z];if(t.multiline){if(z===_){k+=T[x]+" ",x=(x+1)%T.length;continue}if(z===w){k+=T[T.length-1]+" ";continue}}k+=T[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,d=Gd(k,t,o).width,t.textAlign){case"right":u=a-d-2;break;case"center":u=(a-d)/2;break;case"left":default:u=2}e+=rt(u)+" "+rt(h)+` Td
+`,e+="("+Va(k)+`) Tj
+`,e+=-rt(u)+` 0 Td
+`,h=-(o+2),d=0,w=A?_:_+1,S++,v=""}break}return r.text=e,r.fontSize=o,r},Gd=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},rF={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},iF=function(t,e){var n={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},oF=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),Pt(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete t[r]}},sF=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Oi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(rF)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");am=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Ww,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o.objId=void 0,o.hasAnnotation&&iF(o,n)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(n){(function(r,i){var o=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],l=[],u=a.Rect;if(a.Rect&&(a.Rect=tF(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Ue.createDefaultAppearanceStream(a),Pt(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=u,a.hasAppearanceStream&&!a.appearanceStreamContent){var d=nF(a);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(a.appearanceStreamContent){var p="";for(var g in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(g)){var h=a.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var s in h)if(h.hasOwnProperty(s)){var w=h[s];typeof w=="function"&&(w=w.call(i,a)),p+="/"+s+" "+w+" ",i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w)}}else typeof(w=h)=="function"&&(w=w.call(i,a)),p+="/"+s+" "+w,i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w);p+=">>"}l.push({key:"AP",value:`<<
+`+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:a.objId}),i.internal.out("endobj")}o&&oF(i.internal.acroformPlugin.xForms,i)})(n,t)}),t.internal.acroformPlugin.isInitialized=!0}},Vw=sn.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(s){return s};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(o!==0&&(i+=" "),Pt(t[o])){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":t[o].substr(0,1)!=="/"?(e!==void 0&&n&&(r=n.internal.getEncryptor(e)),i+="("+Va(r(t[o].toString()))+")"):i+=t[o].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},r2=function(t,e,n){var r=function(i){return i};return e!==void 0&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),t="("+Va(r(t))+")"},to=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};to.prototype.toString=function(){return this.objId+" 0 R"},to.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},to.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var n in e)if(Object.getOwnPropertyDescriptor(this,e[n]).configurable===!1){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:Vw(i,this.objId,this.scope)}):i instanceof to?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&t.push({key:r,value:i}))}return t};var qw=function(){to.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};Tr(qw,to);var Ww=function(){to.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Va(n(t))+")"}},set:function(n){t=n}})};Tr(Ww,to);var Oi=function t(){to.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');e=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!gn(e,3)},set:function(v){v?this.F=mn(e,3):this.F=vn(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');n=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Yf)return;o="FieldObject"+t.FieldNum++}var v=function(S){return S};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Va(v(o))+")"},set:function(v){o=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(v){o=v}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/am:u},set:function(v){u=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof Yf||this instanceof xa))return r2(p,this.objId,this.scope)},set:function(v){v=v.toString(),p=v}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Dn?g:r2(g,this.objId,this.scope)},set:function(v){v=v.toString(),g=this instanceof Dn?v:v.substr(0,1)==="("?Cl(v.substr(1,v.length-2)):Cl(v)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Dn?Cl(g.substr(1,g.length-1)):g},set:function(v){v=v.toString(),g=this instanceof Dn?"/"+v:v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Dn?h:r2(h,this.objId,this.scope)},set:function(v){v=v.toString(),h=this instanceof Dn?v:v.substr(0,1)==="("?Cl(v.substr(1,v.length-2)):Cl(v)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Dn?Cl(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof Dn?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var w,_=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return _},set:function(v){v=!!v,_=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(v){w=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,1)},set:function(v){v?this.Ff=mn(this.Ff,1):this.Ff=vn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,2)},set:function(v){v?this.Ff=mn(this.Ff,2):this.Ff=vn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,3)},set:function(v){v?this.Ff=mn(this.Ff,3):this.Ff=vn(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(x!==null)return x},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');x=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(x){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:x=2;break;case"center":case 1:x=1;break;case"left":case 0:default:x=0}}})};Tr(Oi,to);var Ql=function(){Oi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Vw(e,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(o,s,a){a||(a=1);for(var l,u=[];l=s.exec(o);)u.push(l[a]);return u}(r,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(n){e=n,this.sort&&e.sort()},this.addOption=function(n){n=(n=n||"").toString(),e.push(n),this.sort&&e.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();e.indexOf(n)!==-1&&(e.splice(e.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,18)},set:function(n){n?this.Ff=mn(this.Ff,18):this.Ff=vn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=mn(this.Ff,19):this.Ff=vn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,20)},set:function(n){n?(this.Ff=mn(this.Ff,20),e.sort()):this.Ff=vn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,22)},set:function(n){n?this.Ff=mn(this.Ff,22):this.Ff=vn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,23)},set:function(n){n?this.Ff=mn(this.Ff,23):this.Ff=vn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,27)},set:function(n){n?this.Ff=mn(this.Ff,27):this.Ff=vn(this.Ff,27)}}),this.hasAppearanceStream=!1};Tr(Ql,Oi);var Jl=function(){Ql.call(this),this.fontName="helvetica",this.combo=!1};Tr(Jl,Ql);var Zl=function(){Jl.call(this),this.combo=!0};Tr(Zl,Jl);var cf=function(){Zl.call(this),this.edit=!0};Tr(cf,Zl);var Dn=function(){Oi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,15)},set:function(n){n?this.Ff=mn(this.Ff,15):this.Ff=vn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,16)},set:function(n){n?this.Ff=mn(this.Ff,16):this.Ff=vn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,17)},set:function(n){n?this.Ff=mn(this.Ff,17):this.Ff=vn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,26)},set:function(n){n?this.Ff=mn(this.Ff,26):this.Ff=vn(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,i=[];for(r in i.push("<<"),e)i.push("/"+r+" ("+Va(n(e[r]))+")");return i.push(">>"),i.join(`
+`)}},set:function(n){Pt(n)==="object"&&(e=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(n){typeof n=="string"&&(e.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}})};Tr(Dn,Oi);var uf=function(){Dn.call(this),this.pushButton=!0};Tr(uf,Dn);var ec=function(){Dn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};Tr(ec,Dn);var Yf=function(){var t,e;Oi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var o,s=[];for(o in s.push("<<"),r)s.push("/"+o+" ("+Va(i(r[o]))+")");return s.push(">>"),s.join(`
+`)},set:function(i){Pt(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ue.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Tr(Yf,Oi),ec.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},ec.prototype.createOption=function(t){var e=new Yf;return e.Parent=this,e.optionName=t,this.Kids.push(e),aF.call(this.scope,e),e};var hf=function(){Dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ue.CheckBox.createAppearanceStream()};Tr(hf,Dn);var xa=function(){Oi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,13)},set:function(e){e?this.Ff=mn(this.Ff,13):this.Ff=vn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,21)},set:function(e){e?this.Ff=mn(this.Ff,21):this.Ff=vn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,23)},set:function(e){e?this.Ff=mn(this.Ff,23):this.Ff=vn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,24)},set:function(e){e?this.Ff=mn(this.Ff,24):this.Ff=vn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,25)},set:function(e){e?this.Ff=mn(this.Ff,25):this.Ff=vn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,26)},set:function(e){e?this.Ff=mn(this.Ff,26):this.Ff=vn(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Tr(xa,Oi);var df=function(){xa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!gn(this.Ff,14)},set:function(t){t?this.Ff=mn(this.Ff,14):this.Ff=vn(this.Ff,14)}}),this.password=!0};Tr(df,xa);var Ue={CheckBox:{createAppearanceStream:function(){return{N:{On:Ue.CheckBox.YesNormal},D:{On:Ue.CheckBox.YesPushDown,Off:Ue.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=T5(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+rt(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join(`
+`),e},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=Ue.internal.getHeight(t),s=Ue.internal.getWidth(t),a=T5(t,t.caption);return i.push("1 g"),i.push("0 0 "+rt(s)+" "+rt(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+rt(s-1)+" "+rt(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+rt(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
+`),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ue.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ue.RadioButton.Circle.YesNormal,e.D[t]=Ue.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Ue.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ue.internal.Bezier_C).toFixed(5)),s=Number((r*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.getWidth(t)<=Ue.internal.getHeight(t)?Ue.internal.getWidth(t)/4:Ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+us(Ue.internal.getWidth(t)/2)+" "+us(Ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
+`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ue.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ue.RadioButton.Cross.YesNormal,e.D[t]=Ue.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Qi(t);e.scope=t.scope;var n=[],r=Ue.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+rt(Ue.internal.getWidth(t)-2)+" "+rt(Ue.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(rt(r.x1.x)+" "+rt(r.x1.y)+" m"),n.push(rt(r.x2.x)+" "+rt(r.x2.y)+" l"),n.push(rt(r.x4.x)+" "+rt(r.x4.y)+" m"),n.push(rt(r.x3.x)+" "+rt(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
+`),e},YesPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=Ue.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+rt(Ue.internal.getWidth(t)-2)+" "+rt(Ue.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(rt(n.x1.x)+" "+rt(n.x1.y)+" m"),r.push(rt(n.x2.x)+" "+rt(n.x2.y)+" l"),r.push(rt(n.x4.x)+" "+rt(n.x4.y)+" m"),r.push(rt(n.x3.x)+" "+rt(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
+`),e},OffPushDown:function(t){var e=Qi(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+rt(Ue.internal.getWidth(t))+" "+rt(Ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join(`
+`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ue.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ue.internal.getWidth(t),n=Ue.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Ue.internal.getWidth=function(t){var e=0;return Pt(t)==="object"&&(e=N4(t.Rect[2])),e},Ue.internal.getHeight=function(t){var e=0;return Pt(t)==="object"&&(e=N4(t.Rect[3])),e};var aF=sn.addField=function(t){if(sF(this,t),!(t instanceof Oi))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};sn.AcroFormChoiceField=Ql,sn.AcroFormListBox=Jl,sn.AcroFormComboBox=Zl,sn.AcroFormEditBox=cf,sn.AcroFormButton=Dn,sn.AcroFormPushButton=uf,sn.AcroFormRadioButton=ec,sn.AcroFormCheckBox=hf,sn.AcroFormTextField=xa,sn.AcroFormPasswordField=df,sn.AcroFormAppearance=Ue,sn.AcroForm={ChoiceField:Ql,ListBox:Jl,ComboBox:Zl,EditBox:cf,Button:Dn,PushButton:uf,RadioButton:ec,CheckBox:hf,TextField:xa,PasswordField:df,Appearance:Ue},Ye.AcroForm={ChoiceField:Ql,ListBox:Jl,ComboBox:Zl,EditBox:cf,Button:Dn,PushButton:uf,RadioButton:ec,CheckBox:hf,TextField:xa,PasswordField:df,Appearance:Ue};function Hw(t){return t.reduce(function(e,n,r){return e[n]=r,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(P,E){var W,B,Q,ee,se,K=e;if((E=E||e)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(R(P))for(se in n)for(Q=n[se],W=0;W<Q.length;W+=1){for(ee=!0,B=0;B<Q[W].length;B+=1)if(Q[W][B]!==void 0&&Q[W][B]!==P[B]){ee=!1;break}if(ee===!0){K=se;break}}else for(se in n)for(Q=n[se],W=0;W<Q.length;W+=1){for(ee=!0,B=0;B<Q[W].length;B+=1)if(Q[W][B]!==void 0&&Q[W][B]!==P.charCodeAt(B)){ee=!1;break}if(ee===!0){K=se;break}}return K===e&&E!==e&&(K=E),K},i=function P(E){for(var W=this.internal.write,B=this.internal.putStream,Q=(0,this.internal.getFilters)();Q.indexOf("FlateEncode")!==-1;)Q.splice(Q.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var ee=[];if(ee.push({key:"Type",value:"/XObject"}),ee.push({key:"Subtype",value:"/Image"}),ee.push({key:"Width",value:E.width}),ee.push({key:"Height",value:E.height}),E.colorSpace===x.INDEXED?ee.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(ee.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===x.DEVICE_CMYK&&ee.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ee.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&ee.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)){for(var se="",K=0,te=E.transparency.length;K<te;K++)se+=E.transparency[K]+" "+E.transparency[K]+" ";ee.push({key:"Mask",value:"["+se+"]"})}E.sMask!==void 0&&ee.push({key:"SMask",value:E.objectId+1+" 0 R"});var X=E.filter!==void 0?["/"+E.filter]:void 0;if(B({data:E.data,additionalKeyValues:ee,alreadyAppliedFilters:X,objectId:E.objectId}),W("endobj"),"sMask"in E&&E.sMask!==void 0){var de="/Predictor "+E.predictor+" /Colors 1 /BitsPerComponent "+E.bitsPerComponent+" /Columns "+E.width,M={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:E.bitsPerComponent,decodeParameters:de,data:E.sMask};"filter"in E&&(M.filter=E.filter),P.call(this,M)}if(E.colorSpace===x.INDEXED){var G=this.internal.newObject();B({data:k(new Uint8Array(E.palette)),objectId:G}),W("endobj")}},o=function(){var P=this.internal.collections.addImage_images;for(var E in P)i.call(this,P[E])},s=function(){var P,E=this.internal.collections.addImage_images,W=this.internal.write;for(var B in E)W("/I"+(P=E[B]).index,P.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var P=this.internal.collections.addImage_images;return a.call(this),P},u=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(P){return typeof t["process"+P.toUpperCase()]=="function"},p=function(P){return Pt(P)==="object"&&P.nodeType===1},g=function(P,E){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var W=""+P.getAttribute("src");if(W.indexOf("data:image/")===0)return Bu(unescape(W).split("base64,").pop());var B=t.loadFile(W,!0);if(B!==void 0)return B}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var Q;switch(E){case"PNG":Q="image/png";break;case"WEBP":Q="image/webp";break;case"JPEG":case"JPG":default:Q="image/jpeg"}return Bu(P.toDataURL(Q,1).split("base64,").pop())}},h=function(P){var E=this.internal.collections.addImage_images;if(E){for(var W in E)if(P===E[W].alias)return E[W]}},w=function(P,E,W){return P||E||(P=-96,E=-96),P<0&&(P=-1*W.width*72/P/this.internal.scaleFactor),E<0&&(E=-1*W.height*72/E/this.internal.scaleFactor),P===0&&(P=E*W.width/W.height),E===0&&(E=P*W.height/W.width),[P,E]},_=function(P,E,W,B,Q,ee){var se=w.call(this,W,B,Q),K=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,X=l.call(this);if(W=se[0],B=se[1],X[Q.index]=Q,ee){ee*=Math.PI/180;var de=Math.cos(ee),M=Math.sin(ee),G=function(ne){return ne.toFixed(4)},H=[G(de),G(M),G(-1*M),G(de),0,0,"cm"]}this.internal.write("q"),ee?(this.internal.write([1,"0","0",1,K(P),te(E+B),"cm"].join(" ")),this.internal.write(H.join(" ")),this.internal.write([K(W),"0","0",K(B),"0","0","cm"].join(" "))):this.internal.write([K(W),"0","0",K(B),K(P),te(E+B),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Q.index+" Do"),this.internal.write("Q")},x=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=t.__addimage__.sHashCode=function(P){var E,W,B=0;if(typeof P=="string")for(W=P.length,E=0;E<W;E++)B=(B<<5)-B+P.charCodeAt(E),B|=0;else if(R(P))for(W=P.byteLength/2,E=0;E<W;E++)B=(B<<5)-B+P[E],B|=0;return B},y=t.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var E=!0;return P.length===0&&(E=!1),P.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(E=!1),E},A=t.__addimage__.extractImageFromDataUrl=function(P){var E=(P=P||"").split("base64,"),W=null;if(E.length===2){var B=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(E[0]);Array.isArray(B)&&(W={mimeType:B[1],charset:B[2],data:E[1]})}return W},L=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(P){return L()&&P instanceof ArrayBuffer};var R=t.__addimage__.isArrayBufferView=function(P){return L()&&typeof Uint32Array<"u"&&(P instanceof Int8Array||P instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array)},D=t.__addimage__.binaryStringToUint8Array=function(P){for(var E=P.length,W=new Uint8Array(E),B=0;B<E;B++)W[B]=P.charCodeAt(B);return W},k=t.__addimage__.arrayBufferToBinaryString=function(P){for(var E="",W=R(P)?P:new Uint8Array(P),B=0;B<W.length;B+=8192)E+=String.fromCharCode.apply(null,W.subarray(B,B+8192));return E};t.addImage=function(){var P,E,W,B,Q,ee,se,K,te;if(typeof arguments[1]=="number"?(E=e,W=arguments[1],B=arguments[2],Q=arguments[3],ee=arguments[4],se=arguments[5],K=arguments[6],te=arguments[7]):(E=arguments[1],W=arguments[2],B=arguments[3],Q=arguments[4],ee=arguments[5],se=arguments[6],K=arguments[7],te=arguments[8]),Pt(P=arguments[0])==="object"&&!p(P)&&"imageData"in P){var X=P;P=X.imageData,E=X.format||E||e,W=X.x||W||0,B=X.y||B||0,Q=X.w||X.width||Q,ee=X.h||X.height||ee,se=X.alias||se,K=X.compression||K,te=X.rotation||X.angle||te}var de=this.internal.getFilters();if(K===void 0&&de.indexOf("FlateEncode")!==-1&&(K="SLOW"),isNaN(W)||isNaN(B))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var M=z.call(this,P,E,se,K);return _.call(this,W,B,Q,ee,M,te),this};var z=function(P,E,W,B){var Q,ee,se;if(typeof P=="string"&&r(P)===e){P=unescape(P);var K=T(P,!1);(K!==""||(K=t.loadFile(P,!0))!==void 0)&&(P=K)}if(p(P)&&(P=g(P,E)),E=r(P,E),!d(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((se=W)==null||se.length===0)&&(W=function(te){return typeof te=="string"||R(te)?S(te):R(te.data)?S(te.data):null}(P)),(Q=h.call(this,W))||(L()&&(P instanceof Uint8Array||E==="RGBA"||(ee=P,P=D(P))),Q=this["process"+E.toUpperCase()](P,u.call(this),W,function(te){return te&&typeof te=="string"&&(te=te.toUpperCase()),te in t.image_compression?te:v.NONE}(B),ee)),!Q)throw new Error("An unknown error occurred whilst processing the image.");return Q},T=t.__addimage__.convertBase64ToBinaryString=function(P,E){var W;E=typeof E!="boolean"||E;var B,Q="";if(typeof P=="string"){B=(W=A(P))!==null?W.data:P;try{Q=Bu(B)}catch(ee){if(E)throw y(B)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ee.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Q};t.getImageProperties=function(P){var E,W,B="";if(p(P)&&(P=g(P)),typeof P=="string"&&r(P)===e&&((B=T(P,!1))===""&&(B=t.loadFile(P)||""),P=B),W=r(P),!d(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(!L()||P instanceof Uint8Array||(P=D(P)),!(E=this["process"+W.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=W,E}})(Ye.API),function(t){var e=function(n){if(n!==void 0&&n!="")return!0};Ye.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(n){for(var r,i,o,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),u=n.pageContext.annotations,d=!1,p=0;p<u.length&&!d;p++)switch((r=u[p]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var g=0;g<u.length;g++){r=u[g];var h=this.internal.pdfEscape,w=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var _=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(_.objId),S=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",o+=" /Popup "+x.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+h(v(S))+") >>",_.content=o;var y=_.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+y,r.open&&(o+=" /Open true"),o+=" >>",x.content=o,this.internal.write(_.objId,"0 R",x.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var A=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(w(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+A+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var L=this.annotations._nameMap[r.options.name];r.options.pageNumber=L.page,r.options.top=L.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(w(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var R=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+R+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),t.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},t.link=function(n,r,i,o,s){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(n),y:u(r),w:l(n+i),h:u(r+o)},options:s,type:"link"})},t.textWithLink=function(n,r,i,o){var s,a,l=this.getTextWidth(n),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){a=o.maxWidth;var d=this.splitTextToSize(n,a).length;s=Math.ceil(u*d)}else a=l,s=u;return this.text(n,r,i,o),i+=.2*u,o.align==="center"&&(r-=l/2),o.align==="right"&&(r-=l),this.link(r,i-u,a,s,o),l},t.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(Ye.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(_){return e[_.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(_){return typeof _=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(_)},a=t.__arabicParser__.isArabicEndLetter=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(_){return s(_)&&i.indexOf(_.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length>=3};var d=t.__arabicParser__.arabicLetterHasMedialForm=function(_){return s(_)&&o(_)&&e[_.charCodeAt(0)].length==4},p=t.__arabicParser__.resolveLigatures=function(_){var x=0,v=n,S="",y=0;for(x=0;x<_.length;x+=1)v[_.charCodeAt(x)]!==void 0?(y++,typeof(v=v[_.charCodeAt(x)])=="number"&&(S+=String.fromCharCode(v),v=n,y=0),x===_.length-1&&(v=n,S+=_.charAt(x-(y-1)),x-=y-1,y=0)):(v=n,S+=_.charAt(x-y),x-=y,y=0);return S};t.__arabicParser__.isArabicDiacritic=function(_){return _!==void 0&&r[_.charCodeAt(0)]!==void 0};var g=t.__arabicParser__.getCorrectForm=function(_,x,v){return s(_)?o(_)===!1?-1:!u(_)||!s(x)&&!s(v)||!s(v)&&a(x)||a(_)&&!s(x)||a(_)&&l(x)||a(_)&&a(x)?0:d(_)&&s(x)&&!a(x)&&s(v)&&u(v)?3:a(_)||!s(v)?1:2:-1},h=function(_){var x=0,v=0,S=0,y="",A="",L="",R=(_=_||"").split("\\s+"),D=[];for(x=0;x<R.length;x+=1){for(D.push(""),v=0;v<R[x].length;v+=1)y=R[x][v],A=R[x][v-1],L=R[x][v+1],s(y)?(S=g(y,A,L),D[x]+=S!==-1?String.fromCharCode(e[y.charCodeAt(0)][S]):y):D[x]+=y;D[x]=p(D[x])}return D.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var _,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(x)){var S=0;for(v=[],S=0;S<x.length;S+=1)Array.isArray(x[S])?v.push([h(x[S][0]),x[S][1],x[S][2]]):v.push([h(x[S])]);_=v}else _=h(x);return typeof arguments[0]=="string"?_:(arguments[0].text=_,arguments[0])};t.events.push(["preProcessText",w])}(Ye.API),Ye.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(a){o=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ye.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(_){l=_}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(_){u=_}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(_){d=_}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(_){p=_}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(_){g=_}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(_){h=_}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(_){w=_}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},t.getTextDimensions=function(l,u){r.call(this);var d=(u=u||{}).fontSize||this.getFontSize(),p=u.font||this.getFont(),g=u.scaleFactor||this.internal.scaleFactor,h=0,w=0,_=0,x=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var v=u.maxWidth;v>0?typeof l=="string"?l=this.splitTextToSize(l,v):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(y,A){return y.concat(x.splitTextToSize(A,v))},[])):l=Array.isArray(l)?l:[l];for(var S=0;S<l.length;S++)h<(_=this.getStringUnitWidth(l[S],{font:p})*d)&&(h=_);return h!==0&&(w=l.length),{w:h/=g,h:Math.max((w*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/g,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var l;l=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var u=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,p=this.internal.__cell__.margins||e,g=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===l.lineNumber?(l.x=(u.x||0)+(u.width||0),l.y=u.y||0):u.y+u.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,h&&g&&(this.printHeaderRow(l.lineNumber,!0),l.y+=g[0].height)):l.y=u.y+u.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};t.table=function(l,u,d,p,g){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,w,_,x,v=[],S=[],y=[],A={},L={},R=[],D=[],k=(g=g||{}).autoSize||!1,z=g.printHeaders!==!1,T=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,P=g.margins||Object.assign({width:this.getPageWidth()},e),E=typeof g.padding=="number"?g.padding:3,W=g.headerBackgroundColor||"#c8c8c8",B=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=z,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=T,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=B,this.setFontSize(T),p==null)S=v=Object.keys(d[0]),y=v.map(function(){return"left"});else if(Array.isArray(p)&&Pt(p[0])==="object")for(v=p.map(function(X){return X.name}),S=p.map(function(X){return X.prompt||X.name||""}),y=p.map(function(X){return X.align||"left"}),h=0;h<p.length;h+=1)L[p[h].name]=p[h].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(S=v=p,y=v.map(function(){return"left"}));if(k||Array.isArray(p)&&typeof p[0]=="string")for(h=0;h<v.length;h+=1){for(A[x=v[h]]=d.map(function(X){return X[x]}),this.setFont(void 0,"bold"),R.push(this.getTextDimensions(S[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=A[x],this.setFont(void 0,"normal"),_=0;_<w.length;_+=1)R.push(this.getTextDimensions(w[_],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);L[x]=Math.max.apply(null,R)+E+E,R=[]}if(z){var Q={};for(h=0;h<v.length;h+=1)Q[v[h]]={},Q[v[h]].text=S[h],Q[v[h]].align=y[h];var ee=a.call(this,Q,L);D=v.map(function(X){return new o(l,u,L[X],ee,Q[X].text,void 0,Q[X].align)}),this.setTableHeaderRow(D),this.printHeaderRow(1,!1)}var se=p.reduce(function(X,de){return X[de.name]=de.align,X},{});for(h=0;h<d.length;h+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:h,data:d[h]},this);var K=a.call(this,d[h],L);for(_=0;_<v.length;_+=1){var te=d[h][v[_]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:h,col:_,data:te},this),s.call(this,new o(l,u,L[v[_]],K,te,h+2,se[v[_]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=u,this};var a=function(l,u){var d=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map(function(h){var w=l[h];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,u[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*p/g+d+d},this).reduce(function(h,w){return Math.max(h,w)},0)};t.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},t.printHeaderRow=function(l,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(d.y=this.internal.__cell__.margins.top||0,g.push(d)),d.lineNumber=l;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,d),this.setTextColor(w)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),n=!1}}(Ye.API);var Yw={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Kw=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],M5=Hw(Kw),Xw=[100,200,300,400,500,600,700,800,900],lF=Hw(Xw);function j5(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return Yw[o=o||"normal"]?o:"normal"}(t.style),r=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(o){return typeof M5[o=o||"normal"]=="number"?o:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function C4(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var cF={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},P4={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function L4(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function uF(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},cF,n.genericFontFamilies||{}),o=null,s=null,a=0;a<e.length;++a)if(i[(o=j5(e[a])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){s=t[o.family];break}if(!(s=s||t[r]))throw new Error("Could not find a font-family for the rule '"+L4(o)+"' and default family '"+r+"'.");if(s=function(l,u){if(u[l])return u[l];var d=M5[l],p=d<=M5.normal?-1:1,g=C4(u,Kw,d,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+l);return g}(o.stretch,s),s=function(l,u){if(u[l])return u[l];for(var d=Yw[l],p=0;p<d.length;++p)if(u[d[p]])return u[d[p]];throw new Error("Could not find a matching font-style for "+l)}(o.style,s),!(s=function(l,u){if(u[l])return u[l];if(l===400&&u[500])return u[500];if(l===500&&u[400])return u[400];var d=lF[l],p=C4(u,Xw,d,l<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+l);return p}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+L4(o)+"'.");return s}function k4(t){return t.trimLeft()}function hF(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function dF(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var Vd,E4,T4,i2=["times"];(function(t){var e,n,r,i,o,s,a,l,u,d=function(M){return M=M||{},this.isStrokeTransparent=M.isStrokeTransparent||!1,this.strokeOpacity=M.strokeOpacity||1,this.strokeStyle=M.strokeStyle||"#000000",this.fillStyle=M.fillStyle||"#000000",this.isFillTransparent=M.isFillTransparent||!1,this.fillOpacity=M.fillOpacity||1,this.font=M.font||"10px sans-serif",this.textBaseline=M.textBaseline||"alphabetic",this.textAlign=M.textAlign||"left",this.lineWidth=M.lineWidth||1,this.lineJoin=M.lineJoin||"miter",this.lineCap=M.lineCap||"butt",this.path=M.path||[],this.transform=M.transform!==void 0?M.transform.clone():new l,this.globalCompositeOperation=M.globalCompositeOperation||"normal",this.globalAlpha=M.globalAlpha||1,this.clip_path=M.clip_path||[],this.currentPoint=M.currentPoint||new s,this.miterLimit=M.miterLimit||10,this.lastPoint=M.lastPoint||new s,this.lineDashOffset=M.lineDashOffset||0,this.lineDash=M.lineDash||[],this.margin=M.margin||[0,0,0,0],this.prevPageLastElemOffset=M.prevPageLastElemOffset||0,this.ignoreClearRect=typeof M.ignoreClearRect!="boolean"||M.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,u=new d}]);var p=function(M){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=M;Object.defineProperty(this,"pdf",{get:function(){return G}});var H=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return H},set:function(me){H=!!me}});var ne=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ne},set:function(me){ne=!!me}});var ie=0;Object.defineProperty(this,"posX",{get:function(){return ie},set:function(me){isNaN(me)||(ie=me)}});var V=0;Object.defineProperty(this,"posY",{get:function(){return V},set:function(me){isNaN(me)||(V=me)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(me){var J;typeof me=="number"?J=[me,me,me,me]:((J=new Array(4))[0]=me[0],J[1]=me.length>=2?me[1]:J[0],J[2]=me.length>=3?me[2]:J[0],J[3]=me.length>=4?me[3]:J[1]),u.margin=J}});var Z=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Z},set:function(me){Z=me}});var ce=0;Object.defineProperty(this,"lastBreak",{get:function(){return ce},set:function(me){ce=me}});var xe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return xe},set:function(me){xe=me}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(me){me instanceof d&&(u=me)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(me){u.path=me}});var we=[];Object.defineProperty(this,"ctxStack",{get:function(){return we},set:function(me){we=me}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(me){var J;J=g(me),this.ctx.fillStyle=J.style,this.ctx.isFillTransparent=J.a===0,this.ctx.fillOpacity=J.a,this.pdf.setFillColor(J.r,J.g,J.b,{a:J.a}),this.pdf.setTextColor(J.r,J.g,J.b,{a:J.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(me){var J=g(me);this.ctx.strokeStyle=J.style,this.ctx.isStrokeTransparent=J.a===0,this.ctx.strokeOpacity=J.a,J.a===0?this.pdf.setDrawColor(255,255,255):(J.a,this.pdf.setDrawColor(J.r,J.g,J.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(me){["butt","round","square"].indexOf(me)!==-1&&(this.ctx.lineCap=me,this.pdf.setLineCap(me))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(me){isNaN(me)||(this.ctx.lineWidth=me,this.pdf.setLineWidth(me))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(me){["bevel","round","miter"].indexOf(me)!==-1&&(this.ctx.lineJoin=me,this.pdf.setLineJoin(me))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(me){isNaN(me)||(this.ctx.miterLimit=me,this.pdf.setMiterLimit(me))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(me){this.ctx.textBaseline=me}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(me){["right","end","center","left","start"].indexOf(me)!==-1&&(this.ctx.textAlign=me)}});var Ce=null;function ke(me,J){if(Ce===null){var qe=function(Be){var Pe=[];return Object.keys(Be).forEach(function(Ee){Be[Ee].forEach(function(Fe){var je=null;switch(Fe){case"bold":je={family:Ee,weight:"bold"};break;case"italic":je={family:Ee,style:"italic"};break;case"bolditalic":je={family:Ee,weight:"bold",style:"italic"};break;case"":case"normal":je={family:Ee}}je!==null&&(je.ref={name:Ee,style:Fe},Pe.push(je))})}),Pe}(me.getFontList());Ce=function(Be){for(var Pe={},Ee=0;Ee<Be.length;++Ee){var Fe=j5(Be[Ee]),je=Fe.family,Ge=Fe.stretch,et=Fe.style,st=Fe.weight;Pe[je]=Pe[je]||{},Pe[je][Ge]=Pe[je][Ge]||{},Pe[je][Ge][et]=Pe[je][Ge][et]||{},Pe[je][Ge][et][st]=Fe}return Pe}(qe.concat(J))}return Ce}var ze=null;Object.defineProperty(this,"fontFaces",{get:function(){return ze},set:function(me){Ce=null,ze=me}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(me){var J;if(this.ctx.font=me,(J=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(me))!==null){var qe=J[1],Be=(J[2],J[3]),Pe=J[4],Ee=(J[5],J[6]),Fe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pe)[2];Pe=Math.floor(Fe==="px"?parseFloat(Pe)*this.pdf.internal.scaleFactor:Fe==="em"?parseFloat(Pe)*this.pdf.getFontSize():parseFloat(Pe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pe);var je=function(Qe){var ct,Ie,Yn=[],yt=Qe.trim();if(yt==="")return i2;if(yt in P4)return[P4[yt]];for(;yt!=="";){switch(Ie=null,ct=(yt=k4(yt)).charAt(0)){case'"':case"'":Ie=hF(yt.substring(1),ct);break;default:Ie=dF(yt)}if(Ie===null||(Yn.push(Ie[0]),(yt=k4(Ie[1]))!==""&&yt.charAt(0)!==","))return i2;yt=yt.replace(/^,/,"")}return Yn}(Ee);if(this.fontFaces){var Ge=uF(ke(this.pdf,this.fontFaces),je.map(function(Qe){return{family:Qe,stretch:"normal",weight:Be,style:qe}}));this.pdf.setFont(Ge.ref.name,Ge.ref.style)}else{var et="";(Be==="bold"||parseInt(Be,10)>=700||qe==="bold")&&(et="bold"),qe==="italic"&&(et+="italic"),et.length===0&&(et="normal");for(var st="",lt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},gt=0;gt<je.length;gt++){if(this.pdf.internal.getFont(je[gt],et,{noFallback:!0,disableWarning:!0})!==void 0){st=je[gt];break}if(et==="bolditalic"&&this.pdf.internal.getFont(je[gt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)st=je[gt],et="bold";else if(this.pdf.internal.getFont(je[gt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){st=je[gt],et="normal";break}}if(st===""){for(var kt=0;kt<je.length;kt++)if(lt[je[kt]]){st=lt[je[kt]];break}}st=st===""?"Times":st,this.pdf.setFont(st,et)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(me){this.ctx.globalCompositeOperation=me}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(me){this.ctx.globalAlpha=me}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(me){this.ctx.lineDashOffset=me,de.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(me){this.ctx.lineDash=me,de.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(me){this.ctx.ignoreClearRect=!!me}})};p.prototype.setLineDash=function(M){this.lineDash=M},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(M,G){if(isNaN(M)||isNaN(G))throw Ft.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var H=this.ctx.transform.applyToPoint(new s(M,G));this.path.push({type:"mt",x:H.x,y:H.y}),this.ctx.lastPoint=new s(M,G)},p.prototype.closePath=function(){var M=new s(0,0),G=0;for(G=this.path.length-1;G!==-1;G--)if(this.path[G].type==="begin"&&Pt(this.path[G+1])==="object"&&typeof this.path[G+1].x=="number"){M=new s(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(M.x,M.y)},p.prototype.lineTo=function(M,G){if(isNaN(M)||isNaN(G))throw Ft.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var H=this.ctx.transform.applyToPoint(new s(M,G));this.path.push({type:"lt",x:H.x,y:H.y}),this.ctx.lastPoint=new s(H.x,H.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(M,G,H,ne){if(isNaN(H)||isNaN(ne)||isNaN(M)||isNaN(G))throw Ft.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ie=this.ctx.transform.applyToPoint(new s(H,ne)),V=this.ctx.transform.applyToPoint(new s(M,G));this.path.push({type:"qct",x1:V.x,y1:V.y,x:ie.x,y:ie.y}),this.ctx.lastPoint=new s(ie.x,ie.y)},p.prototype.bezierCurveTo=function(M,G,H,ne,ie,V){if(isNaN(ie)||isNaN(V)||isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne))throw Ft.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Z=this.ctx.transform.applyToPoint(new s(ie,V)),ce=this.ctx.transform.applyToPoint(new s(M,G)),xe=this.ctx.transform.applyToPoint(new s(H,ne));this.path.push({type:"bct",x1:ce.x,y1:ce.y,x2:xe.x,y2:xe.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new s(Z.x,Z.y)},p.prototype.arc=function(M,G,H,ne,ie,V){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne)||isNaN(ie))throw Ft.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(V=!!V,!this.ctx.transform.isIdentity){var Z=this.ctx.transform.applyToPoint(new s(M,G));M=Z.x,G=Z.y;var ce=this.ctx.transform.applyToPoint(new s(0,H)),xe=this.ctx.transform.applyToPoint(new s(0,0));H=Math.sqrt(Math.pow(ce.x-xe.x,2)+Math.pow(ce.y-xe.y,2))}Math.abs(ie-ne)>=2*Math.PI&&(ne=0,ie=2*Math.PI),this.path.push({type:"arc",x:M,y:G,radius:H,startAngle:ne,endAngle:ie,counterclockwise:V})},p.prototype.arcTo=function(M,G,H,ne,ie){throw new Error("arcTo not implemented.")},p.prototype.rect=function(M,G,H,ne){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne))throw Ft.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(M,G),this.lineTo(M+H,G),this.lineTo(M+H,G+ne),this.lineTo(M,G+ne),this.lineTo(M,G),this.lineTo(M+H,G),this.lineTo(M,G)},p.prototype.fillRect=function(M,G,H,ne){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne))throw Ft.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var ie={};this.lineCap!=="butt"&&(ie.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ie.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(M,G,H,ne),this.fill(),ie.hasOwnProperty("lineCap")&&(this.lineCap=ie.lineCap),ie.hasOwnProperty("lineJoin")&&(this.lineJoin=ie.lineJoin)}},p.prototype.strokeRect=function(M,G,H,ne){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne))throw Ft.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(M,G,H,ne),this.stroke())},p.prototype.clearRect=function(M,G,H,ne){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne))throw Ft.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(M,G,H,ne))},p.prototype.save=function(M){M=typeof M!="boolean"||M;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),M){this.ctx.fontSize=this.pdf.internal.getFontSize();var ne=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ne}},p.prototype.restore=function(M){M=typeof M!="boolean"||M;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,H=0;H<this.pdf.internal.getNumberOfPages();H++)this.pdf.setPage(H+1),this.pdf.internal.out("Q");this.pdf.setPage(G),M&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(M){var G,H,ne,ie;if(M.isCanvasGradient===!0&&(M=M.getColor()),!M)return{r:0,g:0,b:0,a:0,style:M};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(M))G=0,H=0,ne=0,ie=0;else{var V=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(M);if(V!==null)G=parseInt(V[1]),H=parseInt(V[2]),ne=parseInt(V[3]),ie=1;else if((V=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(M))!==null)G=parseInt(V[1]),H=parseInt(V[2]),ne=parseInt(V[3]),ie=parseFloat(V[4]);else{if(ie=1,typeof M=="string"&&M.charAt(0)!=="#"){var Z=new Uw(M);M=Z.ok?Z.toHex():"#000000"}M.length===4?(G=M.substring(1,2),G+=G,H=M.substring(2,3),H+=H,ne=M.substring(3,4),ne+=ne):(G=M.substring(1,3),H=M.substring(3,5),ne=M.substring(5,7)),G=parseInt(G,16),H=parseInt(H,16),ne=parseInt(ne,16)}}return{r:G,g:H,b:ne,a:ie,style:M}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(M,G,H,ne){if(isNaN(G)||isNaN(H)||typeof M!="string")throw Ft.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ne=isNaN(ne)?void 0:ne,!h.call(this)){var ie=K(this.ctx.transform.rotation),V=this.ctx.transform.scaleX;E.call(this,{text:M,x:G,y:H,scale:V,angle:ie,align:this.textAlign,maxWidth:ne})}},p.prototype.strokeText=function(M,G,H,ne){if(isNaN(G)||isNaN(H)||typeof M!="string")throw Ft.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){ne=isNaN(ne)?void 0:ne;var ie=K(this.ctx.transform.rotation),V=this.ctx.transform.scaleX;E.call(this,{text:M,x:G,y:H,scale:V,renderingMode:"stroke",angle:ie,align:this.textAlign,maxWidth:ne})}},p.prototype.measureText=function(M){if(typeof M!="string")throw Ft.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,H=this.pdf.internal.scaleFactor,ne=G.internal.getFontSize(),ie=G.getStringUnitWidth(M)*ne/G.internal.scaleFactor,V=function(Z){var ce=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ce}}),this};return new V({width:ie*=Math.round(96*H/72*1e4)/1e4})},p.prototype.scale=function(M,G){if(isNaN(M)||isNaN(G))throw Ft.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var H=new l(M,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(H)},p.prototype.rotate=function(M){if(isNaN(M))throw Ft.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new l(Math.cos(M),Math.sin(M),-Math.sin(M),Math.cos(M),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},p.prototype.translate=function(M,G){if(isNaN(M)||isNaN(G))throw Ft.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var H=new l(1,0,0,1,M,G);this.ctx.transform=this.ctx.transform.multiply(H)},p.prototype.transform=function(M,G,H,ne,ie,V){if(isNaN(M)||isNaN(G)||isNaN(H)||isNaN(ne)||isNaN(ie)||isNaN(V))throw Ft.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Z=new l(M,G,H,ne,ie,V);this.ctx.transform=this.ctx.transform.multiply(Z)},p.prototype.setTransform=function(M,G,H,ne,ie,V){M=isNaN(M)?1:M,G=isNaN(G)?0:G,H=isNaN(H)?0:H,ne=isNaN(ne)?1:ne,ie=isNaN(ie)?0:ie,V=isNaN(V)?0:V,this.ctx.transform=new l(M,G,H,ne,ie,V)};var _=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(M,G,H,ne,ie,V,Z,ce,xe){var we=this.pdf.getImageProperties(M),Ce=1,ke=1,ze=1,me=1;ne!==void 0&&ce!==void 0&&(ze=ce/ne,me=xe/ie,Ce=we.width/ne*ce/ne,ke=we.height/ie*xe/ie),V===void 0&&(V=G,Z=H,G=0,H=0),ne!==void 0&&ce===void 0&&(ce=ne,xe=ie),ne===void 0&&ce===void 0&&(ce=we.width,xe=we.height);for(var J,qe=this.ctx.transform.decompose(),Be=K(qe.rotate.shx),Pe=new l,Ee=(Pe=(Pe=(Pe=Pe.multiply(qe.translate)).multiply(qe.skew)).multiply(qe.scale)).applyToRectangle(new a(V-G*ze,Z-H*me,ne*Ce,ie*ke)),Fe=x.call(this,Ee),je=[],Ge=0;Ge<Fe.length;Ge+=1)je.indexOf(Fe[Ge])===-1&&je.push(Fe[Ge]);if(y(je),this.autoPaging)for(var et=je[0],st=je[je.length-1],lt=et;lt<st+1;lt++){this.pdf.setPage(lt);var gt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kt=lt===1?this.posY+this.margin[0]:this.margin[0],Qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ct=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ie=lt===1?0:Qe+(lt-2)*ct;if(this.ctx.clip_path.length!==0){var Yn=this.path;J=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(J,this.posX+this.margin[3],-Ie+kt+this.ctx.prevPageLastElemOffset),L.call(this,"fill",!0),this.path=Yn}var yt=JSON.parse(JSON.stringify(Ee));yt=S([yt],this.posX+this.margin[3],-Ie+kt+this.ctx.prevPageLastElemOffset)[0];var li=(lt>et||lt<st)&&_.call(this);li&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],gt,ct,null).clip().discardPath()),this.pdf.addImage(M,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,Be),li&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(M,"JPEG",Ee.x,Ee.y,Ee.w,Ee.h,null,null,Be)};var x=function(M,G,H){var ne=[];G=G||this.pdf.internal.pageSize.width,H=H||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ie=this.posY+this.ctx.prevPageLastElemOffset;switch(M.type){default:case"mt":case"lt":ne.push(Math.floor((M.y+ie)/H)+1);break;case"arc":ne.push(Math.floor((M.y+ie-M.radius)/H)+1),ne.push(Math.floor((M.y+ie+M.radius)/H)+1);break;case"qct":var V=te(this.ctx.lastPoint.x,this.ctx.lastPoint.y,M.x1,M.y1,M.x,M.y);ne.push(Math.floor((V.y+ie)/H)+1),ne.push(Math.floor((V.y+V.h+ie)/H)+1);break;case"bct":var Z=X(this.ctx.lastPoint.x,this.ctx.lastPoint.y,M.x1,M.y1,M.x2,M.y2,M.x,M.y);ne.push(Math.floor((Z.y+ie)/H)+1),ne.push(Math.floor((Z.y+Z.h+ie)/H)+1);break;case"rect":ne.push(Math.floor((M.y+ie)/H)+1),ne.push(Math.floor((M.y+M.h+ie)/H)+1)}for(var ce=0;ce<ne.length;ce+=1)for(;this.pdf.internal.getNumberOfPages()<ne[ce];)v.call(this);return ne},v=function(){var M=this.fillStyle,G=this.strokeStyle,H=this.font,ne=this.lineCap,ie=this.lineWidth,V=this.lineJoin;this.pdf.addPage(),this.fillStyle=M,this.strokeStyle=G,this.font=H,this.lineCap=ne,this.lineWidth=ie,this.lineJoin=V},S=function(M,G,H){for(var ne=0;ne<M.length;ne++)switch(M[ne].type){case"bct":M[ne].x2+=G,M[ne].y2+=H;case"qct":M[ne].x1+=G,M[ne].y1+=H;case"mt":case"lt":case"arc":default:M[ne].x+=G,M[ne].y+=H}return M},y=function(M){return M.sort(function(G,H){return G-H})},A=function(M,G){for(var H,ne,ie=this.fillStyle,V=this.strokeStyle,Z=this.lineCap,ce=this.lineWidth,xe=Math.abs(ce*this.ctx.transform.scaleX),we=this.lineJoin,Ce=JSON.parse(JSON.stringify(this.path)),ke=JSON.parse(JSON.stringify(this.path)),ze=[],me=0;me<ke.length;me++)if(ke[me].x!==void 0)for(var J=x.call(this,ke[me]),qe=0;qe<J.length;qe+=1)ze.indexOf(J[qe])===-1&&ze.push(J[qe]);for(var Be=0;Be<ze.length;Be++)for(;this.pdf.internal.getNumberOfPages()<ze[Be];)v.call(this);if(y(ze),this.autoPaging)for(var Pe=ze[0],Ee=ze[ze.length-1],Fe=Pe;Fe<Ee+1;Fe++){this.pdf.setPage(Fe),this.fillStyle=ie,this.strokeStyle=V,this.lineCap=Z,this.lineWidth=xe,this.lineJoin=we;var je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ge=Fe===1?this.posY+this.margin[0]:this.margin[0],et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],lt=Fe===1?0:et+(Fe-2)*st;if(this.ctx.clip_path.length!==0){var gt=this.path;H=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(H,this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset),L.call(this,M,!0),this.path=gt}if(ne=JSON.parse(JSON.stringify(Ce)),this.path=S(ne,this.posX+this.margin[3],-lt+Ge+this.ctx.prevPageLastElemOffset),G===!1||Fe===0){var kt=(Fe>Pe||Fe<Ee)&&_.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],je,st,null).clip().discardPath()),L.call(this,M,G),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=ce}else this.lineWidth=xe,L.call(this,M,G),this.lineWidth=ce;this.path=Ce},L=function(M,G){if((M!=="stroke"||G||!w.call(this))&&(M==="stroke"||G||!h.call(this))){for(var H,ne,ie=[],V=this.path,Z=0;Z<V.length;Z++){var ce=V[Z];switch(ce.type){case"begin":ie.push({begin:!0});break;case"close":ie.push({close:!0});break;case"mt":ie.push({start:ce,deltas:[],abs:[]});break;case"lt":var xe=ie.length;if(V[Z-1]&&!isNaN(V[Z-1].x)&&(H=[ce.x-V[Z-1].x,ce.y-V[Z-1].y],xe>0)){for(;xe>=0;xe--)if(ie[xe-1].close!==!0&&ie[xe-1].begin!==!0){ie[xe-1].deltas.push(H),ie[xe-1].abs.push(ce);break}}break;case"bct":H=[ce.x1-V[Z-1].x,ce.y1-V[Z-1].y,ce.x2-V[Z-1].x,ce.y2-V[Z-1].y,ce.x-V[Z-1].x,ce.y-V[Z-1].y],ie[ie.length-1].deltas.push(H);break;case"qct":var we=V[Z-1].x+2/3*(ce.x1-V[Z-1].x),Ce=V[Z-1].y+2/3*(ce.y1-V[Z-1].y),ke=ce.x+2/3*(ce.x1-ce.x),ze=ce.y+2/3*(ce.y1-ce.y),me=ce.x,J=ce.y;H=[we-V[Z-1].x,Ce-V[Z-1].y,ke-V[Z-1].x,ze-V[Z-1].y,me-V[Z-1].x,J-V[Z-1].y],ie[ie.length-1].deltas.push(H);break;case"arc":ie.push({deltas:[],abs:[],arc:!0}),Array.isArray(ie[ie.length-1].abs)&&ie[ie.length-1].abs.push(ce)}}ne=G?null:M==="stroke"?"stroke":"fill";for(var qe=!1,Be=0;Be<ie.length;Be++)if(ie[Be].arc)for(var Pe=ie[Be].abs,Ee=0;Ee<Pe.length;Ee++){var Fe=Pe[Ee];Fe.type==="arc"?k.call(this,Fe.x,Fe.y,Fe.radius,Fe.startAngle,Fe.endAngle,Fe.counterclockwise,void 0,G,!qe):W.call(this,Fe.x,Fe.y),qe=!0}else if(ie[Be].close===!0)this.pdf.internal.out("h"),qe=!1;else if(ie[Be].begin!==!0){var je=ie[Be].start.x,Ge=ie[Be].start.y;B.call(this,ie[Be].deltas,je,Ge),qe=!0}ne&&z.call(this,ne),G&&T.call(this)}},R=function(M){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,H=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return M-H;case"top":return M+G-H;case"hanging":return M+G-2*H;case"middle":return M+G/2-H;case"ideographic":return M;case"alphabetic":default:return M}},D=function(M){return M+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var M=function(){};return M.colorStops=[],M.addColorStop=function(G,H){this.colorStops.push([G,H])},M.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},M.isCanvasGradient=!0,M},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(M,G,H,ne,ie,V,Z,ce,xe){for(var we=ee.call(this,H,ne,ie,V),Ce=0;Ce<we.length;Ce++){var ke=we[Ce];Ce===0&&(xe?P.call(this,ke.x1+M,ke.y1+G):W.call(this,ke.x1+M,ke.y1+G)),Q.call(this,M,G,ke.x2,ke.y2,ke.x3,ke.y3,ke.x4,ke.y4)}ce?T.call(this):z.call(this,Z)},z=function(M){switch(M){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},T=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(M,G){this.pdf.internal.out(n(M)+" "+r(G)+" m")},E=function(M){var G;switch(M.align){case"right":case"end":G="right";break;case"center":G="center";break;case"left":case"start":default:G="left"}var H=this.pdf.getTextDimensions(M.text),ne=R.call(this,M.y),ie=D.call(this,ne)-H.h,V=this.ctx.transform.applyToPoint(new s(M.x,ne)),Z=this.ctx.transform.decompose(),ce=new l;ce=(ce=(ce=ce.multiply(Z.translate)).multiply(Z.skew)).multiply(Z.scale);for(var xe,we,Ce,ke=this.ctx.transform.applyToRectangle(new a(M.x,ne,H.w,H.h)),ze=ce.applyToRectangle(new a(M.x,ie,H.w,H.h)),me=x.call(this,ze),J=[],qe=0;qe<me.length;qe+=1)J.indexOf(me[qe])===-1&&J.push(me[qe]);if(y(J),this.autoPaging)for(var Be=J[0],Pe=J[J.length-1],Ee=Be;Ee<Pe+1;Ee++){this.pdf.setPage(Ee);var Fe=Ee===1?this.posY+this.margin[0]:this.margin[0],je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ge=this.pdf.internal.pageSize.height-this.margin[2],et=Ge-this.margin[0],st=this.pdf.internal.pageSize.width-this.margin[1],lt=st-this.margin[3],gt=Ee===1?0:je+(Ee-2)*et;if(this.ctx.clip_path.length!==0){var kt=this.path;xe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(xe,this.posX+this.margin[3],-1*gt+Fe),L.call(this,"fill",!0),this.path=kt}var Qe=S([JSON.parse(JSON.stringify(ze))],this.posX+this.margin[3],-gt+Fe+this.ctx.prevPageLastElemOffset)[0];M.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*M.scale),Ce=this.lineWidth,this.lineWidth=Ce*M.scale);var ct=this.autoPaging!=="text";if(ct||Qe.y+Qe.h<=Ge){if(ct||Qe.y>=Fe&&Qe.x<=st){var Ie=ct?M.text:this.pdf.splitTextToSize(M.text,M.maxWidth||st-Qe.x)[0],Yn=S([JSON.parse(JSON.stringify(ke))],this.posX+this.margin[3],-gt+Fe+this.ctx.prevPageLastElemOffset)[0],yt=ct&&(Ee>Be||Ee<Pe)&&_.call(this);yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lt,et,null).clip().discardPath()),this.pdf.text(Ie,Yn.x,Yn.y,{angle:M.angle,align:G,renderingMode:M.renderingMode}),yt&&this.pdf.restoreGraphicsState()}}else Qe.y<Ge&&(this.ctx.prevPageLastElemOffset+=Ge-Qe.y);M.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=Ce)}else M.scale>=.01&&(we=this.pdf.internal.getFontSize(),this.pdf.setFontSize(we*M.scale),Ce=this.lineWidth,this.lineWidth=Ce*M.scale),this.pdf.text(M.text,V.x+this.posX,V.y+this.posY,{angle:M.angle,align:G,renderingMode:M.renderingMode,maxWidth:M.maxWidth}),M.scale>=.01&&(this.pdf.setFontSize(we),this.lineWidth=Ce)},W=function(M,G,H,ne){H=H||0,ne=ne||0,this.pdf.internal.out(n(M+H)+" "+r(G+ne)+" l")},B=function(M,G,H){return this.pdf.lines(M,G,H,null,null)},Q=function(M,G,H,ne,ie,V,Z,ce){this.pdf.internal.out([e(i(H+M)),e(o(ne+G)),e(i(ie+M)),e(o(V+G)),e(i(Z+M)),e(o(ce+G)),"c"].join(" "))},ee=function(M,G,H,ne){for(var ie=2*Math.PI,V=Math.PI/2;G>H;)G-=ie;var Z=Math.abs(H-G);Z<ie&&ne&&(Z=ie-Z);for(var ce=[],xe=ne?-1:1,we=G;Z>1e-5;){var Ce=we+xe*Math.min(Z,V);ce.push(se.call(this,M,we,Ce)),Z-=Math.abs(Ce-we),we=Ce}return ce},se=function(M,G,H){var ne=(H-G)/2,ie=M*Math.cos(ne),V=M*Math.sin(ne),Z=ie,ce=-V,xe=Z*Z+ce*ce,we=xe+Z*ie+ce*V,Ce=4/3*(Math.sqrt(2*xe*we)-we)/(Z*V-ce*ie),ke=Z-Ce*ce,ze=ce+Ce*Z,me=ke,J=-ze,qe=ne+G,Be=Math.cos(qe),Pe=Math.sin(qe);return{x1:M*Math.cos(G),y1:M*Math.sin(G),x2:ke*Be-ze*Pe,y2:ke*Pe+ze*Be,x3:me*Be-J*Pe,y3:me*Pe+J*Be,x4:M*Math.cos(H),y4:M*Math.sin(H)}},K=function(M){return 180*M/Math.PI},te=function(M,G,H,ne,ie,V){var Z=M+.5*(H-M),ce=G+.5*(ne-G),xe=ie+.5*(H-ie),we=V+.5*(ne-V),Ce=Math.min(M,ie,Z,xe),ke=Math.max(M,ie,Z,xe),ze=Math.min(G,V,ce,we),me=Math.max(G,V,ce,we);return new a(Ce,ze,ke-Ce,me-ze)},X=function(M,G,H,ne,ie,V,Z,ce){var xe,we,Ce,ke,ze,me,J,qe,Be,Pe,Ee,Fe,je,Ge,et=H-M,st=ne-G,lt=ie-H,gt=V-ne,kt=Z-ie,Qe=ce-V;for(we=0;we<41;we++)Be=(J=(Ce=M+(xe=we/40)*et)+xe*((ze=H+xe*lt)-Ce))+xe*(ze+xe*(ie+xe*kt-ze)-J),Pe=(qe=(ke=G+xe*st)+xe*((me=ne+xe*gt)-ke))+xe*(me+xe*(V+xe*Qe-me)-qe),we==0?(Ee=Be,Fe=Pe,je=Be,Ge=Pe):(Ee=Math.min(Ee,Be),Fe=Math.min(Fe,Pe),je=Math.max(je,Be),Ge=Math.max(Ge,Pe));return new a(Math.round(Ee),Math.round(Fe),Math.round(je-Ee),Math.round(Ge-Fe))},de=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var M,G,H=(M=this.ctx.lineDash,G=this.ctx.lineDashOffset,JSON.stringify({lineDash:M,lineDashOffset:G}));this.prevLineDash!==H&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=H)}}})(Ye.API),function(t){var e=function(o){var s,a,l,u,d,p,g,h,w,_;for(a=[],l=0,u=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;u>l;l+=4)(d=(o.charCodeAt(l)<<24)+(o.charCodeAt(l+1)<<16)+(o.charCodeAt(l+2)<<8)+o.charCodeAt(l+3))!==0?(p=(d=((d=((d=((d=(d-(_=d%85))/85)-(w=d%85))/85)-(h=d%85))/85)-(g=d%85))/85)%85,a.push(p+33,g+33,h+33,w+33,_+33)):a.push(122);return function(x,v){for(var S=v;S>0;S--)x.pop()}(a,s.length),String.fromCharCode.apply(String,a)+"~>"},n=function(o){var s,a,l,u,d,p=String,g="length",h=255,w="charCodeAt",_="slice",x="replace";for(o[_](-2),o=o[_](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),l=[],u=0,d=(o+=s="uuuuu"[_](o[g]%5||5))[g];d>u;u+=5)a=52200625*(o[w](u)-33)+614125*(o[w](u+1)-33)+7225*(o[w](u+2)-33)+85*(o[w](u+3)-33)+(o[w](u+4)-33),l.push(h&a>>24,h&a>>16,h&a>>8,h&a);return function(v,S){for(var y=S;y>0;y--)v.pop()}(l,s[g]),p.fromCharCode.apply(p,l)},r=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var a="",l=0;l<o.length;l+=2)a+=String.fromCharCode("0x"+(o[l]+o[l+1]));return a},i=function(o){for(var s=new Uint8Array(o.length),a=o.length;a--;)s[a]=o.charCodeAt(a);return o=(s=P5(s)).reduce(function(l,u){return l+String.fromCharCode(u)},"")};t.processDataByFilters=function(o,s){var a=0,l=o||"",u=[];for(typeof(s=s||[])=="string"&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(d){return("0"+d.charCodeAt().toString(16)).slice(-2)}).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}}(Ye.API),function(t){t.loadFile=function(e,n,r){return function(i,o,s){o=o!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(l,u,d){var p=new XMLHttpRequest,g=0,h=function(w){var _=w.length,x=[],v=String.fromCharCode;for(g=0;g<_;g+=1)x.push(v(255&w.charCodeAt(g)));return x.join("")};if(p.open("GET",l,!u),p.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(p.onload=function(){p.status===200?d(h(this.responseText)):d(void 0)}),p.send(null),u&&p.status===200)return h(p.responseText)}(i,o,s)}catch{}return a}(e,n,r)},t.loadImageFile=t.loadFile}(Ye.API),function(t){function e(){return(Ke.html2canvas?Promise.resolve(Ke.html2canvas):S5(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(Ke.DOMPurify?Promise.resolve(Ke.DOMPurify):S5(()=>import("./purify.es-C_uT9hQ1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var a=Pt(s);return a==="undefined"?"undefined":a==="string"||s instanceof String?"string":a==="number"||s instanceof Number?"number":a==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(s,a){var l=document.createElement(s);for(var u in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[u]=a.style[u];return l},o=function s(a){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),u=s.convert(Promise.resolve(),l);return u=(u=u.setProgress(1,s,1,[s])).set(a)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,a){return s.__proto__=a||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,a){return this.then(function(){switch(a=a||function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(n).then(function(l){return this.set({src:i("div",{innerHTML:s,dompurify:l})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function l(u,d){for(var p=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),g=u.firstChild;g;g=g.nextSibling)d!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(l(g,d));return u.nodeType===1&&(u.nodeName==="CANVAS"?(p.width=u.width,p.height=u.height,p.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(p.value=u.value),p.addEventListener("load",function(){p.scrollTop=u.scrollTop,p.scrollLeft=u.scrollLeft},!0)),p}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(a){var l=this.opt.jsPDF,u=this.opt.fontFaces,d=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:d,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=u,u)for(var g=0;g<u.length;++g){var h=u[g],w=h.src.find(function(_){return _.format==="truetype"});w&&l.addFont(w.url,h.ref.name,h.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,l.context2d.save(!0),a(this.prop.container,p)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,a,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,a):this.outputPdf(s,a)},o.prototype.outputPdf=function(s,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,a)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var a=Object.keys(s||{}).map(function(l){if(l in o.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}},this);return this.then(function(){return this.thenList(a)})},o.prototype.get=function(s,a){return this.then(function(){var l=s in o.template.prop?this.prop[s]:this.opt[s];return a?a(l):l})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function a(l,u){return Math.floor(l*u/72*96)}return this.then(function(){(s=s||Ye.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:a(s.inner.width,s.k),height:a(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,a,l,u){return s!=null&&(this.progress.val=s),a!=null&&(this.progress.state=a),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,a,l,u){return this.setProgress(s?this.progress.val+s:null,a||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},o.prototype.then=function(s,a){var l=this;return this.thenCore(s,a,function(u,d){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(p){return l.updateProgress(null,u),p}).then(u,d).then(function(p){return l.updateProgress(1),p})})},o.prototype.thenCore=function(s,a,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),a&&(a=a.bind(this));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),d=l.call(u,s,a);return o.convert(d,this.__proto__)},o.prototype.thenExternal=function(s,a){return Promise.prototype.then.call(this,s,a)},o.prototype.thenList=function(s){var a=this;return s.forEach(function(l){a=a.thenCore(l)}),a},o.prototype.catch=function(s){s&&(s=s.bind(this));var a=Promise.prototype.catch.call(this,s);return o.convert(a,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Ye.getPageSize=function(s,a,l){if(Pt(s)==="object"){var u=s;s=u.orientation,a=u.unit||a,l=u.format||l}a=a||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var d,p=(""+l).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":d=1;break;case"mm":d=72/25.4;break;case"cm":d=72/2.54;break;case"in":d=72;break;case"px":d=.75;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+a}var h,w=0,_=0;if(g.hasOwnProperty(p))w=g[p][1]/d,_=g[p][0]/d;else try{w=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",_>w&&(h=_,_=w,w=h);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",w>_&&(h=_,_=w,w=h)}return{width:_,height:w,unit:a,k:d,orientation:s}},t.html=function(s,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(j5):null;var l=new o(a);return a.worker?l:l.from(s).doCallback()}}(Ye.API),Ye.API.addJS=function(t){return T4=t,this.internal.events.subscribe("postPutResources",function(){Vd=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Vd+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),E4=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+T4+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Vd!==void 0&&E4!==void 0&&this.internal.out("/Names <</JavaScript "+Vd+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),o=0;o<i.length;o++){var s=i[o],a=r.exec(s);if(a!=null){var l=a[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(s)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,d=[];for(o=0;o<u;o++){var p=n.internal.newObject();d.push(p);var g=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var h=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<d.length;o++)n.internal.write("(page_"+(o+1)+")"+d[o]+" 0 R");n.internal.write(" ] >>","endobj"),e=n.internal.newObject(),n.internal.write("<< /Dests "+h+" 0 R"),n.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,o){var s={title:i,options:o,children:[]};return r==null&&(r=this.root),r.children.push(s),s},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var s=r.children[o];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var l=n.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},n.outline.line=function(r){this.ctx.val+=r+`\r
+`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
+`+r.id+` 0 obj\r
+<<\r
+`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
+endobj\r
+`},n.outline.count_r=function(r,i){for(var o=0;o<i.children.length;o++)r.count++,this.count_r(r,i.children[o]);return r.count}}])}(Ye.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(n,r,i,o,s,a){var l,u=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=s||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(l=function(p){for(var g,h=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,_={width:0,height:0,numcomponents:1},x=4;x<w;x+=2){if(x+=h,e.indexOf(p.charCodeAt(x+1))!==-1){g=256*p.charCodeAt(x+5)+p.charCodeAt(x+6),_={width:256*p.charCodeAt(x+7)+p.charCodeAt(x+8),height:g,numcomponents:p.charCodeAt(x+9)};break}h=256*p.charCodeAt(x+2)+p.charCodeAt(x+3)}return _}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:u,index:r,alias:i}}return d}}(Ye.API);var Pl,qd,M4,j4,F4,fF=function(){var t,e,n;function r(o){var s,a,l,u,d,p,g,h,w,_,x,v,S,y;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),w=(function(){var A,L;for(L=[],A=0;A<4;++A)L.push(String.fromCharCode(this.data[this.pos++]));return L}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},d=this.readUInt16(),u=this.readUInt16()||100,p.delay=1e3*d/u,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(w==="fdAT"&&(this.pos+=4,s-=4),o=(p!=null?p.data:void 0)||this.imgData,v=0;0<=s?v<s:v>s;0<=s?++v:--v)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((_=l-this.transparency.indexed.length)>0)for(S=0;0<=_?S<_:S>_;0<=_?++S:--S)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":g=(x=this.read(s)).indexOf(0),h=String.fromCharCode.apply(String,x.slice(0,g)),this.text[h]=String.fromCharCode.apply(String,x.slice(g+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(y=this.colorType)===4||y===6,a=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*a,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(o){var s,a;for(a=[],s=0;0<=o?s<o:s>o;0<=o?++s:--s)a.push(this.data[this.pos++]);return a},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(o){var s=this.pixelBitlength/8,a=new Uint8Array(this.width*this.height*s),l=0,u=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function d(p,g,h,w){var _,x,v,S,y,A,L,R,D,k,z,T,P,E,W,B,Q,ee,se,K,te,X=Math.ceil((u.width-p)/h),de=Math.ceil((u.height-g)/w),M=u.width==X&&u.height==de;for(E=s*X,T=M?a:new Uint8Array(E*de),A=o.length,P=0,x=0;P<de&&l<A;){switch(o[l++]){case 0:for(S=Q=0;Q<E;S=Q+=1)T[x++]=o[l++];break;case 1:for(S=ee=0;ee<E;S=ee+=1)_=o[l++],y=S<s?0:T[x-s],T[x++]=(_+y)%256;break;case 2:for(S=se=0;se<E;S=se+=1)_=o[l++],v=(S-S%s)/s,W=P&&T[(P-1)*E+v*s+S%s],T[x++]=(W+_)%256;break;case 3:for(S=K=0;K<E;S=K+=1)_=o[l++],v=(S-S%s)/s,y=S<s?0:T[x-s],W=P&&T[(P-1)*E+v*s+S%s],T[x++]=(_+Math.floor((y+W)/2))%256;break;case 4:for(S=te=0;te<E;S=te+=1)_=o[l++],v=(S-S%s)/s,y=S<s?0:T[x-s],P===0?W=B=0:(W=T[(P-1)*E+v*s+S%s],B=v&&T[(P-1)*E+(v-1)*s+S%s]),L=y+W-B,R=Math.abs(L-y),k=Math.abs(L-W),z=Math.abs(L-B),D=R<=k&&R<=z?y:k<=z?W:B,T[x++]=(_+D)%256;break;default:throw new Error("Invalid filter algorithm: "+o[l-1])}if(!M){var G=((g+P*w)*u.width+p)*s,H=P*E;for(S=0;S<X;S+=1){for(var ne=0;ne<s;ne+=1)a[G++]=T[H++];G+=(h-1)*s}}P++}}return o=Wj(o),u.interlaceMethod==1?(d(0,0,8,8),d(4,0,8,8),d(0,4,4,8),d(2,0,4,4),d(0,2,2,4),d(1,0,2,2),d(0,1,1,2)):d(0,0,1,1),a},r.prototype.decodePalette=function(){var o,s,a,l,u,d,p,g,h;for(a=this.palette,d=this.transparency.indexed||[],u=new Uint8Array((d.length||0)+a.length),l=0,o=0,s=p=0,g=a.length;p<g;s=p+=3)u[l++]=a[s],u[l++]=a[s+1],u[l++]=a[s+2],u[l++]=(h=d[o++])!=null?h:255;return u},r.prototype.copyToImageData=function(o,s){var a,l,u,d,p,g,h,w,_,x,v;if(l=this.colors,_=null,a=this.hasAlphaChannel,this.palette.length&&(_=(v=this._decodedPalette)!=null?v:this._decodedPalette=this.decodePalette(),l=4,a=!0),w=(u=o.data||o).length,p=_||s,d=g=0,l===1)for(;d<w;)h=_?4*s[d/4]:g,x=p[h++],u[d++]=x,u[d++]=x,u[d++]=x,u[d++]=a?p[h++]:255,g=h;else for(;d<w;)h=_?4*s[d/4]:g,u[d++]=p[h++],u[d++]=p[h++],u[d++]=p[h++],u[d++]=a?p[h++]:255,g=h},r.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var i=function(){if(Object.prototype.toString.call(Ke)==="[object Window]"){try{e=Ke.document.createElement("canvas"),n=e.getContext("2d")}catch{return!1}return!0}return!1};return i(),t=function(o){var s;if(i()===!0)return n.width=o.width,n.height=o.height,n.clearRect(0,0,o.width,o.height),n.putImageData(o,0,0),(s=new Image).src=e.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(o){var s,a,l,u,d,p,g,h;if(this.animation){for(h=[],a=d=0,p=(g=this.animation.frames).length;d<p;a=++d)s=g[a],l=o.createImageData(s.width,s.height),u=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(l,u),s.imageData=l,h.push(s.image=t(l));return h}},r.prototype.renderFrame=function(o,s){var a,l,u;return a=(l=this.animation.frames)[s],u=l[s-1],s===0&&o.clearRect(0,0,this.width,this.height),(u!=null?u.disposeOp:void 0)===1?o.clearRect(u.xOffset,u.yOffset,u.width,u.height):(u!=null?u.disposeOp:void 0)===2&&o.putImageData(u.imageData,u.xOffset,u.yOffset),a.blendOp===0&&o.clearRect(a.xOffset,a.yOffset,a.width,a.height),o.drawImage(a.image,a.xOffset,a.yOffset)},r.prototype.animate=function(o){var s,a,l,u,d,p,g=this;return a=0,p=this.animation,u=p.numFrames,l=p.frames,d=p.numPlays,(s=function(){var h,w;if(h=a++%u,w=l[h],g.renderFrame(o,h),u>1&&a/u<d)return g.animation._timeout=setTimeout(s,w.delay)})()},r.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},r.prototype.render=function(o){var s,a;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,s=o.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(a=s.createImageData(this.width,this.height),this.copyToImageData(a,this.decodePixels()),s.putImageData(a,0,0))},r}();/**
+ * @license
+ *
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * ====================================================================
+ *//**
+ * @license
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
+ *
+ * https://github.com/deanm/omggif
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
+ * including animation and compression.  It does not rely on any specific
+ * underlying system, so should run in the browser, Node, or Plask.
+ */function pF(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,s=1<<(7&i)+1;t[e++],t[e++];var a=null,l=null;o&&(a=e,l=s,e+=3*s);var u=!0,d=[],p=0,g=null,h=0,w=null;for(this.width=n,this.height=r;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,w=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var _=t[e++];p=t[e++]|t[e++]<<8,g=t[e++],!(1&_)&&(g=null),h=_>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var x=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,S=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,A=t[e++],L=A>>6&1,R=1<<(7&A)+1,D=a,k=l,z=!1;A>>7&&(z=!0,D=e,k=R,e+=3*R);var T=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}d.push({x,y:v,width:S,height:y,has_local_palette:z,palette_offset:D,palette_size:k,data_offset:T,data_length:e-T,transparent_index:g,interlaced:!!L,delay:p,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return w},this.frameInfo=function(E){if(E<0||E>=d.length)throw new Error("Frame index out of range.");return d[E]},this.decodeAndBlitFrameBGRA=function(E,W){var B=this.frameInfo(E),Q=B.width*B.height,ee=new Uint8Array(Q);I4(t,B.data_offset,ee,Q);var se=B.palette_offset,K=B.transparent_index;K===null&&(K=256);var te=B.width,X=n-te,de=te,M=4*(B.y*n+B.x),G=4*((B.y+B.height)*n+B.x),H=M,ne=4*X;B.interlaced===!0&&(ne+=4*n*7);for(var ie=8,V=0,Z=ee.length;V<Z;++V){var ce=ee[V];if(de===0&&(de=te,(H+=ne)>=G&&(ne=4*X+4*n*(ie-1),H=M+(te+X)*(ie<<1),ie>>=1)),ce===K)H+=4;else{var xe=t[se+3*ce],we=t[se+3*ce+1],Ce=t[se+3*ce+2];W[H++]=Ce,W[H++]=we,W[H++]=xe,W[H++]=255}--de}},this.decodeAndBlitFrameRGBA=function(E,W){var B=this.frameInfo(E),Q=B.width*B.height,ee=new Uint8Array(Q);I4(t,B.data_offset,ee,Q);var se=B.palette_offset,K=B.transparent_index;K===null&&(K=256);var te=B.width,X=n-te,de=te,M=4*(B.y*n+B.x),G=4*((B.y+B.height)*n+B.x),H=M,ne=4*X;B.interlaced===!0&&(ne+=4*n*7);for(var ie=8,V=0,Z=ee.length;V<Z;++V){var ce=ee[V];if(de===0&&(de=te,(H+=ne)>=G&&(ne=4*X+4*n*(ie-1),H=M+(te+X)*(ie<<1),ie>>=1)),ce===K)H+=4;else{var xe=t[se+3*ce],we=t[se+3*ce+1],Ce=t[se+3*ce+2];W[H++]=xe,W[H++]=we,W[H++]=Ce,W[H++]=255}--de}}}function I4(t,e,n,r){for(var i=t[e++],o=1<<i,s=o+1,a=s+1,l=i+1,u=(1<<l)-1,d=0,p=0,g=0,h=t[e++],w=new Int32Array(4096),_=null;;){for(;d<16&&h!==0;)p|=t[e++]<<d,d+=8,h===1?h=t[e++]:--h;if(d<l)break;var x=p&u;if(p>>=l,d-=l,x!==o){if(x===s)break;for(var v=x<a?x:_,S=0,y=v;y>o;)y=w[y]>>8,++S;var A=y;if(g+S+(v!==x?1:0)>r)return void Ft.log("Warning, gif stream longer than expected.");n[g++]=A;var L=g+=S;for(v!==x&&(n[g++]=A),y=v;S--;)y=w[y],n[--L]=255&y,y>>=8;_!==null&&a<4096&&(w[a++]=_<<8|A,a>=u+1&&l<12&&(++l,u=u<<1|1)),_=x}else a=s+1,u=(1<<(l=i+1))-1,_=null}return g!==r&&Ft.log("Warning, gif stream shorter than expected."),n}/**
+ * @license
+  Copyright (c) 2008, Adobe Systems Incorporated
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without 
+  modification, are permitted provided that the following conditions are
+  met:
+
+  * Redistributions of source code must retain the above copyright notice, 
+    this list of conditions and the following disclaimer.
+  
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the 
+    documentation and/or other materials provided with the distribution.
+  
+  * Neither the name of Adobe Systems Incorporated nor the names of its 
+    contributors may be used to endorse or promote products derived from 
+    this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
+  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/function o2(t){var e,n,r,i,o,s=Math.floor,a=new Array(64),l=new Array(64),u=new Array(64),d=new Array(64),p=new Array(65535),g=new Array(65535),h=new Array(64),w=new Array(64),_=[],x=0,v=7,S=new Array(64),y=new Array(64),A=new Array(64),L=new Array(256),R=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Q=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ee(M,G){for(var H=0,ne=0,ie=new Array,V=1;V<=16;V++){for(var Z=1;Z<=M[V];Z++)ie[G[ne]]=[],ie[G[ne]][0]=H,ie[G[ne]][1]=V,ne++,H++;H*=2}return ie}function se(M){for(var G=M[0],H=M[1]-1;H>=0;)G&1<<H&&(x|=1<<v),H--,--v<0&&(x==255?(K(255),K(0)):K(x),v=7,x=0)}function K(M){_.push(M)}function te(M){K(M>>8&255),K(255&M)}function X(M,G,H,ne,ie){for(var V,Z=ie[0],ce=ie[240],xe=function(Pe,Ee){var Fe,je,Ge,et,st,lt,gt,kt,Qe,ct,Ie=0;for(Qe=0;Qe<8;++Qe){Fe=Pe[Ie],je=Pe[Ie+1],Ge=Pe[Ie+2],et=Pe[Ie+3],st=Pe[Ie+4],lt=Pe[Ie+5],gt=Pe[Ie+6];var Yn=Fe+(kt=Pe[Ie+7]),yt=Fe-kt,li=je+gt,Mt=je-gt,qt=Ge+lt,Bi=Ge-lt,xt=et+st,$s=et-st,en=Yn+xt,ci=Yn-xt,ho=li+qt,tn=li-qt;Pe[Ie]=en+ho,Pe[Ie+4]=en-ho;var tt=.707106781*(tn+ci);Pe[Ie+2]=ci+tt,Pe[Ie+6]=ci-tt;var At=.382683433*((en=$s+Bi)-(tn=Mt+yt)),Qs=.5411961*en+At,zn=1.306562965*tn+At,Di=.707106781*(ho=Bi+Mt),Ui=yt+Di,He=yt-Di;Pe[Ie+5]=He+Qs,Pe[Ie+3]=He-Qs,Pe[Ie+1]=Ui+zn,Pe[Ie+7]=Ui-zn,Ie+=8}for(Ie=0,Qe=0;Qe<8;++Qe){Fe=Pe[Ie],je=Pe[Ie+8],Ge=Pe[Ie+16],et=Pe[Ie+24],st=Pe[Ie+32],lt=Pe[Ie+40],gt=Pe[Ie+48];var ui=Fe+(kt=Pe[Ie+56]),zi=Fe-kt,wr=je+gt,Cn=je-gt,bn=Ge+lt,Mr=Ge-lt,qa=et+st,fo=et-st,hi=ui+qa,di=ui-qa,fi=wr+bn,Gi=wr-bn;Pe[Ie]=hi+fi,Pe[Ie+32]=hi-fi;var Wr=.707106781*(Gi+di);Pe[Ie+16]=di+Wr,Pe[Ie+48]=di-Wr;var Vi=.382683433*((hi=fo+Mr)-(Gi=Cn+zi)),Js=.5411961*hi+Vi,Wa=1.306562965*Gi+Vi,Ha=.707106781*(fi=Mr+Cn),Ya=zi+Ha,Ka=zi-Ha;Pe[Ie+40]=Ka+Js,Pe[Ie+24]=Ka-Js,Pe[Ie+8]=Ya+Wa,Pe[Ie+56]=Ya-Wa,Ie++}for(Qe=0;Qe<64;++Qe)ct=Pe[Qe]*Ee[Qe],h[Qe]=ct>0?ct+.5|0:ct-.5|0;return h}(M,G),we=0;we<64;++we)w[D[we]]=xe[we];var Ce=w[0]-H;H=w[0],Ce==0?se(ne[0]):(se(ne[g[V=32767+Ce]]),se(p[V]));for(var ke=63;ke>0&&w[ke]==0;)ke--;if(ke==0)return se(Z),H;for(var ze,me=1;me<=ke;){for(var J=me;w[me]==0&&me<=ke;)++me;var qe=me-J;if(qe>=16){ze=qe>>4;for(var Be=1;Be<=ze;++Be)se(ce);qe&=15}V=32767+w[me],se(ie[(qe<<4)+g[V]]),se(p[V]),me++}return ke!=63&&se(Z),H}function de(M){M=Math.min(Math.max(M,1),100),o!=M&&(function(G){for(var H=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ne=0;ne<64;ne++){var ie=s((H[ne]*G+50)/100);ie=Math.min(Math.max(ie,1),255),a[D[ne]]=ie}for(var V=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Z=0;Z<64;Z++){var ce=s((V[Z]*G+50)/100);ce=Math.min(Math.max(ce,1),255),l[D[Z]]=ce}for(var xe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],we=0,Ce=0;Ce<8;Ce++)for(var ke=0;ke<8;ke++)u[we]=1/(a[D[we]]*xe[Ce]*xe[ke]*8),d[we]=1/(l[D[we]]*xe[Ce]*xe[ke]*8),we++}(M<50?Math.floor(5e3/M):Math.floor(200-2*M)),o=M)}this.encode=function(M,G){G&&de(G),_=new Array,x=0,v=7,te(65496),te(65504),te(16),K(74),K(70),K(73),K(70),K(0),K(1),K(1),K(0),te(1),te(1),K(0),K(0),function(){te(65499),te(132),K(0);for(var je=0;je<64;je++)K(a[je]);K(1);for(var Ge=0;Ge<64;Ge++)K(l[Ge])}(),function(je,Ge){te(65472),te(17),K(8),te(Ge),te(je),K(3),K(1),K(17),K(0),K(2),K(17),K(1),K(3),K(17),K(1)}(M.width,M.height),function(){te(65476),te(418),K(0);for(var je=0;je<16;je++)K(k[je+1]);for(var Ge=0;Ge<=11;Ge++)K(z[Ge]);K(16);for(var et=0;et<16;et++)K(T[et+1]);for(var st=0;st<=161;st++)K(P[st]);K(1);for(var lt=0;lt<16;lt++)K(E[lt+1]);for(var gt=0;gt<=11;gt++)K(W[gt]);K(17);for(var kt=0;kt<16;kt++)K(B[kt+1]);for(var Qe=0;Qe<=161;Qe++)K(Q[Qe])}(),te(65498),te(12),K(3),K(1),K(0),K(2),K(17),K(3),K(17),K(0),K(63),K(0);var H=0,ne=0,ie=0;x=0,v=7,this.encode.displayName="_encode_";for(var V,Z,ce,xe,we,Ce,ke,ze,me,J=M.data,qe=M.width,Be=M.height,Pe=4*qe,Ee=0;Ee<Be;){for(V=0;V<Pe;){for(we=Pe*Ee+V,ke=-1,ze=0,me=0;me<64;me++)Ce=we+(ze=me>>3)*Pe+(ke=4*(7&me)),Ee+ze>=Be&&(Ce-=Pe*(Ee+1+ze-Be)),V+ke>=Pe&&(Ce-=V+ke-Pe+4),Z=J[Ce++],ce=J[Ce++],xe=J[Ce++],S[me]=(R[Z]+R[ce+256>>0]+R[xe+512>>0]>>16)-128,y[me]=(R[Z+768>>0]+R[ce+1024>>0]+R[xe+1280>>0]>>16)-128,A[me]=(R[Z+1280>>0]+R[ce+1536>>0]+R[xe+1792>>0]>>16)-128;H=X(S,u,H,e,r),ne=X(y,d,ne,n,i),ie=X(A,d,ie,n,i),V+=32}Ee+=8}if(v>=0){var Fe=[];Fe[1]=v+1,Fe[0]=(1<<v+1)-1,se(Fe)}return te(65497),new Uint8Array(_)},t=t||50,function(){for(var M=String.fromCharCode,G=0;G<256;G++)L[G]=M(G)}(),e=ee(k,z),n=ee(E,W),r=ee(T,P),i=ee(B,Q),function(){for(var M=1,G=2,H=1;H<=15;H++){for(var ne=M;ne<G;ne++)g[32767+ne]=H,p[32767+ne]=[],p[32767+ne][1]=H,p[32767+ne][0]=ne;for(var ie=-(G-1);ie<=-M;ie++)g[32767+ie]=H,p[32767+ie]=[],p[32767+ie][1]=H,p[32767+ie][0]=G-1+ie;M<<=1,G<<=1}}(),function(){for(var M=0;M<256;M++)R[M]=19595*M,R[M+256>>0]=38470*M,R[M+512>>0]=7471*M+32768,R[M+768>>0]=-11059*M,R[M+1024>>0]=-21709*M,R[M+1280>>0]=32768*M+8421375,R[M+1536>>0]=-27439*M,R[M+1792>>0]=-5329*M}(),de(t)}/**
+ * @license
+ * Copyright (c) 2017 Aras Abbasi
+ *
+ * Licensed under the MIT License.
+ * http://opensource.org/licenses/mit-license
+ */function Ai(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function O4(t){function e(k){if(!k)throw Error("assert :P")}function n(k,z,T){for(var P=0;4>P;P++)if(k[z+P]!=T.charCodeAt(P))return!0;return!1}function r(k,z,T,P,E){for(var W=0;W<E;W++)k[z+W]=T[P+W]}function i(k,z,T,P){for(var E=0;E<P;E++)k[z+E]=T}function o(k){return new Int32Array(k)}function s(k,z){for(var T=[],P=0;P<k;P++)T.push(new z);return T}function a(k,z){var T=[];return function P(E,W,B){for(var Q=B[W],ee=0;ee<Q&&(E.push(B.length>W+1?[]:new z),!(B.length<W+1));ee++)P(E[ee],W+1,B)}(T,0,k),T}var l=function(){var k=this;function z(c,f){for(var b=1<<f-1>>>0;c&b;)b>>>=1;return b?(c&b-1)+b:c}function T(c,f,b,C,j){e(!(C%b));do c[f+(C-=b)]=j;while(0<C)}function P(c,f,b,C,j){if(e(2328>=j),512>=j)var I=o(512);else if((I=o(j))==null)return 0;return function(O,U,q,Y,ae,pe){var ge,he,Se=U,ve=1<<q,le=o(16),ue=o(16);for(e(ae!=0),e(Y!=null),e(O!=null),e(0<q),he=0;he<ae;++he){if(15<Y[he])return 0;++le[Y[he]]}if(le[0]==ae)return 0;for(ue[1]=0,ge=1;15>ge;++ge){if(le[ge]>1<<ge)return 0;ue[ge+1]=ue[ge]+le[ge]}for(he=0;he<ae;++he)ge=Y[he],0<Y[he]&&(pe[ue[ge]++]=he);if(ue[15]==1)return(Y=new E).g=0,Y.value=pe[0],T(O,Se,1,ve,Y),ve;var be,Ae=-1,_e=ve-1,Re=0,Te=1,We=1,Me=1<<q;for(he=0,ge=1,ae=2;ge<=q;++ge,ae<<=1){if(Te+=We<<=1,0>(We-=le[ge]))return 0;for(;0<le[ge];--le[ge])(Y=new E).g=ge,Y.value=pe[he++],T(O,Se+Re,ae,Me,Y),Re=z(Re,ge)}for(ge=q+1,ae=2;15>=ge;++ge,ae<<=1){if(Te+=We<<=1,0>(We-=le[ge]))return 0;for(;0<le[ge];--le[ge]){if(Y=new E,(Re&_e)!=Ae){for(Se+=Me,be=1<<(Ae=ge)-q;15>Ae&&!(0>=(be-=le[Ae]));)++Ae,be<<=1;ve+=Me=1<<(be=Ae-q),O[U+(Ae=Re&_e)].g=be+q,O[U+Ae].value=Se-U-Ae}Y.g=ge-q,Y.value=pe[he++],T(O,Se+(Re>>q),ae,Me,Y),Re=z(Re,ge)}}return Te!=2*ue[15]-1?0:ve}(c,f,b,C,j,I)}function E(){this.value=this.g=0}function W(){this.value=this.g=0}function B(){this.G=s(5,E),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Gn,W)}function Q(c,f,b,C){e(c!=null),e(f!=null),e(2147483648>C),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=f,c.pa=b,c.Jd=f,c.Yc=b+C,c.Zc=4<=C?b+C-4+1:b,V(c)}function ee(c,f){for(var b=0;0<f--;)b|=ce(c,128)<<f;return b}function se(c,f){var b=ee(c,f);return Z(c)?-b:b}function K(c,f,b,C){var j,I=0;for(e(c!=null),e(f!=null),e(4294967288>C),c.Sb=C,c.Ra=0,c.u=0,c.h=0,4<C&&(C=4),j=0;j<C;++j)I+=f[b+j]<<8*j;c.Ra=I,c.bb=C,c.oa=f,c.pa=b}function te(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<cl-8>>>0,++c.bb,c.u-=8;H(c)&&(c.h=1,c.u=0)}function X(c,f){if(e(0<=f),!c.h&&f<=ll){var b=G(c)&al[f];return c.u+=f,te(c),b}return c.h=1,c.u=0}function de(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(c){return c.Ra>>>(c.u&cl-1)>>>0}function H(c){return e(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>cl}function ne(c,f){c.u=f,c.h=H(c)}function ie(c){c.u>=Hc&&(e(c.u>=Hc),te(c))}function V(c){e(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(e(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function Z(c){return ee(c,1)}function ce(c,f){var b=c.Ca;0>c.b&&V(c);var C=c.b,j=b*f>>>8,I=(c.I>>>C>j)+0;for(I?(b-=j,c.I-=j+1<<C>>>0):b=j+1,C=b,j=0;256<=C;)j+=8,C>>=8;return C=7^j+_r[C],c.b-=C,c.Ca=(b<<C)-1,I}function xe(c,f,b){c[f+0]=b>>24&255,c[f+1]=b>>16&255,c[f+2]=b>>8&255,c[f+3]=b>>0&255}function we(c,f){return c[f+0]<<0|c[f+1]<<8}function Ce(c,f){return we(c,f)|c[f+2]<<16}function ke(c,f){return we(c,f)|we(c,f+2)<<16}function ze(c,f){var b=1<<f;return e(c!=null),e(0<f),c.X=o(b),c.X==null?0:(c.Mb=32-f,c.Xa=f,1)}function me(c,f){e(c!=null),e(f!=null),e(c.Xa==f.Xa),r(f.X,0,c.X,0,1<<f.Xa)}function J(){this.X=[],this.Xa=this.Mb=0}function qe(c,f,b,C){e(b!=null),e(C!=null);var j=b[0],I=C[0];return j==0&&(j=(c*I+f/2)/f),I==0&&(I=(f*j+c/2)/c),0>=j||0>=I?0:(b[0]=j,C[0]=I,1)}function Be(c,f){return c+(1<<f)-1>>>f}function Pe(c,f){return((4278255360&c)+(4278255360&f)>>>0&4278255360)+((16711935&c)+(16711935&f)>>>0&16711935)>>>0}function Ee(c,f){k[f]=function(b,C,j,I,O,U,q){var Y;for(Y=0;Y<O;++Y){var ae=k[c](U[q+Y-1],j,I+Y);U[q+Y]=Pe(b[C+Y],ae)}}}function Fe(){this.ud=this.hd=this.jd=0}function je(c,f){return((4278124286&(c^f))>>>1)+(c&f)>>>0}function Ge(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function et(c,f){return Ge(c+(c-f+.5>>1))}function st(c,f,b){return Math.abs(f-b)-Math.abs(c-b)}function lt(c,f,b,C,j,I,O){for(C=I[O-1],b=0;b<j;++b)I[O+b]=C=Pe(c[f+b],C)}function gt(c,f,b,C,j){var I;for(I=0;I<b;++I){var O=c[f+I],U=O>>8&255,q=16711935&(q=(q=16711935&O)+((U<<16)+U));C[j+I]=(4278255360&O)+q>>>0}}function kt(c,f){f.jd=c>>0&255,f.hd=c>>8&255,f.ud=c>>16&255}function Qe(c,f,b,C,j,I){var O;for(O=0;O<C;++O){var U=f[b+O],q=U>>>8,Y=U,ae=255&(ae=(ae=U>>>16)+((c.jd<<24>>24)*(q<<24>>24)>>>5));Y=255&(Y=(Y=Y+((c.hd<<24>>24)*(q<<24>>24)>>>5))+((c.ud<<24>>24)*(ae<<24>>24)>>>5)),j[I+O]=(4278255360&U)+(ae<<16)+Y}}function ct(c,f,b,C,j){k[f]=function(I,O,U,q,Y,ae,pe,ge,he){for(q=pe;q<ge;++q)for(pe=0;pe<he;++pe)Y[ae++]=j(U[C(I[O++])])},k[c]=function(I,O,U,q,Y,ae,pe){var ge=8>>I.b,he=I.Ea,Se=I.K[0],ve=I.w;if(8>ge)for(I=(1<<I.b)-1,ve=(1<<ge)-1;O<U;++O){var le,ue=0;for(le=0;le<he;++le)le&I||(ue=C(q[Y++])),ae[pe++]=j(Se[ue&ve]),ue>>=ge}else k["VP8LMapColor"+b](q,Y,Se,ve,ae,pe,O,U,he)}}function Ie(c,f,b,C,j){for(b=f+b;f<b;){var I=c[f++];C[j++]=I>>16&255,C[j++]=I>>8&255,C[j++]=I>>0&255}}function Yn(c,f,b,C,j){for(b=f+b;f<b;){var I=c[f++];C[j++]=I>>16&255,C[j++]=I>>8&255,C[j++]=I>>0&255,C[j++]=I>>24&255}}function yt(c,f,b,C,j){for(b=f+b;f<b;){var I=(O=c[f++])>>16&240|O>>12&15,O=O>>0&240|O>>28&15;C[j++]=I,C[j++]=O}}function li(c,f,b,C,j){for(b=f+b;f<b;){var I=(O=c[f++])>>16&248|O>>13&7,O=O>>5&224|O>>3&31;C[j++]=I,C[j++]=O}}function Mt(c,f,b,C,j){for(b=f+b;f<b;){var I=c[f++];C[j++]=I>>0&255,C[j++]=I>>8&255,C[j++]=I>>16&255}}function qt(c,f,b,C,j,I){if(I==0)for(b=f+b;f<b;)xe(C,((I=c[f++])[0]>>24|I[1]>>8&65280|I[2]<<8&16711680|I[3]<<24)>>>0),j+=32;else r(C,j,c,f,b)}function Bi(c,f){k[f][0]=k[c+"0"],k[f][1]=k[c+"1"],k[f][2]=k[c+"2"],k[f][3]=k[c+"3"],k[f][4]=k[c+"4"],k[f][5]=k[c+"5"],k[f][6]=k[c+"6"],k[f][7]=k[c+"7"],k[f][8]=k[c+"8"],k[f][9]=k[c+"9"],k[f][10]=k[c+"10"],k[f][11]=k[c+"11"],k[f][12]=k[c+"12"],k[f][13]=k[c+"13"],k[f][14]=k[c+"0"],k[f][15]=k[c+"0"]}function xt(c){return c==q0||c==W0||c==ed||c==H0}function $s(){this.eb=[],this.size=this.A=this.fb=0}function en(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ci(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new $s,this.f.kb=new en,this.sd=null}function ho(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function tn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function tt(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function At(c,f){var b=c.T,C=f.ba.f.RGBA,j=C.eb,I=C.fb+c.ka*C.A,O=Qr[f.ba.S],U=c.y,q=c.O,Y=c.f,ae=c.N,pe=c.ea,ge=c.W,he=f.cc,Se=f.dc,ve=f.Mc,le=f.Nc,ue=c.ka,be=c.ka+c.T,Ae=c.U,_e=Ae+1>>1;for(ue==0?O(U,q,null,null,Y,ae,pe,ge,Y,ae,pe,ge,j,I,null,null,Ae):(O(f.ec,f.fc,U,q,he,Se,ve,le,Y,ae,pe,ge,j,I-C.A,j,I,Ae),++b);ue+2<be;ue+=2)he=Y,Se=ae,ve=pe,le=ge,ae+=c.Rc,ge+=c.Rc,I+=2*C.A,O(U,(q+=2*c.fa)-c.fa,U,q,he,Se,ve,le,Y,ae,pe,ge,j,I-C.A,j,I,Ae);return q+=c.fa,c.j+be<c.o?(r(f.ec,f.fc,U,q,Ae),r(f.cc,f.dc,Y,ae,_e),r(f.Mc,f.Nc,pe,ge,_e),b--):1&be||O(U,q,null,null,Y,ae,pe,ge,Y,ae,pe,ge,j,I+C.A,null,null,Ae),b}function Qs(c,f,b){var C=c.F,j=[c.J];if(C!=null){var I=c.U,O=f.ba.S,U=O==Zh||O==ed;f=f.ba.f.RGBA;var q=[0],Y=c.ka;q[0]=c.T,c.Kb&&(Y==0?--q[0]:(--Y,j[0]-=c.width),c.j+c.ka+c.T==c.o&&(q[0]=c.o-c.j-Y));var ae=f.eb;Y=f.fb+Y*f.A,c=Bt(C,j[0],c.width,I,q,ae,Y+(U?0:3),f.A),e(b==q),c&&xt(O)&&Xr(ae,Y,U,I,q,f.A)}return 0}function zn(c){var f=c.ma,b=f.ba.S,C=11>b,j=b==Qh||b==Jh||b==Zh||b==V0||b==12||xt(b);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!qc(f.Oa,c,j?11:12))return 0;if(j&&xt(b)&&Ne(),c.da)alert("todo:use_scaling");else{if(C){if(f.Ib=tt,c.Kb){if(b=c.U+1>>1,f.memory=o(c.U+2*b),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+c.U,f.Mc=f.cc,f.Nc=f.dc+b,f.Ib=At,Ne()}}else alert("todo:EmitYUV");j&&(f.Jb=Qs,C&&fe())}if(C&&!ym){for(c=0;256>c;++c)_7[c]=89858*(c-128)+nd>>td,A7[c]=-22014*(c-128)+nd,x7[c]=-45773*(c-128),S7[c]=113618*(c-128)+nd>>td;for(c=Zc;c<X0;++c)f=76283*(c-16)+nd>>td,N7[c-Zc]=jr(f,255),C7[c-Zc]=jr(f+8>>4,15);ym=1}return 1}function Di(c){var f=c.ma,b=c.U,C=c.T;return e(!(1&c.ka)),0>=b||0>=C?0:(b=f.Ib(c,f),f.Jb!=null&&f.Jb(c,f,b),f.Dc+=b,1)}function Ui(c){c.ma.memory=null}function He(c,f,b,C){return X(c,8)!=47?0:(f[0]=X(c,14)+1,b[0]=X(c,14)+1,C[0]=X(c,1),X(c,3)!=0?0:!c.h)}function ui(c,f){if(4>c)return c+1;var b=c-2>>1;return(2+(1&c)<<b)+X(f,b)+1}function zi(c,f){return 120<f?f-120:1<=(b=((b=a7[f-1])>>4)*c+(8-(15&b)))?b:1;var b}function wr(c,f,b){var C=G(b),j=c[f+=255&C].g-8;return 0<j&&(ne(b,b.u+8),C=G(b),f+=c[f].value,f+=C&(1<<j)-1),ne(b,b.u+c[f].g),c[f].value}function Cn(c,f,b){return b.g+=c.g,b.value+=c.value<<f>>>0,e(8>=b.g),c.g}function bn(c,f,b){var C=c.xc;return e((f=C==0?0:c.vc[c.md*(b>>C)+(f>>C)])<c.Wb),c.Ya[f]}function Mr(c,f,b,C){var j=c.ab,I=c.c*f,O=c.C;f=O+f;var U=b,q=C;for(C=c.Ta,b=c.Ua;0<j--;){var Y=c.gc[j],ae=O,pe=f,ge=U,he=q,Se=(q=C,U=b,Y.Ea);switch(e(ae<pe),e(pe<=Y.nc),Y.hc){case 2:qh(ge,he,(pe-ae)*Se,q,U);break;case 0:var ve=ae,le=pe,ue=q,be=U,Ae=(Me=Y).Ea;ve==0&&(z0(ge,he,null,null,1,ue,be),lt(ge,he+1,0,0,Ae-1,ue,be+1),he+=Ae,be+=Ae,++ve);for(var _e=1<<Me.b,Re=_e-1,Te=Be(Ae,Me.b),We=Me.K,Me=Me.w+(ve>>Me.b)*Te;ve<le;){var _t=We,Nt=Me,mt=1;for(Yc(ge,he,ue,be-Ae,1,ue,be);mt<Ae;){var ht=(mt&~Re)+_e;ht>Ae&&(ht=Ae),(0,Xo[_t[Nt++]>>8&15])(ge,he+ +mt,ue,be+mt-Ae,ht-mt,ue,be+mt),mt=ht}he+=Ae,be+=Ae,++ve&Re||(Me+=Te)}pe!=Y.nc&&r(q,U-Se,q,U+(pe-ae-1)*Se,Se);break;case 1:for(Se=ge,le=he,Ae=(ge=Y.Ea)-(be=ge&~(ue=(he=1<<Y.b)-1)),ve=Be(ge,Y.b),_e=Y.K,Y=Y.w+(ae>>Y.b)*ve;ae<pe;){for(Re=_e,Te=Y,We=new Fe,Me=le+be,_t=le+ge;le<Me;)kt(Re[Te++],We),ra(We,Se,le,he,q,U),le+=he,U+=he;le<_t&&(kt(Re[Te++],We),ra(We,Se,le,Ae,q,U),le+=Ae,U+=Ae),++ae&ue||(Y+=ve)}break;case 3:if(ge==q&&he==U&&0<Y.b){for(le=q,ge=Se=U+(pe-ae)*Se-(be=(pe-ae)*Be(Y.Ea,Y.b)),he=q,ue=U,ve=[],be=(Ae=be)-1;0<=be;--be)ve[be]=he[ue+be];for(be=Ae-1;0<=be;--be)le[ge+be]=ve[be];Hr(Y,ae,pe,q,Se,q,U)}else Hr(Y,ae,pe,ge,he,q,U)}U=C,q=b}q!=b&&r(C,b,U,q,I)}function qa(c,f){var b=c.V,C=c.Ba+c.c*c.C,j=f-c.C;if(e(f<=c.l.o),e(16>=j),0<j){var I=c.l,O=c.Ta,U=c.Ua,q=I.width;if(Mr(c,j,b,C),j=U=[U],e((b=c.C)<(C=f)),e(I.v<I.va),C>I.o&&(C=I.o),b<I.j){var Y=I.j-b;b=I.j,j[0]+=Y*q}if(b>=C?b=0:(j[0]+=4*I.v,I.ka=b-I.j,I.U=I.va-I.v,I.T=C-b,b=1),b){if(U=U[0],11>(b=c.ca).S){var ae=b.f.RGBA,pe=(C=b.S,j=I.U,I=I.T,Y=ae.eb,ae.A),ge=I;for(ae=ae.fb+c.Ma*ae.A;0<ge--;){var he=O,Se=U,ve=j,le=Y,ue=ae;switch(C){case $h:Sr(he,Se,ve,le,ue);break;case Qh:cr(he,Se,ve,le,ue);break;case q0:cr(he,Se,ve,le,ue),Xr(le,ue,0,ve,1,0);break;case lm:vo(he,Se,ve,le,ue);break;case Jh:qt(he,Se,ve,le,ue,1);break;case W0:qt(he,Se,ve,le,ue,1),Xr(le,ue,0,ve,1,0);break;case Zh:qt(he,Se,ve,le,ue,0);break;case ed:qt(he,Se,ve,le,ue,0),Xr(le,ue,1,ve,1,0);break;case V0:$o(he,Se,ve,le,ue);break;case H0:$o(he,Se,ve,le,ue),Rt(le,ue,ve,1,0);break;case cm:mo(he,Se,ve,le,ue);break;default:e(0)}U+=q,ae+=pe}c.Ma+=I}else alert("todo:EmitRescaledRowsYUVA");e(c.Ma<=b.height)}}c.C=f,e(c.C<=c.i)}function fo(c){var f;if(0<c.ua)return 0;for(f=0;f<c.Wb;++f){var b=c.Ya[f].G,C=c.Ya[f].H;if(0<b[1][C[1]+0].g||0<b[2][C[2]+0].g||0<b[3][C[3]+0].g)return 0}return 1}function hi(c,f,b,C,j,I){if(c.Z!=0){var O=c.qd,U=c.rd;for(e(es[c.Z]!=null);f<b;++f)es[c.Z](O,U,C,j,C,j,I),O=C,U=j,j+=I;c.qd=O,c.rd=U}}function di(c,f){var b=c.l.ma,C=b.Z==0||b.Z==1?c.l.j:c.C;if(C=c.C<C?C:c.C,e(f<=c.l.o),f>C){var j=c.l.width,I=b.ca,O=b.tb+j*C,U=c.V,q=c.Ba+c.c*C,Y=c.gc;e(c.ab==1),e(Y[0].hc==3),Wh(Y[0],C,f,U,q,I,O),hi(b,C,f,I,O,j)}c.C=c.Ma=f}function fi(c,f,b,C,j,I,O){var U=c.$/C,q=c.$%C,Y=c.m,ae=c.s,pe=b+c.$,ge=pe;j=b+C*j;var he=b+C*I,Se=280+ae.ua,ve=c.Pb?U:16777216,le=0<ae.ua?ae.Wa:null,ue=ae.wc,be=pe<he?bn(ae,q,U):null;e(c.C<I),e(he<=j);var Ae=!1;e:for(;;){for(;Ae||pe<he;){var _e=0;if(U>=ve){var Re=pe-b;e((ve=c).Pb),ve.wd=ve.m,ve.xd=Re,0<ve.s.ua&&me(ve.s.Wa,ve.s.vb),ve=U+c7}if(q&ue||(be=bn(ae,q,U)),e(be!=null),be.Qb&&(f[pe]=be.qb,Ae=!0),!Ae)if(ie(Y),be.jc){_e=Y,Re=f;var Te=pe,We=be.pd[G(_e)&Gn-1];e(be.jc),256>We.g?(ne(_e,_e.u+We.g),Re[Te]=We.value,_e=0):(ne(_e,_e.u+We.g-256),e(256<=We.value),_e=We.value),_e==0&&(Ae=!0)}else _e=wr(be.G[0],be.H[0],Y);if(Y.h)break;if(Ae||256>_e){if(!Ae)if(be.nd)f[pe]=(be.qb|_e<<8)>>>0;else{if(ie(Y),Ae=wr(be.G[1],be.H[1],Y),ie(Y),Re=wr(be.G[2],be.H[2],Y),Te=wr(be.G[3],be.H[3],Y),Y.h)break;f[pe]=(Te<<24|Ae<<16|_e<<8|Re)>>>0}if(Ae=!1,++pe,++q>=C&&(q=0,++U,O!=null&&U<=I&&!(U%16)&&O(c,U),le!=null))for(;ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e}else if(280>_e){if(_e=ui(_e-256,Y),Re=wr(be.G[4],be.H[4],Y),ie(Y),Re=zi(C,Re=ui(Re,Y)),Y.h)break;if(pe-b<Re||j-pe<_e)break e;for(Te=0;Te<_e;++Te)f[pe+Te]=f[pe+Te-Re];for(pe+=_e,q+=_e;q>=C;)q-=C,++U,O!=null&&U<=I&&!(U%16)&&O(c,U);if(e(pe<=j),q&ue&&(be=bn(ae,q,U)),le!=null)for(;ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e}else{if(!(_e<Se))break e;for(Ae=_e-280,e(le!=null);ge<pe;)_e=f[ge++],le.X[(506832829*_e&4294967295)>>>le.Mb]=_e;_e=pe,e(!(Ae>>>(Re=le).Xa)),f[_e]=Re.X[Ae],Ae=!0}Ae||e(Y.h==H(Y))}if(c.Pb&&Y.h&&pe<j)e(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&me(c.s.vb,c.s.Wa);else{if(Y.h)break e;O!=null&&O(c,U>I?I:U),c.a=0,c.$=pe-b}return 1}return c.a=3,0}function Gi(c){e(c!=null),c.vc=null,c.yc=null,c.Ya=null;var f=c.Wa;f!=null&&(f.X=null),c.vb=null,e(c!=null)}function Wr(){var c=new U0;return c==null?null:(c.a=0,c.xb=dm,Bi("Predictor","VP8LPredictors"),Bi("Predictor","VP8LPredictors_C"),Bi("PredictorAdd","VP8LPredictorsAdd"),Bi("PredictorAdd","VP8LPredictorsAdd_C"),qh=gt,ra=Qe,Sr=Ie,cr=Yn,$o=yt,mo=li,vo=Mt,k.VP8LMapColor32b=ul,k.VP8LMapColor8b=Hh,c)}function Vi(c,f,b,C,j){var I=1,O=[c],U=[f],q=C.m,Y=C.s,ae=null,pe=0;e:for(;;){if(b)for(;I&&X(q,1);){var ge=O,he=U,Se=C,ve=1,le=Se.m,ue=Se.gc[Se.ab],be=X(le,2);if(Se.Oc&1<<be)I=0;else{switch(Se.Oc|=1<<be,ue.hc=be,ue.Ea=ge[0],ue.nc=he[0],ue.K=[null],++Se.ab,e(4>=Se.ab),be){case 0:case 1:ue.b=X(le,3)+2,ve=Vi(Be(ue.Ea,ue.b),Be(ue.nc,ue.b),0,Se,ue.K),ue.K=ue.K[0];break;case 3:var Ae,_e=X(le,8)+1,Re=16<_e?0:4<_e?1:2<_e?2:3;if(ge[0]=Be(ue.Ea,Re),ue.b=Re,Ae=ve=Vi(_e,1,0,Se,ue.K)){var Te,We=_e,Me=ue,_t=1<<(8>>Me.b),Nt=o(_t);if(Nt==null)Ae=0;else{var mt=Me.K[0],ht=Me.w;for(Nt[0]=Me.K[0][0],Te=1;Te<1*We;++Te)Nt[Te]=Pe(mt[ht+Te],Nt[Te-1]);for(;Te<4*_t;++Te)Nt[Te]=0;Me.K[0]=null,Me.K[0]=Nt,Ae=1}}ve=Ae;break;case 2:break;default:e(0)}I=ve}}if(O=O[0],U=U[0],I&&X(q,1)&&!(I=1<=(pe=X(q,4))&&11>=pe)){C.a=3;break e}var jt;if(jt=I)t:{var Et,ot,Sn,xr=C,xn=O,Ar=U,Ct=pe,Ir=b,Or=xr.m,In=xr.s,Vn=[null],hr=1,Jr=0,Yi=l7[Ct];n:for(;;){if(Ir&&X(Or,1)){var On=X(Or,3)+2,_o=Be(xn,On),la=Be(Ar,On),gl=_o*la;if(!Vi(_o,la,0,xr,Vn))break n;for(Vn=Vn[0],In.xc=On,Et=0;Et<gl;++Et){var ts=Vn[Et]>>8&65535;Vn[Et]=ts,ts>=hr&&(hr=ts+1)}}if(Or.h)break n;for(ot=0;5>ot;++ot){var rn=um[ot];!ot&&0<Ct&&(rn+=1<<Ct),Jr<rn&&(Jr=rn)}var $0=s(hr*Yi,E),_m=hr,Sm=s(_m,B);if(Sm==null)var id=null;else e(65536>=_m),id=Sm;var eu=o(Jr);if(id==null||eu==null||$0==null){xr.a=1;break n}var od=$0;for(Et=Sn=0;Et<hr;++Et){var yi=id[Et],ml=yi.G,vl=yi.H,xm=0,sd=1,Am=0;for(ot=0;5>ot;++ot){rn=um[ot],ml[ot]=od,vl[ot]=Sn,!ot&&0<Ct&&(rn+=1<<Ct);i:{var ad,Q0=rn,ld=xr,tu=eu,k7=od,E7=Sn,J0=0,ns=ld.m,T7=X(ns,1);if(i(tu,0,0,Q0),T7){var M7=X(ns,1)+1,j7=X(ns,1),Nm=X(ns,j7==0?1:8);tu[Nm]=1,M7==2&&(tu[Nm=X(ns,8)]=1);var cd=1}else{var Cm=o(19),Pm=X(ns,4)+4;if(19<Pm){ld.a=3;var ud=0;break i}for(ad=0;ad<Pm;++ad)Cm[s7[ad]]=X(ns,3);var Z0=void 0,nu=void 0,Lm=ld,F7=Cm,hd=Q0,km=tu,ep=0,rs=Lm.m,Em=8,Tm=s(128,E);r:for(;P(Tm,0,7,F7,19);){if(X(rs,1)){var I7=2+2*X(rs,3);if((Z0=2+X(rs,I7))>hd)break r}else Z0=hd;for(nu=0;nu<hd&&Z0--;){ie(rs);var Mm=Tm[0+(127&G(rs))];ne(rs,rs.u+Mm.g);var yl=Mm.value;if(16>yl)km[nu++]=yl,yl!=0&&(Em=yl);else{var O7=yl==16,jm=yl-16,R7=i7[jm],Fm=X(rs,r7[jm])+R7;if(nu+Fm>hd)break r;for(var B7=O7?Em:0;0<Fm--;)km[nu++]=B7}}ep=1;break r}ep||(Lm.a=3),cd=ep}(cd=cd&&!ns.h)&&(J0=P(k7,E7,8,tu,Q0)),cd&&J0!=0?ud=J0:(ld.a=3,ud=0)}if(ud==0)break n;if(sd&&o7[ot]==1&&(sd=od[Sn].g==0),xm+=od[Sn].g,Sn+=ud,3>=ot){var ru,tp=eu[0];for(ru=1;ru<rn;++ru)eu[ru]>tp&&(tp=eu[ru]);Am+=tp}}if(yi.nd=sd,yi.Qb=0,sd&&(yi.qb=(ml[3][vl[3]+0].value<<24|ml[1][vl[1]+0].value<<16|ml[2][vl[2]+0].value)>>>0,xm==0&&256>ml[0][vl[0]+0].value&&(yi.Qb=1,yi.qb+=ml[0][vl[0]+0].value<<8)),yi.jc=!yi.Qb&&6>Am,yi.jc){var dd,So=yi;for(dd=0;dd<Gn;++dd){var is=dd,os=So.pd[is],fd=So.G[0][So.H[0]+is];256<=fd.value?(os.g=fd.g+256,os.value=fd.value):(os.g=0,os.value=0,is>>=Cn(fd,8,os),is>>=Cn(So.G[1][So.H[1]+is],16,os),is>>=Cn(So.G[2][So.H[2]+is],0,os),Cn(So.G[3][So.H[3]+is],24,os))}}}In.vc=Vn,In.Wb=hr,In.Ya=id,In.yc=$0,jt=1;break t}jt=0}if(!(I=jt)){C.a=3;break e}if(0<pe){if(Y.ua=1<<pe,!ze(Y.Wa,pe)){C.a=1,I=0;break e}}else Y.ua=0;var np=C,Im=O,D7=U,rp=np.s,ip=rp.xc;if(np.c=Im,np.i=D7,rp.md=Be(Im,ip),rp.wc=ip==0?-1:(1<<ip)-1,b){C.xb=m7;break e}if((ae=o(O*U))==null){C.a=1,I=0;break e}I=(I=fi(C,ae,0,O,U,U,null))&&!q.h;break e}return I?(j!=null?j[0]=ae:(e(ae==null),e(b)),C.$=0,b||Gi(Y)):Gi(Y),I}function Js(c,f){var b=c.c*c.i,C=b+f+16*f;return e(c.c<=f),c.V=o(C),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+b+f,1)}function Wa(c,f){var b=c.C,C=f-b,j=c.V,I=c.Ba+c.c*b;for(e(f<=c.l.o);0<C;){var O=16<C?16:C,U=c.l.ma,q=c.l.width,Y=q*O,ae=U.ca,pe=U.tb+q*b,ge=c.Ta,he=c.Ua;Mr(c,O,j,I),dn(ge,he,ae,pe,Y),hi(U,b,b+O,ae,pe,q),C-=O,j+=O*c.c,b+=O}e(b==f),c.C=c.Ma=f}function Ha(){this.ub=this.yd=this.td=this.Rb=0}function Ya(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ka(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Ah(){this.Yb=function(){var c=[];return function f(b,C,j){for(var I=j[C],O=0;O<I&&(b.push(j.length>C+1?[]:0),!(j.length<C+1));O++)f(b[O],C+1,j)}(c,0,[3,11]),c}()}function v0(){this.jb=o(3),this.Wc=a([4,8],Ah),this.Xc=a([4,17],Ah)}function y0(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Xa(){this.ld=this.La=this.dd=this.tc=0}function Nh(){this.Na=this.la=0}function w0(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Lc(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function b0(){this.uc=this.M=this.Nb=0,this.wa=Array(new Xa),this.Y=0,this.ya=Array(new Lc),this.aa=0,this.l=new $a}function Ch(){this.y=o(16),this.f=o(8),this.ea=o(8)}function _0(){this.cb=this.a=0,this.sc="",this.m=new de,this.Od=new Ha,this.Kc=new Ya,this.ed=new y0,this.Qa=new Ka,this.Ic=this.$c=this.Aa=0,this.D=new b0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,de),this.ia=0,this.pb=s(4,w0),this.Pa=new v0,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ch),this.Hd=0,this.rb=Array(new Nh),this.sb=0,this.wa=Array(new Xa),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Lc),this.L=this.aa=0,this.gd=a([4,2],Xa),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function $a(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function S0(){var c=new _0;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,Jc||(Jc=kh)),c}function un(c,f,b){return c.a==0&&(c.a=f,c.sc=b,c.cb=0),0}function Ph(c,f,b){return 3<=b&&c[f+0]==157&&c[f+1]==1&&c[f+2]==42}function Lh(c,f){if(c==null)return 0;if(c.a=0,c.sc="OK",f==null)return un(c,2,"null VP8Io passed to VP8GetHeaders()");var b=f.data,C=f.w,j=f.ha;if(4>j)return un(c,7,"Truncated header.");var I=b[C+0]|b[C+1]<<8|b[C+2]<<16,O=c.Od;if(O.Rb=!(1&I),O.td=I>>1&7,O.yd=I>>4&1,O.ub=I>>5,3<O.td)return un(c,3,"Incorrect keyframe parameters.");if(!O.yd)return un(c,4,"Frame not displayable.");C+=3,j-=3;var U=c.Kc;if(O.Rb){if(7>j)return un(c,7,"cannot parse picture header");if(!Ph(b,C,j))return un(c,3,"Bad code word");U.c=16383&(b[C+4]<<8|b[C+3]),U.Td=b[C+4]>>6,U.i=16383&(b[C+6]<<8|b[C+5]),U.Ud=b[C+6]>>6,C+=7,j-=7,c.za=U.c+15>>4,c.Ub=U.i+15>>4,f.width=U.c,f.height=U.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,i((I=c.Pa).jb,0,255,I.jb.length),e((I=c.Qa)!=null),I.Cb=0,I.Bb=0,I.Fb=1,i(I.Zb,0,0,I.Zb.length),i(I.Lb,0,0,I.Lb)}if(O.ub>j)return un(c,7,"bad partition length");Q(I=c.m,b,C,O.ub),C+=O.ub,j-=O.ub,O.Rb&&(U.Ld=Z(I),U.Kd=Z(I)),U=c.Qa;var q,Y=c.Pa;if(e(I!=null),e(U!=null),U.Cb=Z(I),U.Cb){if(U.Bb=Z(I),Z(I)){for(U.Fb=Z(I),q=0;4>q;++q)U.Zb[q]=Z(I)?se(I,7):0;for(q=0;4>q;++q)U.Lb[q]=Z(I)?se(I,6):0}if(U.Bb)for(q=0;3>q;++q)Y.jb[q]=Z(I)?ee(I,8):255}else U.Bb=0;if(I.Ka)return un(c,3,"cannot parse segment header");if((U=c.ed).zd=Z(I),U.Tb=ee(I,6),U.wb=ee(I,3),U.Pc=Z(I),U.Pc&&Z(I)){for(Y=0;4>Y;++Y)Z(I)&&(U.vd[Y]=se(I,6));for(Y=0;4>Y;++Y)Z(I)&&(U.od[Y]=se(I,6))}if(c.L=U.Tb==0?0:U.zd?1:2,I.Ka)return un(c,3,"cannot parse filter header");var ae=j;if(j=q=C,C=q+ae,U=ae,c.Xb=(1<<ee(c.m,2))-1,ae<3*(Y=c.Xb))b=7;else{for(q+=3*Y,U-=3*Y,ae=0;ae<Y;++ae){var pe=b[j+0]|b[j+1]<<8|b[j+2]<<16;pe>U&&(pe=U),Q(c.Jc[+ae],b,q,pe),q+=pe,U-=pe,j+=3}Q(c.Jc[+Y],b,q,U),b=q<C?0:5}if(b!=0)return un(c,b,"cannot parse partitions");for(b=ee(q=c.m,7),j=Z(q)?se(q,4):0,C=Z(q)?se(q,4):0,U=Z(q)?se(q,4):0,Y=Z(q)?se(q,4):0,q=Z(q)?se(q,4):0,ae=c.Qa,pe=0;4>pe;++pe){if(ae.Cb){var ge=ae.Zb[pe];ae.Fb||(ge+=b)}else{if(0<pe){c.pb[pe]=c.pb[0];continue}ge=b}var he=c.pb[pe];he.Sc[0]=Y0[jr(ge+j,127)],he.Sc[1]=K0[jr(ge+0,127)],he.Eb[0]=2*Y0[jr(ge+C,127)],he.Eb[1]=101581*K0[jr(ge+U,127)]>>16,8>he.Eb[1]&&(he.Eb[1]=8),he.Qc[0]=Y0[jr(ge+Y,117)],he.Qc[1]=K0[jr(ge+q,127)],he.lc=ge+q}if(!O.Rb)return un(c,4,"Not a key frame.");for(Z(I),O=c.Pa,b=0;4>b;++b){for(j=0;8>j;++j)for(C=0;3>C;++C)for(U=0;11>U;++U)Y=ce(I,p7[b][j][C][U])?ee(I,8):d7[b][j][C][U],O.Wc[b][j].Yb[C][U]=Y;for(j=0;17>j;++j)O.Xc[b][j]=O.Wc[b][g7[j]]}return c.kc=Z(I),c.kc&&(c.Bd=ee(I,8)),c.cb=1}function kh(c,f,b,C,j,I,O){var U=f[j].Yb[b];for(b=0;16>j;++j){if(!ce(c,U[b+0]))return j;for(;!ce(c,U[b+1]);)if(U=f[++j].Yb[0],b=0,j==16)return 16;var q=f[j+1].Yb;if(ce(c,U[b+2])){var Y=c,ae=0;if(ce(Y,(ge=U)[(pe=b)+3]))if(ce(Y,ge[pe+6])){for(U=0,pe=2*(ae=ce(Y,ge[pe+8]))+(ge=ce(Y,ge[pe+9+ae])),ae=0,ge=u7[pe];ge[U];++U)ae+=ae+ce(Y,ge[U]);ae+=3+(8<<pe)}else ce(Y,ge[pe+7])?(ae=7+2*ce(Y,165),ae+=ce(Y,145)):ae=5+ce(Y,159);else ae=ce(Y,ge[pe+4])?3+ce(Y,ge[pe+5]):2;U=q[2]}else ae=1,U=q[1];q=O+h7[j],0>(Y=c).b&&V(Y);var pe,ge=Y.b,he=(pe=Y.Ca>>1)-(Y.I>>ge)>>31;--Y.b,Y.Ca+=he,Y.Ca|=1,Y.I-=(pe+1&he)<<ge,I[q]=((ae^he)-he)*C[(0<j)+0]}return 16}function kc(c){var f=c.rb[c.sb-1];f.la=0,f.Na=0,i(c.zc,0,0,c.zc.length),c.ja=0}function x0(c,f){if(c==null)return 0;if(f==null)return un(c,2,"NULL VP8Io parameter in VP8Decode().");if(!c.cb&&!Lh(c,f))return 0;if(e(c.cb),f.ac==null||f.ac(f)){f.ob&&(c.L=0);var b=rd[c.L];if(c.L==2?(c.yb=0,c.zb=0):(c.yb=f.v-b>>4,c.zb=f.j-b>>4,0>c.yb&&(c.yb=0),0>c.zb&&(c.zb=0)),c.Va=f.o+15+b>>4,c.Hb=f.va+15+b>>4,c.Hb>c.za&&(c.Hb=c.za),c.Va>c.Ub&&(c.Va=c.Ub),0<c.L){var C=c.ed;for(b=0;4>b;++b){var j;if(c.Qa.Cb){var I=c.Qa.Lb[b];c.Qa.Fb||(I+=C.Tb)}else I=C.Tb;for(j=0;1>=j;++j){var O=c.gd[b][j],U=I;if(C.Pc&&(U+=C.vd[0],j&&(U+=C.od[0])),0<(U=0>U?0:63<U?63:U)){var q=U;0<C.wb&&(q=4<C.wb?q>>2:q>>1)>9-C.wb&&(q=9-C.wb),1>q&&(q=1),O.dd=q,O.tc=2*U+q,O.ld=40<=U?2:15<=U?1:0}else O.tc=0;O.La=j}}}b=0}else un(c,6,"Frame setup failed"),b=c.a;if(b=b==0){if(b){c.$c=0,0<c.Aa||(c.Ic=L7);e:{b=c.Ic,C=4*(q=c.za);var Y=32*q,ae=q+1,pe=0<c.L?q*(0<c.Aa?2:1):0,ge=(c.Aa==2?2:1)*q;if((O=C+832+(j=3*(16*b+rd[c.L])/2*Y)+(I=c.Fa!=null&&0<c.Fa.length?c.Kc.c*c.Kc.i:0))!=O)b=0;else{if(O>c.Vb){if(c.Vb=0,c.Ec=o(O),c.Fc=0,c.Ec==null){b=un(c,1,"no memory during frame initialization.");break e}c.Vb=O}O=c.Ec,U=c.Fc,c.Ac=O,c.Bc=U,U+=C,c.Gd=s(Y,Ch),c.Hd=0,c.rb=s(ae+1,Nh),c.sb=1,c.wa=pe?s(pe,Xa):null,c.Y=0,c.D.Nb=0,c.D.wa=c.wa,c.D.Y=c.Y,0<c.Aa&&(c.D.Y+=q),e(!0),c.oc=O,c.pc=U,U+=832,c.ya=s(ge,Lc),c.aa=0,c.D.ya=c.ya,c.D.aa=c.aa,c.Aa==2&&(c.D.aa+=q),c.R=16*q,c.B=8*q,q=(Y=rd[c.L])*c.R,Y=Y/2*c.B,c.sa=O,c.ta=U+q,c.qa=c.sa,c.ra=c.ta+16*b*c.R+Y,c.Ha=c.qa,c.Ia=c.ra+8*b*c.B+Y,c.$c=0,U+=j,c.mb=I?O:null,c.nb=I?U:null,e(U+I<=c.Fc+c.Vb),kc(c),i(c.Ac,c.Bc,0,C),b=1}}if(b){if(f.ka=0,f.y=c.sa,f.O=c.ta,f.f=c.qa,f.N=c.ra,f.ea=c.Ha,f.Vd=c.Ia,f.fa=c.R,f.Rc=c.B,f.F=null,f.J=0,!Kh){for(b=-255;255>=b;++b)Pn[255+b]=0>b?-b:b;for(b=-1020;1020>=b;++b)wo[1020+b]=-128>b?-128:127<b?127:b;for(b=-112;112>=b;++b)Qc[112+b]=-16>b?-16:15<b?15:b;for(b=-255;510>=b;++b)pl[255+b]=0>b?0:255<b?255:b;Kh=1}hl=C0,yo=A0,Kc=Th,ur=N0,Yr=Mh,hn=Eh,dl=Ic,Yh=ta,Xc=D0,ia=Oc,oa=B0,Qo=nl,sa=Rc,fl=zh,aa=Uh,Jo=Wi,$c=go,Kr=R0,vi[0]=qi,vi[1]=P0,vi[2]=T0,vi[3]=M0,vi[4]=Ih,vi[5]=el,vi[6]=Oh,vi[7]=Mc,vi[8]=F0,vi[9]=j0,Zo[0]=jh,Zo[1]=k0,Zo[2]=po,Zo[3]=Ja,Zo[4]=Kn,Zo[5]=E0,Zo[6]=Fh,bo[0]=Ho,bo[1]=L0,bo[2]=I0,bo[3]=jc,bo[4]=ea,bo[5]=O0,bo[6]=Fc,b=1}else b=0}b&&(b=function(he,Se){for(he.M=0;he.M<he.Va;++he.M){var ve,le=he.Jc[he.M&he.Xb],ue=he.m,be=he;for(ve=0;ve<be.za;++ve){var Ae=ue,_e=be,Re=_e.Ac,Te=_e.Bc+4*ve,We=_e.zc,Me=_e.ya[_e.aa+ve];if(_e.Qa.Bb?Me.$b=ce(Ae,_e.Pa.jb[0])?2+ce(Ae,_e.Pa.jb[2]):ce(Ae,_e.Pa.jb[1]):Me.$b=0,_e.kc&&(Me.Ad=ce(Ae,_e.Bd)),Me.Za=!ce(Ae,145)+0,Me.Za){var _t=Me.Ob,Nt=0;for(_e=0;4>_e;++_e){var mt,ht=We[0+_e];for(mt=0;4>mt;++mt){ht=f7[Re[Te+mt]][ht];for(var jt=hm[ce(Ae,ht[0])];0<jt;)jt=hm[2*jt+ce(Ae,ht[jt])];ht=-jt,Re[Te+mt]=ht}r(_t,Nt,Re,Te,4),Nt+=4,We[0+_e]=ht}}else ht=ce(Ae,156)?ce(Ae,128)?1:3:ce(Ae,163)?2:0,Me.Ob[0]=ht,i(Re,Te,ht,4),i(We,0,ht,4);Me.Dd=ce(Ae,142)?ce(Ae,114)?ce(Ae,183)?1:3:2:0}if(be.m.Ka)return un(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(be=le,Ae=(ue=he).rb[ue.sb-1],Re=ue.rb[ue.sb+ue.ja],ve=ue.ya[ue.aa+ue.ja],Te=ue.kc?ve.Ad:0)Ae.la=Re.la=0,ve.Za||(Ae.Na=Re.Na=0),ve.Hc=0,ve.Gc=0,ve.ia=0;else{var Et,ot;if(Ae=Re,Re=be,Te=ue.Pa.Xc,We=ue.ya[ue.aa+ue.ja],Me=ue.pb[We.$b],_e=We.ad,_t=0,Nt=ue.rb[ue.sb-1],ht=mt=0,i(_e,_t,0,384),We.Za)var Sn=0,xr=Te[3];else{jt=o(16);var xn=Ae.Na+Nt.Na;if(xn=Jc(Re,Te[1],xn,Me.Eb,0,jt,0),Ae.Na=Nt.Na=(0<xn)+0,1<xn)hl(jt,0,_e,_t);else{var Ar=jt[0]+3>>3;for(jt=0;256>jt;jt+=16)_e[_t+jt]=Ar}Sn=1,xr=Te[0]}var Ct=15&Ae.la,Ir=15&Nt.la;for(jt=0;4>jt;++jt){var Or=1&Ir;for(Ar=ot=0;4>Ar;++Ar)Ct=Ct>>1|(Or=(xn=Jc(Re,xr,xn=Or+(1&Ct),Me.Sc,Sn,_e,_t))>Sn)<<7,ot=ot<<2|(3<xn?3:1<xn?2:_e[_t+0]!=0),_t+=16;Ct>>=4,Ir=Ir>>1|Or<<7,mt=(mt<<8|ot)>>>0}for(xr=Ct,Sn=Ir>>4,Et=0;4>Et;Et+=2){for(ot=0,Ct=Ae.la>>4+Et,Ir=Nt.la>>4+Et,jt=0;2>jt;++jt){for(Or=1&Ir,Ar=0;2>Ar;++Ar)xn=Or+(1&Ct),Ct=Ct>>1|(Or=0<(xn=Jc(Re,Te[2],xn,Me.Qc,0,_e,_t)))<<3,ot=ot<<2|(3<xn?3:1<xn?2:_e[_t+0]!=0),_t+=16;Ct>>=2,Ir=Ir>>1|Or<<5}ht|=ot<<4*Et,xr|=Ct<<4<<Et,Sn|=(240&Ir)<<Et}Ae.la=xr,Nt.la=Sn,We.Hc=mt,We.Gc=ht,We.ia=43690&ht?0:Me.ia,Te=!(mt|ht)}if(0<ue.L&&(ue.wa[ue.Y+ue.ja]=ue.gd[ve.$b][ve.Za],ue.wa[ue.Y+ue.ja].La|=!Te),be.Ka)return un(he,7,"Premature end-of-file encountered.")}if(kc(he),ue=Se,be=1,ve=(le=he).D,Ae=0<le.L&&le.M>=le.zb&&le.M<=le.Va,le.Aa==0)e:{if(ve.M=le.M,ve.uc=Ae,Vc(le,ve),be=1,ve=(ot=le.D).Nb,Ae=(ht=rd[le.L])*le.R,Re=ht/2*le.B,jt=16*ve*le.R,Ar=8*ve*le.B,Te=le.sa,We=le.ta-Ae+jt,Me=le.qa,_e=le.ra-Re+Ar,_t=le.Ha,Nt=le.Ia-Re+Ar,Ir=(Ct=ot.M)==0,mt=Ct>=le.Va-1,le.Aa==2&&Vc(le,ot),ot.uc)for(Or=(xn=le).D.M,e(xn.D.uc),ot=xn.yb;ot<xn.Hb;++ot){Sn=ot,xr=Or;var In=(Vn=(rn=xn).D).Nb;Et=rn.R;var Vn=Vn.wa[Vn.Y+Sn],hr=rn.sa,Jr=rn.ta+16*In*Et+16*Sn,Yi=Vn.dd,On=Vn.tc;if(On!=0)if(e(3<=On),rn.L==1)0<Sn&&Jo(hr,Jr,Et,On+4),Vn.La&&Kr(hr,Jr,Et,On),0<xr&&aa(hr,Jr,Et,On+4),Vn.La&&$c(hr,Jr,Et,On);else{var _o=rn.B,la=rn.qa,gl=rn.ra+8*In*_o+8*Sn,ts=rn.Ha,rn=rn.Ia+8*In*_o+8*Sn;In=Vn.ld,0<Sn&&(Yh(hr,Jr,Et,On+4,Yi,In),ia(la,gl,ts,rn,_o,On+4,Yi,In)),Vn.La&&(Qo(hr,Jr,Et,On,Yi,In),fl(la,gl,ts,rn,_o,On,Yi,In)),0<xr&&(dl(hr,Jr,Et,On+4,Yi,In),Xc(la,gl,ts,rn,_o,On+4,Yi,In)),Vn.La&&(oa(hr,Jr,Et,On,Yi,In),sa(la,gl,ts,rn,_o,On,Yi,In))}}if(le.ia&&alert("todo:DitherRow"),ue.put!=null){if(ot=16*Ct,Ct=16*(Ct+1),Ir?(ue.y=le.sa,ue.O=le.ta+jt,ue.f=le.qa,ue.N=le.ra+Ar,ue.ea=le.Ha,ue.W=le.Ia+Ar):(ot-=ht,ue.y=Te,ue.O=We,ue.f=Me,ue.N=_e,ue.ea=_t,ue.W=Nt),mt||(Ct-=ht),Ct>ue.o&&(Ct=ue.o),ue.F=null,ue.J=null,le.Fa!=null&&0<le.Fa.length&&ot<Ct&&(ue.J=zc(le,ue,ot,Ct-ot),ue.F=le.mb,ue.F==null&&ue.F.length==0)){be=un(le,3,"Could not decode alpha data.");break e}ot<ue.j&&(ht=ue.j-ot,ot=ue.j,e(!(1&ht)),ue.O+=le.R*ht,ue.N+=le.B*(ht>>1),ue.W+=le.B*(ht>>1),ue.F!=null&&(ue.J+=ue.width*ht)),ot<Ct&&(ue.O+=ue.v,ue.N+=ue.v>>1,ue.W+=ue.v>>1,ue.F!=null&&(ue.J+=ue.v),ue.ka=ot-ue.j,ue.U=ue.va-ue.v,ue.T=Ct-ot,be=ue.put(ue))}ve+1!=le.Ic||mt||(r(le.sa,le.ta-Ae,Te,We+16*le.R,Ae),r(le.qa,le.ra-Re,Me,_e+8*le.B,Re),r(le.Ha,le.Ia-Re,_t,Nt+8*le.B,Re))}if(!be)return un(he,6,"Output aborted.")}return 1}(c,f)),f.bc!=null&&f.bc(f),b&=1}return b?(c.cb=0,b):0}function pi(c,f,b,C,j){j=c[f+b+32*C]+(j>>3),c[f+b+32*C]=-256&j?0>j?0:255:j}function Qa(c,f,b,C,j,I){pi(c,f,0,b,C+j),pi(c,f,1,b,C+I),pi(c,f,2,b,C-I),pi(c,f,3,b,C-j)}function br(c){return(20091*c>>16)+c}function Ec(c,f,b,C){var j,I=0,O=o(16);for(j=0;4>j;++j){var U=c[f+0]+c[f+8],q=c[f+0]-c[f+8],Y=(35468*c[f+4]>>16)-br(c[f+12]),ae=br(c[f+4])+(35468*c[f+12]>>16);O[I+0]=U+ae,O[I+1]=q+Y,O[I+2]=q-Y,O[I+3]=U-ae,I+=4,f++}for(j=I=0;4>j;++j)U=(c=O[I+0]+4)+O[I+8],q=c-O[I+8],Y=(35468*O[I+4]>>16)-br(O[I+12]),pi(b,C,0,0,U+(ae=br(O[I+4])+(35468*O[I+12]>>16))),pi(b,C,1,0,q+Y),pi(b,C,2,0,q-Y),pi(b,C,3,0,U-ae),I++,C+=32}function Eh(c,f,b,C){var j=c[f+0]+4,I=35468*c[f+4]>>16,O=br(c[f+4]),U=35468*c[f+1]>>16;Qa(b,C,0,j+O,c=br(c[f+1]),U),Qa(b,C,1,j+I,c,U),Qa(b,C,2,j-I,c,U),Qa(b,C,3,j-O,c,U)}function A0(c,f,b,C,j){Ec(c,f,b,C),j&&Ec(c,f+16,b,C+4)}function Th(c,f,b,C){yo(c,f+0,b,C,1),yo(c,f+32,b,C+128,1)}function N0(c,f,b,C){var j;for(c=c[f+0]+4,j=0;4>j;++j)for(f=0;4>f;++f)pi(b,C,f,j,c)}function Mh(c,f,b,C){c[f+0]&&ur(c,f+0,b,C),c[f+16]&&ur(c,f+16,b,C+4),c[f+32]&&ur(c,f+32,b,C+128),c[f+48]&&ur(c,f+48,b,C+128+4)}function C0(c,f,b,C){var j,I=o(16);for(j=0;4>j;++j){var O=c[f+0+j]+c[f+12+j],U=c[f+4+j]+c[f+8+j],q=c[f+4+j]-c[f+8+j],Y=c[f+0+j]-c[f+12+j];I[0+j]=O+U,I[8+j]=O-U,I[4+j]=Y+q,I[12+j]=Y-q}for(j=0;4>j;++j)O=(c=I[0+4*j]+3)+I[3+4*j],U=I[1+4*j]+I[2+4*j],q=I[1+4*j]-I[2+4*j],Y=c-I[3+4*j],b[C+0]=O+U>>3,b[C+16]=Y+q>>3,b[C+32]=O-U>>3,b[C+48]=Y-q>>3,C+=64}function Tc(c,f,b){var C,j=f-32,I=Fr,O=255-c[j-1];for(C=0;C<b;++C){var U,q=I,Y=O+c[f-1];for(U=0;U<b;++U)c[f+U]=q[Y+c[j+U]];f+=32}}function P0(c,f){Tc(c,f,4)}function L0(c,f){Tc(c,f,8)}function k0(c,f){Tc(c,f,16)}function po(c,f){var b;for(b=0;16>b;++b)r(c,f+32*b,c,f-32,16)}function Ja(c,f){var b;for(b=16;0<b;--b)i(c,f,c[f-1],16),f+=32}function Za(c,f,b){var C;for(C=0;16>C;++C)i(f,b+32*C,c,16)}function jh(c,f){var b,C=16;for(b=0;16>b;++b)C+=c[f-1+32*b]+c[f+b-32];Za(C>>5,c,f)}function Kn(c,f){var b,C=8;for(b=0;16>b;++b)C+=c[f-1+32*b];Za(C>>4,c,f)}function E0(c,f){var b,C=8;for(b=0;16>b;++b)C+=c[f+b-32];Za(C>>4,c,f)}function Fh(c,f){Za(128,c,f)}function Ze(c,f,b){return c+2*f+b+2>>2}function T0(c,f){var b,C=f-32;for(C=new Uint8Array([Ze(c[C-1],c[C+0],c[C+1]),Ze(c[C+0],c[C+1],c[C+2]),Ze(c[C+1],c[C+2],c[C+3]),Ze(c[C+2],c[C+3],c[C+4])]),b=0;4>b;++b)r(c,f+32*b,C,0,C.length)}function M0(c,f){var b=c[f-1],C=c[f-1+32],j=c[f-1+64],I=c[f-1+96];xe(c,f+0,16843009*Ze(c[f-1-32],b,C)),xe(c,f+32,16843009*Ze(b,C,j)),xe(c,f+64,16843009*Ze(C,j,I)),xe(c,f+96,16843009*Ze(j,I,I))}function qi(c,f){var b,C=4;for(b=0;4>b;++b)C+=c[f+b-32]+c[f-1+32*b];for(C>>=3,b=0;4>b;++b)i(c,f+32*b,C,4)}function Ih(c,f){var b=c[f-1+0],C=c[f-1+32],j=c[f-1+64],I=c[f-1-32],O=c[f+0-32],U=c[f+1-32],q=c[f+2-32],Y=c[f+3-32];c[f+0+96]=Ze(C,j,c[f-1+96]),c[f+1+96]=c[f+0+64]=Ze(b,C,j),c[f+2+96]=c[f+1+64]=c[f+0+32]=Ze(I,b,C),c[f+3+96]=c[f+2+64]=c[f+1+32]=c[f+0+0]=Ze(O,I,b),c[f+3+64]=c[f+2+32]=c[f+1+0]=Ze(U,O,I),c[f+3+32]=c[f+2+0]=Ze(q,U,O),c[f+3+0]=Ze(Y,q,U)}function Oh(c,f){var b=c[f+1-32],C=c[f+2-32],j=c[f+3-32],I=c[f+4-32],O=c[f+5-32],U=c[f+6-32],q=c[f+7-32];c[f+0+0]=Ze(c[f+0-32],b,C),c[f+1+0]=c[f+0+32]=Ze(b,C,j),c[f+2+0]=c[f+1+32]=c[f+0+64]=Ze(C,j,I),c[f+3+0]=c[f+2+32]=c[f+1+64]=c[f+0+96]=Ze(j,I,O),c[f+3+32]=c[f+2+64]=c[f+1+96]=Ze(I,O,U),c[f+3+64]=c[f+2+96]=Ze(O,U,q),c[f+3+96]=Ze(U,q,q)}function el(c,f){var b=c[f-1+0],C=c[f-1+32],j=c[f-1+64],I=c[f-1-32],O=c[f+0-32],U=c[f+1-32],q=c[f+2-32],Y=c[f+3-32];c[f+0+0]=c[f+1+64]=I+O+1>>1,c[f+1+0]=c[f+2+64]=O+U+1>>1,c[f+2+0]=c[f+3+64]=U+q+1>>1,c[f+3+0]=q+Y+1>>1,c[f+0+96]=Ze(j,C,b),c[f+0+64]=Ze(C,b,I),c[f+0+32]=c[f+1+96]=Ze(b,I,O),c[f+1+32]=c[f+2+96]=Ze(I,O,U),c[f+2+32]=c[f+3+96]=Ze(O,U,q),c[f+3+32]=Ze(U,q,Y)}function Mc(c,f){var b=c[f+0-32],C=c[f+1-32],j=c[f+2-32],I=c[f+3-32],O=c[f+4-32],U=c[f+5-32],q=c[f+6-32],Y=c[f+7-32];c[f+0+0]=b+C+1>>1,c[f+1+0]=c[f+0+64]=C+j+1>>1,c[f+2+0]=c[f+1+64]=j+I+1>>1,c[f+3+0]=c[f+2+64]=I+O+1>>1,c[f+0+32]=Ze(b,C,j),c[f+1+32]=c[f+0+96]=Ze(C,j,I),c[f+2+32]=c[f+1+96]=Ze(j,I,O),c[f+3+32]=c[f+2+96]=Ze(I,O,U),c[f+3+64]=Ze(O,U,q),c[f+3+96]=Ze(U,q,Y)}function j0(c,f){var b=c[f-1+0],C=c[f-1+32],j=c[f-1+64],I=c[f-1+96];c[f+0+0]=b+C+1>>1,c[f+2+0]=c[f+0+32]=C+j+1>>1,c[f+2+32]=c[f+0+64]=j+I+1>>1,c[f+1+0]=Ze(b,C,j),c[f+3+0]=c[f+1+32]=Ze(C,j,I),c[f+3+32]=c[f+1+64]=Ze(j,I,I),c[f+3+64]=c[f+2+64]=c[f+0+96]=c[f+1+96]=c[f+2+96]=c[f+3+96]=I}function F0(c,f){var b=c[f-1+0],C=c[f-1+32],j=c[f-1+64],I=c[f-1+96],O=c[f-1-32],U=c[f+0-32],q=c[f+1-32],Y=c[f+2-32];c[f+0+0]=c[f+2+32]=b+O+1>>1,c[f+0+32]=c[f+2+64]=C+b+1>>1,c[f+0+64]=c[f+2+96]=j+C+1>>1,c[f+0+96]=I+j+1>>1,c[f+3+0]=Ze(U,q,Y),c[f+2+0]=Ze(O,U,q),c[f+1+0]=c[f+3+32]=Ze(b,O,U),c[f+1+32]=c[f+3+64]=Ze(C,b,O),c[f+1+64]=c[f+3+96]=Ze(j,C,b),c[f+1+96]=Ze(I,j,C)}function I0(c,f){var b;for(b=0;8>b;++b)r(c,f+32*b,c,f-32,8)}function jc(c,f){var b;for(b=0;8>b;++b)i(c,f,c[f-1],8),f+=32}function Zs(c,f,b){var C;for(C=0;8>C;++C)i(f,b+32*C,c,8)}function Ho(c,f){var b,C=8;for(b=0;8>b;++b)C+=c[f+b-32]+c[f-1+32*b];Zs(C>>4,c,f)}function O0(c,f){var b,C=4;for(b=0;8>b;++b)C+=c[f+b-32];Zs(C>>3,c,f)}function ea(c,f){var b,C=4;for(b=0;8>b;++b)C+=c[f-1+32*b];Zs(C>>3,c,f)}function Fc(c,f){Zs(128,c,f)}function tl(c,f,b){var C=c[f-b],j=c[f+0],I=3*(j-C)+G0[1020+c[f-2*b]-c[f+b]],O=Xh[112+(I+4>>3)];c[f-b]=Fr[255+C+Xh[112+(I+3>>3)]],c[f+0]=Fr[255+j-O]}function Rh(c,f,b,C){var j=c[f+0],I=c[f+b];return $r[255+c[f-2*b]-c[f-b]]>C||$r[255+I-j]>C}function Bh(c,f,b,C){return 4*$r[255+c[f-b]-c[f+0]]+$r[255+c[f-2*b]-c[f+b]]<=C}function Dh(c,f,b,C,j){var I=c[f-3*b],O=c[f-2*b],U=c[f-b],q=c[f+0],Y=c[f+b],ae=c[f+2*b],pe=c[f+3*b];return 4*$r[255+U-q]+$r[255+O-Y]>C?0:$r[255+c[f-4*b]-I]<=j&&$r[255+I-O]<=j&&$r[255+O-U]<=j&&$r[255+pe-ae]<=j&&$r[255+ae-Y]<=j&&$r[255+Y-q]<=j}function Uh(c,f,b,C){var j=2*C+1;for(C=0;16>C;++C)Bh(c,f+C,b,j)&&tl(c,f+C,b)}function Wi(c,f,b,C){var j=2*C+1;for(C=0;16>C;++C)Bh(c,f+C*b,1,j)&&tl(c,f+C*b,1)}function go(c,f,b,C){var j;for(j=3;0<j;--j)Uh(c,f+=4*b,b,C)}function R0(c,f,b,C){var j;for(j=3;0<j;--j)Wi(c,f+=4,b,C)}function Yo(c,f,b,C,j,I,O,U){for(I=2*I+1;0<j--;){if(Dh(c,f,b,I,O))if(Rh(c,f,b,U))tl(c,f,b);else{var q=c,Y=f,ae=b,pe=q[Y-2*ae],ge=q[Y-ae],he=q[Y+0],Se=q[Y+ae],ve=q[Y+2*ae],le=27*(be=G0[1020+3*(he-ge)+G0[1020+pe-Se]])+63>>7,ue=18*be+63>>7,be=9*be+63>>7;q[Y-3*ae]=Fr[255+q[Y-3*ae]+be],q[Y-2*ae]=Fr[255+pe+ue],q[Y-ae]=Fr[255+ge+le],q[Y+0]=Fr[255+he-le],q[Y+ae]=Fr[255+Se-ue],q[Y+2*ae]=Fr[255+ve-be]}f+=C}}function gi(c,f,b,C,j,I,O,U){for(I=2*I+1;0<j--;){if(Dh(c,f,b,I,O))if(Rh(c,f,b,U))tl(c,f,b);else{var q=c,Y=f,ae=b,pe=q[Y-ae],ge=q[Y+0],he=q[Y+ae],Se=Xh[112+((ve=3*(ge-pe))+4>>3)],ve=Xh[112+(ve+3>>3)],le=Se+1>>1;q[Y-2*ae]=Fr[255+q[Y-2*ae]+le],q[Y-ae]=Fr[255+pe+ve],q[Y+0]=Fr[255+ge-Se],q[Y+ae]=Fr[255+he-le]}f+=C}}function Ic(c,f,b,C,j,I){Yo(c,f,b,1,16,C,j,I)}function ta(c,f,b,C,j,I){Yo(c,f,1,b,16,C,j,I)}function B0(c,f,b,C,j,I){var O;for(O=3;0<O;--O)gi(c,f+=4*b,b,1,16,C,j,I)}function nl(c,f,b,C,j,I){var O;for(O=3;0<O;--O)gi(c,f+=4,1,b,16,C,j,I)}function D0(c,f,b,C,j,I,O,U){Yo(c,f,j,1,8,I,O,U),Yo(b,C,j,1,8,I,O,U)}function Oc(c,f,b,C,j,I,O,U){Yo(c,f,1,j,8,I,O,U),Yo(b,C,1,j,8,I,O,U)}function Rc(c,f,b,C,j,I,O,U){gi(c,f+4*j,j,1,8,I,O,U),gi(b,C+4*j,j,1,8,I,O,U)}function zh(c,f,b,C,j,I,O,U){gi(c,f+4,1,j,8,I,O,U),gi(b,C+4,1,j,8,I,O,U)}function rl(){this.ba=new ci,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new tn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Bc(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Dc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Gh(){this.ua=0,this.Wa=new J,this.vb=new J,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new B,this.yc=new E}function U0(){this.xb=this.a=0,this.l=new $a,this.ca=new ci,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Gh,this.ab=0,this.gc=s(4,Dc),this.Oc=0}function il(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new $a,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function na(c,f,b,C,j,I,O){for(c=c==null?0:c[f+0],f=0;f<O;++f)j[I+f]=c+b[C+f]&255,c=j[I+f]}function Uc(c,f,b,C,j,I,O){var U;if(c==null)na(null,null,b,C,j,I,O);else for(U=0;U<O;++U)j[I+U]=c[f+U]+b[C+U]&255}function Ko(c,f,b,C,j,I,O){if(c==null)na(null,null,b,C,j,I,O);else{var U,q=c[f+0],Y=q,ae=q;for(U=0;U<O;++U)Y=ae+(q=c[f+U])-Y,ae=b[C+U]+(-256&Y?0>Y?0:255:Y)&255,Y=q,j[I+U]=ae}}function zc(c,f,b,C){var j=f.width,I=f.o;if(e(c!=null&&f!=null),0>b||0>=C||b+C>I)return null;if(!c.Cc){if(c.ga==null){var O;if(c.ga=new il,(O=c.ga==null)||(O=f.width*f.o,e(c.Gb.length==0),c.Gb=o(O),c.Uc=0,c.Gb==null?O=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,O=1),O=!O),!O){O=c.ga;var U=c.Fa,q=c.P,Y=c.qc,ae=c.mb,pe=c.nb,ge=q+1,he=Y-1,Se=O.l;if(e(U!=null&&ae!=null&&f!=null),es[0]=null,es[1]=na,es[2]=Uc,es[3]=Ko,O.ca=ae,O.tb=pe,O.c=f.width,O.i=f.height,e(0<O.c&&0<O.i),1>=Y)f=0;else if(O.$a=U[q+0]>>0&3,O.Z=U[q+0]>>2&3,O.Lc=U[q+0]>>4&3,q=U[q+0]>>6&3,0>O.$a||1<O.$a||4<=O.Z||1<O.Lc||q)f=0;else if(Se.put=Di,Se.ac=zn,Se.bc=Ui,Se.ma=O,Se.width=f.width,Se.height=f.height,Se.Da=f.Da,Se.v=f.v,Se.va=f.va,Se.j=f.j,Se.o=f.o,O.$a)e:{e(O.$a==1),f=Wr();t:for(;;){if(f==null){f=0;break e}if(e(O!=null),O.mc=f,f.c=O.c,f.i=O.i,f.l=O.l,f.l.ma=O,f.l.width=O.c,f.l.height=O.i,f.a=0,K(f.m,U,ge,he),!Vi(O.c,O.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&fo(f.s)?(O.ic=1,U=f.c*f.i,f.Ta=null,f.Ua=0,f.V=o(U),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(O.ic=0,f=Js(f,O.c)),!f))break t;f=1;break e}O.mc=null,f=0}else f=he>=O.c*O.i;O=!f}if(O)return null;c.ga.Lc!=1?c.Ga=0:C=I-b}e(c.ga!=null),e(b+C<=I);e:{if(f=(U=c.ga).c,I=U.l.o,U.$a==0){if(ge=c.rc,he=c.Vc,Se=c.Fa,q=c.P+1+b*f,Y=c.mb,ae=c.nb+b*f,e(q<=c.P+c.qc),U.Z!=0)for(e(es[U.Z]!=null),O=0;O<C;++O)es[U.Z](ge,he,Se,q,Y,ae,f),ge=Y,he=ae,ae+=f,q+=f;else for(O=0;O<C;++O)r(Y,ae,Se,q,f),ge=Y,he=ae,ae+=f,q+=f;c.rc=ge,c.Vc=he}else{if(e(U.mc!=null),f=b+C,e((O=U.mc)!=null),e(f<=O.i),O.C>=f)f=1;else if(U.ic||fe(),U.ic){U=O.V,ge=O.Ba,he=O.c;var ve=O.i,le=(Se=1,q=O.$/he,Y=O.$%he,ae=O.m,pe=O.s,O.$),ue=he*ve,be=he*f,Ae=pe.wc,_e=le<be?bn(pe,Y,q):null;e(le<=ue),e(f<=ve),e(fo(pe));t:for(;;){for(;!ae.h&&le<be;){if(Y&Ae||(_e=bn(pe,Y,q)),e(_e!=null),ie(ae),256>(ve=wr(_e.G[0],_e.H[0],ae)))U[ge+le]=ve,++le,++Y>=he&&(Y=0,++q<=f&&!(q%16)&&di(O,q));else{if(!(280>ve)){Se=0;break t}ve=ui(ve-256,ae);var Re,Te=wr(_e.G[4],_e.H[4],ae);if(ie(ae),!(le>=(Te=zi(he,Te=ui(Te,ae)))&&ue-le>=ve)){Se=0;break t}for(Re=0;Re<ve;++Re)U[ge+le+Re]=U[ge+le+Re-Te];for(le+=ve,Y+=ve;Y>=he;)Y-=he,++q<=f&&!(q%16)&&di(O,q);le<be&&Y&Ae&&(_e=bn(pe,Y,q))}e(ae.h==H(ae))}di(O,q>f?f:q);break t}!Se||ae.h&&le<ue?(Se=0,O.a=ae.h?5:3):O.$=le,f=Se}else f=fi(O,O.V,O.Ba,O.c,O.i,f,Wa);if(!f){C=0;break e}}b+C>=I&&(c.Cc=1),C=1}if(!C)return null;if(c.Cc&&((C=c.ga)!=null&&(C.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+b*j}function m(c,f,b,C,j,I){for(;0<j--;){var O,U=c,q=f+(b?1:0),Y=c,ae=f+(b?0:3);for(O=0;O<C;++O){var pe=Y[ae+4*O];pe!=255&&(pe*=32897,U[q+4*O+0]=U[q+4*O+0]*pe>>23,U[q+4*O+1]=U[q+4*O+1]*pe>>23,U[q+4*O+2]=U[q+4*O+2]*pe>>23)}f+=I}}function F(c,f,b,C,j){for(;0<C--;){var I;for(I=0;I<b;++I){var O=c[f+2*I+0],U=15&(Y=c[f+2*I+1]),q=4369*U,Y=(240&Y|Y>>4)*q>>16;c[f+2*I+0]=(240&O|O>>4)*q>>16&240|(15&O|O<<4)*q>>16>>4&15,c[f+2*I+1]=240&Y|U}f+=j}}function $(c,f,b,C,j,I,O,U){var q,Y,ae=255;for(Y=0;Y<j;++Y){for(q=0;q<C;++q){var pe=c[f+q];I[O+4*q]=pe,ae&=pe}f+=b,O+=U}return ae!=255}function oe(c,f,b,C,j){var I;for(I=0;I<j;++I)b[C+I]=c[f+I]>>8}function fe(){Xr=m,Rt=F,Bt=$,dn=oe}function ye(c,f,b){k[c]=function(C,j,I,O,U,q,Y,ae,pe,ge,he,Se,ve,le,ue,be,Ae){var _e,Re=Ae-1>>1,Te=U[q+0]|Y[ae+0]<<16,We=pe[ge+0]|he[Se+0]<<16;e(C!=null);var Me=3*Te+We+131074>>2;for(f(C[j+0],255&Me,Me>>16,ve,le),I!=null&&(Me=3*We+Te+131074>>2,f(I[O+0],255&Me,Me>>16,ue,be)),_e=1;_e<=Re;++_e){var _t=U[q+_e]|Y[ae+_e]<<16,Nt=pe[ge+_e]|he[Se+_e]<<16,mt=Te+_t+We+Nt+524296,ht=mt+2*(_t+We)>>3;Me=ht+Te>>1,Te=(mt=mt+2*(Te+Nt)>>3)+_t>>1,f(C[j+2*_e-1],255&Me,Me>>16,ve,le+(2*_e-1)*b),f(C[j+2*_e-0],255&Te,Te>>16,ve,le+(2*_e-0)*b),I!=null&&(Me=mt+We>>1,Te=ht+Nt>>1,f(I[O+2*_e-1],255&Me,Me>>16,ue,be+(2*_e-1)*b),f(I[O+2*_e+0],255&Te,Te>>16,ue,be+(2*_e+0)*b)),Te=_t,We=Nt}1&Ae||(Me=3*Te+We+131074>>2,f(C[j+Ae-1],255&Me,Me>>16,ve,le+(Ae-1)*b),I!=null&&(Me=3*We+Te+131074>>2,f(I[O+Ae-1],255&Me,Me>>16,ue,be+(Ae-1)*b)))}}function Ne(){Qr[$h]=v7,Qr[Qh]=fm,Qr[lm]=y7,Qr[Jh]=pm,Qr[Zh]=gm,Qr[V0]=mm,Qr[cm]=w7,Qr[q0]=fm,Qr[W0]=pm,Qr[ed]=gm,Qr[H0]=mm}function Oe(c){return c&~b7?0>c?0:255:c>>vm}function Ve(c,f){return Oe((19077*c>>8)+(26149*f>>8)-14234)}function it(c,f,b){return Oe((19077*c>>8)-(6419*f>>8)-(13320*b>>8)+8708)}function nt(c,f){return Oe((19077*c>>8)+(33050*f>>8)-17685)}function pt(c,f,b,C,j){C[j+0]=Ve(c,b),C[j+1]=it(c,f,b),C[j+2]=nt(c,f)}function Yt(c,f,b,C,j){C[j+0]=nt(c,f),C[j+1]=it(c,f,b),C[j+2]=Ve(c,b)}function nn(c,f,b,C,j){var I=it(c,f,b);f=I<<3&224|nt(c,f)>>3,C[j+0]=248&Ve(c,b)|I>>5,C[j+1]=f}function _n(c,f,b,C,j){var I=240&nt(c,f)|15;C[j+0]=240&Ve(c,b)|it(c,f,b)>>4,C[j+1]=I}function Xn(c,f,b,C,j){C[j+0]=255,pt(c,f,b,C,j+1)}function Fn(c,f,b,C,j){Yt(c,f,b,C,j),C[j+3]=255}function mi(c,f,b,C,j){pt(c,f,b,C,j),C[j+3]=255}function jr(c,f){return 0>c?0:c>f?f:c}function Hi(c,f,b){k[c]=function(C,j,I,O,U,q,Y,ae,pe){for(var ge=ae+(-2&pe)*b;ae!=ge;)f(C[j+0],I[O+0],U[q+0],Y,ae),f(C[j+1],I[O+0],U[q+0],Y,ae+b),j+=2,++O,++q,ae+=2*b;1&pe&&f(C[j+0],I[O+0],U[q+0],Y,ae)}}function Vh(c,f,b){return b==0?c==0?f==0?6:5:f==0?4:0:b}function Gc(c,f,b,C,j){switch(c>>>30){case 3:yo(f,b,C,j,0);break;case 2:hn(f,b,C,j);break;case 1:ur(f,b,C,j)}}function Vc(c,f){var b,C,j=f.M,I=f.Nb,O=c.oc,U=c.pc+40,q=c.oc,Y=c.pc+584,ae=c.oc,pe=c.pc+600;for(b=0;16>b;++b)O[U+32*b-1]=129;for(b=0;8>b;++b)q[Y+32*b-1]=129,ae[pe+32*b-1]=129;for(0<j?O[U-1-32]=q[Y-1-32]=ae[pe-1-32]=129:(i(O,U-32-1,127,21),i(q,Y-32-1,127,9),i(ae,pe-32-1,127,9)),C=0;C<c.za;++C){var ge=f.ya[f.aa+C];if(0<C){for(b=-1;16>b;++b)r(O,U+32*b-4,O,U+32*b+12,4);for(b=-1;8>b;++b)r(q,Y+32*b-4,q,Y+32*b+4,4),r(ae,pe+32*b-4,ae,pe+32*b+4,4)}var he=c.Gd,Se=c.Hd+C,ve=ge.ad,le=ge.Hc;if(0<j&&(r(O,U-32,he[Se].y,0,16),r(q,Y-32,he[Se].f,0,8),r(ae,pe-32,he[Se].ea,0,8)),ge.Za){var ue=O,be=U-32+16;for(0<j&&(C>=c.za-1?i(ue,be,he[Se].y[15],4):r(ue,be,he[Se+1].y,0,4)),b=0;4>b;b++)ue[be+128+b]=ue[be+256+b]=ue[be+384+b]=ue[be+0+b];for(b=0;16>b;++b,le<<=2)ue=O,be=U+wm[b],vi[ge.Ob[b]](ue,be),Gc(le,ve,16*+b,ue,be)}else if(ue=Vh(C,j,ge.Ob[0]),Zo[ue](O,U),le!=0)for(b=0;16>b;++b,le<<=2)Gc(le,ve,16*+b,O,U+wm[b]);for(b=ge.Gc,ue=Vh(C,j,ge.Dd),bo[ue](q,Y),bo[ue](ae,pe),le=ve,ue=q,be=Y,255&(ge=b>>0)&&(170&ge?Kc(le,256,ue,be):Yr(le,256,ue,be)),ge=ae,le=pe,255&(b>>=8)&&(170&b?Kc(ve,320,ge,le):Yr(ve,320,ge,le)),j<c.Ub-1&&(r(he[Se].y,0,O,U+480,16),r(he[Se].f,0,q,Y+224,8),r(he[Se].ea,0,ae,pe+224,8)),b=8*I*c.B,he=c.sa,Se=c.ta+16*C+16*I*c.R,ve=c.qa,ge=c.ra+8*C+b,le=c.Ha,ue=c.Ia+8*C+b,b=0;16>b;++b)r(he,Se+b*c.R,O,U+32*b,16);for(b=0;8>b;++b)r(ve,ge+b*c.B,q,Y+32*b,8),r(le,ue+b*c.B,ae,pe+32*b,8)}}function ol(c,f,b,C,j,I,O,U,q){var Y=[0],ae=[0],pe=0,ge=q!=null?q.kd:0,he=q??new Bc;if(c==null||12>b)return 7;he.data=c,he.w=f,he.ha=b,f=[f],b=[b],he.gb=[he.gb];e:{var Se=f,ve=b,le=he.gb;if(e(c!=null),e(ve!=null),e(le!=null),le[0]=0,12<=ve[0]&&!n(c,Se[0],"RIFF")){if(n(c,Se[0]+8,"WEBP")){le=3;break e}var ue=ke(c,Se[0]+4);if(12>ue||4294967286<ue){le=3;break e}if(ge&&ue>ve[0]-8){le=7;break e}le[0]=ue,Se[0]+=12,ve[0]-=12}le=0}if(le!=0)return le;for(ue=0<he.gb[0],b=b[0];;){e:{var be=c;ve=f,le=b;var Ae=Y,_e=ae,Re=Se=[0];if((Me=pe=[pe])[0]=0,8>le[0])le=7;else{if(!n(be,ve[0],"VP8X")){if(ke(be,ve[0]+4)!=10){le=3;break e}if(18>le[0]){le=7;break e}var Te=ke(be,ve[0]+8),We=1+Ce(be,ve[0]+12);if(2147483648<=We*(be=1+Ce(be,ve[0]+15))){le=3;break e}Re!=null&&(Re[0]=Te),Ae!=null&&(Ae[0]=We),_e!=null&&(_e[0]=be),ve[0]+=18,le[0]-=18,Me[0]=1}le=0}}if(pe=pe[0],Se=Se[0],le!=0)return le;if(ve=!!(2&Se),!ue&&pe)return 3;if(I!=null&&(I[0]=!!(16&Se)),O!=null&&(O[0]=ve),U!=null&&(U[0]=0),O=Y[0],Se=ae[0],pe&&ve&&q==null){le=0;break}if(4>b){le=7;break}if(ue&&pe||!ue&&!pe&&!n(c,f[0],"ALPH")){b=[b],he.na=[he.na],he.P=[he.P],he.Sa=[he.Sa];e:{Te=c,le=f,ue=b;var Me=he.gb;Ae=he.na,_e=he.P,Re=he.Sa,We=22,e(Te!=null),e(ue!=null),be=le[0];var _t=ue[0];for(e(Ae!=null),e(Re!=null),Ae[0]=null,_e[0]=null,Re[0]=0;;){if(le[0]=be,ue[0]=_t,8>_t){le=7;break e}var Nt=ke(Te,be+4);if(4294967286<Nt){le=3;break e}var mt=8+Nt+1&-2;if(We+=mt,0<Me&&We>Me){le=3;break e}if(!n(Te,be,"VP8 ")||!n(Te,be,"VP8L")){le=0;break e}if(_t[0]<mt){le=7;break e}n(Te,be,"ALPH")||(Ae[0]=Te,_e[0]=be+8,Re[0]=Nt),be+=mt,_t-=mt}}if(b=b[0],he.na=he.na[0],he.P=he.P[0],he.Sa=he.Sa[0],le!=0)break}b=[b],he.Ja=[he.Ja],he.xa=[he.xa];e:if(Me=c,le=f,ue=b,Ae=he.gb[0],_e=he.Ja,Re=he.xa,Te=le[0],be=!n(Me,Te,"VP8 "),We=!n(Me,Te,"VP8L"),e(Me!=null),e(ue!=null),e(_e!=null),e(Re!=null),8>ue[0])le=7;else{if(be||We){if(Me=ke(Me,Te+4),12<=Ae&&Me>Ae-12){le=3;break e}if(ge&&Me>ue[0]-8){le=7;break e}_e[0]=Me,le[0]+=8,ue[0]-=8,Re[0]=We}else Re[0]=5<=ue[0]&&Me[Te+0]==47&&!(Me[Te+4]>>5),_e[0]=ue[0];le=0}if(b=b[0],he.Ja=he.Ja[0],he.xa=he.xa[0],f=f[0],le!=0)break;if(4294967286<he.Ja)return 3;if(U==null||ve||(U[0]=he.xa?2:1),O=[O],Se=[Se],he.xa){if(5>b){le=7;break}U=O,ge=Se,ve=I,c==null||5>b?c=0:5<=b&&c[f+0]==47&&!(c[f+4]>>5)?(ue=[0],Me=[0],Ae=[0],K(_e=new M,c,f,b),He(_e,ue,Me,Ae)?(U!=null&&(U[0]=ue[0]),ge!=null&&(ge[0]=Me[0]),ve!=null&&(ve[0]=Ae[0]),c=1):c=0):c=0}else{if(10>b){le=7;break}U=Se,c==null||10>b||!Ph(c,f+3,b-3)?c=0:(ge=c[f+0]|c[f+1]<<8|c[f+2]<<16,ve=16383&(c[f+7]<<8|c[f+6]),c=16383&(c[f+9]<<8|c[f+8]),1&ge||3<(ge>>1&7)||!(ge>>4&1)||ge>>5>=he.Ja||!ve||!c?c=0:(O&&(O[0]=ve),U&&(U[0]=c),c=1))}if(!c||(O=O[0],Se=Se[0],pe&&(Y[0]!=O||ae[0]!=Se)))return 3;q!=null&&(q[0]=he,q.offset=f-q.w,e(4294967286>f-q.w),e(q.offset==q.ha-b));break}return le==0||le==7&&pe&&q==null?(I!=null&&(I[0]|=he.na!=null&&0<he.na.length),C!=null&&(C[0]=O),j!=null&&(j[0]=Se),0):le}function qc(c,f,b){var C=f.width,j=f.height,I=0,O=0,U=C,q=j;if(f.Da=c!=null&&0<c.Da,f.Da&&(U=c.cd,q=c.bd,I=c.v,O=c.j,11>b||(I&=-2,O&=-2),0>I||0>O||0>=U||0>=q||I+U>C||O+q>j))return 0;if(f.v=I,f.j=O,f.va=I+U,f.o=O+q,f.U=U,f.T=q,f.da=c!=null&&0<c.da,f.da){if(!qe(U,q,b=[c.ib],I=[c.hb]))return 0;f.ib=b[0],f.hb=I[0]}return f.ob=c!=null&&c.ob,f.Kb=c==null||!c.Sd,f.da&&(f.ob=f.ib<3*C/4&&f.hb<3*j/4,f.Kb=0),1}function Wc(c){if(c==null)return 2;if(11>c.S){var f=c.f.RGBA;f.fb+=(c.height-1)*f.A,f.A=-f.A}else f=c.f.kb,c=c.height,f.O+=(c-1)*f.fa,f.fa=-f.fa,f.N+=(c-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(c-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(c-1)*f.lb,f.lb=-f.lb);return 0}function sl(c,f,b,C){if(C==null||0>=c||0>=f)return 2;if(b!=null){if(b.Da){var j=b.cd,I=b.bd,O=-2&b.v,U=-2&b.j;if(0>O||0>U||0>=j||0>=I||O+j>c||U+I>f)return 2;c=j,f=I}if(b.da){if(!qe(c,f,j=[b.ib],I=[b.hb]))return 2;c=j[0],f=I[0]}}C.width=c,C.height=f;e:{var q=C.width,Y=C.height;if(c=C.S,0>=q||0>=Y||!(c>=$h&&13>c))c=2;else{if(0>=C.Rd&&C.sd==null){O=I=j=f=0;var ae=(U=q*bm[c])*Y;if(11>c||(I=(Y+1)/2*(f=(q+1)/2),c==12&&(O=(j=q)*Y)),(Y=o(ae+2*I+O))==null){c=1;break e}C.sd=Y,11>c?((q=C.f.RGBA).eb=Y,q.fb=0,q.A=U,q.size=ae):((q=C.f.kb).y=Y,q.O=0,q.fa=U,q.Fd=ae,q.f=Y,q.N=0+ae,q.Ab=f,q.Cd=I,q.ea=Y,q.W=0+ae+I,q.Db=f,q.Ed=I,c==12&&(q.F=Y,q.J=0+ae+2*I),q.Tc=O,q.lb=j)}if(f=1,j=C.S,I=C.width,O=C.height,j>=$h&&13>j)if(11>j)c=C.f.RGBA,f&=(U=Math.abs(c.A))*(O-1)+I<=c.size,f&=U>=I*bm[j],f&=c.eb!=null;else{c=C.f.kb,U=(I+1)/2,ae=(O+1)/2,q=Math.abs(c.fa),Y=Math.abs(c.Ab);var pe=Math.abs(c.Db),ge=Math.abs(c.lb),he=ge*(O-1)+I;f&=q*(O-1)+I<=c.Fd,f&=Y*(ae-1)+U<=c.Cd,f=(f&=pe*(ae-1)+U<=c.Ed)&q>=I&Y>=U&pe>=U,f&=c.y!=null,f&=c.f!=null,f&=c.ea!=null,j==12&&(f&=ge>=I,f&=he<=c.Tc,f&=c.F!=null)}else f=0;c=f?0:2}}return c!=0||b!=null&&b.fd&&(c=Wc(C)),c}var Gn=64,al=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ll=24,cl=32,Hc=8,_r=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ee("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(c){return c},k.Predictor2=function(c,f,b){return f[b+0]},k.Predictor3=function(c,f,b){return f[b+1]},k.Predictor4=function(c,f,b){return f[b-1]},k.Predictor5=function(c,f,b){return je(je(c,f[b+1]),f[b+0])},k.Predictor6=function(c,f,b){return je(c,f[b-1])},k.Predictor7=function(c,f,b){return je(c,f[b+0])},k.Predictor8=function(c,f,b){return je(f[b-1],f[b+0])},k.Predictor9=function(c,f,b){return je(f[b+0],f[b+1])},k.Predictor10=function(c,f,b){return je(je(c,f[b-1]),je(f[b+0],f[b+1]))},k.Predictor11=function(c,f,b){var C=f[b+0];return 0>=st(C>>24&255,c>>24&255,(f=f[b-1])>>24&255)+st(C>>16&255,c>>16&255,f>>16&255)+st(C>>8&255,c>>8&255,f>>8&255)+st(255&C,255&c,255&f)?C:c},k.Predictor12=function(c,f,b){var C=f[b+0];return(Ge((c>>24&255)+(C>>24&255)-((f=f[b-1])>>24&255))<<24|Ge((c>>16&255)+(C>>16&255)-(f>>16&255))<<16|Ge((c>>8&255)+(C>>8&255)-(f>>8&255))<<8|Ge((255&c)+(255&C)-(255&f)))>>>0},k.Predictor13=function(c,f,b){var C=f[b-1];return(et((c=je(c,f[b+0]))>>24&255,C>>24&255)<<24|et(c>>16&255,C>>16&255)<<16|et(c>>8&255,C>>8&255)<<8|et(c>>0&255,C>>0&255))>>>0};var z0=k.PredictorAdd0;k.PredictorAdd1=lt,Ee("Predictor2","PredictorAdd2"),Ee("Predictor3","PredictorAdd3"),Ee("Predictor4","PredictorAdd4"),Ee("Predictor5","PredictorAdd5"),Ee("Predictor6","PredictorAdd6"),Ee("Predictor7","PredictorAdd7"),Ee("Predictor8","PredictorAdd8"),Ee("Predictor9","PredictorAdd9"),Ee("Predictor10","PredictorAdd10"),Ee("Predictor11","PredictorAdd11"),Ee("Predictor12","PredictorAdd12"),Ee("Predictor13","PredictorAdd13");var Yc=k.PredictorAdd2;ct("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),ct("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var qh,Hr=k.ColorIndexInverseTransform,ul=k.MapARGB,Wh=k.VP8LColorIndexInverseTransformAlpha,Hh=k.MapAlpha,Xo=k.VP8LPredictorsAdd=[];Xo.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var ra,Sr,cr,$o,mo,vo,hl,yo,hn,Kc,ur,Yr,dl,Yh,Xc,ia,oa,Qo,sa,fl,aa,Jo,$c,Kr,Xr,Rt,Bt,dn,Pn=o(511),wo=o(2041),Qc=o(225),pl=o(767),Kh=0,G0=wo,Xh=Qc,Fr=pl,$r=Pn,$h=0,Qh=1,lm=2,Jh=3,Zh=4,V0=5,cm=6,q0=7,W0=8,ed=9,H0=10,r7=[2,3,7],i7=[3,3,11],um=[280,256,256,256,40],o7=[0,1,1,1,0],s7=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],a7=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],l7=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],c7=8,Y0=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],K0=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Jc=null,u7=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],h7=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],hm=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],d7=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],f7=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],p7=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],g7=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Zo=[],vi=[],bo=[],m7=1,dm=2,es=[],Qr=[];ye("UpsampleRgbLinePair",pt,3),ye("UpsampleBgrLinePair",Yt,3),ye("UpsampleRgbaLinePair",mi,4),ye("UpsampleBgraLinePair",Fn,4),ye("UpsampleArgbLinePair",Xn,4),ye("UpsampleRgba4444LinePair",_n,2),ye("UpsampleRgb565LinePair",nn,2);var v7=k.UpsampleRgbLinePair,y7=k.UpsampleBgrLinePair,fm=k.UpsampleRgbaLinePair,pm=k.UpsampleBgraLinePair,gm=k.UpsampleArgbLinePair,mm=k.UpsampleRgba4444LinePair,w7=k.UpsampleRgb565LinePair,td=16,nd=1<<td-1,Zc=-227,X0=482,vm=6,b7=(256<<vm)-1,ym=0,_7=o(256),S7=o(256),x7=o(256),A7=o(256),N7=o(X0-Zc),C7=o(X0-Zc);Hi("YuvToRgbRow",pt,3),Hi("YuvToBgrRow",Yt,3),Hi("YuvToRgbaRow",mi,4),Hi("YuvToBgraRow",Fn,4),Hi("YuvToArgbRow",Xn,4),Hi("YuvToRgba4444Row",_n,2),Hi("YuvToRgb565Row",nn,2);var wm=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],rd=[0,2,8],P7=[8,7,6,4,4,2,2,2,1,1,1,1],L7=1;this.WebPDecodeRGBA=function(c,f,b,C,j){var I=Qh,O=new rl,U=new ci;O.ba=U,U.S=I,U.width=[U.width],U.height=[U.height];var q=U.width,Y=U.height,ae=new ho;if(ae==null||c==null)var pe=2;else e(ae!=null),pe=ol(c,f,b,ae.width,ae.height,ae.Pd,ae.Qd,ae.format,null);if(pe!=0?q=0:(q!=null&&(q[0]=ae.width[0]),Y!=null&&(Y[0]=ae.height[0]),q=1),q){U.width=U.width[0],U.height=U.height[0],C!=null&&(C[0]=U.width),j!=null&&(j[0]=U.height);e:{if(C=new $a,(j=new Bc).data=c,j.w=f,j.ha=b,j.kd=1,f=[0],e(j!=null),((c=ol(j.data,j.w,j.ha,null,null,null,f,null,j))==0||c==7)&&f[0]&&(c=4),(f=c)==0){if(e(O!=null),C.data=j.data,C.w=j.w+j.offset,C.ha=j.ha-j.offset,C.put=Di,C.ac=zn,C.bc=Ui,C.ma=O,j.xa){if((c=Wr())==null){O=1;break e}if(function(ge,he){var Se=[0],ve=[0],le=[0];t:for(;;){if(ge==null)return 0;if(he==null)return ge.a=2,0;if(ge.l=he,ge.a=0,K(ge.m,he.data,he.w,he.ha),!He(ge.m,Se,ve,le)){ge.a=3;break t}if(ge.xb=dm,he.width=Se[0],he.height=ve[0],!Vi(Se[0],ve[0],1,ge,null))break t;return 1}return e(ge.a!=0),0}(c,C)){if(C=(f=sl(C.width,C.height,O.Oa,O.ba))==0){t:{C=c;n:for(;;){if(C==null){C=0;break t}if(e(C.s.yc!=null),e(C.s.Ya!=null),e(0<C.s.Wb),e((b=C.l)!=null),e((j=b.ma)!=null),C.xb!=0){if(C.ca=j.ba,C.tb=j.tb,e(C.ca!=null),!qc(j.Oa,b,Jh)){C.a=2;break n}if(!Js(C,b.width)||b.da)break n;if((b.da||xt(C.ca.S))&&fe(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&fe()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!ze(C.s.vb,C.s.Wa.Xa)){C.a=1;break n}C.xb=0}if(!fi(C,C.V,C.Ba,C.c,C.i,b.o,qa))break n;j.Dc=C.Ma,C=1;break t}e(C.a!=0),C=0}C=!C}C&&(f=c.a)}else f=c.a}else{if((c=new S0)==null){O=1;break e}if(c.Fa=j.na,c.P=j.P,c.qc=j.Sa,Lh(c,C)){if((f=sl(C.width,C.height,O.Oa,O.ba))==0){if(c.Aa=0,b=O.Oa,e((j=c)!=null),b!=null){if(0<(q=0>(q=b.Md)?0:100<q?255:255*q/100)){for(Y=ae=0;4>Y;++Y)12>(pe=j.pb[Y]).lc&&(pe.ia=q*P7[0>pe.lc?0:pe.lc]>>3),ae|=pe.ia;ae&&(alert("todo:VP8InitRandom"),j.ia=1)}j.Ga=b.Id,100<j.Ga?j.Ga=100:0>j.Ga&&(j.Ga=0)}x0(c,C)||(f=c.a)}}else f=c.a}f==0&&O.Oa!=null&&O.Oa.fd&&(f=Wc(O.ba))}O=f}I=O!=0?null:11>I?U.f.RGBA.eb:U.f.kb.y}else I=null;return I};var bm=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(k,z){for(var T="",P=0;P<4;P++)T+=String.fromCharCode(k[z++]);return T}function d(k,z){return(k[z+0]<<0|k[z+1]<<8|k[z+2]<<16)>>>0}function p(k,z){return(k[z+0]<<0|k[z+1]<<8|k[z+2]<<16|k[z+3]<<24)>>>0}new l;var g=[0],h=[0],w=[],_=new l,x=t,v=function(k,z){var T={},P=0,E=!1,W=0,B=0;if(T.frames=[],!function(G,H,ne,ie){for(var V=0;V<ie;V++)if(G[H+V]!=ne.charCodeAt(V))return!0;return!1}(k,z,"RIFF",4)){var Q,ee;for(p(k,z+=4),z+=8;z<k.length;){var se=u(k,z),K=p(k,z+=4);z+=4;var te=K+(1&K);switch(se){case"VP8 ":case"VP8L":T.frames[P]===void 0&&(T.frames[P]={}),(M=T.frames[P]).src_off=E?B:z-8,M.src_size=W+K+8,P++,E&&(E=!1,W=0,B=0);break;case"VP8X":(M=T.header={}).feature_flags=k[z];var X=z+4;M.canvas_width=1+d(k,X),X+=3,M.canvas_height=1+d(k,X),X+=3;break;case"ALPH":E=!0,W=te+8,B=z-8;break;case"ANIM":(M=T.header).bgcolor=p(k,z),X=z+4,M.loop_count=(Q=k)[(ee=X)+0]<<0|Q[ee+1]<<8,X+=2;break;case"ANMF":var de,M;(M=T.frames[P]={}).offset_x=2*d(k,z),z+=3,M.offset_y=2*d(k,z),z+=3,M.width=1+d(k,z),z+=3,M.height=1+d(k,z),z+=3,M.duration=d(k,z),z+=3,de=k[z++],M.dispose=1&de,M.blend=de>>1&1}se!="ANMF"&&(z+=te)}return T}}(x,0);v.response=x,v.rgbaoutput=!0,v.dataurl=!1;var S=v.header?v.header:null,y=v.frames?v.frames:null;if(S){S.loop_counter=S.loop_count,g=[S.canvas_height],h=[S.canvas_width];for(var A=0;A<y.length&&y[A].blend!=0;A++);}var L=y[0],R=_.WebPDecodeRGBA(x,L.src_off,L.src_size,h,g);L.rgba=R,L.imgwidth=h[0],L.imgheight=g[0];for(var D=0;D<h[0]*g[0]*4;D++)w[D]=R[D];return this.width=h,this.height=g,this.data=w,this}(function(t){var e=function(){return typeof P5=="function"},n=function(g,h,w,_){var x=4,v=s;switch(_){case t.image_compression.FAST:x=1,v=o;break;case t.image_compression.MEDIUM:x=6,v=a;break;case t.image_compression.SLOW:x=9,v=l}g=r(g,h,w,v);var S=P5(g,{level:x});return t.__addimage__.arrayBufferToBinaryString(S)},r=function(g,h,w,_){for(var x,v,S,y=g.length/h,A=new Uint8Array(g.length+y),L=d(),R=0;R<y;R+=1){if(S=R*h,x=g.subarray(S,S+h),_)A.set(_(x,w,v),S+R);else{for(var D,k=L.length,z=[];D<k;D+=1)z[D]=L[D](x,w,v);var T=p(z.concat());A.set(z[T],S+R)}v=x}return A},i=function(g){var h=Array.apply([],g);return h.unshift(0),h},o=function(g,h){var w,_=[],x=g.length;_[0]=1;for(var v=0;v<x;v+=1)w=g[v-h]||0,_[v+1]=g[v]-w+256&255;return _},s=function(g,h,w){var _,x=[],v=g.length;x[0]=2;for(var S=0;S<v;S+=1)_=w&&w[S]||0,x[S+1]=g[S]-_+256&255;return x},a=function(g,h,w){var _,x,v=[],S=g.length;v[0]=3;for(var y=0;y<S;y+=1)_=g[y-h]||0,x=w&&w[y]||0,v[y+1]=g[y]+256-(_+x>>>1)&255;return v},l=function(g,h,w){var _,x,v,S,y=[],A=g.length;y[0]=4;for(var L=0;L<A;L+=1)_=g[L-h]||0,x=w&&w[L]||0,v=w&&w[L-h]||0,S=u(_,x,v),y[L+1]=g[L]-S+256&255;return y},u=function(g,h,w){if(g===h&&h===w)return g;var _=Math.abs(h-w),x=Math.abs(g-w),v=Math.abs(g+h-w-w);return _<=x&&_<=v?g:x<=v?h:w},d=function(){return[i,o,s,a,l]},p=function(g){var h=g.map(function(w){return w.reduce(function(_,x){return _+Math.abs(x)},0)});return h.indexOf(Math.min.apply(null,h))};t.processPNG=function(g,h,w,_){var x,v,S,y,A,L,R,D,k,z,T,P,E,W,B,Q=this.decode.FLATE_DECODE,ee="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(S=new fF(g)).imgData,v=S.bits,x=S.colorSpace,A=S.colors,[4,6].indexOf(S.colorType)!==-1){if(S.bits===8){k=(D=S.pixelBitlength==32?new Uint32Array(S.decodePixels().buffer):S.pixelBitlength==16?new Uint16Array(S.decodePixels().buffer):new Uint8Array(S.decodePixels().buffer)).length,T=new Uint8Array(k*S.colors),z=new Uint8Array(k);var se,K=S.pixelBitlength-S.bits;for(W=0,B=0;W<k;W++){for(E=D[W],se=0;se<K;)T[B++]=E>>>se&255,se+=S.bits;z[W]=E>>>se&255}}if(S.bits===16){k=(D=new Uint32Array(S.decodePixels().buffer)).length,T=new Uint8Array(k*(32/S.pixelBitlength)*S.colors),z=new Uint8Array(k*(32/S.pixelBitlength)),P=S.colors>1,W=0,B=0;for(var te=0;W<k;)E=D[W++],T[B++]=E>>>0&255,P&&(T[B++]=E>>>16&255,E=D[W++],T[B++]=E>>>0&255),z[te++]=E>>>16&255;v=8}_!==t.image_compression.NONE&&e()?(g=n(T,S.width*S.colors,S.colors,_),R=n(z,S.width,1,_)):(g=T,R=z,Q=void 0)}if(S.colorType===3&&(x=this.color_spaces.INDEXED,L=S.palette,S.transparency.indexed)){var X=S.transparency.indexed,de=0;for(W=0,k=X.length;W<k;++W)de+=X[W];if((de/=255)===k-1&&X.indexOf(0)!==-1)y=[X.indexOf(0)];else if(de!==k){for(D=S.decodePixels(),z=new Uint8Array(D.length),W=0,k=D.length;W<k;W++)z[W]=X[D[W]];R=n(z,S.width,1)}}var M=function(G){var H;switch(G){case t.image_compression.FAST:H=11;break;case t.image_compression.MEDIUM:H=13;break;case t.image_compression.SLOW:H=14;break;default:H=12}return H}(_);return Q===this.decode.FLATE_DECODE&&(ee="/Predictor "+M+" "),ee+="/Colors "+A+" /BitsPerComponent "+v+" /Columns "+S.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(R&&this.__addimage__.isArrayBuffer(R)||this.__addimage__.isArrayBufferView(R))&&(R=this.__addimage__.arrayBufferToBinaryString(R)),{alias:w,data:g,index:h,filter:Q,decodeParameters:ee,transparency:y,palette:L,sMask:R,predictor:M,width:S.width,height:S.height,bitsPerComponent:v,colorSpace:x}}}})(Ye.API),function(t){t.processGIF89A=function(e,n,r,i){var o=new pF(e),s=o.width,a=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:s,height:a},d=new o2(100).encode(u,100);return t.processJPEG.call(this,d,n,r,i)},t.processGIF87A=t.processGIF89A}(Ye.API),Ai.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ai.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(n){Ft.log("bit decode error:"+n)}},Ai.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[o>>7-a&1];this.data[s+4*a]=l.blue,this.data[s+4*a+1]=l.green,this.data[s+4*a+2]=l.red,this.data[s+4*a+3]=255}n!==0&&(this.pos+=4-n)}},Ai.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=o>>4,l=15&o,u=this.palette[a];if(this.data[s]=u.blue,this.data[s+1]=u.green,this.data[s+2]=u.red,this.data[s+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[s+4]=u.blue,this.data[s+4+1]=u.green,this.data[s+4+2]=u.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},Ai.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}t!==0&&(this.pos+=4-t)}},Ai.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,a=(o>>5&e)/e*255|0,l=(o>>10&e)/e*255|0,u=o>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=a,this.data[d+2]=s,this.data[d+3]=u}this.pos+=t}},Ai.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&e)/e*255|0,l=(s>>5&n)/n*255|0,u=(s>>11)/e*255|0,d=i*this.width*4+4*o;this.data[d]=u,this.data[d+1]=l,this.data[d+2]=a,this.data[d+3]=255}this.pos+=t}},Ai.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Ai.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},Ai.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var o=new Ai(e,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},u=new o2(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Ye.API),O4.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var o=new O4(e),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},u=new o2(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Ye.API),Ye.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,l=0,u=0;u<i;u+=4){var d=r[u],p=r[u+1],g=r[u+2],h=r[u+3];o[a++]=d,o[a++]=p,o[a++]=g,s[l++]=h}var w=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ye.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Pl=Ye.API,qd=Pl.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),a=e.widths?e.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,p=e.doKerning!==!1,g=0,h=t.length,w=0,_=a[0]||l,x=[];for(n=0;n<h;n++)r=t.charCodeAt(n),typeof i.metadata.widthOfString=="function"?x.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(g=p&&Pt(u[r])==="object"&&!isNaN(parseInt(u[r][w],10))?u[r][w]/d:0,x.push((a[r]||_)/l+g)),w=r;return x},M4=Pl.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Pl.processArabic&&(t=Pl.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,n,i)/n:qd.apply(this,arguments).reduce(function(o,s){return o+s},0)},j4=function(t,e,n,r){for(var i=[],o=0,s=t.length,a=0;o!==s&&a+e[o]<n;)a+=e[o],o++;i.push(t.slice(0,o));var l=o;for(a=0;o!==s;)a+e[o]>r&&(i.push(t.slice(l,o)),a=0,l=o),a+=e[o],o++;return l!==o&&i.push(t.slice(l,o)),i},F4=function(t,e,n){n||(n={});var r,i,o,s,a,l,u,d=[],p=[d],g=n.textIndent||0,h=0,w=0,_=t.split(" "),x=qd.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?_[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),S=[];_.map(function(A){(A=A.split(/\s*\n/)).length>1?S=S.concat(A.map(function(L,R){return(R&&L.length?`
+`:"")+L})):S.push(A[0])}),_=S,l=M4.apply(this,[v,n])}for(o=0,s=_.length;o<s;o++){var y=0;if(r=_[o],l&&r[0]==`
+`&&(r=r.substr(1),y=1),g+h+(w=(i=qd.apply(this,[r,n])).reduce(function(A,L){return A+L},0))>e||y){if(w>e){for(a=j4.apply(this,[r,i,e-(g+h),e]),d.push(a.shift()),d=[a.pop()];a.length;)p.push([a.shift()]);w=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(A,L){return A+L},0)}else d=[r];p.push(d),g=w+l,h=x}else d.push(r),g+=h+w,h=x}return u=l?function(A,L){return(L?v:"")+A.join(" ")}:function(A){return A.join(" ")},p.map(u)},Pl.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var p=this.internal.getFont(d.fontName,d.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var a,l,u=[];for(a=0,l=r.length;a<l;a++)u=u.concat(F4.apply(this,[r[a],s,o]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},i=0;i<e.length;i++)n[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var o=function(p){return"0x"+parseInt(p,10).toString(16)},s=t.__fontmetrics__.compress=function(p){var g,h,w,_,x=["{"];for(var v in p){if(g=p[v],isNaN(parseInt(v,10))?h="'"+v+"'":(v=parseInt(v,10),h=(h=o(v).slice(2)).slice(0,-1)+r[h.slice(-1)]),typeof g=="number")g<0?(w=o(g).slice(3),_="-"):(w=o(g).slice(2),_=""),w=_+w.slice(0,-1)+r[w.slice(-1)];else{if(Pt(g)!=="object")throw new Error("Don't know what to do with value type "+Pt(g)+".");w=s(g)}x.push(h+w)}return x.push("}"),x.join("")},a=t.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,h,w,_,x={},v=1,S=x,y=[],A="",L="",R=p.length-1,D=1;D<R;D+=1)(_=p[D])=="'"?g?(w=g.join(""),g=void 0):g=[]:g?g.push(_):_=="{"?(y.push([S,w]),S={},w=void 0):_=="}"?((h=y.pop())[0][h[1]]=S,w=void 0,S=h[0]):_=="-"?v=-1:w===void 0?n.hasOwnProperty(_)?(A+=n[_],w=parseInt(A,16)*v,v=1,A=""):A+=_:n.hasOwnProperty(_)?(L+=n[_],S[w]=parseInt(L,16)*v,v=1,w=void 0,L=""):L+=_;return x},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(p){var g=p.font,h=d.Unicode[g.postScriptName];h&&(g.metadata.Unicode={},g.metadata.Unicode.widths=h.widths,g.metadata.Unicode.kerning=h.kerning);var w=u.Unicode[g.postScriptName];w&&(g.metadata.Unicode.encoding=w,g.encoding=w.codePages[0])}])}(Ye.API),function(t){var e=function(n){for(var r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);return i};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=o.existsFileInVFS(i.postScriptName)===!1?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?e(a):e(Bu(a)),s.metadata=t.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])}(Ye),function(t){function e(){return(Ke.canvg?Promise.resolve(Ke.canvg):S5(()=>import("./index.es-CFQgUN49.js"),[])).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Ye.API.addSvgAsImage=function(n,r,i,o,s,a,l,u){if(isNaN(r)||isNaN(i))throw Ft.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(s))throw Ft.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var d=document.createElement("canvas");d.width=o,d.height=s;var p=d.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,d.width,d.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return e().then(function(w){return w.fromString(p,n,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(g)}).then(function(){h.addImage(d.toDataURL("image/jpeg",1),r,i,o,s,l,u)})}}(),Ye.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},Ye.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],u=0,d=0,p=0;function g(w,_){var x,v=!1;for(x=0;x<w.length;x+=1)w[x]===_&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var h=a.length;for(p=0;p<h;p+=1)n[a[p]].value=n[a[p]].defaultValue,n[a[p]].explicitSet=!1}if(Pt(t)==="object"){for(i in t)if(o=t[i],g(a,i)&&o!==void 0){if(n[i].type==="boolean"&&typeof o=="boolean")n[i].value=o;else if(n[i].type==="name"&&g(n[i].valueSet,o))n[i].value=o;else if(n[i].type==="integer"&&Number.isInteger(o))n[i].value=o;else if(n[i].type==="array"){for(u=0;u<o.length;u+=1)if(r=!0,o[u].length===1&&typeof o[u][0]=="number")l.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!="number"&&(r=!1);r===!0&&l.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,_=[];for(w in n)n[w].explicitSet===!0&&(n[w].type==="name"?_.push("/"+w+" /"+n[w].value):_.push("/"+w+" "+n[w].value));_.length!==0&&this.internal.write(`/ViewerPreferences
+<<
+`+_.join(`
+`)+`
+>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),u=o.length+s.length+a.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(i+o+s+a+l),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Ye.API),function(t){var e=t.API,n=e.pdfEscape16=function(o,s){for(var a,l=s.metadata.Unicode.widths,u=["","0","00","000","0000"],d=[""],p=0,g=o.length;p<g;++p){if(a=s.metadata.characterToGlyph(o.charCodeAt(p)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=o.charCodeAt(p),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return d.join("");a=a.toString(16),d.push(u[4-a.length],a)}return d.join("")},r=function(o){var s,a,l,u,d,p,g;for(d=`/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+/CMapName /Adobe-Identity-UCS def
+/CMapType 2 def
+1 begincodespacerange
+<0000><ffff>
+endcodespacerange`,l=[],p=0,g=(a=Object.keys(o).sort(function(h,w){return h-w})).length;p<g;p++)s=a[p],l.length>=100&&(d+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar`,l=[]),o[s]!==void 0&&o[s]!==null&&typeof o[s].toString=="function"&&(u=("0000"+o[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),l.push("<"+s+"><"+u+">"));return l.length&&(d+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar
+`),d+=`endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end`};e.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,u=s.newObject,d=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="Identity-H"){for(var p=a.metadata.Unicode.widths,g=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),h="",w=0;w<g.length;w++)h+=String.fromCharCode(g[w]);var _=u();d({data:h,addLength1:!0,objectId:_}),l("endobj");var x=u();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:x}),l("endobj");var v=u();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+El(a.fontName)),l("/FontFile2 "+_+" 0 R"),l("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var S=u();l("<<"),l("/Type /Font"),l("/BaseFont /"+El(a.fontName)),l("/FontDescriptor "+v+" 0 R"),l("/W "+t.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=u(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+x+" 0 R"),l("/BaseFont /"+El(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+S+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,u=s.newObject,d=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var p=a.metadata.rawData,g="",h=0;h<p.length;h++)g+=String.fromCharCode(p[h]);var w=u();d({data:g,addLength1:!0,objectId:w}),l("endobj");var _=u();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:_}),l("endobj");var x=u();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+w+" 0 R"),l("/Flags 96"),l("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+El(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=u();for(var v=0;v<a.metadata.hmtx.widths.length;v++)a.metadata.hmtx.widths[v]=parseInt(a.metadata.hmtx.widths[v]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+_+" 0 R/BaseFont/"+El(a.fontName)+"/FontDescriptor "+x+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]);var i=function(o){var s,a=o.text||"",l=o.x,u=o.y,d=o.options||{},p=o.mutex||{},g=p.pdfEscape,h=p.activeFontKey,w=p.fonts,_=h,x="",v=0,S="",y=w[_].encoding;if(w[_].encoding!=="Identity-H")return{text:a,x:l,y:u,options:d,mutex:p};for(S=a,_=h,Array.isArray(a)&&(S=a[0]),v=0;v<S.length;v+=1)w[_].metadata.hasOwnProperty("cmap")&&(s=w[_].metadata.cmap.unicode.codeMap[S[v].charCodeAt(0)]),s||S[v].charCodeAt(0)<256&&w[_].metadata.hasOwnProperty("Unicode")?x+=S[v]:x+="";var A="";return parseInt(_.slice(1))<14||y==="WinAnsiEncoding"?A=g(x,_).split("").map(function(L){return L.charCodeAt(0).toString(16)}).join(""):y==="Identity-H"&&(A=n(x,w[_])),p.isHex=!0,{text:A,x:l,y:u,options:d,mutex:p}};e.events.push(["postProcessText",function(o){var s=o.text||"",a=[],l={text:s,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(s)){var u=0;for(u=0;u<s.length;u+=1)Array.isArray(s[u])&&s[u].length===3?a.push([i(Object.assign({},l,{text:s[u][0]})).text,s[u][1],s[u][2]]):a.push(i(Object.assign({},l,{text:s[u]})).text);o.text=a}else o.text=i(Object.assign({},l,{text:s})).text}])}(Ye),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0},t.addFileToVFS=function(n,r){return e.call(this),this.internal.vFS[n]=r,this},t.getFileFromVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Ye.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var i,o,s,a,l,u,d,p=e,g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},_={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},x=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),S=!1,y=0;this.__bidiEngine__={};var A=function(P){var E=P.charCodeAt(),W=E>>8,B=_[W];return B!==void 0?p[256*B+(255&E)]:W===252||W===253?"AL":v.test(W)?"L":W===8?"R":"N"},L=function(P){for(var E,W=0;W<P.length;W++){if((E=A(P.charAt(W)))==="L")return!1;if(E==="R")return!0}return!1},R=function(P,E,W,B){var Q,ee,se,K,te=E[B];switch(te){case"L":case"R":S=!1;break;case"N":case"AN":break;case"EN":S&&(te="AN");break;case"AL":S=!0,te="R";break;case"WS":te="N";break;case"CS":B<1||B+1>=E.length||(Q=W[B-1])!=="EN"&&Q!=="AN"||(ee=E[B+1])!=="EN"&&ee!=="AN"?te="N":S&&(ee="AN"),te=ee===Q?ee:"N";break;case"ES":te=(Q=B>0?W[B-1]:"B")==="EN"&&B+1<E.length&&E[B+1]==="EN"?"EN":"N";break;case"ET":if(B>0&&W[B-1]==="EN"){te="EN";break}if(S){te="N";break}for(se=B+1,K=E.length;se<K&&E[se]==="ET";)se++;te=se<K&&E[se]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(K=E.length,se=B+1;se<K&&E[se]==="NSM";)se++;if(se<K){var X=P[B],de=X>=1425&&X<=2303||X===64286;if(Q=E[se],de&&(Q==="R"||Q==="AL")){te="R";break}}}te=B<1||(Q=E[B-1])==="B"?"N":W[B-1];break;case"B":S=!1,i=!0,te=y;break;case"S":o=!0,te="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"BN":te="N"}return te},D=function(P,E,W){var B=P.split("");return W&&k(B,W,{hiLevel:y}),B.reverse(),E&&E.reverse(),B.join("")},k=function(P,E,W){var B,Q,ee,se,K,te=-1,X=P.length,de=0,M=[],G=y?h:g,H=[];for(S=!1,i=!1,o=!1,Q=0;Q<X;Q++)H[Q]=A(P[Q]);for(ee=0;ee<X;ee++){if(K=de,M[ee]=R(P,H,M,ee),B=240&(de=G[K][w[M[ee]]]),de&=15,E[ee]=se=G[de][5],B>0)if(B===16){for(Q=te;Q<ee;Q++)E[Q]=1;te=-1}else te=-1;if(G[de][6])te===-1&&(te=ee);else if(te>-1){for(Q=te;Q<ee;Q++)E[Q]=se;te=-1}H[ee]==="B"&&(E[ee]=0),W.hiLevel|=se}o&&function(ne,ie,V){for(var Z=0;Z<V;Z++)if(ne[Z]==="S"){ie[Z]=y;for(var ce=Z-1;ce>=0&&ne[ce]==="WS";ce--)ie[ce]=y}}(H,E,X)},z=function(P,E,W,B,Q){if(!(Q.hiLevel<P)){if(P===1&&y===1&&!i)return E.reverse(),void(W&&W.reverse());for(var ee,se,K,te,X=E.length,de=0;de<X;){if(B[de]>=P){for(K=de+1;K<X&&B[K]>=P;)K++;for(te=de,se=K-1;te<se;te++,se--)ee=E[te],E[te]=E[se],E[se]=ee,W&&(ee=W[te],W[te]=W[se],W[se]=ee);de=K}de++}}},T=function(P,E,W){var B=P.split(""),Q={hiLevel:y};return W||(W=[]),k(B,W,Q),function(ee,se,K){if(K.hiLevel!==0&&d)for(var te,X=0;X<ee.length;X++)se[X]===1&&(te=x.indexOf(ee[X]))>=0&&(ee[X]=x[te+1])}(B,W,Q),z(2,B,E,W,Q),z(1,B,E,W,Q),B.join("")};return this.__bidiEngine__.doBidiReorder=function(P,E,W){if(function(Q,ee){if(ee)for(var se=0;se<Q.length;se++)ee[se]=se;a===void 0&&(a=L(Q)),u===void 0&&(u=L(Q))}(P,E),s||!l||u)if(s&&l&&a^u)y=a?1:0,P=D(P,E,W);else if(!s&&l&&u)y=a?1:0,P=T(P,E,W),P=D(P,E);else if(!s||a||l||u){if(s&&!l&&a^u)P=D(P,E),a?(y=0,P=T(P,E,W)):(y=1,P=T(P,E,W),P=D(P,E));else if(s&&a&&!l&&u)y=1,P=T(P,E,W),P=D(P,E);else if(!s&&!l&&a^u){var B=d;a?(y=1,P=T(P,E,W),y=0,d=!1,P=T(P,E,W),d=B):(y=0,P=T(P,E,W),P=D(P,E),y=1,d=!1,P=T(P,E,W),d=B,P=D(P,E))}}else y=0,P=T(P,E,W);else y=a?1:0,P=T(P,E,W);return P},this.__bidiEngine__.setOptions=function(P){P&&(s=P.isInputVisual,l=P.isOutputVisual,a=P.isInputRtl,u=P.isOutputRtl,d=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var i=r.text,o=(r.x,r.y,r.options||{}),s=(r.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.setOptions(o),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(s=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?s.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):s.push([n.doBidiReorder(i[a])]);r.text=s}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(Ye),Ye.API.TTFFont=function(){function t(e){var n;if(this.rawData=e,n=this.contents=new Bs(e),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new kF(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new gF(this.contents),this.head=new vF(this),this.name=new SF(this),this.cmap=new $w(this),this.toUnicode={},this.hhea=new yF(this),this.maxp=new xF(this),this.hmtx=new AF(this),this.post=new bF(this),this.os2=new wF(this),this.loca=new LF(this),this.glyf=new NF(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,n,r,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,l,u;for(u=[],s=0,a=(l=this.bbox).length;s<a;s++)e=l[s],u.push(Math.round(e*this.scaleFactor));return u}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var n;return((n=this.cmap.unicode)!=null?n.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*n},t.prototype.widthOfString=function(e,n,r){var i,o,s,a;for(s=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)i=e.charCodeAt(o),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return s*(n/1e3)},t.prototype.lineHeight=function(e,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t}();var Ri,Bs=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var n,r;for(r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var n,r,i;for(i=[],n=0,r=e.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(e.charCodeAt(n)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,n,r,i,o,s,a,l;return e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),l=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^o)+65536*(255^s)+256*(255^a)+(255^l)+1):72057594037927940*e+281474976710656*n+1099511627776*r+4294967296*i+16777216*o+65536*s+256*a+l},t.prototype.writeLongLong=function(e){var n,r;return n=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var n,r;for(n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push(this.readByte());return n},t.prototype.write=function(e){var n,r,i,o;for(o=[],r=0,i=e.length;r<i;r++)n=e[r],o.push(this.writeByte(n));return o},t}(),gF=function(){var t;function e(n){var r,i,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(n){var r,i,o,s,a,l,u,d,p,g,h,w,_;for(_ in h=Object.keys(n).length,l=Math.log(2),p=16*Math.floor(Math.log(h)/l),s=Math.floor(p/l),d=16*h-p,(i=new Bs).writeInt(this.scalarType),i.writeShort(h),i.writeShort(p),i.writeShort(s),i.writeShort(d),o=16*h,u=i.pos+o,a=null,w=[],n)for(g=n[_],i.writeString(_),i.writeInt(t(g)),i.writeInt(u),i.writeInt(g.length),w=w.concat(g),_==="head"&&(a=u),u+=g.length;u%4;)w.push(0),u++;return i.write(w),r=2981146554-t(i.data),i.pos=a+8,i.writeUInt32(r),i.data},t=function(n){var r,i,o,s;for(n=Qw.call(n);n.length%4;)n.push(0);for(o=new Bs(n),i=0,r=0,s=n.length;r<s;r=r+=4)i+=o.readUInt32();return 4294967295&i},e}(),mF={}.hasOwnProperty,uo=function(t,e){for(var n in e)mF.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};Ri=function(){function t(e){var n;this.file=e,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var vF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="head",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},e.prototype.encode=function(n){var r;return(r=new Bs).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(n),r.writeShort(this.glyphDataFormat),r.data},e}(),R4=function(){function t(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,x,v,S,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=n+e.readInt(),p=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=e.readByte();break;case 4:for(h=e.readUInt16(),g=h/2,e.pos+=6,o=function(){var A,L;for(L=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)L.push(e.readUInt16());return L}(),e.pos+=2,_=function(){var A,L;for(L=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)L.push(e.readUInt16());return L}(),u=function(){var A,L;for(L=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)L.push(e.readUInt16());return L}(),d=function(){var A,L;for(L=[],l=A=0;0<=g?A<g:A>g;l=0<=g?++A:--A)L.push(e.readUInt16());return L}(),i=(this.length-e.pos+this.offset)/2,a=function(){var A,L;for(L=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)L.push(e.readUInt16());return L}(),l=v=0,y=o.length;v<y;l=++v)for(x=o[l],r=S=w=_[l];w<=x?S<=x:S>=x;r=w<=x?++S:--S)d[l]===0?s=r+u[l]:(s=a[d[l]/2+(r-w)-(g-l)]||0)!==0&&(s+=u[l]),this.codeMap[r]=65535&s}e.pos=p}return t.encode=function(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,x,v,S,y,A,L,R,D,k,z,T,P,E,W,B,Q,ee,se,K,te,X,de,M,G,H,ne,ie,V,Z,ce,xe,we,Ce;switch(B=new Bs,s=Object.keys(e).sort(function(ke,ze){return ke-ze}),n){case"macroman":for(_=0,x=function(){var ke=[];for(w=0;w<256;++w)ke.push(0);return ke}(),S={0:0},o={},Q=0,te=s.length;Q<te;Q++)S[ce=e[i=s[Q]]]==null&&(S[ce]=++_),o[i]={old:e[i],new:S[e[i]]},x[i]=S[e[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(x),{charMap:o,subtable:B.data,maxGlyphID:_+1};case"unicode":for(E=[],p=[],y=0,S={},r={},v=u=null,ee=0,X=s.length;ee<X;ee++)S[L=e[i=s[ee]]]==null&&(S[L]=++y),r[i]={old:L,new:S[L]},a=S[L]-i,v!=null&&a===u||(v&&p.push(v),E.push(i),u=a),v=i;for(v&&p.push(v),p.push(65535),E.push(65535),T=2*(z=E.length),k=2*Math.pow(Math.log(z)/Math.LN2,2),g=Math.log(k/2)/Math.LN2,D=2*z-k,l=[],R=[],h=[],w=se=0,de=E.length;se<de;w=++se){if(P=E[w],d=p[w],P===65535){l.push(0),R.push(0);break}if(P-(W=r[P].new)>=32768)for(l.push(0),R.push(2*(h.length+z-w)),i=K=P;P<=d?K<=d:K>=d;i=P<=d?++K:--K)h.push(r[i].new);else l.push(W-P),R.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*z+2*h.length),B.writeUInt16(0),B.writeUInt16(T),B.writeUInt16(k),B.writeUInt16(g),B.writeUInt16(D),V=0,M=p.length;V<M;V++)i=p[V],B.writeUInt16(i);for(B.writeUInt16(0),Z=0,G=E.length;Z<G;Z++)i=E[Z],B.writeUInt16(i);for(xe=0,H=l.length;xe<H;xe++)a=l[xe],B.writeUInt16(a);for(we=0,ne=R.length;we<ne;we++)A=R[we],B.writeUInt16(A);for(Ce=0,ie=h.length;Ce<ie;Ce++)_=h[Ce],B.writeUInt16(_);return{charMap:r,subtable:B.data,maxGlyphID:y+1}}},t}(),$w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="cmap",e.prototype.parse=function(n){var r,i,o;for(n.pos=this.offset,this.version=n.readUInt16(),o=n.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)r=new R4(n,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(n,r){var i,o;return r==null&&(r="macroman"),i=R4.encode(n,r),(o=new Bs).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},e}(),yF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="hhea",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},e}(),wF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="OS/2",e.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(n.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(n.readInt());return i}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(n.readInt());return i}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e}(),bF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="post",e.prototype.parse=function(n){var r,i,o;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var s;for(i=n.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],o=[];n.pos<this.offset+this.length;)r=n.readByte(),o.push(this.names.push(n.readString(r)));return o;case 151552:return i=n.readUInt16(),this.offsets=n.read(i);case 196608:break;case 262144:return this.map=(function(){var a,l,u;for(u=[],s=a=0,l=this.file.maxp.numGlyphs;0<=l?a<l:a>l;s=0<=l?++a:--a)u.push(n.readUInt32());return u}).call(this)}},e}(),_F=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},SF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="name",e.prototype.parse=function(n){var r,i,o,s,a,l,u,d,p,g,h;for(n.pos=this.offset,n.readShort(),r=n.readShort(),l=n.readShort(),i=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(u={},s=p=0,g=i.length;p<g;s=++p)o=i[s],n.pos=o.offset,d=n.readString(o.length),a=new _F(d,o),u[h=o.nameID]==null&&(u[h]=[]),u[o.nameID].push(a);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},e}(),xF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="maxp",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},e}(),AF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="hmtx",e.prototype.parse=function(n){var r,i,o,s,a,l,u;for(n.pos=this.offset,this.metrics=[],r=0,l=this.file.hhea.numberOfMetrics;0<=l?r<l:r>l;r=0<=l?++r:--r)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,p;for(p=[],r=d=0;0<=o?d<o:d>o;r=0<=o?++d:--d)p.push(n.readInt16());return p}(),this.widths=(function(){var d,p,g,h;for(h=[],d=0,p=(g=this.metrics).length;d<p;d++)s=g[d],h.push(s.advance);return h}).call(this),i=this.widths[this.widths.length-1],u=[],r=a=0;0<=o?a<o:a>o;r=0<=o?++a:--a)u.push(this.widths.push(i));return u},e.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},e}(),Qw=[].slice,NF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var r,i,o,s,a,l,u,d,p,g;return n in this.cache?this.cache[n]:(s=this.file.loca,r=this.file.contents,i=s.indexOf(n),(o=s.lengthOf(n))===0?this.cache[n]=null:(r.pos=this.offset+i,a=(l=new Bs(r.read(o))).readShort(),d=l.readShort(),g=l.readShort(),u=l.readShort(),p=l.readShort(),this.cache[n]=a===-1?new PF(l,d,g,u,p):new CF(l,a,d,g,u,p),this.cache[n]))},e.prototype.encode=function(n,r,i){var o,s,a,l,u;for(a=[],s=[],l=0,u=r.length;l<u;l++)o=n[r[l]],s.push(a.length),o&&(a=a.concat(o.encode(i)));return s.push(a.length),{table:a,offsets:s}},e}(),CF=function(){function t(e,n,r,i,o,s){this.raw=e,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=o,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),PF=function(){function t(e,n,r,i,o){var s,a;for(this.raw=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return t.prototype.encode=function(){var e,n,r;for(n=new Bs(Qw.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)n.pos=this.glyphOffsets[e];return n.data},t}(),LF=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return uo(e,Ri),e.prototype.tag="loca",e.prototype.parse=function(n){var r,i;return n.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=2)s.push(2*n.readUInt16());return s}).call(this):(function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=4)s.push(n.readUInt32());return s}).call(this)},e.prototype.indexOf=function(n){return this.offsets[n]},e.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},e.prototype.encode=function(n,r){for(var i=new Uint32Array(this.offsets.length),o=0,s=0,a=0;a<i.length;++a)if(i[a]=o,s<r.length&&r[s]==a){++s,i[a]=o;var l=this.offsets[a],u=this.offsets[a+1]-l;u>0&&(o+=u)}for(var d=new Array(4*i.length),p=0;p<i.length;++p)d[4*p+3]=255&i[p],d[4*p+2]=(65280&i[p])>>8,d[4*p+1]=(16711680&i[p])>>16,d[4*p]=(4278190080&i[p])>>24;return d},e}(),kF=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,n,r,i,o;for(n in i=this.font.cmap.tables[0].codeMap,e={},o=this.subset)r=o[n],e[n]=i[r];return e},t.prototype.glyphsFor=function(e){var n,r,i,o,s,a,l;for(i={},s=0,a=e.length;s<a;s++)i[o=e[s]]=this.font.glyf.glyphFor(o);for(o in n=[],i)(r=i[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in l=this.glyphsFor(n))r=l[o],i[o]=r;return i},t.prototype.encode=function(e,n){var r,i,o,s,a,l,u,d,p,g,h,w,_,x,v;for(i in r=$w.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),h={0:0},v=r.charMap)h[(l=v[i]).old]=l.new;for(w in g=r.maxGlyphID,s)w in h||(h[w]=g++);return d=function(S){var y,A;for(y in A={},S)A[S[y]]=y;return A}(h),p=Object.keys(d).sort(function(S,y){return S-y}),_=function(){var S,y,A;for(A=[],S=0,y=p.length;S<y;S++)a=p[S],A.push(d[a]);return A}(),o=this.font.glyf.encode(s,_,h),u=this.font.loca.encode(o.offsets,_),x={cmap:this.font.cmap.raw(),glyf:o.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(x["OS/2"]=this.font.os2.raw()),this.font.directory.encode(x)},t}();Ye.API.PDFObject=function(){var t;function e(){}return t=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},e.convert=function(n){var r,i,o,s;if(Array.isArray(n))return"["+function(){var a,l,u;for(u=[],a=0,l=n.length;a<l;a++)r=n[a],u.push(e.convert(r));return u}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in o=["<<"],n)s=n[i],o.push("/"+i+" "+e.convert(s));return o.push(">>"),o.join(`
+`)}return""+n},e}();class EF{constructor(e,n){this.container=document.getElementById(e),this.containerId=e,this.stage=new Kt.Stage({container:e,width:window.innerWidth,height:window.innerHeight,draggable:!0}),this.selectedRoom={id:1,name:"223",type:"Laboratory",image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExIVFhUXGBsYGBcWFxgXFhcYFRgXFxUVFRYYHiggGBolGxUXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGysmHSUtLS0rLS0tLS0tLS0tLS0rKy0tKy0rLi0tLS0tKy4tLSstLS0vLS0tLS0rLS0tKy0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgMEAAECBwj/xABOEAACAQIDBAcEBwQHBAkFAAABAhEAAwQSIQUGMUETIlFhcYGRMqGxwQcUI1JyktEzQmLwQ3OCorLC4RUWJFM0RIOTs8PS4vEXVGNko//EABsBAAMBAQEBAQAAAAAAAAAAAAECAwAEBQYH/8QAMREAAgIBAwIDBgYCAwAAAAAAAAECEQMSITEEQVFhgQUTIjJx0UKhscHh8BSRFdLx/9oADAMBAAIRAxEAPwB4UV1FaFbpxDIrUVusrBOCK4YVIa4Vg3ODMQQRWMQOKgdau3LRqvcWtRijcWql1KIXBVW4tAwMupVO6lFLi1TurSsIJvJqKy1YAJIGp4+Qj4Ct7RuFYIUt3CPnQ25t4ISGRhrHL5UAlbeUENbgkGCNDB4ipcDJUTroKhxuKt4iD1lKzB059oq5hSoA6w4eHuosxZRanVKjS4v3l9RUq30++vqKUx2qVIqVGMTb++v5hUiYlPvisYkCV2ErauO/0P6VIGHf+U/pWMR5KwpUvSLIGsnQSCJ0nmK7KVglUpUbLVpkqJlrGKzLUbLVllqJhWMVWWonFWXFQuKxiO3gDcnrKq/eaYnsECSatYTY6qZN9D4K/wClD8SxEQTx7asbOk8ST41jBhbNv/mj8rVlQ7Ow7LbUPBfXMRwkknSfGspgHoQrdcit0wpusrVaomMNR43aa22VYJlHaQRxt5OpHac/uqSaVbr27lwg38hzPqVkdbioIiDIXjxiqY0m9wPjYJ7V2kF6N3FxShdmRTPsKCQ0aMsMD5+NXHtj9p98DTwH+tD8bszprIm6GckEOBxWBbI75HGrODuHKUJBymFMzKwCJ8CSPKjNLegp3FXyY4qtcFWnqvcFRMU7i1TvCr9wVUuigYEe0ygjn/PGlvelLVp1BDZrkkERAIIGs+NOCp1h40B3w2ZcuPZKBSq5s85Z4qdJ7poUEBYS3pNFtl2QV4cz8TXHRZVireyR1fM/EmgEt27I7K1i0yqI01/WrCCo8eOqPH5VjFJSTMk8KMYPZ6FVbWSAePnQm2OPh8xTNg16i/hHwoIxtMOO+plwwqS0tTBaJis2FXQxw4VnQirRWuMtYxQxdsBT5fEVTuVf2jovmPjNeX7U3rxAu3FVlyq7AdWdASPlWow9MaiY159/vXifvL+UVwd6MT95fy0aMPztULmkb/ebEfeX8taO8d/tX8v+tCjDdieI86v7NXSlzY2Na8oLRIBmBA1OnuFNGzl0FYxcfFIpgnWsrdrCq4zEamT5T1fdFapgD2Kya5Brc0QG5rJrU1qsY2TXnNu+elvIetFxwJ4jrtlgzXok1wyjsFNF07CnsANnY4W7B6TTIdSx5mNR2jUkdmorvD4tWvLFwPmUkQCDliVzDxJ1oubK/dX0Fckd1M52A4eq71O9V7lIYguVVu1ZuVWuUGYpO0GRxFDsbZzozsoBzCOffRG7UGKH2J/EKVhAlwDn2f8AxVnZg6v89pqvfq1sz2f57TQMX0FQ4/gPGp0qHaHBaLMVbY0Pl8aaMOOqvgPhSujaHypssroPAVkZktsVMq1wgruaJjoioytd61yaBgftXgv4vgprwvEvmdz2sx9STXtu3LkCexXb0H+teGCsE6rK5zVmaiY2K2awVjVjDXusn2Z8qc8GIFK+7luLY7zTTaHVjt09dKUwRwqQi/hHwrKlC1lMAZwa3NcA1uiA6mtTWprU1gmya5JrRNVNo4gpauOvFUZhPCQCRNFK9gFomo2pMt7xbRZVdcGLiMoYECJnjEMdO/3VFc30xSANc2e4VvZaXCtEzlYpB4Hh2V1/4OZuklf1QkckJOk0/Uc3NV7hpQ/+oaj28LcHbDjTyKij+yNrW8UjsgIyRpmRvaMa5Tpw50mTpM2NapxpDlhteFQvab7p9KobzLOGcdrWhqY/6xa58vGtNuVhi6nLdAZ4OW6csFWYnMCRMiY8qOLp4zhqlKvS/wBxZNxV068ef03/ACJL9h/uN6Gq2KQi1GRiS6qANDLGBxpfv7KtnEdFbv31Jd4+0YjIhuKDoO1V56z36Hd2rbWsQts32ZWslybpLAEdFrqBIl29B2TXXL2ZoWpyvvVDU/79uQdfwl4Ak4TEgKATC22gMYBMP21FgscqyrWsQIksxtKFUAmSxz6AdvdRTaW/KhcVay5biRbtlQOjudG7S7+yVnTTXiaqYcudmZm6xe1fJJME9Z9YI15V0w9nQ03OFb0t33ViRcq3f9/2wiVgkVW2h+75/KrV32m8TVXH/u+fyrwJLcdFS2DrJEDgI11k6691ONsaUoqND4j4GjeD2i7GMq+poILDIrtRVNb7/dX8x/SuxiG+6Pzf+2iAs1waq2scWzdQiCRxGscx3VSxW1GynJbcNyLKCPODQMdbTshyVPAoQfBtPlSBc3LGuoVQGYksYCqCxJMHgAae9nO91hnEEkLwjmdYPiKEbW3gwgS6hN8Bhds5glpoPWts2XpJjjEgTVcWGWR1FBuhKv7tWlMHFWgewuQdRI0Kdhqvc3fXlicOf+1UfEa04jebZ5t9HJ9gKCcJanSZaQ8yZqLbu1dm4hy1spZHR5Aowp0OV1zSJk9dTP8AAPL0I9BDVTbrxr+CalPul/v+BTtbvEmBesE9gv2yfSpbu7N1DlPODplIIOo1FMGBGAmLdyWmdLV4sAOk4RbJGjp+Twg9j7IDKeRUQCGUjJ1CGVwCDKniKh1nTRw1pbfpRROwNs2yFAUcAT8aPWR7H4vkaD4ISaNYISx7hHmdT7orhCFAKytisomLlneLCtwv2/zCrdvaVluF1D4MK8mOw16JXDtJ6PQp1ftGZSQ3YI8zI5a7TdzWTcQQRAuLoevk7ToNSfCvafsnwkU90z2C3cDcCD4Gtmk36Obk9OuVBkISUBUNBY5iCeOseAFOyWGbgpPlXl58TxTcH2JtUyA1S2sPsLv9W3+E0XOEj2iq+cn0FU9q2l6G4AWYlCBAjiOzianHlAAG7D2BhrHSFk+yEMzW0Vj1dAzKZJ1I4mBy4VS3lxv/AAFglvs0fKIM+1buATl1Pj39mlLm28S1zA4ex0F5WtFJzWWHs22UmZ11PZQS5tS89oWLl5mtoRkt9XTKCBqdVABjXtr6fF0uqamnvfd9vI3xSlqaSaeyXH1b8/Db6jDsS90g6Ug5mdm/fkfaWxo41J1PafiprdBIu4wNPs2P8GnEcKXNiYy0lkK7KGDHq5wDq9vjI7FJ4/6mNgLbcY0dIAh6DrBgR7IkTw46UfaVrp5t/wB3ReW8Ugnt+9be0yL1iGtMyrLvlW/aLHKoJ0HdQXfDeS/n6LCZksghluLauWnDEQ8SF07dOZrrEX7eGP2KlyeJTSBxjMTB8BQzH7auuZVsXZPcrRz7xXg9J10cS3jq9Tmlg+NS32KG7uIC4vpcQ5EyWuXJkliASec8+NG7WNtu7G2ely4R5UBX1z2Bly6g8OBoBg9vYxLoFzF3FT+NZJnuy8aY9oW9o3bLN0oSyUljcCocoOaSVUsugnyrr6n2vGcWlCrVLf8AgdQbAWKxpCnLgwG5ThlAntOUDSrexr6Oh6TCoGAJfLbZRxMcGE6dk1Ds/YONv2y1m+lxNRK3WjhqOso7aL293sTbUM6KABqc68fM15EutzxWzf8AtlVhiwjh36QZ14NrwI9x1FR4+y2hjQTS7j9q9Hla3cXN1uBB1ykj3ii2CxT3bSPcbMxWewCewVzxyyfKM8SRInDz+VX9l+35H5UPTh5/KiOyfaPh8xVkRYYFbrkVuaYUiw/DxJ+NbeuMMeoK0+0LKkKWljOiwcscQdeNJOairZSMXJndi8ts9K5hLY6RjBOianQUD2Ftmxh7IQ49lVnLhvq7rIJZiEziDq8yZq5t/GWzg8UUOvRRwI9shfnQnY2xMHdwdtr1u4XECOlYHVQSyWi3skniNOVet7NhrxOd967P9SPUfBs8bn6WGsJvFg1a6xxlhzcVVBuW4IChpkcPaaaUvqWHKopv4IwVLHOgJyqwIkoCQWYHXs1mAKMYndDANcsJbzoLt0JJuqwC5WYyQTGi1BvhuPg8Pcw6WL1xuleDwuEKFJJQKNTIEePnXd004456YyacuzXh4JcehLE7VRxNLj5aKLbIsm0yo2GZiDDZ7JOY2raTmJkDMLjd0jnrRNsG4s2ERrZKWkUxcT2hJcce0xSg+wFmyFuMTctPcb7M6ZC+i/e0TU8AZ7K6XdkhWctBVLTqrIYfpmhRmOgWJOY6GIrq6rocnUKpSWz8PTxOje+B22bgm4Nay94ZW9IPdzHOrtmx0ZMnQmQToCIHv04Uq7tvlxd20EsnoRdYXEtC2zEDowJ4hTmnL20z7AxC31XMW00iT1W5q686+c6rB7iehjLctdOn3l9RW6vNg3BjKfKsqADzJcfme0gkAMoYaHMQ+n86U3o50AzgZhoHWAPrMjQ8IPPmetwpGwyjpVE5jnHszHtDtEmnG+okTIJLf0f/AOxBgg+PCdRlr7Bb0dsXZc+jt8t3FkmIu6kxAiZJPCmPae+NtCQtzpDHsoCTP9kRSduvcVbe0CwBUM0g6AgAzM8BV7ZW2sPoossOwIA0+kGvlPaeRx6iSRJQUm7LZ3jv3B9laQE8TdZge/qBfnVS4+Jukh78DsT9F19TRH/b+DGjE94NtuPeIqHG4yxiUyWsX0EceqFmeQLRHka8/wB9vuF4l2MweGYatdcxyLz6/p/Ig21ibltGYNMKSuaCAYJHH+fDiQt3cdYLLtC1A1JIB94eq67mXH0THYd+7pCD86vHNFdyTxy8AFh968RdMHDYa83YcPnb0Bo4u2V6JrX1e1Ya4FLhV6NuqZEqe+pMDuZtKyfsr1pQfuXWHjpkFNO5mFvQUxdtFA1DXXtu5Y6aKrERHM61suduFKe3hY0ItPdCJj7n2T5TDZTBnnGlC323iIIW8+UjhIIgjh769+/3dwrDXD2W8baGfdVa/ujs9VzNhMOqjiciqB5iK5IOKLO2eSbJxRa2jSZKgnxohi8Y623YMZCkiSeIEiju18HgVVhhcMBAPXzXFUQP3Vza+deY3NqXCIzt7qTRqew10htw30g4lWFsIjAlQCdDrEcu+jWJvs5zOxY9/AfhHAV5rsdpuWp450HowHyr0S5VJbOheUec4jCayXT2u0EiTEwDPOm/ZjDobQB0yLrw4ga0ExWXI5Eg5THXbjGmk0cC9VdNMo08qeW1E07svMmnU60EgyQI0FWME7ISShOnIqfnQu3gV5IPSplw3iPAmq6iNB5ccOaOP7M/A1Nhr4uMEQMWbQDKw95Gg76XltMODv8AmNdPvFfwK57ZDFiAc4BMdgJGlCWSkGMLdD1a3aZVA6QSB2H9aWr24V8YlrwuWspzadYGWFvuj9w+tDdj72Yxi7G8xAuMoBhhCmOffNEn36xI0K2j4qR8DXJPM3szqhirdFbbuykt4e5av4hLJulQGIlRkbNHETIoxsfeK0iWra42wQhExk9lQoGUTObTmYpJ+kzaLXrWFZwAz53IXhoFAifGquI3Nxt62HFvDZUgFkhGJIgBpGtfSdF0ql00baq73S5OPL1ywSak0r8fL7Wel7WxSYq7hz9a+zt3TcJUgMDkYKRl1OrHSYj0oHvXhr9x7D2UF0WxcJ66oZeANWmRAngONeeXNx8cBm+rkrrqrIRoSDznkapf7LxaObYt3s4AJVMxIDaAwvbXXhx6ZpwnFtdv6/M5cXUY+079f2+4z7F2FjEe4160zRZdEBvdsABcjTpxC6DTWmI7OuZsuRspuYVSQWYZbSyxJfkDxPBSNBXm92/jbPtNibcfeNxY8c1dW95cYvDE3PMg/EV2vJ1D3qP5/UvGarYYtni9afaGIKMHCHKWU9Yu/EaDNw5VmwdoXeldoAuLBdYgOukafeHbQa1vnjV/pp8UX5CrNvfzFjj0R8UI+Bryur6XNnyvI0h1NJUemptpiJUgryPbWV5wN/r/APybPof1rK5f8DP4G1IYcZuzZt2yzXmtgR1yqnKZ0OYAHzqjY2WG/Y7UtMeUkEzMj9489aZdubAx1+09pTbyMIgHz1JWqOx/or6OHum7dYQRbt5UkjUAFuPqKMet6hfiG94yC1sp8Pgsd0l225u22IZTxJUjmBrJoDulijkkGGXQxx0puxW5633KfVfqw5lndrmuuqzlB586Vt5djNssKbF3pEdpYkAFSsAKYkZTJ104Vw5c3vcmqXJSnVkW2rpfGlu20pbvaSAT5AelBNpuwuESYZJGvNDJjymiuxtj4nat641h0tEIJnNk6sKFzAGDz9av4j6LNpkgl7Dx2XW58faQVCda7bGi3ppIUFvvyZvU0Y2ffLW1Y6mBPzq7d+jraSf9WzfhuWz8WBqlc2LjcJbm/h3tpMAsBGp01BpJpSWxSDae4QtGo9pXyltmXiBPpQ1dqZeIHrXN3auYMsLB051FYnZVzVDDa+kLG2oVbkqAMshTpAgaqaZcFtW7jLa3bzEnkvBRpxygAT5V5TYuyqyRIAH5dPlXpW6pnDL/ADyFPOKRNO0X740PgfhXndrE3mVSbSNMAk21OswfZbuPKvR7o0NeX7O2hlzAPHWJ9et/mNNiSdk8ja4CeEwWa6qiVCMLpHR5OLyFJIkiQ3OOFODikzZmPJvk5pzZE8RJP+angpWycghdCdjthuqTmmWUcDPWYL86Zdn4Dqrm4KAO8kCjlvBmBIqX6v3U73Jp0DmsDkK0MPRP6vU+Cs2s6i9cW2nMsYmOQ76z2AtzrYu6pvIXZ8g/d6sz2niNKg2/9HNy8gVL6AhgesrAGOWhNXtub/W8PiVsWRaup0YY5W4akQGEjgBpFW8Nv9hm9tbiHwDD1Bn3VzSyOzojj7oU8F9HeLtKQWstLM0q7fvMTzUdtVcZuXjBMWgfB1+Zr0JN7sE39OB4q4+VbfefB/8A3Fv1P6VN03ZROSPFd/rDdJhLEdYWwpHYzMFI9RTTa2Xi0sHqXWudJ1b/AEsrkyibeRuJkEzS7vsTc2raC8Ytx452b503Xb+KSyCFu5gWJY5GtMo4ZREg9s19t066iHT41i0/SV+nHbxRHBj6PK3HqJQu9lJrjx389jlMHjkVM1jFNKgnItoqZ6xgKsnjznxNQ7m4tRjcY+JlGXolUMjZxlDEdUEQ2oozZ21ZcW+j2gpdBlHXSQCFzAQdQSo8Y1oRuohZ8bfN1WK4hoNyW6To1A8Dw51LIlolKUVBv8SW/P7ngZep6Gm8WJOSq1Wnb68HH0sbVR8OEGVmdkhsuV4nMQwBM8KU8MFGItBrVhgtkwhNooeqx+2MKGuAE8etKrRT6SNoB7dmRbXO4uHomDZeqZUgRlYZuFJm0tqFnzW2ZRABiV4ciMx8ePE16/s/HLDgcZu278vL7no4oe7T149Dv5btvzvzOsBhA632yFsgHIEKCwEk5hry4HjyojZ2KufCh7NzLdhjlS4HupMsLYgyYEAqI1E1DstlGEu5i+ZnGSNEkR0mY5CDKkaBhEcDpR2zeVcVZK4hl6OzJdykJcCnSyFZNCcvMNqa9Fu4vbx7eX3ZaMLQqY/DWhccW1ITMcoYnMFnqhpA6wGh041lE7WAu3BnFpWBJM5uOpnUtJ1rVdSjgSppfkBxPerW0RztXB4BG/wtQjevaOONlvqaC3wAEqbzAkT1ictrSeEnvFL1vfeP6E/n/wBKmXfkc7H9/wD0r8mfUzOtdPEq7D2XtNiue50KDiCwus2stPESddZnWni/sy0VANpSOwqD8aE4TfDCkDMzISOBUmPNQaK294cIw0vp5mD6HWoym5DqGktYCwqaKAo7AIHoKtYjEW7a5nZVHafl2mlTaG9mpXDrJ++3DyX9fSl++z3Wz3XLt3nQdwFKrC0Mm0d7ZlcOn/aMPgv6+lKO8Vhr9p+kcsxjVjoOsNB2VdUcKobyOVw11gSMoDSND1WU6d+lPFboD2QotseSQmQkGCAdQYmOHZrUDbvXDwX0M13hMQGvM1vEX8rIHBypmzJmQhswI0BXXTj4Ua2cbjABMSfO2jRMnWAI1nnXQ8bXcl76+wmvgGDdFkbpS4VRGnWiCT2fpXpG6tkpYyNEoSpjgcpiR3aUPu2bv1nCi5dR1LuerbyEZbTRJzGeI5UwYNIa4B96fUAmlycI0HbJWFKV3cj7reo/Sm80UtWe6hjBkPMtkbrtnZ9T0d2IA45Msx769M2bs4LDvx5L2d57+7+RatWQOVTXCFBZiAAJJPACqNW7J6nVEVxZrg2amw2JsOARiLMn91nCn+9Vi7ZC2zcLJkXiwdSvGOIPaRTaGJqRR6Cl/fdCMKfH4Bj8qZrN5HEowYTGhnXs99L+/wBphT4n/A9JLgfH8yPKNjMxxKkkmFOpM+Gp8abXOlI9rEFHzKYMevdRK1vG40ZAfDSoZsUpO0deOSQed4qNDmdV7WA9SBQPFbwDLKoc08+EeVEdmYsnEYJSATeKPpplBciO/RJnvpYdPPkMs0VsEMWwfbgzTlV1HVBY6WwdAJJMmnnbO0bS2MVlu3B0dtujRhGuQkq2YDK3d3UlbY3cxy4x8TZVTLkqVdAwEQNHI105VBtHHbTFm5ZazdKXTNzqM8kxqXUkToO+vuMePHmxQ05EqS2tep8/1vs/F1C1u9afHavvYjxTruxvlawuEfDPYLM2frjKYz8IBjhSjcEHK4Kt3iPVT8q6sIFMtBHISDJ8uVepn6bF1MdE+OTtxTlCVxDm+O3rWMNvobPR5ZBEAFpgAwPA+tL3QNMZT6VOWcklUA/CoEeBAqFUPAtHcZ+FUhgWOKjHgbLkllnqlyMeDRfqltMyF3vaoMuqiQDcYOD7RYAEDQyDRXEYhxiMQ/7QLa6POQygJlChQGzmSOEnlxrMJbYjAWc1ph+0yHMq2yTOa65DdUhVcwIAJ0qricepOLfo7RN0wDlELLEk2SCsDQ/unQjtqkVqdVfP5yS/Rf8ApeK2SLOyrgW0g6BTodWFkkySZ69smNdJPCK1THsqyq2bQbZV66cinpOmZc4YBlbKLvVlSNPhWVw5Opjrfw9/GP8A3F0oVhXOKUlGCmDBg9/KqVjaqkhcrZjyEGreIxWQS1twO3q/+qvzrRJb0dmpcC+l8vaViTmRipPOG6y+moqWzi3BHXb8xqsbwFy6ADluCRPbOYe+a0rGuhpEotnpuyv2SeHwJq0DQ/Y9ybQ8/wBfnVlrtc5RljNVXbizhrw7bbfCuumHbVgYY30e1bAZihHEAaggak08Yu9hG1R5Bh7pUoRMqSvbpy+Aoph9qMpnN7qNYncjEICWsXBGpgBoHacpPZQv/ZA5E10y8yCRh203S2mkdUP/AHgB8qed2sSbtsueJPw0+VeePs/LeVeMqT6EV6FubaOQqBJmABzmall4VFMfLDVuwWIVRJOgFMgwUVNsvZ4siTBcjU8h/CP51qdta0I0JOVlB1CgsSABqSeAA7aStvbZN85VkWwdO1iP3j3dg/kQb2b22muvhxcCrbYqwMjMynWSdIB4Chti8riVdGH8LqT6AzXVjh3ZCT7HQFaYcABJOgAEns0HOunMCTTf9Huws5+t3BoP2QPMjQ3PAageZ7K2bIoIOOGpjTulsL6thwlwAuxztIBgtHV74jj2zVvamwsNiEKXbYZTyBZeRHFSDwNXgT21hNeY5N7nXpoRcX9Euzm1UXrZ/huk/wDiBqE4r6HbX9HinH40VvepWvTiK1NHXIZHzvv9uK+zrSXGvJcV3yCAytOVmkgyI6vbSrYvXrt2wqk9IMlq1k6rDrQgBEay3GvpHfXdxdoYfoHdkAYNKhZkcAcwMDwivP8AA/RU9i/bupezBGDQV1kagzOhmDwrox5ko0+SU4NysXVbbNgkOuJyjmydIPWGqZd78WnthD+JCp9xFew2bhiCVBHKaV333wLyrXYjQh0aOMdhFZZJPgdxS5E8b6X8oN7A3MhEqwD5WU8GXMkEEd9Vf95Nm3J6TCBe09Eg18bZmvV9m7xYS5CLibGUKAqrdVeAGmWQfKvLfpWsq+KGUBQba6rEGC4mRxrvjKcVcZM5XJeBDabZVzg/Rzw69xT/AP1kV2+62Eu628WfzW3+GWkK5hyKd93NiYO/ZU3bbq2oLo54g81aRwiuiPX9UlSm/V3+ptmtzTbi3F1t4lZ5SrJ71JqC5uzj1UqtwMpMlVunKT2lXgE1Y2hufdUj6piXnse4UkaRkKiJ4yD3VFZ2dthDC3MxH7pdSfRxMd9VXtjqIOm0ZQvgqnZW0P8AkjyWx8q1RE39sjToQe/IPkayq/8AO5fL++odMvFgVNjBBpmL6HpQxWNZhFHEHtPbyqTEKzGWJJ76g2XtoKttCYCqQSwJzMWYgg8lC5R5GiuG2hZe6bQZDwKvMKxMSNeBGvpXzs1ks6McoJC7j7UQ3YamVeymHaODQucOQA7IWU/uwJ1B7RHDuoPZS4iFGw9zOkycsWwBrmLeHrRWprgOqKlyNuw7v2I8vgKnuXNaFbAv/YBj2TwjTWDHhVZ9s27hgOsd5A9ZilhjcnQZzS3CWIxnIev6UPuXJqM3Qefpr7xVS/iZ0X1/SuuMVFbHNKTZYu491BRXaDxAY5fMcDTNufgFuWSzCTnI9y/rSWor0b6O1nDv/WH/AArS5LaMi3ht2LPTdMZJyZMpjKNZJGkzTHsrZ9qySbaAE8Tx+PDyraLVi0tSSCWi9ckVoLXRFMA+bN7v+m4n+uf/ABGg8Ub3yH/H4oD/AJz/ABoNFVQr5HX6L9gXcdiCpZhYQA3WkxrwROx21EjgJPZX0PZshVCqAFUAAAQABoAOwRXz9uPvTewtprVslQpLsCikHNOuup0EeVeh7M3/ACVU3F4gGVXt14ZtK4c7bkdWOPw2egxXJWlzD72KwlbbXBz6Ih2Xva2crjxgjvqbDb4YR/6XKf41ZffEVGh6YcM1wSahw+0bVz2LqN+FlPwNTMaxiNm7qjJqQmuawQTtqwvRu5HsqxnwBNfPN+yew89eXGa+l7qAgggEHQg8weVLmL3MwLz/AMMintSUP92K6MOVQ5J5Meo+f3HhXAEcNPCvZ8Z9G2Fb2Wur/bzf4waB4v6L/uX/AM9v5qRXQuogyTwyPNc57TRLAbfv2VyKVKzMFQdSNTPHl20wYr6OsUvsm0/9plPvB+NCcVuljE44djz6hVvgZ91OssH3E93Jdi3h987yjW2h8JHlqTRWxvtbIi5ZYdhRhp3gGAD30m38BdTR7Nxe9rbD3xFVy44aT4/LyotRluzJyiekpvkkaOY/jtgt5lXAPpWq81JPL4VlL7qI3vJBDZ7oLahrasIB1k+ccKj2stk5WW1lAIzhdAy8/A9/fXOGEKPAV1ecEEdoodzVsdY6yiBbuHe51NQGM5R/BIqbG7UxPQOGvo4cDN1QHjTKVIiQdATx7aq2F6kd0VVv24tgTOtEDQ6XGXocqMCOjRdO5ApHupBpu2XqjAknXSTPZpS6cLbOgvqDzDq6wewMoYHxMUmPlj5OERYPRxRlaEpayvEgwRqplYPf50WWqkiVa9G+jU/YXB/+T/ItecrXo30aWW6G4xBCl9D2woBjt1pZcBQ621qYLXCGuppAkk1grkVsGsY+fd8NqXRjcSmYMgvPlW4iXVXrfui4rZfKONBb+NV1I6G0rH99A6nv6ufoxPcg7oq7vmf+PxX9c/xoVdw7KAWUjxiefEcRwPHsNWEDO7yjLdj7qz49erP15hdtJPVyj5/pVfdlZW94D/NWY1Mt6z4Af3m/WuaSTmzpi6ghqtuRBBgjmOI7weVX22qzftlS93uCH/71CrnzJHdQ+2NKxjXLdFy2ww7cGvWj3hL6/wDlsB5tVmziLifssco7i1+16gqV99CIrgmtfkHcarO8ONX+nsv43LB/zBqIWt7cSBL4ZXHM220/u5qQGNVmxwRwJgnhGnvrKN8GvxPTbG/tg+0lxfDKw+M+6iFjerCPwvAfiBX3kRXie0nJusxYyY1nU6DUnnVa3i7gYwxgCO3Xjz8qdY7Qrkj6Fs422/sXEb8LA/A101eJjC4pQD0YbSeqyM3ojEg90Vibw37TZS11D2ZmH900uh9g2j2dlFRtaFeXYffi+ONwn8Sg+8a0Sw+/7fvLbbwJU++aDizbD02HFUsTsm0/tW0b8Sg/EUFsb72zxtsPwkMPlV6zvXhm4uV/Ep+U0N0Zogbc/Bkz9WtflFZREbcw5/prf5hWU2tg0+R4dBIHZWZaPW8BpXL7Prr1nNQETSq+L5eNHG2fQ3aGFKtbHafhFGMlZmti/sh9G8v591LuKX7Rh/EfjTJg7WSZ5il/HSLrEaGZoQ+ZhyfKiO1IYA6aijqUCthmObUxEnjHITTtuxsB8XcgSttfbfs/hH8R/wBasyKLW6O7jYt8zSLKnrNzY/cXv7Tyr1jD2VRQigKqiABwAHKocHhUtItu2oVVEADl2+J76nmpt2MSJXU1GDXS0DEsGuhUYNbrGPm/eozjMT/XXP8AGaGvdZtCzEDgCSQPAGnP6WFA2g0ACbaEwAJJzST2nvpMHhVUK+Q/ukNLn9n51Y28o6awe0gf3l/Wud3b5fpWIE9XgIHPlW94n1st91p9Cp+VS/Gyr+RB29iLdvR7iqSCVBmWy8QIB18a1avq4lWB8D8RSnma/ca8QYOiDsUVvIQZBIPdpUJwjdIvjtq2NZqJ6AptK6v70/iE++phtg809DU9DHCT0v7U/bW/L4miQ2kD+6fdQraVzNdtkfzBmqYlTEycE2Mudc/zyqLZ41WebAnzM0T2NhRfvsIkBWPjplUa9rMtMG08Fh7Vq0Ra67r1WGkEKCS0d1Nfwit/EBv9oKXKc6uriWIyk5l+6wDr6NIFLGD62JY9k/pTGlSnFRHhKzi9hLLcbZQ9ttjH5WkekVSv7GB9i8v9tSh9RI99EHqMmgpNBpMDXdh3wSVUHQQUdDwnkDPZUgweLHC3d9CaJVo0/vH3F0JcAxvrg/orn/dn9KyiWbvrVHX5IGl+IQStnn41qsokjYFBtt/t7Pn8RWVlNHkDL20dMsdp+FGr1hCsFVIjgQCPSsrKMQvhCRtu0qXIVQo7gB8K9n3JtgYKzAAlZMDiSTJPaaysqr4Jhp6xOVZWUrCdL/PuqUfz6VqsrAOlrf8APwrKysY8T+lf/p5/qrfwNJT1lZVVwLLkPbr+zd8vnXW3/YT8XyrKyo/jZX8CCGDUdEug9kfCoMQKysrk/Edq4KF0VwtarKqKTCqWK/aJ51lZTY+SeX5Rq3C/bt+H9T8QPSi+8o+xwv4f/LFZWUHwI/nETYn7S5/PM0xpWVlLm5HxfKafhULVlZUihlctWVlEBo1lZWURT//Z",description:"223 is a laboratory with a capacity of 40 people"},this.toggleSearch=!1,this.shapes=[],this.roomTypes=[],this.loaded=!1,this.mainLayer=new Kt.Layer,this.routeLayer=new Kt.Layer,this.textLayer=new Kt.Layer,this.stage.add(this.mainLayer),this.stage.add(this.routeLayer),this.stage.add(this.textLayer),this.cachedCanvases=[],this.floorNum=n,this.navArrow=new Kt.Arrow({stroke:"#bb0000",strokeWidth:3,dash:[12,7],lineCap:"round",tension:10,pointerLength:2,pointerWidth:3}),this.navArrow.cache(),this.stage.on("resize",()=>{this.stage.width=window.innerWidth,this.stage.height=window.innerHeight}),this.stage.on("wheel",r=>{Pw(r,this.stage)})}clearMap(){this.mainLayer.removeChildren(),this.shapes.forEach(e=>e.clearText()),this.shapes=[]}deserializeMap(e){this.clearMap(),JSON.parse(e).forEach(r=>{if(r.className!=="InfoPin"){console.log("SHAPE ATTRS CREATE: "+JSON.stringify(r.attrs));const i=ya.createRenderedShape(r.className,r.attrs);lf(i,this,"click"),this.shapes.push(i),console.log(i)}})}displayRoomNames(){this.shapes.forEach(e=>{e.displayName(this.textLayer)})}loadMapN(e){e==null||e===""||(this.deserializeMap(e),this.shapes.forEach(n=>{this.mainLayer.add(n)}),this.displayRoomNames(),this.initializeRoomTypes())}clearRoute(){this.routeLayer.removeChildren()}drawRouteNEW(e,n=0){this.clearRoute(),console.log("====PATH===="),e.forEach(s=>console.log("NODE",s));let r=n,i=[e[r].coordinates.x,e[r].coordinates.y];++r,console.log("INIT BUFFER",i),console.log("INIT IDX",r);const o=()=>{if(r>=e.length){console.log("FLOOR NUM DISPLAY: "+this.floorNum);let S={stage:this.stage.clone(),floor:this.floorNum};this.cachedCanvases.push(S),Ej("navend",this.downloadURI);return}const s=e[r-1],a=e[r];if(a.floorNumber!==s.floorNumber){let S={stage:this.stage.clone(),floor:this.floorNum};this.cachedCanvases.push(S),kj(e,r,a.floorNumber,a);return}const l=s.coordinates.x,u=s.coordinates.y,d=a.coordinates.x,p=a.coordinates.y,g=10,h=(d-l)/g,w=(p-u)/g,_=S=>{const y=l+h*S,A=u+w*S;i.push(y,A);let L=this.navArrow.clone({points:[...i]});this.routeLayer.add(L),this.routeLayer.draw(),i=[y,A]};let x=1;const v=setInterval(()=>{_(x),x++,x>g&&(clearInterval(v),r++,setTimeout(o,60))},30)};o()}initializeRoomTypes(){this.roomTypes=this.shapes.filter(e=>e.class==="Room"&&e.info.type!=="").map(e=>e.info.type)}getShapeByType(e){return this.shapes.filter(n=>n.class===e)}highlightShape(e){this.shapes.filter(r=>r.info.name===e)[0].highlight()}downloadURI(e,n){let r=document.createElement("a");r.download=n,r.href=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}getRouteImages(e={mapName:"mapName",from:"from",to:"to"}){const n=new Ye("p","mm","a4"),r=n.internal.pageSize.getWidth(),i=n.internal.pageSize.getHeight(),o=10;let s=o;const a=[];this.cachedCanvases.forEach((l,u)=>{console.log("CANVASL "+JSON.stringify(l.stage));let d=Kt.Node.create(l.stage,document.createElement("div")),p=1/0,g=1/0,h=-1/0,w=-1/0;d.getLayers().forEach(y=>{y.getChildren().forEach(A=>{const L=A.x(),R=A.y(),D=A.width()*A.scaleX(),k=A.height()*A.scaleY();p=Math.min(p,L-A.offsetX()*A.scaleX()),g=Math.min(g,R-A.offsetY()*A.scaleY()),h=Math.max(h,L+D-A.offsetX()*A.scaleX()),w=Math.max(w,R+k-A.offsetY()*A.scaleY())})});let _=50;const x=h-p+_,v=w-g+_;d.size({width:x,height:v}),d.position({x:-p,y:-g}),d.batchDraw();let S=d.toDataURL({pixelRatio:1});a.push(S),console.log(`Generated Image ${u+1}`)}),a.forEach((l,u)=>{const d=`Floor: ${this.cachedCanvases[u].floor}`;n.text(d,o,s+5);const p=new Image;p.src=l;const g=r-2*o,h=i-2*o;let w=g,_=h/2;_>h&&(_=h,w=r*h/i),s+_>i-o&&(n.addPage(),s=o),n.addImage(l,"PNG",o,s,w,_),s+=_+10}),n.save(`${e.mapName}-${e.from}-->${e.to}.route.pdf`)}setFilter(e){let n=this.getShapeByType("Room");e==="All"?n.forEach(r=>{r.unHighlight()}):(n.filter(r=>r.info.type===e).forEach(r=>{r.highlight()}),n.filter(r=>r.info.type!==e).forEach(r=>{r.unHighlight()}))}}const TF="_main_ctyyq_7",MF="_toolbar_ctyyq_14",jF="_toolbarContainer_ctyyq_26",FF="_logoContainer_ctyyq_35",IF="_mapTitle_ctyyq_41",OF="_searchFilterContainer_ctyyq_52",RF="_profileContainer_ctyyq_73",BF="_mapContainer_ctyyq_103",DF="_mapControlsContainer_ctyyq_113",UF="_nextButtonContainer_ctyyq_120",zF="_nextButton_ctyyq_120",GF="_pulse_ctyyq_1",VF="_floorSelectorContainer_ctyyq_158",qF="_floorSelector_ctyyq_158",WF="_floorIcon_ctyyq_179",HF="_floorDropdown_ctyyq_184",dr={main:TF,toolbar:MF,toolbarContainer:jF,logoContainer:FF,mapTitle:IF,searchFilterContainer:OF,profileContainer:RF,mapContainer:BF,mapControlsContainer:DF,nextButtonContainer:UF,nextButton:zF,pulse:GF,floorSelectorContainer:VF,floorSelector:qF,floorIcon:WF,floorDropdown:HF},B4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA9BJREFUeF7tmk162jAQhkfSrj1EnZOUnCTJBsMpEk6QpTBdkJ4EcpK61+jzWCoSNshYMmMhORjsTRZYtuedb340CoE7v8id2w8jgFEBd05gDIE7F8CYBMcQiBUCnPOkfHbCGEuAART/ihwA8vl8rv5exRVUAcpoSukzADwBQAUAACRAPdpyKeWWUvo5nU4/vpJEEAD8nSfsO1vvjJpoYxr2tpqYE0IWXwXiYgA8y94owGsAL+Zpmj4EeE6nR3gDUHJnzPB6p9dWNzdDQwjx2GeO8AawWq02B8kfjG8aBAC/dVRI+YNSmjTXNMjlQoiX+Xy+9WLacZEXALvx+zcTQrZFUSzaDDCSpSN0SC5E0YsSOgNYLpdrQojK9LZrkabpG9YJnPMJpXQNEhJdJOoC6iUndAJQfvDGkuSVbL081qYGQshL7OrQCYBL+qXx3jFbQtjUeweto+gqQAPg/NeEUqE+snaF8lIJ4U+s57vCEg3AFvsq4U2n00dszJ+7L8sylT9ezWQQ+h0NwOc+qvo9yzLlHaO9BRBCPISs2Q4VRA0DtAKyLFO5r3alaYpejwVtyzOX5pi2d6MM2Gd/sjE3NLGkeQwD3T7pTVSoPGMDgQKwWq2ed53c2nyAlPJjNpu9YD2Lva8O4LCqU3+BfZdu3DA32wDE8krVa/QBGw3A0QBF8UqfsDsDML0SKwc4ym20jhAVAn2Wp9MqoNKgDFxua47E5AB1T1/lSfUbEiAxPROj3FZ2oxSgbrZJM3QlqMf/vgSGfod3J2jLzuphoZoU114g1PMv3gu0jMCCtKq22KeB9xrejVC1UKuA0M1p93CpTF1DltjeR5dBk1zLOKzzLK9tsBqrzHrnAEMF6vDjOLw4GWOpIShmLOZoec3v854yYSublwLUIlfCMl6sj76q05+iKHJ1PLYLlYQQ8hMxGa4eFR0CugyeUm0ZY+EcgD89igrBG0ClBMbIWkqyPxLTbsdusRqcqgPT2tCllGleeA5dz3njIgBHCGwipVQz/sbHI6gckqdbVZpqFCVcDMBMjowxpYQnRIxrb9sORe0QDrIKDiEYAFNqZXnTYaESnzoW280P/gohtpgjr3fOk29mpanrOCiEKADOxR3m9zNJNhiEqwVglFvbgYn6OQiEqwbQB4SrBxAbwiAAxIQwGACxIAwKQAwIgwPghuDXLA0SwBEC2wBIW/uNLpGDBXAmHNBjukEDcEBAG1/uNDGN6XXfY7TN0PWfLQevAHM36vPPGjcDwFejIwBfcreyblTArXjS145RAb7kbmXdqIBb8aSvHf8BaGVbXxWPG5EAAAAASUVORK5CYII=",Jw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABMNJREFUeF7tWmGSmzoMtsxOf/QSTU/S9CRNpjOQnGK7J+hPAjOdbE+S9CQv7xqvjfVWhBBwZJCBEKYh/3YxQv4sfZIlgXrwHzz4/tUEwGQBD47A5AIPbgATCU4u0NUF4jieBUEwPx6Ph/V6ve8qj94nmUopkjvrUy6nWysLIAUB4BkAFozQAwC8hGH46gOGQOYBEX9FUfTNR27TWm8AkiQhBZ6bBCulXqTKxnE811rvBDJpiViuRJ4XAGmaLhBxKxFMaxDxdbVaLevWp2m6Q8R5ZQ2+bbOkmfUnLT0YYz6v1+uDVBfXOjEAZKJa638ughi1mK8AwNLlDp4nX5EOAPswDD8PBgB7Uqevv2SnbfADaFhwpxVF0Udb0WtASYhSCNnhH4xSP989weH3b/OpzDWISsHl2Dq7g9gCkiShvVUMwGBmhgXzx/H3mdbvyZeJxYtfbq6VCLHZbLYciXJrc7Cu5JIrcOD6WIUIAM5UXf7NkSTnBkmSkDvNyhbDbf68GRcIde9IgBABwJGfy7cdfn1lqrZFSXxaKluy8fMaEQA+H05/pAv8U40UNlgcoJKIwfGGBLg6QKQAWBEgE8mGIo4snQCU7L8uWpQ30MZyOgNAAhxRgOLwT2PMntJWRKQEqUKA9G4URRWgWZd6gmX4tTl7vBsAFTeQpQBn4K/8PwPA4Lac7PhbwEmJQVygYOIk+aaLNFiEAhumfEjVNt9kk6AFXKeESMQBViiiCxB/F6j6tFOxLgBskoRypexHn9MdM0IvAOijORMTCF84fydyJF6ouwh1AeBuHMClskEQbC8XmdPx24THMfBfAYArMtwegA3dBgpcAWEfrtpfirxdoHyiXGi8PQDVO8mgUcA2502a7sC6yz8UAOkm3SFUixmPBQBTzfEF4HzH1jWFk1Gkwg42vypn+QJQ3MomAJ6WYfi1sZI8mjzgfmFwRFGgbRj8kaaLP1Z12f8ydHKeu4bBtgD0mwniPgxXravD3RMhg3MFl1vQsCSICkAPdxu0I8E4LKBbf6C7BVAmmBnA7S9Dd6sJumpqFws4bR4VqlW0agS1DQc09CQbr+CuPTQqW1dQJAAM4rws5BYcUNOVqqgnqSzb++kMgN3Y7BsADmT+UHIrFDRky++PGgBXN9pZjcwf+HSLRg3AuX12qv4VqkpK8eKe4X0AqHSPivJ2pY3uOP2rjRWRwTILY8xHyfxA7wBIzI/rDEvaZ650mYsQEj2yVLqO5Zuetf0wx+r2iZHst3GB57KCrk21CavFNbxpk3XPqVsEWu8sFGv9zzUVYkcPn4bslUWhUgYHcIH4ezzT78tjMwVcbOPUtXmD+Lq2ZonYCRKmIVuWWaYBSTju7AJ5TcA1OEVjbXut9a+3BIUapnwjxXFaObiXqZDL7jK5b3zwb94dqrhJ9j+PXKATB5zP252pNfcP68jKdyrtrI+UAHuxABJSM8NTSzGSYsbJv9XCg6+9Bqd6sYASCO7GaQFFZhXEEUvJaG2pF9nrcGYvUYA7XiKlIAier4YfT4sz/20annTInQUBbBGhOlSZy207ONmbBbiVfjc/Hv8b7SD1TQHokmMM9e4EwFBIj/U7kwWM9WSG0muygKGQHut3JgsY68kMpdf/8L0hffo351sAAAAASUVORK5CYII=",YF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAx1JREFUeF7t2kty4jAQBmDJLHMJjpKcJMNiXPgYOUGWprxh5iThKLkI1pQIBmHk59/dUk11lok7tj/+1sPYGv2BBCxUrcVGAcEQKKACggJguSZQAUEBsFwTqICgAFiuCVRAUAAs1wQqICgAlmsCFRAUAMs1gQoICoDlmkAFBAXAck1gzoB1Xb9aa9/3+/0OvM5V5YfD4eic+1tV1WnVP5hRxJZAj1cUxZe/BufcH2nEpmm+nHOvxpjvtm13XIgsgCGeMc4YY0URA7wuQ99tW+yq6jd5EskBH/Eee0AiiRG8AJE+ieSAIzdwuRFOxNFzO98L9EMJOWBd19vNZuMHbz/+/KBdmvj+w4E49cFZa09lWb7NmBcWHUIO6M8eQ+xfFSViKjx/TyyAkohPeL24cyWvCwQboARiyuSJAN4R7dE5exsTKdo5BzzWFg6RqMfEYbyf/uVu2/DeWFuYAzGX5Im1MCVibnhiLTyK2F8kDiy2c8RLArhmds4VLxmgP/FnXW9fejuW2OxcFMU23NX0j5GcMGJbFLFJJHbyOdu+sX1VarykCexg5ixxop8809520UaYcyu35EKGEJ/ml+svckhekmXMGOpgEoX3tks++CxaOLzgqdnWH0v5FGcpVnaTyFK87vicEJPOwh3InOTFljjSX1RlmcA1eDklMWkCQ7zIju7yVOU67pE+CqMY+5LPwg/Ji+h1S5U568SUY2KSBE61bX+dlzOiOOBSvCU7lhRJFAVci5czohggipcrogggFV6OiOyA1Hi5IbIC3vFiqzwDf3sWnZ39qYJdPvfEwgbIlbz+Irj+rLebl8d3cW47levzOk5EFkApvBzamRxQGi81IgfgL+fcMfrkwrpTWe7JXzG7IUbb+T7+tm37Rv2qLzmgv5mmaZ4QpR7DD237OPBYn0iHiFJ4Q+3MhccK2CXRGPPO8Wbo1COpLonn8/mDum3Dc7O08NTN/U9/V0Dw01RABQQFwHJNoAKCAmC5JlABQQGwXBOogKAAWK4JVEBQACzXBCogKACWawIVEBQAyzWBCggKgOWaQAUEBcDyfxlwqm8Vuar8AAAAAElFTkSuQmCC",KF="_wrapper_glpc4_1",XF="_searchBar_glpc4_12",$F="_directionsContainer_glpc4_13",QF="_inputField_glpc4_26",JF="_dropdown_glpc4_38",ZF="_dropdownItem_glpc4_53",eI="_buttons_glpc4_65",tI="_iconButton_glpc4_71",nI="_directionsInputs_glpc4_99",fr={wrapper:KF,searchBar:XF,directionsContainer:$F,inputField:QF,dropdown:JF,dropdownItem:ZF,buttons:eI,iconButton:tI,directionsInputs:nI};function rI({map:t,handleDirectionsSubmit:e,setIsPanelOpen:n,setSelectedRoom:r,availableShapes:i,handleFloorChange:o}){const[s,a]=re.useState(!1),[l,u]=re.useState(""),[d,p]=re.useState(""),[g,h]=re.useState([]),[w,_]=re.useState([]),[x,v]=re.useState(!1),[S,y]=re.useState(""),A=re.useRef(null),L=re.useRef(null),R=re.useRef(null),D=()=>a(!s),k=B=>{A.current&&!A.current.contains(B.target)&&L.current&&!L.current.contains(B.target)&&v(!1)};re.useEffect(()=>(document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}),[]);const z=()=>{const B=i.find(Q=>Q.info.name===l);B&&B.floorNum!==t.floorNum&&o(B.floorNum),t.highlightShape(l),r(B),n(!0)},T=(B,Q)=>{g.length===0&&t&&h(i.filter(ee=>ee.className==="RenderedRoom").map(ee=>ee.info.name)),y(B),v(!0),R.current=Q},P=B=>Q=>{const ee=Q.target.value;B(ee),v(!0);const se=g.filter(K=>K.toLowerCase().includes(ee.toLowerCase()));_(se)},E=B=>{S==="from"?u(B):S==="to"&&p(B),v(!1)},W=()=>{var Q;if(!x||w.length===0)return null;const B=((Q=R.current)==null?void 0:Q.getBoundingClientRect())||{top:0,left:0,width:0};return f9.createPortal(N.jsx("ul",{ref:L,className:fr.dropdown,style:{position:"absolute",top:B.top+B.height+window.scrollY,left:B.left+window.scrollX,width:B.width},children:w.map((ee,se)=>N.jsx("li",{className:fr.dropdownItem,onClick:()=>E(ee),children:ee},se))}),document.body)};return N.jsx("div",{className:fr.wrapper,ref:A,children:s?N.jsxs("div",{className:fr.directionsContainer,children:[N.jsxs("div",{className:fr.directionsInputs,children:[N.jsx("input",{type:"text",placeholder:"From","aria-label":"From",value:l,onFocus:B=>T("from",B.target),onChange:P(u),className:fr.inputField}),N.jsx("input",{type:"text",placeholder:"To","aria-label":"To",value:d,onFocus:B=>T("to",B.target),onChange:P(p),className:fr.inputField}),W()]}),N.jsxs("div",{className:fr.buttons,children:[N.jsx("button",{type:"button",className:fr.iconButton,onClick:()=>e(l,d),children:N.jsx("img",{src:B4,alt:"Submit Directions"})}),N.jsx("button",{type:"button",className:fr.iconButton,onClick:D,children:N.jsx("img",{src:YF,alt:"Close Icon"})})]})]}):N.jsxs("div",{className:fr.searchBar,children:[N.jsx("input",{type:"search",className:fr.inputField,placeholder:"Search location","aria-label":"Search",onFocus:B=>T("from",B.target),onChange:P(u),value:l}),W(),N.jsxs("div",{className:fr.buttons,children:[N.jsx("button",{type:"button",className:fr.iconButton,onClick:z,children:N.jsx("img",{src:B4,alt:"Search Icon"})}),N.jsx("button",{type:"button",className:fr.iconButton,onClick:D,children:N.jsx("img",{src:Jw,alt:"Route Icon"})})]})]})})}const iI="_wrapper_1mlzu_6",oI="_scrollableContainer_1mlzu_13",sI="_buttonValue_1mlzu_23",aI="_active_1mlzu_40",Ll={wrapper:iI,scrollableContainer:oI,buttonValue:sI,active:aI};function lI({roomTypes:t,map:e}){const[n,r]=re.useState("all"),i=re.useCallback(o=>{e.setFilter(o),r(o)},[]);return N.jsx("div",{className:Ll.wrapper,children:N.jsxs("div",{className:Ll.scrollableContainer,children:[N.jsx("button",{className:`${Ll.buttonValue} ${n==="all"?Ll.active:""}`,onClick:()=>i("all"),children:"All"}),t==null?void 0:t.map((o,s)=>N.jsx("button",{className:`${Ll.buttonValue} ${n===o.name?Ll.active:""}`,onClick:()=>i(o.name),children:o.name},s))]})})}const cI="_roomInfoPanel_10nwd_2",uI="_open_10nwd_21",hI="_closeButton_10nwd_26",dI="_roomImageWrapper_10nwd_43",fI="_roomImage_10nwd_43",pI="_roomHeader_10nwd_58",gI="_roomDescription_10nwd_67",mI="_floorInfo_10nwd_73",vI="_navigateButton_10nwd_81",yI="_navigateIcon_10nwd_99",Xi={roomInfoPanel:cI,open:uI,closeButton:hI,roomImageWrapper:dI,roomImage:fI,roomHeader:pI,roomDescription:gI,floorInfo:mI,navigateButton:vI,navigateIcon:yI},wI=({isOpen:t,onClose:e,floor:n,room:r,handleDirectionsSubmit:i})=>{const o=re.useRef(),s="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExIVFhUXGBsYGBcWFxgXFhcYFRgXFxUVFRYYHiggGBolGxUXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGxAQGysmHSUtLS0rLS0tLS0tLS0tLS0rKy0tKy0rLi0tLS0tKy4tLSstLS0vLS0tLS0rLS0tKy0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAFBgMEAAECBwj/xABOEAACAQIDBAcEBwQHBAkFAAABAhEAAwQSIQUGMUETIlFhcYGRMqGxwQcUI1JyktEzQmLwQ3OCorLC4RUWJFM0RIOTs8PS4vEXVGNko//EABsBAAMBAQEBAQAAAAAAAAAAAAECAwAEBQYH/8QAMREAAgIBAwIDBgYCAwAAAAAAAAECEQMSITEEQVFhgQUTIjJx0UKhscHh8BSRFdLx/9oADAMBAAIRAxEAPwB4UV1FaFbpxDIrUVusrBOCK4YVIa4Vg3ODMQQRWMQOKgdau3LRqvcWtRijcWql1KIXBVW4tAwMupVO6lFLi1TurSsIJvJqKy1YAJIGp4+Qj4Ct7RuFYIUt3CPnQ25t4ISGRhrHL5UAlbeUENbgkGCNDB4ipcDJUTroKhxuKt4iD1lKzB059oq5hSoA6w4eHuosxZRanVKjS4v3l9RUq30++vqKUx2qVIqVGMTb++v5hUiYlPvisYkCV2ErauO/0P6VIGHf+U/pWMR5KwpUvSLIGsnQSCJ0nmK7KVglUpUbLVpkqJlrGKzLUbLVllqJhWMVWWonFWXFQuKxiO3gDcnrKq/eaYnsECSatYTY6qZN9D4K/wClD8SxEQTx7asbOk8ST41jBhbNv/mj8rVlQ7Ow7LbUPBfXMRwkknSfGspgHoQrdcit0wpusrVaomMNR43aa22VYJlHaQRxt5OpHac/uqSaVbr27lwg38hzPqVkdbioIiDIXjxiqY0m9wPjYJ7V2kF6N3FxShdmRTPsKCQ0aMsMD5+NXHtj9p98DTwH+tD8bszprIm6GckEOBxWBbI75HGrODuHKUJBymFMzKwCJ8CSPKjNLegp3FXyY4qtcFWnqvcFRMU7i1TvCr9wVUuigYEe0ygjn/PGlvelLVp1BDZrkkERAIIGs+NOCp1h40B3w2ZcuPZKBSq5s85Z4qdJ7poUEBYS3pNFtl2QV4cz8TXHRZVireyR1fM/EmgEt27I7K1i0yqI01/WrCCo8eOqPH5VjFJSTMk8KMYPZ6FVbWSAePnQm2OPh8xTNg16i/hHwoIxtMOO+plwwqS0tTBaJis2FXQxw4VnQirRWuMtYxQxdsBT5fEVTuVf2jovmPjNeX7U3rxAu3FVlyq7AdWdASPlWow9MaiY159/vXifvL+UVwd6MT95fy0aMPztULmkb/ebEfeX8taO8d/tX8v+tCjDdieI86v7NXSlzY2Na8oLRIBmBA1OnuFNGzl0FYxcfFIpgnWsrdrCq4zEamT5T1fdFapgD2Kya5Brc0QG5rJrU1qsY2TXnNu+elvIetFxwJ4jrtlgzXok1wyjsFNF07CnsANnY4W7B6TTIdSx5mNR2jUkdmorvD4tWvLFwPmUkQCDliVzDxJ1oubK/dX0Fckd1M52A4eq71O9V7lIYguVVu1ZuVWuUGYpO0GRxFDsbZzozsoBzCOffRG7UGKH2J/EKVhAlwDn2f8AxVnZg6v89pqvfq1sz2f57TQMX0FQ4/gPGp0qHaHBaLMVbY0Pl8aaMOOqvgPhSujaHypssroPAVkZktsVMq1wgruaJjoioytd61yaBgftXgv4vgprwvEvmdz2sx9STXtu3LkCexXb0H+teGCsE6rK5zVmaiY2K2awVjVjDXusn2Z8qc8GIFK+7luLY7zTTaHVjt09dKUwRwqQi/hHwrKlC1lMAZwa3NcA1uiA6mtTWprU1gmya5JrRNVNo4gpauOvFUZhPCQCRNFK9gFomo2pMt7xbRZVdcGLiMoYECJnjEMdO/3VFc30xSANc2e4VvZaXCtEzlYpB4Hh2V1/4OZuklf1QkckJOk0/Uc3NV7hpQ/+oaj28LcHbDjTyKij+yNrW8UjsgIyRpmRvaMa5Tpw50mTpM2NapxpDlhteFQvab7p9KobzLOGcdrWhqY/6xa58vGtNuVhi6nLdAZ4OW6csFWYnMCRMiY8qOLp4zhqlKvS/wBxZNxV068ef03/ACJL9h/uN6Gq2KQi1GRiS6qANDLGBxpfv7KtnEdFbv31Jd4+0YjIhuKDoO1V56z36Hd2rbWsQts32ZWslybpLAEdFrqBIl29B2TXXL2ZoWpyvvVDU/79uQdfwl4Ak4TEgKATC22gMYBMP21FgscqyrWsQIksxtKFUAmSxz6AdvdRTaW/KhcVay5biRbtlQOjudG7S7+yVnTTXiaqYcudmZm6xe1fJJME9Z9YI15V0w9nQ03OFb0t33ViRcq3f9/2wiVgkVW2h+75/KrV32m8TVXH/u+fyrwJLcdFS2DrJEDgI11k6691ONsaUoqND4j4GjeD2i7GMq+poILDIrtRVNb7/dX8x/SuxiG+6Pzf+2iAs1waq2scWzdQiCRxGscx3VSxW1GynJbcNyLKCPODQMdbTshyVPAoQfBtPlSBc3LGuoVQGYksYCqCxJMHgAae9nO91hnEEkLwjmdYPiKEbW3gwgS6hN8Bhds5glpoPWts2XpJjjEgTVcWGWR1FBuhKv7tWlMHFWgewuQdRI0Kdhqvc3fXlicOf+1UfEa04jebZ5t9HJ9gKCcJanSZaQ8yZqLbu1dm4hy1spZHR5Aowp0OV1zSJk9dTP8AAPL0I9BDVTbrxr+CalPul/v+BTtbvEmBesE9gv2yfSpbu7N1DlPODplIIOo1FMGBGAmLdyWmdLV4sAOk4RbJGjp+Twg9j7IDKeRUQCGUjJ1CGVwCDKniKh1nTRw1pbfpRROwNs2yFAUcAT8aPWR7H4vkaD4ISaNYISx7hHmdT7orhCFAKytisomLlneLCtwv2/zCrdvaVluF1D4MK8mOw16JXDtJ6PQp1ftGZSQ3YI8zI5a7TdzWTcQQRAuLoevk7ToNSfCvafsnwkU90z2C3cDcCD4Gtmk36Obk9OuVBkISUBUNBY5iCeOseAFOyWGbgpPlXl58TxTcH2JtUyA1S2sPsLv9W3+E0XOEj2iq+cn0FU9q2l6G4AWYlCBAjiOzianHlAAG7D2BhrHSFk+yEMzW0Vj1dAzKZJ1I4mBy4VS3lxv/AAFglvs0fKIM+1buATl1Pj39mlLm28S1zA4ex0F5WtFJzWWHs22UmZ11PZQS5tS89oWLl5mtoRkt9XTKCBqdVABjXtr6fF0uqamnvfd9vI3xSlqaSaeyXH1b8/Db6jDsS90g6Ug5mdm/fkfaWxo41J1PafiprdBIu4wNPs2P8GnEcKXNiYy0lkK7KGDHq5wDq9vjI7FJ4/6mNgLbcY0dIAh6DrBgR7IkTw46UfaVrp5t/wB3ReW8Ugnt+9be0yL1iGtMyrLvlW/aLHKoJ0HdQXfDeS/n6LCZksghluLauWnDEQ8SF07dOZrrEX7eGP2KlyeJTSBxjMTB8BQzH7auuZVsXZPcrRz7xXg9J10cS3jq9Tmlg+NS32KG7uIC4vpcQ5EyWuXJkliASec8+NG7WNtu7G2ely4R5UBX1z2Bly6g8OBoBg9vYxLoFzF3FT+NZJnuy8aY9oW9o3bLN0oSyUljcCocoOaSVUsugnyrr6n2vGcWlCrVLf8AgdQbAWKxpCnLgwG5ThlAntOUDSrexr6Oh6TCoGAJfLbZRxMcGE6dk1Ds/YONv2y1m+lxNRK3WjhqOso7aL293sTbUM6KABqc68fM15EutzxWzf8AtlVhiwjh36QZ14NrwI9x1FR4+y2hjQTS7j9q9Hla3cXN1uBB1ykj3ii2CxT3bSPcbMxWewCewVzxyyfKM8SRInDz+VX9l+35H5UPTh5/KiOyfaPh8xVkRYYFbrkVuaYUiw/DxJ+NbeuMMeoK0+0LKkKWljOiwcscQdeNJOairZSMXJndi8ts9K5hLY6RjBOianQUD2Ftmxh7IQ49lVnLhvq7rIJZiEziDq8yZq5t/GWzg8UUOvRRwI9shfnQnY2xMHdwdtr1u4XECOlYHVQSyWi3skniNOVet7NhrxOd967P9SPUfBs8bn6WGsJvFg1a6xxlhzcVVBuW4IChpkcPaaaUvqWHKopv4IwVLHOgJyqwIkoCQWYHXs1mAKMYndDANcsJbzoLt0JJuqwC5WYyQTGi1BvhuPg8Pcw6WL1xuleDwuEKFJJQKNTIEePnXd004456YyacuzXh4JcehLE7VRxNLj5aKLbIsm0yo2GZiDDZ7JOY2raTmJkDMLjd0jnrRNsG4s2ERrZKWkUxcT2hJcce0xSg+wFmyFuMTctPcb7M6ZC+i/e0TU8AZ7K6XdkhWctBVLTqrIYfpmhRmOgWJOY6GIrq6rocnUKpSWz8PTxOje+B22bgm4Nay94ZW9IPdzHOrtmx0ZMnQmQToCIHv04Uq7tvlxd20EsnoRdYXEtC2zEDowJ4hTmnL20z7AxC31XMW00iT1W5q686+c6rB7iehjLctdOn3l9RW6vNg3BjKfKsqADzJcfme0gkAMoYaHMQ+n86U3o50AzgZhoHWAPrMjQ8IPPmetwpGwyjpVE5jnHszHtDtEmnG+okTIJLf0f/AOxBgg+PCdRlr7Bb0dsXZc+jt8t3FkmIu6kxAiZJPCmPae+NtCQtzpDHsoCTP9kRSduvcVbe0CwBUM0g6AgAzM8BV7ZW2sPoossOwIA0+kGvlPaeRx6iSRJQUm7LZ3jv3B9laQE8TdZge/qBfnVS4+Jukh78DsT9F19TRH/b+DGjE94NtuPeIqHG4yxiUyWsX0EceqFmeQLRHka8/wB9vuF4l2MweGYatdcxyLz6/p/Ig21ibltGYNMKSuaCAYJHH+fDiQt3cdYLLtC1A1JIB94eq67mXH0THYd+7pCD86vHNFdyTxy8AFh968RdMHDYa83YcPnb0Bo4u2V6JrX1e1Ya4FLhV6NuqZEqe+pMDuZtKyfsr1pQfuXWHjpkFNO5mFvQUxdtFA1DXXtu5Y6aKrERHM61suduFKe3hY0ItPdCJj7n2T5TDZTBnnGlC323iIIW8+UjhIIgjh769+/3dwrDXD2W8baGfdVa/ujs9VzNhMOqjiciqB5iK5IOKLO2eSbJxRa2jSZKgnxohi8Y623YMZCkiSeIEiju18HgVVhhcMBAPXzXFUQP3Vza+deY3NqXCIzt7qTRqew10htw30g4lWFsIjAlQCdDrEcu+jWJvs5zOxY9/AfhHAV5rsdpuWp450HowHyr0S5VJbOheUec4jCayXT2u0EiTEwDPOm/ZjDobQB0yLrw4ga0ExWXI5Eg5THXbjGmk0cC9VdNMo08qeW1E07svMmnU60EgyQI0FWME7ISShOnIqfnQu3gV5IPSplw3iPAmq6iNB5ccOaOP7M/A1Nhr4uMEQMWbQDKw95Gg76XltMODv8AmNdPvFfwK57ZDFiAc4BMdgJGlCWSkGMLdD1a3aZVA6QSB2H9aWr24V8YlrwuWspzadYGWFvuj9w+tDdj72Yxi7G8xAuMoBhhCmOffNEn36xI0K2j4qR8DXJPM3szqhirdFbbuykt4e5av4hLJulQGIlRkbNHETIoxsfeK0iWra42wQhExk9lQoGUTObTmYpJ+kzaLXrWFZwAz53IXhoFAifGquI3Nxt62HFvDZUgFkhGJIgBpGtfSdF0ql00baq73S5OPL1ywSak0r8fL7Wel7WxSYq7hz9a+zt3TcJUgMDkYKRl1OrHSYj0oHvXhr9x7D2UF0WxcJ66oZeANWmRAngONeeXNx8cBm+rkrrqrIRoSDznkapf7LxaObYt3s4AJVMxIDaAwvbXXhx6ZpwnFtdv6/M5cXUY+079f2+4z7F2FjEe4160zRZdEBvdsABcjTpxC6DTWmI7OuZsuRspuYVSQWYZbSyxJfkDxPBSNBXm92/jbPtNibcfeNxY8c1dW95cYvDE3PMg/EV2vJ1D3qP5/UvGarYYtni9afaGIKMHCHKWU9Yu/EaDNw5VmwdoXeldoAuLBdYgOukafeHbQa1vnjV/pp8UX5CrNvfzFjj0R8UI+Bryur6XNnyvI0h1NJUemptpiJUgryPbWV5wN/r/APybPof1rK5f8DP4G1IYcZuzZt2yzXmtgR1yqnKZ0OYAHzqjY2WG/Y7UtMeUkEzMj9489aZdubAx1+09pTbyMIgHz1JWqOx/or6OHum7dYQRbt5UkjUAFuPqKMet6hfiG94yC1sp8Pgsd0l225u22IZTxJUjmBrJoDulijkkGGXQxx0puxW5633KfVfqw5lndrmuuqzlB586Vt5djNssKbF3pEdpYkAFSsAKYkZTJ104Vw5c3vcmqXJSnVkW2rpfGlu20pbvaSAT5AelBNpuwuESYZJGvNDJjymiuxtj4nat641h0tEIJnNk6sKFzAGDz9av4j6LNpkgl7Dx2XW58faQVCda7bGi3ppIUFvvyZvU0Y2ffLW1Y6mBPzq7d+jraSf9WzfhuWz8WBqlc2LjcJbm/h3tpMAsBGp01BpJpSWxSDae4QtGo9pXyltmXiBPpQ1dqZeIHrXN3auYMsLB051FYnZVzVDDa+kLG2oVbkqAMshTpAgaqaZcFtW7jLa3bzEnkvBRpxygAT5V5TYuyqyRIAH5dPlXpW6pnDL/ADyFPOKRNO0X740PgfhXndrE3mVSbSNMAk21OswfZbuPKvR7o0NeX7O2hlzAPHWJ9et/mNNiSdk8ja4CeEwWa6qiVCMLpHR5OLyFJIkiQ3OOFODikzZmPJvk5pzZE8RJP+angpWycghdCdjthuqTmmWUcDPWYL86Zdn4Dqrm4KAO8kCjlvBmBIqX6v3U73Jp0DmsDkK0MPRP6vU+Cs2s6i9cW2nMsYmOQ76z2AtzrYu6pvIXZ8g/d6sz2niNKg2/9HNy8gVL6AhgesrAGOWhNXtub/W8PiVsWRaup0YY5W4akQGEjgBpFW8Nv9hm9tbiHwDD1Bn3VzSyOzojj7oU8F9HeLtKQWstLM0q7fvMTzUdtVcZuXjBMWgfB1+Zr0JN7sE39OB4q4+VbfefB/8A3Fv1P6VN03ZROSPFd/rDdJhLEdYWwpHYzMFI9RTTa2Xi0sHqXWudJ1b/AEsrkyibeRuJkEzS7vsTc2raC8Ytx452b503Xb+KSyCFu5gWJY5GtMo4ZREg9s19t066iHT41i0/SV+nHbxRHBj6PK3HqJQu9lJrjx389jlMHjkVM1jFNKgnItoqZ6xgKsnjznxNQ7m4tRjcY+JlGXolUMjZxlDEdUEQ2oozZ21ZcW+j2gpdBlHXSQCFzAQdQSo8Y1oRuohZ8bfN1WK4hoNyW6To1A8Dw51LIlolKUVBv8SW/P7ngZep6Gm8WJOSq1Wnb68HH0sbVR8OEGVmdkhsuV4nMQwBM8KU8MFGItBrVhgtkwhNooeqx+2MKGuAE8etKrRT6SNoB7dmRbXO4uHomDZeqZUgRlYZuFJm0tqFnzW2ZRABiV4ciMx8ePE16/s/HLDgcZu278vL7no4oe7T149Dv5btvzvzOsBhA632yFsgHIEKCwEk5hry4HjyojZ2KufCh7NzLdhjlS4HupMsLYgyYEAqI1E1DstlGEu5i+ZnGSNEkR0mY5CDKkaBhEcDpR2zeVcVZK4hl6OzJdykJcCnSyFZNCcvMNqa9Fu4vbx7eX3ZaMLQqY/DWhccW1ITMcoYnMFnqhpA6wGh041lE7WAu3BnFpWBJM5uOpnUtJ1rVdSjgSppfkBxPerW0RztXB4BG/wtQjevaOONlvqaC3wAEqbzAkT1ictrSeEnvFL1vfeP6E/n/wBKmXfkc7H9/wD0r8mfUzOtdPEq7D2XtNiue50KDiCwus2stPESddZnWni/sy0VANpSOwqD8aE4TfDCkDMzISOBUmPNQaK294cIw0vp5mD6HWoym5DqGktYCwqaKAo7AIHoKtYjEW7a5nZVHafl2mlTaG9mpXDrJ++3DyX9fSl++z3Wz3XLt3nQdwFKrC0Mm0d7ZlcOn/aMPgv6+lKO8Vhr9p+kcsxjVjoOsNB2VdUcKobyOVw11gSMoDSND1WU6d+lPFboD2QotseSQmQkGCAdQYmOHZrUDbvXDwX0M13hMQGvM1vEX8rIHBypmzJmQhswI0BXXTj4Ua2cbjABMSfO2jRMnWAI1nnXQ8bXcl76+wmvgGDdFkbpS4VRGnWiCT2fpXpG6tkpYyNEoSpjgcpiR3aUPu2bv1nCi5dR1LuerbyEZbTRJzGeI5UwYNIa4B96fUAmlycI0HbJWFKV3cj7reo/Sm80UtWe6hjBkPMtkbrtnZ9T0d2IA45Msx769M2bs4LDvx5L2d57+7+RatWQOVTXCFBZiAAJJPACqNW7J6nVEVxZrg2amw2JsOARiLMn91nCn+9Vi7ZC2zcLJkXiwdSvGOIPaRTaGJqRR6Cl/fdCMKfH4Bj8qZrN5HEowYTGhnXs99L+/wBphT4n/A9JLgfH8yPKNjMxxKkkmFOpM+Gp8abXOlI9rEFHzKYMevdRK1vG40ZAfDSoZsUpO0deOSQed4qNDmdV7WA9SBQPFbwDLKoc08+EeVEdmYsnEYJSATeKPpplBciO/RJnvpYdPPkMs0VsEMWwfbgzTlV1HVBY6WwdAJJMmnnbO0bS2MVlu3B0dtujRhGuQkq2YDK3d3UlbY3cxy4x8TZVTLkqVdAwEQNHI105VBtHHbTFm5ZazdKXTNzqM8kxqXUkToO+vuMePHmxQ05EqS2tep8/1vs/F1C1u9afHavvYjxTruxvlawuEfDPYLM2frjKYz8IBjhSjcEHK4Kt3iPVT8q6sIFMtBHISDJ8uVepn6bF1MdE+OTtxTlCVxDm+O3rWMNvobPR5ZBEAFpgAwPA+tL3QNMZT6VOWcklUA/CoEeBAqFUPAtHcZ+FUhgWOKjHgbLkllnqlyMeDRfqltMyF3vaoMuqiQDcYOD7RYAEDQyDRXEYhxiMQ/7QLa6POQygJlChQGzmSOEnlxrMJbYjAWc1ph+0yHMq2yTOa65DdUhVcwIAJ0qricepOLfo7RN0wDlELLEk2SCsDQ/unQjtqkVqdVfP5yS/Rf8ApeK2SLOyrgW0g6BTodWFkkySZ69smNdJPCK1THsqyq2bQbZV66cinpOmZc4YBlbKLvVlSNPhWVw5Opjrfw9/GP8A3F0oVhXOKUlGCmDBg9/KqVjaqkhcrZjyEGreIxWQS1twO3q/+qvzrRJb0dmpcC+l8vaViTmRipPOG6y+moqWzi3BHXb8xqsbwFy6ADluCRPbOYe+a0rGuhpEotnpuyv2SeHwJq0DQ/Y9ybQ8/wBfnVlrtc5RljNVXbizhrw7bbfCuumHbVgYY30e1bAZihHEAaggak08Yu9hG1R5Bh7pUoRMqSvbpy+Aoph9qMpnN7qNYncjEICWsXBGpgBoHacpPZQv/ZA5E10y8yCRh203S2mkdUP/AHgB8qed2sSbtsueJPw0+VeePs/LeVeMqT6EV6FubaOQqBJmABzmall4VFMfLDVuwWIVRJOgFMgwUVNsvZ4siTBcjU8h/CP51qdta0I0JOVlB1CgsSABqSeAA7aStvbZN85VkWwdO1iP3j3dg/kQb2b22muvhxcCrbYqwMjMynWSdIB4Chti8riVdGH8LqT6AzXVjh3ZCT7HQFaYcABJOgAEns0HOunMCTTf9Huws5+t3BoP2QPMjQ3PAageZ7K2bIoIOOGpjTulsL6thwlwAuxztIBgtHV74jj2zVvamwsNiEKXbYZTyBZeRHFSDwNXgT21hNeY5N7nXpoRcX9Euzm1UXrZ/huk/wDiBqE4r6HbX9HinH40VvepWvTiK1NHXIZHzvv9uK+zrSXGvJcV3yCAytOVmkgyI6vbSrYvXrt2wqk9IMlq1k6rDrQgBEay3GvpHfXdxdoYfoHdkAYNKhZkcAcwMDwivP8AA/RU9i/bupezBGDQV1kagzOhmDwrox5ko0+SU4NysXVbbNgkOuJyjmydIPWGqZd78WnthD+JCp9xFew2bhiCVBHKaV333wLyrXYjQh0aOMdhFZZJPgdxS5E8b6X8oN7A3MhEqwD5WU8GXMkEEd9Vf95Nm3J6TCBe09Eg18bZmvV9m7xYS5CLibGUKAqrdVeAGmWQfKvLfpWsq+KGUBQba6rEGC4mRxrvjKcVcZM5XJeBDabZVzg/Rzw69xT/AP1kV2+62Eu628WfzW3+GWkK5hyKd93NiYO/ZU3bbq2oLo54g81aRwiuiPX9UlSm/V3+ptmtzTbi3F1t4lZ5SrJ71JqC5uzj1UqtwMpMlVunKT2lXgE1Y2hufdUj6piXnse4UkaRkKiJ4yD3VFZ2dthDC3MxH7pdSfRxMd9VXtjqIOm0ZQvgqnZW0P8AkjyWx8q1RE39sjToQe/IPkayq/8AO5fL++odMvFgVNjBBpmL6HpQxWNZhFHEHtPbyqTEKzGWJJ76g2XtoKttCYCqQSwJzMWYgg8lC5R5GiuG2hZe6bQZDwKvMKxMSNeBGvpXzs1ks6McoJC7j7UQ3YamVeymHaODQucOQA7IWU/uwJ1B7RHDuoPZS4iFGw9zOkycsWwBrmLeHrRWprgOqKlyNuw7v2I8vgKnuXNaFbAv/YBj2TwjTWDHhVZ9s27hgOsd5A9ZilhjcnQZzS3CWIxnIev6UPuXJqM3Qefpr7xVS/iZ0X1/SuuMVFbHNKTZYu491BRXaDxAY5fMcDTNufgFuWSzCTnI9y/rSWor0b6O1nDv/WH/AArS5LaMi3ht2LPTdMZJyZMpjKNZJGkzTHsrZ9qySbaAE8Tx+PDyraLVi0tSSCWi9ckVoLXRFMA+bN7v+m4n+uf/ABGg8Ub3yH/H4oD/AJz/ABoNFVQr5HX6L9gXcdiCpZhYQA3WkxrwROx21EjgJPZX0PZshVCqAFUAAAQABoAOwRXz9uPvTewtprVslQpLsCikHNOuup0EeVeh7M3/ACVU3F4gGVXt14ZtK4c7bkdWOPw2egxXJWlzD72KwlbbXBz6Ih2Xva2crjxgjvqbDb4YR/6XKf41ZffEVGh6YcM1wSahw+0bVz2LqN+FlPwNTMaxiNm7qjJqQmuawQTtqwvRu5HsqxnwBNfPN+yew89eXGa+l7qAgggEHQg8weVLmL3MwLz/AMMintSUP92K6MOVQ5J5Meo+f3HhXAEcNPCvZ8Z9G2Fb2Wur/bzf4waB4v6L/uX/AM9v5qRXQuogyTwyPNc57TRLAbfv2VyKVKzMFQdSNTPHl20wYr6OsUvsm0/9plPvB+NCcVuljE44djz6hVvgZ91OssH3E93Jdi3h987yjW2h8JHlqTRWxvtbIi5ZYdhRhp3gGAD30m38BdTR7Nxe9rbD3xFVy44aT4/LyotRluzJyiekpvkkaOY/jtgt5lXAPpWq81JPL4VlL7qI3vJBDZ7oLahrasIB1k+ccKj2stk5WW1lAIzhdAy8/A9/fXOGEKPAV1ecEEdoodzVsdY6yiBbuHe51NQGM5R/BIqbG7UxPQOGvo4cDN1QHjTKVIiQdATx7aq2F6kd0VVv24tgTOtEDQ6XGXocqMCOjRdO5ApHupBpu2XqjAknXSTPZpS6cLbOgvqDzDq6wewMoYHxMUmPlj5OERYPRxRlaEpayvEgwRqplYPf50WWqkiVa9G+jU/YXB/+T/ItecrXo30aWW6G4xBCl9D2woBjt1pZcBQ621qYLXCGuppAkk1grkVsGsY+fd8NqXRjcSmYMgvPlW4iXVXrfui4rZfKONBb+NV1I6G0rH99A6nv6ufoxPcg7oq7vmf+PxX9c/xoVdw7KAWUjxiefEcRwPHsNWEDO7yjLdj7qz49erP15hdtJPVyj5/pVfdlZW94D/NWY1Mt6z4Af3m/WuaSTmzpi6ghqtuRBBgjmOI7weVX22qzftlS93uCH/71CrnzJHdQ+2NKxjXLdFy2ww7cGvWj3hL6/wDlsB5tVmziLifssco7i1+16gqV99CIrgmtfkHcarO8ONX+nsv43LB/zBqIWt7cSBL4ZXHM220/u5qQGNVmxwRwJgnhGnvrKN8GvxPTbG/tg+0lxfDKw+M+6iFjerCPwvAfiBX3kRXie0nJusxYyY1nU6DUnnVa3i7gYwxgCO3Xjz8qdY7Qrkj6Fs422/sXEb8LA/A101eJjC4pQD0YbSeqyM3ojEg90Vibw37TZS11D2ZmH900uh9g2j2dlFRtaFeXYffi+ONwn8Sg+8a0Sw+/7fvLbbwJU++aDizbD02HFUsTsm0/tW0b8Sg/EUFsb72zxtsPwkMPlV6zvXhm4uV/Ep+U0N0Zogbc/Bkz9WtflFZREbcw5/prf5hWU2tg0+R4dBIHZWZaPW8BpXL7Prr1nNQETSq+L5eNHG2fQ3aGFKtbHafhFGMlZmti/sh9G8v591LuKX7Rh/EfjTJg7WSZ5il/HSLrEaGZoQ+ZhyfKiO1IYA6aijqUCthmObUxEnjHITTtuxsB8XcgSttfbfs/hH8R/wBasyKLW6O7jYt8zSLKnrNzY/cXv7Tyr1jD2VRQigKqiABwAHKocHhUtItu2oVVEADl2+J76nmpt2MSJXU1GDXS0DEsGuhUYNbrGPm/eozjMT/XXP8AGaGvdZtCzEDgCSQPAGnP6WFA2g0ACbaEwAJJzST2nvpMHhVUK+Q/ukNLn9n51Y28o6awe0gf3l/Wud3b5fpWIE9XgIHPlW94n1st91p9Cp+VS/Gyr+RB29iLdvR7iqSCVBmWy8QIB18a1avq4lWB8D8RSnma/ca8QYOiDsUVvIQZBIPdpUJwjdIvjtq2NZqJ6AptK6v70/iE++phtg809DU9DHCT0v7U/bW/L4miQ2kD+6fdQraVzNdtkfzBmqYlTEycE2Mudc/zyqLZ41WebAnzM0T2NhRfvsIkBWPjplUa9rMtMG08Fh7Vq0Ra67r1WGkEKCS0d1Nfwit/EBv9oKXKc6uriWIyk5l+6wDr6NIFLGD62JY9k/pTGlSnFRHhKzi9hLLcbZQ9ttjH5WkekVSv7GB9i8v9tSh9RI99EHqMmgpNBpMDXdh3wSVUHQQUdDwnkDPZUgweLHC3d9CaJVo0/vH3F0JcAxvrg/orn/dn9KyiWbvrVHX5IGl+IQStnn41qsokjYFBtt/t7Pn8RWVlNHkDL20dMsdp+FGr1hCsFVIjgQCPSsrKMQvhCRtu0qXIVQo7gB8K9n3JtgYKzAAlZMDiSTJPaaysqr4Jhp6xOVZWUrCdL/PuqUfz6VqsrAOlrf8APwrKysY8T+lf/p5/qrfwNJT1lZVVwLLkPbr+zd8vnXW3/YT8XyrKyo/jZX8CCGDUdEug9kfCoMQKysrk/Edq4KF0VwtarKqKTCqWK/aJ51lZTY+SeX5Rq3C/bt+H9T8QPSi+8o+xwv4f/LFZWUHwI/nETYn7S5/PM0xpWVlLm5HxfKafhULVlZUihlctWVlEBo1lZWURT//Z";function a(){i("",r.info.name)}return re.useEffect(()=>{const l=u=>{o.current&&!o.current.contains(u.target)&&e()};return t?document.addEventListener("mousedown",l):document.removeEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[t,e]),r!==null&&N.jsxs("div",{ref:o,className:`${Xi.roomInfoPanel} ${t?Xi.open:""}`,children:[N.jsx("button",{className:Xi.closeButton,onClick:e,children:"×"}),r?N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:Xi.roomHeader,children:[N.jsx("h2",{children:r.info.name}),N.jsx("h2",{children:r.info.type!==""&&"("+r.info.type+")"})]}),N.jsx("div",{className:Xi.floorInfo,children:N.jsxs("p",{children:["Floor: ",n]})}),N.jsx("div",{className:Xi.roomImageWrapper,children:N.jsx("img",{src:s,alt:r.name,className:Xi.roomImage})}),N.jsx("div",{className:Xi.roomDescription,children:N.jsx("p",{children:r.info.description})}),N.jsxs("button",{className:Xi.navigateButton,onClick:a,children:[N.jsx("img",{src:Jw,alt:"Navigate Icon",className:Xi.navigateIcon}),"Navigate"]}),N.jsx("p",{style:{fontSize:"0.8em"},children:N.jsx("i",{children:"From Main Entrance"})})]}):N.jsx("p",{children:"Select a room to see details."})]})},bI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAsNJREFUeF7tnFFOwzAQBZMzIAH3Px1C4gygNCBa0njX2+c8CtPf2LvpTNZO7LTzxMdKYLZmJ/mEAPNFgAAEmAmY01MBCDATMKenAhBgJmBOTwUgwEzAnJ4KQICZwI3pX17f3lshnh8fmhc5FYCAGwmYu1MBCDATMKenAn6LgGU2vTIdMwkPFkQFDAYchUdARGjwcQQMBhyFR0BEaPBxBAwGHIVHQERo8PF9Acs96TxxG2oTsCZGwI6AaOjIe1uv9NMbVjyI5bFdCviEmO+ebkkFDK+AtgsEICBdrYc21M0BVEBJHAJK2HSdEKBjWYqEgBI2XadIQHT3ojqTf/tWBAJUl1AxDgKK4FTdEKAiWYyDgCI4VTcEqEgW4yCgCE7VbRGws4J8SsFtqIp0cTEOAQgYTKAY/urY3RpLknl+hqACikNHxDvrCgGDBESCvo4joCDg++ru3eN9n+ZpvthTR0BBwKZLdry5kgsBCgHZ8QYBeVLRE+ze+zn5DGtLKoAK6L1mjmnfeqFqGfKfgt/lHnOW+Sx3tyMWDUFHDR15xO2WCFCRLMZBQBGcqhsCVCSLcRBQBKfqhgAVyWIcBBTBqbohQEWyGAcBRXCqbocJiB6gVF+IB7Ehazjn6/vttX4EDBGQrw8EVAVc2Typ7KcgIBJQoZovgMPW8TtOqdmUSVhFshjnbwg4VVXuvxmKnIZ1MwnofWsh//2ZA6I5YOf4vYHLXxLtlqYK2J4UAlRKqYAuklRAFy59YwTomXZFREAXLn1jBOiZdkVEQBcufWOTgO2DGLeherkXEaMNGQQkBUQgk2E2zRCQJKcXsP465d5eqk3iCpt1zwG9ArLL/1RA6Gpt0CugGfbMDgIcAs5yIgABSQLaZjfMAdpNFSogKVY6BzAEnX5TyMdIAAFG+EtqBCDATMCcngpAgJmAOT0VgAAzAXP6DxlUTXCzOiKmAAAAAElFTkSuQmCC",_I="_modalBackground_15sjt_1",SI="_modalContent_15sjt_14",xI="_fadeIn_15sjt_1",AI="_reportButton_15sjt_22",NI="_reportIcon_15sjt_33",CI="_inputField_15sjt_44",PI="_textareaField_15sjt_45",LI="_buttonGroup_15sjt_59",kI="_submitButton_15sjt_64",EI="_cancelButton_15sjt_74",$i={modalBackground:_I,modalContent:SI,fadeIn:xI,reportButton:AI,reportIcon:NI,inputField:CI,textareaField:PI,buttonGroup:LI,submitButton:kI,cancelButton:EI},TI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAABMZJREFUeF7tnGuS0zAMgBV+cYxyk+Umy0mAk5SbLDdZjsEvCsqjm2Tjh2Q9nKLOMMyAY9nfZ8lxm3aAeLkSGFyjR3AIAc6LIASEAGcCzuEjA0KAMwHn8JEBIcCZgHP4yIAQ4EzAOXxkQAiAKwA8O3H4/i/uN6fYY1jvDMjAx6HdCmxq2hTxukrwFOC58vdW3CR4CegJ/iLDRYKHgDJ8kcpSLD1HDcwlWAsow2dxE73IVIKlgDPANy9HVgJc4TMrmkkmWAigwP8FAJ9EC8q2swsAvAAA/r15JSSpS9AW0BP8BXhSQkK8qgRNAT3C706CloCe4XclQUPAGeBnJBzsBm//JF6OpAWcCX5CQlYAXiMqQVLAGeHTy9HkR0yClIAzw6dLmK4QkSAhwBj+cEu9TT0Xj5Y5jbeoA8DlVnd6a5bQMlj4AHD9U/9hitQhq+ZDgpaznOk5oUXAdQB4LtGYSUjBx+5KIVvmNA73I8Dld+LELH1Y4w7WuOysp61agtaBTDKBI8AR/shHPQNWFtQlcASUACzjlyw765U5xU9vkpw55faMWcJwKbu/j6x6D+IMtkaAFnzrDODcopKYkhrPoykJ0ISfEXBPCc6calZsbTkixSc1rhTA6bMGwNKmtAA046OE18JgSfFJjbsSYLcH7HmLLgAhARsanD7PkgGFPWjkQJo/qXFXGfBOmfoesCqB2fcpSExJjfsWcDfCmVN7Br45IcUnNQ4B8gfBEEBZ+1PbHjfhzSw4UikYRAFQAmtUAA6shwJwOgEDwK1ggCOVwqGfBXB8M0SaP6mxRgpSyPcTv4vb0OQgOFIpHvrJgONRk+ZPatzPCsz64syJuAC6yIDkmA0AeAuQi8+B5V4CsutP/4uHovM/pYBCveDMiViCes2AaWlqA6DA0mj732eABlRKnyGAQkuhbQhQgErpMgRQaCm0DQEKUCldhgAKLYW23QvAr5nis0EP95of2h0fS8kcBkm34aTGle8FIfzPyhLw+Zyv8+8MYTz888UgJj4X+yR5ENQQgOPTlJB6OEo7Zg38JTmqs19LgKaE3NPZP+fsqwZQ0fACA1zhVlz5S1ckpqTGcwT8iS9M/5qXxqrEGvzupwbmwUg/l4pxDld+Yg/AMvijBgzL1qpjTwmv43e40rPkLKqj3pLwE6HJ8Mn1ahc4L2G7RCQzAX9sI7UR4upDEK0vE/itAvB6j0zIPaEscQs8wR/g6f4E0LyYpMrOenVIpKuXhKU2Y3bh5otfGW09f5it/NY9YJ/iHhJay8z+enP4EiVoPYmihFUKS+4JEiJc4EsL8NoTWgW4wdcQcDYJrvC1BJxFgjt8TQG9S8jAP7zZZB2yamqjxG1oLk5xY15dbLUxd7HypW9DGyRsVpy2hK7ga5cg0i1qTbrmPgWpup7WSK3sSJ+Ea6dFKUe1fWq1M4FvmQELKAEJhSdD25WYwfcQQL07asdJ68EUvpcAHwnlxDGH7ylAVkIZbikPXOB7C5CVkH9UJCfADX4PAnYS2pdyaamP//8WxhV+LwKqmD1qI+23Ih6Vm9i8QoAYSl5HIYDHTeyqECCGktdRCOBxE7sqBIih5HUUAnjcxK4KAWIoeR2FAB43satCgBhKXkchgMdN7Kq/Udw9cFVOhM0AAAAASUVORK5CYII=",MI=({mapName:t})=>{const[e,n]=re.useState(!1),[r,i]=re.useState(""),[o,s]=re.useState(""),{username:a}=mr(),l=async()=>{if(!r.trim()||!o.trim()){alert("Please fill in both fields.");return}let d=new It(!0),p={username:a,mapName:t,subject:r,content:o};await d.post(bt.view_maps.add_report,p),i(""),s(""),n(!1)},u=d=>{d.target.classList.contains($i.modalBackground)&&n(!1)};return N.jsxs("div",{children:[N.jsx("button",{className:$i.reportButton,onClick:()=>n(!0),children:N.jsx("img",{src:TI,alt:"Report Icon",className:$i.reportIcon})}),e&&N.jsx("div",{className:$i.modalBackground,onClick:u,children:N.jsxs("div",{className:$i.modalContent,children:[N.jsx("h2",{children:"Report Issue"}),N.jsx("input",{type:"text",placeholder:"Topic",value:r,onChange:d=>i(d.target.value),className:$i.inputField}),N.jsx("textarea",{placeholder:"Description",value:o,onChange:d=>s(d.target.value),className:$i.textareaField}),N.jsxs("div",{className:$i.buttonGroup,children:[N.jsx("button",{onClick:l,className:$i.submitButton,children:"Submit"}),N.jsx("button",{onClick:()=>n(!1),className:$i.cancelButton,children:"Cancel"})]})]})})]})},D4=({isPrivate:t})=>{const{mapName:e}=o8(),{username:n}=mr(),{isAuthenticated:r}=mr(),[i,o]=re.useState(!1),[s,a]=re.useState(null),[l,u]=re.useState(!0),[d,p]=re.useState(null),[g,h]=re.useState([]);ao();const[w,_]=re.useState([]),[x,v]=c8(),[S,y]=re.useState({}),[A,L]=re.useState(!1),[R,D]=re.useState(""),[k,z]=re.useState(""),T={enabled:!1,nextFloor:0,nodes:[],offset:0},[P,E]=re.useState(T),[W,B]=re.useState([]);re.useEffect(()=>{(async()=>{const X=new It;let de;t?de=await X.get(`${bt.room_types.display(!0)}?mapName=${e}&username=${n}`):de=await X.get(`${bt.room_types.display(!1)}?mapName=${e}`),console.log("loaded ROOM TYPES: "+de),B(de)})().then(X=>{console.log("LOADED ROOM TYPES")})},[]),re.useEffect(()=>{x.has("floor")||v({floor:"0"},{replace:!0})},[v,x]),re.useEffect(()=>{const te=parseInt(x.get("floor")||0),X=new EF("map",te);(async()=>{const M=new It;try{let G;return t?(M.setAuthenticated(),G=`${bt.view_maps.load(!0)}?mapName=${e}&username=${n}`):G=`${bt.view_maps.load(!1)}?mapName=${e}`,M.get(G)}catch(G){throw new Error("Can't load map: "+G.message)}})().then(M=>{let G=M.filter(ie=>ie.num===te)[0],H=[];M.forEach(ie=>{console.log("FLR",ie);const V=Ew(ie.mapData,Z=>Z.className!=="InfoPin",!0);H=[...H,...V]}),_(H),H.forEach(ie=>{console.info("PARSED Shapes: "+ie.info.name)});const ne=H.find(ie=>ie.info.isMainEntrance);y(ne),console.log("MAIN ENTRANCE: "+ne),h(M),console.log("FLOOR DATA: "+(G==null?void 0:G.mapData)),X.loadMapN(G==null?void 0:G.mapData),a(X),o(!0)}).catch(M=>{console.log("ERROR LOADING MAP VIEW: "+M)})},[]),re.useEffect(()=>{const te=X=>{p(X.detail.room),u(!0),console.log("SHAPES REG",on.getShapes().length)};return window.addEventListener("openRoomInfoPanel",te),()=>window.removeEventListener("openRoomInfoPanel",te)},[]);const Q=(te=null,X=null)=>{if(te===null&&X===null)return;(te===null||te==="")&&(te=S.info.name);let de=w.find(ne=>ne.info.name===te);de.floorNum!=x.get("floor")&&se(de.floorNum);const M=new It;t&&M.setAuthenticated();const G=encodeURIComponent(te).trimEnd(),H=encodeURIComponent(X).trimEnd();D(te),z(X),M.get(`${bt.view_maps.navigate}?from=${G}&to=${H}`).then(ne=>{s.drawRouteNEW(ne)}).catch(ne=>{console.log("err",ne)})},ee=()=>{if(P&&s){console.log("NAVNEXT F: "+P.nextFloor);const te=P.nextFloor;se(te),setTimeout(()=>{s.drawRouteNEW(P.nodes,P.offset)},50),E(T)}};re.useEffect(()=>{const te=X=>{console.log("DETAIL END",X.detail),L(!0)};return window.addEventListener("navend",te),()=>{window.removeEventListener("navend",te)}},[s]),re.useEffect(()=>{const te=X=>{console.log("SHAPES NAV",w),E({enabled:!0,nextFloor:X.detail.changeFloorTo,nodes:X.detail.nodes,offset:X.detail.offset}),console.log("ROUTE LAYER",s.routeLayer)};return window.addEventListener("navigate",te),()=>{window.removeEventListener("navigate",te)}},[s,i]);const se=te=>{v({floor:te},{replace:!0});const X=g.find(de=>de.num===te);console.log("FLOOR NUM:",te,"CHFLOOR:",X),s.clearRoute(),s.loadMapN(X.mapData),s.floorNum=te,console.log(`Floor changed to: ${te}`)},K=()=>{u(!1),d.unHighlight()};return N.jsxs("div",{id:"main",className:dr.main,children:[P.enabled&&N.jsx("div",{className:dr.nextButtonContainer,children:N.jsx("button",{onClick:ee,className:dr.nextButton,children:"NEXT FLOOR"})}),N.jsx("div",{id:"map",className:dr.mapContainer}),N.jsx(wI,{isOpen:l,onClose:K,floor:x.get("floor"),room:d,handleDirectionsSubmit:Q}),N.jsx("div",{className:dr.toolbar,children:N.jsxs("div",{className:dr.toolbarContainer,children:[N.jsx("div",{className:dr.logoContainer,children:N.jsx(Vs,{position:"relative"})}),N.jsx("h1",{className:dr.mapTitle,children:e}),i&&s&&N.jsxs("div",{className:dr.searchFilterContainer,children:[N.jsx(rI,{map:s,handleDirectionsSubmit:Q,setIsPanelOpen:u,setSelectedRoom:p,availableShapes:w,handleFloorChange:se}),A&&N.jsx("div",{className:dr.downloadRouteButton,children:N.jsx("button",{onClick:()=>{s.getRouteImages({mapName:e,from:R,to:k}),L(!1)},children:" Download Route"})}),N.jsx(lI,{map:s,roomTypes:W})]}),r&&N.jsx(MI,{mapName:e}),N.jsx("div",{className:dr.profileContainer,children:N.jsx(wc,{position:"relative"})})]})}),N.jsx("div",{id:"temp"}),N.jsx("div",{className:dr.floorSelectorContainer,children:N.jsxs("div",{className:dr.floorSelector,children:[N.jsx("img",{src:bI,alt:"Floor Icon",className:dr.floorIcon}),N.jsx("select",{value:x.get("floor"),onChange:te=>se(parseInt(te.target.value,10)),className:dr.floorDropdown,children:g==null?void 0:g.map(te=>N.jsxs("option",{value:te.num,children:["Floor ",te.num]},te.num))})]})})]})},jI="_container_14el6_1",FI="_mapTitle_14el6_14",II="_categories_14el6_25",OI="_actionButtons_14el6_31",RI="_createMapsButton_14el6_38",BI="_searchBar_14el6_54",DI="_mapsContainer_14el6_77",UI="_mapColumn_14el6_84",zI="_tile_14el6_99",GI="_imgStyle_14el6_121",VI="_dragging_14el6_127",qI="_plusButton_14el6_135",WI="_header_14el6_159",rr={container:jI,mapTitle:FI,categories:II,actionButtons:OI,createMapsButton:RI,searchBar:BI,mapsContainer:DI,mapColumn:UI,tile:zI,imgStyle:GI,dragging:VI,plusButton:qI,header:WI,"logo-wrapper":"_logo-wrapper_14el6_169","profile-wrapper":"_profile-wrapper_14el6_170"},HI="_modalOverlay_oxbvx_1",YI="_modalContent_oxbvx_15",KI="_fadeIn_oxbvx_1",XI="_mapImage_oxbvx_28",$I="_title_oxbvx_35",QI="_buttonContainer_oxbvx_58",JI="_viewButton_oxbvx_84",ZI="_editButton_oxbvx_98",eO="_deleteButton_oxbvx_112",tO="_closeButton_oxbvx_121",nO="_editPopupOverlay_oxbvx_146",rO="_editPopupContent_oxbvx_160",iO="_editField_oxbvx_171",oO="_editPopupButtons_oxbvx_192",sO="_submitButton_oxbvx_199",aO="_cancelButton_oxbvx_213",lO="_editIcon_oxbvx_227",Ln={modalOverlay:HI,modalContent:YI,fadeIn:KI,mapImage:XI,title:$I,buttonContainer:QI,viewButton:JI,editButton:ZI,deleteButton:eO,closeButton:tO,editPopupOverlay:nO,editPopupContent:rO,editField:iO,editPopupButtons:oO,submitButton:sO,cancelButton:aO,editIcon:lO},cO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAA+VJREFUeF7tnOu12jAMgJXDIu0kbTeBSdpNaCe57SZdhENxmgTnZVm2bPmh/LlwCDj3+yRZcQID6CZKYBAdXQcHFSAcBCpABQgTEB5eM0AFCBMQHl4zQAUIExAeXjNABQgTEB5eM0AFCBNYD/9jevoFAD5Nj38DwJ/X858pjlQz4D9VA/sOAF8dkP++RHwDAPOXbVMBANcJvg9UA//Xa8c5U3ze49yndwETfIPhuYCyn70fL49YJfQswCvy12oAxvXj51iGWDKhVwFe8JH6YiTcXvOGmaSDtx4FcMCfgUdL6E0AJ3wWCT0JcMLf1XpaUQluUXsRgEZ+pACjy8wF5jyBtPUgAIVPIube2UzKpDPm1gXQ4BPS4GRXcha0LIAGn5QGp6ZUwMQxCXyPBDGT8WeKyxYzIAl8F1RLTPcCssPfiDETsJmIvbeWMiAr/JNy1GkXdIErPMb1fMmNXH7MwbaQAeyR7zHZHok2J2HkhbnaBVwHgPt7Jd+ZAPOlxe8J0oRceuZjqFnAFWC42xdSjsGO8Tz35+bSo8kYpwRiBgTDr7kEHZQd75MjLwmeWRIFv1YBlJp/dmbKISEafo0COODPwR0jgQV+bQI44cdIYINfk4AU8GcJH8v9QPjsywq/DgG0kyzqauQbPj7rssOvQQAa+VbQVge/dAEofCtoq4RfsoAu4JcqoBv4JQroCn5pAhzwd/1htTV/22yVshiXLfKRVj9Jq+nqcEsQsIKPAGom8ktZjqbcLtgcfOk5YA3fHfpNwpcUkK3mIysM2Wt+CZOwIPwBBnjOX0YShy+RAXnh22VtXeKKgJ9bQF7457WnGPg5BSj8k4DIcR6g8B2dQGoBCh9pw1IKGO/bsbqO6Su2h0fUbJ+PXWhLJSDmvh3smMUvI2IHSHk9hQAtOwQD3AIUPgE+dxuq8InwOQUo/AD4XAIUfiB8DgEKPwJ+rAALPnpPX7d9PuYntAvaRL5TAB/8/TBFLaxhsI9eDxEgUnYOFFcPP7QEIV/JWlDxRf4+dJqAn0jASEvhe9ajkBKEfSlR4XvCT5UBFKlNLawRuC+7UmDNb8IywPczu4cvmQF7+OedbDMTLlcbGpsBGvmWCd9yYcuLEaDwN2mQU4DCP6hBKQSENAP2e5qu+Vs4+QW41+26gp+qCwrLgAvc4EH7zc2wgcp6F28GoKvSp/98d5E/k+AVgATXiZ9u4YeXoPBI3yrqGn64gF2kBxnpHn6kACp0e//LDeBB+pHrsqZOvqMJmQP4RtdPauJnK6vWqBkgrE8FqABhAsLDawaoAGECwsNrBqgAYQLCw2sGqABhAsLDawYIC/gHPMohcOfRSjoAAAAASUVORK5CYII=",uO="_modalOverlay_1aum1_2",hO="_denyReason_1aum1_13",dO="_denyReasonTextArea_1aum1_19",fO="_denySubmitButton_1aum1_23",pO="_modal_1aum1_2",gO="_fadeIn_1aum1_1",mO="_modalContent_1aum1_57",vO="_cancelButton_1aum1_111",yO="_approveButton_1aum1_127",wO="_denyButton_1aum1_143",bO="_buttonGroup_1aum1_160",_O="_error_1aum1_167",nr={modalOverlay:uO,denyReason:hO,denyReasonTextArea:dO,denySubmitButton:fO,modal:pO,fadeIn:gO,modalContent:mO,cancelButton:vO,approveButton:yO,denyButton:wO,buttonGroup:bO,error:_O},Zw=({isAdmin:t=!1,formData:e,onSubmit:n,onCancel:r,onApprove:i,onDeny:o})=>{const[s,a]=re.useState(t?"viewing":"writing"),[l,u]=re.useState(e||{id:-1,name:"",lastName:"",mapName:"",mapType:"Other",googleMapsUrl:""}),[d,p]=re.useState({}),[g,h]=re.useState(""),[w,_]=re.useState(!1),x=["Hospital","Faculty","House","Other"],v=L=>{const{name:R,value:D}=L.target;u(k=>({...k,[R]:D})),p(k=>({...k,[R]:""}))},S=()=>{const L={};return l.name.trim()||(L.name="Name is required."),l.lastName.trim()||(L.lastName="Last Name is required."),l.googleMapsUrl.trim()||(L.googleMapsUrl="Google Maps URL is required."),L},y=()=>{const L=S();if(Object.keys(L).length>0){p(L);return}s==="writing"&&n(l)},A=()=>{if(!g.trim()){alert("Please provide a reason for denial.");return}o(l.id,l.mapName,g),_(!1)};return N.jsxs(N.Fragment,{children:[N.jsx("div",{className:nr.modalOverlay}),N.jsx("div",{className:nr.modal,children:N.jsxs("div",{className:nr.modalContent,children:[N.jsx("h2",{children:s==="writing"?"Publish Map":"View Map Details"}),s==="writing"?N.jsxs("form",{children:[N.jsxs("div",{children:[N.jsx("label",{children:"Name:"}),N.jsx("input",{type:"text",name:"name",value:l.name,onChange:v}),d.name&&N.jsx("p",{className:nr.error,children:d.name})]}),N.jsxs("div",{children:[N.jsx("label",{children:"Last Name:"}),N.jsx("input",{type:"text",name:"lastName",value:l.lastName,onChange:v}),d.lastName&&N.jsx("p",{className:nr.error,children:d.lastName})]}),N.jsxs("div",{children:[N.jsx("label",{children:"Google Maps URL:"}),N.jsx("input",{type:"url",name:"googleMapsUrl",value:l.googleMapsUrl,onChange:v}),d.googleMapsUrl&&N.jsx("p",{className:nr.error,children:d.googleMapsUrl})]}),N.jsxs("div",{children:[N.jsx("label",{children:"Type of Map:"}),N.jsx("select",{name:"mapType",value:l.mapType,onChange:v,children:x.map(L=>N.jsx("option",{value:L,children:L},L))})]}),N.jsxs("div",{className:nr.buttonGroup,children:[N.jsx("button",{type:"button",onClick:y,children:"Submit"}),N.jsx("button",{type:"button",className:nr.cancelButton,onClick:r,children:"Cancel"})]})]}):N.jsxs("div",{children:[N.jsxs("p",{children:[N.jsx("strong",{children:"Map Name:"})," ",l.mapName]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Name:"})," ",l.name]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Last Name:"})," ",l.lastName]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Google Maps URL:"})," ",N.jsx("a",{href:l.googleMapsUrl,target:"_blank",rel:"noopener noreferrer",children:l.googleMapsUrl})]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Type of Map:"})," ",l.mapType]}),N.jsxs("div",{className:nr.buttonGroup,children:[N.jsx("button",{className:nr.cancelButton,onClick:()=>{_(!1),r()},children:"Cancel"}),N.jsx("button",{className:nr.approveButton,onClick:()=>i(l.id,l.mapName),children:"Approve"}),N.jsx("button",{className:nr.denyButton,onClick:()=>_(!0),children:"Deny"})]}),w&&N.jsxs("div",{className:nr.denyReason,children:[N.jsx("textarea",{className:nr.denyReasonTextArea,placeholder:"Enter reason for denial...",value:g,onChange:L=>h(L.target.value)}),N.jsx("div",{className:nr.buttonGroup,children:N.jsx("button",{className:nr.denySubmitButton,onClick:A,children:"Submit"})})]})]})]})})]})};function e7({isOpen:t,onClose:e,map:n,onDelete:r,onUpdate:i,onPublish:o,published:s=!1}){const[a,l]=re.useState(!1),[u,d]=re.useState((n==null?void 0:n.mapName)||""),[p,g]=re.useState((n==null?void 0:n.gmaps_url)||""),[h,w]=re.useState(!1),_=ao(),[x,v]=re.useState(null);mr();const{loading:S}=mr();re.useEffect(()=>{console.log("GMAPS: "+JSON.stringify(n))},[n]);const{username:y}=mr();if(!t||!n)return null;const A=()=>{_(`/myMaps/View/${n.mapName}`)},L=()=>{_(`/myMaps/Draw/${n.mapName}`)},R=()=>{window.confirm(`Are you sure you want to delete the map "${n.mapName}"?`)&&(r(n.mapName),e())},D=()=>{l(!0)},k=()=>{l(!1)},z=async()=>{({...n});try{l(!1)}catch(E){console.error("Error updating map:",E)}},T=async()=>{const W=await new It(!0).get(`${bt.my_maps.publish_get}?mapName=${n.mapName}`);console.log("MAP DTO",JSON.stringify(n)),v(W),w(!0)},P=async E=>{const W=new It(!0);E.mapName=n.mapName;const B=await W.post(`${bt.my_maps.publish}?username=${y}`,E);console.log("UPDATED MAP"),w(!1),o(B)};return N.jsx("div",{className:Ln.modalOverlay,onClick:e,children:N.jsxs("div",{className:Ln.modalContent,onClick:E=>E.stopPropagation(),children:[h&&N.jsx(Zw,{mapName:n.mapName,formData:x,onSubmit:P,onCancel:()=>w(!1)}),!S&&N.jsxs(N.Fragment,{children:[N.jsx("img",{src:n.image_url,alt:"Map Thumbnail",className:Ln.mapImage}),N.jsxs("h2",{className:Ln.title,children:[n.mapName,N.jsx("img",{src:cO,alt:"Edit",className:Ln.editIcon,onClick:D})]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Status:"})," ",n.status]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Created At:"})," ",new Date(n.created_at).toLocaleString()]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Modified At:"})," ",new Date(n.modified_at).toLocaleString()]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Published At:"})," ",n.published_at?new Date(n.published_at).toLocaleString():"Not published yet"]}),N.jsxs("p",{children:[N.jsx("strong",{children:"Google Maps URL:"}),N.jsx("a",{href:`${n.gmaps_url}`,rel:"noopener noreferrer",children:"Open in Google Maps"})]}),N.jsxs("div",{className:Ln.buttonContainer,children:[N.jsx("button",{className:Ln.viewButton,onClick:A,children:"View"}),N.jsx("button",{className:Ln.editButton,onClick:L,children:"Edit"}),N.jsx("button",{className:Ln.deleteButton,onClick:R,children:"Delete"}),!n.is_published&&!s&&N.jsx("button",{className:Ln.publishButton,onClick:T,children:"Publish"})]}),N.jsx("button",{className:Ln.closeButton,onClick:e,children:"Close"}),a&&N.jsx("div",{className:Ln.editPopupOverlay,onClick:k,children:N.jsxs("div",{className:Ln.editPopupContent,onClick:E=>E.stopPropagation(),children:[N.jsx("h3",{className:Ln.title,children:"Edit Map Details"}),N.jsxs("div",{className:Ln.editField,children:[N.jsx("label",{children:"Map Name:"}),N.jsx("input",{type:"text",value:u,onChange:E=>d(E.target.value)})]}),N.jsxs("div",{className:Ln.editField,children:[N.jsx("label",{children:"Google Maps URL:"}),N.jsx("input",{type:"text",value:p,onChange:E=>g(E.target.value)})]}),N.jsxs("div",{className:Ln.editPopupButtons,children:[N.jsx("button",{className:Ln.submitButton,onClick:z,children:"Submit"}),N.jsx("button",{className:Ln.cancelButton,onClick:k,children:"Cancel"})]})]})})]})]})})}const SO="_modalOverlay_1x897_2",xO="_modalContent_1x897_17",AO="_fadeIn_1x897_1",NO="_title_1x897_28",CO="_modalButtons_1x897_37",PO="_modalSubmitButton_1x897_44",LO="_modalCancelButton_1x897_62",kO="_formData_1x897_80",ua={modalOverlay:SO,modalContent:xO,fadeIn:AO,title:NO,modalButtons:CO,modalSubmitButton:PO,modalCancelButton:LO,formData:kO},t7=({isOpen:t,onClose:e,addMap:n})=>{const[r,i]=re.useState(""),[o,s]=re.useState(""),a=l=>{n({name:r,type:o}),e()};return t?N.jsx("div",{className:ua.modalOverlay,onClick:e,children:N.jsxs("div",{className:ua.modalContent,onClick:l=>l.stopPropagation(),children:[N.jsx("h2",{className:ua.title,children:"Enter Map Details"}),N.jsxs("form",{onSubmit:a,className:ua.formData,children:[N.jsxs("label",{children:["Map Name:",N.jsx("input",{type:"text",value:r,onChange:l=>i(l.target.value),required:!0})]}),N.jsxs("label",{children:["Map Type:",N.jsx("input",{type:"text",value:o,onChange:l=>s(l.target.value),required:!0})]}),N.jsxs("div",{className:ua.modalButtons,children:[N.jsx("button",{type:"submit",className:ua.modalSubmitButton,children:"Submit"}),N.jsx("button",{type:"button",className:ua.modalCancelButton,onClick:e,children:"Cancel"})]})]})]})}):null};t7.propTypes={isOpen:Sa.bool.isRequired,onClose:Sa.func.isRequired};const EO="_toast_t4ud7_1",TO="_fadeInOut_t4ud7_1",MO="_success_t4ud7_14",jO="_error_t4ud7_18",s2={toast:EO,fadeInOut:TO,success:MO,error:jO},n7=({message:t,type:e,onClose:n})=>N.jsx("div",{className:`${s2.toast} ${e===1?s2.success:s2.error}`,onClick:n,children:t}),a2=({data:t,isDragging:e},n)=>N.jsx("div",{style:{padding:"1rem",width:"100%"},children:N.jsxs("div",{className:`${rr.tile} ${e?rr.dragging:""}`,style:{width:"100%",height:"100%"},onClick:()=>n(t),children:[N.jsx("img",{src:_a,className:rr.imgStyle,alt:"Map Thumbnail"}),N.jsx("div",{className:rr.mapTitle,children:t.mapName})]})}),l2=t=>({colSpan:t.cols,rowSpan:t.rows});function FO(){const[t,e]=re.useState([]),[n,r]=re.useState([]),{username:i}=mr(),[o,s]=re.useState(null),[a,l]=re.useState(!1),[u,d]=re.useState(!1),[p,g]=re.useState([]),[h,w]=re.useState([]),[_,x]=re.useState([]),[v,S]=re.useState(null),[y,A]=re.useState(1),L=B=>{s(B),l(!0)},R=()=>{l(!1),s(null)},D=()=>{d(!0)},k=()=>{d(!1)},z=(B,Q=1)=>{S(B),A(Q),setTimeout(()=>S(null),3e3)},T=async B=>{},P=B=>{const Q=new It;Q.setAuthenticated();const ee=`${bt.my_maps.delete}?mapName=${B}&username=${i}`;Q.delete(ee).then(()=>{e(se=>se.filter(K=>K.mapName!==B)),r(se=>se.filter(K=>K.mapName!==B)),z("Map deleted",1)}).catch(se=>{var te,X;const K=((X=(te=se.response)==null?void 0:te.data)==null?void 0:X.error)||se.message||"Unknown error";z(`Error deleting the map: ${K}`,0)})},E=B=>{const Q=new It;Q.setAuthenticated(),Q.put(`${bt.my_maps.add}?username=${encodeURI(i)}`,B).then(ee=>{const se={mapName:ee.mapName,cols:1,rows:1,status:ee.mapStatus,created_at:ee.createdAt,modified_at:ee.modifiedAt,published_at:ee.published_at,gmaps_url:ee.gmapsUrl,image_url:_a,is_published:ee.is_published};r(K=>[...K,se]),e(K=>[...K,se]),z("Map added successfully!")}).catch(ee=>{z("Map name already taken",0)})};re.useEffect(()=>{(async()=>{const Q=new It;Q.setAuthenticated();const se=(await Q.get(`${bt.my_maps.display}?username=${encodeURI(i)}`)).map(K=>({mapName:K.mapName,cols:1,rows:1,status:K.mapStatus,created_at:K.createdAt,modified_at:K.modifiedAt,published_at:K.published_at,gmaps_url:K.gmapsUrl,image_url:_a,numFavourites:K.numFavourites}));e(se),r(se)})()},[i]),re.useEffect(()=>{g(t.filter(B=>B.status==="PUBLIC")),w(t.filter(B=>B.status==="PRIVATE")),x(t.filter(B=>B.status==="PENDING"))},[t]);const W=B=>{const Q=B.target.value.toLowerCase();e(n.filter(ee=>ee.mapName.toLowerCase().includes(Q)))};return N.jsxs("div",{className:rr.container,children:[N.jsx("div",{className:`${rr.logoWrapper}`,children:N.jsx(Vs,{})}),N.jsx("h1",{children:"Your Maps"}),N.jsx("div",{className:`${rr.profileWrapper}`,children:N.jsx(wc,{})}),N.jsx("div",{className:rr.searchBar,children:N.jsx("input",{type:"text",placeholder:"Search for maps...",onChange:W})}),N.jsxs("div",{className:rr.mapsContainer,children:[N.jsxs("div",{className:rr.mapColumn,children:[N.jsx("h3",{className:rr.categories,children:"Public Maps:"}),N.jsx("hr",{}),N.jsx(Ou,{data:p,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170})]}),N.jsxs("div",{className:rr.mapColumn,children:[N.jsx("h3",{className:rr.categories,children:"Private Maps:"}),N.jsx("hr",{}),N.jsx(Ou,{data:h,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170}),N.jsx("button",{className:rr.plusButton,onClick:D,children:N.jsx("img",{src:_5,alt:"Add Map"})})]}),N.jsxs("div",{className:rr.mapColumn,children:[N.jsx("h3",{className:rr.categories,children:"Pending Approval:"}),N.jsx("hr",{}),N.jsx(Ou,{data:_,renderTile:B=>a2(B,L),tileSize:l2,forceTileWidth:150,forceTileHeight:170})]})]}),N.jsx(e7,{isOpen:a,onClose:R,map:o,onDelete:P,onUpdate:T,onPublish:(B=null)=>{const Q={mapName:B.mapName,cols:1,rows:1,status:B.mapStatus,created_at:B.createdAt,modified_at:B.modifiedAt,published_at:B.published_at,gmaps_url:B.gMapsUrl,image_url:_a,numFavourites:B.numFavourites};z(`Map ${o.mapName} published successfully!`),w(ee=>ee.filter(se=>se.mapName!==o.mapName)),x(ee=>[...ee,Q]),R()}}),N.jsx(t7,{isOpen:u,onClose:k,addMap:E}),v&&N.jsx(n7,{message:v,type:y,onClose:()=>S(null)})]})}const IO="_container_1h1ao_1",OO="_mapsContainer_1h1ao_16",RO="_tile_1h1ao_23",BO="_imgStyle_1h1ao_46",DO="_mapTitle_1h1ao_52",UO="_buttonContainer_1h1ao_59",zO="_buttonsGroup_1h1ao_66",GO="_approveButton_1h1ao_73",VO="_denyButton_1h1ao_73",qO="_viewPublishFormButton_1h1ao_102",WO="_reasonInput_1h1ao_106",gs={container:IO,mapsContainer:OO,tile:RO,imgStyle:BO,mapTitle:DO,buttonContainer:UO,buttonsGroup:zO,approveButton:GO,denyButton:VO,viewPublishFormButton:qO,reasonInput:WO},HO="_openButton_1l2n8_1",YO="_modalBackground_1l2n8_16",KO="_modalContent_1l2n8_29",XO="_heading_1l2n8_38",$O="_cardContainer_1l2n8_45",QO="_card_1l2n8_45",JO="_cardTitle_1l2n8_62",ZO="_cardContent_1l2n8_68",eR="_cardFooter_1l2n8_74",tR="_noReports_1l2n8_79",nR="_closeButton_1l2n8_86",Ni={openButton:HO,modalBackground:YO,modalContent:KO,heading:XO,cardContainer:$O,card:QO,cardTitle:JO,cardContent:ZO,cardFooter:eR,noReports:tR,closeButton:nR},rR=()=>{const[t,e]=re.useState(!1),[n,r]=re.useState([]);re.useEffect(()=>{(async()=>{try{const a=new It(!0);a.setAuthenticated();const u=(await a.get(bt.admin.load_reports)).sort((d,p)=>new Date(p.date)-new Date(d.date));r(u)}catch(a){console.error("Error loading reports:",a)}})()},[]);const i=()=>{e(!0)},o=()=>{e(!1)};return N.jsxs("div",{children:[N.jsx("button",{className:Ni.openButton,onClick:i,children:"View Reports"}),t&&N.jsx("div",{className:Ni.modalBackground,onClick:o,children:N.jsxs("div",{className:Ni.modalContent,onClick:s=>s.stopPropagation(),children:[N.jsx("div",{className:Ni.heading,children:"Reports"}),N.jsx("div",{className:Ni.cardContainer,children:n.length>0?n.map((s,a)=>N.jsxs("div",{className:Ni.card,children:[N.jsx("div",{className:Ni.cardTitle,children:s.subject}),N.jsx("div",{className:Ni.cardContent,children:s.content}),N.jsxs("small",{className:Ni.cardFooter,children:["User: ",s.username," | Map: ",s.mapName," |"," ",new Date(s.date).toLocaleDateString()]})]},a)):N.jsx("p",{className:Ni.noReports,children:"No reports available"})}),N.jsx("button",{className:Ni.closeButton,onClick:o,children:"Close"})]})})]})},iR=({data:t,isDragging:e},n,r,i,o)=>N.jsxs("div",{className:`${gs.tile} ${e?gs.dragging:""}`,onClick:()=>i(t),children:[N.jsx("img",{src:_a,className:gs.imgStyle,alt:"Map Thumbnail"}),N.jsx("div",{className:gs.mapTitle,children:t.mapName}),N.jsx("button",{className:gs.viewPublishFormButton,onClick:s=>{s.stopPropagation(),o(t)},children:"View Form"}),N.jsx("div",{className:gs.buttonContainer})]}),oR=t=>({colSpan:t.cols,rowSpan:t.rows});function sR(){const[t,e]=re.useState([]),[n,r]=re.useState(null),[i,o]=re.useState(!1),[s,a]=re.useState(null),[l,u]=re.useState([]),[d,p]=re.useState({}),{username:g}=mr(),[h,w]=re.useState(null),[_,x]=re.useState(1);re.useEffect(()=>{(async()=>{const T=new It;T.setAuthenticated();const E=(await T.get(`${bt.admin.display}`)).map(W=>({mapName:W.mapName,cols:1,rows:1,status:W.mapStatus,created_at:W.createdAt,modified_at:W.modifiedAt,gmaps_url:W.gmaps_url,image_url:_a})).filter(W=>W.status==="PENDING");e(E)})()},[g]),re.useEffect(()=>{(async()=>{const P=await new It(!0).get(`${bt.admin.load_pr}`);u(P)})()},[]);const v=async(z,T)=>{const P=new It;P.setAuthenticated();const E=`${bt.admin.approve_pr}?id=${z}`;k();try{await P.post(E),e(W=>W.filter(B=>B.mapName!==T)),S(`Publish Request "${z}" approved.`,1)}catch(W){console.error("Error approving pr:",W),S("Failed to approve pr.",0)}},S=(z,T=1)=>{w(z),x(T),setTimeout(()=>w(null),3e3)},y=async(z,T,P)=>{const E=new It;E.setAuthenticated();const W=`${bt.admin.deny_pr}?id=${z}&reason=${encodeURIComponent(P)}`;k();try{await E.post(W),e(B=>B.filter(Q=>Q.mapName!==T)),S(`Publish request ${z} denied.`,1)}catch(B){console.error("Error denying pr:",B),alert("Failed to deny pr."),S("Failed to deny pr.",0)}},A=async z=>{const T=new It;T.setAuthenticated();const P=`${bt.admin.approve_pr}?mapName=${z.mapName}`;try{await T.post(P,z),e(E=>E.filter(W=>W.mapName!==z.mapName)),alert(`Map "${z.mapName}" published successfully.`),k()}catch(E){console.error("Error publishing map:",E),alert("Failed to publish map. Please try again.")}},L=z=>{r(z),o(!0)},R=()=>{o(!1),r(null)},D=z=>{console.log("DATA MAP NAME",z.mapName),l.forEach(P=>{console.log("PR: "+JSON.stringify(P))});const T=l.find(P=>P.mapName===z.mapName);console.log("FOUND PR: "+T),p(T),a(z)},k=()=>{a(null)};return N.jsxs("div",{className:gs.container,children:[N.jsx(Vs,{}),N.jsx(wc,{}),N.jsx("h1",{children:"Pending Maps for Approval"}),N.jsx("hr",{}),s&&N.jsx(Zw,{isAdmin:!0,formData:d,onSubmit:A,onCancel:k,onApprove:v,onDeny:y}),N.jsx("div",{className:gs.mapsContainer,children:N.jsx(Ou,{data:t,renderTile:z=>iR(z,v,y,L,D),tileSize:oR,forceTileWidth:200,forceTileHeight:250})}),N.jsx("hr",{}),i&&N.jsx(e7,{isOpen:i,onClose:R,map:n,onUpdate:()=>{},onDelete:()=>{},published:!0}),h&&N.jsx(n7,{message:h,type:_,onClose:()=>w(null)}),N.jsx("hr",{}),N.jsx(rR,{})]})}function aR(){const t=Do(),e=ao(),{setUsername:n,setIsAuthenticated:r}=mr();re.useEffect(()=>{const i=new URLSearchParams(t.search),o=i.get("token"),s=i.get("username");localStorage.setItem("token",o),r(!0),n(s),e("/")},[])}function lR(){return N.jsx(WC,{children:N.jsx(gS,{children:N.jsxs(aS,{children:[N.jsxs(Rr,{element:N.jsx(Lj,{}),children:[N.jsx(Rr,{path:"/myMaps/Draw/:mapName",element:N.jsx(Nj,{})}),N.jsx(Rr,{path:"/myMaps",element:N.jsx(FO,{})}),N.jsx(Rr,{path:"/myMaps/View/:mapName",element:N.jsx(D4,{isPrivate:!0})}),N.jsx(Rr,{path:"/Admin",element:N.jsx(sR,{})})]}),N.jsx(Rr,{path:"/",element:N.jsx(PP,{})}),N.jsx(Rr,{path:"/Maps/View/:mapName",element:N.jsx(D4,{isPrivate:!1})}),N.jsx(Rr,{path:"/Maps",element:N.jsx(ZC,{})}),N.jsx(Rr,{path:"/auth-callback",element:N.jsx(aR,{})}),N.jsx(Rr,{path:"/Login",element:N.jsx(uP,{})}),N.jsx(Rr,{path:"/Signup",element:N.jsx(vP,{})}),N.jsx(Rr,{path:"*",element:N.jsx(Cj,{})})]})})})}typeof GestureEvent>"u"&&(window.GestureEvent=class{});c2.createRoot(document.getElementById("root")).render(N.jsx(lR,{}));export{Pt as _,Om as c,Kf as g};
Index: imaps-frontend/dist/assets/index-D6c154Th.css
===================================================================
--- imaps-frontend/dist/assets/index-D6c154Th.css	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index-D6c154Th.css	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,1 @@
+@import"https://fonts.googleapis.com/css2?family=Roboto&display=swap";@import"https://fonts.googleapis.com/css?family=Exo:500";@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap";@import"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap";._container_lfw20_3{max-width:1200px;margin:0 auto;padding:20px;text-align:center}h1{font-family:exo,sans-serif;font-size:2.5rem;color:#0f71da;margin-bottom:20px}._searchBar_lfw20_18{margin-bottom:30px;text-align:center;margin-top:5em}._searchBar_lfw20_18 input{width:33vw;padding:10px;font-size:16px;border:1px solid #ccc;border-radius:5px;outline:none;transition:all .3s ease}._searchBar_lfw20_18 input:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}._filterBar_lfw20_40{margin-left:6vw}._tile_lfw20_45{background:#fff;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#f7f9fc;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:1px solid #dcdcdc;border-radius:12px;margin-bottom:20px}._tile_lfw20_45:hover{transform:scale(1.05);box-shadow:#00000026 0 8px 18px}._imgStyle_lfw20_67{width:80%;margin-top:10px;margin-bottom:5px}._favorite_lfw20_73{position:absolute;top:20px;right:20px;cursor:pointer}._dragging_lfw20_81{background-color:#1e90ff;transform:scale(1.06) rotate(3deg);box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}._linkStyle_lfw20_89{text-decoration:none;color:inherit}@media (max-width: 768px){._searchBar_lfw20_18 input{width:100%}._tile_lfw20_45{width:100%;height:auto}}.TilesContainer-module_container__2hgud{position:relative;width:100%}.TilesContainer-module_tile__1R3DP{touch-action:none;transition:all .3s ease-in-out;position:absolute;display:flex;align-items:stretch;z-index:0}.TilesContainer-module_tile__1R3DP:hover{z-index:1}.TilesContainer-module_tile__1R3DP.TilesContainer-module_dragging__2mUA2{transition:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.TilesContainer-module_indicator__t_Y_b{position:absolute;display:flex;align-items:stretch;z-index:0}._logoContainer_803b2_1{position:fixed;top:10px;left:10px;cursor:pointer;z-index:1000}._logoImage_803b2_9{width:80px;height:auto;transition:opacity .2s ease;border-radius:20px}._fixedLogoContainer_803b2_20{position:fixed;top:10px;left:10px;cursor:pointer;z-index:1000}._inlineLogoContainer_803b2_28{display:inline-block;cursor:pointer}._logoImage_803b2_9:hover{opacity:.8}._fixedProfileContainer_1ubol_1{position:fixed;top:1em;right:2.5em;z-index:1000}._inlineProfileContainer_1ubol_8{display:inline-block;cursor:pointer}._profileWrapper_1ubol_13{display:flex;align-items:center;cursor:pointer}._profileIconContainer_1ubol_19{position:relative;cursor:pointer}._profileImage_1ubol_24{width:60px;height:60px;border-radius:50%;transition:box-shadow .3s ease}._profileImage_1ubol_24:hover{box-shadow:0 4px 12px #0003}._dropdownMenu_1ubol_35{position:absolute;top:70px;margin-left:1.8em;transform:translate(-50%);background-color:#fff;box-shadow:0 8px 16px #00000026;border-radius:12px;padding:12px;width:180px;transition:opacity .3s ease;opacity:1}._username_1ubol_49{padding:10px 0;font-weight:600;text-align:center;color:#333;border-bottom:1px solid #eee}._menuList_1ubol_57{list-style-type:none;padding:0;margin:0}._menuItem_1ubol_63{padding:10px;cursor:pointer;transition:background-color .2s ease,color .2s ease;text-align:center;color:#333;font-weight:500;border-radius:8px}._menuItem_1ubol_63:hover{background-color:#f5f5f5;color:#007bff}*{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:sans-serif}._illustration_ry689_9 img{max-height:500px;width:auto}._wrapper_ry689_14{display:flex;justify-content:flex-end;align-items:center;height:100vh;margin-left:30%;padding:2rem}._form_ry689_25{padding:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff;border-radius:8px;box-shadow:0 4px 8px #0000001a;width:100%;max-width:400px}._form_ry689_25 ._heading_ry689_38{font-size:1.8rem;font-weight:700;text-align:center;margin-bottom:1.5rem}._or_ry689_45{margin-top:1em;text-align:center;font-weight:700;color:#666}._form_ry689_25 label{display:block;margin:1.25rem 0 1rem;font-size:.95rem;color:#333}._form_ry689_25 input{height:40px;width:100%;max-width:350px;padding:15px;background-color:#f1f9ff;border:2px solid #bce0fd;border-radius:8px;box-sizing:border-box;font-size:1rem}._form_ry689_25 button{height:40px;width:100%;max-width:350px;margin-top:1.5rem;background-color:#258de6;color:#fff;text-transform:uppercase;letter-spacing:1px;border:none;font-weight:700;border-radius:8px;font-size:1rem}._socialButtons_ry689_86{display:flex;flex-direction:column;align-items:center}._socialButton_ry689_86{display:inline-flex;align-items:center;justify-content:flex-start;padding:10px 15px;border:none;border-radius:8px;cursor:pointer;font-size:.8rem;font-weight:700;transition:background-color .2s,transform .2s;width:100%;max-width:350px}._socialButton_ry689_86 img{width:20px;height:20px;margin-right:10px;vertical-align:middle}._socialButton_ry689_86:hover{filter:brightness(95%)}._socialButton_ry689_86:active{transform:scale(.98)}._socialButton_ry689_86:nth-child(2){background-color:#333;color:#fff}._socialButton_ry689_86:nth-child(1){background-color:#fff;color:#000;box-shadow:1px 2px #2f2525}@media (min-width: 542px){body{display:flex;justify-content:center}._wrapper_ry689_14{display:flex;height:100vh;align-items:center;justify-content:flex-end;padding:2rem;max-width:1100px}._form_ry689_25{flex-basis:auto;align-items:center;width:100%;max-width:400px}._form_ry689_25 input{width:100%;max-width:350px}._illustration_ry689_9{margin-right:40%}._illustration_ry689_9 img{max-width:100%;height:auto}}@media (max-width: 680px){._wrapper_ry689_14{flex-direction:column;align-items:center;padding:1rem}._illustration_ry689_9{display:none}._form_ry689_25{width:100%;align-items:center}._form_ry689_25 input,._form_ry689_25 button,._socialButton_ry689_86{width:100%;max-width:300px}}button:hover{filter:brightness(95%)}button:active{transform:scale(.98)}._error_ry689_202{color:red;font-size:.9rem;margin-top:.5rem}._wrapper_179e9_1{display:flex;align-items:center;justify-content:center;height:100vh;background-color:#fff;padding:1rem;gap:2rem}._form_179e9_11{padding:2rem;background-color:#fff;box-shadow:0 4px 8px #0000001a;border-radius:10px;flex-basis:100%;max-width:400px;text-align:center}._form_179e9_11 ._heading_179e9_21{font-size:1.8rem;font-weight:700;color:#258de6;margin-bottom:1rem}._form_179e9_11 label{display:block;margin:1.25rem 0 .5rem;font-size:.9rem;font-weight:700;color:#555}._form_179e9_11 input{height:40px;width:100%;padding:10px 15px;background-color:#f1f9ff;border:2px solid #bce0fd;border-radius:8px;font-size:1rem}._form_179e9_11 input:focus{outline:none;border-color:#258de6;background-color:#e6f4ff}._form_179e9_11 button{height:45px;width:100%;background-color:#258de6;color:#fff;text-transform:uppercase;letter-spacing:1px;border:none;margin-top:1.5rem;font-weight:700;border-radius:8px;cursor:pointer;transition:all .2s ease}._form_179e9_11 button:hover{filter:brightness(90%)}._form_179e9_11 button:active{transform:scale(.96)}._form_179e9_11 p{text-align:center;margin-top:1rem;font-size:.9rem}._form_179e9_11 p a{color:#258de6;text-decoration:none;font-weight:700}._form_179e9_11 p a:hover{text-decoration:underline}._illustration_179e9_91{text-align:center}._illustration_179e9_91 img{max-width:100%;height:auto;border-radius:10px;display:block;margin:0 auto}@media (min-width: 768px){._wrapper_179e9_1{flex-direction:row;gap:4rem}._form_179e9_11,._illustration_179e9_91{flex-basis:50%}._illustration_179e9_91 img{max-height:600px;width:auto}}@media (max-width: 768px){._wrapper_179e9_1{flex-direction:column;text-align:center}._illustration_179e9_91{margin-bottom:2rem}}._errorMessage_179e9_134,._successMessage_179e9_135{font-size:.9rem;font-weight:700;text-align:center;margin-top:1rem;padding:10px;border-radius:8px}._errorMessage_179e9_134{color:#e74c3c;background-color:#fbeaea;border:1px solid #e74c3c}._successMessage_179e9_135{color:#2ecc71;background-color:#ebf9f1;border:1px solid #2ecc71}.modern-navbar{background:linear-gradient(90deg,#fff,#fffefe);color:#fff;display:flex;justify-content:center;align-items:center;padding:.8rem 1.5rem;box-shadow:0 4px 10px #0000001a;position:sticky;top:0;z-index:1000;border-radius:8px;margin:5px;height:70px;overflow:hidden}.navbar-container{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1200px}.navbar-left{display:flex;align-items:center;gap:1rem}.navbar-title{font-size:1.6rem;font-weight:700;color:#fff;margin:0;font-family:exo,sans-serif}.navbar-right{display:flex;align-items:center;gap:1rem}.navbar-btn{padding:.4rem 1.5rem;font-size:.9rem;border:2px solid transparent;border-radius:20px;text-decoration:none;color:#fff;font-weight:500;transition:all .3s ease-in-out;font-family:exo,sans-serif;cursor:pointer;margin-left:4em;margin-right:1em}.navbar-login{background-color:#252627;border:2px solid #3f3232}.navbar-login:hover{background-color:#fff;color:#212121;border:1px solid rgba(19,18,18,.82)}.navbar-signup{background-color:#252627;color:#fff;border:2px solid #343a40}.navbar-signup:hover{background-color:#fff;color:#343a40;border:2px solid #343a40}@-webkit-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-moz-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-o-keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@keyframes bg-scrolling-reverse{to{background-position:50px 50px}}@-webkit-keyframes bg-scrolling{0%{background-position:50px 50px}}@-moz-keyframes bg-scrolling{0%{background-position:50px 50px}}@-o-keyframes bg-scrolling{0%{background-position:50px 50px}}@keyframes bg-scrolling{0%{background-position:50px 50px}}.homebg{margin:0;width:100%;height:100%}.home{color:#999;font:400 16px/1.5 exo,ubuntu,segoe ui,helvetica,arial,sans-serif;text-align:center;height:100vh;width:100vw;background:#87898d url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjAgKDIwMjMwODIwLm0uMjI5NiBjNjFjM2E1KSAgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyNC0xMi0xMVQyMDozNjowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjQtMTItMTFUMjA6Mzg6MzcrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMTItMTFUMjA6Mzg6MzcrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjgzNDcxNmU1LTJmODgtOTc0ZS04MGMwLTJiMzljY2U1OTQzZiIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmUwYTliOTA4LTQ1YmYtOTQ0ZC04MGM2LTAwMzc4YzczMzg5MiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjBkNjlmNTdjLTRkMDMtMzA0ZC05MzVjLTlkZDhmNmUyODM3MSI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MGQ2OWY1N2MtNGQwMy0zMDRkLTkzNWMtOWRkOGY2ZTI4MzcxIiBzdEV2dDp3aGVuPSIyMDI0LTEyLTExVDIwOjM2OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMCAoMjAyMzA4MjAubS4yMjk2IGM2MWMzYTUpICAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjgzNDcxNmU1LTJmODgtOTc0ZS04MGMwLTJiMzljY2U1OTQzZiIgc3RFdnQ6d2hlbj0iMjAyNC0xMi0xMVQyMDozODozNyswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjAgKDIwMjMwODIwLm0uMjI5NiBjNjFjM2E1KSAgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PlV0CKMAAAB+SURBVFiF7c6hFYMwFEDRpgZ0mC4adioi/i9HWCHInnJqngri3Qlu2vfPum7n2V6PkfOSeu+11lLK6MxXRKTWjmmaR0/u3qMD/9kibBG2CFuELcIWYYuwRdgibBG2CFuELcIWYYuwRdgibBG2CFuELcIW8dRWzktEjG78iIgLnFMVITxhC8EAAAAASUVORK5CYII=) repeat 0 0;-webkit-animation:bg-scrolling-reverse .92s infinite;-moz-animation:bg-scrolling-reverse .92s infinite;-o-animation:bg-scrolling-reverse .92s infinite;animation:bg-scrolling-reverse .92s infinite;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear;-o-animation-timing-function:linear;animation-timing-function:linear}.home:before{font-size:8rem;font-weight:100;font-style:normal}.hero-container{height:100vh;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;object-fit:contain}.hero-container h1{font-family:exo,sans-serif;background:linear-gradient(90deg,#9a2020,#3b3131,#af2525,#443a3a,#8d1010);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:3px 2px 10px rgba(0,0,0,.5);font-size:6em}.hero-container h2{font-family:exo,sans-serif;color:#1c1c1c}.hero-container>p{margin-top:8px;color:#fff;font-size:32px}.hero-btns{margin-top:32px}.hero-btns .btn{margin:6px}.description{color:gray}.fa-play-circle{margin-left:4px}@media screen and (max-width: 960px){.hero-container>h1{font-size:70px;margin-top:-150px}}@media screen and (max-width: 768px){.hero-container>h1{font-size:50px;margin-top:-100px}.hero-container>p{font-size:30px}.btn-mobile{display:block;text-decoration:none}.home-btn{width:100%;background:#252627}}:root{--primary: #252627}.btn{padding:8px 20px;font-family:exo,sans-serif;border-radius:20px;outline:none;border:none;cursor:pointer}.btn--primary{background-color:var(--primary);color:#fff;border:1px solid var(--primary)}.btn--outline{background-color:#ffffffc2;color:#252627;padding:8px 20px;border:1px solid #252627;transition:all .3s ease-out}.btn--medium{padding:8px 20px;font-size:22px}.btn--large{padding:12px 26px;font-size:24px}.btn--outline:hover{transition:all .3s ease-out;background:#000;color:#ffffffc2}.btn--large:hover,.btn--medium:hover{transition:all .3s ease-out;background:#ffffffc2;color:#000}.cards{padding:4rem;background:#fff}h1{text-align:center}.cards__container{display:flex;flex-flow:column;align-items:center;max-width:1120px;width:90%;margin:0 auto}.cards__wrapper{position:relative;margin:50px 0 45px}.cards__items{margin-bottom:24px}.cards__item{display:flex;flex:1;margin:0 1rem;border-radius:10px}.cards__item__link{display:flex;flex-flow:column;width:100%;box-shadow:0 6px 20px #387dff2b;-webkit-filter:drop-shadow(0 6px 20px rgba(56,125,255,.017));filter:drop-shadow(0 6px 20px rgba(56,125,255,.017));border-radius:10px;overflow:hidden;text-decoration:none}.cards__item__pic-wrap{position:relative;width:100%;padding-top:67%;overflow:hidden}.fade-img{animation-name:fade-img;animation-duration:2s}.cards__item__pic-wrap:after{content:attr(data-category);position:absolute;bottom:0;margin-left:10px;padding:6px 8px;max-width:calc(100% - 60px);font-size:12px;font-weight:700;color:#fff;background-color:#1f98f4;box-sizing:border-box}.cards__item__img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:cover;transition:all .2s linear}.cards__item__img:hover{transform:scale(1.1)}.cards__item__info{padding:20px 30px 30px}.cards__item__text{color:#252e48;font-size:18px;line-height:24px}@media only screen and (min-width: 1200px){.content__blog__container{width:84%}}@media only screen and (min-width: 1024px){.cards__items{display:flex}}@media only screen and (max-width: 1024px){.cards__item{margin-bottom:2rem}}.footer-container{background-color:#242424;padding:4rem 0 2rem;display:flex;flex-direction:column;justify-content:center;align-items:center}.footer-subscription{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin-bottom:24px;padding:24px;color:#fff}.footer-subscription>p{font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Arial,sans-serif}.footer-subscription-heading{margin-bottom:24px;font-size:24px}.footer-subscription-text{margin-bottom:24px;font-size:20px}.footer-input{padding:8px 20px;border-radius:2px;margin-right:10px;outline:none;border:none;font-size:18px;margin-bottom:16px;border:1px solid #fff}.footer-links{width:100%;display:flex;justify-content:space-evenly}.footer-link-wrapper a{margin-top:1em}.footer-link-wrapper h2{width:100%}.footer-link-items{display:flex;flex-direction:column;align-items:center;margin:16px;text-align:left;width:160px;box-sizing:border-box}.footer-link-items h2{margin-bottom:16px}.footer-link-items>h2{color:#fff}.footer-link-items a{color:#fff;text-decoration:none;margin-bottom:.5rem}.footer-link-items a:hover{color:#e9e9e9;transition:.3s ease-out}.footer-email-form h2{margin-bottom:2rem}.footer-input::placeholder{color:#b1b1b1}.social-icon-link{color:#fff;font-size:24px}.social-media-wrap{display:flex;flex-direction:column;align-items:center}.social-icons{display:flex;justify-content:space-between;align-items:center;width:240px}.social-logo{color:#fff;justify-self:start;cursor:pointer;text-decoration:none;font-size:2rem;display:flex;align-items:center;margin-bottom:16px}.social-media-wrap img{width:25%}.website-rights{color:#fff;align-content:flex-end;width:50%;margin-top:2em}@media screen and (max-width: 820px){.footer-links{padding-top:2rem}.footer-input,.btn{width:100%}.footer-link-wrapper,.social-media-wrap{flex-direction:column}}html,body{margin:0;padding:0;height:100%;overflow-x:hidden;background-color:#141414}._topPanelH_1dtk6_10{width:100%;display:flex;justify-content:center;align-items:center;margin-bottom:20px}._logo_1dtk6_18{width:80px}._title_1dtk6_22{text-align:center;font-size:2.5em;font-weight:700;text-transform:uppercase;color:silver;font-family:Oswald,sans-serif;margin-bottom:0;text-decoration:none}._titleLink_1dtk6_33,._titleLink_1dtk6_33:hover{text-decoration:none}._paragraph_1dtk6_40{color:#ccc}._guideWrapper_1dtk6_44{display:flex;justify-content:center;align-items:center;margin:0;width:100%}._wrapper_1dtk6_52{display:flex;height:100vh;background-color:#141414;overflow:hidden}._cont_1dtk6_59{flex-grow:1;width:85vw;height:90vh;background-color:#161616;border:1px solid gray;margin:50px}._panel_1dtk6_68{width:10vw;height:100vh;display:flex;flex-direction:column;align-items:center;padding:20px;background-color:#1c1c1c;color:#fff;overflow-y:auto;box-sizing:border-box;margin-right:10px;border-radius:20px;overflow-x:hidden}._buttonContainer_1dtk6_84{display:flex;justify-content:center;align-items:center;margin-top:2rem;gap:10px;width:100%}._renderButton_1dtk6_93{width:100%;height:50px;background-color:#e67e22;color:#fff;border:none;border-radius:8px;font-size:20px;font-weight:700;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 4px 6px #0000001a;transition:background-color .3s,transform .2s,box-shadow .3s}._renderButton_1dtk6_93:hover{background-color:#d2691e;transform:scale(1.05);box-shadow:0 6px 8px #00000026}._renderButton_1dtk6_93:active{background-color:#b35418;transform:scale(.98);box-shadow:0 2px 4px #0003}._shapeOptions_1dtk6_122{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:15px;justify-items:center;align-items:center}._shapeOption_1dtk6_122{width:4vw;height:4vw;border:2px solid #804047;border-radius:5px;background-color:#362929;color:#fff;font-size:12px;font-weight:700;background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;transition:background-color .3s,border-color .3s}._shapeOption_1dtk6_122:hover{background-color:#94183b;border-color:#94183b}._templateCont_1dtk6_154{display:flex;flex-direction:column;align-items:center;width:100%}._fpscounter_1dtk6_161{border:1px solid #00b822;margin:20px 0;text-align:center;width:100%}._fpscounter_1dtk6_161 p{color:#00740c;font-weight:700;margin:0;padding:5px 0}._popup_1dtk6_176{position:fixed;top:40%;left:50%;transform:translate(-50%,-50%);background-color:#494949cc;color:#fff;padding:20px;border-radius:8px;z-index:1000;width:300px;text-align:center;box-shadow:0 4px 8px #0003;opacity:0;animation:_fadeInOut_1dtk6_1 3s ease-in-out forwards}@keyframes _fadeInOut_1dtk6_1{0%,to{opacity:0;transform:translate(-50%,-40%)}10%,90%{opacity:1;transform:translate(-50%,-50%)}}._popupContent_1dtk6_206{display:flex;flex-direction:column;gap:10px}._entrance_1dtk6_212{background-image:url(/assets/entrance_icon-Bw9rlADa.png)}._wall_1dtk6_216{background-image:url(/assets/wall_icon-n0JNO-jd.png)}._room_1dtk6_220{background-image:url(/assets/room_icon-DkURboU-.png)}._stairs_1dtk6_223{background-image:url(/assets/stairs_icon-XrIVKcVc.png)}._floorSection_1dtk6_226{display:flex;flex-direction:column;align-items:center;gap:20px;background-color:#2d2d2d;padding:20px;border-radius:8px;box-shadow:0 4px 6px #0003;width:100%}._floorLabel_1dtk6_238{font-size:16px;font-weight:700;color:#fff;margin-bottom:10px;text-align:center}._floorList_1dtk6_246{display:flex;flex-direction:column;align-items:center;gap:15px;width:100%}._floorItems_1dtk6_254{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}._addFloorButton_1dtk6_262{background-color:#e67e22;border:none;border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color .3s,transform .2s}._addFloorButton_1dtk6_262:hover{background-color:#d2691e;transform:scale(1.1)}._addFloorButton_1dtk6_262:active{background-color:#b35418;transform:scale(.95)}._icon_1dtk6_285{width:20px;height:20px;filter:invert(1)}._floorButton_1dtk6_291{padding:10px 15px;font-size:14px;color:#fff;background-color:#3a3a3a;border:1px solid #555555;border-radius:8px;width:100%;text-align:center;cursor:pointer;transition:background-color .3s,transform .2s}._floorButton_1dtk6_291:hover{background-color:#4a4a4a}._floorButton_1dtk6_291._active_1dtk6_308{background-color:#1e90ff;color:#fff;font-weight:700}._floorInput_1dtk6_314{width:60%;padding:8px;font-size:14px;border:1px solid #ccc;border-radius:5px;background-color:#3a3a3a;color:#fff;text-align:center;transition:border-color .3s}._floorInput_1dtk6_314:focus{outline:none;border-color:#1e90ff}._floorActions_1dtk6_331{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:10px}._errorMessage_1dtk6_339{color:red;font-size:12px;margin-top:10px;text-align:center}._floorItemWrapper_1dtk6_345{display:flex;align-items:center;gap:10px;width:100%}._floorItem_1dtk6_254{padding:10px 15px;font-size:14px;color:#fff;background-color:#3a3a3a;border:1px solid #555555;border-radius:8px;text-align:center;cursor:pointer;flex-grow:1;transition:background-color .3s}._floorItem_1dtk6_254:hover{background-color:#4a4a4a}._activeFloor_1dtk6_369{background-color:#1e90ff;color:#fff;font-weight:700}._deleteFloorButton_1dtk6_375{background-color:#ff4d4d;border:none;border-radius:8px;padding:10px;color:#fff;cursor:pointer;transition:background-color .3s,transform .2s}._deleteFloorButton_1dtk6_375:hover{background-color:#e60000;transform:scale(1.1)}._deleteFloorButton_1dtk6_375:active{background-color:#c00;transform:scale(.95)}._activeModal_13596_2{overflow-y:hidden}._modal_13596_7,._overlay_13596_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_13596_8{z-index:999}._draggableHeader_13596_21{cursor:move;padding:10px;background-color:#2c2f33;color:#fff;border-bottom:1px solid #444}._modalContent_13596_31{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33f7;color:#fff!important;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}._title_13596_47{margin-bottom:15px;color:#fff}._btnModal_13596_52{padding:10px 20px;font-size:18px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:20px;display:block}._btnModal_13596_52:hover{background-color:#0056b3}._closeModal_13596_68{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_13596_68:hover{background-color:#c82333}._form_13596_84{display:flex;flex-direction:column}._formGroup_13596_89{margin-bottom:15px}label{font-size:16px;font-weight:700;margin-bottom:8px}._customFileInput_13596_101{position:relative}._uploadButton_13596_105{background-color:#007bff;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:16px;transition:background-color .3s ease}._uploadButton_13596_105:hover{background-color:#0056b3}._uploadButton_13596_105:focus{outline:none;box-shadow:0 0 4px #007bff99}._uploadButton_13596_105:active{background-color:#003f7f}._formGroup_13596_89 label{display:block;margin-bottom:5px;color:#fff}._formGroup_13596_89 input,._formGroup_13596_89 select,._formGroup_13596_89 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_13596_89 input::placeholder,._formGroup_13596_89 textarea::placeholder{color:#888}._formGroupCheckbox_13596_154{display:flex;flex-direction:row;vertical-align:middle;align-items:flex-end}._formGroupCheckbox_13596_154 input{width:10%;margin-bottom:.88em}._addButton_13596_170{background-color:#28a745!important;color:#fff;padding:8px 15px;border:none;border-radius:5px;cursor:pointer;margin-top:10px}._addButton_13596_170:hover{background-color:#218838!important}._submitButton_13596_185{background-color:#28a745!important;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;font-size:16px;margin-top:15px}._submitButton_13596_185:hover{background-color:#218838}._pinList_13596_200{list-style-type:none;padding:0;margin-top:15px}._pinItem_13596_206{background-color:#444;padding:8px;margin-bottom:5px;color:#fff;border-radius:5px;display:flex;justify-content:space-between;align-items:center}._removeButton_13596_217{background-color:#dc3545;color:#fff;border:none;padding:5px 10px;border-radius:5px;cursor:pointer}._removeButton_13596_217:hover{background-color:#c82333}._activeModal_knxpl_3{overflow-y:hidden}._modal_knxpl_7,._overlay_knxpl_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_knxpl_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._modalContent_knxpl_22{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}h2{margin-bottom:15px;color:#fff}._btnModal_knxpl_42{padding:10px 20px;font-size:18px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:20px;display:block}._btnModal_knxpl_42:hover{background-color:#0056b3}._closeModal_knxpl_58{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_knxpl_58:hover{background-color:#c82333}._form_knxpl_74{display:flex;flex-direction:column}._formGroup_knxpl_79{margin-bottom:15px}._formGroup_knxpl_79 label{display:block;margin-bottom:5px;color:#fff}._formGroup_knxpl_79 input,._formGroup_knxpl_79 select,._formGroup_knxpl_79 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_knxpl_79 input::placeholder,._formGroup_knxpl_79 textarea::placeholder{color:#888}._formGroup_knxpl_79 input[type=checkbox]{width:auto;margin-right:10px}._submitButton_knxpl_110{background-color:#28a745;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer}._submitButton_knxpl_110:hover{background-color:#218838}._activeModal_xoq0w_3{overflow-y:hidden}._modal_xoq0w_7,._overlay_xoq0w_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_xoq0w_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._title_xoq0w_23{color:#fff}._paragraph_xoq0w_27{color:#ababab}._modalContent_xoq0w_31{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}._btnModal_xoq0w_51{width:70px;height:70px;background-color:transparent;border:none;border-radius:50%;cursor:pointer;margin:0;display:flex;justify-content:center;align-items:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAACAZJREFUeF7tXV1u2zgQHsp53JdFEjd+WuckcU6yyUm2PUnSkyQ9SVRgAadugr7sYoFFbC5IWYoskdQMOSO6WAUt+mOapL5vfvkzUjD9ZEVAZR19GhwmAjILwUTAREBmBDIPP2nAREBmBDIPP2nAREBmBDIPP2nAREAYgfX37yvQaml/A0Ch4DcNeglg/21+l1UPulSg7N93oL/Y/1K6XJyfP2bGODj80WnAev1jCcXupgIabhjAKxXAoyFlMT+7Z+iPtYujIKAGXSl9BaBWqCc0M9faiLn9Beavgz/aaEipAT7Ddva4WPy6157BL4o1yErAO/Dwh9gTBjpWAPe7bfEpJxFZCHACj5ZidqpKreHz4sPpR/aeER2OTsD62+tHpfwSn48HyELEaASYaEbp4gEhFN0mFpjmP4tdFdW8nZTGdFhtMj8nb02kZCKmvRM3/qT6HP8zKhGjEDAk9T1s9N5R7or7VPsc5eAr//5pDLMkTsDz5uUBGdmIS956/c8SZn+vFCjj9MOaYYIrDfcf5qe3eOWhtxQjwEiemm3vEOCLA9+FhRh9lXpbXKdqoo8aEQKw9n4sNfc9PIEIMRLYCcCBrx8v5mfXdIWV+UalrTsTIITMUqnV7pZ7aYOVgP2DPPVgOogtjwv8eq5IbWDXBFYChhxubpOD0R9ExFZezE8vMX1h2rARMAi+2l1zqy/mAWParDcvNwrUXcBxskVHLAQMSY0WAN+ajDr5Elh29prTPStc2pxMwJDT5QIfmVCVZl9Aa/WFI4lyakLLn2nQt6lL3MkEPG9ejdN1Rg9cUjKkYR5TwZJfDIyd7A+SCAjbyvRoZ8gMIO17cuQSIiFVyJIIeN68erZBjgb8mqOkGD6c1evyYn4WHRVFE/Bt83rX2zLc20e9LS5TUnei5JtdLcyKZ5ImhOZkNnZi14yiCDiYTGcBP1UljciG/IrZUnwD/WnW2lJsIqJdsRrYa4gGyswrYIqiyY0iwCn9e2W/mJ9G9dlkpIEYHEOud1mh1s6EkFhCC6LA8tl+DEBDjtNKv4Jld5Od0ncIKEo/rrmGAg+t/r1enC9Ix2DIBIQmkCz93l0zulP3z5PeV5uI0MJdDLlkAt6XHPZHQurMkCEpsXbWZLiz7UoB/F7vJcQ4db8WpBFg5+g1k/S+Iwhwh54xIA2Zo5qM2GzTsz6VnDwFTBy5bxIBPuZTwrAhElI+r6Opw0CNLqWuOfgWH6lLLyQCfNEPx5pICtC+77qCBS5h8YekNIJJBHQfqJYsCfOTSohvkZBLWLjMEJqA0KpnavSTCjbJRCRm6e2xOMwQngCP5+dSaU4SfOaBe65eAggRIZ4Az5HCmNiXE+xuX8FEiVH6Q0sTFEzQBPwMDtiaSSgeXEfVqdEJRkh8ZP8vCQj5KAogGOCbdSuGzB2tARwOh/JwlLYh8Lnt/sGyxLgEuLcec4eg4T1pWkxOIb1eNlGzXf8cFAA6IyZogHsJImcI2oDf2ZOogJQFfyIguHEjD36tLb6leaxgUjTAefohlwmqfZJD+NHqTzU5vZC3OlM6lglyn/OXCO8wwHg3hRJ2vDDjZnTChgBYVXdC339yEPDn5uXmxHF0UDLicZHDsTqMNkG+9J5rcYsifceSFGYmoNoRk0pyQoS4CdBwMT9DCxSFcF/bWii7foiCCXrCfbY1KEPACOFeFwBfUoiNPDjAN31waCKegHbWd0j5aFFHK/RzRGTjhZ7heQBQ/CKeAH/IRRqQQ/qau8GtzlJO4sXMiWt/BE2AmaR3PWikO7UxQEl9h8MBm7mRCPCzPr76SwGL7ZdjM4ZOQMAMje0AsUBJtfMmgsRNH5IGBM0QYRtOCpSx+uUyP2QNMF+wgyt159h1Gj0aGgvwfhjsWZqPEEKyBkgefKUAapIg095URRmzHFnwtgzR/ERpQCgBMWf3Oe/Q+giROnKIEQCf7Y9dhyJrgDVDVSGOJ1cQFTsRzMOHfJD5TAPcLwSrm3BLf7QGDGmBZHUR/700S0C5YLzF3hYKicsZSQQM3OMSM0UhAswDSYXDjdlz7ACljBllgmrJCB2CkjJF4ftjMgnh8/PLAxTucpqpy/FpBAyUeaEsy2J9QPiKEH89iqO+qN3kBYHCFqkS0iXGV1ZGhOyBQoOUVU+fgCVpQGOKwqUoky5J+yZe356xNaUZivu5iPZsuNumXISzEBCKivY+i6VuA9ZMpbZrLzo6jxwxbkKxEYAp0sclNakAh77ftfl9AngdPRsB7wlau/ba4U1KTtWVIOEgw3aLfvSNeFEfgE1YWu3YHySFEIz2WuEROHPEqgGNU8ZWIcxYNLvWWPOugm59CddpO4mKiUmZ8JDEIUtBmm6yOGhCESixrF6UgL6E9f1B58UL4kQgS1O2ZIvX4bqEVsQE9WJqX57gdnSNVkCxe0yttIisNdfDZqyIbRQCrDZUWaUpBYkprtQGpHoHjIav5qU89gPz518n5eKyegXJ+unHEn55q/ptvfAnVDsoYEJFEsfRoqBgjL1/QU8kMENuJ/VzcROYzQT1TJKLCL85SgV28B0/Y5mboyGgHa66wsBkxJEdGOAl1pGQw1fWlNJYqq2rRpDUWLnC3qPwARhQazIKUFdcL3IrQJdbpmq6mGegtDkKDfBN+KA+tDmCAurKBjqBVxnaaKmOlARqSlPAxbQ9agIwD/Czt5kIyMzgRMBEQGYEMg8/acBEQGYEMg8/acBEQGYEMg8/acBEQGYEMg//Hw8wdqxr93OoAAAAAElFTkSuQmCC);background-size:60%;background-position:center;background-repeat:no-repeat;transition:transform .2s}._btnModal_xoq0w_51:hover{transform:scale(1.1);background-color:#ffffff1a}._btnModal_xoq0w_51:active{transform:scale(.95)}._iconImage_xoq0w_78{width:100%;height:100%}._closeModal_xoq0w_83{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_xoq0w_83:hover{background-color:#c82333}._form_xoq0w_99{display:flex;flex-direction:column}._formGroup_xoq0w_104{margin-bottom:15px}._formGroup_xoq0w_104 label{display:block;margin-bottom:5px;color:#fff}._formGroup_xoq0w_104 input,._formGroup_xoq0w_104 select,._formGroup_xoq0w_104 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_xoq0w_104 input::placeholder,._formGroup_xoq0w_104 textarea::placeholder{color:#888}._formGroup_xoq0w_104 input[type=checkbox]{width:auto;margin-right:10px}._submitButton_xoq0w_135{background-color:#28a745;color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer}._submitButton_xoq0w_135:hover{background-color:#218838}._activeModal_hib35_2{overflow-y:hidden}._modal_hib35_7,._overlay_hib35_8{position:fixed;top:0;left:0;width:100vw;height:100vh}._overlay_hib35_8{background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:999}._modalContent_hib35_24{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2c2f33;color:#fff;padding:20px;border-radius:8px;max-width:600px;width:100%;box-shadow:0 4px 8px #0003;z-index:1000}h2,h3{margin-bottom:15px;color:#fff}._btnModal_hib35_47{padding:10px 20px;font-size:18px;background-color:#aa5c5c;color:#fff;border:none;border-radius:5px;cursor:pointer;margin:10px 0;display:block}._btnModal_hib35_47:hover{background-color:#994f4f}._closeModal_hib35_64{position:absolute;top:10px;right:10px;padding:5px 10px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer}._closeModal_hib35_64:hover{background-color:#c82333}._form_hib35_81{display:flex;flex-direction:column}._formGroup_hib35_87{margin-bottom:15px}._formGroup_hib35_87 label{display:block;margin-bottom:5px;color:#fff}._formGroup_hib35_87 input,._formGroup_hib35_87 select,._formGroup_hib35_87 textarea{width:100%;padding:8px;border-radius:4px;border:1px solid #ccc;background-color:#23272a;color:#fff}._formGroup_hib35_87 input::placeholder,._formGroup_hib35_87 textarea::placeholder{color:#888}._formGroup_hib35_87 input[type=checkbox]{width:auto;margin-right:10px}._addButton_hib35_122{background-color:#28a745;color:#fff;padding:8px 15px;border:none;border-radius:5px;cursor:pointer;margin-top:10px}._addButton_hib35_122:hover{background-color:#218838}._roomTypeList_hib35_137{list-style-type:none;padding:0;margin-top:15px}._roomTypeItem_hib35_144{background-color:#444;padding:8px;margin-bottom:5px;color:#fff;border-radius:5px;display:flex;justify-content:space-between;align-items:center}._removeButton_hib35_156{background-color:#dc3545;color:#fff;border:none;padding:5px 10px;border-radius:5px;cursor:pointer}._removeButton_hib35_156:hover{background-color:#c82333}._saveMapContainer_1k6lk_1{display:flex;flex-direction:column;align-items:center;margin:10% 10px}._saveMapForm_1k6lk_8{display:flex;flex-direction:column;gap:10px;align-items:center}._saveMapInput_1k6lk_15{padding:5px;border:1px solid #ccc;border-radius:5px;width:100%}._saveMapButton_1k6lk_22{width:100%;height:50px;background-color:#e67e22!important;color:#fff!important;border:none;border-radius:8px;font-size:20px;font-weight:700;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 4px 6px #0000001a;transition:background-color .3s,transform .2s,box-shadow .3s;-moz-appearance:none;appearance:none;-webkit-appearance:none}._saveMapButton_1k6lk_22:hover{background-color:#d2691e!important;transform:scale(1.05);box-shadow:0 6px 8px #00000026}._saveMapButton_1k6lk_22:active{background-color:#b35418!important;transform:scale(.98);box-shadow:0 2px 4px #0003}body{margin:0;padding:0;height:100%;background:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;background-color:#f7f9fc}.spinner{border:8px solid #f3f3f3;border-top:8px solid #1e90ff;border-radius:50%;width:60px;height:60px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-container p{margin-top:20px;font-size:18px;color:#2c3e50;font-weight:500}._main_ctyyq_7{position:relative;width:100vw;height:100vh;overflow:hidden}._toolbar_ctyyq_14{width:100%;padding:10px 20px;position:fixed;top:0;z-index:3;background-color:#ffffffe6;box-shadow:0 4px 8px #0000001a;display:flex;align-items:center}._toolbarContainer_ctyyq_26{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1200px;margin:0 auto}._logoContainer_ctyyq_35{display:flex;align-items:center;flex-shrink:0}._searchFilterContainer_ctyyq_52{flex-grow:3;display:flex;align-items:center;gap:150px;justify-content:flex-start;padding:0 10px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d6d6d6 transparent}._searchFilterContainer_ctyyq_52::-webkit-scrollbar{height:6px}._searchFilterContainer_ctyyq_52::-webkit-scrollbar-thumb{background-color:#d6d6d6;border-radius:10px}._profileContainer_ctyyq_73{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0}._mapTitle_ctyyq_41{font-size:1.5rem;font-weight:700;text-transform:uppercase;color:#333;margin:0 20px;flex-grow:1;text-align:center;font-family:Oswald,sans-serif}._searchFilterContainer_ctyyq_52{display:flex;align-items:center;gap:20px}._profileContainer_ctyyq_73{display:flex;align-items:center}._mapContainer_ctyyq_103{position:relative;top:0;left:0;width:100vw;height:100vh;z-index:1;background-color:#f2f2f2}._mapControlsContainer_ctyyq_113{position:absolute;bottom:20px;right:20px;z-index:1}._nextButtonContainer_ctyyq_120{position:absolute;bottom:20%;left:50%;transform:translate(-50%);z-index:5}._nextButton_ctyyq_120{font-size:1.5em;font-weight:700;padding:15px 30px;background-color:#007bff;color:#fff;border:none;border-radius:50px;box-shadow:0 4px 15px #007bffbf;cursor:pointer;animation:_pulse_ctyyq_1 2s infinite;transition:transform .2s ease-in-out}._nextButton_ctyyq_120:hover{transform:scale(1.1);background-color:#0056b3}@keyframes _pulse_ctyyq_1{0%{box-shadow:0 0 15px #007bff80}50%{box-shadow:0 0 30px #007bffcc}to{box-shadow:0 0 15px #007bff80}}._floorSelectorContainer_ctyyq_158{position:fixed;bottom:50px;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;z-index:10;padding:10px;background-color:#ffffffe6;border-radius:20px;box-shadow:0 4px 10px #0003}._floorSelector_ctyyq_158{display:flex;align-items:center;gap:10px}._floorIcon_ctyyq_179{width:40px;height:40px}._floorDropdown_ctyyq_184{font-size:1.5em;padding:10px 20px;border-radius:10px;border:2px solid #007bff;outline:none;background-color:#f9f9f9;color:#333;transition:all .3s ease-in-out;cursor:pointer}._floorDropdown_ctyyq_184:hover,._floorDropdown_ctyyq_184:focus{border-color:#0056b3;background-color:#e6f7ff}._floorDropdown_ctyyq_184 option{font-size:1.2em;padding:5px;background-color:#fff;color:#333}._wrapper_glpc4_1{position:relative;display:flex;justify-content:center;margin:0 auto;z-index:105;max-width:600px;width:100%;padding:10px}._searchBar_glpc4_12,._directionsContainer_glpc4_13{position:relative;display:flex;align-items:center;background-color:#fff;padding:10px;border:1px solid #ddd;border-radius:30px;box-shadow:0 4px 8px #0000001a;flex-wrap:nowrap}._inputField_glpc4_26{flex-grow:1;font-size:16px;border:1px solid #ddd;border-radius:30px;outline:none;margin-right:10px;min-width:0;margin-top:12px}._dropdown_glpc4_38{position:absolute;top:100%;left:0;background-color:#fff;border:1px solid #ddd;border-radius:5px;width:100%;max-height:200px;overflow-y:auto;z-index:9999;box-shadow:0 4px 8px #0003}._dropdownItem_glpc4_53{padding:10px;cursor:pointer;transition:background-color .3s ease,color .3s ease}._dropdownItem_glpc4_53:hover{background-color:#007bff;color:#fff}._buttons_glpc4_65{display:flex;justify-content:flex-end;gap:10px}._iconButton_glpc4_71{display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;padding:12px 20px;border-radius:10px;background-color:#f0f0f0;color:#000;cursor:pointer;font-size:16px;transition:background-color .3s ease}._iconButton_glpc4_71:hover{background-color:#e0e0e0}._iconButton_glpc4_71 img{width:20px;height:20px}._directionsContainer_glpc4_13{gap:10px}._directionsInputs_glpc4_99{display:flex;width:100%;gap:10px}*{font-family:Poppins,sans-serif}._wrapper_1mlzu_6{display:flex;justify-content:center;width:100%;overflow-x:hidden}._scrollableContainer_1mlzu_13{display:flex;gap:10px;overflow-x:auto;white-space:nowrap;padding:0;width:100%;overflow-y:hidden}._buttonValue_1mlzu_23{border:2px solid rgb(37,111,123);padding:.5em 1.5em;border-radius:3em;background-color:transparent;color:#256f7b;cursor:pointer;transition:background-color .3s,color .3s;white-space:nowrap}._buttonValue_1mlzu_23:hover,._buttonValue_1mlzu_23:focus{background-color:#21626c;color:#fff}._active_1mlzu_40{background-color:#256f7b;color:#fff}._scrollableContainer_1mlzu_13::-webkit-scrollbar{height:6px}._scrollableContainer_1mlzu_13::-webkit-scrollbar-thumb{background-color:#256f7b;border-radius:3px}._roomInfoPanel_10nwd_2{position:fixed;top:0;right:-350px;width:350px;height:100%;background-color:#f7f9fc!important;box-shadow:-4px 0 12px #0000001a;transition:right .4s cubic-bezier(.25,.8,.5,1);border-top-left-radius:20px;border-bottom-left-radius:20px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;align-items:center;z-index:6}._open_10nwd_21{right:0}._closeButton_10nwd_26{position:absolute;top:15px;right:15px;font-size:28px;background:none;border:none;color:#555;cursor:pointer;transition:color .3s}._closeButton_10nwd_26:hover{color:#000!important}._roomImageWrapper_10nwd_43{width:100%;border-radius:12px;overflow:hidden;margin:20px 0;box-shadow:0 4px 10px #0000001a}._roomImage_10nwd_43{width:100%;height:auto;display:block;border-radius:12px}._roomHeader_10nwd_58 h2{color:#333;font-size:1.5rem;font-weight:600;text-align:center;margin:0;color:#000!important}._roomDescription_10nwd_67 p{color:#666!important;line-height:1.6;text-align:center}._floorInfo_10nwd_73 p{color:#666!important;font-size:1.1rem;margin-top:10px;text-align:center}._navigateButton_10nwd_81{display:flex;align-items:center;gap:10px;padding:10px 20px;margin-top:20px;background-color:#007bff;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s}._navigateButton_10nwd_81:hover{background-color:#0056b3}._navigateIcon_10nwd_99{width:20px;height:20px}._modalBackground_15sjt_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}._modalContent_15sjt_14{background:#fff;padding:20px;border-radius:8px;width:400px;box-shadow:0 2px 10px #0000001a;animation:_fadeIn_15sjt_1 .3s ease-out}._reportButton_15sjt_22{background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;outline:none}._reportIcon_15sjt_33{width:40px;height:40px;transition:transform .2s ease}._reportButton_15sjt_22:hover ._reportIcon_15sjt_33{transform:scale(1.1)}._inputField_15sjt_44,._textareaField_15sjt_45{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;font-size:14px}._textareaField_15sjt_45{height:100px;resize:none}._buttonGroup_15sjt_59{display:flex;justify-content:flex-end}._submitButton_15sjt_64{background:#4caf50;color:#fff;border:none;padding:10px 15px;border-radius:4px;cursor:pointer;margin-right:10px}._cancelButton_15sjt_74{background:#f44336;color:#fff;border:none;padding:10px 15px;border-radius:4px;cursor:pointer}@keyframes _fadeIn_15sjt_1{0%{opacity:0}to{opacity:1}}._container_14el6_1{max-width:1200px;margin:0 auto;padding:20px;text-align:center;font-family:Roboto,sans-serif;overflow:hidden}*{font-family:Exo,sans-serif}._mapTitle_14el6_14{color:#2c2f33;text-transform:uppercase}._categories_14el6_25{margin-bottom:20px;text-align:start;color:#333}._actionButtons_14el6_31{display:flex;justify-content:center;gap:20px;margin-bottom:30px}._createMapsButton_14el6_38{padding:10px 20px;font-size:16px;background-color:#f1153b;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._createMapsButton_14el6_38:hover{background-color:#b70526;transform:translateY(-2px)}._searchBar_14el6_54{margin-bottom:30px;text-align:center;margin-top:5em}._searchBar_14el6_54 input{width:33vw;padding:10px;font-size:16px;border:1px solid #ccc;border-radius:8px;outline:none;transition:all .3s ease}._searchBar_14el6_54 input:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}._mapsContainer_14el6_77{display:flex;justify-content:space-between;gap:20px;margin-top:30px}._mapColumn_14el6_84{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:10px;background-color:#f9f9f9;border-radius:8px;box-shadow:0 2px 10px #0000001a}._tile_14el6_99{width:90%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#fff;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:2px solid #232323;border-radius:12px;margin-bottom:20px}._tile_14el6_99:hover{transform:scale(1.05);box-shadow:#0006 0 8px 18px;background:#f1153b}._imgStyle_14el6_121{width:80%;margin-top:10px;margin-bottom:5px}._dragging_14el6_127{background-color:#1e90ff;transform:scale(1.06) rotate(3deg);box-shadow:#00000040 0 54px 55px,#0000001f 0 -12px 30px,#0000001f 0 4px 6px,#0000002b 0 12px 13px,#00000017 0 -3px 5px}._plusButton_14el6_135{width:50px;height:50px;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease-in-out;background:#4ebc3b;margin-right:20px}._plusButton_14el6_135 img{width:50px;height:auto;margin-left:0}._plusButton_14el6_135:hover{transform:scale(1.1);background:#46be2f}._header_14el6_159{display:flex;align-items:center;justify-content:space-between;background-color:#f8f9fa;border-bottom:1px solid #ddd;padding:10px 20px;box-shadow:0 2px 4px #0000001a}._header_14el6_159 ._logo-wrapper_14el6_169,._header_14el6_159 ._profile-wrapper_14el6_170{display:flex;align-items:center}._header_14el6_159 h1{font-size:1.5rem;color:#333;margin:0 auto;font-weight:600;text-align:center;flex-grow:1}._logo-wrapper_14el6_169{margin-right:auto}._profile-wrapper_14el6_170{margin-left:auto}@media (max-width: 768px){._mapsContainer_14el6_77{flex-direction:column}._mapColumn_14el6_84{width:100%;margin-bottom:20px}._searchBar_14el6_54 input{width:100%}}._modalOverlay_oxbvx_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._modalContent_oxbvx_15{position:relative;background-color:#fff;padding:20px;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;text-align:center;animation:_fadeIn_oxbvx_1 .3s ease-out}._mapImage_oxbvx_28{width:100%;height:auto;border-radius:8px;margin-bottom:15px}._title_oxbvx_35{font-size:1.5rem;color:#333;margin-bottom:10px;text-transform:uppercase}p{margin:5px 0;font-size:.9rem;color:#555}a{color:#1e90ff;text-decoration:none;font-weight:700}a:hover{text-decoration:underline}._buttonContainer_oxbvx_58{display:flex;justify-content:space-between;margin-top:20px;gap:10px}button{padding:10px 15px;font-size:.9rem;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s,transform .2s}button:active{transform:scale(.95)}button:disabled{background-color:#d3d3d3;color:#888;cursor:not-allowed}._viewButton_oxbvx_84{background-color:#1e90ff;color:#fff}._viewButton_oxbvx_84:hover{background-color:#155a8a}button:disabled._viewButton_oxbvx_84{background-color:#d3d3d3;color:#888}._editButton_oxbvx_98{background-color:orange;color:#fff}._editButton_oxbvx_98:hover{background-color:#cc8400}button:disabled._editButton_oxbvx_98{background-color:#d3d3d3;color:#888}._deleteButton_oxbvx_112{background-color:#ff4c4c;color:#fff}._deleteButton_oxbvx_112:hover{background-color:#c00}._closeButton_oxbvx_121{margin-top:20px;padding:10px 15px;background-color:#f5f5f5;color:#333;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._closeButton_oxbvx_121:hover{background-color:#e0e0e0}@keyframes _fadeIn_oxbvx_1{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}._editPopupOverlay_oxbvx_146{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._editPopupContent_oxbvx_160{background-color:#fff;padding:20px;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;text-align:center;animation:_fadeIn_oxbvx_1 .3s ease-out}._editField_oxbvx_171{margin:15px 0;text-align:left}._editField_oxbvx_171 label{display:block;margin-bottom:5px;font-size:.9rem;color:#555}._editField_oxbvx_171 input{width:100%;padding:10px;font-size:.9rem;border:1px solid #ccc;border-radius:5px;box-sizing:border-box}._editPopupButtons_oxbvx_192{display:flex;justify-content:space-between;margin-top:20px;gap:10px}._submitButton_oxbvx_199{background-color:#4caf50;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._submitButton_oxbvx_199:hover{background-color:#45a049}._cancelButton_oxbvx_213{background-color:#f44336;color:#fff;padding:10px 15px;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._cancelButton_oxbvx_213:hover{background-color:#d32f2f}._editIcon_oxbvx_227{width:20px;height:20px;margin-left:10px;cursor:pointer;transition:transform .2s ease}._editIcon_oxbvx_227:hover{transform:scale(1.1)}._modalOverlay_1aum1_2{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:999}._denyReason_1aum1_13{display:flex;flex-direction:column;margin-top:10px;border-radius:20px}._denyReasonTextArea_1aum1_19{padding-bottom:4rem}._denySubmitButton_1aum1_23{color:#fff;margin-right:10px}._modal_1aum1_2{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:12px;box-shadow:0 8px 16px #0000004d;width:420px;max-width:90%;z-index:1000;padding:30px;animation:_fadeIn_1aum1_1 .3s ease}@keyframes _fadeIn_1aum1_1{0%{opacity:0;transform:translate(-50%,-55%)}to{opacity:1;transform:translate(-50%,-50%)}}._modalContent_1aum1_57{display:flex;flex-direction:column;align-items:flex-start}h2{font-size:1.8rem;font-weight:600;margin-bottom:20px;color:#333;text-align:center;width:100%}form{width:100%}label{font-size:1rem;font-weight:600;margin-bottom:5px;display:block;color:#555}input,select{width:calc(100% - 10px);padding:10px;margin-bottom:15px;border:1px solid #cccccc;border-radius:6px;font-size:1rem}button{background-color:#007bff;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}button:hover{background-color:#0056b3;transform:scale(1.05)}._cancelButton_1aum1_111{background-color:#dc3545;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._cancelButton_1aum1_111:hover{background-color:#a71d2a;transform:scale(1.05)}._approveButton_1aum1_127{background-color:#28a745;color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._approveButton_1aum1_127:hover{background-color:#218838;transform:scale(1.05)}._denyButton_1aum1_143{background-color:#ffc107;color:#212529;border:none;border-radius:6px;padding:12px 20px;font-size:1rem;cursor:pointer;transition:background-color .3s ease,transform .2s}._denyButton_1aum1_143:hover{background-color:#e0a800;transform:scale(1.05)}._buttonGroup_1aum1_160{display:flex;justify-content:space-between;gap:15px;margin-top:20px}._error_1aum1_167{color:red;font-size:.85rem;margin-top:-10px;margin-bottom:10px}p{font-size:1rem;margin:10px 0;line-height:1.6}a{color:#007bff;text-decoration:none;transition:color .3s ease}a:hover{color:#0056b3}@media (max-width: 480px){._modal_1aum1_2{width:90%}}._modalOverlay_arngm_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}._modalContent_arngm_17{background-color:#fff;padding:2rem;border-radius:12px;width:400px;max-width:90%;box-shadow:0 8px 20px #0003;animation:_fadeIn_arngm_1 .3s ease-out}._title_arngm_28{color:#333;text-transform:uppercase;font-size:1.5rem;margin-bottom:1rem;text-align:center}._modalButtons_arngm_37{display:flex;justify-content:space-between}._modalSubmitButton_arngm_43{padding:.8rem 1.5rem;font-size:1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;background-color:#007bff;color:#fff;transition:background-color .3s,transform .2s}._modalSubmitButton_arngm_43:hover{background-color:#0056b3;transform:scale(1.05)}._modalCancelButton_arngm_61{padding:.8rem 1.5rem;font-size:1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;background-color:#f1f1f1;color:#333;transition:background-color .3s,transform .2s}._modalCancelButton_arngm_61:hover{background-color:#e0e0e0;transform:scale(1.05)}._formData_arngm_79{display:flex;flex-direction:column;gap:1rem}label{font-size:.9rem;color:#666;margin-bottom:.5rem;display:block}input{padding:.7rem;font-size:1rem;border:1px solid #ddd;border-radius:8px;outline:none;transition:border-color .3s}input:focus{border-color:#007bff;box-shadow:0 0 4px #007bff80}@keyframes _fadeIn_arngm_1{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}._toast_t4ud7_1{position:fixed;bottom:20px;right:20px;padding:10px 20px;border-radius:5px;box-shadow:0 2px 5px #0000004d;cursor:pointer;animation:_fadeInOut_t4ud7_1 3s ease-in-out;color:#fff;font-size:16px}._toast_t4ud7_1._success_t4ud7_14{background-color:#4caf50}._toast_t4ud7_1._error_t4ud7_18{background-color:#f44336}@keyframes _fadeInOut_t4ud7_1{0%,to{opacity:0}10%,90%{opacity:1}}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-ext-300-normal-Chhwl1Jq.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-300-normal-BLLmCegk.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-300-normal-DJfICpyc.woff2) format("woff2"),url(/assets/roboto-cyrillic-300-normal-Dg7J0kAT.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(data:font/woff2;base64,d09GMgABAAAAAAXcABIAAAAAChAAAAV+AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghYCYM8EQwKg3yDXwsUABIUATYCJAMkBCAFgnwHIAyCOhuqCCAuDrI5ZN4aokERTSyd8sbnRhCPOT/nSbL5I3uJOVkEOmLbY09VmSg+s7XZR8z2UPVFzdPPH95petP0dBQVoUgu+1/NvnDlsFu1bLZnPtp/9TZG4R6s2iHuHinG8i80DiPfXaFiKo9+oTAOlEMIi8PciP2lbTwhqe7chkVUBQSIAQDBRxAECKlFFzJ0eHQySGIAUgAO4c44Imqnv6i9oQq0lzWwyhZYXdBUcx6AsNu1WSdtEQPnkuMESEM7pl9mqQImBxgY1QCfy4gJcWHgDzSMEycHS71LChLIdQCmt4MkUEQABQiXIoL4RBn93fLxUbiAIo+EvYZx/4CCVEjvs3TZR/d+KY2uf2Brysgkn1T2GE8NUzzFePIJ5Q4ozc1HVW1SmEIul2LNIWN6o2qmKXSQUlcTNfeKQpWFsieK476NC2BpOwaD+IxQyNnsXfI/O7ROGIjMm2uDYp3QkPJglPx2qKytWDayQW2dhKI2GZ6YbpRBJ5KToxZPJMNpWUExGpMiex9iE9kOFJmSKafI1AyHA7M61vYlGRmeNmgyOUznRBZ9tCKHo0Jqwl8761iPsdemE9MT0nH/0BocOLRs5jgagg9N5PCQ5t6qdrjHlOVod7nmgeF1upa11U+ip4geWGfJnjxJTBpxuF8Wak42ybZaHjrzQuBZw38Stckw7embuKn7ZkunqKa0M0NntAm2wcB6TFJ6SLDt5TIWQ2vbelhBRG0OxdY3t5Cx5KSL3eVARFl0lw/Hp5oP01r/rM/qYJMp6Zgcv6sQuu6DTuZZ24GvwwmZGWEbgms20UYPlTcDQeGjUhQAEABQbJh+Qospn+KFz3H4SYkukTK6/ysK88WDovzOgu27yiokV81WWCmr8nftf+uj8OQXWg68++mZj9+eNnXwnfDkW4qDb0en3tW7ZsmQCWdGvD5t4usb0vIxHPuYXjIbxLyig8O2/kbbPr1BkznHJUevG39z4umTHeTwxtRq15UnT3eWo4nsn2qhbnYWeN+3evHZn1rHa/q3/Qsvf906Ci97vnik3/6yB7qO+Bu1oYDsmhVGRjdJHJzYHkwRGw54uDkA+yF3KO10du5viRWLlJQ9MFa0vLRwuI7gxrx7LMMyqOxqhEq/f4ZNeMmf4o2A4F7eWTk9h7+K4fctMefMu0gp2vzvjp14o98gMG0l+SlyR2TIXIKR4s0lgqFVhnuv+Q0wJdVDHR0gctB696O6IZDJSNGaArPdua+yjl2lmtBCKAG/HECAOHANKOVq5YIAqklxwEftn/MK+v7uV/kA8NhPRe0B4HWZ/Ok/yf+vB9V+I0CAAkDAW52LIejxT5IbFlRD6FmBPs1ieuWX+4Szkm51B/PM6tjcIQQIOEc5GYghAOSDQm1EHAF8liKCmACYy8UVFSrZiyryuViut8oNog7NqTIuXMkm31gCltM0BOvwxM7R+lVsKaCOAooog2FLLQ2UYkcV5RTBqKERRiN2RBNBECHEkkQINjhiiz2J1FJILU3UYkM05ZRSRhOpMBpopJxaaqABOx1wwg0vAvYiJtGxcinNVFFAQ7pSaoKojTraadDGJKLFlDBqqaX0KgYlghqKsIUS8KCqjsTAlkZihNF4vB/VAqMYW0QAII1i+pU2trK0gRdZ1Ub4PLJ4wnmeZ0cLfWWQbMO5VGdDHPWsHXeqnmXx7jWsW+ZHuYbN4OLxniNOWO8ohRR3fttsT6MOLzzFTxjsbKKREnh0MNZW7AhdO6KUSfH+4WWjrU/B58t7bSz/5Zt5WyyNt0yc/U237Mf6qeZbBlTT1jzwPnTwN90ygdfxOb6JUzRIUB14Hu/rKtCP1OsgTJ1h/Qg0KH9r3szn+EVOzQBX3y0dErMOihluSRoBAAAA) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAAToAA4AAAAABYQAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgc6Xg4WNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARIAAAEUGjg/4WhlYWQAAANYAAAANgAAADb8WdJpaGhlYQAAA5AAAAAfAAAAJAqpBZJobXR4AAADsAAAAB8AAAAkFzL/w2xvY2EAAAPQAAAAEwAAABQBMAGDbWF4cAAAA+QAAAAcAAAAIAArAOpuYW1lAAAEAAAAANMAAAF8HEg5EXBvc3QAAATUAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCED6HQqncrZIq190ljBKhZyCt+81J1hksktz4TxPz1qRASwkgBgO47Nyrj3XurQoiJc0C35VhTpA7fWCdMAeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8AD3jaDcwBRANhGAbg9/v++3fS1P6rayC6bWYKtGsDCVApGAHUJQUQApUaUVIqCAlAFgIGIAhNyagNEQACOVMEyn23AeB5oLEBqIKuQyGBPiQxCHie8ZQhMqQ8KpGnCtE0N8rSkXtKfrISIY4iXf+raTuq8va/4Z0o4OCEA4BRjUMr1I3eNArQMFvZDExpysmNWU7aTnE2w8ZNOX7RMVZ4JnIXy9MFMVWIztVe56358/3a/uLTF2nVaJPKV8/k397Ix2OKbBqXd/m9lkjaNEH9YKxau7yuW9AYAGjId1VW+e5I2s7nS7RyfPAwJ1u8PLm4ZF3SjCtNWljbny/mjipxLIdxqIs9m4eeBWwkJAd0AcfKVS8AAAABAAAAAiMSqglmyl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS4/og/dUJGghzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwGn+S+GfK6cUUAQVcAIAbC0ESQB42mPuYUhhgALGTxDMmsVQy7SNIR7M3vCvGQBr4QgGAHjaY2Bg0ITDBIY6IOwCABGXArQAeNpjYGRgYOBk6GcQY4hkYAXzEICNgREAGPMBFnjaTYw1kgIBFAV73TfecKKN1l2SdcE9wxmrwp1rcAKOwfF4OPWt+40Au1hssLa5B6QYzniNEwYzXueY/ow3VvLNFd7ilOKMt5XHZnwsAoemqsoLl6rOpC7IUtXkcTBlFerYXFLEVWZSpqHdUOLjn0++CRDVPueGC66IUCGnaWrO8eFi48gSmNRpyCuUMSZvX3PLI68Tu5I9EsHEpkWRLPXVf2Gs/OtTXqVHfZHM/qAy+KWisiliyv4pk+dC9E5RZRBZfNWYmElDU6etXeBiBO+kNXoAeNpjYGYAg/9ZDCkMWAAAKh8B0QA=) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-greek-300-normal-Bx8edVml.woff2) format("woff2"),url(/assets/roboto-greek-300-normal-D3gN5oZ1.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-vietnamese-300-normal-PZa9KE_J.woff2) format("woff2"),url(/assets/roboto-vietnamese-300-normal-CAomnZLO.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-ext-300-normal-BzRVPTS2.woff2) format("woff2"),url(/assets/roboto-latin-ext-300-normal-Djx841zm.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-300-normal-BizgZZ3y.woff2) format("woff2"),url(/assets/roboto-latin-300-normal-BZ6gvbSO.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-ext-400-normal-D76n7Daw.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-400-normal-b0JluIOJ.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-400-normal-BiRJyiea.woff2) format("woff2"),url(/assets/roboto-cyrillic-400-normal-JN0iKxGs.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAAXYABIAAAAACgAAAAV8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghUCYM8EQwKg2iDTgsUABIUATYCJAMkBCAFgnQHIAyCSRucCFFUkDIBfhzkZKcmnOCkolAQnoSyxYqFpYXieXb+xgO83X+ee8cPWukL624junMJs9RsoCpuxSopamF+Pi97f6xC6QrJFHRKpFCmII8L4C95A3y0rJouCIdkJgncD/oHj/4Ptd1Rm0IYXCtKb1yQDmO4797U2dlr/Om01LkOVpT2L12pLVa73QtgLIKxr2n9efiAIhiyAGBi25Coekds8qZninvglyCgAwhKQRDQspY1tF9oNA0iKTQN4IRtO0c8LdtzW2orwfLCWqaCzZfl11dfBsTdnaQ3h2kZ2eOZEwgbeF/yBVwQgZ2DvRwJfK0Dj4wLA3+w4XAB/M8FxYoIY9AzkO6S7TOGwEWk2ZbiCu/nOQToKUU5oq4x6zbE1HUGA3Rl83vzuil5fuJX+RchWrDatW53jdtwnlgZhpwlhXP0dtJr7vYxsPT/PLq40lhiT5ruQpdOGGT7LM3N6cMWw/ws9PIfIIcEwLJDUR3FYQgfiUJzxskPq2Qy1ggbiezOIJylETciLCiNZCMFSKaDJqeFHmOPg5ePsYC2syXS6aE6P7V6nJwhSOIdAc0Ke4n7Xb8SyWqkqXiaf5zcKrRPwvfqdPtrZBtL2slMnRuMa42LvcxYpRRZvA/n8T7tUCIaeZ2q3j7uEhVDkc8XZrrMEm9RfK85lv64HemnFa6lmfuYFI7x/oVR8InaSyj5acula+ve+LU96YKCxZUXd9MwGtXGUoutAUxK5q2NmLMD2mz+aZ2N4WzsRo9j+buXk1pEpRttzy1KfocMeUz6dmDs9k7cweWb9rsbsde9m5w+h/OOcb2wOG7o3RICJCrFpqEEFRhZH9oDuAjooYPPICPCo0jTpMlTRj1BOey1KZvbSstFFVnKclSBPKn7/nPJ6C8PU1DPT6+kYz8/gBNueLjm39PQ/QP9dT+ltmVK4aRWsRS+SabvokUfQ1Z/zGWygF8Mr9+/8b206dV6Ljp9GGVza+Jnt9+d8hVurXeJt93vjq6U3ZwJkOx4aa9k2z3+d04j7me6E29d13G+Vvxzc/2x9y4pOP96WSx98PKAi/qn3un2CdsyOa1xdLjn/jNOzIUF+AcAFPL/LuBa/t/+/00Wx7+LZarhcLSj7qhqn2s859Wt3etQ2/+kfRxqzc5ou8fJDwOT0QDzOKLLr2WqruDlpp0t2a9YhvLuvI6qnb1VNjpkZXJDl/FYKm5xTmMZ2tdaepL9fasvEPAi1srweZuqi+ubWBAA9duqOh3Aq2fXLZ48tfLYbwcI6FRFSox5GgsC4uTo+6gDX3L73r+JVpUAH39Qk4BvUOKXX+7fO5WxrANQiSBQXPZPRnXwL6t/kZURIvyq5E7nKYd/+oHsWlclBNZezqf/HAGhco/laHwB9IjiFIGA0gW4QlrhDPtsR9DxoiPqeXgx8S2mzZGZYXLk1qLzPbQCLlIvLSaeKN70nUj5TPIVKsUgsWqVoFQqU4hRrQ6jDiVahCAhYiUJsZwjklEiVgFWPdZyiRglGlTKVysFo1adMqxqRNRGB07ceCHMeI4bn835eBCWSYtaZUqUqmdxhRPCsFgl1zMIEaoVIhECVMoeIbGn6hD5JrKmH9WIUYTEBZpLoIi4tu4srS3CQRWXBjxE2jOODD23Tq8ZEC06EsK9yPGl5oa3Y1q4+6JJksQg5/nLSZoT4710FclcN06s6pO8JjvU0YoUM1dnec4lZWdJvIclqegQ1wVLSasxL8rVZtzuOy/2LOk8wKOF3qSrG3TEOel5b59dOyR9f+fF65a2B/EBlR2CR1LhYu2/fT32swx1OFfBLqCUehyHLE7hXvwPdkoD9sNc7GoobUO8bPge7JR6nItTeA3/g5/SgNk+RYQ6q0mgOgA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATkAA4AAAAABXwAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgdAng+GNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARQAAAEUnMz0sGhlYWQAAANYAAAANgAAADb8atJ6aGhlYQAAA5AAAAAfAAAAJAq6BalobXR4AAADsAAAAB8AAAAkF+P/e2xvY2EAAAPQAAAAEwAAABQBMQGDbWF4cAAAA+QAAAAcAAAAIAArAOVuYW1lAAAEAAAAAM4AAAF0G504anBvc3QAAATQAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCE76FQ6lbNFRlGr01jBKhZyCt+81B3hlMktT4TxPz1qRASwkABg3ffVwrj1XurQoiJc0M35VhTpA+O9Ck4AeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8ADwAFAGQAAAMoBbAAAwAGAAkADAAPAAAhIREhAxEBAREBAyEBNQEhAyj9PALENv7u/roBDOQCA/7+AQL9/QWw+qQFB/19Anf7EQJ4/V4CXogCXgAAAgB2/+wFCQXEABEAHwAAARQCBCMiJAInNTQSJDMyBBIVJxACIyICBxUUEjMyEjcFCZD++LCs/vaTApIBC6yvAQuQv9C7ttED07m6zAMCqdb+waipATnOadIBQqup/r/VAgEDARX+6/Zr+/7hAQ/9AAIAbwRwAskF1gAFAA0AAAETMxUDIwEzFRYXByY1AZF0xN9Z/t6oA1BJsgSUAUIV/sMBUlt7VTtfu////jL/7AVPBdYAJgAFRgAABwAG/cMAAAABAAAAAiMSo8X+nl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS9Pob/dUJMAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwOn5S/qfF6cBUAQVcAIAb4cEcQB42mPuYUhhgALG3xDM2sBQxqzAkA9mH/tnBABopAdwAHjaY2Bg0ITDRIY6IOwCABGeArUAeNpjYGRgYOBk6GcQYwhhYAXzEICNgREAGIoBEXjaXY4BBgJRFEVPVSnSCkIgoKkKUSBJIqESIKp+05BpzFRpI62gBbTErvGNkes+977nfB8ocSJHJl8GtnxtzlDhY3OWKm+bc6l9PpULNAhsLlJjbXNVCc7cpIABLekZy2FHIB90NWpXQlxdL3jaGXwizUibOTPGTFiw0mzSxaHNUsRevslNNSP6LnpHyEYtFOvp5lOPiQ49+gzj1lbr/zHp98ZywEtbDxf9PqE6SlOukivOqM3wOeAojbhIdZYJFcXNEMkhD80jzg9HQTQoAAB42mNgZgCD/1kMKQxYAAAqHwHRAA==) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-greek-400-normal-LPh2sqOm.woff2) format("woff2"),url(/assets/roboto-greek-400-normal-IIc_WWwF.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-vietnamese-400-normal-DhTUfTw_.woff2) format("woff2"),url(/assets/roboto-vietnamese-400-normal-D5pJwT9g.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-ext-400-normal-DgXbz5gU.woff2) format("woff2"),url(/assets/roboto-latin-ext-400-normal-BSFkPfbf.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-400-normal-DXyFPIdK.woff2) format("woff2"),url(/assets/roboto-latin-400-normal-BVyCgWwA.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-ext-500-normal-BJvL3D7h.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-500-normal-37WQE4S0.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-500-normal-_hamcpv8.woff2) format("woff2"),url(/assets/roboto-cyrillic-500-normal-YnJLGrUm.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAAXwABIAAAAACiQAAAWUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghcCYM8EQwKg3CDVwsUABIUATYCJAMkBCAFgwAHIAyCUxvDCECO0yW2MxHcwQN9m/Zmd7GAt056LBXDUnN6hagTcSJGKmInrhNO9dPUA1Hd9gmGUIldvZjF5GpN7d6GXSYqHkE4sOrvQ/cXxAKTi9BxlRWyDoCEqmRbISus7GNs4WxzgFD/DgjABgAIzAgEAsgim2xELLe4GjMaQCYDwDcsZCHaXqd07tw0yNSeTcmBQT/YvmV4O4DU1ap2ifgNAxguMywC4RuWqS/T3YC1DIiaVIC3Iu+W5RGFr8TIGLrHZQo64moAbaVBoqOjKqHGnvGoCJ6vUQgcmFEwAgp2dK7xlZzVFgqIXTN/ZD7L9Hz0yD35VwEU5vMc53IV5/Idm6TZq1arUm2lcRvPAuPH2hivXI4rs4J97GI8qh+rtpLx2pm4DJLxxslMMD6JS2nEY9IwGD9AAEiCRdJSXj8qxFmJB0XmqIxNG7WorS0hKYK6Hu+LSdEWkkpQivn+kFSDeq5UZ+VW1s9I6KfppxV0nabn6r3tXVKbZSnrVcnTEhFdUpU+XVIdv4wmvNP0ZCKxMiQ1RTItc1oCinq/Clk/dVb/h6QhWLS3Oru8vqJeHoh5ZTRmJ/n9elw+SczIJ8MCfyIRksazpHuNvX2TzxdMo8b5IWnWwaoCi7peEu80vHOGXx4IA97TZiSGIE+2fFDgA6KdUp0Vj/kD5Tx2YMO9VhiEmEl4V3vEQtISLKqqj8dQtT8xmBWUwbgFKwktsgVH54gT+mkt9nooikbnN3OiGltMUP1qJOGVMzgLpH7iQRdU8To77UEZrYt1GjIaIrZ5EGKx8GwECmaUTAYnABYAPPvSmkB6iIPYBt7BwFvViQKSWU2dO90Ooznvvdu5Y3dvv3mgydkvBvC7HHjro6zTPnmnVhx899MzP367pvrgO/HLvFXNgbetp78pdjdaqV/dVl6vqX5DzH0Wg3xWTTZhMLkPxbf9aN3+6bWqaD4hmtVUxSfpN84/1XPHPaPj77hoHS9Vvn5RHH5yl+e2C6O89p/2y/3ilhseRHxT/dPDhptuuTfzR/6UxZek1r464fO1zYGq0VZlV1G8LO/uxOMzmI0hF0wY/78POABjJ/OdocvwZtrmcrs9K6TNJXlpKzPKLJfaX0ISj1Qi3lFFX5soBDWurrSmIFtIG3bkJpl5VGa9l7aR5PaDFJd0vJezIK359ABacrx6YlPaiEa0M6TNNTpeyKxAvf8t728Amp93ac4CpDUitZckFklemiKJTB60LmkCExPbrIg0+pogAJvFpIGiGDXFBAJQZnjuPl6+ttW5+nfzFDMAz/7kDgO8Liq/+2fm/6/PJvNmwIICgADT4JgNLAN89dj6FghmF4t6Bl0KYiyvMByjuwfpwd7nubFsBGDhbCZSyoAAwAEKSg5GBGCmm4rQLECLRzuTYCrXmRQcXNCscpo1MBmYzbBkBEW15Ni/HHptscWIlUSIsH35PWHajWjXqVdSmJRNekQY1KdT0rDNkjaLUKzABnGlqsSFWEiYHCqldEjZIiVEiaQufbYaUitpk836pAzTJaYvYBHLWIWryaFhqFJSj9k5qN0mfYH64RukjNhpkz491xLRQqOvTp6UlJ7XJukUGNYpjM56gwbpVMrxzTh3TeL5xbcd44/CqACQ6afLfK60BSQB0sKhBETaKbb3eMC5MmeW14U5wANieXjmVDcy/QGlNLpwxgRnp+avCvvHpzWqnSFnrm+iw87YWbEu5G0zRRdL25kbC1fOm2JnOdxVunKGXdb2juKl/l7rudubwM62ra1o6TQ7e3Bm9nibjWPDsoDPs4q0y2EKSH7t09MHxovNabmBct2W9IHsumzDWwH3Q0QAXgaYwrPxbsyAT7c1vQ5bcX/WqQuyFFCCuM9/BPCxLY3EDZ6NL2KGr2upiUznKVBH5gvU2nyxGQA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE0AAABgdG3hCmNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARAAAAESY99A82hlYWQAAANYAAAANgAAADb8n9JyaGhlYQAAA5AAAAAfAAAAJArvBcJobXR4AAADsAAAAB8AAAAkGAT/TWxvY2EAAAPQAAAAEwAAABQBLwGBbWF4cAAAA+QAAAAcAAAAIAArAN9uYW1lAAAEAAAAANYAAAGAHGI533Bvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42mNgZpnB+IWBlYGBdRarMQMDozyEZr7IkMbEwMAAxFDgABRkQALu/v7uIEF5XzaGfwwMaeyzmBgUGBjng+RYrFg3MCgAITMADeIKxAAAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA942g2PJVREURRF731/Hh93h3GtowUtuEvBHSIknE7GO+7uLn3h9IW7O/8N04/sDRRKATgdnQAO7MABnMENQC73kHMeiB7IydGMck4nhJIdC3tgS+h8RjjGkAgCnfjpobzQRGp+PUitkE/ym0k+AIFy6x2V0B1wBwkAehORUqEiWrPJUyUTefrxJqJUEN7H29No8DRTSRu7n55kt53YiV5Yil4dKMwP9CyS5b6BWTJ1zFZHRzFyL/0Io0eH2foRfUHCrLeZT+wH4cP2ViGqJMf0xGbiAoBeRh9OiUYfXz9eY8bWqoOLPHY4ySWmToi6MMKHbWJmQUN0bPaa1cqCbZyltqYGaDQAD3bCLMA/wjpXMwABAAAAAiMSEj1jSl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS7Pok/dUJXAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwJn9S+WfI2cMUAQVcAIAdi8EvwB42mPuYUhhgALGfxDM2saQxqzDkA5mn/knAwBo+QdjAHjaY2Bg0ITDBIZaIOwEABGOArEAeNpjYGRgYOBk6GcQY/BjYAXzEICNgREAGAwBC3jaTY+1dQNAEAXHzC7AkSJHZobEzEyZScyMfagC1aHiNIHoHc3fWwSmiTLGyPgM8EO7yyMs0eryKIs0uzw2ZB8f4gmWyXZ5UvtHlxcliFN25Tli3VXDxRr/5D0hfyOqHEVi/qZJaIuQpUTEs84Dt5xzyRPv3qts6b3BGzmCnrJnlUcihElQIcOXXKSkypElgP5sss0+x6jYYFN+I0JM/zT/FIez6TOc7VxLngZFdQwn6efYlK7JuWKkiahuyRJiTTol7Qrw1o8qocKJPEWqWIG1DvezNmIAAHjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-greek-500-normal-Bg8BLohm.woff2) format("woff2"),url(/assets/roboto-greek-500-normal-CdRewbqV.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-vietnamese-500-normal-p0V0BAAE.woff2) format("woff2"),url(/assets/roboto-vietnamese-500-normal-LvuCHq7y.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-ext-500-normal-OQJhyaXd.woff2) format("woff2"),url(/assets/roboto-latin-ext-500-normal-DvHxAkTn.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-500-normal-C6iW8rdg.woff2) format("woff2"),url(/assets/roboto-latin-500-normal-rpP1_v3s.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-ext-700-normal-CyZgh00P.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-700-normal-DXzexxfu.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-700-normal-jruQITdB.woff2) format("woff2"),url(/assets/roboto-cyrillic-700-normal-BJaAVvFw.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAAWwABIAAAAACcAAAAVTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghICYM8EQwKg0iDMwsUABIUATYCJAMkBCAFgn4HIAyCKRtfCCCeBTkZ2iuxGWKJyeMZv66OCKiaZs+C2PYBKynriFkOIRw+g/RKasP0I2Tp7+2q9xfi7wUbK2iEHqhniZB3rvwq15s+McjkCIq28lPzNpOz6381+8JXa2p3NywTFUsoPFi19wHiAoKxcTWy7qYKLfvKspIVUta28e98NkNGfL1Saoy9g4AKICgIgoCSXWQgCxYNTUGIBJpgg22cCgGyrP3XF1yQdvCC6CzmIwxLnosAt/vj5LbogZT0yrQShPZyIH7ZQREGFZjjiOGtLF492gsUtK8M0uCg/JUR1JDrIJmWZmoo/ygYL3bjLzwPD7AMaFUQySHSouZS+8pjnYMgXNq8mgd/9PCX8m9BZJhfbtawij6MddmzXnMGDujW2EdCdJVa3Fd4Mk1Csl2nNNMt10tiuFXn3BNacx+KIDNiOYaO1X2E7Oh4gPxftmBXX9F/7704DGyNdtu7kOhHYsRmoaQvhzFb60H//EUTc7kKeljbsvSAQ7qI2gxmDMhnsfYk8VAxmqL1dTtFG+oMzulIrxsPVCgaOEwiqQKKhx1Uo44YKodIbn9HZim7XB4XrJkbn8O9BVWcs4DXMgztxidrMHiSZCqnQu6YYtrdtqccGPLFXEnKFoIU18+5s07p2HIIDHMZPEdmq1v6d5QwT4y9E+Ad0jZE//yFubK3ZjG5N6bTmQvnoiK9l3RxWGSXT851d9l7GQWHJTbrt5ChjP33VNg7B4dLalu2yO62CbD/AyFwyQZzLfSLvzqmI73y0i6klzzQCaxcdNjCZnM+e2uUdV+uruoi9E8ukAcDESmImrSBIuhipGYJHoqtWJm9W+ontE9EUxK3YefWXFHlp7edcrrNEXL4HtGHhcOBr3/Ou49KWz55Z1M4991Pt3/8tv3OfVPa8toGe6+Xt765+XRVuHrpoLLXN25480YY8ow0eyY+cA8IzHc+b+FJJ+WTP70hJnteQjTxmnWf73/zsvl9rt1/b/X2q+Z5vuTNKxf1uXpEz7Pf+8Zo3276/vLLbvrGJ4s/vOn3Ky+74TufLOl18aqjpr/s/vmsPbjJK1qby2snpvtz1PuaKhQIXATycv+Dc2j0bJ6ekL4ps7COfkLVF6XMUtgIepWjcoCfzl3q5ZTUeVVhCUuf7qpg6paropis9dOYsXKSXRNIqt1eio8R2goGYHINRsTc2S1kpdI68676G0FAUHXvmHLAspDln/WsECAMyzFZ+hRTYfWLAgioFPMJUZRLojwBUf8uteOfn9u7bcbvhd4F8MxPnUcB8HpY98Y/Y/5/vXhxYRFRFIFA/ohGheIW1TcmjhG0gGK8zQGqoaGH0otsitupzPd5rtETQdFOPYwIFEArkWicIAEFB/EXkiL2cu/lCCrucEQKbnXEejgbnDhSgzgcOT1MpVplHhxiqbN4NRBUq/M8Ay//bhMbEU+ywErgYmci8lgkWiQY0q9TtxGTunEq8MpMkBhJlkg4HSQuZjNECxbZSTzo9s3lKtVqBKCM5by7lsan5zekOumw17oFdtarxAKJbKR6PSVWLuJT+nmY8Kh2Li7UhGN6EUi7knLEP7VCZMbzB5oxa6/MKqWZ4eQQHg13O5QPyU6KUhh+f9Q1jaVxRiGGvZJzJ+/RkOuVruwzWJPplctvT4kN98p3TCrJivMqNIzOSYnuFWtGkFdJtbyhJNWj/Nvrj1t4hFwJzw/P/A3vk8taw/F3YacRxkwn3LUH3tGJd7V247SOaBcE0wl3jZJEZ+ga/Yds4aQQ6Wi3FJ3imZRIIIqRPiHIbp9wl47pDD2l/+nWrQahT1oivVBjuF0jxwMAAA==) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE4AAABgdTXg+WNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARQAAAEUTyyJzmhlYWQAAANcAAAANgAAADb819JcaGhlYQAAA5QAAAAfAAAAJAsmBdVobXR4AAADtAAAAB8AAAAkF/f/LGxvY2EAAAPUAAAAEwAAABQBLwGDbWF4cAAAA+gAAAAcAAAAIAArAN9uYW1lAAAEBAAAANQAAAF+HF85GnBvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42k2HNwGEQAAE57IM8PDdV3Q0BBd4Ipe0CMAEgsh586J0JwcMmML8QHhnq5FMApIbASg+CNM0xAcvtsyQuUJuV7QA+m96/I1qBfuaCnwAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA8ABQBkAAADKAWwAAMABgAJAAwADwAAISERIQMRAQERAQMhATUBIQMo/TwCxDb+7v66AQzkAgP+/gEC/f0FsPqkBQf9fQJ3+xECeP1eAl6IAl4AAAIAVv/sBS4FxAAQAB4AAAEUAgQjIiQCJzU0EiQgBBIVJTQmIyIGBxUUFjMyNjcFLpj+5be1/uScAZsBGwFsARub/tCkmJekAaSal6IBArfX/rywrgFD0kjXAUevr/651gHl7uvjR9/27eMAAAIAWwRvAssF1wAFAA4AAAETMxUDIwEzFRYXByYmNQGJb9PmXP7SrQFMU0pdBJsBPBX+wQFUXnw4ViOJXQD///4X/+wFdAXXACYABUYAAAcABv28AAAAAQAAAAIjEjlU04RfDzz1ABkIAAAAAADE8BEuAAAAANUBUtb6MP3VCYcIcwABAAkAAgAAAAAAAHjaY2BkYGDP+cfDwMDZ9cvgnylnO1AEFXACAHx/BQkAeNpj7mFIYYACxn8QzNrGEMYszxANZp/5Jw4AZykHNQB42mNgYNCEw3iGOiDsAgARkAKzAHjaY2BkYGDgZOhnEGPwY2AF8xCAjYERABgMAQt42mJgYOBgSGNgZmBk4QSy4xh2QdmMDDwM66BsJqCaZRA2kBRjmABlsyCxWQFVjyUWQgEQRW8isoafSLhLwd0t4+7O7nk4nDfug4XZyzYp3nzZZlkw4SBsCOMQzg/Y6bIR95UdyluzY6zsgqliQ1bsJfeKFMmRIEWZhqQNN3ac1NXREx/ENuKSCwa01bNT11T+CuNR68JDgMjDc8oL/PUan96X/ssmxBuu7JgyRn98prhkZVgLY3UN5eVY0ccuK8ZCMKh/uvYPT/+Id5wkB9hvI3U1mnjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-greek-700-normal-Bs05n1ZH.woff2) format("woff2"),url(/assets/roboto-greek-700-normal-1IZ-NEfb.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-vietnamese-700-normal-CBbheh0s.woff2) format("woff2"),url(/assets/roboto-vietnamese-700-normal-B4Nagvlm.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-ext-700-normal-DchBbzVz.woff2) format("woff2"),url(/assets/roboto-latin-ext-700-normal-Ba-CAIIA.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-700-normal-CbYYDfWS.woff2) format("woff2"),url(/assets/roboto-latin-700-normal-BWcFiwQV.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}._container_1h1ao_1{max-width:1200px;margin:0 auto;padding:20px;text-align:center;font-family:Roboto,sans-serif;overflow:hidden}h1{font-size:2.5rem;color:#000;margin-bottom:20px}._mapsContainer_1h1ao_16{display:flex;flex-direction:column;gap:20px;margin-top:30px}._tile_1h1ao_23{width:90%;margin:0 auto 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2c3e50;background-color:#fff;box-shadow:#0000001a 0 5px 15px;transition:all .3s ease-in-out;padding:10px;border:2px solid #232323;border-radius:12px}._tile_1h1ao_23:hover{transform:scale(1.05);box-shadow:#0006 0 8px 18px;background:#eee}._imgStyle_1h1ao_46{width:80%;margin-top:10px;margin-bottom:5px}._mapTitle_1h1ao_52{color:#2c2f33;text-transform:uppercase;margin-bottom:10px;font-size:1.2rem}._buttonContainer_1h1ao_59{display:flex;flex-direction:column;gap:10px;width:100%}._buttonsGroup_1h1ao_66{display:flex;justify-content:space-between;gap:10px;width:100%}._approveButton_1h1ao_73,._denyButton_1h1ao_73{padding:8px 16px;font-size:14px;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s ease,transform .2s ease}._approveButton_1h1ao_73{background-color:#4caf50;color:#fff}._approveButton_1h1ao_73:hover{background-color:#388e3c;transform:translateY(-2px)}._denyButton_1h1ao_73{background-color:#f44336;color:#fff}._denyButton_1h1ao_73:hover{background-color:#d32f2f;transform:translateY(-2px)}._viewPublishFormButton_1h1ao_102{margin-bottom:10px}._reasonInput_1h1ao_106{width:100%;padding:8px;font-size:14px;border:1px solid #ccc;border-radius:8px;outline:none;margin-bottom:10px}._reasonInput_1h1ao_106:focus{border-color:#1e90ff;box-shadow:0 0 8px #1e90ff80}@media (max-width: 768px){._mapsContainer_1h1ao_16{flex-direction:column}._tile_1h1ao_23,._reasonInput_1h1ao_106{width:100%}._buttonsGroup_1h1ao_66{flex-direction:column;gap:10px}}._openButton_1l2n8_1{padding:10px 20px;font-size:16px;background-color:#007bff;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._openButton_1l2n8_1:hover{background-color:#0056b3}._modalBackground_1l2n8_16{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}._modalContent_1l2n8_29{background-color:#fff;padding:20px;border-radius:10px;width:80%;max-width:600px;position:relative}._heading_1l2n8_38{font-size:24px;font-weight:700;margin-bottom:15px;color:#333}._cardContainer_1l2n8_45{display:flex;flex-wrap:wrap;gap:15px;margin-top:15px}._card_1l2n8_45{background-color:#f9f9f9;border:1px solid #ddd;border-radius:8px;padding:15px;flex:1 1 calc(50% - 20px);max-width:calc(50% - 20px);box-shadow:0 2px 4px #0000001a}._cardTitle_1l2n8_62{font-size:18px;font-weight:700;margin-bottom:10px}._cardContent_1l2n8_68{margin-bottom:5px;font-size:14px;color:#555}._cardFooter_1l2n8_74{font-size:12px;color:#666}._noReports_1l2n8_79{font-size:16px;color:#999;text-align:center;width:100%}._closeButton_1l2n8_86{margin-top:15px;padding:10px 20px;font-size:16px;background-color:#dc3545;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s ease}._closeButton_1l2n8_86:hover{background-color:#a71d2a}.privacy-policy-container{max-width:800px;margin:50px auto;padding:20px;background-color:#f9f9f9;border:1px solid #ddd;border-radius:8px;box-shadow:0 4px 8px #0000001a}.privacy-policy-container h1,.privacy-policy-container h2{color:#333;margin-bottom:20px}.privacy-policy-container p{color:#555;line-height:1.6;margin-bottom:15px}.privacy-policy-container ul{margin-left:20px;margin-bottom:20px}.privacy-policy-container ul li{margin-bottom:10px}.privacy-policy-container a{color:#007bff;text-decoration:none}.privacy-policy-container a:hover{text-decoration:underline}.terms-container{max-width:800px;margin:40px auto;padding:20px;background-color:#f9f9f9;border-radius:8px;box-shadow:0 4px 6px #0000001a;font-family:Arial,sans-serif;color:#333;line-height:1.6}.terms-container h1{font-size:2rem;text-align:center;margin-bottom:20px}.terms-container h2{font-size:1.5rem;margin-top:20px;color:#007bff}.terms-container p{margin:10px 0}.terms-container ul{margin:10px 20px;padding-left:20px;list-style:disc}.terms-container a{color:#007bff;text-decoration:none}.terms-container a:hover{text-decoration:underline}html,body,#root{margin:0;padding:0;width:100%;height:100%}
Index: imaps-frontend/dist/assets/index.es-CFQgUN49.js
===================================================================
--- imaps-frontend/dist/assets/index.es-CFQgUN49.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index.es-CFQgUN49.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,19 @@
+import{c as Ke,_ as za,g as _o}from"./index-Cs83xd2q.js";var vt=function(a){return a&&a.Math===Math&&a},V=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),$t={},k=function(a){try{return!!a()}catch{return!0}},$l=k,le=!$l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),wl=k,mr=!wl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Cl=mr,Ut=Function.prototype.call,Y=Cl?Ut.bind(Ut):function(){return Ut.apply(Ut,arguments)},Vo={},Do={}.propertyIsEnumerable,ko=Object.getOwnPropertyDescriptor,Al=ko&&!Do.call({1:2},1);Vo.f=Al?function(e){var t=ko(this,e);return!!t&&t.enumerable}:Do;var Ti=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Lo=mr,Bo=Function.prototype,Ha=Bo.call,Pl=Lo&&Bo.bind.bind(Ha,Ha),L=Lo?Pl:function(a){return function(){return Ha.apply(a,arguments)}},jo=L,Rl=jo({}.toString),Nl=jo("".slice),Be=function(a){return Nl(Rl(a),8,-1)},Il=L,Ml=k,_l=Be,Qr=Object,Vl=Il("".split),Fo=Ml(function(){return!Qr("z").propertyIsEnumerable(0)})?function(a){return _l(a)==="String"?Vl(a,""):Qr(a)}:Qr,je=function(a){return a==null},Dl=je,kl=TypeError,he=function(a){if(Dl(a))throw new kl("Can't call method on "+a);return a},Ll=Fo,Bl=he,wt=function(a){return Ll(Bl(a))},Kr=typeof document=="object"&&document.all,B=typeof Kr>"u"&&Kr!==void 0?function(a){return typeof a=="function"||a===Kr}:function(a){return typeof a=="function"},jl=B,ve=function(a){return typeof a=="object"?a!==null:jl(a)},Zr=V,Fl=B,Ul=function(a){return Fl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Ul(Zr[a]):Zr[a]&&Zr[a][e]},Gl=L,br=Gl({}.isPrototypeOf),zl=V,dn=zl.navigator,pn=dn&&dn.userAgent,Ct=pn?String(pn):"",Uo=V,Jr=Ct,yn=Uo.process,mn=Uo.Deno,bn=yn&&yn.versions||mn&&mn.version,xn=bn&&bn.v8,ue,fr;xn&&(ue=xn.split("."),fr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!fr&&Jr&&(ue=Jr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Jr.match(/Chrome\/(\d+)/),ue&&(fr=+ue[1])));var Oi=fr,Tn=Oi,Hl=k,Yl=V,Xl=Yl.String,Go=!!Object.getOwnPropertySymbols&&!Hl(function(){var a=Symbol("symbol detection");return!Xl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Tn&&Tn<41}),Wl=Go,zo=Wl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ql=Fe,Ql=B,Kl=br,Zl=zo,Jl=Object,Ho=Zl?function(a){return typeof a=="symbol"}:function(a){var e=ql("Symbol");return Ql(e)&&Kl(e.prototype,Jl(a))},eh=String,xr=function(a){try{return eh(a)}catch{return"Object"}},th=B,rh=xr,ah=TypeError,Te=function(a){if(th(a))return a;throw new ah(rh(a)+" is not a function")},ih=Te,nh=je,ot=function(a,e){var t=a[e];return nh(t)?void 0:ih(t)},ea=Y,ta=B,ra=ve,sh=TypeError,oh=function(a,e){var t,r;if(e==="string"&&ta(t=a.toString)&&!ra(r=ea(t,a))||ta(t=a.valueOf)&&!ra(r=ea(t,a))||e!=="string"&&ta(t=a.toString)&&!ra(r=ea(t,a)))return r;throw new sh("Can't convert object to primitive value")},Yo={exports:{}},On=V,uh=Object.defineProperty,Si=function(a,e){try{uh(On,a,{value:e,configurable:!0,writable:!0})}catch{On[a]=e}return e},lh=V,hh=Si,Sn="__core-js_shared__",En=Yo.exports=lh[Sn]||hh(Sn,{});(En.versions||(En.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ei=Yo.exports,$n=Ei,$i=function(a,e){return $n[a]||($n[a]=e||{})},vh=he,fh=Object,Tr=function(a){return fh(vh(a))},ch=L,gh=Tr,dh=ch({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return dh(gh(e),t)},ph=L,yh=0,mh=Math.random(),bh=ph(1 .toString),Xo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+bh(++yh+mh,36)},xh=V,Th=$i,wn=fe,Oh=Xo,Sh=Go,Eh=zo,Ze=xh.Symbol,aa=Th("wks"),$h=Eh?Ze.for||Ze:Ze&&Ze.withoutSetter||Oh,z=function(a){return wn(aa,a)||(aa[a]=Sh&&wn(Ze,a)?Ze[a]:$h("Symbol."+a)),aa[a]},wh=Y,Cn=ve,An=Ho,Ch=ot,Ah=oh,Ph=z,Rh=TypeError,Nh=Ph("toPrimitive"),Ih=function(a,e){if(!Cn(a)||An(a))return a;var t=Ch(a,Nh),r;if(t){if(e===void 0&&(e="default"),r=wh(t,a,e),!Cn(r)||An(r))return r;throw new Rh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Ah(a,e)},Mh=Ih,_h=Ho,Wo=function(a){var e=Mh(a,"string");return _h(e)?e:e+""},Vh=V,Pn=ve,Ya=Vh.document,Dh=Pn(Ya)&&Pn(Ya.createElement),Or=function(a){return Dh?Ya.createElement(a):{}},kh=le,Lh=k,Bh=Or,qo=!kh&&!Lh(function(){return Object.defineProperty(Bh("div"),"a",{get:function(){return 7}}).a!==7}),jh=le,Fh=Y,Uh=Vo,Gh=Ti,zh=wt,Hh=Wo,Yh=fe,Xh=qo,Rn=Object.getOwnPropertyDescriptor;$t.f=jh?Rn:function(e,t){if(e=zh(e),t=Hh(t),Xh)try{return Rn(e,t)}catch{}if(Yh(e,t))return Gh(!Fh(Uh.f,e,t),e[t])};var Oe={},Wh=le,qh=k,Qo=Wh&&qh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Qh=ve,Kh=String,Zh=TypeError,J=function(a){if(Qh(a))return a;throw new Zh(Kh(a)+" is not an object")},Jh=le,ev=qo,tv=Qo,Gt=J,Nn=Wo,rv=TypeError,ia=Object.defineProperty,av=Object.getOwnPropertyDescriptor,na="enumerable",sa="configurable",oa="writable";Oe.f=Jh?tv?function(e,t,r){if(Gt(e),t=Nn(t),Gt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&oa in r&&!r[oa]){var i=av(e,t);i&&i[oa]&&(e[t]=r.value,r={configurable:sa in r?r[sa]:i[sa],enumerable:na in r?r[na]:i[na],writable:!1})}return ia(e,t,r)}:ia:function(e,t,r){if(Gt(e),t=Nn(t),Gt(r),ev)try{return ia(e,t,r)}catch{}if("get"in r||"set"in r)throw new rv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var iv=le,nv=Oe,sv=Ti,At=iv?function(a,e,t){return nv.f(a,e,sv(1,t))}:function(a,e,t){return a[e]=t,a},Ko={exports:{}},Xa=le,ov=fe,Zo=Function.prototype,uv=Xa&&Object.getOwnPropertyDescriptor,wi=ov(Zo,"name"),lv=wi&&(function(){}).name==="something",hv=wi&&(!Xa||Xa&&uv(Zo,"name").configurable),Sr={EXISTS:wi,PROPER:lv,CONFIGURABLE:hv},vv=L,fv=B,Wa=Ei,cv=vv(Function.toString);fv(Wa.inspectSource)||(Wa.inspectSource=function(a){return cv(a)});var Ci=Wa.inspectSource,gv=V,dv=B,In=gv.WeakMap,pv=dv(In)&&/native code/.test(String(In)),yv=$i,mv=Xo,Mn=yv("keys"),Ai=function(a){return Mn[a]||(Mn[a]=mv(a))},Pi={},bv=pv,Jo=V,xv=ve,Tv=At,ua=fe,la=Ei,Ov=Ai,Sv=Pi,_n="Object already initialized",qa=Jo.TypeError,Ev=Jo.WeakMap,cr,Ot,gr,$v=function(a){return gr(a)?Ot(a):cr(a,{})},wv=function(a){return function(e){var t;if(!xv(e)||(t=Ot(e)).type!==a)throw new qa("Incompatible receiver, "+a+" required");return t}};if(bv||la.state){var de=la.state||(la.state=new Ev);de.get=de.get,de.has=de.has,de.set=de.set,cr=function(a,e){if(de.has(a))throw new qa(_n);return e.facade=a,de.set(a,e),e},Ot=function(a){return de.get(a)||{}},gr=function(a){return de.has(a)}}else{var Ye=Ov("state");Sv[Ye]=!0,cr=function(a,e){if(ua(a,Ye))throw new qa(_n);return e.facade=a,Tv(a,Ye,e),e},Ot=function(a){return ua(a,Ye)?a[Ye]:{}},gr=function(a){return ua(a,Ye)}}var Er={set:cr,get:Ot,has:gr,enforce:$v,getterFor:wv},Ri=L,Cv=k,Av=B,zt=fe,Qa=le,Pv=Sr.CONFIGURABLE,Rv=Ci,eu=Er,Nv=eu.enforce,Iv=eu.get,Vn=String,sr=Object.defineProperty,Mv=Ri("".slice),_v=Ri("".replace),Vv=Ri([].join),Dv=Qa&&!Cv(function(){return sr(function(){},"length",{value:8}).length!==8}),kv=String(String).split("String"),Lv=Ko.exports=function(a,e,t){Mv(Vn(e),0,7)==="Symbol("&&(e="["+_v(Vn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!zt(a,"name")||Pv&&a.name!==e)&&(Qa?sr(a,"name",{value:e,configurable:!0}):a.name=e),Dv&&t&&zt(t,"arity")&&a.length!==t.arity&&sr(a,"length",{value:t.arity});try{t&&zt(t,"constructor")&&t.constructor?Qa&&sr(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Nv(a);return zt(r,"source")||(r.source=Vv(kv,typeof e=="string"?e:"")),a};Function.prototype.toString=Lv(function(){return Av(this)&&Iv(this).source||Rv(this)},"toString");var tu=Ko.exports,Bv=B,jv=Oe,Fv=tu,Uv=Si,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Bv(t)&&Fv(t,n,r),r.global)i?a[e]=t:Uv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:jv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},ru={},Gv=Math.ceil,zv=Math.floor,Hv=Math.trunc||function(e){var t=+e;return(t>0?zv:Gv)(t)},Yv=Hv,$r=function(a){var e=+a;return e!==e||e===0?0:Yv(e)},Xv=$r,Wv=Math.max,qv=Math.min,Qv=function(a,e){var t=Xv(a);return t<0?Wv(t+e,0):qv(t,e)},Kv=$r,Zv=Math.min,ut=function(a){var e=Kv(a);return e>0?Zv(e,9007199254740991):0},Jv=ut,Ni=function(a){return Jv(a.length)},ef=wt,tf=Qv,rf=Ni,Dn=function(a){return function(e,t,r){var i=ef(e),n=rf(i);if(n===0)return!a&&-1;var o=tf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},au={includes:Dn(!0),indexOf:Dn(!1)},af=L,ha=fe,nf=wt,sf=au.indexOf,of=Pi,kn=af([].push),iu=function(a,e){var t=nf(a),r=0,i=[],n;for(n in t)!ha(of,n)&&ha(t,n)&&kn(i,n);for(;e.length>r;)ha(t,n=e[r++])&&(~sf(i,n)||kn(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uf=iu,lf=Ii,hf=lf.concat("length","prototype");ru.f=Object.getOwnPropertyNames||function(e){return uf(e,hf)};var nu={};nu.f=Object.getOwnPropertySymbols;var vf=Fe,ff=L,cf=ru,gf=nu,df=J,pf=ff([].concat),yf=vf("Reflect","ownKeys")||function(e){var t=cf.f(df(e)),r=gf.f;return r?pf(t,r(e)):t},Ln=fe,mf=yf,bf=$t,xf=Oe,Tf=function(a,e,t){for(var r=mf(e),i=xf.f,n=bf.f,o=0;o<r.length;o++){var s=r[o];!Ln(a,s)&&!(t&&Ln(t,s))&&i(a,s,n(e,s))}},Of=k,Sf=B,Ef=/#|\.prototype\./,Pt=function(a,e){var t=wf[$f(a)];return t===Af?!0:t===Cf?!1:Sf(e)?Of(e):!!e},$f=Pt.normalize=function(a){return String(a).replace(Ef,".").toLowerCase()},wf=Pt.data={},Cf=Pt.NATIVE="N",Af=Pt.POLYFILL="P",su=Pt,Ht=V,Pf=$t.f,Rf=At,Nf=Ue,If=Si,Mf=Tf,_f=su,ee=function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=Ht:i?o=Ht[t]||If(t,{}):o=Ht[t]&&Ht[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=Pf(o,s),u=h&&h.value):u=o[s],n=_f(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Mf(l,u)}(a.sham||u&&u.sham)&&Rf(l,"sham",!0),Nf(o,s,l,a)}},ft=V,Vf=Ct,Df=Be,Yt=function(a){return Vf.slice(0,a.length)===a},ou=function(){return Yt("Bun/")?"BUN":Yt("Cloudflare-Workers")?"CLOUDFLARE":Yt("Deno/")?"DENO":Yt("Node.js/")?"NODE":ft.Bun&&typeof Bun.version=="string"?"BUN":ft.Deno&&typeof Deno.version=="object"?"DENO":Df(ft.process)==="process"?"NODE":ft.window&&ft.document?"BROWSER":"REST"}(),kf=ou,wr=kf==="NODE",Lf=L,Bf=Te,jf=function(a,e,t){try{return Lf(Bf(Object.getOwnPropertyDescriptor(a,e)[t]))}catch{}},Ff=ve,Uf=function(a){return Ff(a)||a===null},Gf=Uf,zf=String,Hf=TypeError,Yf=function(a){if(Gf(a))return a;throw new Hf("Can't set "+zf(a)+" as a prototype")},Xf=jf,Wf=ve,qf=he,Qf=Yf,uu=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Xf(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch{}return function(i,n){return qf(i),Qf(n),Wf(i)&&(a?t(i,n):i.__proto__=n),i}}():void 0),Kf=Oe.f,Zf=fe,Jf=z,Bn=Jf("toStringTag"),Cr=function(a,e,t){a&&!t&&(a=a.prototype),a&&!Zf(a,Bn)&&Kf(a,Bn,{configurable:!0,value:e})},jn=tu,ec=Oe,tc=function(a,e,t){return t.get&&jn(t.get,e,{getter:!0}),t.set&&jn(t.set,e,{setter:!0}),ec.f(a,e,t)},rc=Fe,ac=tc,ic=z,nc=le,Fn=ic("species"),sc=function(a){var e=rc(a);nc&&e&&!e[Fn]&&ac(e,Fn,{configurable:!0,get:function(){return this}})},oc=br,uc=TypeError,lc=function(a,e){if(oc(e,a))return a;throw new uc("Incorrect invocation")},hc=z,vc=hc("toStringTag"),lu={};lu[vc]="z";var fc=String(lu)==="[object z]",cc=fc,gc=B,or=Be,dc=z,pc=dc("toStringTag"),yc=Object,mc=or(function(){return arguments}())==="Arguments",bc=function(a,e){try{return a[e]}catch{}},Mi=cc?or:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=bc(e=yc(a),pc))=="string"?t:mc?or(e):(r=or(e))==="Object"&&gc(e.callee)?"Arguments":r},xc=L,Tc=k,hu=B,Oc=Mi,Sc=Fe,Ec=Ci,vu=function(){},fu=Sc("Reflect","construct"),_i=/^\s*(?:class|function)\b/,$c=xc(_i.exec),wc=!_i.test(vu),ct=function(e){if(!hu(e))return!1;try{return fu(vu,[],e),!0}catch{return!1}},cu=function(e){if(!hu(e))return!1;switch(Oc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wc||!!$c(_i,Ec(e))}catch{return!0}};cu.sham=!0;var Cc=!fu||Tc(function(){var a;return ct(ct.call)||!ct(Object)||!ct(function(){a=!0})||a})?cu:ct,Ac=Cc,Pc=xr,Rc=TypeError,Nc=function(a){if(Ac(a))return a;throw new Rc(Pc(a)+" is not a constructor")},Un=J,Ic=Nc,Mc=je,_c=z,Vc=_c("species"),gu=function(a,e){var t=Un(a).constructor,r;return t===void 0||Mc(r=Un(t)[Vc])?e:Ic(r)},Dc=mr,du=Function.prototype,Gn=du.apply,zn=du.call,pu=typeof Reflect=="object"&&Reflect.apply||(Dc?zn.bind(Gn):function(){return zn.apply(Gn,arguments)}),kc=Be,Lc=L,Ar=function(a){if(kc(a)==="Function")return Lc(a)},Hn=Ar,Bc=Te,jc=mr,Fc=Hn(Hn.bind),Vi=function(a,e){return Bc(a),e===void 0?a:jc?Fc(a,e):function(){return a.apply(e,arguments)}},Uc=Fe,yu=Uc("document","documentElement"),Gc=L,zc=Gc([].slice),Hc=TypeError,Yc=function(a,e){if(a<e)throw new Hc("Not enough arguments");return a},Xc=Ct,mu=/(?:ipad|iphone|ipod).*applewebkit/i.test(Xc),ae=V,Wc=pu,qc=Vi,Yn=B,Qc=fe,bu=k,Xn=yu,Kc=zc,Wn=Or,Zc=Yc,Jc=mu,eg=wr,Ka=ae.setImmediate,Za=ae.clearImmediate,tg=ae.process,va=ae.Dispatch,rg=ae.Function,qn=ae.MessageChannel,ag=ae.String,fa=0,xt={},Qn="onreadystatechange",St,Ie,ca,ga;bu(function(){St=ae.location});var Di=function(a){if(Qc(xt,a)){var e=xt[a];delete xt[a],e()}},da=function(a){return function(){Di(a)}},Kn=function(a){Di(a.data)},Zn=function(a){ae.postMessage(ag(a),St.protocol+"//"+St.host)};(!Ka||!Za)&&(Ka=function(e){Zc(arguments.length,1);var t=Yn(e)?e:rg(e),r=Kc(arguments,1);return xt[++fa]=function(){Wc(t,void 0,r)},Ie(fa),fa},Za=function(e){delete xt[e]},eg?Ie=function(a){tg.nextTick(da(a))}:va&&va.now?Ie=function(a){va.now(da(a))}:qn&&!Jc?(ca=new qn,ga=ca.port2,ca.port1.onmessage=Kn,Ie=qc(ga.postMessage,ga)):ae.addEventListener&&Yn(ae.postMessage)&&!ae.importScripts&&St&&St.protocol!=="file:"&&!bu(Zn)?(Ie=Zn,ae.addEventListener("message",Kn,!1)):Qn in Wn("script")?Ie=function(a){Xn.appendChild(Wn("script"))[Qn]=function(){Xn.removeChild(this),Di(a)}}:Ie=function(a){setTimeout(da(a),0)});var xu={set:Ka,clear:Za},Jn=V,ig=le,ng=Object.getOwnPropertyDescriptor,sg=function(a){if(!ig)return Jn[a];var e=ng(Jn,a);return e&&e.value},Tu=function(){this.head=null,this.tail=null};Tu.prototype={add:function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}}};var Ou=Tu,og=Ct,ug=/ipad|iphone|ipod/i.test(og)&&typeof Pebble<"u",lg=Ct,hg=/web0s(?!.*chrome)/i.test(lg),it=V,vg=sg,es=Vi,pa=xu.set,fg=Ou,cg=mu,gg=ug,dg=hg,ya=wr,ts=it.MutationObserver||it.WebKitMutationObserver,rs=it.document,as=it.process,Xt=it.Promise,Ja=vg("queueMicrotask"),Xe,ma,ba,Wt,is;if(!Ja){var qt=new fg,Qt=function(){var a,e;for(ya&&(a=as.domain)&&a.exit();e=qt.get();)try{e()}catch(t){throw qt.head&&Xe(),t}a&&a.enter()};!cg&&!ya&&!dg&&ts&&rs?(ma=!0,ba=rs.createTextNode(""),new ts(Qt).observe(ba,{characterData:!0}),Xe=function(){ba.data=ma=!ma}):!gg&&Xt&&Xt.resolve?(Wt=Xt.resolve(void 0),Wt.constructor=Xt,is=es(Wt.then,Wt),Xe=function(){is(Qt)}):ya?Xe=function(){as.nextTick(Qt)}:(pa=es(pa,it),Xe=function(){pa(Qt)}),Ja=function(a){qt.head||Xe(),qt.add(a)}}var pg=Ja,yg=function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch{}},ki=function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},mg=V,Pr=mg.Promise,bg=V,Tt=Pr,xg=B,Tg=su,Og=Ci,Sg=z,ns=ou,xa=Oi;Tt&&Tt.prototype;var Eg=Sg("species"),ei=!1,Su=xg(bg.PromiseRejectionEvent),$g=Tg("Promise",function(){var a=Og(Tt),e=a!==String(Tt);if(!e&&xa===66)return!0;if(!xa||xa<51||!/native code/.test(a)){var t=new Tt(function(n){n(1)}),r=function(n){n(function(){},function(){})},i=t.constructor={};if(i[Eg]=r,ei=t.then(function(){})instanceof r,!ei)return!0}return!e&&(ns==="BROWSER"||ns==="DENO")&&!Su}),Rt={CONSTRUCTOR:$g,REJECTION_EVENT:Su,SUBCLASSING:ei},lt={},ss=Te,wg=TypeError,Cg=function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new wg("Bad Promise constructor");e=r,t=i}),this.resolve=ss(e),this.reject=ss(t)};lt.f=function(a){return new Cg(a)};var Ag=ee,dr=wr,we=V,nt=Y,os=Ue,us=uu,Pg=Cr,Rg=sc,Ng=Te,ur=B,Ig=ve,Mg=lc,_g=gu,Eu=xu.set,Li=pg,Vg=yg,Dg=ki,kg=Ou,$u=Er,pr=Pr,Bi=Rt,wu=lt,Rr="Promise",Cu=Bi.CONSTRUCTOR,Lg=Bi.REJECTION_EVENT,Bg=Bi.SUBCLASSING,Ta=$u.getterFor(Rr),jg=$u.set,Qe=pr&&pr.prototype,De=pr,Kt=Qe,Au=we.TypeError,ti=we.document,ji=we.process,ri=wu.f,Fg=ri,Ug=!!(ti&&ti.createEvent&&we.dispatchEvent),Pu="unhandledrejection",Gg="rejectionhandled",ls=0,Ru=1,zg=2,Fi=1,Nu=2,Zt,hs,Hg,vs,Iu=function(a){var e;return Ig(a)&&ur(e=a.then)?e:!1},Mu=function(a,e){var t=e.value,r=e.state===Ru,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===Nu&&Xg(e),e.rejection=Fi),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new Au("Promise-chain cycle")):(l=Iu(u))?nt(l,u,n,o):n(u)):o(t)}catch(f){s&&!h&&s.exit(),o(f)}},_u=function(a,e){a.notified||(a.notified=!0,Li(function(){for(var t=a.reactions,r;r=t.get();)Mu(r,a);a.notified=!1,e&&!a.rejection&&Yg(a)}))},Vu=function(a,e,t){var r,i;Ug?(r=ti.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),we.dispatchEvent(r)):r={promise:e,reason:t},!Lg&&(i=we["on"+a])?i(r):a===Pu&&Vg("Unhandled promise rejection",t)},Yg=function(a){nt(Eu,we,function(){var e=a.facade,t=a.value,r=fs(a),i;if(r&&(i=Dg(function(){dr?ji.emit("unhandledRejection",t,e):Vu(Pu,e,t)}),a.rejection=dr||fs(a)?Nu:Fi,i.error))throw i.value})},fs=function(a){return a.rejection!==Fi&&!a.parent},Xg=function(a){nt(Eu,we,function(){var e=a.facade;dr?ji.emit("rejectionHandled",e):Vu(Gg,e,a.value)})},Je=function(a,e,t){return function(r){a(e,r,t)}},tt=function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=zg,_u(a,!0))},ai=function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new Au("Promise can't be resolved itself");var r=Iu(e);r?Li(function(){var i={done:!1};try{nt(r,e,Je(ai,i,a),Je(tt,i,a))}catch(n){tt(i,n,a)}}):(a.value=e,a.state=Ru,_u(a,!1))}catch(i){tt({done:!1},i,a)}}};if(Cu&&(De=function(e){Mg(this,Kt),Ng(e),nt(Zt,this);var t=Ta(this);try{e(Je(ai,t),Je(tt,t))}catch(r){tt(t,r)}},Kt=De.prototype,Zt=function(e){jg(this,{type:Rr,done:!1,notified:!1,parent:!1,reactions:new kg,rejection:!1,state:ls,value:null})},Zt.prototype=os(Kt,"then",function(e,t){var r=Ta(this),i=ri(_g(this,De));return r.parent=!0,i.ok=ur(e)?e:!0,i.fail=ur(t)&&t,i.domain=dr?ji.domain:void 0,r.state===ls?r.reactions.add(i):Li(function(){Mu(i,r)}),i.promise}),hs=function(){var a=new Zt,e=Ta(a);this.promise=a,this.resolve=Je(ai,e),this.reject=Je(tt,e)},wu.f=ri=function(a){return a===De||a===Hg?new hs(a):Fg(a)},ur(pr)&&Qe!==Object.prototype)){vs=Qe.then,Bg||os(Qe,"then",function(e,t){var r=this;return new De(function(i,n){nt(vs,r,i,n)}).then(e,t)},{unsafe:!0});try{delete Qe.constructor}catch{}us&&us(Qe,Kt)}Ag({global:!0,constructor:!0,wrap:!0,forced:Cu},{Promise:De});Pg(De,Rr,!1);Rg(Rr);var Nt={},Wg=z,qg=Nt,Qg=Wg("iterator"),Kg=Array.prototype,Zg=function(a){return a!==void 0&&(qg.Array===a||Kg[Qg]===a)},Jg=Mi,cs=ot,ed=je,td=Nt,rd=z,ad=rd("iterator"),Du=function(a){if(!ed(a))return cs(a,ad)||cs(a,"@@iterator")||td[Jg(a)]},id=Y,nd=Te,sd=J,od=xr,ud=Du,ld=TypeError,hd=function(a,e){var t=arguments.length<2?ud(a):e;if(nd(t))return sd(id(t,a));throw new ld(od(a)+" is not iterable")},vd=Y,gs=J,fd=ot,cd=function(a,e,t){var r,i;gs(a);try{if(r=fd(a,"return"),!r){if(e==="throw")throw t;return t}r=vd(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return gs(r),t},gd=Vi,dd=Y,pd=J,yd=xr,md=Zg,bd=Ni,ds=br,xd=hd,Td=Du,ps=cd,Od=TypeError,lr=function(a,e){this.stopped=a,this.result=e},ys=lr.prototype,ku=function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=gd(e,r),l,h,f,c,v,d,g,p=function(x){return l&&ps(l,"normal",x),new lr(!0,x)},y=function(x){return i?(pd(x),s?u(x[0],x[1],p):u(x[0],x[1])):s?u(x,p):u(x)};if(n)l=a.iterator;else if(o)l=a;else{if(h=Td(a),!h)throw new Od(yd(a)+" is not iterable");if(md(h)){for(f=0,c=bd(a);c>f;f++)if(v=y(a[f]),v&&ds(ys,v))return v;return new lr(!1)}l=xd(a,h)}for(d=n?a.next:l.next;!(g=dd(d,l)).done;){try{v=y(g.value)}catch(x){ps(l,"throw",x)}if(typeof v=="object"&&v&&ds(ys,v))return v}return new lr(!1)},Sd=z,Lu=Sd("iterator"),Bu=!1;try{var Ed=0,ms={next:function(){return{done:!!Ed++}},return:function(){Bu=!0}};ms[Lu]=function(){return this},Array.from(ms,function(){throw 2})}catch{}var $d=function(a,e){try{if(!e&&!Bu)return!1}catch{return!1}var t=!1;try{var r={};r[Lu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},wd=Pr,Cd=$d,Ad=Rt.CONSTRUCTOR,ju=Ad||!Cd(function(a){wd.all(a).then(void 0,function(){})}),Pd=ee,Rd=Y,Nd=Te,Id=lt,Md=ki,_d=ku,Vd=ju;Pd({target:"Promise",stat:!0,forced:Vd},{all:function(e){var t=this,r=Id.f(t),i=r.resolve,n=r.reject,o=Md(function(){var s=Nd(t.resolve),u=[],l=0,h=1;_d(e,function(f){var c=l++,v=!1;h++,Rd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Dd=ee,kd=Rt.CONSTRUCTOR,ii=Pr,Ld=Fe,Bd=B,jd=Ue,bs=ii&&ii.prototype;Dd({target:"Promise",proto:!0,forced:kd,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Bd(ii)){var xs=Ld("Promise").prototype.catch;bs.catch!==xs&&jd(bs,"catch",xs,{unsafe:!0})}var Fd=ee,Ud=Y,Gd=Te,zd=lt,Hd=ki,Yd=ku,Xd=ju;Fd({target:"Promise",stat:!0,forced:Xd},{race:function(e){var t=this,r=zd.f(t),i=r.reject,n=Hd(function(){var o=Gd(t.resolve);Yd(e,function(s){Ud(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Wd=ee,qd=lt,Qd=Rt.CONSTRUCTOR;Wd({target:"Promise",stat:!0,forced:Qd},{reject:function(e){var t=qd.f(this),r=t.reject;return r(e),t.promise}});var Kd=J,Zd=ve,Jd=lt,ep=function(a,e){if(Kd(a),Zd(e)&&e.constructor===a)return e;var t=Jd.f(a),r=t.resolve;return r(e),t.promise},tp=ee,rp=Fe,ap=Rt.CONSTRUCTOR,ip=ep;rp("Promise");tp({target:"Promise",stat:!0,forced:ap},{resolve:function(e){return ip(this,e)}});function Ts(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Ts(n,r,i,o,s,"next",u)}function s(u){Ts(n,r,i,o,s,"throw",u)}o(void 0)})}}var np=Mi,sp=String,pe=function(a){if(np(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sp(a)},op=J,Fu=function(){var a=op(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Ui=k,up=V,Gi=up.RegExp,zi=Ui(function(){var a=Gi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),lp=zi||Ui(function(){return!Gi("a","y").sticky}),hp=zi||Ui(function(){var a=Gi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Uu={BROKEN_CARET:hp,MISSED_STICKY:lp,UNSUPPORTED_Y:zi},Gu={},vp=iu,fp=Ii,cp=Object.keys||function(e){return vp(e,fp)},gp=le,dp=Qo,pp=Oe,yp=J,mp=wt,bp=cp;Gu.f=gp&&!dp?Object.defineProperties:function(e,t){yp(e);for(var r=mp(t),i=bp(t),n=i.length,o=0,s;n>o;)pp.f(e,s=i[o++],r[s]);return e};var xp=J,Tp=Gu,Os=Ii,Op=Pi,Sp=yu,Ep=Or,$p=Ai,Ss=">",Es="<",ni="prototype",si="script",zu=$p("IE_PROTO"),Oa=function(){},Hu=function(a){return Es+si+Ss+a+Es+"/"+si+Ss},$s=function(a){a.write(Hu("")),a.close();var e=a.parentWindow.Object;return a=null,e},wp=function(){var a=Ep("iframe"),e="java"+si+":",t;return a.style.display="none",Sp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Hu("document.F=Object")),t.close(),t.F},Jt,hr=function(){try{Jt=new ActiveXObject("htmlfile")}catch{}hr=typeof document<"u"?document.domain&&Jt?$s(Jt):wp():$s(Jt);for(var a=Os.length;a--;)delete hr[ni][Os[a]];return hr()};Op[zu]=!0;var Hi=Object.create||function(e,t){var r;return e!==null?(Oa[ni]=xp(e),r=new Oa,Oa[ni]=null,r[zu]=e):r=hr(),t===void 0?r:Tp.f(r,t)},Cp=k,Ap=V,Pp=Ap.RegExp,Rp=Cp(function(){var a=Pp(".","s");return!(a.dotAll&&a.test(`
+`)&&a.flags==="s")}),Np=k,Ip=V,Mp=Ip.RegExp,_p=Np(function(){var a=Mp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),et=Y,Nr=L,Vp=pe,Dp=Fu,kp=Uu,Lp=$i,Bp=Hi,jp=Er.get,Fp=Rp,Up=_p,Gp=Lp("native-string-replace",String.prototype.replace),yr=RegExp.prototype.exec,oi=yr,zp=Nr("".charAt),Hp=Nr("".indexOf),Yp=Nr("".replace),Sa=Nr("".slice),ui=function(){var a=/a/,e=/b*/g;return et(yr,a,"a"),et(yr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Yu=kp.BROKEN_CARET,li=/()??/.exec("")[1]!==void 0,Xp=ui||li||Yu||Fp||Up;Xp&&(oi=function(e){var t=this,r=jp(t),i=Vp(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=et(oi,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Yu&&t.sticky,g=et(Dp,t),p=t.source,y=0,x=i;if(d&&(g=Yp(g,"y",""),Hp(g,"g")===-1&&(g+="g"),x=Sa(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&zp(i,t.lastIndex-1)!==`
+`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),li&&(s=new RegExp("^"+p+"$(?!\\s)",g)),ui&&(u=t.lastIndex),l=et(yr,d?s:t,x),d?l?(l.input=Sa(l.input,y),l[0]=Sa(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:ui&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),li&&l&&l.length>1&&et(Gp,l[0],s,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&v)for(l.groups=f=Bp(null),h=0;h<v.length;h++)c=v[h],f[c[0]]=l[c[1]];return l});var Yi=oi,Wp=ee,ws=Yi;Wp({target:"RegExp",proto:!0,forced:/./.exec!==ws},{exec:ws});var Cs=Y,As=Ue,qp=Yi,Ps=k,Xu=z,Qp=At,Kp=Xu("species"),Ea=RegExp.prototype,Xi=function(a,e,t,r){var i=Xu(a),n=!Ps(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!Ps(function(){var l=!1,h=/a/;return a==="split"&&(h={},h.constructor={},h.constructor[Kp]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,f,c,v){var d=h.exec;return d===qp||d===Ea.exec?n&&!v?{done:!0,value:Cs(s,h,f,c)}:{done:!0,value:Cs(l,f,h,c)}:{done:!1}});As(String.prototype,a,u[0]),As(Ea,i,u[1])}r&&Qp(Ea[i],"sham",!0)},Wi=L,Zp=$r,Jp=pe,ey=he,ty=Wi("".charAt),Rs=Wi("".charCodeAt),ry=Wi("".slice),Ns=function(a){return function(e,t){var r=Jp(ey(e)),i=Zp(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=Rs(r,i),o<55296||o>56319||i+1===n||(s=Rs(r,i+1))<56320||s>57343?a?ty(r,i):o:a?ry(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ay={codeAt:Ns(!1),charAt:Ns(!0)},iy=ay.charAt,qi=function(a,e,t){return e+(t?iy(a,e).length:1)},Is=Y,ny=J,sy=B,oy=Be,uy=Yi,ly=TypeError,Qi=function(a,e){var t=a.exec;if(sy(t)){var r=Is(t,a,e);return r!==null&&ny(r),r}if(oy(a)==="RegExp")return Is(uy,a,e);throw new ly("RegExp#exec called on incompatible receiver")},hy=Y,vy=Xi,fy=J,cy=je,gy=ut,$a=pe,dy=he,py=ot,yy=qi,Ms=Qi;vy("match",function(a,e,t){return[function(i){var n=dy(this),o=cy(i)?void 0:py(i,a);return o?hy(o,i,n):new RegExp(i)[a]($a(n))},function(r){var i=fy(this),n=$a(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Ms(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Ms(i,n))!==null;){var f=$a(h[0]);u[l]=f,f===""&&(i.lastIndex=yy(n,gy(i.lastIndex),s)),l++}return l===0?null:u}]});var Ki=L,my=Tr,by=Math.floor,wa=Ki("".charAt),xy=Ki("".replace),Ca=Ki("".slice),Ty=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oy=/\$([$&'`]|\d{1,2})/g,Sy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=Oy;return i!==void 0&&(i=my(i),u=Ty),xy(n,u,function(l,h){var f;switch(wa(h,0)){case"$":return"$";case"&":return a;case"`":return Ca(e,0,t);case"'":return Ca(e,o);case"<":f=i[Ca(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=by(c/10);return v===0?l:v<=s?r[v-1]===void 0?wa(h,1):r[v-1]+wa(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ey=pu,_s=Y,Ir=L,$y=Xi,wy=k,Cy=J,Ay=B,Py=je,Ry=$r,Ny=ut,We=pe,Iy=he,My=qi,_y=ot,Vy=Sy,Dy=Qi,ky=z,hi=ky("replace"),Ly=Math.max,By=Math.min,jy=Ir([].concat),Aa=Ir([].push),Vs=Ir("".indexOf),Ds=Ir("".slice),Fy=function(a){return a===void 0?a:String(a)},Uy=function(){return"a".replace(/./,"$0")==="$0"}(),ks=function(){return/./[hi]?/./[hi]("a","$0")==="":!1}(),Gy=!wy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});$y("replace",function(a,e,t){var r=ks?"$":"$0";return[function(n,o){var s=Iy(this),u=Py(n)?void 0:_y(n,hi);return u?_s(u,n,s,o):_s(e,We(s),n,o)},function(i,n){var o=Cy(this),s=We(i);if(typeof n=="string"&&Vs(n,r)===-1&&Vs(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=Ay(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=Dy(o,s),!(v===null||(Aa(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=My(s,Ny(o.lastIndex),f))}for(var g="",p=0,y=0;y<c.length;y++){v=c[y];for(var x=We(v[0]),b=Ly(By(Ry(v.index),s.length),0),T=[],$,E=1;E<v.length;E++)Aa(T,Fy(v[E]));var O=v.groups;if(l){var C=jy([x],T,b,s);O!==void 0&&Aa(C,O),$=We(Ey(n,void 0,C))}else $=Vy(x,s,b,T,O,n);b>=p&&(g+=Ds(s,p,b)+$,p=b+x.length)}return g+Ds(s,p)}]},!Gy||!Uy||ks);var zy=ve,Hy=Be,Yy=z,Xy=Yy("match"),Wy=function(a){var e;return zy(a)&&((e=a[Xy])!==void 0?!!e:Hy(a)==="RegExp")},qy=Wy,Qy=TypeError,Zi=function(a){if(qy(a))throw new Qy("The method doesn't accept regular expressions");return a},Ky=z,Zy=Ky("match"),Ji=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[Zy]=!1,"/./"[a](e)}catch{}}return!1},Jy=ee,em=Ar,tm=$t.f,rm=ut,Ls=pe,am=Zi,im=he,nm=Ji,sm=em("".slice),om=Math.min,Wu=nm("startsWith"),um=!Wu&&!!function(){var a=tm(String.prototype,"startsWith");return a&&!a.writable}();Jy({target:"String",proto:!0,forced:!um&&!Wu},{startsWith:function(e){var t=Ls(im(this));am(e);var r=rm(om(arguments.length>1?arguments[1]:void 0,t.length)),i=Ls(e);return sm(t,r,r+i.length)===i}});var lm=z,hm=Hi,vm=Oe.f,vi=lm("unscopables"),fi=Array.prototype;fi[vi]===void 0&&vm(fi,vi,{configurable:!0,value:hm(null)});var fm=function(a){fi[vi][a]=!0},cm=k,gm=!cm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),dm=fe,pm=B,ym=Tr,mm=Ai,bm=gm,Bs=mm("IE_PROTO"),ci=Object,xm=ci.prototype,qu=bm?ci.getPrototypeOf:function(a){var e=ym(a);if(dm(e,Bs))return e[Bs];var t=e.constructor;return pm(t)&&e instanceof t?t.prototype:e instanceof ci?xm:null},Tm=k,Om=B,Sm=ve,js=qu,Em=Ue,$m=z,gi=$m("iterator"),Qu=!1,ke,Pa,Ra;[].keys&&(Ra=[].keys(),"next"in Ra?(Pa=js(js(Ra)),Pa!==Object.prototype&&(ke=Pa)):Qu=!0);var wm=!Sm(ke)||Tm(function(){var a={};return ke[gi].call(a)!==a});wm&&(ke={});Om(ke[gi])||Em(ke,gi,function(){return this});var Ku={IteratorPrototype:ke,BUGGY_SAFARI_ITERATORS:Qu},Cm=Ku.IteratorPrototype,Am=Hi,Pm=Ti,Rm=Cr,Nm=Nt,Im=function(){return this},Mm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=Am(Cm,{next:Pm(+!r,t)}),Rm(a,i,!1),Nm[i]=Im,a},_m=ee,Vm=Y,Zu=Sr,Dm=B,km=Mm,Fs=qu,Us=uu,Lm=Cr,Bm=At,Na=Ue,jm=z,Fm=Nt,Ju=Ku,Um=Zu.PROPER,Gm=Zu.CONFIGURABLE,Gs=Ju.IteratorPrototype,er=Ju.BUGGY_SAFARI_ITERATORS,gt=jm("iterator"),zs="keys",dt="values",Hs="entries",zm=function(){return this},Hm=function(a,e,t,r,i,n,o){km(t,e,r);var s=function(y){if(y===i&&c)return c;if(!er&&y&&y in h)return h[y];switch(y){case zs:return function(){return new t(this,y)};case dt:return function(){return new t(this,y)};case Hs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[gt]||h["@@iterator"]||i&&h[i],c=!er&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Fs(v.call(new a)),d!==Object.prototype&&d.next&&(Fs(d)!==Gs&&(Us?Us(d,Gs):Dm(d[gt])||Na(d,gt,zm)),Lm(d,u,!0))),Um&&i===dt&&f&&f.name!==dt&&(Gm?Bm(h,"name",dt):(l=!0,c=function(){return Vm(f,this)})),i)if(g={values:s(dt),keys:n?c:s(zs),entries:s(Hs)},o)for(p in g)(er||l||!(p in h))&&Na(h,p,g[p]);else _m({target:e,proto:!0,forced:er||l},g);return h[gt]!==c&&Na(h,gt,c,{name:i}),Fm[e]=c,g},Ym=function(a,e){return{value:a,done:e}},Xm=wt,en=fm,Ys=Nt,el=Er,Wm=Oe.f,qm=Hm,tr=Ym,Qm=le,tl="Array Iterator",Km=el.set,Zm=el.getterFor(tl),Jm=qm(Array,"Array",function(a,e){Km(this,{type:tl,target:Xm(a),index:0,kind:e})},function(){var a=Zm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=null,tr(void 0,!0);switch(a.kind){case"keys":return tr(t,!1);case"values":return tr(e[t],!1)}return tr([t,e[t]],!1)},"values"),Xs=Ys.Arguments=Ys.Array;en("keys");en("values");en("entries");if(Qm&&Xs.name!=="values")try{Wm(Xs,"name",{value:"values"})}catch{}var e0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},t0=Or,Ia=t0("span").classList,Ws=Ia&&Ia.constructor&&Ia.constructor.prototype,r0=Ws===Object.prototype?void 0:Ws,qs=V,rl=e0,a0=r0,yt=Jm,Qs=At,i0=Cr,n0=z,Ma=n0("iterator"),_a=yt.values,al=function(a,e){if(a){if(a[Ma]!==_a)try{Qs(a,Ma,_a)}catch{a[Ma]=_a}if(i0(a,e,!0),rl[e]){for(var t in yt)if(a[t]!==yt[t])try{Qs(a,t,yt[t])}catch{a[t]=yt[t]}}}};for(var Va in rl)al(qs[Va]&&qs[Va].prototype,Va);al(a0,"DOMTokenList");function s0(a,e){if(za(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function o0(a){var e=s0(a,"string");return za(e)=="symbol"?e:e+""}function tn(a,e,t){return(e=o0(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var u0=Te,l0=Tr,h0=Fo,v0=Ni,Ks=TypeError,Zs="Reduce of empty array with no initial value",Js=function(a){return function(e,t,r,i){var n=l0(e),o=h0(n),s=v0(n);if(u0(t),s===0&&r<2)throw new Ks(Zs);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new Ks(Zs)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},f0={left:Js(!1),right:Js(!0)},c0=k,il=function(a,e){var t=[][a];return!!t&&c0(function(){t.call(null,e||function(){return 1},1)})},g0=ee,d0=f0.left,p0=il,eo=Oi,y0=wr,m0=!y0&&eo>79&&eo<83,b0=m0||!p0("reduce");g0({target:"Array",proto:!0,forced:b0},{reduce:function(e){var t=arguments.length;return d0(this,e,t,t>1?arguments[1]:void 0)}});var x0=ee,T0=Ar,O0=$t.f,S0=ut,to=pe,E0=Zi,$0=he,w0=Ji,C0=T0("".slice),A0=Math.min,nl=w0("endsWith"),P0=!nl&&!!function(){var a=O0(String.prototype,"endsWith");return a&&!a.writable}();x0({target:"String",proto:!0,forced:!P0&&!nl},{endsWith:function(e){var t=to($0(this));E0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:A0(S0(r),i),o=to(e);return C0(t,n-o.length,n)===o}});var Da=Y,sl=L,R0=Xi,N0=J,I0=je,M0=he,_0=gu,V0=qi,D0=ut,ro=pe,k0=ot,ao=Qi,L0=Uu,B0=k,qe=L0.UNSUPPORTED_Y,j0=4294967295,F0=Math.min,ka=sl([].push),La=sl("".slice),U0=!B0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),io="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;R0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:Da(e,this,i,n)}:e;return[function(n,o){var s=M0(this),u=I0(n)?void 0:k0(n,a);return u?Da(u,n,s,o):Da(r,ro(s),n,o)},function(i,n){var o=N0(this),s=ro(i);if(!io){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=_0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?j0:n>>>0;if(v===0)return[];if(s.length===0)return ao(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g<s.length;){c.lastIndex=qe?0:g;var y=ao(c,qe?La(s,g):s),x;if(y===null||(x=F0(D0(c.lastIndex+(qe?g:0)),s.length))===d)g=V0(s,g,h);else{if(ka(p,La(s,d,g)),p.length===v)return p;for(var b=1;b<=y.length-1;b++)if(ka(p,y[b]),p.length===v)return p;g=d=x}}return ka(p,La(s,d)),p}]},io||!U0,qe);var Mr={exports:{}},mt={exports:{}};(function(){var a,e,t,r,i,n;typeof performance<"u"&&performance!==null&&performance.now?mt.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(mt.exports=function(){return(a()-i)/1e6},e=process.hrtime,a=function(){var o;return o=e(),o[0]*1e9+o[1]},r=a(),n=process.uptime()*1e9,i=r-n):Date.now?(mt.exports=function(){return Date.now()-t},t=Date.now()):(mt.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(Ke);var G0=mt.exports,z0=G0,be=typeof window>"u"?Ke:window,rr=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],Et=be["cancel"+rt]||be["cancelRequest"+rt];for(var pt=0;!st&&pt<rr.length;pt++)st=be[rr[pt]+"Request"+rt],Et=be[rr[pt]+"Cancel"+rt]||be[rr[pt]+"CancelRequest"+rt];if(!st||!Et){var Ba=0,no=0,Me=[],H0=1e3/60;st=function(a){if(Me.length===0){var e=z0(),t=Math.max(0,H0-(e-Ba));Ba=t+e,setTimeout(function(){var r=Me.slice(0);Me.length=0;for(var i=0;i<r.length;i++)if(!r[i].cancelled)try{r[i].callback(Ba)}catch(n){setTimeout(function(){throw n},0)}},Math.round(t))}return Me.push({handle:++no,callback:a,cancelled:!1}),no},Et=function(a){for(var e=0;e<Me.length;e++)Me[e].handle===a&&(Me[e].cancelled=!0)}}Mr.exports=function(a){return st.call(be,a)};Mr.exports.cancel=function(){Et.apply(be,arguments)};Mr.exports.polyfill=function(a){a||(a=be),a.requestAnimationFrame=st,a.cancelAnimationFrame=Et};var Y0=Mr.exports;const ja=_o(Y0);var ol=`	
+\v\f\r                　\u2028\u2029\uFEFF`,X0=L,W0=he,q0=pe,di=ol,so=X0("".replace),Q0=RegExp("^["+di+"]+"),K0=RegExp("(^|[^"+di+"])["+di+"]+$"),Fa=function(a){return function(e){var t=q0(W0(e));return a&1&&(t=so(t,Q0,"")),a&2&&(t=so(t,K0,"$1")),t}},Z0={start:Fa(1),end:Fa(2),trim:Fa(3)},J0=Sr.PROPER,eb=k,oo=ol,uo="​
+᠎",tb=function(a){return eb(function(){return!!oo[a]()||uo[a]()!==uo||J0&&oo[a].name!==a})},rb=ee,ab=Z0.trim,ib=tb;rb({target:"String",proto:!0,forced:ib("trim")},{trim:function(){return ab(this)}});var nb=function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};a=e[a]||a;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,n=t[r].process,o=i.exec(a);if(o){var s=n(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<t.length;l++)for(var h=t[l].example,f=0;f<h.length;f++)u[u.length]=h[f];for(var c in e)u[u.length]=c;var v=document.createElement("ul");v.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var d=document.createElement("li"),g=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+g.toHex()+"; color:"+g.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const pi=_o(nb);var sb=ee,ob=Ar,ub=au.indexOf,lb=il,yi=ob([].indexOf),ul=!!yi&&1/yi([1],1,-0)<0,hb=ul||!lb("indexOf");sb({target:"Array",proto:!0,forced:hb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ul?yi(this,e,t)||0:ub(this,e,t)}});var vb=ee,fb=L,cb=Zi,gb=he,lo=pe,db=Ji,pb=fb("".indexOf);vb({target:"String",proto:!0,forced:!db("includes")},{includes:function(e){return!!~pb(lo(gb(this)),lo(cb(e)),arguments.length>1?arguments[1]:void 0)}});var yb=Be,mb=Array.isArray||function(e){return yb(e)==="Array"},bb=ee,xb=L,Tb=mb,Ob=xb([].reverse),ho=[1,2];bb({target:"Array",proto:!0,forced:String(ho)===String(ho.reverse())},{reverse:function(){return Tb(this)&&(this.length=this.length),Ob(this)}});/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var ll=function(a,e){return(ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function hl(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}ll(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Sb(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;t<a.length;t++){var r=a[t];if(r.type===m.CLOSE_PATH)e+="z";else if(r.type===m.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===m.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===m.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===m.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===m.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==m.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function mi(a,e){var t=a[0],r=a[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}function oe(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];for(var t=0;t<a.length;t++)if(typeof a[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof a[t]+" == typeof "+a[t]);return!0}var Ee=Math.PI;function Ua(a,e,t){a.lArcFlag=a.lArcFlag===0?0:1,a.sweepFlag=a.sweepFlag===0?0:1;var r=a.rX,i=a.rY,n=a.x,o=a.y;r=Math.abs(a.rX),i=Math.abs(a.rY);var s=mi([(e-n)/2,(t-o)/2],-a.xRot/180*Ee),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),a.rX=r,a.rY=i;var f=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),c=(a.lArcFlag!==a.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),v=r*l/i*c,d=-i*u/r*c,g=mi([v,d],a.xRot/180*Ee);a.cX=g[0]+(e+n)/2,a.cY=g[1]+(t+o)/2,a.phi1=Math.atan2((l-d)/i,(u-v)/r),a.phi2=Math.atan2((-l-d)/i,(-u-v)/r),a.sweepFlag===0&&a.phi2>a.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2<a.phi1&&(a.phi2+=2*Ee),a.phi1*=180/Ee,a.phi2*=180/Ee}function vo(a,e,t){oe(a,e,t);var r=a*a+e*e-t*t;if(0>r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var U,ye=Math.PI/180;function fo(a,e,t){return(1-t)*a+t*e}function co(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}function go(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<i?[-l/u]:function(h,f,c){var v=h*h/4-f;if(v<-c)return[];if(v<=c)return[-h/2];var d=Math.sqrt(v);return[-h/2-d,-h/2+d]}(u/s,l/s,i)}function po(a,e,t,r,i){var n=1-i;return a*(n*n*n)+e*(3*n*n*i)+t*(3*n*i*i)+r*(i*i*i)}(function(a){function e(){return i(function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function t(){var s=NaN,u=NaN,l=NaN,h=NaN;return i(function(f,c,v){return f.type&m.SMOOTH_CURVE_TO&&(f.type=m.CURVE_TO,s=isNaN(s)?c:s,u=isNaN(u)?v:u,f.x1=f.relative?c-s:2*c-s,f.y1=f.relative?v-u:2*v-u),f.type&m.CURVE_TO?(s=f.relative?c+f.x2:f.x2,u=f.relative?v+f.y2:f.y2):(s=NaN,u=NaN),f.type&m.SMOOTH_QUAD_TO&&(f.type=m.QUAD_TO,l=isNaN(l)?c:l,h=isNaN(h)?v:h,f.x1=f.relative?c-l:2*c-l,f.y1=f.relative?v-h:2*v-h),f.type&m.QUAD_TO?(l=f.relative?c+f.x1:f.x1,h=f.relative?v+f.y1:f.y1):(l=NaN,h=NaN),f})}function r(){var s=NaN,u=NaN;return i(function(l,h,f){if(l.type&m.SMOOTH_QUAD_TO&&(l.type=m.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?f:u,l.x1=l.relative?h-s:2*h-s,l.y1=l.relative?f-u:2*f-u),l.type&m.QUAD_TO){s=l.relative?h+l.x1:l.x1,u=l.relative?f+l.y1:l.y1;var c=l.x1,v=l.y1;l.type=m.CURVE_TO,l.x1=((l.relative?0:h)+2*c)/3,l.y1=((l.relative?0:f)+2*v)/3,l.x2=(l.x+2*c)/3,l.y2=(l.y+2*v)/3}else s=NaN,u=NaN;return l})}function i(s){var u=0,l=0,h=NaN,f=NaN;return function(c){if(isNaN(h)&&!(c.type&m.MOVE_TO))throw new Error("path must start with moveto");var v=s(c,u,l,h,f);return c.type&m.CLOSE_PATH&&(u=h,l=f),c.x!==void 0&&(u=c.relative?u+c.x:c.x),c.y!==void 0&&(l=c.relative?l+c.y:c.y),c.type&m.MOVE_TO&&(h=u,f=l),v}}function n(s,u,l,h,f,c){return oe(s,u,l,h,f,c),i(function(v,d,g,p){var y=v.x1,x=v.x2,b=v.relative&&!isNaN(p),T=v.x!==void 0?v.x:b?0:d,$=v.y!==void 0?v.y:b?0:g;function E(ne){return ne*ne}v.type&m.HORIZ_LINE_TO&&u!==0&&(v.type=m.LINE_TO,v.y=v.relative?0:g),v.type&m.VERT_LINE_TO&&l!==0&&(v.type=m.LINE_TO,v.x=v.relative?0:d),v.x!==void 0&&(v.x=v.x*s+$*l+(b?0:f)),v.y!==void 0&&(v.y=T*u+v.y*h+(b?0:c)),v.x1!==void 0&&(v.x1=v.x1*s+v.y1*l+(b?0:f)),v.y1!==void 0&&(v.y1=y*u+v.y1*h+(b?0:c)),v.x2!==void 0&&(v.x2=v.x2*s+v.y2*l+(b?0:f)),v.y2!==void 0&&(v.y2=x*u+v.y2*h+(b?0:c));var O=s*h-u*l;if(v.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if(O===0)delete v.rX,delete v.rY,delete v.xRot,delete v.lArcFlag,delete v.sweepFlag,v.type=m.LINE_TO;else{var C=v.xRot*Math.PI/180,I=Math.sin(C),_=Math.cos(C),j=1/E(v.rX),P=1/E(v.rY),X=E(_)*j+E(I)*P,W=2*I*_*(j-P),G=E(I)*j+E(_)*P,q=X*h*h-W*u*h+G*u*u,H=W*(s*h+u*l)-2*(X*l*h+G*s*u),Q=X*l*l-W*s*l+G*s*s,R=(Math.atan2(H,q-Q)+Math.PI)%Math.PI/2,M=Math.sin(R),K=Math.cos(R);v.rX=Math.abs(O)/Math.sqrt(q*E(K)+H*M*K+Q*E(M)),v.rY=Math.abs(O)/Math.sqrt(q*E(M)-H*M*K+Q*E(K)),v.xRot=180*R/Math.PI}return v.sweepFlag!==void 0&&0>O&&(v.sweepFlag=+!v.sweepFlag),v})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),oe(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,f,c,v,d){if(isNaN(v)&&!(h.type&m.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&m.HORIZ_LINE_TO&&(h.type=m.LINE_TO,h.y=h.relative?0:c),l&&h.type&m.VERT_LINE_TO&&(h.type=m.LINE_TO,h.x=h.relative?0:f),s&&h.type&m.CLOSE_PATH&&(h.type=m.LINE_TO,h.x=h.relative?v-f:v,h.y=h.relative?d-c:d),h.type&m.ARC&&(h.rX===0||h.rY===0)&&(h.type=m.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),oe(s);var u=NaN,l=NaN,h=NaN,f=NaN;return i(function(c,v,d,g,p){var y=Math.abs,x=!1,b=0,T=0;if(c.type&m.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:v-u,T=isNaN(l)?0:d-l),c.type&(m.CURVE_TO|m.SMOOTH_CURVE_TO)?(u=c.relative?v+c.x2:c.x2,l=c.relative?d+c.y2:c.y2):(u=NaN,l=NaN),c.type&m.SMOOTH_QUAD_TO?(h=isNaN(h)?v:2*v-h,f=isNaN(f)?d:2*d-f):c.type&m.QUAD_TO?(h=c.relative?v+c.x1:c.x1,f=c.relative?d+c.y1:c.y2):(h=NaN,f=NaN),c.type&m.LINE_COMMANDS||c.type&m.ARC&&(c.rX===0||c.rY===0||!c.lArcFlag)||c.type&m.CURVE_TO||c.type&m.SMOOTH_CURVE_TO||c.type&m.QUAD_TO||c.type&m.SMOOTH_QUAD_TO){var $=c.x===void 0?0:c.relative?c.x:c.x-v,E=c.y===void 0?0:c.relative?c.y:c.y-d;b=isNaN(h)?c.x1===void 0?b:c.relative?c.x:c.x1-v:h-v,T=isNaN(f)?c.y1===void 0?T:c.relative?c.y:c.y1-d:f-d;var O=c.x2===void 0?0:c.relative?c.x:c.x2-v,C=c.y2===void 0?0:c.relative?c.y:c.y2-d;y($)<=s&&y(E)<=s&&y(b)<=s&&y(T)<=s&&y(O)<=s&&y(C)<=s&&(x=!0)}return c.type&m.CLOSE_PATH&&y(v-g)<=s&&y(d-p)<=s&&(x=!0),x?[]:c})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),oe(s,u,l);var h=Math.sin(s),f=Math.cos(s);return n(f,h,-h,f,u-u*f+l*h,l-u*h-l*f)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),oe(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),oe(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return oe(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return oe(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return m.ARC===s.type?function(h,f,c){var v,d,g,p;h.cX||Ua(h,f,c);for(var y=Math.min(h.phi1,h.phi2),x=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(x/90),T=new Array(b),$=f,E=c,O=0;O<b;O++){var C=fo(h.phi1,h.phi2,O/b),I=fo(h.phi1,h.phi2,(O+1)/b),_=I-C,j=4/3*Math.tan(_*ye/4),P=[Math.cos(C*ye)-j*Math.sin(C*ye),Math.sin(C*ye)+j*Math.cos(C*ye)],X=P[0],W=P[1],G=[Math.cos(I*ye),Math.sin(I*ye)],q=G[0],H=G[1],Q=[q+j*Math.sin(I*ye),H-j*Math.cos(I*ye)],R=Q[0],M=Q[1];T[O]={relative:h.relative,type:m.CURVE_TO};var K=function(ne,ge){var Se=mi([ne*h.rX,ge*h.rY],h.xRot),ze=Se[0],Mt=Se[1];return[h.cX+ze,h.cY+Mt]};v=K(X,W),T[O].x1=v[0],T[O].y1=v[1],d=K(R,M),T[O].x2=d[0],T[O].y2=d[1],g=K(q,H),T[O].x=g[0],T[O].y=g[1],h.relative&&(T[O].x1-=$,T[O].y1-=E,T[O].x2-=$,T[O].y2-=E,T[O].x-=$,T[O].y-=E),$=(p=[T[O].x,T[O].y])[0],E=p[1]}return T}(s,s.relative?0:u,s.relative?0:l):s})},a.ANNOTATE_ARCS=function(){return i(function(s,u,l){return s.relative&&(u=0,l=0),m.ARC===s.type&&Ua(s,u,l),s})},a.CLONE=o,a.CALCULATE_BOUNDS=function(){var s=function(c){var v={};for(var d in c)v[d]=c[d];return v},u=e(),l=r(),h=t(),f=i(function(c,v,d){var g=h(l(u(s(c))));function p(M){M>f.maxX&&(f.maxX=M),M<f.minX&&(f.minX=M)}function y(M){M>f.maxY&&(f.maxY=M),M<f.minY&&(f.minY=M)}if(g.type&m.DRAWING_COMMANDS&&(p(v),y(d)),g.type&m.HORIZ_LINE_TO&&p(g.x),g.type&m.VERT_LINE_TO&&y(g.y),g.type&m.LINE_TO&&(p(g.x),y(g.y)),g.type&m.CURVE_TO){p(g.x),y(g.y);for(var x=0,b=go(v,g.x1,g.x2,g.x);x<b.length;x++)0<(R=b[x])&&1>R&&p(po(v,g.x1,g.x2,g.x,R));for(var T=0,$=go(d,g.y1,g.y2,g.y);T<$.length;T++)0<(R=$[T])&&1>R&&y(po(d,g.y1,g.y2,g.y,R))}if(g.type&m.ARC){p(g.x),y(g.y),Ua(g,v,d);for(var E=g.xRot/180*Math.PI,O=Math.cos(E)*g.rX,C=Math.sin(E)*g.rX,I=-Math.sin(E)*g.rY,_=Math.cos(E)*g.rY,j=g.phi1<g.phi2?[g.phi1,g.phi2]:-180>g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],P=j[0],X=j[1],W=function(M){var K=M[0],ne=M[1],ge=180*Math.atan2(ne,K)/Math.PI;return ge<P?ge+360:ge},G=0,q=vo(I,-O,0).map(W);G<q.length;G++)(R=q[G])>P&&R<X&&p(co(g.cX,O,I,R));for(var H=0,Q=vo(_,-C,0).map(W);H<Q.length;H++){var R;(R=Q[H])>P&&R<X&&y(co(g.cY,C,_,R))}}return c});return f.minX=1/0,f.maxX=-1/0,f.minY=1/0,f.maxY=-1/0,f}})(U||(U={}));var se,vl=function(){function a(){}return a.prototype.round=function(e){return this.transform(U.ROUND(e))},a.prototype.toAbs=function(){return this.transform(U.TO_ABS())},a.prototype.toRel=function(){return this.transform(U.TO_REL())},a.prototype.normalizeHVZ=function(e,t,r){return this.transform(U.NORMALIZE_HVZ(e,t,r))},a.prototype.normalizeST=function(){return this.transform(U.NORMALIZE_ST())},a.prototype.qtToC=function(){return this.transform(U.QT_TO_C())},a.prototype.aToC=function(){return this.transform(U.A_TO_C())},a.prototype.sanitize=function(e){return this.transform(U.SANITIZE(e))},a.prototype.translate=function(e,t){return this.transform(U.TRANSLATE(e,t))},a.prototype.scale=function(e,t){return this.transform(U.SCALE(e,t))},a.prototype.rotate=function(e,t,r){return this.transform(U.ROTATE(e,t,r))},a.prototype.matrix=function(e,t,r,i,n,o){return this.transform(U.MATRIX(e,t,r,i,n,o))},a.prototype.skewX=function(e){return this.transform(U.SKEW_X(e))},a.prototype.skewY=function(e){return this.transform(U.SKEW_Y(e))},a.prototype.xSymmetry=function(e){return this.transform(U.X_AXIS_SYMMETRY(e))},a.prototype.ySymmetry=function(e){return this.transform(U.Y_AXIS_SYMMETRY(e))},a.prototype.annotateArcs=function(){return this.transform(U.ANNOTATE_ARCS())},a}(),Eb=function(a){return a===" "||a==="	"||a==="\r"||a===`
+`},yo=function(a){return 48<=a.charCodeAt(0)&&a.charCodeAt(0)<=57},$b=function(a){function e(){var t=a.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return hl(e,a),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var n=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[o],u=!(this.curCommandType!==m.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=yo(s)&&(this.curNumber==="0"&&s==="0"||u);if(!yo(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===m.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===wb[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Eb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=m.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=m.ARC,this.curCommandRelative=s==="a"}else r.push({type:m.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);n<o.length;n++){var s=o[n],u=t(s);Array.isArray(u)?i.push.apply(i,u):i.push(u)}return i}}})},e}(vl),m=function(a){function e(t){var r=a.call(this)||this;return r.commands=typeof t=="string"?e.parse(t):t,r}return hl(e,a),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=U.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var r=[],i=0,n=this.commands;i<n.length;i++){var o=t(n[i]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},e.encode=function(t){return Sb(t)},e.parse=function(t){var r=new $b,i=[];return r.parse(t,i),r.finish(i),i},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(vl),wb=((se={})[m.MOVE_TO]=2,se[m.LINE_TO]=2,se[m.HORIZ_LINE_TO]=1,se[m.VERT_LINE_TO]=1,se[m.CLOSE_PATH]=0,se[m.QUAD_TO]=4,se[m.SMOOTH_QUAD_TO]=2,se[m.CURVE_TO]=6,se[m.SMOOTH_CURVE_TO]=4,se[m.ARC]=7,se),Cb=Y,Ab=fe,Pb=br,Rb=Fu,mo=RegExp.prototype,Nb=function(a){var e=a.flags;return e===void 0&&!("flags"in mo)&&!Ab(a,"flags")&&Pb(mo,a)?Cb(Rb,a):e},Ib=Sr.PROPER,Mb=Ue,_b=J,bo=pe,Vb=k,Db=Nb,rn="toString",fl=RegExp.prototype,cl=fl[rn],kb=Vb(function(){return cl.call({source:"a",flags:"b"})!=="/a/b"}),Lb=Ib&&cl.name!==rn;(kb||Lb)&&Mb(fl,rn,function(){var e=_b(this),t=bo(e.source),r=bo(Db(e));return"/"+t+"/"+r},{unsafe:!0});function vr(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vr=function(e){return typeof e}:vr=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(a)}function Bb(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}var jb=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Fb=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Ub(a,e,t,r,i){if(typeof a=="string"&&(a=document.getElementById(a)),!a||vr(a)!=="object"||!("getContext"in a))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var n=a.getContext("2d");try{return n.getImageData(e,t,r,i)}catch(o){throw new Error("unable to access image data: "+o)}}function Gb(a,e,t,r,i,n){if(!(isNaN(n)||n<1)){n|=0;var o=Ub(a,e,t,r,i);o=zb(o,e,t,r,i,n),a.getContext("2d").putImageData(o,e,t)}}function zb(a,e,t,r,i,n){for(var o=a.data,s=2*n+1,u=r-1,l=i-1,h=n+1,f=h*(h+1)/2,c=new xo,v=c,d,g=1;g<s;g++)v=v.next=new xo,g===h&&(d=v);v.next=c;for(var p=null,y=null,x=0,b=0,T=jb[n],$=Fb[n],E=0;E<i;E++){v=c;for(var O=o[b],C=o[b+1],I=o[b+2],_=o[b+3],j=0;j<h;j++)v.r=O,v.g=C,v.b=I,v.a=_,v=v.next;for(var P=0,X=0,W=0,G=0,q=h*O,H=h*C,Q=h*I,R=h*_,M=f*O,K=f*C,ne=f*I,ge=f*_,Se=1;Se<h;Se++){var ze=b+((u<Se?u:Se)<<2),Mt=o[ze],sn=o[ze+1],on=o[ze+2],un=o[ze+3],_t=h-Se;M+=(v.r=Mt)*_t,K+=(v.g=sn)*_t,ne+=(v.b=on)*_t,ge+=(v.a=un)*_t,P+=Mt,X+=sn,W+=on,G+=un,v=v.next}p=c,y=d;for(var Lr=0;Lr<r;Lr++){var Br=ge*T>>>$;if(o[b+3]=Br,Br!==0){var jr=255/Br;o[b]=(M*T>>>$)*jr,o[b+1]=(K*T>>>$)*jr,o[b+2]=(ne*T>>>$)*jr}else o[b]=o[b+1]=o[b+2]=0;M-=q,K-=H,ne-=Q,ge-=R,q-=p.r,H-=p.g,Q-=p.b,R-=p.a;var Ae=Lr+n+1;Ae=x+(Ae<u?Ae:u)<<2,P+=p.r=o[Ae],X+=p.g=o[Ae+1],W+=p.b=o[Ae+2],G+=p.a=o[Ae+3],M+=P,K+=X,ne+=W,ge+=G,p=p.next;var Vt=y,ln=Vt.r,hn=Vt.g,vn=Vt.b,fn=Vt.a;q+=ln,H+=hn,Q+=vn,R+=fn,P-=ln,X-=hn,W-=vn,G-=fn,y=y.next,b+=4}x+=r}for(var He=0;He<r;He++){b=He<<2;var Pe=o[b],Re=o[b+1],Ne=o[b+2],te=o[b+3],Fr=h*Pe,Ur=h*Re,Gr=h*Ne,zr=h*te,Dt=f*Pe,kt=f*Re,Lt=f*Ne,Bt=f*te;v=c;for(var cn=0;cn<h;cn++)v.r=Pe,v.g=Re,v.b=Ne,v.a=te,v=v.next;for(var gn=r,Hr=0,Yr=0,Xr=0,Wr=0,jt=1;jt<=n;jt++){b=gn+He<<2;var Ft=h-jt;Dt+=(v.r=Pe=o[b])*Ft,kt+=(v.g=Re=o[b+1])*Ft,Lt+=(v.b=Ne=o[b+2])*Ft,Bt+=(v.a=te=o[b+3])*Ft,Wr+=Pe,Hr+=Re,Yr+=Ne,Xr+=te,v=v.next,jt<l&&(gn+=r)}b=He,p=c,y=d;for(var qr=0;qr<i;qr++){var re=b<<2;o[re+3]=te=Bt*T>>>$,te>0?(te=255/te,o[re]=(Dt*T>>>$)*te,o[re+1]=(kt*T>>>$)*te,o[re+2]=(Lt*T>>>$)*te):o[re]=o[re+1]=o[re+2]=0,Dt-=Fr,kt-=Ur,Lt-=Gr,Bt-=zr,Fr-=p.r,Ur-=p.g,Gr-=p.b,zr-=p.a,re=He+((re=qr+h)<l?re:l)*r<<2,Dt+=Wr+=p.r=o[re],kt+=Hr+=p.g=o[re+1],Lt+=Yr+=p.b=o[re+2],Bt+=Xr+=p.a=o[re+3],p=p.next,Fr+=Pe=y.r,Ur+=Re=y.g,Gr+=Ne=y.b,zr+=te=y.a,Wr-=Pe,Hr-=Re,Yr-=Ne,Xr-=te,y=y.next,b+=r}}return a}var xo=function a(){Bb(this,a),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Hb(){var{DOMParser:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return xe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Yb(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var i2=Object.freeze({__proto__:null,offscreen:Hb,node:Yb});function ht(a){return a.replace(/(?!\u3000)\s+/gm," ")}function Xb(a){return a.replace(/^[\n \t]+/,"")}function Wb(a){return a.replace(/[\n \t]+$/,"")}function ie(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var qb=/^[A-Z-]+$/;function Qb(a){return qb.test(a)?a.toLowerCase():a}function gl(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}function Kb(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var Zb=/(\[[^\]]+\])/g,Jb=/(#[^\s+>~.[:]+)/g,e1=/(\.[^\s+>~.[:]+)/g,t1=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,r1=/(:[\w-]+\([^)]*\))/gi,a1=/(:[^\s+>~.[:]+)/g,i1=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}function n1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,Zb),e[1]+=r,[t,r]=_e(t,Jb),e[0]+=r,[t,r]=_e(t,e1),e[1]+=r,[t,r]=_e(t,t1),e[2]+=r,[t,r]=_e(t,r1),e[1]+=r,[t,r]=_e(t,a1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,i1),e[2]+=r,e.join("")}var at=1e-8;function To(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}function bi(a,e){return(a[0]*e[0]+a[1]*e[1])/(To(a)*To(e))}function Oo(a,e){return(a[0]*e[1]<a[1]*e[0]?-1:1)*Math.acos(bi(a,e))}function So(a){return a*a*a}function Eo(a){return 3*a*a*(1-a)}function $o(a){return 3*a*(1-a)*(1-a)}function wo(a){return(1-a)*(1-a)*(1-a)}function Co(a){return a*a}function Ao(a){return 2*a*(1-a)}function Po(a){return(1-a)*(1-a)}class S{constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new S(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return ht(this.getString()).trim().split(e).map(i=>new S(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Kb(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?S.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n<r&&(t[n]===","&&i++,i!==3);n++);if(e.hasValue()&&this.isString()&&i!==3){var o=new pi(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new S(this.document,this.name,t)}}S.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class s1{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class D{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=ie(e);return new D(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=ie(e);return new D(r,i)}static parsePath(e){for(var t=ie(e),r=t.length,i=[],n=0;n<r;n+=2)i.push(new D(t[n],t[n+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,i=t*e[0]+r*e[2]+e[4],n=t*e[1]+r*e[3]+e[5];this.x=i,this.y=n}}class o1{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:r}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new D(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var dl=typeof window<"u"?window:null,pl=typeof fetch<"u"?fetch.bind(void 0):null;class _r{constructor(e){var{fetch:t=pl,window:r=dl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new s1,this.mouse=new o1(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:f,refY:c,clip:v=!1,clipX:d=0,clipY:g=0}=e,p=ht(i).replace(/^defer\s/,""),[y,x]=p.split(" "),b=y||"xMidYMid",T=x||"meet",$=n/o,E=s/u,O=Math.min($,E),C=Math.max($,E),I=o,_=u;T==="meet"&&(I*=O,_*=O),T==="slice"&&(I*=C,_*=C);var j=new S(t,"refX",f),P=new S(t,"refY",c),X=j.hasValue()&&P.hasValue();if(X&&r.translate(-O*j.getPixels("x"),-O*P.getPixels("y")),v){var W=O*d,G=O*g;r.beginPath(),r.moveTo(W,G),r.lineTo(n,G),r.lineTo(n,s),r.lineTo(W,s),r.closePath(),r.clip()}if(!X){var q=T==="meet"&&O===E,H=T==="slice"&&C===E,Q=T==="meet"&&O===$,R=T==="slice"&&C===$;b.startsWith("xMid")&&(q||H)&&r.translate(n/2-I/2,0),b.endsWith("YMid")&&(Q||R)&&r.translate(0,s/2-_/2),b.startsWith("xMax")&&(q||H)&&r.translate(n-I,0),b.endsWith("YMax")&&(Q||R)&&r.translate(0,s-_)}switch(!0){case b==="none":r.scale($,E);break;case T==="meet":r.scale(O,O);break;case T==="slice":r.scale(C,C);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:c,mouse:v}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,n,o,u,l,h,f),!!t){var g=Date.now(),p=g,y=0,x=()=>{g=Date.now(),y=g-p,y>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,f),v.runEvents())),this.intervalId=ja(x)};r||v.start(),this.intervalId=ja(x)}}stop(){this.intervalId&&(ja.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:f,isFirstRender:c}=this,v=f.canvas;h.clear(),v.width&&v.height?h.setCurrent(v.width,v.height):h.setCurrent(u,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(c||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(v.width=d.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),g.hasValue()&&(v.height=g.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var p=v.clientWidth||v.width,y=v.clientHeight||v.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),h.setCurrent(p,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var x=ie(e.getAttribute("viewBox").getString()),b=0,T=0;if(typeof i=="number"){var $=e.getStyle("width");$.hasValue()?b=$.getPixels("x")/i:isNaN(x[2])||(b=x[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?T=E.getPixels("y")/n:isNaN(x[3])||(T=x[3]/n)}b||(b=T),T||(T=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var O=e.getStyle("transform",!0,!0);O.setValue("".concat(O.getString()," scale(").concat(1/b,", ").concat(1/T,")"))}r||f.clearRect(0,0,p,y),e.render(f),c&&(this.isFirstRender=!1)}}_r.defaultWindow=dl;_r.defaultFetch=pl;var{defaultFetch:u1}=_r,l1=typeof DOMParser<"u"?DOMParser:null;class Ga{constructor(){var{fetch:e=u1,DOMParser:t=l1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class h1{constructor(e,t){this.type="translate",this.point=null,this.point=D.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class v1{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ie(t);this.angle=new S(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class f1{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=D.parseScale(t);(i.x===0||i.y===0)&&(i.x=at,i.y=at),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class yl{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ie(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],f=0,c=0,v=1,d=1/(n*(l*v-h*c)-o*(u*v-h*f)+s*(u*c-l*f)),g=t.getPixels("x"),p=r.getPixels("y");e.translate(g,p),e.transform(d*(l*v-h*c),d*(h*f-u*v),d*(s*c-o*v),d*(n*v-s*f),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-g,-p)}applyToPoint(e){e.applyTransform(this.matrix)}}class ml extends yl{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new S(e,"angle",t)}}class c1 extends ml{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class g1 extends ml{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function d1(a){return ht(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function p1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}class Le{constructor(e,t,r){this.document=e,this.transforms=[];var i=d1(t);i.forEach(n=>{if(n!=="none"){var[o,s]=p1(n),u=Le.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new Le(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length,i=r-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].applyToPoint(e)}}Le.transformTypes={translate:h1,rotate:v1,scale:f1,matrix:yl,skewX:c1,skewY:g1};class N{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=Qb(s.nodeName);this.attributes[u]=new S(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new S(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new S(this.document,e,"");return this.attributes[e]=i,i}return r||S.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return S.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new S(this.document,e,"");return this.styles[e]=u,u}return i||S.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Le.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof N?e:this.document.createElement(e);t.parent=this,N.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}N.ignoreChildTypes=["title"];class y1 extends N{constructor(e,t,r){super(e,t,r)}}function m1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function b1(a){return typeof process>"u"?a:a.trim().split(",").map(m1).join(",")}function x1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function T1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Z{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?Z.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=ht(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&Z.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&Z.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Z.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new Z(r,i,n,o,s,t)}toString(){return[x1(this.fontStyle),this.fontVariant,T1(this.fontWeight),this.fontSize,b1(this.fontFamily)].join(" ").trim()}}Z.styles="normal|italic|oblique|inherit";Z.variants="normal|small-caps|inherit";Z.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class ce{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,i,n)):this.addY(this.sumCubic(l,t,r,i,n)));return}var h=Math.pow(o,2)-4*u*s;if(!(h<0)){var f=(-o+Math.sqrt(h))/(2*s);0<f&&f<1&&(e?this.addX(this.sumCubic(f,t,r,i,n)):this.addY(this.sumCubic(f,t,r,i,n)));var c=(-o-Math.sqrt(h))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,i,n)):this.addY(this.sumCubic(c,t,r,i,n)))}}addBezierCurve(e,t,r,i,n,o,s,u){this.addPoint(e,t),this.addPoint(s,u),this.bezierCurveAdd(!0,e,r,n,s),this.bezierCurveAdd(!1,t,i,o,u)}addQuadraticCurve(e,t,r,i,n,o){var s=e+.6666666666666666*(r-e),u=t+2/3*(i-t),l=s+1/3*(n-e),h=u+1/3*(o-t);this.addBezierCurve(e,t,s,l,u,h,n,o)}isPointInBox(e,t){var{x1:r,y1:i,x2:n,y2:o}=this;return r<=e&&e<=n&&i<=t&&t<=o}}class w extends m{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new D(0,0),this.control=new D(0,0),this.current=new D(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new D(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==m.CURVE_TO&&e!==m.SMOOTH_CURVE_TO&&e!==m.QUAD_TO&&e!==m.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new D(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r]){for(var i=r+1;i<t;i++)if(e[i]){e[r]=e[i];break}}return e}}class Ge extends N{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new S(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var f=n.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(o.hasValue()){var c=new S(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=c}var v=this.getStyle("stroke-width");if(v.hasValue()){var d=v.getPixels();e.lineWidth=d||at}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),x.hasValue()&&x.getString()!=="none"){var T=ie(x.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var $=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=$:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=$:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=$)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var E=this.getStyle("font"),O=this.getStyle("font-style"),C=this.getStyle("font-variant"),I=this.getStyle("font-weight"),_=this.getStyle("font-size"),j=this.getStyle("font-family"),P=new Z(O.getString(),C.getString(),I.getString(),_.hasValue()?"".concat(_.getPixels(!0),"px"):"",j.getString(),Z.parse(E.getString(),e.font));O.setValue(P.fontStyle),C.setValue(P.fontVariant),I.setValue(P.fontWeight),_.setValue(P.fontSize),j.setValue(P.fontFamily),e.font=P.toString(),_.isPixels()&&(this.document.emSize=_.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class A extends Ge{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new ce;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case w.MOVE_TO:this.pathM(e,r);break;case w.LINE_TO:this.pathL(e,r);break;case w.HORIZ_LINE_TO:this.pathH(e,r);break;case w.VERT_LINE_TO:this.pathV(e,r);break;case w.CURVE_TO:this.pathC(e,r);break;case w.SMOOTH_CURVE_TO:this.pathS(e,r);break;case w.QUAD_TO:this.pathQ(e,r);break;case w.SMOOTH_QUAD_TO:this.pathT(e,r);break;case w.ARC:this.pathA(e,r);break;case w.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var f=o.getDefinition(),c=1;c<i;c++){var[v,d]=r[c];f.render(e,v,d)}if(s.isUrlDefinition()){var g=s.getDefinition(),[p,y]=r[i];g.render(e,p,y)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:i}=A.pathM(r),{x:n,y:o}=i;r.addMarker(i),t.addPoint(n,o),e&&e.moveTo(n,o)}static pathL(e){var{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathL(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:r}=e,i=new D((r.relative?t.x:0)+r.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathH(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:r}=e,i=new D(t.x,(r.relative?t.y:0)+r.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathV(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,r=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathC(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=A.pathC(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:t}=e,r=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathS(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=A.pathS(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:t}=e,r=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathQ(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=A.pathQ(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathT(e){var{current:t}=e,r=e.getReflectedControlPoint();e.control=r;var i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathT(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=A.pathT(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathA(e){var{current:t,command:r}=e,{rX:i,rY:n,xRot:o,lArcFlag:s,sweepFlag:u}=r,l=o*(Math.PI/180),h=e.getAsCurrentPoint(),f=new D(Math.cos(l)*(t.x-h.x)/2+Math.sin(l)*(t.y-h.y)/2,-Math.sin(l)*(t.x-h.x)/2+Math.cos(l)*(t.y-h.y)/2),c=Math.pow(f.x,2)/Math.pow(i,2)+Math.pow(f.y,2)/Math.pow(n,2);c>1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var v=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)));isNaN(v)&&(v=0);var d=new D(v*i*f.y/n,v*-n*f.x/i),g=new D((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=Oo([1,0],[(f.x-d.x)/i,(f.y-d.y)/n]),y=[(f.x-d.x)/i,(f.y-d.y)/n],x=[(-f.x-d.x)/i,(-f.y-d.y)/n],b=Oo(y,x);return bi(y,x)<=-1&&(b=Math.PI),bi(y,x)>=1&&(b=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:g,a1:p,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:f}=A.pathA(r),c=1-s?1:-1,v=h+c*(f/2),d=new D(l.x+n*Math.cos(v),l.y+o*Math.sin(v));if(r.addMarkerAngle(d,v-c*Math.PI/2),r.addMarkerAngle(i,v-c*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(f)){var g=n>o?n:o,p=n>o?1:n/o,y=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(p,y),e.arc(0,0,g,h,h+f,!!(1-s)),e.scale(1/p,1/y),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){A.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class bl extends A{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ce extends Ge{constructor(e,t,r){super(e,t,new.target===Ce?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=Z.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new ce(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(l="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(l="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof bl?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=ht(t.textContent||"");return i===0&&(o=Xb(o)),i===n&&(o=Wb(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=Z.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,f=n.isRTL?i.split("").reverse().join(""):i,c=ie(r.getAttribute("dx").getString()),v=f.length,d=0;d<v;d++){var g=this.getGlyph(n,f,d);e.translate(this.x,this.y),e.scale(h,-h);var p=e.lineWidth;e.lineWidth=e.lineWidth*o/u,l==="italic"&&e.transform(1,0,.4,1,0,0),g.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=p,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=u*(g.horizAdvX||n.horizAdvX)/o,typeof c[d]<"u"&&!isNaN(c[d])&&(this.x+=c[d])}return}var{x:y,y:x}=this;e.fillStyle&&e.fillText(i,y,x),e.strokeStyle&&e.strokeText(i,y,x)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),f=!!h&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(e);return f&&(t.x-=c),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,f||(t.x+=c),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+c),t.maxX=Math.max(t.maxX,n.x,n.x+c),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=ie(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h<u;h++){var f=this.getGlyph(i,o,h);l+=(f.horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,typeof s[h]<"u"&&!isNaN(s[h])&&(l+=s[h])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:c}=e.measureText(t);return this.clearContext(e),e.restore(),c}getInheritedAttribute(e){for(var t=this;t instanceof Ce&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}class Vr extends Ce{constructor(e,t,r){super(e,t,new.target===Vr?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class O1 extends Vr{constructor(){super(...arguments),this.type="textNode"}}class It extends Ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new S(r,"fontSize",Z.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),c=this.getAttribute("viewBox"),v=c.hasValue()?ie(c.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,p=0,y=0,x=0;v&&(g=v[0],p=v[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=g,x=p,g=0,p=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(u=v[2],l=v[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:g,minY:p,refX:h.getValue(),refY:f.getValue(),clip:d,clipX:y,clipY:x}),v&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var f=this.getStyle("width"),c=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),c.hasValue()&&c.setValue("".concat(t,"px"))}}}class xl extends A{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new ce(t,r,t+i,r+n)}getMarkers(){return null}}class S1 extends A{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new ce(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class E1 extends A{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new ce(n-r,o-i,n+r,o+i)}getMarkers(){return null}}class $1 extends A{constructor(){super(...arguments),this.type="line"}getPoints(){return[new D(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new D(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new ce(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class Tl extends A{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=D.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new ce(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class w1 extends Tl{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class C1 extends N{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new It(this.document,null);o.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new S(this.document,"width","".concat(i,"px")),o.attributes.height=new S(this.document,"height","".concat(n,"px")),o.attributes.transform=new S(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new S(this.document,"x",f*s.width),o.attributes.y=new S(this.document,"y",c*s.height),o.render(u),u.restore();var v=e.createPattern(s,"repeat");return v}}class A1 extends N{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new It(this.document,null);u.type=this.type,u.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new S(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new S(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new S(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new S(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new S(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new S(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new S(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}class P1 extends N{constructor(){super(...arguments),this.type="defs"}render(){}}class an extends Ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new ce;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class Ol extends N{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(p=>{o.addColorStop(p.offset,this.addParentOpacity(r,p.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,f=new xl(s,null);f.attributes.x=new S(s,"x",-u/3),f.attributes.y=new S(s,"y",-u/3),f.attributes.width=new S(s,"width",u),f.attributes.height=new S(s,"height",u);var c=new an(s,null);c.attributes.transform=new S(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[f];var v=new It(s,null);v.attributes.x=new S(s,"x",0),v.attributes.y=new S(s,"y",0),v.attributes.width=new S(s,"width",h.width),v.attributes.height=new S(s,"height",h.height),v.children=[c];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=o,v.render(g),g.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new S(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class R1 extends Ol{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}class N1 extends Ol{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}class I1 extends N{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}class nn extends N{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new S(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),n=!0}return n}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=r.progress*(t.getValue().length-1),n=Math.floor(i),o=Math.ceil(i);r.from=new S(e,"from",parseFloat(t.getValue()[n])),r.to=new S(e,"to",parseFloat(t.getValue()[o])),r.progress=(i-n)/(o-n)}else r.from=this.from,r.to=this.to;return r}}class M1 extends nn{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=new pi(t.getColor()),n=new pi(r.getColor());if(i.ok&&n.ok){var o=i.r+(n.r-i.r)*e,s=i.g+(n.g-i.g)*e,u=i.b+(n.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class _1 extends nn{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=ie(t.getString()),n=ie(r.getString()),o=i.map((s,u)=>{var l=n[u];return s+(l-s)*e}).join(" ");return o}}class V1 extends N{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class D1 extends N{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class k1 extends A{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class L1 extends Ce{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class B1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new S(t,"fontSize",Z.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new ce(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new an(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function Ro(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function ar(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Ro(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}class j1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(r=>{var{type:i,points:n}=r;switch(i){case w.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case w.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case w.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case w.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case w.ARC:{var[o,s,u,l,h,f,c,v]=n,d=u>l?u:l,g=u>l?1:u/l,p=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(c),e.scale(g,p),e.arc(0,0,d,h,h+f,!!(1-v)),e.scale(1/g,1/p),e.rotate(-c),e.translate(-o,-s));break}case w.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:f}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,f=this.measureText(e,u);u===" "&&t==="justify"&&r<i&&(f+=(i-r)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var c=this.textHeight/20,v=this.getEquidistantPointOnPath(h,c,0),d=this.getEquidistantPointOnPath(h+f,c,0),g={p0:v,p1:d},p=v&&d?Math.atan2(d.y-v.y,d.x-v.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,x=Math.cos(-p)*s;g.p0=ar(ar({},v),{},{x:v.x+y,y:v.y+x}),g.p1=ar(ar({},d),{},{x:d.x+y,y:d.y+x})}return h+=f,{offset:h,segment:g,rotation:p}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var f=[],c=t.length;this.letterSpacingCache=f;for(var v=0;v<c;v++)f.push(typeof n[v]<"u"?n[v]:h);var d=f.reduce((T,$,E)=>E===0?0:T+$||0,0),g=this.measureText(e),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*y,b=0;(s==="middle"||s==="center")&&(b=-p/2),(s==="end"||s==="right")&&(b=-p),b+=x,r.forEach((T,$)=>{var{offset:E,segment:O,rotation:C}=this.findSegmentToFitChar(e,s,p,y,i,b,o,T,$);b=E,!(!O.p0||!O.p1)&&this.glyphInfo.push({text:r[$],p0:O.p0,p1:O.p1,rotation:C})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case w.MOVE_TO:this.pathM(r,l);break;case w.LINE_TO:u=this.pathL(r,l);break;case w.HORIZ_LINE_TO:u=this.pathH(r,l);break;case w.VERT_LINE_TO:u=this.pathV(r,l);break;case w.CURVE_TO:this.pathC(r,l);break;case w.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case w.QUAD_TO:this.pathQ(r,l);break;case w.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case w.ARC:l=this.pathA(r);break;case w.CLOSE_PATH:A.pathZ(r);break}s.type!==w.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=A.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=A.pathL(e).point;return t.push(r,i),w.LINE_TO}pathH(e,t){var{x:r,y:i}=A.pathH(e).point;return t.push(r,i),w.LINE_TO}pathV(e,t){var{x:r,y:i}=A.pathV(e).point;return t.push(r,i),w.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),w.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=A.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=A.pathT(e);return t.push(r.x,r.y,i.x,i.y),w.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=A.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case w.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case w.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.ARC:{n=0;var l=i[4],h=i[5],f=i[4]+h,c=Math.PI/180;if(Math.abs(l-f)<c&&(c=Math.abs(l-f)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),h<0)for(u=l-c;u>f;u-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+c;u<f;u+=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),n}}return 0}getPointOnLine(e,t,r,i,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+at),l=Math.sqrt(e*e/(1+u*u));i<t&&(l*=-1);var h=u*l,f=null;if(i===t)f={x:o,y:s+h};else if((s-r)/(o-t+at)===u)f={x:o+l,y:s+h};else{var c=0,v=0,d=this.getLineLength(t,r,i,n);if(d<at)return null;var g=(o-t)*(i-t)+(s-r)*(n-r);g/=d*d,c=t+g*(i-t),v=r+g*(n-r);var p=this.getLineLength(o,s,c,v),y=Math.sqrt(e*e-p*p);l=Math.sqrt(y*y/(1+u*u)),i<t&&(l*=-1),h=u*l,f={x:c+l,y:v+h}}return f}getPointOnPath(e){var t=this.getPathLength(),r=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){r+=o.pathLength;continue}var s=e-r,u=0;switch(o.type){case w.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case w.ARC:{var l=o.points[4],h=o.points[5],f=o.points[4]+h;if(u=l+s/o.pathLength*h,h<0&&u<f||h>=0&&u>f)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case w.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case w.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*So(e)+o*Eo(e)+i*$o(e)+t*wo(e),f=l*So(e)+s*Eo(e)+n*$o(e)+r*wo(e);return{x:h,y:f}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Co(e)+i*Ao(e)+t*Po(e),l=s*Co(e)+n*Ao(e)+r*Po(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var F1=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class U1 extends Ge{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return xe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return xe(function*(){var r=F1.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ce(e,t,e+r,t+i)}}class G1 extends Ge{constructor(){super(...arguments),this.type="symbol"}render(e){}}class z1{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return xe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class Sl extends N{constructor(e,t,r){super(e,t,r),this.type="style";var i=ht(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(f=>{var c=f.trim();if(c){var v=e.styles[c]||{};if(h.forEach(p=>{var y=p.indexOf(":"),x=p.substr(0,y).trim(),b=p.substr(y+1,p.length-y).trim();x&&b&&(v[x]=new S(e,x,b))}),e.styles[c]=v,e.stylesSpecificity[c]=n1(c),c==="@font-face"){var d=v["font-family"].getString().replace(/"|'/g,""),g=v.src.getString().split(",");g.forEach(p=>{if(p.indexOf('format("svg")')>0){var y=gl(p);y&&new z1(e).load(d,y)}})}}})}})}}Sl.parseExternalUrl=gl;class H1 extends Ge{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new It(t,null),i.attributes.viewBox=new S(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new S(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new S(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new S(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new S(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new S(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Le.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function ir(a,e,t,r,i,n){return a[t*r*4+e*4+n]}function nr(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}function F(a,e,t){var r=a[e];return r*t}function me(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}class El extends N{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=ie(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[me(o,.213,.787,-.213),me(o,.715,-.715,-.715),me(o,.072,-.072,.928),0,0,me(o,.213,-.213,.143),me(o,.715,.285,.14),me(o,.072,-.072,-.283),0,0,me(o,.213,-.213,-.787),me(o,.715,-.715,.715),me(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l<n;l++)for(var h=0;h<i;h++){var f=ir(u.data,h,l,i,n,0),c=ir(u.data,h,l,i,n,1),v=ir(u.data,h,l,i,n,2),d=ir(u.data,h,l,i,n,3),g=F(s,0,f)+F(s,1,c)+F(s,2,v)+F(s,3,d)+F(s,4,1),p=F(s,5,f)+F(s,6,c)+F(s,7,v)+F(s,8,d)+F(s,9,1),y=F(s,10,f)+F(s,11,c)+F(s,12,v)+F(s,13,d)+F(s,14,1),x=F(s,15,f)+F(s,16,c)+F(s,17,v)+F(s,18,d)+F(s,19,1);o&&(g=0,p=0,y=0,x*=d/255),nr(u.data,h,l,i,n,0,g),nr(u.data,h,l,i,n,1,p),nr(u.data,h,l,i,n,2,y),nr(u.data,h,l,i,n,3,x)}e.clearRect(0,0,i,n),e.putImageData(u,0,0)}}class Dr extends N{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new ce;this.children.forEach(d=>{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,Dr.ignoreStyles),h=r.createCanvas(i+o,n+s),f=h.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new El(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,n+s);var c=r.createCanvas(i+o,n+s),v=c.getContext("2d");r.screen.setDefaults(v),t.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=f.createPattern(h,"no-repeat"),v.fillRect(0,0,i+o,n+s),e.fillStyle=v.createPattern(c,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}Dr.ignoreStyles=["mask","transform","clip-path"];var No=()=>{};class Y1 extends N{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=No,r.closePath=No),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Le.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}class kr extends N{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(y=>{var x=y.extraFilterDistance||0;o=Math.max(o,x),s=Math.max(s,x)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,f=l+2*s;if(!(h<1||f<1)){var c=Math.floor(n.x),v=Math.floor(n.y),d=this.removeStyles(t,kr.ignoreStyles),g=r.createCanvas(h,f),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+o,-v+s),t.render(p),i.forEach(y=>{typeof y.apply=="function"&&y.apply(p,0,0,h,f)}),e.drawImage(g,0,0,h,f,c-o,v-s,h,f),this.restoreStyles(t,d)}}}render(e){}}kr.ignoreStyles=["filter","transform","clip-path"];class X1 extends N{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}class W1 extends N{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}class q1 extends N{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}class Q1 extends N{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),Gb(l,t,r,i,n,s),u&&u.removeChild(l)}}class K1 extends N{constructor(){super(...arguments),this.type="title"}}class Z1 extends N{constructor(){super(...arguments),this.type="desc"}}var J1={svg:It,rect:xl,circle:S1,ellipse:E1,line:$1,polyline:Tl,polygon:w1,path:A,pattern:C1,marker:A1,defs:P1,linearGradient:R1,radialGradient:N1,stop:I1,animate:nn,animateColor:M1,animateTransform:_1,font:V1,"font-face":D1,"missing-glyph":k1,glyph:bl,text:Ce,tspan:Vr,tref:L1,a:B1,textPath:j1,image:U1,g:an,symbol:G1,style:Sl,use:H1,mask:Dr,clipPath:Y1,filter:kr,feDropShadow:X1,feMorphology:W1,feComposite:q1,feColorMatrix:El,feGaussianBlur:Q1,title:K1,desc:Z1};function Io(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function e2(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Io(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function t2(a,e){var t=document.createElement("canvas");return t.width=a,t.height=e,t}function r2(a){return xi.apply(this,arguments)}function xi(){return xi=xe(function*(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),xi.apply(this,arguments)}class $e{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=$e.createCanvas,createImage:n=$e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=$e.elementTypes[t];return typeof r<"u"?new r(this,e):new y1(this,e)}createTextNode(e){return new O1(this,e)}setViewBox(e){this.screen.setViewBox(e2({document:this},e))}}$e.createCanvas=t2;$e.createImage=r2;$e.elementTypes=J1;function Mo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function Ve(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mo(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Mo(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}class bt{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ga(r),this.screen=new _r(e,r),this.options=r;var i=new $e(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return xe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new Ga(i),o=yield n.parse(t);return new bt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Ga(r),n=i.parseFromString(t);return new bt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bt.from(e,t,Ve(Ve({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bt.fromString(e,t,Ve(Ve({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Ve({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,Ve(Ve({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}export{B1 as AElement,M1 as AnimateColorElement,nn as AnimateElement,_1 as AnimateTransformElement,ce as BoundingBox,So as CB1,Eo as CB2,$o as CB3,wo as CB4,bt as Canvg,S1 as CircleElement,Y1 as ClipPathElement,P1 as DefsElement,Z1 as DescElement,$e as Document,N as Element,E1 as EllipseElement,El as FeColorMatrixElement,q1 as FeCompositeElement,X1 as FeDropShadowElement,Q1 as FeGaussianBlurElement,W1 as FeMorphologyElement,kr as FilterElement,Z as Font,V1 as FontElement,D1 as FontFaceElement,an as GElement,bl as GlyphElement,Ol as GradientElement,U1 as ImageElement,$1 as LineElement,R1 as LinearGradientElement,A1 as MarkerElement,Dr as MaskElement,yl as Matrix,k1 as MissingGlyphElement,o1 as Mouse,at as PSEUDO_ZERO,Ga as Parser,A as PathElement,w as PathParser,C1 as PatternElement,D as Point,w1 as PolygonElement,Tl as PolylineElement,S as Property,Co as QB1,Ao as QB2,Po as QB3,N1 as RadialGradientElement,xl as RectElement,Ge as RenderedElement,v1 as Rotate,It as SVGElement,z1 as SVGFontLoader,f1 as Scale,_r as Screen,ml as Skew,c1 as SkewX,g1 as SkewY,I1 as StopElement,Sl as StyleElement,G1 as SymbolElement,L1 as TRefElement,Vr as TSpanElement,Ce as TextElement,j1 as TextPathElement,K1 as TitleElement,Le as Transform,h1 as Translate,y1 as UnknownElement,H1 as UseElement,s1 as ViewPort,ht as compressSpaces,bt as default,n1 as getSelectorSpecificity,Qb as normalizeAttributeName,Kb as normalizeColor,gl as parseExternalUrl,i2 as presets,ie as toNumbers,Xb as trimLeft,Wb as trimRight,To as vectorMagnitude,Oo as vectorsAngle,bi as vectorsRatio};
Index: imaps-frontend/dist/assets/index.es-CJ0bM9NF.js
===================================================================
--- imaps-frontend/dist/assets/index.es-CJ0bM9NF.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/index.es-CJ0bM9NF.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,19 @@
+import{c as Ke,_ as za,g as _o}from"./index-ByoEELsy.js";var vt=function(a){return a&&a.Math===Math&&a},V=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),$t={},k=function(a){try{return!!a()}catch{return!0}},$l=k,le=!$l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),wl=k,mr=!wl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Cl=mr,Ut=Function.prototype.call,Y=Cl?Ut.bind(Ut):function(){return Ut.apply(Ut,arguments)},Vo={},Do={}.propertyIsEnumerable,ko=Object.getOwnPropertyDescriptor,Al=ko&&!Do.call({1:2},1);Vo.f=Al?function(e){var t=ko(this,e);return!!t&&t.enumerable}:Do;var Ti=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Lo=mr,Bo=Function.prototype,Ha=Bo.call,Pl=Lo&&Bo.bind.bind(Ha,Ha),L=Lo?Pl:function(a){return function(){return Ha.apply(a,arguments)}},jo=L,Rl=jo({}.toString),Nl=jo("".slice),Be=function(a){return Nl(Rl(a),8,-1)},Il=L,Ml=k,_l=Be,Qr=Object,Vl=Il("".split),Fo=Ml(function(){return!Qr("z").propertyIsEnumerable(0)})?function(a){return _l(a)==="String"?Vl(a,""):Qr(a)}:Qr,je=function(a){return a==null},Dl=je,kl=TypeError,he=function(a){if(Dl(a))throw new kl("Can't call method on "+a);return a},Ll=Fo,Bl=he,wt=function(a){return Ll(Bl(a))},Kr=typeof document=="object"&&document.all,B=typeof Kr>"u"&&Kr!==void 0?function(a){return typeof a=="function"||a===Kr}:function(a){return typeof a=="function"},jl=B,ve=function(a){return typeof a=="object"?a!==null:jl(a)},Zr=V,Fl=B,Ul=function(a){return Fl(a)?a:void 0},Fe=function(a,e){return arguments.length<2?Ul(Zr[a]):Zr[a]&&Zr[a][e]},Gl=L,br=Gl({}.isPrototypeOf),zl=V,dn=zl.navigator,pn=dn&&dn.userAgent,Ct=pn?String(pn):"",Uo=V,Jr=Ct,yn=Uo.process,mn=Uo.Deno,bn=yn&&yn.versions||mn&&mn.version,xn=bn&&bn.v8,ue,fr;xn&&(ue=xn.split("."),fr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!fr&&Jr&&(ue=Jr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Jr.match(/Chrome\/(\d+)/),ue&&(fr=+ue[1])));var Oi=fr,Tn=Oi,Hl=k,Yl=V,Xl=Yl.String,Go=!!Object.getOwnPropertySymbols&&!Hl(function(){var a=Symbol("symbol detection");return!Xl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Tn&&Tn<41}),Wl=Go,zo=Wl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ql=Fe,Ql=B,Kl=br,Zl=zo,Jl=Object,Ho=Zl?function(a){return typeof a=="symbol"}:function(a){var e=ql("Symbol");return Ql(e)&&Kl(e.prototype,Jl(a))},eh=String,xr=function(a){try{return eh(a)}catch{return"Object"}},th=B,rh=xr,ah=TypeError,Te=function(a){if(th(a))return a;throw new ah(rh(a)+" is not a function")},ih=Te,nh=je,ot=function(a,e){var t=a[e];return nh(t)?void 0:ih(t)},ea=Y,ta=B,ra=ve,sh=TypeError,oh=function(a,e){var t,r;if(e==="string"&&ta(t=a.toString)&&!ra(r=ea(t,a))||ta(t=a.valueOf)&&!ra(r=ea(t,a))||e!=="string"&&ta(t=a.toString)&&!ra(r=ea(t,a)))return r;throw new sh("Can't convert object to primitive value")},Yo={exports:{}},On=V,uh=Object.defineProperty,Si=function(a,e){try{uh(On,a,{value:e,configurable:!0,writable:!0})}catch{On[a]=e}return e},lh=V,hh=Si,Sn="__core-js_shared__",En=Yo.exports=lh[Sn]||hh(Sn,{});(En.versions||(En.versions=[])).push({version:"3.40.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ei=Yo.exports,$n=Ei,$i=function(a,e){return $n[a]||($n[a]=e||{})},vh=he,fh=Object,Tr=function(a){return fh(vh(a))},ch=L,gh=Tr,dh=ch({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return dh(gh(e),t)},ph=L,yh=0,mh=Math.random(),bh=ph(1 .toString),Xo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+bh(++yh+mh,36)},xh=V,Th=$i,wn=fe,Oh=Xo,Sh=Go,Eh=zo,Ze=xh.Symbol,aa=Th("wks"),$h=Eh?Ze.for||Ze:Ze&&Ze.withoutSetter||Oh,z=function(a){return wn(aa,a)||(aa[a]=Sh&&wn(Ze,a)?Ze[a]:$h("Symbol."+a)),aa[a]},wh=Y,Cn=ve,An=Ho,Ch=ot,Ah=oh,Ph=z,Rh=TypeError,Nh=Ph("toPrimitive"),Ih=function(a,e){if(!Cn(a)||An(a))return a;var t=Ch(a,Nh),r;if(t){if(e===void 0&&(e="default"),r=wh(t,a,e),!Cn(r)||An(r))return r;throw new Rh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Ah(a,e)},Mh=Ih,_h=Ho,Wo=function(a){var e=Mh(a,"string");return _h(e)?e:e+""},Vh=V,Pn=ve,Ya=Vh.document,Dh=Pn(Ya)&&Pn(Ya.createElement),Or=function(a){return Dh?Ya.createElement(a):{}},kh=le,Lh=k,Bh=Or,qo=!kh&&!Lh(function(){return Object.defineProperty(Bh("div"),"a",{get:function(){return 7}}).a!==7}),jh=le,Fh=Y,Uh=Vo,Gh=Ti,zh=wt,Hh=Wo,Yh=fe,Xh=qo,Rn=Object.getOwnPropertyDescriptor;$t.f=jh?Rn:function(e,t){if(e=zh(e),t=Hh(t),Xh)try{return Rn(e,t)}catch{}if(Yh(e,t))return Gh(!Fh(Uh.f,e,t),e[t])};var Oe={},Wh=le,qh=k,Qo=Wh&&qh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Qh=ve,Kh=String,Zh=TypeError,J=function(a){if(Qh(a))return a;throw new Zh(Kh(a)+" is not an object")},Jh=le,ev=qo,tv=Qo,Gt=J,Nn=Wo,rv=TypeError,ia=Object.defineProperty,av=Object.getOwnPropertyDescriptor,na="enumerable",sa="configurable",oa="writable";Oe.f=Jh?tv?function(e,t,r){if(Gt(e),t=Nn(t),Gt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&oa in r&&!r[oa]){var i=av(e,t);i&&i[oa]&&(e[t]=r.value,r={configurable:sa in r?r[sa]:i[sa],enumerable:na in r?r[na]:i[na],writable:!1})}return ia(e,t,r)}:ia:function(e,t,r){if(Gt(e),t=Nn(t),Gt(r),ev)try{return ia(e,t,r)}catch{}if("get"in r||"set"in r)throw new rv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var iv=le,nv=Oe,sv=Ti,At=iv?function(a,e,t){return nv.f(a,e,sv(1,t))}:function(a,e,t){return a[e]=t,a},Ko={exports:{}},Xa=le,ov=fe,Zo=Function.prototype,uv=Xa&&Object.getOwnPropertyDescriptor,wi=ov(Zo,"name"),lv=wi&&(function(){}).name==="something",hv=wi&&(!Xa||Xa&&uv(Zo,"name").configurable),Sr={EXISTS:wi,PROPER:lv,CONFIGURABLE:hv},vv=L,fv=B,Wa=Ei,cv=vv(Function.toString);fv(Wa.inspectSource)||(Wa.inspectSource=function(a){return cv(a)});var Ci=Wa.inspectSource,gv=V,dv=B,In=gv.WeakMap,pv=dv(In)&&/native code/.test(String(In)),yv=$i,mv=Xo,Mn=yv("keys"),Ai=function(a){return Mn[a]||(Mn[a]=mv(a))},Pi={},bv=pv,Jo=V,xv=ve,Tv=At,ua=fe,la=Ei,Ov=Ai,Sv=Pi,_n="Object already initialized",qa=Jo.TypeError,Ev=Jo.WeakMap,cr,Ot,gr,$v=function(a){return gr(a)?Ot(a):cr(a,{})},wv=function(a){return function(e){var t;if(!xv(e)||(t=Ot(e)).type!==a)throw new qa("Incompatible receiver, "+a+" required");return t}};if(bv||la.state){var de=la.state||(la.state=new Ev);de.get=de.get,de.has=de.has,de.set=de.set,cr=function(a,e){if(de.has(a))throw new qa(_n);return e.facade=a,de.set(a,e),e},Ot=function(a){return de.get(a)||{}},gr=function(a){return de.has(a)}}else{var Ye=Ov("state");Sv[Ye]=!0,cr=function(a,e){if(ua(a,Ye))throw new qa(_n);return e.facade=a,Tv(a,Ye,e),e},Ot=function(a){return ua(a,Ye)?a[Ye]:{}},gr=function(a){return ua(a,Ye)}}var Er={set:cr,get:Ot,has:gr,enforce:$v,getterFor:wv},Ri=L,Cv=k,Av=B,zt=fe,Qa=le,Pv=Sr.CONFIGURABLE,Rv=Ci,eu=Er,Nv=eu.enforce,Iv=eu.get,Vn=String,sr=Object.defineProperty,Mv=Ri("".slice),_v=Ri("".replace),Vv=Ri([].join),Dv=Qa&&!Cv(function(){return sr(function(){},"length",{value:8}).length!==8}),kv=String(String).split("String"),Lv=Ko.exports=function(a,e,t){Mv(Vn(e),0,7)==="Symbol("&&(e="["+_v(Vn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!zt(a,"name")||Pv&&a.name!==e)&&(Qa?sr(a,"name",{value:e,configurable:!0}):a.name=e),Dv&&t&&zt(t,"arity")&&a.length!==t.arity&&sr(a,"length",{value:t.arity});try{t&&zt(t,"constructor")&&t.constructor?Qa&&sr(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Nv(a);return zt(r,"source")||(r.source=Vv(kv,typeof e=="string"?e:"")),a};Function.prototype.toString=Lv(function(){return Av(this)&&Iv(this).source||Rv(this)},"toString");var tu=Ko.exports,Bv=B,jv=Oe,Fv=tu,Uv=Si,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Bv(t)&&Fv(t,n,r),r.global)i?a[e]=t:Uv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:jv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},ru={},Gv=Math.ceil,zv=Math.floor,Hv=Math.trunc||function(e){var t=+e;return(t>0?zv:Gv)(t)},Yv=Hv,$r=function(a){var e=+a;return e!==e||e===0?0:Yv(e)},Xv=$r,Wv=Math.max,qv=Math.min,Qv=function(a,e){var t=Xv(a);return t<0?Wv(t+e,0):qv(t,e)},Kv=$r,Zv=Math.min,ut=function(a){var e=Kv(a);return e>0?Zv(e,9007199254740991):0},Jv=ut,Ni=function(a){return Jv(a.length)},ef=wt,tf=Qv,rf=Ni,Dn=function(a){return function(e,t,r){var i=ef(e),n=rf(i);if(n===0)return!a&&-1;var o=tf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},au={includes:Dn(!0),indexOf:Dn(!1)},af=L,ha=fe,nf=wt,sf=au.indexOf,of=Pi,kn=af([].push),iu=function(a,e){var t=nf(a),r=0,i=[],n;for(n in t)!ha(of,n)&&ha(t,n)&&kn(i,n);for(;e.length>r;)ha(t,n=e[r++])&&(~sf(i,n)||kn(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uf=iu,lf=Ii,hf=lf.concat("length","prototype");ru.f=Object.getOwnPropertyNames||function(e){return uf(e,hf)};var nu={};nu.f=Object.getOwnPropertySymbols;var vf=Fe,ff=L,cf=ru,gf=nu,df=J,pf=ff([].concat),yf=vf("Reflect","ownKeys")||function(e){var t=cf.f(df(e)),r=gf.f;return r?pf(t,r(e)):t},Ln=fe,mf=yf,bf=$t,xf=Oe,Tf=function(a,e,t){for(var r=mf(e),i=xf.f,n=bf.f,o=0;o<r.length;o++){var s=r[o];!Ln(a,s)&&!(t&&Ln(t,s))&&i(a,s,n(e,s))}},Of=k,Sf=B,Ef=/#|\.prototype\./,Pt=function(a,e){var t=wf[$f(a)];return t===Af?!0:t===Cf?!1:Sf(e)?Of(e):!!e},$f=Pt.normalize=function(a){return String(a).replace(Ef,".").toLowerCase()},wf=Pt.data={},Cf=Pt.NATIVE="N",Af=Pt.POLYFILL="P",su=Pt,Ht=V,Pf=$t.f,Rf=At,Nf=Ue,If=Si,Mf=Tf,_f=su,ee=function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=Ht:i?o=Ht[t]||If(t,{}):o=Ht[t]&&Ht[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=Pf(o,s),u=h&&h.value):u=o[s],n=_f(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;Mf(l,u)}(a.sham||u&&u.sham)&&Rf(l,"sham",!0),Nf(o,s,l,a)}},ft=V,Vf=Ct,Df=Be,Yt=function(a){return Vf.slice(0,a.length)===a},ou=function(){return Yt("Bun/")?"BUN":Yt("Cloudflare-Workers")?"CLOUDFLARE":Yt("Deno/")?"DENO":Yt("Node.js/")?"NODE":ft.Bun&&typeof Bun.version=="string"?"BUN":ft.Deno&&typeof Deno.version=="object"?"DENO":Df(ft.process)==="process"?"NODE":ft.window&&ft.document?"BROWSER":"REST"}(),kf=ou,wr=kf==="NODE",Lf=L,Bf=Te,jf=function(a,e,t){try{return Lf(Bf(Object.getOwnPropertyDescriptor(a,e)[t]))}catch{}},Ff=ve,Uf=function(a){return Ff(a)||a===null},Gf=Uf,zf=String,Hf=TypeError,Yf=function(a){if(Gf(a))return a;throw new Hf("Can't set "+zf(a)+" as a prototype")},Xf=jf,Wf=ve,qf=he,Qf=Yf,uu=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Xf(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch{}return function(i,n){return qf(i),Qf(n),Wf(i)&&(a?t(i,n):i.__proto__=n),i}}():void 0),Kf=Oe.f,Zf=fe,Jf=z,Bn=Jf("toStringTag"),Cr=function(a,e,t){a&&!t&&(a=a.prototype),a&&!Zf(a,Bn)&&Kf(a,Bn,{configurable:!0,value:e})},jn=tu,ec=Oe,tc=function(a,e,t){return t.get&&jn(t.get,e,{getter:!0}),t.set&&jn(t.set,e,{setter:!0}),ec.f(a,e,t)},rc=Fe,ac=tc,ic=z,nc=le,Fn=ic("species"),sc=function(a){var e=rc(a);nc&&e&&!e[Fn]&&ac(e,Fn,{configurable:!0,get:function(){return this}})},oc=br,uc=TypeError,lc=function(a,e){if(oc(e,a))return a;throw new uc("Incorrect invocation")},hc=z,vc=hc("toStringTag"),lu={};lu[vc]="z";var fc=String(lu)==="[object z]",cc=fc,gc=B,or=Be,dc=z,pc=dc("toStringTag"),yc=Object,mc=or(function(){return arguments}())==="Arguments",bc=function(a,e){try{return a[e]}catch{}},Mi=cc?or:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=bc(e=yc(a),pc))=="string"?t:mc?or(e):(r=or(e))==="Object"&&gc(e.callee)?"Arguments":r},xc=L,Tc=k,hu=B,Oc=Mi,Sc=Fe,Ec=Ci,vu=function(){},fu=Sc("Reflect","construct"),_i=/^\s*(?:class|function)\b/,$c=xc(_i.exec),wc=!_i.test(vu),ct=function(e){if(!hu(e))return!1;try{return fu(vu,[],e),!0}catch{return!1}},cu=function(e){if(!hu(e))return!1;switch(Oc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wc||!!$c(_i,Ec(e))}catch{return!0}};cu.sham=!0;var Cc=!fu||Tc(function(){var a;return ct(ct.call)||!ct(Object)||!ct(function(){a=!0})||a})?cu:ct,Ac=Cc,Pc=xr,Rc=TypeError,Nc=function(a){if(Ac(a))return a;throw new Rc(Pc(a)+" is not a constructor")},Un=J,Ic=Nc,Mc=je,_c=z,Vc=_c("species"),gu=function(a,e){var t=Un(a).constructor,r;return t===void 0||Mc(r=Un(t)[Vc])?e:Ic(r)},Dc=mr,du=Function.prototype,Gn=du.apply,zn=du.call,pu=typeof Reflect=="object"&&Reflect.apply||(Dc?zn.bind(Gn):function(){return zn.apply(Gn,arguments)}),kc=Be,Lc=L,Ar=function(a){if(kc(a)==="Function")return Lc(a)},Hn=Ar,Bc=Te,jc=mr,Fc=Hn(Hn.bind),Vi=function(a,e){return Bc(a),e===void 0?a:jc?Fc(a,e):function(){return a.apply(e,arguments)}},Uc=Fe,yu=Uc("document","documentElement"),Gc=L,zc=Gc([].slice),Hc=TypeError,Yc=function(a,e){if(a<e)throw new Hc("Not enough arguments");return a},Xc=Ct,mu=/(?:ipad|iphone|ipod).*applewebkit/i.test(Xc),ae=V,Wc=pu,qc=Vi,Yn=B,Qc=fe,bu=k,Xn=yu,Kc=zc,Wn=Or,Zc=Yc,Jc=mu,eg=wr,Ka=ae.setImmediate,Za=ae.clearImmediate,tg=ae.process,va=ae.Dispatch,rg=ae.Function,qn=ae.MessageChannel,ag=ae.String,fa=0,xt={},Qn="onreadystatechange",St,Ie,ca,ga;bu(function(){St=ae.location});var Di=function(a){if(Qc(xt,a)){var e=xt[a];delete xt[a],e()}},da=function(a){return function(){Di(a)}},Kn=function(a){Di(a.data)},Zn=function(a){ae.postMessage(ag(a),St.protocol+"//"+St.host)};(!Ka||!Za)&&(Ka=function(e){Zc(arguments.length,1);var t=Yn(e)?e:rg(e),r=Kc(arguments,1);return xt[++fa]=function(){Wc(t,void 0,r)},Ie(fa),fa},Za=function(e){delete xt[e]},eg?Ie=function(a){tg.nextTick(da(a))}:va&&va.now?Ie=function(a){va.now(da(a))}:qn&&!Jc?(ca=new qn,ga=ca.port2,ca.port1.onmessage=Kn,Ie=qc(ga.postMessage,ga)):ae.addEventListener&&Yn(ae.postMessage)&&!ae.importScripts&&St&&St.protocol!=="file:"&&!bu(Zn)?(Ie=Zn,ae.addEventListener("message",Kn,!1)):Qn in Wn("script")?Ie=function(a){Xn.appendChild(Wn("script"))[Qn]=function(){Xn.removeChild(this),Di(a)}}:Ie=function(a){setTimeout(da(a),0)});var xu={set:Ka,clear:Za},Jn=V,ig=le,ng=Object.getOwnPropertyDescriptor,sg=function(a){if(!ig)return Jn[a];var e=ng(Jn,a);return e&&e.value},Tu=function(){this.head=null,this.tail=null};Tu.prototype={add:function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}}};var Ou=Tu,og=Ct,ug=/ipad|iphone|ipod/i.test(og)&&typeof Pebble<"u",lg=Ct,hg=/web0s(?!.*chrome)/i.test(lg),it=V,vg=sg,es=Vi,pa=xu.set,fg=Ou,cg=mu,gg=ug,dg=hg,ya=wr,ts=it.MutationObserver||it.WebKitMutationObserver,rs=it.document,as=it.process,Xt=it.Promise,Ja=vg("queueMicrotask"),Xe,ma,ba,Wt,is;if(!Ja){var qt=new fg,Qt=function(){var a,e;for(ya&&(a=as.domain)&&a.exit();e=qt.get();)try{e()}catch(t){throw qt.head&&Xe(),t}a&&a.enter()};!cg&&!ya&&!dg&&ts&&rs?(ma=!0,ba=rs.createTextNode(""),new ts(Qt).observe(ba,{characterData:!0}),Xe=function(){ba.data=ma=!ma}):!gg&&Xt&&Xt.resolve?(Wt=Xt.resolve(void 0),Wt.constructor=Xt,is=es(Wt.then,Wt),Xe=function(){is(Qt)}):ya?Xe=function(){as.nextTick(Qt)}:(pa=es(pa,it),Xe=function(){pa(Qt)}),Ja=function(a){qt.head||Xe(),qt.add(a)}}var pg=Ja,yg=function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch{}},ki=function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},mg=V,Pr=mg.Promise,bg=V,Tt=Pr,xg=B,Tg=su,Og=Ci,Sg=z,ns=ou,xa=Oi;Tt&&Tt.prototype;var Eg=Sg("species"),ei=!1,Su=xg(bg.PromiseRejectionEvent),$g=Tg("Promise",function(){var a=Og(Tt),e=a!==String(Tt);if(!e&&xa===66)return!0;if(!xa||xa<51||!/native code/.test(a)){var t=new Tt(function(n){n(1)}),r=function(n){n(function(){},function(){})},i=t.constructor={};if(i[Eg]=r,ei=t.then(function(){})instanceof r,!ei)return!0}return!e&&(ns==="BROWSER"||ns==="DENO")&&!Su}),Rt={CONSTRUCTOR:$g,REJECTION_EVENT:Su,SUBCLASSING:ei},lt={},ss=Te,wg=TypeError,Cg=function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new wg("Bad Promise constructor");e=r,t=i}),this.resolve=ss(e),this.reject=ss(t)};lt.f=function(a){return new Cg(a)};var Ag=ee,dr=wr,we=V,nt=Y,os=Ue,us=uu,Pg=Cr,Rg=sc,Ng=Te,ur=B,Ig=ve,Mg=lc,_g=gu,Eu=xu.set,Li=pg,Vg=yg,Dg=ki,kg=Ou,$u=Er,pr=Pr,Bi=Rt,wu=lt,Rr="Promise",Cu=Bi.CONSTRUCTOR,Lg=Bi.REJECTION_EVENT,Bg=Bi.SUBCLASSING,Ta=$u.getterFor(Rr),jg=$u.set,Qe=pr&&pr.prototype,De=pr,Kt=Qe,Au=we.TypeError,ti=we.document,ji=we.process,ri=wu.f,Fg=ri,Ug=!!(ti&&ti.createEvent&&we.dispatchEvent),Pu="unhandledrejection",Gg="rejectionhandled",ls=0,Ru=1,zg=2,Fi=1,Nu=2,Zt,hs,Hg,vs,Iu=function(a){var e;return Ig(a)&&ur(e=a.then)?e:!1},Mu=function(a,e){var t=e.value,r=e.state===Ru,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===Nu&&Xg(e),e.rejection=Fi),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new Au("Promise-chain cycle")):(l=Iu(u))?nt(l,u,n,o):n(u)):o(t)}catch(f){s&&!h&&s.exit(),o(f)}},_u=function(a,e){a.notified||(a.notified=!0,Li(function(){for(var t=a.reactions,r;r=t.get();)Mu(r,a);a.notified=!1,e&&!a.rejection&&Yg(a)}))},Vu=function(a,e,t){var r,i;Ug?(r=ti.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),we.dispatchEvent(r)):r={promise:e,reason:t},!Lg&&(i=we["on"+a])?i(r):a===Pu&&Vg("Unhandled promise rejection",t)},Yg=function(a){nt(Eu,we,function(){var e=a.facade,t=a.value,r=fs(a),i;if(r&&(i=Dg(function(){dr?ji.emit("unhandledRejection",t,e):Vu(Pu,e,t)}),a.rejection=dr||fs(a)?Nu:Fi,i.error))throw i.value})},fs=function(a){return a.rejection!==Fi&&!a.parent},Xg=function(a){nt(Eu,we,function(){var e=a.facade;dr?ji.emit("rejectionHandled",e):Vu(Gg,e,a.value)})},Je=function(a,e,t){return function(r){a(e,r,t)}},tt=function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=zg,_u(a,!0))},ai=function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new Au("Promise can't be resolved itself");var r=Iu(e);r?Li(function(){var i={done:!1};try{nt(r,e,Je(ai,i,a),Je(tt,i,a))}catch(n){tt(i,n,a)}}):(a.value=e,a.state=Ru,_u(a,!1))}catch(i){tt({done:!1},i,a)}}};if(Cu&&(De=function(e){Mg(this,Kt),Ng(e),nt(Zt,this);var t=Ta(this);try{e(Je(ai,t),Je(tt,t))}catch(r){tt(t,r)}},Kt=De.prototype,Zt=function(e){jg(this,{type:Rr,done:!1,notified:!1,parent:!1,reactions:new kg,rejection:!1,state:ls,value:null})},Zt.prototype=os(Kt,"then",function(e,t){var r=Ta(this),i=ri(_g(this,De));return r.parent=!0,i.ok=ur(e)?e:!0,i.fail=ur(t)&&t,i.domain=dr?ji.domain:void 0,r.state===ls?r.reactions.add(i):Li(function(){Mu(i,r)}),i.promise}),hs=function(){var a=new Zt,e=Ta(a);this.promise=a,this.resolve=Je(ai,e),this.reject=Je(tt,e)},wu.f=ri=function(a){return a===De||a===Hg?new hs(a):Fg(a)},ur(pr)&&Qe!==Object.prototype)){vs=Qe.then,Bg||os(Qe,"then",function(e,t){var r=this;return new De(function(i,n){nt(vs,r,i,n)}).then(e,t)},{unsafe:!0});try{delete Qe.constructor}catch{}us&&us(Qe,Kt)}Ag({global:!0,constructor:!0,wrap:!0,forced:Cu},{Promise:De});Pg(De,Rr,!1);Rg(Rr);var Nt={},Wg=z,qg=Nt,Qg=Wg("iterator"),Kg=Array.prototype,Zg=function(a){return a!==void 0&&(qg.Array===a||Kg[Qg]===a)},Jg=Mi,cs=ot,ed=je,td=Nt,rd=z,ad=rd("iterator"),Du=function(a){if(!ed(a))return cs(a,ad)||cs(a,"@@iterator")||td[Jg(a)]},id=Y,nd=Te,sd=J,od=xr,ud=Du,ld=TypeError,hd=function(a,e){var t=arguments.length<2?ud(a):e;if(nd(t))return sd(id(t,a));throw new ld(od(a)+" is not iterable")},vd=Y,gs=J,fd=ot,cd=function(a,e,t){var r,i;gs(a);try{if(r=fd(a,"return"),!r){if(e==="throw")throw t;return t}r=vd(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return gs(r),t},gd=Vi,dd=Y,pd=J,yd=xr,md=Zg,bd=Ni,ds=br,xd=hd,Td=Du,ps=cd,Od=TypeError,lr=function(a,e){this.stopped=a,this.result=e},ys=lr.prototype,ku=function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=gd(e,r),l,h,f,c,v,d,g,p=function(x){return l&&ps(l,"normal",x),new lr(!0,x)},y=function(x){return i?(pd(x),s?u(x[0],x[1],p):u(x[0],x[1])):s?u(x,p):u(x)};if(n)l=a.iterator;else if(o)l=a;else{if(h=Td(a),!h)throw new Od(yd(a)+" is not iterable");if(md(h)){for(f=0,c=bd(a);c>f;f++)if(v=y(a[f]),v&&ds(ys,v))return v;return new lr(!1)}l=xd(a,h)}for(d=n?a.next:l.next;!(g=dd(d,l)).done;){try{v=y(g.value)}catch(x){ps(l,"throw",x)}if(typeof v=="object"&&v&&ds(ys,v))return v}return new lr(!1)},Sd=z,Lu=Sd("iterator"),Bu=!1;try{var Ed=0,ms={next:function(){return{done:!!Ed++}},return:function(){Bu=!0}};ms[Lu]=function(){return this},Array.from(ms,function(){throw 2})}catch{}var $d=function(a,e){try{if(!e&&!Bu)return!1}catch{return!1}var t=!1;try{var r={};r[Lu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},wd=Pr,Cd=$d,Ad=Rt.CONSTRUCTOR,ju=Ad||!Cd(function(a){wd.all(a).then(void 0,function(){})}),Pd=ee,Rd=Y,Nd=Te,Id=lt,Md=ki,_d=ku,Vd=ju;Pd({target:"Promise",stat:!0,forced:Vd},{all:function(e){var t=this,r=Id.f(t),i=r.resolve,n=r.reject,o=Md(function(){var s=Nd(t.resolve),u=[],l=0,h=1;_d(e,function(f){var c=l++,v=!1;h++,Rd(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var Dd=ee,kd=Rt.CONSTRUCTOR,ii=Pr,Ld=Fe,Bd=B,jd=Ue,bs=ii&&ii.prototype;Dd({target:"Promise",proto:!0,forced:kd,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Bd(ii)){var xs=Ld("Promise").prototype.catch;bs.catch!==xs&&jd(bs,"catch",xs,{unsafe:!0})}var Fd=ee,Ud=Y,Gd=Te,zd=lt,Hd=ki,Yd=ku,Xd=ju;Fd({target:"Promise",stat:!0,forced:Xd},{race:function(e){var t=this,r=zd.f(t),i=r.reject,n=Hd(function(){var o=Gd(t.resolve);Yd(e,function(s){Ud(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Wd=ee,qd=lt,Qd=Rt.CONSTRUCTOR;Wd({target:"Promise",stat:!0,forced:Qd},{reject:function(e){var t=qd.f(this),r=t.reject;return r(e),t.promise}});var Kd=J,Zd=ve,Jd=lt,ep=function(a,e){if(Kd(a),Zd(e)&&e.constructor===a)return e;var t=Jd.f(a),r=t.resolve;return r(e),t.promise},tp=ee,rp=Fe,ap=Rt.CONSTRUCTOR,ip=ep;rp("Promise");tp({target:"Promise",stat:!0,forced:ap},{resolve:function(e){return ip(this,e)}});function Ts(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Ts(n,r,i,o,s,"next",u)}function s(u){Ts(n,r,i,o,s,"throw",u)}o(void 0)})}}var np=Mi,sp=String,pe=function(a){if(np(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sp(a)},op=J,Fu=function(){var a=op(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Ui=k,up=V,Gi=up.RegExp,zi=Ui(function(){var a=Gi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),lp=zi||Ui(function(){return!Gi("a","y").sticky}),hp=zi||Ui(function(){var a=Gi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Uu={BROKEN_CARET:hp,MISSED_STICKY:lp,UNSUPPORTED_Y:zi},Gu={},vp=iu,fp=Ii,cp=Object.keys||function(e){return vp(e,fp)},gp=le,dp=Qo,pp=Oe,yp=J,mp=wt,bp=cp;Gu.f=gp&&!dp?Object.defineProperties:function(e,t){yp(e);for(var r=mp(t),i=bp(t),n=i.length,o=0,s;n>o;)pp.f(e,s=i[o++],r[s]);return e};var xp=J,Tp=Gu,Os=Ii,Op=Pi,Sp=yu,Ep=Or,$p=Ai,Ss=">",Es="<",ni="prototype",si="script",zu=$p("IE_PROTO"),Oa=function(){},Hu=function(a){return Es+si+Ss+a+Es+"/"+si+Ss},$s=function(a){a.write(Hu("")),a.close();var e=a.parentWindow.Object;return a=null,e},wp=function(){var a=Ep("iframe"),e="java"+si+":",t;return a.style.display="none",Sp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Hu("document.F=Object")),t.close(),t.F},Jt,hr=function(){try{Jt=new ActiveXObject("htmlfile")}catch{}hr=typeof document<"u"?document.domain&&Jt?$s(Jt):wp():$s(Jt);for(var a=Os.length;a--;)delete hr[ni][Os[a]];return hr()};Op[zu]=!0;var Hi=Object.create||function(e,t){var r;return e!==null?(Oa[ni]=xp(e),r=new Oa,Oa[ni]=null,r[zu]=e):r=hr(),t===void 0?r:Tp.f(r,t)},Cp=k,Ap=V,Pp=Ap.RegExp,Rp=Cp(function(){var a=Pp(".","s");return!(a.dotAll&&a.test(`
+`)&&a.flags==="s")}),Np=k,Ip=V,Mp=Ip.RegExp,_p=Np(function(){var a=Mp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),et=Y,Nr=L,Vp=pe,Dp=Fu,kp=Uu,Lp=$i,Bp=Hi,jp=Er.get,Fp=Rp,Up=_p,Gp=Lp("native-string-replace",String.prototype.replace),yr=RegExp.prototype.exec,oi=yr,zp=Nr("".charAt),Hp=Nr("".indexOf),Yp=Nr("".replace),Sa=Nr("".slice),ui=function(){var a=/a/,e=/b*/g;return et(yr,a,"a"),et(yr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Yu=kp.BROKEN_CARET,li=/()??/.exec("")[1]!==void 0,Xp=ui||li||Yu||Fp||Up;Xp&&(oi=function(e){var t=this,r=jp(t),i=Vp(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=et(oi,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Yu&&t.sticky,g=et(Dp,t),p=t.source,y=0,x=i;if(d&&(g=Yp(g,"y",""),Hp(g,"g")===-1&&(g+="g"),x=Sa(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&zp(i,t.lastIndex-1)!==`
+`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),li&&(s=new RegExp("^"+p+"$(?!\\s)",g)),ui&&(u=t.lastIndex),l=et(yr,d?s:t,x),d?l?(l.input=Sa(l.input,y),l[0]=Sa(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:ui&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),li&&l&&l.length>1&&et(Gp,l[0],s,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&v)for(l.groups=f=Bp(null),h=0;h<v.length;h++)c=v[h],f[c[0]]=l[c[1]];return l});var Yi=oi,Wp=ee,ws=Yi;Wp({target:"RegExp",proto:!0,forced:/./.exec!==ws},{exec:ws});var Cs=Y,As=Ue,qp=Yi,Ps=k,Xu=z,Qp=At,Kp=Xu("species"),Ea=RegExp.prototype,Xi=function(a,e,t,r){var i=Xu(a),n=!Ps(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!Ps(function(){var l=!1,h=/a/;return a==="split"&&(h={},h.constructor={},h.constructor[Kp]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,f,c,v){var d=h.exec;return d===qp||d===Ea.exec?n&&!v?{done:!0,value:Cs(s,h,f,c)}:{done:!0,value:Cs(l,f,h,c)}:{done:!1}});As(String.prototype,a,u[0]),As(Ea,i,u[1])}r&&Qp(Ea[i],"sham",!0)},Wi=L,Zp=$r,Jp=pe,ey=he,ty=Wi("".charAt),Rs=Wi("".charCodeAt),ry=Wi("".slice),Ns=function(a){return function(e,t){var r=Jp(ey(e)),i=Zp(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=Rs(r,i),o<55296||o>56319||i+1===n||(s=Rs(r,i+1))<56320||s>57343?a?ty(r,i):o:a?ry(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ay={codeAt:Ns(!1),charAt:Ns(!0)},iy=ay.charAt,qi=function(a,e,t){return e+(t?iy(a,e).length:1)},Is=Y,ny=J,sy=B,oy=Be,uy=Yi,ly=TypeError,Qi=function(a,e){var t=a.exec;if(sy(t)){var r=Is(t,a,e);return r!==null&&ny(r),r}if(oy(a)==="RegExp")return Is(uy,a,e);throw new ly("RegExp#exec called on incompatible receiver")},hy=Y,vy=Xi,fy=J,cy=je,gy=ut,$a=pe,dy=he,py=ot,yy=qi,Ms=Qi;vy("match",function(a,e,t){return[function(i){var n=dy(this),o=cy(i)?void 0:py(i,a);return o?hy(o,i,n):new RegExp(i)[a]($a(n))},function(r){var i=fy(this),n=$a(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Ms(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Ms(i,n))!==null;){var f=$a(h[0]);u[l]=f,f===""&&(i.lastIndex=yy(n,gy(i.lastIndex),s)),l++}return l===0?null:u}]});var Ki=L,my=Tr,by=Math.floor,wa=Ki("".charAt),xy=Ki("".replace),Ca=Ki("".slice),Ty=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oy=/\$([$&'`]|\d{1,2})/g,Sy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=Oy;return i!==void 0&&(i=my(i),u=Ty),xy(n,u,function(l,h){var f;switch(wa(h,0)){case"$":return"$";case"&":return a;case"`":return Ca(e,0,t);case"'":return Ca(e,o);case"<":f=i[Ca(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=by(c/10);return v===0?l:v<=s?r[v-1]===void 0?wa(h,1):r[v-1]+wa(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ey=pu,_s=Y,Ir=L,$y=Xi,wy=k,Cy=J,Ay=B,Py=je,Ry=$r,Ny=ut,We=pe,Iy=he,My=qi,_y=ot,Vy=Sy,Dy=Qi,ky=z,hi=ky("replace"),Ly=Math.max,By=Math.min,jy=Ir([].concat),Aa=Ir([].push),Vs=Ir("".indexOf),Ds=Ir("".slice),Fy=function(a){return a===void 0?a:String(a)},Uy=function(){return"a".replace(/./,"$0")==="$0"}(),ks=function(){return/./[hi]?/./[hi]("a","$0")==="":!1}(),Gy=!wy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});$y("replace",function(a,e,t){var r=ks?"$":"$0";return[function(n,o){var s=Iy(this),u=Py(n)?void 0:_y(n,hi);return u?_s(u,n,s,o):_s(e,We(s),n,o)},function(i,n){var o=Cy(this),s=We(i);if(typeof n=="string"&&Vs(n,r)===-1&&Vs(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=Ay(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=Dy(o,s),!(v===null||(Aa(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=My(s,Ny(o.lastIndex),f))}for(var g="",p=0,y=0;y<c.length;y++){v=c[y];for(var x=We(v[0]),b=Ly(By(Ry(v.index),s.length),0),T=[],$,E=1;E<v.length;E++)Aa(T,Fy(v[E]));var O=v.groups;if(l){var C=jy([x],T,b,s);O!==void 0&&Aa(C,O),$=We(Ey(n,void 0,C))}else $=Vy(x,s,b,T,O,n);b>=p&&(g+=Ds(s,p,b)+$,p=b+x.length)}return g+Ds(s,p)}]},!Gy||!Uy||ks);var zy=ve,Hy=Be,Yy=z,Xy=Yy("match"),Wy=function(a){var e;return zy(a)&&((e=a[Xy])!==void 0?!!e:Hy(a)==="RegExp")},qy=Wy,Qy=TypeError,Zi=function(a){if(qy(a))throw new Qy("The method doesn't accept regular expressions");return a},Ky=z,Zy=Ky("match"),Ji=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[Zy]=!1,"/./"[a](e)}catch{}}return!1},Jy=ee,em=Ar,tm=$t.f,rm=ut,Ls=pe,am=Zi,im=he,nm=Ji,sm=em("".slice),om=Math.min,Wu=nm("startsWith"),um=!Wu&&!!function(){var a=tm(String.prototype,"startsWith");return a&&!a.writable}();Jy({target:"String",proto:!0,forced:!um&&!Wu},{startsWith:function(e){var t=Ls(im(this));am(e);var r=rm(om(arguments.length>1?arguments[1]:void 0,t.length)),i=Ls(e);return sm(t,r,r+i.length)===i}});var lm=z,hm=Hi,vm=Oe.f,vi=lm("unscopables"),fi=Array.prototype;fi[vi]===void 0&&vm(fi,vi,{configurable:!0,value:hm(null)});var fm=function(a){fi[vi][a]=!0},cm=k,gm=!cm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),dm=fe,pm=B,ym=Tr,mm=Ai,bm=gm,Bs=mm("IE_PROTO"),ci=Object,xm=ci.prototype,qu=bm?ci.getPrototypeOf:function(a){var e=ym(a);if(dm(e,Bs))return e[Bs];var t=e.constructor;return pm(t)&&e instanceof t?t.prototype:e instanceof ci?xm:null},Tm=k,Om=B,Sm=ve,js=qu,Em=Ue,$m=z,gi=$m("iterator"),Qu=!1,ke,Pa,Ra;[].keys&&(Ra=[].keys(),"next"in Ra?(Pa=js(js(Ra)),Pa!==Object.prototype&&(ke=Pa)):Qu=!0);var wm=!Sm(ke)||Tm(function(){var a={};return ke[gi].call(a)!==a});wm&&(ke={});Om(ke[gi])||Em(ke,gi,function(){return this});var Ku={IteratorPrototype:ke,BUGGY_SAFARI_ITERATORS:Qu},Cm=Ku.IteratorPrototype,Am=Hi,Pm=Ti,Rm=Cr,Nm=Nt,Im=function(){return this},Mm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=Am(Cm,{next:Pm(+!r,t)}),Rm(a,i,!1),Nm[i]=Im,a},_m=ee,Vm=Y,Zu=Sr,Dm=B,km=Mm,Fs=qu,Us=uu,Lm=Cr,Bm=At,Na=Ue,jm=z,Fm=Nt,Ju=Ku,Um=Zu.PROPER,Gm=Zu.CONFIGURABLE,Gs=Ju.IteratorPrototype,er=Ju.BUGGY_SAFARI_ITERATORS,gt=jm("iterator"),zs="keys",dt="values",Hs="entries",zm=function(){return this},Hm=function(a,e,t,r,i,n,o){km(t,e,r);var s=function(y){if(y===i&&c)return c;if(!er&&y&&y in h)return h[y];switch(y){case zs:return function(){return new t(this,y)};case dt:return function(){return new t(this,y)};case Hs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[gt]||h["@@iterator"]||i&&h[i],c=!er&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Fs(v.call(new a)),d!==Object.prototype&&d.next&&(Fs(d)!==Gs&&(Us?Us(d,Gs):Dm(d[gt])||Na(d,gt,zm)),Lm(d,u,!0))),Um&&i===dt&&f&&f.name!==dt&&(Gm?Bm(h,"name",dt):(l=!0,c=function(){return Vm(f,this)})),i)if(g={values:s(dt),keys:n?c:s(zs),entries:s(Hs)},o)for(p in g)(er||l||!(p in h))&&Na(h,p,g[p]);else _m({target:e,proto:!0,forced:er||l},g);return h[gt]!==c&&Na(h,gt,c,{name:i}),Fm[e]=c,g},Ym=function(a,e){return{value:a,done:e}},Xm=wt,en=fm,Ys=Nt,el=Er,Wm=Oe.f,qm=Hm,tr=Ym,Qm=le,tl="Array Iterator",Km=el.set,Zm=el.getterFor(tl),Jm=qm(Array,"Array",function(a,e){Km(this,{type:tl,target:Xm(a),index:0,kind:e})},function(){var a=Zm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=null,tr(void 0,!0);switch(a.kind){case"keys":return tr(t,!1);case"values":return tr(e[t],!1)}return tr([t,e[t]],!1)},"values"),Xs=Ys.Arguments=Ys.Array;en("keys");en("values");en("entries");if(Qm&&Xs.name!=="values")try{Wm(Xs,"name",{value:"values"})}catch{}var e0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},t0=Or,Ia=t0("span").classList,Ws=Ia&&Ia.constructor&&Ia.constructor.prototype,r0=Ws===Object.prototype?void 0:Ws,qs=V,rl=e0,a0=r0,yt=Jm,Qs=At,i0=Cr,n0=z,Ma=n0("iterator"),_a=yt.values,al=function(a,e){if(a){if(a[Ma]!==_a)try{Qs(a,Ma,_a)}catch{a[Ma]=_a}if(i0(a,e,!0),rl[e]){for(var t in yt)if(a[t]!==yt[t])try{Qs(a,t,yt[t])}catch{a[t]=yt[t]}}}};for(var Va in rl)al(qs[Va]&&qs[Va].prototype,Va);al(a0,"DOMTokenList");function s0(a,e){if(za(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function o0(a){var e=s0(a,"string");return za(e)=="symbol"?e:e+""}function tn(a,e,t){return(e=o0(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var u0=Te,l0=Tr,h0=Fo,v0=Ni,Ks=TypeError,Zs="Reduce of empty array with no initial value",Js=function(a){return function(e,t,r,i){var n=l0(e),o=h0(n),s=v0(n);if(u0(t),s===0&&r<2)throw new Ks(Zs);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new Ks(Zs)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},f0={left:Js(!1),right:Js(!0)},c0=k,il=function(a,e){var t=[][a];return!!t&&c0(function(){t.call(null,e||function(){return 1},1)})},g0=ee,d0=f0.left,p0=il,eo=Oi,y0=wr,m0=!y0&&eo>79&&eo<83,b0=m0||!p0("reduce");g0({target:"Array",proto:!0,forced:b0},{reduce:function(e){var t=arguments.length;return d0(this,e,t,t>1?arguments[1]:void 0)}});var x0=ee,T0=Ar,O0=$t.f,S0=ut,to=pe,E0=Zi,$0=he,w0=Ji,C0=T0("".slice),A0=Math.min,nl=w0("endsWith"),P0=!nl&&!!function(){var a=O0(String.prototype,"endsWith");return a&&!a.writable}();x0({target:"String",proto:!0,forced:!P0&&!nl},{endsWith:function(e){var t=to($0(this));E0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:A0(S0(r),i),o=to(e);return C0(t,n-o.length,n)===o}});var Da=Y,sl=L,R0=Xi,N0=J,I0=je,M0=he,_0=gu,V0=qi,D0=ut,ro=pe,k0=ot,ao=Qi,L0=Uu,B0=k,qe=L0.UNSUPPORTED_Y,j0=4294967295,F0=Math.min,ka=sl([].push),La=sl("".slice),U0=!B0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),io="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;R0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:Da(e,this,i,n)}:e;return[function(n,o){var s=M0(this),u=I0(n)?void 0:k0(n,a);return u?Da(u,n,s,o):Da(r,ro(s),n,o)},function(i,n){var o=N0(this),s=ro(i);if(!io){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=_0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?j0:n>>>0;if(v===0)return[];if(s.length===0)return ao(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g<s.length;){c.lastIndex=qe?0:g;var y=ao(c,qe?La(s,g):s),x;if(y===null||(x=F0(D0(c.lastIndex+(qe?g:0)),s.length))===d)g=V0(s,g,h);else{if(ka(p,La(s,d,g)),p.length===v)return p;for(var b=1;b<=y.length-1;b++)if(ka(p,y[b]),p.length===v)return p;g=d=x}}return ka(p,La(s,d)),p}]},io||!U0,qe);var Mr={exports:{}},mt={exports:{}};(function(){var a,e,t,r,i,n;typeof performance<"u"&&performance!==null&&performance.now?mt.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(mt.exports=function(){return(a()-i)/1e6},e=process.hrtime,a=function(){var o;return o=e(),o[0]*1e9+o[1]},r=a(),n=process.uptime()*1e9,i=r-n):Date.now?(mt.exports=function(){return Date.now()-t},t=Date.now()):(mt.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(Ke);var G0=mt.exports,z0=G0,be=typeof window>"u"?Ke:window,rr=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],Et=be["cancel"+rt]||be["cancelRequest"+rt];for(var pt=0;!st&&pt<rr.length;pt++)st=be[rr[pt]+"Request"+rt],Et=be[rr[pt]+"Cancel"+rt]||be[rr[pt]+"CancelRequest"+rt];if(!st||!Et){var Ba=0,no=0,Me=[],H0=1e3/60;st=function(a){if(Me.length===0){var e=z0(),t=Math.max(0,H0-(e-Ba));Ba=t+e,setTimeout(function(){var r=Me.slice(0);Me.length=0;for(var i=0;i<r.length;i++)if(!r[i].cancelled)try{r[i].callback(Ba)}catch(n){setTimeout(function(){throw n},0)}},Math.round(t))}return Me.push({handle:++no,callback:a,cancelled:!1}),no},Et=function(a){for(var e=0;e<Me.length;e++)Me[e].handle===a&&(Me[e].cancelled=!0)}}Mr.exports=function(a){return st.call(be,a)};Mr.exports.cancel=function(){Et.apply(be,arguments)};Mr.exports.polyfill=function(a){a||(a=be),a.requestAnimationFrame=st,a.cancelAnimationFrame=Et};var Y0=Mr.exports;const ja=_o(Y0);var ol=`	
+\v\f\r                　\u2028\u2029\uFEFF`,X0=L,W0=he,q0=pe,di=ol,so=X0("".replace),Q0=RegExp("^["+di+"]+"),K0=RegExp("(^|[^"+di+"])["+di+"]+$"),Fa=function(a){return function(e){var t=q0(W0(e));return a&1&&(t=so(t,Q0,"")),a&2&&(t=so(t,K0,"$1")),t}},Z0={start:Fa(1),end:Fa(2),trim:Fa(3)},J0=Sr.PROPER,eb=k,oo=ol,uo="​
+᠎",tb=function(a){return eb(function(){return!!oo[a]()||uo[a]()!==uo||J0&&oo[a].name!==a})},rb=ee,ab=Z0.trim,ib=tb;rb({target:"String",proto:!0,forced:ib("trim")},{trim:function(){return ab(this)}});var nb=function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};a=e[a]||a;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,n=t[r].process,o=i.exec(a);if(o){var s=n(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<t.length;l++)for(var h=t[l].example,f=0;f<h.length;f++)u[u.length]=h[f];for(var c in e)u[u.length]=c;var v=document.createElement("ul");v.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var d=document.createElement("li"),g=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+g.toHex()+"; color:"+g.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const pi=_o(nb);var sb=ee,ob=Ar,ub=au.indexOf,lb=il,yi=ob([].indexOf),ul=!!yi&&1/yi([1],1,-0)<0,hb=ul||!lb("indexOf");sb({target:"Array",proto:!0,forced:hb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ul?yi(this,e,t)||0:ub(this,e,t)}});var vb=ee,fb=L,cb=Zi,gb=he,lo=pe,db=Ji,pb=fb("".indexOf);vb({target:"String",proto:!0,forced:!db("includes")},{includes:function(e){return!!~pb(lo(gb(this)),lo(cb(e)),arguments.length>1?arguments[1]:void 0)}});var yb=Be,mb=Array.isArray||function(e){return yb(e)==="Array"},bb=ee,xb=L,Tb=mb,Ob=xb([].reverse),ho=[1,2];bb({target:"Array",proto:!0,forced:String(ho)===String(ho.reverse())},{reverse:function(){return Tb(this)&&(this.length=this.length),Ob(this)}});/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var ll=function(a,e){return(ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function hl(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}ll(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Sb(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;t<a.length;t++){var r=a[t];if(r.type===m.CLOSE_PATH)e+="z";else if(r.type===m.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===m.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===m.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===m.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===m.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==m.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function mi(a,e){var t=a[0],r=a[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}function oe(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];for(var t=0;t<a.length;t++)if(typeof a[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof a[t]+" == typeof "+a[t]);return!0}var Ee=Math.PI;function Ua(a,e,t){a.lArcFlag=a.lArcFlag===0?0:1,a.sweepFlag=a.sweepFlag===0?0:1;var r=a.rX,i=a.rY,n=a.x,o=a.y;r=Math.abs(a.rX),i=Math.abs(a.rY);var s=mi([(e-n)/2,(t-o)/2],-a.xRot/180*Ee),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),a.rX=r,a.rY=i;var f=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),c=(a.lArcFlag!==a.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),v=r*l/i*c,d=-i*u/r*c,g=mi([v,d],a.xRot/180*Ee);a.cX=g[0]+(e+n)/2,a.cY=g[1]+(t+o)/2,a.phi1=Math.atan2((l-d)/i,(u-v)/r),a.phi2=Math.atan2((-l-d)/i,(-u-v)/r),a.sweepFlag===0&&a.phi2>a.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2<a.phi1&&(a.phi2+=2*Ee),a.phi1*=180/Ee,a.phi2*=180/Ee}function vo(a,e,t){oe(a,e,t);var r=a*a+e*e-t*t;if(0>r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var U,ye=Math.PI/180;function fo(a,e,t){return(1-t)*a+t*e}function co(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}function go(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<i?[-l/u]:function(h,f,c){var v=h*h/4-f;if(v<-c)return[];if(v<=c)return[-h/2];var d=Math.sqrt(v);return[-h/2-d,-h/2+d]}(u/s,l/s,i)}function po(a,e,t,r,i){var n=1-i;return a*(n*n*n)+e*(3*n*n*i)+t*(3*n*i*i)+r*(i*i*i)}(function(a){function e(){return i(function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function t(){var s=NaN,u=NaN,l=NaN,h=NaN;return i(function(f,c,v){return f.type&m.SMOOTH_CURVE_TO&&(f.type=m.CURVE_TO,s=isNaN(s)?c:s,u=isNaN(u)?v:u,f.x1=f.relative?c-s:2*c-s,f.y1=f.relative?v-u:2*v-u),f.type&m.CURVE_TO?(s=f.relative?c+f.x2:f.x2,u=f.relative?v+f.y2:f.y2):(s=NaN,u=NaN),f.type&m.SMOOTH_QUAD_TO&&(f.type=m.QUAD_TO,l=isNaN(l)?c:l,h=isNaN(h)?v:h,f.x1=f.relative?c-l:2*c-l,f.y1=f.relative?v-h:2*v-h),f.type&m.QUAD_TO?(l=f.relative?c+f.x1:f.x1,h=f.relative?v+f.y1:f.y1):(l=NaN,h=NaN),f})}function r(){var s=NaN,u=NaN;return i(function(l,h,f){if(l.type&m.SMOOTH_QUAD_TO&&(l.type=m.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?f:u,l.x1=l.relative?h-s:2*h-s,l.y1=l.relative?f-u:2*f-u),l.type&m.QUAD_TO){s=l.relative?h+l.x1:l.x1,u=l.relative?f+l.y1:l.y1;var c=l.x1,v=l.y1;l.type=m.CURVE_TO,l.x1=((l.relative?0:h)+2*c)/3,l.y1=((l.relative?0:f)+2*v)/3,l.x2=(l.x+2*c)/3,l.y2=(l.y+2*v)/3}else s=NaN,u=NaN;return l})}function i(s){var u=0,l=0,h=NaN,f=NaN;return function(c){if(isNaN(h)&&!(c.type&m.MOVE_TO))throw new Error("path must start with moveto");var v=s(c,u,l,h,f);return c.type&m.CLOSE_PATH&&(u=h,l=f),c.x!==void 0&&(u=c.relative?u+c.x:c.x),c.y!==void 0&&(l=c.relative?l+c.y:c.y),c.type&m.MOVE_TO&&(h=u,f=l),v}}function n(s,u,l,h,f,c){return oe(s,u,l,h,f,c),i(function(v,d,g,p){var y=v.x1,x=v.x2,b=v.relative&&!isNaN(p),T=v.x!==void 0?v.x:b?0:d,$=v.y!==void 0?v.y:b?0:g;function E(ne){return ne*ne}v.type&m.HORIZ_LINE_TO&&u!==0&&(v.type=m.LINE_TO,v.y=v.relative?0:g),v.type&m.VERT_LINE_TO&&l!==0&&(v.type=m.LINE_TO,v.x=v.relative?0:d),v.x!==void 0&&(v.x=v.x*s+$*l+(b?0:f)),v.y!==void 0&&(v.y=T*u+v.y*h+(b?0:c)),v.x1!==void 0&&(v.x1=v.x1*s+v.y1*l+(b?0:f)),v.y1!==void 0&&(v.y1=y*u+v.y1*h+(b?0:c)),v.x2!==void 0&&(v.x2=v.x2*s+v.y2*l+(b?0:f)),v.y2!==void 0&&(v.y2=x*u+v.y2*h+(b?0:c));var O=s*h-u*l;if(v.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if(O===0)delete v.rX,delete v.rY,delete v.xRot,delete v.lArcFlag,delete v.sweepFlag,v.type=m.LINE_TO;else{var C=v.xRot*Math.PI/180,I=Math.sin(C),_=Math.cos(C),j=1/E(v.rX),P=1/E(v.rY),X=E(_)*j+E(I)*P,W=2*I*_*(j-P),G=E(I)*j+E(_)*P,q=X*h*h-W*u*h+G*u*u,H=W*(s*h+u*l)-2*(X*l*h+G*s*u),Q=X*l*l-W*s*l+G*s*s,R=(Math.atan2(H,q-Q)+Math.PI)%Math.PI/2,M=Math.sin(R),K=Math.cos(R);v.rX=Math.abs(O)/Math.sqrt(q*E(K)+H*M*K+Q*E(M)),v.rY=Math.abs(O)/Math.sqrt(q*E(M)-H*M*K+Q*E(K)),v.xRot=180*R/Math.PI}return v.sweepFlag!==void 0&&0>O&&(v.sweepFlag=+!v.sweepFlag),v})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),oe(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,f,c,v,d){if(isNaN(v)&&!(h.type&m.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&m.HORIZ_LINE_TO&&(h.type=m.LINE_TO,h.y=h.relative?0:c),l&&h.type&m.VERT_LINE_TO&&(h.type=m.LINE_TO,h.x=h.relative?0:f),s&&h.type&m.CLOSE_PATH&&(h.type=m.LINE_TO,h.x=h.relative?v-f:v,h.y=h.relative?d-c:d),h.type&m.ARC&&(h.rX===0||h.rY===0)&&(h.type=m.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),oe(s);var u=NaN,l=NaN,h=NaN,f=NaN;return i(function(c,v,d,g,p){var y=Math.abs,x=!1,b=0,T=0;if(c.type&m.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:v-u,T=isNaN(l)?0:d-l),c.type&(m.CURVE_TO|m.SMOOTH_CURVE_TO)?(u=c.relative?v+c.x2:c.x2,l=c.relative?d+c.y2:c.y2):(u=NaN,l=NaN),c.type&m.SMOOTH_QUAD_TO?(h=isNaN(h)?v:2*v-h,f=isNaN(f)?d:2*d-f):c.type&m.QUAD_TO?(h=c.relative?v+c.x1:c.x1,f=c.relative?d+c.y1:c.y2):(h=NaN,f=NaN),c.type&m.LINE_COMMANDS||c.type&m.ARC&&(c.rX===0||c.rY===0||!c.lArcFlag)||c.type&m.CURVE_TO||c.type&m.SMOOTH_CURVE_TO||c.type&m.QUAD_TO||c.type&m.SMOOTH_QUAD_TO){var $=c.x===void 0?0:c.relative?c.x:c.x-v,E=c.y===void 0?0:c.relative?c.y:c.y-d;b=isNaN(h)?c.x1===void 0?b:c.relative?c.x:c.x1-v:h-v,T=isNaN(f)?c.y1===void 0?T:c.relative?c.y:c.y1-d:f-d;var O=c.x2===void 0?0:c.relative?c.x:c.x2-v,C=c.y2===void 0?0:c.relative?c.y:c.y2-d;y($)<=s&&y(E)<=s&&y(b)<=s&&y(T)<=s&&y(O)<=s&&y(C)<=s&&(x=!0)}return c.type&m.CLOSE_PATH&&y(v-g)<=s&&y(d-p)<=s&&(x=!0),x?[]:c})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),oe(s,u,l);var h=Math.sin(s),f=Math.cos(s);return n(f,h,-h,f,u-u*f+l*h,l-u*h-l*f)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),oe(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),oe(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return oe(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return oe(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return m.ARC===s.type?function(h,f,c){var v,d,g,p;h.cX||Ua(h,f,c);for(var y=Math.min(h.phi1,h.phi2),x=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(x/90),T=new Array(b),$=f,E=c,O=0;O<b;O++){var C=fo(h.phi1,h.phi2,O/b),I=fo(h.phi1,h.phi2,(O+1)/b),_=I-C,j=4/3*Math.tan(_*ye/4),P=[Math.cos(C*ye)-j*Math.sin(C*ye),Math.sin(C*ye)+j*Math.cos(C*ye)],X=P[0],W=P[1],G=[Math.cos(I*ye),Math.sin(I*ye)],q=G[0],H=G[1],Q=[q+j*Math.sin(I*ye),H-j*Math.cos(I*ye)],R=Q[0],M=Q[1];T[O]={relative:h.relative,type:m.CURVE_TO};var K=function(ne,ge){var Se=mi([ne*h.rX,ge*h.rY],h.xRot),ze=Se[0],Mt=Se[1];return[h.cX+ze,h.cY+Mt]};v=K(X,W),T[O].x1=v[0],T[O].y1=v[1],d=K(R,M),T[O].x2=d[0],T[O].y2=d[1],g=K(q,H),T[O].x=g[0],T[O].y=g[1],h.relative&&(T[O].x1-=$,T[O].y1-=E,T[O].x2-=$,T[O].y2-=E,T[O].x-=$,T[O].y-=E),$=(p=[T[O].x,T[O].y])[0],E=p[1]}return T}(s,s.relative?0:u,s.relative?0:l):s})},a.ANNOTATE_ARCS=function(){return i(function(s,u,l){return s.relative&&(u=0,l=0),m.ARC===s.type&&Ua(s,u,l),s})},a.CLONE=o,a.CALCULATE_BOUNDS=function(){var s=function(c){var v={};for(var d in c)v[d]=c[d];return v},u=e(),l=r(),h=t(),f=i(function(c,v,d){var g=h(l(u(s(c))));function p(M){M>f.maxX&&(f.maxX=M),M<f.minX&&(f.minX=M)}function y(M){M>f.maxY&&(f.maxY=M),M<f.minY&&(f.minY=M)}if(g.type&m.DRAWING_COMMANDS&&(p(v),y(d)),g.type&m.HORIZ_LINE_TO&&p(g.x),g.type&m.VERT_LINE_TO&&y(g.y),g.type&m.LINE_TO&&(p(g.x),y(g.y)),g.type&m.CURVE_TO){p(g.x),y(g.y);for(var x=0,b=go(v,g.x1,g.x2,g.x);x<b.length;x++)0<(R=b[x])&&1>R&&p(po(v,g.x1,g.x2,g.x,R));for(var T=0,$=go(d,g.y1,g.y2,g.y);T<$.length;T++)0<(R=$[T])&&1>R&&y(po(d,g.y1,g.y2,g.y,R))}if(g.type&m.ARC){p(g.x),y(g.y),Ua(g,v,d);for(var E=g.xRot/180*Math.PI,O=Math.cos(E)*g.rX,C=Math.sin(E)*g.rX,I=-Math.sin(E)*g.rY,_=Math.cos(E)*g.rY,j=g.phi1<g.phi2?[g.phi1,g.phi2]:-180>g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],P=j[0],X=j[1],W=function(M){var K=M[0],ne=M[1],ge=180*Math.atan2(ne,K)/Math.PI;return ge<P?ge+360:ge},G=0,q=vo(I,-O,0).map(W);G<q.length;G++)(R=q[G])>P&&R<X&&p(co(g.cX,O,I,R));for(var H=0,Q=vo(_,-C,0).map(W);H<Q.length;H++){var R;(R=Q[H])>P&&R<X&&y(co(g.cY,C,_,R))}}return c});return f.minX=1/0,f.maxX=-1/0,f.minY=1/0,f.maxY=-1/0,f}})(U||(U={}));var se,vl=function(){function a(){}return a.prototype.round=function(e){return this.transform(U.ROUND(e))},a.prototype.toAbs=function(){return this.transform(U.TO_ABS())},a.prototype.toRel=function(){return this.transform(U.TO_REL())},a.prototype.normalizeHVZ=function(e,t,r){return this.transform(U.NORMALIZE_HVZ(e,t,r))},a.prototype.normalizeST=function(){return this.transform(U.NORMALIZE_ST())},a.prototype.qtToC=function(){return this.transform(U.QT_TO_C())},a.prototype.aToC=function(){return this.transform(U.A_TO_C())},a.prototype.sanitize=function(e){return this.transform(U.SANITIZE(e))},a.prototype.translate=function(e,t){return this.transform(U.TRANSLATE(e,t))},a.prototype.scale=function(e,t){return this.transform(U.SCALE(e,t))},a.prototype.rotate=function(e,t,r){return this.transform(U.ROTATE(e,t,r))},a.prototype.matrix=function(e,t,r,i,n,o){return this.transform(U.MATRIX(e,t,r,i,n,o))},a.prototype.skewX=function(e){return this.transform(U.SKEW_X(e))},a.prototype.skewY=function(e){return this.transform(U.SKEW_Y(e))},a.prototype.xSymmetry=function(e){return this.transform(U.X_AXIS_SYMMETRY(e))},a.prototype.ySymmetry=function(e){return this.transform(U.Y_AXIS_SYMMETRY(e))},a.prototype.annotateArcs=function(){return this.transform(U.ANNOTATE_ARCS())},a}(),Eb=function(a){return a===" "||a==="	"||a==="\r"||a===`
+`},yo=function(a){return 48<=a.charCodeAt(0)&&a.charCodeAt(0)<=57},$b=function(a){function e(){var t=a.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return hl(e,a),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var n=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[o],u=!(this.curCommandType!==m.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=yo(s)&&(this.curNumber==="0"&&s==="0"||u);if(!yo(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===m.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===wb[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Eb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=m.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=m.ARC,this.curCommandRelative=s==="a"}else r.push({type:m.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);n<o.length;n++){var s=o[n],u=t(s);Array.isArray(u)?i.push.apply(i,u):i.push(u)}return i}}})},e}(vl),m=function(a){function e(t){var r=a.call(this)||this;return r.commands=typeof t=="string"?e.parse(t):t,r}return hl(e,a),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=U.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var r=[],i=0,n=this.commands;i<n.length;i++){var o=t(n[i]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},e.encode=function(t){return Sb(t)},e.parse=function(t){var r=new $b,i=[];return r.parse(t,i),r.finish(i),i},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(vl),wb=((se={})[m.MOVE_TO]=2,se[m.LINE_TO]=2,se[m.HORIZ_LINE_TO]=1,se[m.VERT_LINE_TO]=1,se[m.CLOSE_PATH]=0,se[m.QUAD_TO]=4,se[m.SMOOTH_QUAD_TO]=2,se[m.CURVE_TO]=6,se[m.SMOOTH_CURVE_TO]=4,se[m.ARC]=7,se),Cb=Y,Ab=fe,Pb=br,Rb=Fu,mo=RegExp.prototype,Nb=function(a){var e=a.flags;return e===void 0&&!("flags"in mo)&&!Ab(a,"flags")&&Pb(mo,a)?Cb(Rb,a):e},Ib=Sr.PROPER,Mb=Ue,_b=J,bo=pe,Vb=k,Db=Nb,rn="toString",fl=RegExp.prototype,cl=fl[rn],kb=Vb(function(){return cl.call({source:"a",flags:"b"})!=="/a/b"}),Lb=Ib&&cl.name!==rn;(kb||Lb)&&Mb(fl,rn,function(){var e=_b(this),t=bo(e.source),r=bo(Db(e));return"/"+t+"/"+r},{unsafe:!0});function vr(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vr=function(e){return typeof e}:vr=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(a)}function Bb(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}var jb=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Fb=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Ub(a,e,t,r,i){if(typeof a=="string"&&(a=document.getElementById(a)),!a||vr(a)!=="object"||!("getContext"in a))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var n=a.getContext("2d");try{return n.getImageData(e,t,r,i)}catch(o){throw new Error("unable to access image data: "+o)}}function Gb(a,e,t,r,i,n){if(!(isNaN(n)||n<1)){n|=0;var o=Ub(a,e,t,r,i);o=zb(o,e,t,r,i,n),a.getContext("2d").putImageData(o,e,t)}}function zb(a,e,t,r,i,n){for(var o=a.data,s=2*n+1,u=r-1,l=i-1,h=n+1,f=h*(h+1)/2,c=new xo,v=c,d,g=1;g<s;g++)v=v.next=new xo,g===h&&(d=v);v.next=c;for(var p=null,y=null,x=0,b=0,T=jb[n],$=Fb[n],E=0;E<i;E++){v=c;for(var O=o[b],C=o[b+1],I=o[b+2],_=o[b+3],j=0;j<h;j++)v.r=O,v.g=C,v.b=I,v.a=_,v=v.next;for(var P=0,X=0,W=0,G=0,q=h*O,H=h*C,Q=h*I,R=h*_,M=f*O,K=f*C,ne=f*I,ge=f*_,Se=1;Se<h;Se++){var ze=b+((u<Se?u:Se)<<2),Mt=o[ze],sn=o[ze+1],on=o[ze+2],un=o[ze+3],_t=h-Se;M+=(v.r=Mt)*_t,K+=(v.g=sn)*_t,ne+=(v.b=on)*_t,ge+=(v.a=un)*_t,P+=Mt,X+=sn,W+=on,G+=un,v=v.next}p=c,y=d;for(var Lr=0;Lr<r;Lr++){var Br=ge*T>>>$;if(o[b+3]=Br,Br!==0){var jr=255/Br;o[b]=(M*T>>>$)*jr,o[b+1]=(K*T>>>$)*jr,o[b+2]=(ne*T>>>$)*jr}else o[b]=o[b+1]=o[b+2]=0;M-=q,K-=H,ne-=Q,ge-=R,q-=p.r,H-=p.g,Q-=p.b,R-=p.a;var Ae=Lr+n+1;Ae=x+(Ae<u?Ae:u)<<2,P+=p.r=o[Ae],X+=p.g=o[Ae+1],W+=p.b=o[Ae+2],G+=p.a=o[Ae+3],M+=P,K+=X,ne+=W,ge+=G,p=p.next;var Vt=y,ln=Vt.r,hn=Vt.g,vn=Vt.b,fn=Vt.a;q+=ln,H+=hn,Q+=vn,R+=fn,P-=ln,X-=hn,W-=vn,G-=fn,y=y.next,b+=4}x+=r}for(var He=0;He<r;He++){b=He<<2;var Pe=o[b],Re=o[b+1],Ne=o[b+2],te=o[b+3],Fr=h*Pe,Ur=h*Re,Gr=h*Ne,zr=h*te,Dt=f*Pe,kt=f*Re,Lt=f*Ne,Bt=f*te;v=c;for(var cn=0;cn<h;cn++)v.r=Pe,v.g=Re,v.b=Ne,v.a=te,v=v.next;for(var gn=r,Hr=0,Yr=0,Xr=0,Wr=0,jt=1;jt<=n;jt++){b=gn+He<<2;var Ft=h-jt;Dt+=(v.r=Pe=o[b])*Ft,kt+=(v.g=Re=o[b+1])*Ft,Lt+=(v.b=Ne=o[b+2])*Ft,Bt+=(v.a=te=o[b+3])*Ft,Wr+=Pe,Hr+=Re,Yr+=Ne,Xr+=te,v=v.next,jt<l&&(gn+=r)}b=He,p=c,y=d;for(var qr=0;qr<i;qr++){var re=b<<2;o[re+3]=te=Bt*T>>>$,te>0?(te=255/te,o[re]=(Dt*T>>>$)*te,o[re+1]=(kt*T>>>$)*te,o[re+2]=(Lt*T>>>$)*te):o[re]=o[re+1]=o[re+2]=0,Dt-=Fr,kt-=Ur,Lt-=Gr,Bt-=zr,Fr-=p.r,Ur-=p.g,Gr-=p.b,zr-=p.a,re=He+((re=qr+h)<l?re:l)*r<<2,Dt+=Wr+=p.r=o[re],kt+=Hr+=p.g=o[re+1],Lt+=Yr+=p.b=o[re+2],Bt+=Xr+=p.a=o[re+3],p=p.next,Fr+=Pe=y.r,Ur+=Re=y.g,Gr+=Ne=y.b,zr+=te=y.a,Wr-=Pe,Hr-=Re,Yr-=Ne,Xr-=te,y=y.next,b+=r}}return a}var xo=function a(){Bb(this,a),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Hb(){var{DOMParser:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return xe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Yb(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var i2=Object.freeze({__proto__:null,offscreen:Hb,node:Yb});function ht(a){return a.replace(/(?!\u3000)\s+/gm," ")}function Xb(a){return a.replace(/^[\n \t]+/,"")}function Wb(a){return a.replace(/[\n \t]+$/,"")}function ie(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var qb=/^[A-Z-]+$/;function Qb(a){return qb.test(a)?a.toLowerCase():a}function gl(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}function Kb(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var Zb=/(\[[^\]]+\])/g,Jb=/(#[^\s+>~.[:]+)/g,e1=/(\.[^\s+>~.[:]+)/g,t1=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,r1=/(:[\w-]+\([^)]*\))/gi,a1=/(:[^\s+>~.[:]+)/g,i1=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}function n1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,Zb),e[1]+=r,[t,r]=_e(t,Jb),e[0]+=r,[t,r]=_e(t,e1),e[1]+=r,[t,r]=_e(t,t1),e[2]+=r,[t,r]=_e(t,r1),e[1]+=r,[t,r]=_e(t,a1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,i1),e[2]+=r,e.join("")}var at=1e-8;function To(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}function bi(a,e){return(a[0]*e[0]+a[1]*e[1])/(To(a)*To(e))}function Oo(a,e){return(a[0]*e[1]<a[1]*e[0]?-1:1)*Math.acos(bi(a,e))}function So(a){return a*a*a}function Eo(a){return 3*a*a*(1-a)}function $o(a){return 3*a*(1-a)*(1-a)}function wo(a){return(1-a)*(1-a)*(1-a)}function Co(a){return a*a}function Ao(a){return 2*a*(1-a)}function Po(a){return(1-a)*(1-a)}class S{constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new S(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return ht(this.getString()).trim().split(e).map(i=>new S(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Kb(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?S.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n<r&&(t[n]===","&&i++,i!==3);n++);if(e.hasValue()&&this.isString()&&i!==3){var o=new pi(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new S(this.document,this.name,t)}}S.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class s1{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class D{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=ie(e);return new D(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=ie(e);return new D(r,i)}static parsePath(e){for(var t=ie(e),r=t.length,i=[],n=0;n<r;n+=2)i.push(new D(t[n],t[n+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,i=t*e[0]+r*e[2]+e[4],n=t*e[1]+r*e[3]+e[5];this.x=i,this.y=n}}class o1{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:r}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new D(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var dl=typeof window<"u"?window:null,pl=typeof fetch<"u"?fetch.bind(void 0):null;class _r{constructor(e){var{fetch:t=pl,window:r=dl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new s1,this.mouse=new o1(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:f,refY:c,clip:v=!1,clipX:d=0,clipY:g=0}=e,p=ht(i).replace(/^defer\s/,""),[y,x]=p.split(" "),b=y||"xMidYMid",T=x||"meet",$=n/o,E=s/u,O=Math.min($,E),C=Math.max($,E),I=o,_=u;T==="meet"&&(I*=O,_*=O),T==="slice"&&(I*=C,_*=C);var j=new S(t,"refX",f),P=new S(t,"refY",c),X=j.hasValue()&&P.hasValue();if(X&&r.translate(-O*j.getPixels("x"),-O*P.getPixels("y")),v){var W=O*d,G=O*g;r.beginPath(),r.moveTo(W,G),r.lineTo(n,G),r.lineTo(n,s),r.lineTo(W,s),r.closePath(),r.clip()}if(!X){var q=T==="meet"&&O===E,H=T==="slice"&&C===E,Q=T==="meet"&&O===$,R=T==="slice"&&C===$;b.startsWith("xMid")&&(q||H)&&r.translate(n/2-I/2,0),b.endsWith("YMid")&&(Q||R)&&r.translate(0,s/2-_/2),b.startsWith("xMax")&&(q||H)&&r.translate(n-I,0),b.endsWith("YMax")&&(Q||R)&&r.translate(0,s-_)}switch(!0){case b==="none":r.scale($,E);break;case T==="meet":r.scale(O,O);break;case T==="slice":r.scale(C,C);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:c,mouse:v}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,n,o,u,l,h,f),!!t){var g=Date.now(),p=g,y=0,x=()=>{g=Date.now(),y=g-p,y>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,f),v.runEvents())),this.intervalId=ja(x)};r||v.start(),this.intervalId=ja(x)}}stop(){this.intervalId&&(ja.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:f,isFirstRender:c}=this,v=f.canvas;h.clear(),v.width&&v.height?h.setCurrent(v.width,v.height):h.setCurrent(u,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(c||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(v.width=d.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),g.hasValue()&&(v.height=g.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var p=v.clientWidth||v.width,y=v.clientHeight||v.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),h.setCurrent(p,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var x=ie(e.getAttribute("viewBox").getString()),b=0,T=0;if(typeof i=="number"){var $=e.getStyle("width");$.hasValue()?b=$.getPixels("x")/i:isNaN(x[2])||(b=x[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?T=E.getPixels("y")/n:isNaN(x[3])||(T=x[3]/n)}b||(b=T),T||(T=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var O=e.getStyle("transform",!0,!0);O.setValue("".concat(O.getString()," scale(").concat(1/b,", ").concat(1/T,")"))}r||f.clearRect(0,0,p,y),e.render(f),c&&(this.isFirstRender=!1)}}_r.defaultWindow=dl;_r.defaultFetch=pl;var{defaultFetch:u1}=_r,l1=typeof DOMParser<"u"?DOMParser:null;class Ga{constructor(){var{fetch:e=u1,DOMParser:t=l1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class h1{constructor(e,t){this.type="translate",this.point=null,this.point=D.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class v1{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ie(t);this.angle=new S(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class f1{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=D.parseScale(t);(i.x===0||i.y===0)&&(i.x=at,i.y=at),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class yl{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ie(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],f=0,c=0,v=1,d=1/(n*(l*v-h*c)-o*(u*v-h*f)+s*(u*c-l*f)),g=t.getPixels("x"),p=r.getPixels("y");e.translate(g,p),e.transform(d*(l*v-h*c),d*(h*f-u*v),d*(s*c-o*v),d*(n*v-s*f),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-g,-p)}applyToPoint(e){e.applyTransform(this.matrix)}}class ml extends yl{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new S(e,"angle",t)}}class c1 extends ml{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class g1 extends ml{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function d1(a){return ht(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function p1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}class Le{constructor(e,t,r){this.document=e,this.transforms=[];var i=d1(t);i.forEach(n=>{if(n!=="none"){var[o,s]=p1(n),u=Le.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new Le(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length,i=r-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].applyToPoint(e)}}Le.transformTypes={translate:h1,rotate:v1,scale:f1,matrix:yl,skewX:c1,skewY:g1};class N{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=Qb(s.nodeName);this.attributes[u]=new S(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new S(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new S(this.document,e,"");return this.attributes[e]=i,i}return r||S.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return S.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new S(this.document,e,"");return this.styles[e]=u,u}return i||S.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Le.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof N?e:this.document.createElement(e);t.parent=this,N.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}N.ignoreChildTypes=["title"];class y1 extends N{constructor(e,t,r){super(e,t,r)}}function m1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function b1(a){return typeof process>"u"?a:a.trim().split(",").map(m1).join(",")}function x1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function T1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Z{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?Z.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=ht(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&Z.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&Z.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Z.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new Z(r,i,n,o,s,t)}toString(){return[x1(this.fontStyle),this.fontVariant,T1(this.fontWeight),this.fontSize,b1(this.fontFamily)].join(" ").trim()}}Z.styles="normal|italic|oblique|inherit";Z.variants="normal|small-caps|inherit";Z.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class ce{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,i,n)):this.addY(this.sumCubic(l,t,r,i,n)));return}var h=Math.pow(o,2)-4*u*s;if(!(h<0)){var f=(-o+Math.sqrt(h))/(2*s);0<f&&f<1&&(e?this.addX(this.sumCubic(f,t,r,i,n)):this.addY(this.sumCubic(f,t,r,i,n)));var c=(-o-Math.sqrt(h))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,i,n)):this.addY(this.sumCubic(c,t,r,i,n)))}}addBezierCurve(e,t,r,i,n,o,s,u){this.addPoint(e,t),this.addPoint(s,u),this.bezierCurveAdd(!0,e,r,n,s),this.bezierCurveAdd(!1,t,i,o,u)}addQuadraticCurve(e,t,r,i,n,o){var s=e+.6666666666666666*(r-e),u=t+2/3*(i-t),l=s+1/3*(n-e),h=u+1/3*(o-t);this.addBezierCurve(e,t,s,l,u,h,n,o)}isPointInBox(e,t){var{x1:r,y1:i,x2:n,y2:o}=this;return r<=e&&e<=n&&i<=t&&t<=o}}class w extends m{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new D(0,0),this.control=new D(0,0),this.current=new D(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new D(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==m.CURVE_TO&&e!==m.SMOOTH_CURVE_TO&&e!==m.QUAD_TO&&e!==m.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new D(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r]){for(var i=r+1;i<t;i++)if(e[i]){e[r]=e[i];break}}return e}}class Ge extends N{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new S(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var f=n.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(o.hasValue()){var c=new S(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=c}var v=this.getStyle("stroke-width");if(v.hasValue()){var d=v.getPixels();e.lineWidth=d||at}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),x.hasValue()&&x.getString()!=="none"){var T=ie(x.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var $=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=$:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=$:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=$)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var E=this.getStyle("font"),O=this.getStyle("font-style"),C=this.getStyle("font-variant"),I=this.getStyle("font-weight"),_=this.getStyle("font-size"),j=this.getStyle("font-family"),P=new Z(O.getString(),C.getString(),I.getString(),_.hasValue()?"".concat(_.getPixels(!0),"px"):"",j.getString(),Z.parse(E.getString(),e.font));O.setValue(P.fontStyle),C.setValue(P.fontVariant),I.setValue(P.fontWeight),_.setValue(P.fontSize),j.setValue(P.fontFamily),e.font=P.toString(),_.isPixels()&&(this.document.emSize=_.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class A extends Ge{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new ce;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case w.MOVE_TO:this.pathM(e,r);break;case w.LINE_TO:this.pathL(e,r);break;case w.HORIZ_LINE_TO:this.pathH(e,r);break;case w.VERT_LINE_TO:this.pathV(e,r);break;case w.CURVE_TO:this.pathC(e,r);break;case w.SMOOTH_CURVE_TO:this.pathS(e,r);break;case w.QUAD_TO:this.pathQ(e,r);break;case w.SMOOTH_QUAD_TO:this.pathT(e,r);break;case w.ARC:this.pathA(e,r);break;case w.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var f=o.getDefinition(),c=1;c<i;c++){var[v,d]=r[c];f.render(e,v,d)}if(s.isUrlDefinition()){var g=s.getDefinition(),[p,y]=r[i];g.render(e,p,y)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:i}=A.pathM(r),{x:n,y:o}=i;r.addMarker(i),t.addPoint(n,o),e&&e.moveTo(n,o)}static pathL(e){var{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathL(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:r}=e,i=new D((r.relative?t.x:0)+r.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathH(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:r}=e,i=new D(t.x,(r.relative?t.y:0)+r.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:r}=this,{current:i,point:n}=A.pathV(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,r=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathC(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=A.pathC(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:t}=e,r=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathS(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=A.pathS(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:t}=e,r=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathQ(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=A.pathQ(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathT(e){var{current:t}=e,r=e.getReflectedControlPoint();e.control=r;var i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathT(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=A.pathT(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathA(e){var{current:t,command:r}=e,{rX:i,rY:n,xRot:o,lArcFlag:s,sweepFlag:u}=r,l=o*(Math.PI/180),h=e.getAsCurrentPoint(),f=new D(Math.cos(l)*(t.x-h.x)/2+Math.sin(l)*(t.y-h.y)/2,-Math.sin(l)*(t.x-h.x)/2+Math.cos(l)*(t.y-h.y)/2),c=Math.pow(f.x,2)/Math.pow(i,2)+Math.pow(f.y,2)/Math.pow(n,2);c>1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var v=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)));isNaN(v)&&(v=0);var d=new D(v*i*f.y/n,v*-n*f.x/i),g=new D((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=Oo([1,0],[(f.x-d.x)/i,(f.y-d.y)/n]),y=[(f.x-d.x)/i,(f.y-d.y)/n],x=[(-f.x-d.x)/i,(-f.y-d.y)/n],b=Oo(y,x);return bi(y,x)<=-1&&(b=Math.PI),bi(y,x)>=1&&(b=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:g,a1:p,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:f}=A.pathA(r),c=1-s?1:-1,v=h+c*(f/2),d=new D(l.x+n*Math.cos(v),l.y+o*Math.sin(v));if(r.addMarkerAngle(d,v-c*Math.PI/2),r.addMarkerAngle(i,v-c*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(f)){var g=n>o?n:o,p=n>o?1:n/o,y=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(p,y),e.arc(0,0,g,h,h+f,!!(1-s)),e.scale(1/p,1/y),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){A.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class bl extends A{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Ce extends Ge{constructor(e,t,r){super(e,t,new.target===Ce?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=Z.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new ce(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(l="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(l="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof bl?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=ht(t.textContent||"");return i===0&&(o=Xb(o)),i===n&&(o=Wb(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=Z.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,f=n.isRTL?i.split("").reverse().join(""):i,c=ie(r.getAttribute("dx").getString()),v=f.length,d=0;d<v;d++){var g=this.getGlyph(n,f,d);e.translate(this.x,this.y),e.scale(h,-h);var p=e.lineWidth;e.lineWidth=e.lineWidth*o/u,l==="italic"&&e.transform(1,0,.4,1,0,0),g.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=p,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=u*(g.horizAdvX||n.horizAdvX)/o,typeof c[d]<"u"&&!isNaN(c[d])&&(this.x+=c[d])}return}var{x:y,y:x}=this;e.fillStyle&&e.fillText(i,y,x),e.strokeStyle&&e.strokeText(i,y,x)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),f=!!h&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(e);return f&&(t.x-=c),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,f||(t.x+=c),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+c),t.maxX=Math.max(t.maxX,n.x,n.x+c),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=ie(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h<u;h++){var f=this.getGlyph(i,o,h);l+=(f.horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,typeof s[h]<"u"&&!isNaN(s[h])&&(l+=s[h])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:c}=e.measureText(t);return this.clearContext(e),e.restore(),c}getInheritedAttribute(e){for(var t=this;t instanceof Ce&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}class Vr extends Ce{constructor(e,t,r){super(e,t,new.target===Vr?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class O1 extends Vr{constructor(){super(...arguments),this.type="textNode"}}class It extends Ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new S(r,"fontSize",Z.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),c=this.getAttribute("viewBox"),v=c.hasValue()?ie(c.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,p=0,y=0,x=0;v&&(g=v[0],p=v[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=g,x=p,g=0,p=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(u=v[2],l=v[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:g,minY:p,refX:h.getValue(),refY:f.getValue(),clip:d,clipX:y,clipY:x}),v&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var f=this.getStyle("width"),c=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),c.hasValue()&&c.setValue("".concat(t,"px"))}}}class xl extends A{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new ce(t,r,t+i,r+n)}getMarkers(){return null}}class S1 extends A{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new ce(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class E1 extends A{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new ce(n-r,o-i,n+r,o+i)}getMarkers(){return null}}class $1 extends A{constructor(){super(...arguments),this.type="line"}getPoints(){return[new D(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new D(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new ce(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class Tl extends A{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=D.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new ce(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class w1 extends Tl{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class C1 extends N{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new It(this.document,null);o.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new S(this.document,"width","".concat(i,"px")),o.attributes.height=new S(this.document,"height","".concat(n,"px")),o.attributes.transform=new S(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new S(this.document,"x",f*s.width),o.attributes.y=new S(this.document,"y",c*s.height),o.render(u),u.restore();var v=e.createPattern(s,"repeat");return v}}class A1 extends N{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new It(this.document,null);u.type=this.type,u.attributes.viewBox=new S(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new S(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new S(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new S(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new S(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new S(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new S(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new S(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}class P1 extends N{constructor(){super(...arguments),this.type="defs"}render(){}}class an extends Ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new ce;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class Ol extends N{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(p=>{o.addColorStop(p.offset,this.addParentOpacity(r,p.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,f=new xl(s,null);f.attributes.x=new S(s,"x",-u/3),f.attributes.y=new S(s,"y",-u/3),f.attributes.width=new S(s,"width",u),f.attributes.height=new S(s,"height",u);var c=new an(s,null);c.attributes.transform=new S(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[f];var v=new It(s,null);v.attributes.x=new S(s,"x",0),v.attributes.y=new S(s,"y",0),v.attributes.width=new S(s,"width",h.width),v.attributes.height=new S(s,"height",h.height),v.children=[c];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=o,v.render(g),g.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new S(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class R1 extends Ol{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}class N1 extends Ol{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}class I1 extends N{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}class nn extends N{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new S(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),n=!0}return n}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=r.progress*(t.getValue().length-1),n=Math.floor(i),o=Math.ceil(i);r.from=new S(e,"from",parseFloat(t.getValue()[n])),r.to=new S(e,"to",parseFloat(t.getValue()[o])),r.progress=(i-n)/(o-n)}else r.from=this.from,r.to=this.to;return r}}class M1 extends nn{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=new pi(t.getColor()),n=new pi(r.getColor());if(i.ok&&n.ok){var o=i.r+(n.r-i.r)*e,s=i.g+(n.g-i.g)*e,u=i.b+(n.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class _1 extends nn{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=ie(t.getString()),n=ie(r.getString()),o=i.map((s,u)=>{var l=n[u];return s+(l-s)*e}).join(" ");return o}}class V1 extends N{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class D1 extends N{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class k1 extends A{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class L1 extends Ce{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class B1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new S(t,"fontSize",Z.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new ce(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new an(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function Ro(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function ar(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Ro(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}class j1 extends Ce{constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(r=>{var{type:i,points:n}=r;switch(i){case w.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case w.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case w.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case w.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case w.ARC:{var[o,s,u,l,h,f,c,v]=n,d=u>l?u:l,g=u>l?1:u/l,p=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(c),e.scale(g,p),e.arc(0,0,d,h,h+f,!!(1-v)),e.scale(1/g,1/p),e.rotate(-c),e.translate(-o,-s));break}case w.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:f}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,f=this.measureText(e,u);u===" "&&t==="justify"&&r<i&&(f+=(i-r)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var c=this.textHeight/20,v=this.getEquidistantPointOnPath(h,c,0),d=this.getEquidistantPointOnPath(h+f,c,0),g={p0:v,p1:d},p=v&&d?Math.atan2(d.y-v.y,d.x-v.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,x=Math.cos(-p)*s;g.p0=ar(ar({},v),{},{x:v.x+y,y:v.y+x}),g.p1=ar(ar({},d),{},{x:d.x+y,y:d.y+x})}return h+=f,{offset:h,segment:g,rotation:p}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var f=[],c=t.length;this.letterSpacingCache=f;for(var v=0;v<c;v++)f.push(typeof n[v]<"u"?n[v]:h);var d=f.reduce((T,$,E)=>E===0?0:T+$||0,0),g=this.measureText(e),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*y,b=0;(s==="middle"||s==="center")&&(b=-p/2),(s==="end"||s==="right")&&(b=-p),b+=x,r.forEach((T,$)=>{var{offset:E,segment:O,rotation:C}=this.findSegmentToFitChar(e,s,p,y,i,b,o,T,$);b=E,!(!O.p0||!O.p1)&&this.glyphInfo.push({text:r[$],p0:O.p0,p1:O.p1,rotation:C})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case w.MOVE_TO:this.pathM(r,l);break;case w.LINE_TO:u=this.pathL(r,l);break;case w.HORIZ_LINE_TO:u=this.pathH(r,l);break;case w.VERT_LINE_TO:u=this.pathV(r,l);break;case w.CURVE_TO:this.pathC(r,l);break;case w.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case w.QUAD_TO:this.pathQ(r,l);break;case w.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case w.ARC:l=this.pathA(r);break;case w.CLOSE_PATH:A.pathZ(r);break}s.type!==w.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=A.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=A.pathL(e).point;return t.push(r,i),w.LINE_TO}pathH(e,t){var{x:r,y:i}=A.pathH(e).point;return t.push(r,i),w.LINE_TO}pathV(e,t){var{x:r,y:i}=A.pathV(e).point;return t.push(r,i),w.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),w.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=A.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=A.pathT(e);return t.push(r.x,r.y,i.x,i.y),w.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=A.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case w.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case w.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.ARC:{n=0;var l=i[4],h=i[5],f=i[4]+h,c=Math.PI/180;if(Math.abs(l-f)<c&&(c=Math.abs(l-f)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),h<0)for(u=l-c;u>f;u-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+c;u<f;u+=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),n}}return 0}getPointOnLine(e,t,r,i,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+at),l=Math.sqrt(e*e/(1+u*u));i<t&&(l*=-1);var h=u*l,f=null;if(i===t)f={x:o,y:s+h};else if((s-r)/(o-t+at)===u)f={x:o+l,y:s+h};else{var c=0,v=0,d=this.getLineLength(t,r,i,n);if(d<at)return null;var g=(o-t)*(i-t)+(s-r)*(n-r);g/=d*d,c=t+g*(i-t),v=r+g*(n-r);var p=this.getLineLength(o,s,c,v),y=Math.sqrt(e*e-p*p);l=Math.sqrt(y*y/(1+u*u)),i<t&&(l*=-1),h=u*l,f={x:c+l,y:v+h}}return f}getPointOnPath(e){var t=this.getPathLength(),r=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){r+=o.pathLength;continue}var s=e-r,u=0;switch(o.type){case w.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case w.ARC:{var l=o.points[4],h=o.points[5],f=o.points[4]+h;if(u=l+s/o.pathLength*h,h<0&&u<f||h>=0&&u>f)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case w.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case w.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*So(e)+o*Eo(e)+i*$o(e)+t*wo(e),f=l*So(e)+s*Eo(e)+n*$o(e)+r*wo(e);return{x:h,y:f}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Co(e)+i*Ao(e)+t*Po(e),l=s*Co(e)+n*Ao(e)+r*Po(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var F1=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class U1 extends Ge{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return xe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return xe(function*(){var r=F1.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ce(e,t,e+r,t+i)}}class G1 extends Ge{constructor(){super(...arguments),this.type="symbol"}render(e){}}class z1{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return xe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class Sl extends N{constructor(e,t,r){super(e,t,r),this.type="style";var i=ht(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(f=>{var c=f.trim();if(c){var v=e.styles[c]||{};if(h.forEach(p=>{var y=p.indexOf(":"),x=p.substr(0,y).trim(),b=p.substr(y+1,p.length-y).trim();x&&b&&(v[x]=new S(e,x,b))}),e.styles[c]=v,e.stylesSpecificity[c]=n1(c),c==="@font-face"){var d=v["font-family"].getString().replace(/"|'/g,""),g=v.src.getString().split(",");g.forEach(p=>{if(p.indexOf('format("svg")')>0){var y=gl(p);y&&new z1(e).load(d,y)}})}}})}})}}Sl.parseExternalUrl=gl;class H1 extends Ge{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new It(t,null),i.attributes.viewBox=new S(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new S(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new S(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new S(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new S(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new S(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Le.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function ir(a,e,t,r,i,n){return a[t*r*4+e*4+n]}function nr(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}function F(a,e,t){var r=a[e];return r*t}function me(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}class El extends N{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=ie(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[me(o,.213,.787,-.213),me(o,.715,-.715,-.715),me(o,.072,-.072,.928),0,0,me(o,.213,-.213,.143),me(o,.715,.285,.14),me(o,.072,-.072,-.283),0,0,me(o,.213,-.213,-.787),me(o,.715,-.715,.715),me(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l<n;l++)for(var h=0;h<i;h++){var f=ir(u.data,h,l,i,n,0),c=ir(u.data,h,l,i,n,1),v=ir(u.data,h,l,i,n,2),d=ir(u.data,h,l,i,n,3),g=F(s,0,f)+F(s,1,c)+F(s,2,v)+F(s,3,d)+F(s,4,1),p=F(s,5,f)+F(s,6,c)+F(s,7,v)+F(s,8,d)+F(s,9,1),y=F(s,10,f)+F(s,11,c)+F(s,12,v)+F(s,13,d)+F(s,14,1),x=F(s,15,f)+F(s,16,c)+F(s,17,v)+F(s,18,d)+F(s,19,1);o&&(g=0,p=0,y=0,x*=d/255),nr(u.data,h,l,i,n,0,g),nr(u.data,h,l,i,n,1,p),nr(u.data,h,l,i,n,2,y),nr(u.data,h,l,i,n,3,x)}e.clearRect(0,0,i,n),e.putImageData(u,0,0)}}class Dr extends N{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new ce;this.children.forEach(d=>{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,Dr.ignoreStyles),h=r.createCanvas(i+o,n+s),f=h.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new El(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,n+s);var c=r.createCanvas(i+o,n+s),v=c.getContext("2d");r.screen.setDefaults(v),t.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=f.createPattern(h,"no-repeat"),v.fillRect(0,0,i+o,n+s),e.fillStyle=v.createPattern(c,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}Dr.ignoreStyles=["mask","transform","clip-path"];var No=()=>{};class Y1 extends N{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=No,r.closePath=No),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Le.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}class kr extends N{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(y=>{var x=y.extraFilterDistance||0;o=Math.max(o,x),s=Math.max(s,x)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,f=l+2*s;if(!(h<1||f<1)){var c=Math.floor(n.x),v=Math.floor(n.y),d=this.removeStyles(t,kr.ignoreStyles),g=r.createCanvas(h,f),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+o,-v+s),t.render(p),i.forEach(y=>{typeof y.apply=="function"&&y.apply(p,0,0,h,f)}),e.drawImage(g,0,0,h,f,c-o,v-s,h,f),this.restoreStyles(t,d)}}}render(e){}}kr.ignoreStyles=["filter","transform","clip-path"];class X1 extends N{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}class W1 extends N{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}class q1 extends N{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}class Q1 extends N{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),Gb(l,t,r,i,n,s),u&&u.removeChild(l)}}class K1 extends N{constructor(){super(...arguments),this.type="title"}}class Z1 extends N{constructor(){super(...arguments),this.type="desc"}}var J1={svg:It,rect:xl,circle:S1,ellipse:E1,line:$1,polyline:Tl,polygon:w1,path:A,pattern:C1,marker:A1,defs:P1,linearGradient:R1,radialGradient:N1,stop:I1,animate:nn,animateColor:M1,animateTransform:_1,font:V1,"font-face":D1,"missing-glyph":k1,glyph:bl,text:Ce,tspan:Vr,tref:L1,a:B1,textPath:j1,image:U1,g:an,symbol:G1,style:Sl,use:H1,mask:Dr,clipPath:Y1,filter:kr,feDropShadow:X1,feMorphology:W1,feComposite:q1,feColorMatrix:El,feGaussianBlur:Q1,title:K1,desc:Z1};function Io(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function e2(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Io(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function t2(a,e){var t=document.createElement("canvas");return t.width=a,t.height=e,t}function r2(a){return xi.apply(this,arguments)}function xi(){return xi=xe(function*(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),xi.apply(this,arguments)}class $e{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=$e.createCanvas,createImage:n=$e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=$e.elementTypes[t];return typeof r<"u"?new r(this,e):new y1(this,e)}createTextNode(e){return new O1(this,e)}setViewBox(e){this.screen.setViewBox(e2({document:this},e))}}$e.createCanvas=t2;$e.createImage=r2;$e.elementTypes=J1;function Mo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function Ve(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Mo(Object(t),!0).forEach(function(r){tn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Mo(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}class bt{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ga(r),this.screen=new _r(e,r),this.options=r;var i=new $e(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return xe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new Ga(i),o=yield n.parse(t);return new bt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Ga(r),n=i.parseFromString(t);return new bt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bt.from(e,t,Ve(Ve({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bt.fromString(e,t,Ve(Ve({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Ve({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,Ve(Ve({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}export{B1 as AElement,M1 as AnimateColorElement,nn as AnimateElement,_1 as AnimateTransformElement,ce as BoundingBox,So as CB1,Eo as CB2,$o as CB3,wo as CB4,bt as Canvg,S1 as CircleElement,Y1 as ClipPathElement,P1 as DefsElement,Z1 as DescElement,$e as Document,N as Element,E1 as EllipseElement,El as FeColorMatrixElement,q1 as FeCompositeElement,X1 as FeDropShadowElement,Q1 as FeGaussianBlurElement,W1 as FeMorphologyElement,kr as FilterElement,Z as Font,V1 as FontElement,D1 as FontFaceElement,an as GElement,bl as GlyphElement,Ol as GradientElement,U1 as ImageElement,$1 as LineElement,R1 as LinearGradientElement,A1 as MarkerElement,Dr as MaskElement,yl as Matrix,k1 as MissingGlyphElement,o1 as Mouse,at as PSEUDO_ZERO,Ga as Parser,A as PathElement,w as PathParser,C1 as PatternElement,D as Point,w1 as PolygonElement,Tl as PolylineElement,S as Property,Co as QB1,Ao as QB2,Po as QB3,N1 as RadialGradientElement,xl as RectElement,Ge as RenderedElement,v1 as Rotate,It as SVGElement,z1 as SVGFontLoader,f1 as Scale,_r as Screen,ml as Skew,c1 as SkewX,g1 as SkewY,I1 as StopElement,Sl as StyleElement,G1 as SymbolElement,L1 as TRefElement,Vr as TSpanElement,Ce as TextElement,j1 as TextPathElement,K1 as TitleElement,Le as Transform,h1 as Translate,y1 as UnknownElement,H1 as UseElement,s1 as ViewPort,ht as compressSpaces,bt as default,n1 as getSelectorSpecificity,Qb as normalizeAttributeName,Kb as normalizeColor,gl as parseExternalUrl,i2 as presets,ie as toNumbers,Xb as trimLeft,Wb as trimRight,To as vectorMagnitude,Oo as vectorsAngle,bi as vectorsRatio};
Index: imaps-frontend/dist/assets/purify.es-C_uT9hQ1.js
===================================================================
--- imaps-frontend/dist/assets/purify.es-C_uT9hQ1.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/assets/purify.es-C_uT9hQ1.js	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,3 @@
+/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function I(a){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},I(a)}function Fe(a,n){return Fe=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},Fe(a,n)}function zt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function le(a,n,o){return zt()?le=Reflect.construct:le=function(c,g,y){var D=[null];D.push.apply(D,g);var x=Function.bind.apply(c,D),j=new x;return y&&Fe(j,y.prototype),j},le.apply(null,arguments)}function M(a){return Gt(a)||Wt(a)||Bt(a)||$t()}function Gt(a){if(Array.isArray(a))return Ue(a)}function Wt(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Bt(a,n){if(a){if(typeof a=="string")return Ue(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ue(a,n)}}function Ue(a,n){(n==null||n>a.length)&&(n=a.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=a[o];return s}function $t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jt=Object.hasOwnProperty,ut=Object.setPrototypeOf,Yt=Object.isFrozen,Xt=Object.getPrototypeOf,Vt=Object.getOwnPropertyDescriptor,E=Object.freeze,b=Object.seal,qt=Object.create,vt=typeof Reflect<"u"&&Reflect,ue=vt.apply,He=vt.construct;ue||(ue=function(n,o,s){return n.apply(o,s)});E||(E=function(n){return n});b||(b=function(n){return n});He||(He=function(n,o){return le(n,M(o))});var Kt=O(Array.prototype.forEach),ft=O(Array.prototype.pop),q=O(Array.prototype.push),se=O(String.prototype.toLowerCase),we=O(String.prototype.toString),ct=O(String.prototype.match),L=O(String.prototype.replace),Zt=O(String.prototype.indexOf),Jt=O(String.prototype.trim),_=O(RegExp.prototype.test),Ce=Qt(TypeError);function O(a){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return ue(a,n,s)}}function Qt(a){return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return He(a,o)}}function l(a,n,o){var s;o=(s=o)!==null&&s!==void 0?s:se,ut&&ut(a,null);for(var c=n.length;c--;){var g=n[c];if(typeof g=="string"){var y=o(g);y!==g&&(Yt(n)||(n[c]=y),g=y)}a[g]=!0}return a}function U(a){var n=qt(null),o;for(o in a)ue(jt,a,[o])===!0&&(n[o]=a[o]);return n}function ie(a,n){for(;a!==null;){var o=Vt(a,n);if(o){if(o.get)return O(o.get);if(typeof o.value=="function")return O(o.value)}a=Xt(a)}function s(c){return console.warn("fallback value for",c),null}return s}var mt=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ie=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xe=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),er=E(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ke=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),tr=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pt=E(["#text"]),dt=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Pe=E(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tt=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),oe=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rr=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ar=b(/<%[\w\W]*|[\w\W]*%>/gm),nr=b(/\${[\w\W]*}/gm),ir=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),or=b(/^aria-[\-\w]+$/),lr=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sr=b(/^(?:\w+script|data):/i),ur=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fr=b(/^html$/i),cr=b(/^[a-z][.\w]*(-[.\w]+)+$/i),mr=function(){return typeof window>"u"?null:window},pr=function(n,o){if(I(n)!=="object"||typeof n.createPolicy!="function")return null;var s=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(s=o.currentScript.getAttribute(c));var g="dompurify"+(s?"#"+s:"");try{return n.createPolicy(g,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}};function _t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr(),n=function(e){return _t(e)};if(n.version="2.5.8",n.removed=[],!a||!a.document||a.document.nodeType!==9)return n.isSupported=!1,n;var o=a.document,s=a.document,c=a.DocumentFragment,g=a.HTMLTemplateElement,y=a.Node,D=a.Element,x=a.NodeFilter,j=a.NamedNodeMap,ht=j===void 0?a.NamedNodeMap||a.MozNamedAttrMap:j,Et=a.HTMLFormElement,At=a.DOMParser,K=a.trustedTypes,Z=D.prototype,yt=ie(Z,"cloneNode"),gt=ie(Z,"nextSibling"),St=ie(Z,"childNodes"),fe=ie(Z,"parentNode");if(typeof g=="function"){var ce=s.createElement("template");ce.content&&ce.content.ownerDocument&&(s=ce.content.ownerDocument)}var R=pr(K,o),me=R?R.createHTML(""):"",J=s,pe=J.implementation,bt=J.createNodeIterator,Ot=J.createDocumentFragment,Rt=J.getElementsByTagName,Lt=o.importNode,ze={};try{ze=U(s).documentMode?s.documentMode:{}}catch{}var N={};n.isSupported=typeof fe=="function"&&pe&&pe.createHTMLDocument!==void 0&&ze!==9;var de=rr,Te=ar,ve=nr,Mt=ir,Dt=or,Nt=sr,Ge=ur,wt=cr,_e=lr,p=null,We=l({},[].concat(M(mt),M(Ie),M(xe),M(ke),M(pt))),d=null,Be=l({},[].concat(M(dt),M(Pe),M(Tt),M(oe))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,he=null,$e=!0,Ee=!0,je=!1,Ye=!0,H=!1,Ae=!0,k=!1,ye=!1,ge=!1,z=!1,Q=!1,ee=!1,Xe=!0,Ve=!1,Ct="user-content-",Se=!0,X=!1,G={},W=null,qe=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,Ze=l({},["audio","video","img","source","image","track"]),be=null,Je=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",B=w,Oe=!1,Re=null,It=l({},[te,re,w],we),P,xt=["application/xhtml+xml","text/html"],kt="text/html",T,$=null,Pt=s.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},Le=function(e){$&&$===e||((!e||I(e)!=="object")&&(e={}),e=U(e),P=xt.indexOf(e.PARSER_MEDIA_TYPE)===-1?P=kt:P=e.PARSER_MEDIA_TYPE,T=P==="application/xhtml+xml"?we:se,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,T):We,d="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,T):Be,Re="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,we):It,be="ADD_URI_SAFE_ATTR"in e?l(U(Je),e.ADD_URI_SAFE_ATTR,T):Je,Ke="ADD_DATA_URI_TAGS"in e?l(U(Ze),e.ADD_DATA_URI_TAGS,T):Ze,W="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,T):qe,Y="FORBID_TAGS"in e?l({},e.FORBID_TAGS,T):{},he="FORBID_ATTR"in e?l({},e.FORBID_ATTR,T):{},G="USE_PROFILES"in e?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=e.SAFE_FOR_TEMPLATES||!1,Ae=e.SAFE_FOR_XML!==!1,k=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,ge=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,Ve=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,X=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,B=e.NAMESPACE||w,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(Ee=!1),Q&&(z=!0),G&&(p=l({},M(pt)),d=[],G.html===!0&&(l(p,mt),l(d,dt)),G.svg===!0&&(l(p,Ie),l(d,Pe),l(d,oe)),G.svgFilters===!0&&(l(p,xe),l(d,Pe),l(d,oe)),G.mathMl===!0&&(l(p,ke),l(d,Tt),l(d,oe))),e.ADD_TAGS&&(p===We&&(p=U(p)),l(p,e.ADD_TAGS,T)),e.ADD_ATTR&&(d===Be&&(d=U(d)),l(d,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&l(be,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(W===qe&&(W=U(W)),l(W,e.FORBID_CONTENTS,T)),Se&&(p["#text"]=!0),k&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete Y.tbody),E&&E(e),$=e)},et=l({},["mi","mo","mn","ms","mtext"]),tt=l({},["annotation-xml"]),Ft=l({},["title","style","font","a","script"]),ae=l({},Ie);l(ae,xe),l(ae,er);var Me=l({},ke);l(Me,tr);var Ut=function(e){var t=fe(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});var r=se(e.tagName),u=se(t.tagName);return Re[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===w?r==="svg":t.namespaceURI===te?r==="svg"&&(u==="annotation-xml"||et[u]):!!ae[r]:e.namespaceURI===te?t.namespaceURI===w?r==="math":t.namespaceURI===re?r==="math"&&tt[u]:!!Me[r]:e.namespaceURI===w?t.namespaceURI===re&&!tt[u]||t.namespaceURI===te&&!et[u]?!1:!Me[r]&&(Ft[r]||!ae[r]):!!(P==="application/xhtml+xml"&&Re[e.namespaceURI]):!1},S=function(e){q(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=me}catch{e.remove()}}},ne=function(e,t){try{q(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!d[e])if(z||Q)try{S(t)}catch{}else try{t.setAttribute(e,"")}catch{}},rt=function(e){var t,r;if(ge)e="<remove></remove>"+e;else{var u=ct(e,/^[\r\n\t ]+/);r=u&&u[0]}P==="application/xhtml+xml"&&B===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var A=R?R.createHTML(e):e;if(B===w)try{t=new At().parseFromString(A,P)}catch{}if(!t||!t.documentElement){t=pe.createDocument(B,"template",null);try{t.documentElement.innerHTML=Oe?me:A}catch{}}var h=t.body||t.documentElement;return e&&r&&h.insertBefore(s.createTextNode(r),h.childNodes[0]||null),B===w?Rt.call(t,k?"html":"body")[0]:k?t.documentElement:h},at=function(e){return bt.call(e.ownerDocument||e,e,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT|x.SHOW_PROCESSING_INSTRUCTION|x.SHOW_CDATA_SECTION,null,!1)},De=function(e){return e instanceof Et&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof ht)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},V=function(e){return I(y)==="object"?e instanceof y:e&&I(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},C=function(e,t,r){N[e]&&Kt(N[e],function(u){u.call(n,t,r,$)})},nt=function(e){var t;if(C("beforeSanitizeElements",e,null),De(e)||_(/[\u0080-\uFFFF]/,e.nodeName))return S(e),!0;var r=T(e.nodeName);if(C("uponSanitizeElement",e,{tagName:r,allowedTags:p}),e.hasChildNodes()&&!V(e.firstElementChild)&&(!V(e.content)||!V(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||r==="select"&&_(/<template/i,e.innerHTML)||e.nodeType===7||Ae&&e.nodeType===8&&_(/<[/\w]/g,e.data))return S(e),!0;if(!p[r]||Y[r]){if(!Y[r]&&ot(r)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r)))return!1;if(Se&&!W[r]){var u=fe(e)||e.parentNode,A=St(e)||e.childNodes;if(A&&u)for(var h=A.length,v=h-1;v>=0;--v){var F=yt(A[v],!0);F.__removalCount=(e.__removalCount||0)+1,u.insertBefore(F,gt(e))}}return S(e),!0}return e instanceof D&&!Ut(e)||(r==="noscript"||r==="noembed"||r==="noframes")&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(S(e),!0):(H&&e.nodeType===3&&(t=e.textContent,t=L(t,de," "),t=L(t,Te," "),t=L(t,ve," "),e.textContent!==t&&(q(n.removed,{element:e.cloneNode()}),e.textContent=t)),C("afterSanitizeElements",e,null),!1)},it=function(e,t,r){if(Xe&&(t==="id"||t==="name")&&(r in s||r in Pt))return!1;if(!(Ee&&!he[t]&&_(Mt,t))){if(!($e&&_(Dt,t))){if(!d[t]||he[t]){if(!(ot(e)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&_(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r))))return!1}else if(!be[t]){if(!_(_e,L(r,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Zt(r,"data:")===0&&Ke[e])){if(!(je&&!_(Nt,L(r,Ge,"")))){if(r)return!1}}}}}}return!0},ot=function(e){return e!=="annotation-xml"&&ct(e,wt)},lt=function(e){var t,r,u,A;C("beforeSanitizeAttributes",e,null);var h=e.attributes;if(!(!h||De(e))){var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(A=h.length;A--;){t=h[A];var F=t,m=F.name,Ne=F.namespaceURI;if(r=m==="value"?t.value:Jt(t.value),u=T(m),v.attrName=u,v.attrValue=r,v.keepAttr=!0,v.forceKeepAttr=void 0,C("uponSanitizeAttribute",e,v),r=v.attrValue,!v.forceKeepAttr&&(ne(m,e),!!v.keepAttr)){if(!Ye&&_(/\/>/i,r)){ne(m,e);continue}H&&(r=L(r,de," "),r=L(r,Te," "),r=L(r,ve," "));var st=T(e.nodeName);if(it(st,u,r)){if(Ve&&(u==="id"||u==="name")&&(ne(m,e),r=Ct+r),Ae&&_(/((--!?|])>)|<\/(style|title)/i,r)){ne(m,e);continue}if(R&&I(K)==="object"&&typeof K.getAttributeType=="function"&&!Ne)switch(K.getAttributeType(st,u)){case"TrustedHTML":{r=R.createHTML(r);break}case"TrustedScriptURL":{r=R.createScriptURL(r);break}}try{Ne?e.setAttributeNS(Ne,m,r):e.setAttribute(m,r),De(e)?S(e):ft(n.removed)}catch{}}}}C("afterSanitizeAttributes",e,null)}},Ht=function i(e){var t,r=at(e);for(C("beforeSanitizeShadowDOM",e,null);t=r.nextNode();)C("uponSanitizeShadowNode",t,null),nt(t),lt(t),t.content instanceof c&&i(t.content);C("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,r,u,A,h;if(Oe=!i,Oe&&(i="<!-->"),typeof i!="string"&&!V(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Ce("dirty is not a string, aborting")}else throw Ce("toString is not a function");if(!n.isSupported){if(I(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof i=="string")return a.toStaticHTML(i);if(V(i))return a.toStaticHTML(i.outerHTML)}return i}if(ye||Le(e),n.removed=[],typeof i=="string"&&(X=!1),X){if(i.nodeName){var v=T(i.nodeName);if(!p[v]||Y[v])throw Ce("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof y)t=rt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===1&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r);else{if(!z&&!H&&!k&&i.indexOf("<")===-1)return R&&ee?R.createHTML(i):i;if(t=rt(i),!t)return z?null:ee?me:""}t&&ge&&S(t.firstChild);for(var F=at(X?i:t);u=F.nextNode();)u.nodeType===3&&u===A||(nt(u),lt(u),u.content instanceof c&&Ht(u.content),A=u);if(A=null,X)return i;if(z){if(Q)for(h=Ot.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(d.shadowroot||d.shadowrootmod)&&(h=Lt.call(o,h,!0)),h}var m=k?t.outerHTML:t.innerHTML;return k&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&_(fr,t.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
+`+m),H&&(m=L(m,de," "),m=L(m,Te," "),m=L(m,ve," ")),R&&ee?R.createHTML(m):m},n.setConfig=function(i){Le(i),ye=!0},n.clearConfig=function(){$=null,ye=!1},n.isValidAttribute=function(i,e,t){$||Le({});var r=T(i),u=T(e);return it(r,u,t)},n.addHook=function(i,e){typeof e=="function"&&(N[i]=N[i]||[],q(N[i],e))},n.removeHook=function(i){if(N[i])return ft(N[i])},n.removeHooks=function(i){N[i]&&(N[i]=[])},n.removeAllHooks=function(){N={}},n}var Tr=_t();export{Tr as default};
Index: imaps-frontend/dist/index.html
===================================================================
--- imaps-frontend/dist/index.html	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/index.html	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <link rel="icon" href="/logo_icon.png" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>iMaps</title>
+    <script type="module" crossorigin src="/assets/index-Cs83xd2q.js"></script>
+    <link rel="stylesheet" crossorigin href="/assets/index-BuwxaRks.css">
+  </head>
+  <body>
+    <div id="root"></div>
+  </body>
+</html>
Index: imaps-frontend/dist/vite.svg
===================================================================
--- imaps-frontend/dist/vite.svg	(revision 79a03170cdde4e801d12257ee86723774970427b)
+++ imaps-frontend/dist/vite.svg	(revision 79a03170cdde4e801d12257ee86723774970427b)
@@ -0,0 +1,1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
