| 12 |
- /*! For license information please see excalidraw.min.js.LICENSE.txt */
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.Excalidraw=t(require("react"),require("react-dom")):e.Excalidraw=t(e.React,e.ReactDOM)}(window,(function(e,t){return function(e){function t(t){for(var n,o,a=t[0],i=t[1],s=0,c=[];s<a.length;s++)o=a[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&c.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(){return Promise.resolve()},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=window.webpackJsonpExcalidraw=window.webpackJsonpExcalidraw||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var l=i;return o(o.s=115)}([function(t,n){t.exports=e},function(e){e.exports=JSON.parse('{"white":"#ffffff","black":"#000000","gray":["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],"red":["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],"pink":["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],"grape":["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],"violet":["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],"indigo":["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],"blue":["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],"cyan":["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],"teal":["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],"green":["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],"lime":["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],"yellow":["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],"orange":["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]}')},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function i(e){return Boolean(e&&e.then&&"function"==typeof e.then)}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i}))},function(e,t,n){var r,o=n(74),a=n(30),i=n(76),s=n(77),l=n(78);"undefined"!=typeof ArrayBuffer&&(r=n(79));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=c||u;t.protocol=3;var p=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=o(p),f={type:"error",data:"parser error"},m=n(80);function g(e,t,n){for(var r=new Array(e.length),o=s(e.length,n),a=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},i=0;i<e.length;i++)a(i,e[i],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var a=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,a=new Uint8Array(o),i=new Uint8Array(1+o.byteLength);i[0]=p[e.type];for(var s=0;s<a.length;s++)i[s+1]=a[s];return r(i.buffer)}(e,n,o);if(void 0!==m&&a instanceof m)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(d)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);o[0]=p[e.type];var a=new m([o.buffer,e.data]);return r(a)}(e,n,o);if(a&&a.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(e,o);var i=p[e.type];return void 0!==e.data&&(i+=r?l.encode(String(e.data),{strict:!1}):String(e.data)),o(""+i)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==m&&e.data instanceof m){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];n(o+e)},a.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var i=new Uint8Array(e.data),s=new Array(i.length),l=0;l<i.length;l++)s[l]=i[l];r=String.fromCharCode.apply(null,s)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return f;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return f;var o=e.charAt(0);return Number(o)==o&&h[o]?e.length>1?{type:h[o],data:e.substring(1)}:{type:h[o]}:f}o=new Uint8Array(e)[0];var a=i(e,1);return m&&"blob"===n&&(a=new m([a])),{type:h[o],data:a}},t.decodeBase64Packet=function(e,t){var n=h[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=a(e);if(n&&o)return m&&!d?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(f,0,1);for(var a,i,s="",l=0,c=e.length;l<c;l++){var u=e.charAt(l);if(":"===u){if(""===s||s!=(a=Number(s)))return r(f,0,1);if(s!=(i=e.substr(l+1,a)).length)return r(f,0,1);if(i.length){if(o=t.decodePacket(i,n,!1),f.type===o.type&&f.data===o.data)return r(f,0,1);if(!1===r(o,l+a,c))return}l+=a,s=""}else s+=u}return""!==s?r(f,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),a=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);n=r.buffer}o[a++]=t?0:1;var s=n.byteLength.toString();for(i=0;i<s.length;i++)o[a++]=parseInt(s[i]);o[a++]=255;for(r=new Uint8Array(n),i=0;i<r.length;i++)o[a++]=r[i]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var a=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),i=new Uint8Array(a.length+1);for(o=0;o<a.length;o++)i[o]=parseInt(a[o]);if(i[a.length]=255,m){var s=new m([t.buffer,i.buffer,e]);n(null,s)}}))}),(function(e,t){return n(new m(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,a=[];o.byteLength>0;){for(var s=new Uint8Array(o),l=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(f,0,1);c+=s[u]}o=i(o,2+c.length),c=parseInt(c);var d=i(o,0,c);if(l)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var p=new Uint8Array(d);d="";for(u=0;u<p.length;u++)d+=String.fromCharCode(p[u])}a.push(d),o=i(o,c)}var h=a.length;a.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,h)}))}},function(e,t,n){"use strict";(function(e,r,o){n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return f}));n(3),n(11);function a(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}var i={};function s(){return a()?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function l(){var e=s(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){var t=s();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var u=Date.now(),d=0,p={now:function(){var e=Date.now()-u;return e<d&&(e=d),d=e,e},timeOrigin:u},h=function(){if(a())try{return(e="perf_hooks",o.require(e)).performance}catch(e){return p}var e,t=s().performance;return t&&t.now?(void 0===t.timeOrigin&&(t.timeOrigin=t.timing&&t.timing.navigationStart||u),t):p}();function f(){return(h.timeOrigin+h.now())/1e3}}).call(this,n(6),n(12),n(59)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(r){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(61)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(6))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){(function(r){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(81)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(3);function r(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var a=Math.min(o+140,r);return a>r-5&&(a=r),a===r&&(o=Math.max(a-140,0)),n=n.slice(o,a),o>0&&(n="'{snip} "+n),a<r&&(n+=" {snip}"),n}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(62)("socket.io-parser"),o=n(65),a=n(66),i=n(25),s=n(26);function l(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=l,t.Decoder=d;var c=t.ERROR+'"encode error"';function u(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return c;n+=o}return r("encoded %j as %s",e,n),n}function d(){this.reconstructor=null}function p(e){this.reconPack=e,this.buffers=[]}function h(e){return{type:t.ERROR,data:"parser error: "+e}}l.prototype.encode=function(e,n){(r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){a.removeBlobs(e,(function(e){var n=a.deconstructPacket(e),r=u(n.packet),o=n.buffers;o.unshift(r),t(o)}))}(e,n):n([u(e)])},o(d.prototype),d.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return h("unknown packet type "+o.type);if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var a="";"-"!==e.charAt(++n)&&(a+=e.charAt(n),n!=e.length););if(a!=Number(a)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(n+1))for(o.nsp="";++n;){if(","===(l=e.charAt(n)))break;if(o.nsp+=l,n===e.length)break}else o.nsp="/";var s=e.charAt(n+1);if(""!==s&&Number(s)==s){for(o.id="";++n;){var l;if(null==(l=e.charAt(n))||Number(l)!=l){--n;break}if(o.id+=e.charAt(n),n===e.length)break}o.id=Number(o.id)}if(e.charAt(++n)){var c=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!(!1!==c&&(o.type===t.ERROR||i(c))))return h("invalid payload");o.data=c}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){"use strict";(function(e){var r=n(67),o=n(68),a=n(69);function i(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&a(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return R(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var a,i=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*i}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){d=!1;break}if(d)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[n+i]=s}return i}function k(e,t,n,r){return G(R(t,e.length-n),e,n,r)}function w(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return G(H(t),e,n,r)}function C(e,t,n,r){return G(function(e,t){for(var n,r,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,i,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[o+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&c)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&i)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=i(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],i=u[d];break}return a<i?-1:i<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=B(e[a]);return o}function A(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function M(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,o,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o<a;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o<a;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,a){return a||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||z(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||z(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);z(this,e,t,n,o-1,-o)}var a=0,i=1,s=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);z(this,e,t,n,o-1,-o)}var a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&n<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var i=l.isBuffer(e)?e:R(new l(e,r).toString()),s=i.length;for(a=0;a<n-t;++a)this[a+t]=i[a%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){var n;t=t||1/0;for(var r=e.length,o=null,a=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(12))},function(e,t,n){var r=n(72),o=n(16);e.exports=function(e){var t=e.xdomain,n=e.xscheme,a=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&a)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,n){var r=n(4),o=n(18);function a(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=a,o(a.prototype),a.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},a.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},a.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},a.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},a.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},a.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},a.prototype.onPacket=function(e){this.emit("packet",e)},a.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e){e.exports=JSON.parse('{"labels":{"paste":"Paste","selectAll":"Select all","moveCanvas":"Move canvas","copy":"Copy","copyAsPng":"Copy to clipboard as PNG","copyAsSvg":"Copy to clipboard as SVG","bringForward":"Bring forward","sendToBack":"Send to back","bringToFront":"Bring to front","sendBackward":"Send backward","delete":"Delete","copyStyles":"Copy styles","pasteStyles":"Paste styles","stroke":"Stroke","background":"Background","fill":"Fill","strokeWidth":"Stroke width","strokeStyle":"Stroke style","strokeStyle_solid":"Solid","strokeStyle_dashed":"Dashed","strokeStyle_dotted":"Dotted","sloppiness":"Sloppiness","opacity":"Opacity","textAlign":"Text align","fontSize":"Font size","fontFamily":"Font family","onlySelected":"Only selected","withBackground":"With Background","addWatermark":"Add \\"Made with Excalidraw\\"","handDrawn":"Hand-drawn","normal":"Normal","code":"Code","small":"Small","medium":"Medium","large":"Large","veryLarge":"Very large","solid":"Solid","hachure":"Hachure","crossHatch":"Cross-hatch","thin":"Thin","bold":"Bold","left":"Left","center":"Center","right":"Right","extraBold":"Extra bold","architect":"Architect","artist":"Artist","cartoonist":"Cartoonist","fileTitle":"File title","colorPicker":"Color picker","canvasBackground":"Canvas background","drawingCanvas":"Drawing canvas","layers":"Layers","actions":"Actions","language":"Language","createRoom":"Share a live-collaboration session","duplicateSelection":"Duplicate","untitled":"Untitled","name":"Name","yourName":"Your name","madeWithExcalidraw":"Made with Excalidraw","group":"Group selection","ungroup":"Ungroup selection","collaborators":"Collaborators","toggleGridMode":"Toggle grid mode"},"buttons":{"clearReset":"Reset the canvas","export":"Export","exportToPng":"Export to PNG","exportToSvg":"Export to SVG","copyToClipboard":"Copy to clipboard","copyPngToClipboard":"Copy PNG to clipboard","save":"Save","saveAs":"Save as","load":"Load","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","roomDialog":"Start live collaboration","createNewRoom":"Create new room","toggleFullScreen":"Toggle full screen","toggleZenMode":"Toggle zen mode","exitZenMode":"Exit zen mode"},"alerts":{"clearReset":"This will clear the whole canvas. Are you sure?","couldNotCreateShareableLink":"Couldn\'t create shareable link.","couldNotLoadInvalidFile":"Couldn\'t load invalid file","importBackendFailed":"Importing from backend failed.","cannotExportEmptyCanvas":"Cannot export empty canvas.","couldNotCopyToClipboard":"Couldn\'t copy to clipboard. Try using Chrome browser.","decryptFailed":"Couldn\'t decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can\'t read the content."},"toolBar":{"selection":"Selection","draw":"Free draw","rectangle":"Rectangle","diamond":"Diamond","ellipse":"Ellipse","arrow":"Arrow","line":"Line","text":"Text","lock":"Keep selected tool active after drawing"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"linearElement":"Click to start multiple points, drag for single line","freeDraw":"Click and drag, release when you\'re finished","linearElementMulti":"Click on last point or press Escape or Enter to finish","resize":"You can constrain proportions by holding SHIFT while resizing,\\nhold ALT to resize from the center","rotate":"You can constrain angles by holding SHIFT while rotating","lineEditor_info":"Double-click or press Enter to edit points","lineEditor_pointSelected":"Press Delete to remove point or drag to move","lineEditor_nothingSelected":"Select a point to move or remove, or hold Alt and click to add new points"},"errorSplash":{"headingMain_pre":"Encountered an error. Try ","headingMain_button":"reloading the page.","clearCanvasMessage":"If reloading doesn\'t work, try ","clearCanvasMessage_button":"clearing the canvas.","clearCanvasCaveat":" This will result in loss of work ","trackedToSentry_pre":"The error with identifier ","trackedToSentry_post":" was tracked on our system.","openIssueMessage_pre":"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Please include information below by copying and pasting into the GitHub issue.","sceneContent":"Scene content:"},"roomDialog":{"desc_intro":"You can invite people to your current scene to collaborate with you.","desc_privacy":"Don\'t worry, the session uses end-to-end encryption, so whatever you draw will stay private. Not even our server will be able to see what you come up with.","button_startSession":"Start session","button_stopSession":"Stop session","desc_inProgressIntro":"Live-collaboration session is now in progress.","desc_persistenceWarning":"Note that the scene data is shared across collaborators in a P2P fashion, and not persisted to our server. Thus, if all of you disconnect, you will lose the data unless you export it to a file or a shareable link.","desc_shareLink":"Share this link with anyone you want to collaborate with:","desc_exitSession":"Stopping the session will disconnect you from the room, but you\'ll be able to continue working with the scene, locally. Note that this won\'t affect other people, and they\'ll still be able to collaborate on their version."},"errorDialog":{"title":"Error"},"shortcutsDialog":{"title":"Keyboard shortcuts","shapes":"Shapes","or":"or","click":"click","drag":"drag","curvedArrow":"Curved arrow","curvedLine":"Curved line","editor":"Editor","view":"View","blog":"Read our blog","howto":"Follow our guides","github":"Found an issue? Submit","textNewLine":"Add new line (text)","textFinish":"Finish editing (text)","zoomToFit":"Zoom to fit all elements"},"encrypted":{"tooltip":"Your drawings are end-to-end encrypted so Excalidraw\'s servers will never see them."},"charts":{"noNumericColumn":"You pasted a spreadsheet without a numeric column.","tooManyColumns":"You pasted a spreadsheet with more than two columns."}}')},function(e){e.exports=JSON.parse('{"ar-SA":57,"bg-BG":81,"ca-ES":92,"de-DE":100,"el-GR":98,"en":100,"es-ES":97,"fa-IR":100,"fi-FI":100,"fr-FR":100,"he-IL":94,"hi-IN":100,"hu-HU":58,"id-ID":59,"it-IT":97,"ja-JP":77,"ko-KR":72,"nb-NO":100,"nl-NL":85,"nn-NO":100,"pl-PL":99,"pt-PT":100,"ru-RU":81,"sq-AL":42,"tr-TR":98,"uk-UA":100,"zh-CN":100,"zh-TW":100}')},function(e,t,n){var r={"./README.md":[87,7,0],"./ar-SA.json":[88,3,0],"./bg-BG.json":[89,3,0],"./ca-ES.json":[90,3,0],"./de-DE.json":[91,3,0],"./el-GR.json":[92,3,0],"./en.json":[19,3],"./es-ES.json":[93,3,0],"./fa-IR.json":[94,3,0],"./fi-FI.json":[95,3,0],"./fr-FR.json":[96,3,0],"./he-IL.json":[97,3,0],"./hi-IN.json":[98,3,0],"./hu-HU.json":[99,3,0],"./id-ID.json":[100,3,0],"./it-IT.json":[101,3,0],"./ja-JP.json":[102,3,0],"./ko-KR.json":[103,3,0],"./nb-NO.json":[104,3,0],"./nl-NL.json":[105,3,0],"./nn-NO.json":[106,3,0],"./percentages.json":[20,3],"./pl-PL.json":[107,3,0],"./pt-PT.json":[108,3,0],"./ru-RU.json":[109,3,0],"./sq-AL.json":[110,3,0],"./tr-TR.json":[111,3,0],"./uk-UA.json":[112,3,0],"./zh-CN.json":[113,3,0],"./zh-TW.json":[114,3,0]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(o,t[1])}))}o.keys=function(){return Object.keys(r)},o.id=21,e.exports=o},function(e,t,n){},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,o=e.indexOf("["),a=e.indexOf("]");-1!=o&&-1!=a&&(e=e.substring(0,o)+e.substring(o,a).replace(/:/g,";")+e.substring(a,e.length));for(var i=n.exec(e||""),s={},l=14;l--;)s[r[l]]=i[l]||"";return-1!=o&&-1!=a&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t){var n=1e3,r=6e4,o=60*r,a=24*o;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"weeks":case"week":case"w":return 6048e5*i;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*r;case"seconds":case"second":case"secs":case"sec":case"s":return i*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return i(e,t,a,"day");if(t>=o)return i(e,t,o,"hour");if(t>=r)return i(e,t,r,"minute");if(t>=n)return i(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){e.exports=function(e){return n&&t.isBuffer(e)||r&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var n="function"==typeof t&&"function"==typeof t.isBuffer,r="function"==typeof ArrayBuffer}).call(this,n(14).Buffer)},function(e,t,n){var r=n(70),o=n(33),a=n(34),i=n(13),s=n(35),l=n(36),c=n(7)("socket.io-client:manager"),u=n(32),d=n(86),p=Object.prototype.hasOwnProperty;function h(e,t){if(!(this instanceof h))return new h(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=h,h.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},h.prototype.updateSocketIds=function(){for(var e in this.nsps)p.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},h.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},a(h.prototype),h.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},h.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},h.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},h.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},h.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},h.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},h.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},h.prototype.open=h.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var a=s(n,"open",(function(){o.onopen(),e&&e()})),i=s(n,"error",(function(t){if(c("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var l=this._timeout;c("connect attempt will timeout after %d",l);var u=setTimeout((function(){c("connect attempt timed out after %d",l),a.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",l)}),l);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(a),this.subs.push(i),this},h.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",l(this,"ondata"))),this.subs.push(s(e,"ping",l(this,"onping"))),this.subs.push(s(e,"pong",l(this,"onpong"))),this.subs.push(s(e,"error",l(this,"onerror"))),this.subs.push(s(e,"close",l(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",l(this,"ondecoded")))},h.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},h.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},h.prototype.ondata=function(e){this.decoder.add(e)},h.prototype.ondecoded=function(e){this.emit("packet",e)},h.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},h.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",a),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&a()}function a(){~u(r.connecting,n)||r.connecting.push(n)}return n},h.prototype.destroy=function(e){var t=u(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},h.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},h.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},h.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},h.prototype.close=h.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},h.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},h.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},h.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(15),o=n(73),a=n(82),i=n(83);t.polling=function(e){var t=!1,n=!1,i=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,l=location.port;l||(l=s?443:80),t=e.hostname!==location.hostname||l!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!i)throw new Error("JSONP disabled");return new a(e)},t.websocket=i},function(e,t,n){var r=n(17),o=n(8),a=n(4),i=n(9),s=n(31),l=n(10)("engine.io-client:polling");e.exports=u;var c=null!=new(n(15))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}i(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){l("pre-pause polling complete"),--r||n()}))),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){l("pre-pause writing complete"),--r||n()})))}else n()},u.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;l("polling got data %s",e);a.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var r=n(75),o=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),i="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var o=0,s=n.length;o<s;o++)if(e(n[o]))return!0;return!1}if("function"==typeof t&&t.isBuffer&&t.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||a&&n instanceof Blob||i&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return e(n.toJSON(),!0);for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&e(n[l]))return!0;return!1}}).call(this,n(14).Buffer)},function(e,t,n){"use strict";var r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a={},i=0,s=0;function l(e){var t="";do{t=o[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=l(+new Date);return e!==r?(i=0,r=e):e+"."+l(i++)}for(;s<64;s++)a[o[s]]=s;c.encode=l,c.decode=function(e){var t=0;for(s=0;s<e.length;s++)t=64*t+a[e.charAt(s)];return t},e.exports=c},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(13),o=n(34),a=n(85),i=n(35),s=n(36),l=n(7)("socket.io-client:socket"),c=n(8),u=n(30);e.exports=h;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=o.prototype.emit;function h(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(h.prototype),h.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[i(e,"open",s(this,"onopen")),i(e,"packet",s(this,"onpacket")),i(e,"close",s(this,"onclose"))]}},h.prototype.open=h.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},h.prototype.send=function(){var e=a(arguments);return e.unshift("message"),this.emit.apply(this,e),this},h.prototype.emit=function(e){if(d.hasOwnProperty(e))return p.apply(this,arguments),this;var t=a(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},h.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},h.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},h.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},h.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},h.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},h.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=a(arguments);l("sending ack %j",o),t.packet({type:u(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},h.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},h.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},h.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},h.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},h.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},h.prototype.close=h.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},h.prototype.compress=function(e){return this.flags.compress=e,this},h.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){for(var r=self.crypto||self.msCrypto,o="-_",a=36;a--;)o+=a.toString(36);for(a=36;a---10;)o+=a.toString(36).toUpperCase();e.exports=function(e){var t="",n=r.getRandomValues(new Uint8Array(e||21));for(a=e||21;a--;)t+=o[63&n[a]];return t}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return c.Date.now()};function f(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function b(e){return c=e,s=setTimeout(w,t),u?v(e):i}function k(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-c>=a}function w(){var e=h();if(k(e))return S(e);s=setTimeout(w,function(e){var n=t-(e-l);return f?p(n,a-(e-c)):n}(e))}function S(e){return s=void 0,y&&r?v(e):(r=o=void 0,i)}function E(){var e=h(),n=k(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return b(l);if(f)return s=setTimeout(w,t),v(l)}return void 0===s&&(s=setTimeout(w,t)),i}return t=g(t)||0,m(n)&&(u=!!n.leading,a=(f="maxWait"in n)?d(g(n.maxWait)||0,t):a,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},E.flush=function(){return void 0===s?i:S(h())},E}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=o.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),f(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,n(12))},,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(23),o=n(7)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e));n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443"));n.path=n.path||"/";var a=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+a+":"+n.port,n.href=n.protocol+"://"+a+(t&&t.port===n.port?"":":"+n.port),n}},function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let n;function i(...e){if(!i.enabled)return;const t=i,o=Number(new Date),a=o-(n||o);t.diff=a,t.prev=n,t.curr=o,n=o,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;s++;const a=r.formatters[o];if("function"==typeof a){const r=e[s];n=a.call(t,r),e.splice(s,1),s--}return n}),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}return i.namespace=e,i.enabled=r.enabled(e),i.useColors=r.useColors(),i.color=t(e),i.destroy=o,i.extend=a,"function"==typeof r.init&&r.init(i),r.instances.push(i),i}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function a(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(i),...r.skips.map(i).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(24),Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(63)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(6))},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,a=o-(n||o);e.diff=a,e.prev=n,e.curr=o,n=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var a=i[l];n=o.call(e,a),i.splice(l,1),l--}return n})),t.formatArgs.call(e,i);var c=r.log||t.log||console.log.bind(console);c.apply(e,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var a=t.instances[n];a.enabled=t.enabled(a.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(64),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,o=60*r,a=24*o;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var s,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*r;case"seconds":case"second":case"secs":case"sec":case"s":return i*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?i(s=e,a,"day")||i(s,o,"hour")||i(s,r,"minute")||i(s,n,"second")||s+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var r=n(25),o=n(26),a=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,a=e;return a.data=function e(t,n){if(!t)return t;if(o(t)){var a={_placeholder:!0,num:n.length};return n.push(t),a}if(r(t)){for(var i=new Array(t.length),s=0;s<t.length;s++)i[s]=e(t[s],n);return i}if("object"==typeof t&&!(t instanceof Date)){i={};for(var l in t)i[l]=e(t[l],n);return i}return t}(n,t),a.attachments=t.length,{packet:a,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(r(t))for(var o=0;o<t.length;o++)t[o]=e(t[o],n);else if("object"==typeof t)for(var a in t)t[a]=e(t[a],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,a=e;!function e(l,c,u){if(!l)return l;if(i&&l instanceof Blob||s&&l instanceof File){n++;var d=new FileReader;d.onload=function(){u?u[c]=this.result:a=this.result,--n||t(a)},d.readAsArrayBuffer(l)}else if(r(l))for(var p=0;p<l.length;p++)e(l[p],p,l);else if("object"==typeof l&&!o(l))for(var h in l)e(l[h],h,l)}(a),n||t(a)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),i=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,i,s)),u=0,d=s>0?i-4:i;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,a=[],i=0,s=n-o;i<s;i+=16383)a.push(u(e,i,i+16383>s?s:i+16383));1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=i.length;s<l;++s)r[s]=i[s],o[i.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,a,i=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[(a=o)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var a,i,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,h=e[t+d];for(d+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(i=a&(1<<-u)-1,a>>=-u,u+=r;u>0;i=256*i+e[t+d],d+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),a-=c}return(h?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,s,l,c=8*a-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=u?(s=0,i=u):i+d>=1?(s=(t*l-1)*Math.pow(2,o),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&s,h+=f,s/=256,o-=8);for(i=i<<o|s,c+=o;c>0;e[n+h]=255&i,h+=f,i/=256,c-=8);e[n+h-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(71),e.exports.parser=n(4)},function(e,t,n){var r=n(28),o=n(18),a=n(10)("engine.io-client:socket"),i=n(32),s=n(4),l=n(23),c=n(8);function u(e,t){if(!(this instanceof u))return new u(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=l(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=u,u.priorWebsocketSuccess=!1,o(u.prototype),u.protocol=s.protocol,u.Socket=u,u.Transport=n(17),u.transports=n(28),u.parser=n(4),u.prototype.createTransport=function(e){a('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){a("setting transport %s",e.name);var t=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},u.prototype.probe=function(e){a('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(a('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(a('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,a('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(a("changing transport and sending upgrade packet"),p(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{a('probe transport "%s" failed',e);var i=new Error("probe error");i.transport=t.name,r.emit("upgradeError",i)}})))}function i(){n||(n=!0,p(),t.close(),t=null)}function s(n){var o=new Error("probe error: "+n);o.transport=t.name,i(),a('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function l(){s("transport closed")}function c(){s("socket closed")}function d(e){t&&e.name!==t.name&&(a('"%s" works - aborting "%s"',e.name,t.name),i())}function p(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",l),r.removeListener("close",c),r.removeListener("upgrading",d)}u.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",l),this.once("close",c),this.once("upgrading",d),t.open()},u.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},u.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else a('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},u.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){a("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},u.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},u.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),a("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},u.prototype.onError=function(e){a("socket error %j",e),u.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},u.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},u.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~i(this.transports,e[n])&&t.push(e[n]);return t}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){var r=n(15),o=n(29),a=n(18),i=n(9),s=n(10)("engine.io-client:polling-xhr"),l=n(16);function c(){}function u(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function d(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=u,e.exports.Request=d,i(u,o),u.prototype.supportsBinary=!0,u.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new d(e)},u.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},u.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},a(d.prototype),d.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)},d.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},d.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},d.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},d.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}},d.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},d.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},d.prototype.abort=function(){this.cleanup()},d.requestsCount=0,d.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){addEventListener("onpagehide"in l?"pagehide":"unload",p,!1)}function p(){for(var e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),a=new Uint8Array(n-t),i=t,s=0;i<n;i++,s++)a[s]=o[i];return a.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){var o=!1;return r=r||n,a.count=e,0===e?t():a;function a(e,n){if(a.count<=0)throw new Error("after called too many times");--a.count,e?(o=!0,t(e),t=r):0!==a.count||o||t(null,n)}}},function(e,t){var n,r,o,a=String.fromCharCode;function i(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function s(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return a(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return a(e);var n="";return 0==(4294965248&e)?n=a(e>>6&31|192):0==(4294901760&e)?(s(e,t)||(e=65533),n=a(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=a(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+=a(63&e|128)}function u(){if(o>=r)throw Error("Invalid byte index");var e=255&n[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(e){var t,a;if(o>r)throw Error("Invalid byte index");if(o==r)return!1;if(t=255&n[o],o++,0==(128&t))return t;if(192==(224&t)){if((a=(31&t)<<6|u())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&t)){if((a=(15&t)<<12|u()<<6|u())>=2048)return s(a,e)?a:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(a=(7&t)<<18|u()<<12|u()<<6|u())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,a=-1,s="";++a<o;)s+=c(r[a],n);return s},decode:function(e,t){var s=!1!==(t=t||{}).strict;n=i(e),r=n.length,o=0;for(var l,c=[];!1!==(l=d(s));)c.push(l);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=a(t);return o}(c)}}},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,a="";for(n=0;n<o;n+=3)a+=e[r[n]>>2],a+=e[(3&r[n])<<4|r[n+1]>>4],a+=e[(15&r[n+1])<<2|r[n+2]>>6],a+=e[63&r[n+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,r,o,a,i,s=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<l;t+=4)r=n[e.charCodeAt(t)],o=n[e.charCodeAt(t+1)],a=n[e.charCodeAt(t+2)],i=n[e.charCodeAt(t+3)],d[c++]=r<<2|o>>4,d[c++]=(15&o)<<4|a>>2,d[c++]=(3&a)<<6|63&i;return u}}()},function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),a=n&&n.prototype.append&&n.prototype.getBlob;function i(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function s(e,t){t=t||{};var r=new n;return i(e).forEach((function(e){r.append(e)})),t.type?r.getBlob(t.type):r.getBlob()}function l(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,l.prototype=Blob.prototype),e.exports=r?o?Blob:l:a?s:void 0},function(e,t,n){e.exports=function(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let n;function i(...e){if(!i.enabled)return;const t=i,o=Number(new Date),a=o-(n||o);t.diff=a,t.prev=n,t.curr=o,n=o,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return n;s++;const a=r.formatters[o];if("function"==typeof a){const r=e[s];n=a.call(t,r),e.splice(s,1),s--}return n}),r.formatArgs.call(t,e);(t.log||r.log).apply(t,e)}return i.namespace=e,i.enabled=r.enabled(e),i.useColors=r.useColors(),i.color=t(e),i.destroy=o,i.extend=a,"function"==typeof r.init&&r.init(i),r.instances.push(i),i}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function a(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(i),...r.skips.map(i).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(24),Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t,n){var r=n(29),o=n(9),a=n(16);e.exports=u;var i,s=/\n/g,l=/\\n/g;function c(){}function u(e){r.call(this,e),this.query=this.query||{},i||(i=a.___eio=a.___eio||[]),this.index=i.length;var t=this;i.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=c)}),!1)}o(u,r),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},u.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},u.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),a=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=i,o.method="POST",o.setAttribute("accept-charset","utf-8"),a.name="d",o.appendChild(a),document.body.appendChild(o),this.form=o,this.area=a}function c(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),e=e.replace(l,"\\\n"),this.area.value=e.replace(s,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},function(e,t,n){(function(t){var r,o,a=n(17),i=n(4),s=n(8),l=n(9),c=n(31),u=n(10)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(84)}catch(e){}var d=r||o;function p(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=o),a.call(this,e)}e.exports=p,l(p,a),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},p.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,o=0,a=r;o<a;o++)!function(e){i.encodePacket(e,n.supportsBinary,(function(o){if(!n.usingBrowserWebSocket){var a={};if(e.options&&(a.compress=e.options.compress),n.perMessageDeflate)("string"==typeof o?t.byteLength(o):o.length)<n.perMessageDeflate.threshold&&(a.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(o):n.ws.send(o,a)}catch(e){u("websocket closed before onclose event")}--r||s()}))}(e[o]);function s(){n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0)}},p.prototype.onClose=function(){a.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),(e=s.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},p.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===p.prototype.name)}}).call(this,n(14).Buffer)},function(e,t){},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t){throw new Error("Module parse failed: Unexpected character '#' (1:0)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n> ## How to contribute\n| \n| Please do not contribute changes directly to these files, as we manage them with Crowdin. Instead:")},function(e){e.exports=JSON.parse('{"labels":{"paste":"لصق","selectAll":"","moveCanvas":"","copy":"نسخ","copyAsPng":"نسخ إلى الحافظة كـ PNG","copyAsSvg":"","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"حذف","copyStyles":"","pasteStyles":"","stroke":"الحدود","background":"الخلفية","fill":"التعبئة","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"الإمالة","opacity":"الشفافية","textAlign":"","fontSize":"","fontFamily":"","onlySelected":"المحدد فقط","withBackground":"مع الخلفية","addWatermark":"","handDrawn":"","normal":"عادي","code":"الرمز","small":"صغير","medium":"متوسط","large":"كبير","veryLarge":"","solid":"كامل","hachure":"خطوط","crossHatch":"","thin":"نحيف","bold":"داكن","left":"","center":"","right":"","extraBold":"","architect":"معماري","artist":"رسام","cartoonist":"كرتوني","fileTitle":"عنوان الملف","colorPicker":"اختيار الألوان","canvasBackground":"خلفية اللوحة","drawingCanvas":"","layers":"الطبقات","actions":"الإجراءات","language":"اللغة","createRoom":"مشاركة الجلسة مباشرة","duplicateSelection":"","untitled":"","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"إعادة تعيين اللوحة","export":"تصدير","exportToPng":"تصدير كـ PNG","exportToSvg":"تصدير كـ SVG","copyToClipboard":"نسخ إلى الحافظة","copyPngToClipboard":"نسخ الـ PNG الى الحافظة","save":"حفظ","saveAs":"","load":"تحميل","getShareableLink":"احصل على رابط المشاركة","close":"إغلاق","selectLanguage":"","scrollBackToContent":"الرجوع للمحتوى","zoomIn":"تكبير","zoomOut":"تصغير","resetZoom":"إعادة تعيين الشاشة","menu":"القائمة","done":"تم","edit":"تعديل","undo":"تراجع عن","redo":"إعادة تنفيذ","roomDialog":"بدء المشاركة الحية","createNewRoom":"إنشاء غرفة جديدة","toggleFullScreen":"","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"هذا سيزيل كامل اللوحة. هل أنت متأكد ؟","couldNotCreateShareableLink":"تعذر إنشاء رابطة المشاركة.","couldNotLoadInvalidFile":"تعذر التحميل، الملف غير صالح","importBackendFailed":"فشل الإستيراد من السيرفر.","cannotExportEmptyCanvas":"لا يمكن تصدير لوحة فارغة.","couldNotCopyToClipboard":"تعذر النسخ إلى الحافظة. حاول استخدام متصفح Chrome.","decryptFailed":"تعذر فك تشفير البيانات.","uploadedSecurly":"تم تأمين التحميل بتشفير النهاية إلى النهاية، مما يعني أن خادم Excalidraw والأطراف الثالثة لا يمكنها قراءة المحتوى."},"toolBar":{"selection":"تحديد","draw":"","rectangle":"مستطيل","diamond":"مضلع","ellipse":"دائرة","arrow":"سهم","line":"خط","text":"نص","lock":"الحفاظ على أداة التحديد نشطة بعد الرسم"},"headings":{"canvasActions":"إجراءات اللوحة","selectedShapeActions":"إجراءات الشكل المحدد","shapes":"الأشكال"},"hints":{"linearElement":"انقر لبدء نقاط متعددة، اسحب لخط واحد","freeDraw":"","linearElementMulti":"انقر فوق النقطة الأخيرة أو اضغط على Esc أو Enter للإنهاء","resize":"","rotate":"يمكنك تقييد الزوايا من خلال الضغط على SHIFT أثناء الدوران","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"حدث خطأ، حاول مرة أخرى ","headingMain_button":"إعادة تحميل الصفحة.","clearCanvasMessage":"إذا لم تعمل إعادة التحميل، حاول مرة أخرى ","clearCanvasMessage_button":"مسح اللوحة.","clearCanvasCaveat":" هذا سيؤدي إلى فقدان العمل ","trackedToSentry_pre":"الخطأ بعنوان ","trackedToSentry_post":" تم تعقبه على نظامنا.","openIssueMessage_pre":"كنا حذرين جدا لعدم تضمين معلومات المشهد الخاصة بك في الخطأ. إذا لم يكن المشهد خاصًا ، يرجى النظر في متابعة هذا الأمر ","openIssueMessage_button":"متعقّب الخلل.","openIssueMessage_post":" يرجى تضمين المعلومات ادناه عن طريق نسخ ولصق المشكلة في GitHub.","sceneContent":"محتوى المشهد:"},"roomDialog":{"desc_intro":"يمكنك دعوة الآخرين لمشاركتك نفس الجلسة التي تعمل عليها.","desc_privacy":"لا تقلق، الجلسة تستخدم التشفير من النهاية إلى النهاية، لذلك فإن أي شيء ترسمه سيبقى خاصاً. لن يتمكن حتى الخادم الخاص بنا من رؤية ما توصلت إليه.","button_startSession":"بدء الجلسة","button_stopSession":"إيقاف الجلسة","desc_inProgressIntro":"تجري الآن المشاركة الحية.","desc_persistenceWarning":"","desc_shareLink":"شارك هذا الرابط مع أي شخص تريده ان يشاركك الجلسة:","desc_exitSession":""},"errorDialog":{"title":"خطأ"},"shortcutsDialog":{"title":"","shapes":"","or":"","click":"","drag":"","curvedArrow":"","curvedLine":"","editor":"","view":"","blog":"","howto":"","github":"","textNewLine":"","textFinish":"","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Постави","selectAll":"Маркирай всичко","moveCanvas":"","copy":"Копирай","copyAsPng":"Копиране в клипборда","copyAsSvg":"Копиране в клипборда","bringForward":"Преместване на~пред","sendToBack":"Изнасяне назад","bringToFront":"~Изнасяне отпред","sendBackward":"Изпрати назад","delete":"Изтрий","copyStyles":"Копирайте стилове","pasteStyles":"Постави стилове","stroke":"Щрих","background":"Фон","fill":"Наситеност","strokeWidth":"Ширина на щриха","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"Небрежност","opacity":"Непрозрачност","textAlign":"Подравняване на текста","fontSize":"Размер на шрифта","fontFamily":"Семейство шрифтове","onlySelected":"Само избраното","withBackground":"С фон","addWatermark":"","handDrawn":"Нарисувано на ръка","normal":"Нормален","code":"Код","small":"Малък","medium":"Среден","large":"Голям","veryLarge":"Много голям","solid":"Солиден","hachure":"Хералдика","crossHatch":"","thin":"Тънък","bold":"Ясно очертан","left":"Ляво","center":"Център","right":"Дясно","extraBold":"Много ясно очертан","architect":"Архитект","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Заглавие на файл","colorPicker":"Избор на цвят","canvasBackground":"Фон на платно","drawingCanvas":"Платно за рисуване","layers":"Слоеве","actions":"Действия","language":"Език","createRoom":"Споделете сесия за сътрудничество на живо","duplicateSelection":"Дублирай","untitled":"Неозаглавено","name":"Име","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Нулиране на платно","export":"Експортиране","exportToPng":"Изнасяне в PNG","exportToSvg":"Изнасяне в SVG","copyToClipboard":"Копиране в клипборда","copyPngToClipboard":"Копирай PNG в клипборда","save":"Запази","saveAs":"","load":"Зареждане","getShareableLink":"Получаване на връзка за споделяне","close":"Затвори","selectLanguage":"Избор на език","scrollBackToContent":"Превъртете обратно към съдържанието","zoomIn":"Приближаване","zoomOut":"Отдалечаване","resetZoom":"Стандартен мащаб","menu":"Меню","done":"Завършено","edit":"Редактиране","undo":"Отмяна","redo":"Повтори","roomDialog":"Започнете сътрудничество на живо","createNewRoom":"Създай нова стая","toggleFullScreen":"Превключване на цял екран","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"Това ще изчисти цялото платно. Сигурни ли сте?","couldNotCreateShareableLink":"Връзката не може да бъде създадена.","couldNotLoadInvalidFile":"Невалиден файл не може да се зареди","importBackendFailed":"Импортирането от бекенд не беше успешно.","cannotExportEmptyCanvas":"Не може да се експортира празно платно.","couldNotCopyToClipboard":"Неуспешно копиране в клипборда. Опитайте да използвате браузъра Chrome.","decryptFailed":"Данните не можаха да се дешифрират.","uploadedSecurly":"Качването е защитено с криптиране от край до край, което означава, че сървърът Excalidraw и трети страни не могат да четат съдържанието."},"toolBar":{"selection":"Селекция","draw":"","rectangle":"Правоъгълник","diamond":"Диамант","ellipse":"Елипс","arrow":"Стрелка","line":"Линия","text":"Текст","lock":"Поддържайте избрания инструмент активен след рисуване"},"headings":{"canvasActions":"Действия по платното","selectedShapeActions":"Избрани действия","shapes":"Фигури"},"hints":{"linearElement":"Кликнете, за да стартирате няколко точки, плъзнете за една линия","freeDraw":"","linearElementMulti":"Кликнете върху последната точка или натиснете Escape или Enter, за да завършите","resize":"","rotate":"Можете да ограничите ъглите, като държите SHIFT, докато се въртите","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"Среща грешка. Опитайте ","headingMain_button":"презареждане на страницата.","clearCanvasMessage":"Ако презареждането не работи, опитайте ","clearCanvasMessage_button":"изчистване на платното.","clearCanvasCaveat":" Това ще доведе до загуба на работа ","trackedToSentry_pre":"Грешката с идентификатор ","trackedToSentry_post":" беше проследен в нашата система.","openIssueMessage_pre":"Бяхме много предпазливи да не включите информацията за вашата сцена при грешката. Ако сцената ви не е частна, моля, помислете за последващи действия на нашата ","openIssueMessage_button":"тракер за грешки.","openIssueMessage_post":" Моля, включете информация по-долу, като я копирате и добавите в GitHub.","sceneContent":"Съдържание на сцената:"},"roomDialog":{"desc_intro":"Можете да поканите хора на текущата си сцена да си сътрудничат с вас.","desc_privacy":"Не се притеснявайте, сесията използва криптиране от край до край, така че каквото нарисувате ще остане частно. Дори нашият сървър няма да може да види какво предлагате.","button_startSession":"Стартирайте сесията","button_stopSession":"Стоп на сесията","desc_inProgressIntro":"Сесията за сътрудничество на живо е в ход.","desc_persistenceWarning":"","desc_shareLink":"Споделете тази връзка с всеки, с когото искате да си сътрудничите:","desc_exitSession":""},"errorDialog":{"title":"Грешка"},"shortcutsDialog":{"title":"Клавиши за бърз достъп","shapes":"Фигури","or":"или","click":"клик","drag":"плъзнете","curvedArrow":"Извита стрелка","curvedLine":"Извита линия","editor":"Редактор","view":"Преглед","blog":"Прочетете нашия блог","howto":"Следвайте нашите ръководства","github":"Намерихте проблем? Изпратете","textNewLine":"Добавяне на нов ред (текст)","textFinish":"Завършете редактиране (текст)","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Enganxar","selectAll":"Seleccionar tot","moveCanvas":"","copy":"Copiar","copyAsPng":"Copiar al porta-retalls com a PNG","copyAsSvg":"Copiar al porta-retalls com a SVG","bringForward":"Portar endavant","sendToBack":"Enviar endarrere","bringToFront":"Portar al capdavant","sendBackward":"Enviar al fons","delete":"Eliminar","copyStyles":"Copiar estils","pasteStyles":"Enganxar estils","stroke":"Color del traç","background":"Color del fons","fill":"Estil del fons","strokeWidth":"Amplada del traç","strokeStyle":"Estil del traç","strokeStyle_solid":"Sòlid","strokeStyle_dashed":"Guions","strokeStyle_dotted":"Punts","sloppiness":"Estil del traç","opacity":"Opacitat","textAlign":"Alineació del text","fontSize":"Mida de lletra","fontFamily":"Tipus de lletra","onlySelected":"Només seleccionats","withBackground":"Amb fons","addWatermark":"Afegir \\"Fet amb Excalidraw\\"","handDrawn":"Dibuixat a mà","normal":"Normal","code":"Codi","small":"Petit","medium":"Mitjà","large":"Gran","veryLarge":"Molt gran","solid":"Sòlid","hachure":"Ratlletes","crossHatch":"Ratlletes creuades","thin":"Fi","bold":"Negreta","left":"Esquerra","center":"Centre","right":"Dreta","extraBold":"Extra negreta","architect":"Arquitecte","artist":"Artista","cartoonist":"Dibuixant","fileTitle":"Títol del fitxer","colorPicker":"Selector de colors","canvasBackground":"Fons de la tela","drawingCanvas":"Tela de dibuix","layers":"Capes","actions":"Accions","language":"Llengua","createRoom":"Compartir una sessió de col·laboració en directe","duplicateSelection":"Duplicar","untitled":"Sense títol","name":"Nom","yourName":"El teu nom","madeWithExcalidraw":"Fet amb Excalidraw","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Netejar el llenç","export":"Exportar","exportToPng":"Exportar a PNG","exportToSvg":"Exportar a SNG","copyToClipboard":"Copiar al porta-retalls","copyPngToClipboard":"Copiar PNG al porta-retalls","save":"Desar","saveAs":"","load":"Carregar","getShareableLink":"Obtenir enllaç per compartir","close":"Tancar","selectLanguage":"Triar idioma","scrollBackToContent":"Tornar al contingut","zoomIn":"Ampliar","zoomOut":"Reduir","resetZoom":"Restablir zoom","menu":"Menú","done":"Fet","edit":"Editar","undo":"Desfer","redo":"Refer","roomDialog":"Començar col·laboració en directe","createNewRoom":"Crear sala nova","toggleFullScreen":"Commutar pantalla completa","toggleZenMode":"Commutar modo zen","exitZenMode":"Sortir de modo zen"},"alerts":{"clearReset":"Tot el llenç s\'esborrarà. Estàs segur?","couldNotCreateShareableLink":"No s\'ha pogut crear un enllaç per compartir.","couldNotLoadInvalidFile":"No s\'ha pogut carregar un fitxer no vàlid","importBackendFailed":"Importació fallida.","cannotExportEmptyCanvas":"No es pot exportar un llenç buit.","couldNotCopyToClipboard":"No s\'ha pogut copiar al porta-retalls. Intentar amb el navegador Google Chrome.","decryptFailed":"No s\'ha pogut desencriptar.","uploadedSecurly":"La càrrega s\'ha assegurat amb xifratge punta a punta, cosa que significa que el servidor Excalidraw i tercers no poden llegir el contingut."},"toolBar":{"selection":"Selecció","draw":"Dibuix lliure","rectangle":"Rectangle","diamond":"Rombe","ellipse":"El·lipse","arrow":"Fletxa","line":"Línia","text":"Text","lock":"Mantenir activa l\'eina seleccionada desprès de dibuixar"},"headings":{"canvasActions":"Accions del llenç","selectedShapeActions":"Accions per a les formes seleccionades","shapes":"Formes"},"hints":{"linearElement":"Fer clic per dibuixar múltiples punts; arrossegar per una sola línea","freeDraw":"Fer clic i arrosegar, deixar anar al punt final","linearElementMulti":"Fer clic a l\'ultim punt, o polsar Escape o Enter per acabar","resize":"Per restringir les proporcions mentres es canvia la mida, mantenir premut el majúscul (SHIFT); per canviar la mida des del centre, mantenir premut ALT","rotate":"Per restringir els angles mentre gira, mantenir premut el majúscul (SHIFT)","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"S\'ha produït un error. Intentar ","headingMain_button":"recarregar la pàgina.","clearCanvasMessage":"Si la recarrega no funciona, intentar ","clearCanvasMessage_button":"esborrar el llenç.","clearCanvasCaveat":" Això resultarà en pèrdua de feina ","trackedToSentry_pre":"L\'error amb l\'identificador ","trackedToSentry_post":" s\'ha rastrejat en el nostre sistema.","openIssueMessage_pre":"Estàvem molt amb compte de no incloure la teva informació de l\'escena en l\'error. Si la teva escena no és privada, pots fer el seguiment al nostre ","openIssueMessage_button":"rastrejador d\'errors.","openIssueMessage_post":" Si us plau incloure la informació a continuació copiant i enganxant a GitHub Issues.","sceneContent":"Contingut de l\'escena:"},"roomDialog":{"desc_intro":"Pots convidar persones a la teva escena actual a col·laborar amb tu.","desc_privacy":"No et preocupis, la sessió utilitza el xifratge de punta a punta, de manera que qualsevol cosa que dibuixis quedarà privada. Ni tan sols el nostre servidor podrà veure el que fas.","button_startSession":"Iniciar sessió","button_stopSession":"Aturar sessió","desc_inProgressIntro":"La sessió de col·laboració en directe està en marxa.","desc_persistenceWarning":"Tingues en compte que les dades de l\'escena es comparteixen entre col·laboradors de manera P2P i no es desen al nostre servidor. Així, si tots us desconnecteu, perdreu les dades, tret que els exporteu a un fitxer o a un enllaç per a compartir.","desc_shareLink":"Comparteix aquest enllaç amb qualsevol persona amb qui vulguis col·laborar:","desc_exitSession":""},"errorDialog":{"title":"Error"},"shortcutsDialog":{"title":"Dreceres de teclat","shapes":"Formes","or":"o","click":"fer clic","drag":"arrosegar","curvedArrow":"Fletxa curva","curvedLine":"Línea curva","editor":"Editor","view":"Vista","blog":"Llegir el nostre blog","howto":"Seguir els nostres guies","github":"Has trobat un problema? Enviar-ho","textNewLine":"Afegir línea nova (text)","textFinish":"Acabar d\'editar (text)","zoomToFit":"Zoom per veure tots els elements"},"encrypted":{"tooltip":"Els vostres dibuixos estan xifrats de punta a punta de manera que els servidors d’Excalidraw no els veuran mai."},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Einfügen","selectAll":"Alle auswählen","moveCanvas":"Leinwand verschieben","copy":"Kopieren","copyAsPng":"In Zwischenablage kopieren (PNG)","copyAsSvg":"In Zwischenablage kopieren (SVG)","bringForward":"Nach vorne","sendToBack":"In den Hintergrund","bringToFront":"In den Vordergrund","sendBackward":"Nach hinten","delete":"Löschen","copyStyles":"Formatierung kopieren","pasteStyles":"Formatierung übernehmen","stroke":"Strich","background":"Hintergrund","fill":"Füllung","strokeWidth":"Strichstärke","strokeStyle":"Konturstil","strokeStyle_solid":"Durchgezogen","strokeStyle_dashed":"Gestrichelt","strokeStyle_dotted":"Gepunktet","sloppiness":"Sauberkeit","opacity":"Deckkraft","textAlign":"Textausrichtung","fontSize":"Schriftgröße","fontFamily":"Schriftfamilie","onlySelected":"Nur ausgewählte","withBackground":"Mit Hintergrund","addWatermark":"\\"Made with Excalidraw\\" hinzufügen","handDrawn":"Handgezeichnet","normal":"Normal","code":"Code","small":"Klein","medium":"Mittel","large":"Groß","veryLarge":"Sehr groß","solid":"Deckend","hachure":"Schraffiert","crossHatch":"Kreuzschraffiert","thin":"Dünn","bold":"Fett","left":"Links","center":"Zentriert","right":"Rechts","extraBold":"Extra Fett","architect":"Architekt","artist":"Künstler","cartoonist":"Karikaturist","fileTitle":"Dateiname","colorPicker":"Farbauswähler","canvasBackground":"Zeichenflächenhintergrund","drawingCanvas":"Leinwand","layers":"Ebenen","actions":"Aktionen","language":"Sprache","createRoom":"Live-Kollaborationssitzung teilen","duplicateSelection":"Duplizieren","untitled":"Unbenannt","name":"Name","yourName":"Dein Name","madeWithExcalidraw":"Made with Excalidraw","group":"Auswahl gruppieren","ungroup":"Gruppierung aufheben","collaborators":"Mitarbeitende","toggleGridMode":"Gitterlinien ein-/ausschalten"},"buttons":{"clearReset":"Zeichenfläche löschen & Hintergrundfarbe zurücksetzen","export":"Exportieren","exportToPng":"Als PNG exportieren","exportToSvg":"Als SVG exportieren","copyToClipboard":"In Zwischenablage kopieren","copyPngToClipboard":"PNG in die Zwischenablage kopieren","save":"Speichern","saveAs":"Speichern unter","load":"Laden","getShareableLink":"Teilbaren Link erhalten","close":"Schließen","selectLanguage":"Sprache auswählen","scrollBackToContent":"Zurück zum Inhalt","zoomIn":"Vergrößern","zoomOut":"Verkleinern","resetZoom":"Zoom zurücksetzen","menu":"Menü","done":"Fertig","edit":"Bearbeiten","undo":"Rückgängig machen","redo":"Wiederholen","roomDialog":"Live-Kollaborationssitzung starten","createNewRoom":"Neuen Raum erstellen","toggleFullScreen":"Vollbild umschalten","toggleZenMode":"Zen-Modus umschalten","exitZenMode":"Zen-Modus verlassen"},"alerts":{"clearReset":"Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?","couldNotCreateShareableLink":"Konnte keinen teilbaren Link erstellen.","couldNotLoadInvalidFile":"Ungültige Datei konnte nicht geladen werden","importBackendFailed":"Import vom Server ist fehlgeschlagen.","cannotExportEmptyCanvas":"Leere Zeichenfläche kann nicht exportiert werden.","couldNotCopyToClipboard":"Konnte nicht in die Zwischenablage kopieren. Versuch es mit dem Chrome Browser.","decryptFailed":"Daten konnten nicht entschlüsselt werden.","uploadedSecurly":"Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen."},"toolBar":{"selection":"Auswahl","draw":"Freies Zeichnen","rectangle":"Rechteck","diamond":"Raute","ellipse":"Ellipse","arrow":"Pfeil","line":"Linie","text":"Text","lock":"Ausgewähltes Werkzeug nach Zeichnen aktiv lassen"},"headings":{"canvasActions":"Aktionen für Zeichenfläche","selectedShapeActions":"Aktionen für Auswahl","shapes":"Formen"},"hints":{"linearElement":"Klicken für Linie mit mehreren Punkten, Ziehen für einzelne Linie","freeDraw":"Klicke und ziehe. Lass los, wenn du fertig bist","linearElementMulti":"Zum Beenden auf den letzten Punkt klicken oder Escape oder Eingabe drücken","resize":"Du kannst die Proportionen einschränken, indem du SHIFT während der Größenänderung gedrückt hältst. Halte ALT gedrückt, um die Größe vom Zentrum aus zu ändern","rotate":"Du kannst Winkel einschränken, indem du SHIFT während der Drehung gedrückt hältst","lineEditor_info":"Doppelklicken oder Eingabetaste drücken, um Punkte zu bearbeiten","lineEditor_pointSelected":"Drücke Löschen, um Punkt zu entfernen oder ziehe, um ihn zu verschieben","lineEditor_nothingSelected":"Wähle einen Punkt zum Verschieben oder Löschen oder halte die Alt-Taste gedrückt und klicke, um neue Punkte hinzuzufügen"},"errorSplash":{"headingMain_pre":"Es ist ein Fehler aufgetreten. Versuche ","headingMain_button":"die Seite neu zu laden.","clearCanvasMessage":"Wenn das Neuladen nicht funktioniert, versuche ","clearCanvasMessage_button":"die Zeichenfläche zu löschen.","clearCanvasCaveat":" Dies wird zum Verlust von Daten führen ","trackedToSentry_pre":"Der Fehler mit der Kennung ","trackedToSentry_post":" wurde in unserem System registriert.","openIssueMessage_pre":"Wir waren sehr vorsichtig und haben deine Zeichnungsinformationen nicht in die Fehlerinformationen aufgenommen. Wenn deine Zeichnung nicht privat ist, unterstütze uns bitte über unseren ","openIssueMessage_button":"Bug-Tracker.","openIssueMessage_post":" Bitte teile die unten stehenden Informationen mit uns im GitHub Issue (Kopieren und Einfügen).","sceneContent":"Zeichnungsinhalt:"},"roomDialog":{"desc_intro":"Du kannst Leute zu deiner aktuellen Zeichnung einladen um mit ihnen zusammenzuarbeiten.","desc_privacy":"Sei beruhigt, da die Sitzung eine Ende-zu-Ende-Verschlüsselung nutzt. Alles von dir gezeichnete, privat bleibt. Auch unsere Server sehen nicht, was du dir einfallen lässt.","button_startSession":"Sitzung starten","button_stopSession":"Sitzung beenden","desc_inProgressIntro":"Die Live-Sitzung wird nun ausgeführt.","desc_persistenceWarning":"Beachte, dass die Zeichnungsdaten bei der Zusammenarbeit über P2P geteilt und nicht auf unserem Server gespeichert werden. Wenn ihr alle die Verbindung trennt, gehen eure Daten verloren, es sei denn, ihr exportiert sie in eine Datei oder einen gemeinsam nutzbaren Link.","desc_shareLink":"Teile diesen Link mit allen, mit denen du zusammenarbeiten möchtest:","desc_exitSession":"Wenn du die Sitzung beendest, wird deine Verbindung zum Raum getrennt. Du kannst jedoch lokal weiter an der Zeichnung arbeiten. Beachte, dass dies keine Auswirkungen auf andere hat und diese weiterhin gemeinsam an ihrer Version arbeiten können."},"errorDialog":{"title":"Fehler"},"shortcutsDialog":{"title":"Tastaturkürzel","shapes":"Formen","or":"oder","click":"klicken","drag":"ziehen","curvedArrow":"Gebogener Pfeil","curvedLine":"Gebogene Linie","editor":"Editor","view":"Ansicht","blog":"Unseren Blog lesen","howto":"Folge unseren Anleitungen","github":"Ein Problem gefunden? Informiere uns","textNewLine":"Neue Zeile hinzufügen (Text)","textFinish":"Bearbeiten beenden (Text)","zoomToFit":"Zoomen um alle Elemente einzupassen"},"encrypted":{"tooltip":"Da deine Zeichnungen Ende-zu-Ende verschlüsselt werden, sehen auch unsere Excalidraw-Server sie niemals."},"charts":{"noNumericColumn":"Du hast eine Tabelle ohne numerische Spalte eingefügt.","tooManyColumns":"Du hast eine Tabelle mit mehr als zwei Spalten eingefügt."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Επικόλληση","selectAll":"Επιλογή όλων","moveCanvas":"Μετακίνηση καμβά","copy":"Αντιγραφή","copyAsPng":"Αντιγραφή στο πρόχειρο ως PNG","copyAsSvg":"Αντιγραφή στο πρόχειρο ως SVG","bringForward":"Στο προσκήνιο","sendToBack":"Ένα επίπεδο πίσω","bringToFront":"Ένα επίπεδο μπροστά","sendBackward":"Στο παρασκήνιο","delete":"Διαγραφή","copyStyles":"Αντιγραφή εμφάνισης","pasteStyles":"Επικόλληση εμφάνισης","stroke":"Μολυβιά","background":"Φόντο","fill":"Γέμισμα","strokeWidth":"Πάχος μολυβιάς","strokeStyle":"Στυλ περιγράμματος","strokeStyle_solid":"Συμπαγής","strokeStyle_dashed":"Διακεκομμένη με παύλες","strokeStyle_dotted":"Διακεκομμένη με τελείες","sloppiness":"Ακαταστασία","opacity":"Διαφάνεια","textAlign":"Στοίχιση κειμένου","fontSize":"Μέγεθος γραμματοσειράς","fontFamily":"Γραμματοσειρά","onlySelected":"Μόνο τα Επιλεγμένα","withBackground":"Με Φόντο","addWatermark":"Προσθήκη \\"Φτιαγμένο με Excalidraw\\"","handDrawn":"Σχεδιασμένο στο χέρι","normal":"Κανονική","code":"Κώδικας","small":"Μικρό","medium":"Μεσαίο","large":"Μεγάλο","veryLarge":"Πολύ μεγάλο","solid":"Συμπαγής","hachure":"Εκκόλαψη","crossHatch":"Διασταυρούμενη εκκόλαψη","thin":"Λεπτή","bold":"Έντονη","left":"Αριστερά","center":"Κέντρο","right":"Δεξιά","extraBold":"Πολύ έντονη","architect":"Αρχιτέκτονας","artist":"Καλλιτέχνης","cartoonist":"Σκιτσογράφος","fileTitle":"Τίτλος Αρχείου","colorPicker":"Επιλογή Χρώματος","canvasBackground":"Φόντο καμβά","drawingCanvas":"Σχεδίαση καμβά","layers":"Στρώματα","actions":"Ενέργειες","language":"Γλώσσα","createRoom":"Έναρξη ζωντανής συνεδρίας","duplicateSelection":"Δημιουργία αντιγράφου","untitled":"Χωρίς τίτλο","name":"Όνομα","yourName":"Το όνομά σου","madeWithExcalidraw":"Φτιαγμένο με Excalidraw","group":"Δημιουργία ομάδας από επιλογή","ungroup":"Κατάργηση ομάδας από επιλογή","collaborators":"Συνεργάτες","toggleGridMode":"Εναλλαγή λειτουργίας πλέγματος"},"buttons":{"clearReset":"Επαναφορά του καμβά","export":"Εξαγωγή","exportToPng":"Εξαγωγή σε PNG","exportToSvg":"Εξαγωγή σε SVG","copyToClipboard":"Αντιγραφή στο πρόχειρο","copyPngToClipboard":"Αντιγραφή PNG στο πρόχειρο","save":"Αποθήκευση","saveAs":"Αποθήκευση ως","load":"Άνοιγμα","getShareableLink":"Δημόσιος σύνδεσμος","close":"Κλείσιμο","selectLanguage":"Επιλογή γλώσσας","scrollBackToContent":"Μετακινηθείτε πίσω στο περιεχόμενο","zoomIn":"Μεγέθυνση","zoomOut":"Σμίκρυνση","resetZoom":"Επαναφορά μεγέθυνσης","menu":"Μενού","done":"Τέλος","edit":"Επεξεργασία","undo":"Αναίρεση","redo":"Επαναφορά","roomDialog":"Έναρξη ζωντανής συνεργασίας","createNewRoom":"Δημιουργία νέου χώρου","toggleFullScreen":"Εναλλαγή πλήρους οθόνης","toggleZenMode":"Εναλλαγή λειτουργίας Zen","exitZenMode":"Έξοδος απο την λειτουργία Zen"},"alerts":{"clearReset":"Αυτό θα σβήσει ολόκληρο τον καμβά. Είσαι σίγουρος;","couldNotCreateShareableLink":"Δεν ήταν δυνατή η δημιουργία συνδέσμου κοινής χρήσης.","couldNotLoadInvalidFile":"Δεν μπόρεσε να ανοίξει εσφαλμένο αρχείο","importBackendFailed":"Η εισαγωγή από το backend απέτυχε.","cannotExportEmptyCanvas":"Δεν είναι δυνατή η εξαγωγή κενού καμβά.","couldNotCopyToClipboard":"Δεν ήταν δυνατή η αντιγραφή στο πρόχειρο. Δοκίμασε τη χρήση του προγράμματος περιήγησης Chrome.","decryptFailed":"Δεν ήταν δυνατή η αποκρυπτογράφηση δεδομένων.","uploadedSecurly":"Η μεταφόρτωση έχει εξασφαλιστεί με κρυπτογράφηση από άκρο σε άκρο, πράγμα που σημαίνει ότι ο διακομιστής Excalidraw και τρίτα μέρη δεν μπορούν να διαβάσουν το περιεχόμενο."},"toolBar":{"selection":"Επιλογή","draw":"Ελεύθερο σχέδιο","rectangle":"Ορθογώνιο","diamond":"Ρόμβος","ellipse":"Έλλειψη","arrow":"Βέλος","line":"Γραμμή","text":"Κείμενο","lock":"Κράτησε επιλεγμένο το εργαλείο μετά το σχέδιο"},"headings":{"canvasActions":"Ενέργειες καμβά","selectedShapeActions":"Επιλεγμένες ενέργειες σχήματος","shapes":"Σχήματα"},"hints":{"linearElement":"Κάνε κλικ για να ξεκινήσεις πολλαπλά σημεία, σύρε για μια γραμμή","freeDraw":"Κάντε κλικ και σύρατε, απελευθερώσατε όταν έχετε τελειώσει","linearElementMulti":"Κάνε κλικ στο τελευταίο σημείο ή πάτησε Escape ή Enter για να τελειώσεις","resize":"Μπορείς να περιορίσεις τις αναλογίες κρατώντας το SHIFT ενώ αλλάζεις μέγεθος,\\nκράτησε πατημένο το ALT για αλλαγή μεγέθους από το κέντρο","rotate":"Μπορείς να περιορίσεις τις γωνίες κρατώντας πατημένο το πλήκτρο SHIFT κατά την περιστροφή","lineEditor_info":"Διπλό-κλικ ή πιέστε Enter για να επεξεργαστείτε τα σημεία","lineEditor_pointSelected":"Πιέστε Διαγραφή για να αφαιρέσετε το σημείο ή σύρατε για να μετακινήσετε","lineEditor_nothingSelected":"Επιλέξτε ένα σημείο για μετακίνηση ή αφαίρεση, ή κρατήστε παρατεταμένα το Alt και κάντε κλικ για να προσθέσετε νέα σημεία"},"errorSplash":{"headingMain_pre":"Συνέβη κάποιο σφάλμα. Προσπάθησε ","headingMain_button":"φόρτωσε ξανά την σελίδα.","clearCanvasMessage":"Εάν το παραπάνω δεν δουλέψει, προσπάθησε ","clearCanvasMessage_button":"καθαρίσετε τον κανβά.","clearCanvasCaveat":" Αυτό θα προκαλέσει απώλεια της δουλειάς σου ","trackedToSentry_pre":"Το σφάλμα με αναγνωριστικό ","trackedToSentry_post":" παρακολουθήθηκε στο σύστημά μας.","openIssueMessage_pre":"Ήμασταν πολύ προσεκτικοί για να μην συμπεριλάβουμε τις πληροφορίες της σκηνής σου στο σφάλμα. Αν η σκηνή σου δεν είναι ιδιωτική, παρακαλώ σκέψουν να ακολουθήσεις το δικό μας ","openIssueMessage_button":"ανιχνευτής σφαλμάτων.","openIssueMessage_post":" Παρακαλώ να συμπεριλάβετε τις παρακάτω πληροφορίες, αντιγράφοντας και επικολλώντας το ζήτημα στο GitHub.","sceneContent":"Περιεχόμενο σκηνής:"},"roomDialog":{"desc_intro":"Μπορείς να προσκαλέσεις άλλους να δουλέψουν μαζί σου.","desc_privacy":"Μην ανησυχείς, η συνεδρία χρησιμοποιεί κρυπτογράφηση από σημείο σε σημείο, άρα οτιδήποτε κάνεις θα παραμείνει ανοιχτό μόνο σε εσένα. Ούτε οι μηχανές μας μπορούν να δουν τι κάνεις.","button_startSession":"Έναρξη Συνεδρίας","button_stopSession":"Τερματισμός Συνεδρίας","desc_inProgressIntro":"Η ζωντανή συνεργασία με άλλους είναι σε ενεργή.","desc_persistenceWarning":"Σημειώσατε πως τα δεδομένα του πίνακα μοιράζονται στους συνεισφέροντες με P2P τρόπο, και δεν αποθηκεύονται στον server μας. Συνεπώς, εάν αποσυνδεθείτε όλοι σας, θα χάσετε τα δεδομένα εκτός και αν τα εξάγετε σε ένα αρχείο ή έναν κοινοποιήσιμο σύνδεσμο.","desc_shareLink":"Μοιραστείτε τον σύνδεσμο με όποιον θέλετε να δουλέψετε μαζί:","desc_exitSession":"Η διακοπή θα σας αποσυνδέσει από το δωμάτιο, αλλά θα μπορείτε να συνεχίσετε να δουλεύετε στον πίνακα, τοπικά. Σημειώσατε ότι αυτό δεν θα επηρεάσει τον πίνακα άλλων, και θα μπορούν ακόμα να συνεισφέρουν στην δική τους έκδοση."},"errorDialog":{"title":"Σφάλμα"},"shortcutsDialog":{"title":"Συντομεύσεις πληκτρολογίου","shapes":"Σχήματα","or":"ή","click":"κλικ","drag":"σύρε","curvedArrow":"Κυρτό βέλος","curvedLine":"Κυρτή γραμμή","editor":"Επεξεργαστής","view":"Προβολή","blog":"Διαβάστε το ιστολόγιο μας","howto":"Ακολουθήστε τους οδηγούς μας","github":"Βρήκατε πρόβλημα; Υποβάλετε το","textNewLine":"Προσθήκη νέας γραμμής (κείμενο)","textFinish":"Ολοκλήρωση επεξεργασίας (κείμενο)","zoomToFit":"Zoom ώστε να χωρέσουν όλα τα στοιχεία"},"encrypted":{"tooltip":"Τα σχέδιά σου είναι κρυπτογραφημένα από άκρο σε άκρο, έτσι δεν θα έιναι ποτέ ορατά μέσα από τους διακομιστές του Excalidraw."},"charts":{"noNumericColumn":"Επικόλλησες ένα υπολογιστικό φύλλο χωρίς αριθμητική στήλη.","tooManyColumns":"Επικόλλησες ένα υπολογιστικό φύλλο με περισσότερες από δύο στήλες."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Pegar","selectAll":"Seleccionar todo","moveCanvas":"","copy":"Copiar","copyAsPng":"Copiar al portapapeles como PNG","copyAsSvg":"Copiar al portapapeles como SVG","bringForward":"Traer hacia delante","sendToBack":"Enviar al fondo","bringToFront":"Traer al frente","sendBackward":"Enviar atrás","delete":"Borrar","copyStyles":"Copiar estilos","pasteStyles":"Pegar estilos","stroke":"Trazo","background":"Fondo","fill":"Rellenar","strokeWidth":"Grosor del trazo","strokeStyle":"Estilo del trazo","strokeStyle_solid":"Sólido","strokeStyle_dashed":"Linea discontinua","strokeStyle_dotted":"Punteado","sloppiness":"Estilo de trazo","opacity":"Opacidad","textAlign":"Alineado de texto","fontSize":"Tamaño de la fuente","fontFamily":"Tipo de fuente","onlySelected":"Sólo seleccionados","withBackground":"Con fondo","addWatermark":"Agregar \\"Hecho con Excalidraw\\"","handDrawn":"Dibujado a mano","normal":"Normal","code":"Código","small":"Pequeña","medium":"Mediana","large":"Grande","veryLarge":"Muy grande","solid":"Sólido","hachure":"Folleto","crossHatch":"Rayado transversal","thin":"Fino","bold":"Grueso","left":"Izquierda","center":"Centrado","right":"Derecha","extraBold":"Extra negrita","architect":"Arquitecto","artist":"Artista","cartoonist":"Caricatura","fileTitle":"Título del archivo","colorPicker":"Selector de color","canvasBackground":"Fondo del lienzo","drawingCanvas":"Lienzo de dibujo","layers":"Capas","actions":"Acciones","language":"Idioma","createRoom":"Compartir una sesión de colaboración en vivo","duplicateSelection":"Duplicar","untitled":"Sin título","name":"Nombre","yourName":"Tu nombre","madeWithExcalidraw":"Hecho con Excalidraw","group":"Selección de grupo","ungroup":"Dividir selección","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Limpiar lienzo y reiniciar el color de fondo","export":"Exportar","exportToPng":"Exportar a PNG","exportToSvg":"Exportar a SVG","copyToClipboard":"Copiar al portapapeles","copyPngToClipboard":"Copiar PNG al portapapeles","save":"Guardar","saveAs":"","load":"Cargar","getShareableLink":"Obtener enlace para compartir","close":"Cerrar","selectLanguage":"Elegir idioma","scrollBackToContent":"Volver al contenido","zoomIn":"Acercarse","zoomOut":"Alejarse","resetZoom":"Restablecer zoom","menu":"Menú","done":"Hecho","edit":"Editar","undo":"Deshacer","redo":"Rehacer","roomDialog":"Iniciar colaboración en vivo","createNewRoom":"Crear nueva sala","toggleFullScreen":"Alternar pantalla completa","toggleZenMode":"Alternar modo zen","exitZenMode":"Salir del modo Zen"},"alerts":{"clearReset":"Esto limpiará todo el lienzo. Estás seguro?","couldNotCreateShareableLink":"No se pudo crear un enlace para compartir.","couldNotLoadInvalidFile":"No se pudo cargar el archivo inválido","importBackendFailed":"La importación falló.","cannotExportEmptyCanvas":"No se puede exportar un lienzo vació","couldNotCopyToClipboard":"No se ha podido copiar al portapapeles, intente usar Chrome como navegador.","decryptFailed":"No se pudieron descifrar los datos.","uploadedSecurly":"La carga ha sido asegurada con cifrado de extremo a extremo, lo que significa que el servidor de Excalidraw y terceros no pueden leer el contenido."},"toolBar":{"selection":"Selección","draw":"Dibujo libre","rectangle":"Rectángulo","diamond":"Diamante","ellipse":"Elipse","arrow":"Flecha","line":"Línea","text":"Texto","lock":"Mantener la herramienta seleccionada activa después de dibujar"},"headings":{"canvasActions":"Acciones del lienzo","selectedShapeActions":"Acciones de la forma seleccionada","shapes":"Formas"},"hints":{"linearElement":"Haga clic para dibujar multiples puntos o arrastre para una sola línea","freeDraw":"Haz clic y arrastra, suelta al terminar","linearElementMulti":"Haga clic en el último punto o pulse Escape o Enter para finalizar","resize":"Para mantener las proporciones mantén SHIFT presionado mientras modificas el tamaño, \\nmantén presionado ALT para modificar el tamaño desde el centro","rotate":"Puede restringir los ángulos manteniendo presionado SHIFT mientras gira","lineEditor_info":"haga doble clic o pulse Enter para editar puntos","lineEditor_pointSelected":"Pulse Borrar para eliminar el punto o arrastre para mover","lineEditor_nothingSelected":"Seleccione un punto para mover o eliminar, o mantenga pulsado Alt y haga clic para añadir nuevos puntos"},"errorSplash":{"headingMain_pre":"Se encontró un error. Intente ","headingMain_button":"recargando la página.","clearCanvasMessage":"Si la recarga no funciona, intente ","clearCanvasMessage_button":"limpiando el lienzo.","clearCanvasCaveat":" Esto resultará en la pérdida del trabajo ","trackedToSentry_pre":"El error con el identificador ","trackedToSentry_post":" fue rastreado en nuestro sistema.","openIssueMessage_pre":"Fuimos muy cautelosos para no incluir la información de tu escena en el error. Si tu escena no es privada, por favor considera seguir nuestro ","openIssueMessage_button":"seguimiento de errores.","openIssueMessage_post":" Por favor, incluya la siguiente información copiándola y pegándola en el issue de GitHub.","sceneContent":"Contenido de la escena:"},"roomDialog":{"desc_intro":"Puedes invitar a gente a tu escena actual para colaborar contigo.","desc_privacy":"No te preocupes, la sesión usa encriptación de extremo a extremo, por lo que todo lo que se dibuje se mantendrá privado. Ni siquiera nuestro servidor podrá ver lo que haces.","button_startSession":"Iniciar sesión","button_stopSession":"Detener sesión","desc_inProgressIntro":"La sesión de colaboración en vivo está ahora en progreso.","desc_persistenceWarning":"Ten en cuenta que los datos de la escena se comparten entre los colaboradores de forma P2P y no se almacenan en nuestro servidor. Por lo tanto, si todos se desconectan, perderás los datos a menos que sean exportados a un archivo o un enlace para compartir.","desc_shareLink":"Comparte este enlace con tus colaboradores:","desc_exitSession":"Detener la sesión te desconectará de la sala, pero podrás seguir trabajando con la escena localmente. Ten en cuenta que esto no afectará a otras personas, y que seguirán siendo capaces de colaborar en su versión."},"errorDialog":{"title":"Error"},"shortcutsDialog":{"title":"Atajos del teclado","shapes":"Formas","or":"o","click":"hacer clic","drag":"arrastrar","curvedArrow":"Flecha curva","curvedLine":"Línea curva","editor":"Editor","view":"Vista","blog":"Lee nuestro blog","howto":"Sigue nuestras guías","github":"¿Has encontrado un problema? Envíalo","textNewLine":"Añadir nueva línea (texto)","textFinish":"Finalizar edición (texto)","zoomToFit":"Ajustar para mostrar todos los elementos"},"encrypted":{"tooltip":"Tus dibujos están cifrados de punto a punto, por lo que los servidores de Excalidraw nunca los verán."},"charts":{"noNumericColumn":"Pegaste una hoja de cálculo sin una columna numérica.","tooManyColumns":"Pegaste una hoja de cálculo con más de dos columnas."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"جای گذاری","selectAll":"انتخاب همه","moveCanvas":"بوم را حرکت بدهید","copy":"کپی","copyAsPng":"کپی در حافطه موقت به صورت PNG","copyAsSvg":"کپی در حافطه موقت به صورت SVG","bringForward":"جلو آوردن","sendToBack":"پس فرستادن","bringToFront":"جلو آوردن","sendBackward":"پس فرستادن","delete":"حذف","copyStyles":"کپی استایل","pasteStyles":"چسباندن استایل","stroke":"خط","background":"پس زمینه","fill":"رنگ آمیزی","strokeWidth":"ضخامت خط","strokeStyle":"استایل خط","strokeStyle_solid":"یکدست","strokeStyle_dashed":"خط چین","strokeStyle_dotted":"نقطه چین","sloppiness":"دقت","opacity":"تاری","textAlign":"چیدمان متن","fontSize":"اندازه قلم","fontFamily":"نوع قلم","onlySelected":"فقط انتخاب شده ها","withBackground":"با پس زمینه","addWatermark":"\\"ساخته شده با Excalidraw\\" را اضافه کن","handDrawn":"دست نویس","normal":"عادی","code":"کد","small":"کوچک","medium":"متوسط","large":"بزرگ","veryLarge":"بسیار بزرگ","solid":"توپر","hachure":"هاشور","crossHatch":"هاشور متقاطع","thin":"نازک","bold":"ضخیم","left":"چپ","center":"وسط","right":"راست","extraBold":"خیلی ضخیم","architect":"معمار","artist":"هنرمند","cartoonist":"کارتونیست","fileTitle":"عنوان فایل","colorPicker":"انتخابگر رنگ","canvasBackground":"بوم","drawingCanvas":"بوم نقاشی","layers":"لایه ها","actions":"عملیات","language":"زبان","createRoom":"اشتراک گذاری جلسه همکاری زنده","duplicateSelection":"تکرار","untitled":"بدون عنوان","name":"نام","yourName":"نام شما","madeWithExcalidraw":"ساخته شده با Excalidraw","group":"گروهبندی انتخابها","ungroup":"حذف گروهبندی انتخابها","collaborators":"همکاران","toggleGridMode":"سويچ خطوط راهنما"},"buttons":{"clearReset":"پاکسازی بوم نقاشی","export":"تبدیل","exportToPng":"تبدیل به PNG","exportToSvg":"تبدیل به SVG","copyToClipboard":"کپی در حافظه موقت","copyPngToClipboard":"کپی PNG در حافظه موقت","save":"ذخیره","saveAs":"ذخیره با نام","load":"بارگذاری","getShareableLink":"دریافت لینک قابل اشتراک","close":"بستن","selectLanguage":"انتخاب زبان","scrollBackToContent":"به محتوا بروید","zoomIn":"بزرگ نمایی","zoomOut":"کوچک نمایی","resetZoom":"اندازه اصلی","menu":"فهرست","done":"انجام شد","edit":"ویرایش","undo":"بازگرد","redo":"از سر","roomDialog":"همکاری آنلاین را شروع کنید","createNewRoom":"ایجاد یک اتاق جدید","toggleFullScreen":"تغییر به حالت تمام صفحه","toggleZenMode":"تغییر به حالت تمرکز","exitZenMode":"خروج از حالت تمرکز"},"alerts":{"clearReset":"این کار کل صفحه را پاک میکند. آیا مطمئنید؟","couldNotCreateShareableLink":"عدم توانایی در ساخت یک لینک قابل اشتراک.","couldNotLoadInvalidFile":"عدم توانایی در بازگذاری فایل نامعتبر","importBackendFailed":"بارگیری از پشت صحنه با شکست مواجه شد.","cannotExportEmptyCanvas":"بوم خالی قابل تبدیل نیست.","couldNotCopyToClipboard":"کپی نشد. از مرورگر Chrome استفاده کنید.","decryptFailed":"رمزگشایی داده ها امکان پذیر نیست.","uploadedSecurly":"آپلود با رمزگذاری دو طرفه انجام میشود، به این معنی که سرور Excalidraw و اشخاص ثالث نمی توانند مطالب شما را بخوانند."},"toolBar":{"selection":"گزینش","draw":"طراحی آزاد","rectangle":"مستطیل","diamond":"لوزی","ellipse":"بیضی","arrow":"پیکان","line":"خط","text":"متن","lock":"ابزار انتخاب شده را بعد از کشیدن نگه دار"},"headings":{"canvasActions":"عملیات روی بوم","selectedShapeActions":"عملیات روی شکل انتخاب شده","shapes":"شکلها"},"hints":{"linearElement":"برای چند نقطه کلیک و برای یک خط بکشید","freeDraw":"کلیک کنید و بکشید و وقتی کار تمام شد رها کنید","linearElementMulti":"روی آخرین نقطه کلیک کنید یا کلید ESC را بزنید یا کلید Enter را بزنید برای اتمام کار","resize":"می توانید با نگه داشتن SHIFT در هنگام تغییر اندازه، نسبت ها را محدود کنید،ALT را برای تغییر اندازه از مرکز نگه دارید","rotate":"با نگه داشتن SHIFT هنگام چرخش می توانید زاویه ها را محدود کنید","lineEditor_info":"دوبار کلیک کنید یا Enter را فشار دهید تا نقاط را ویرایش کنید","lineEditor_pointSelected":"برای حذف نقطه کلید Delete را بزنید یا برای جابجایی بکشید","lineEditor_nothingSelected":"یک نقطه را برای جابجایی یا حذف انتخاب کنید یا کلید Alt بگیرید و کلیک کنید تا بتوانید یک نقطه جدید اضافه کنید"},"errorSplash":{"headingMain_pre":"با مشکلی مواجه شدیم. این را امتحان کنید ","headingMain_button":"در حال بازنشانی صفحه.","clearCanvasMessage":"اگر بازنشانی صفحه مشکل را حل نکرد این را امتحان کنید ","clearCanvasMessage_button":"در حال تمیز کردن بوم","clearCanvasCaveat":" این باعث میشود کارهای شما از بین برود ","trackedToSentry_pre":"خطا در شناسه ","trackedToSentry_post":" در سیستم ما رهگیری شد.","openIssueMessage_pre":"ما خیلی محتاط هستیم که اطلاعات شما را در خطا قرار ندهیم. با این حال اگر اطلاعات شما خصوصی نیست لطفا پیگیری کنید ","openIssueMessage_button":"پیگیری اشکالات.","openIssueMessage_post":" لطفا اطلاعات زیر را با کپی کردن در صفحه مشکلات GitHub بگذارید.","sceneContent":"محتوای صحنه:"},"roomDialog":{"desc_intro":"می توانید افرادی را به صحنه فعلی خود دعوت کنید تا با شما همکاری کنند.","desc_privacy":"نگران نباشید، این جلسه از رمزگذاری دوطرفه استفاده می کند، پس هر چیزی بکشید خصوصی خواهد ماند. حتی سرور ما نمیتواند ببیند چیزی که شما طراحی میکنید.","button_startSession":"شروع جلسه","button_stopSession":"پایان جلسه","desc_inProgressIntro":"جلسه همکاری آنلاین در حال انجام است.","desc_persistenceWarning":"توجه داشته باشید که داده های روی بوم به صورت P2P بین همکاران به اشتراک گذاشته می شوند و در سرور ما همچنان نمی ماند. پس، اگر ارتباط شما قطع شود، داده ها را از دست خواهید داد مگر اینکه آنها را به یک فایل یا یک لینک قابل اشتراک تبدیل کنید.","desc_shareLink":"این لینک را با هر کسی که می خواهید با او همکاری کنید به اشتراک بگذارید:","desc_exitSession":"با پایان دادن جلسه، شما از اتاق حذف میکند، اما می توانید به صورت محلی کار خود را با بوم ادامه دهید. توجه داشته باشید که این مورد بر سایر افراد تأثیر نمی گذارد و همچنان می توانند در نسخه خود همکاری کنند."},"errorDialog":{"title":"خطا"},"shortcutsDialog":{"title":"میانبرهای صفحه کلید","shapes":"شکلها","or":"یا","click":"کلیک","drag":"کشیدن","curvedArrow":"فلش خمیده","curvedLine":"منحنی","editor":"ویرایشگر","view":"نمایش","blog":"بلاگ ما را بخوانید","howto":"راهنمای ما را دنبال کنید","github":"اشکالی می بینید؟ گزارش دهید","textNewLine":"یک خط جدید اضافه کنید (متن)","textFinish":"پایان ویرایش (متن)","zoomToFit":"بزرگنمایی برای دیدن تمام آیتم ها"},"encrypted":{"tooltip":"شما در یک محیط رمزگزاری شده دو طرفه در حال طراحی هستید پس Excalidraw هرگز طرح های شما را نمیبند."},"charts":{"noNumericColumn":"شما یک صفحه گسترده را بدون ستون عددی کپی کرده اید.","tooManyColumns":"شما یک صفحه گسترده را با بیش از دو ستون کپی کرده اید."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Liitä","selectAll":"Valitse kaikki","moveCanvas":"Siirrä piirtoaluetta","copy":"Kopioi","copyAsPng":"Kopioi leikepöydälle PNG-tiedostona","copyAsSvg":"Kopioi leikepöydälle SVG-tiedostona","bringForward":"Siirrä eteenpäin","sendToBack":"Vie taakse","bringToFront":"Tuo eteen","sendBackward":"Siirrä taaksepäin","delete":"Poista","copyStyles":"Kopioi tyyli","pasteStyles":"Liitä tyyli","stroke":"Piirto","background":"Tausta","fill":"Täyttö","strokeWidth":"Viivan leveys","strokeStyle":"Viivan tyyli","strokeStyle_solid":"Yhtenäinen","strokeStyle_dashed":"Katkoviiva","strokeStyle_dotted":"Pisteviiva","sloppiness":"Viivan tarkkuus","opacity":"Peittävyys","textAlign":"Tekstin tasaus","fontSize":"Kirjasinkoko","fontFamily":"Kirjasintyyppi","onlySelected":"Vain valitut","withBackground":"Sisällytä tausta","addWatermark":"Lisää \\"Tehty Excalidrawilla\\"","handDrawn":"Käsinkirjoitettu","normal":"Tavallinen","code":"Koodi","small":"Pieni","medium":"Keskikoko","large":"Suuri","veryLarge":"Erittäin suuri","solid":"Yhtenäinen","hachure":"Vinoviivoitus","crossHatch":"Ristiviivoitus","thin":"Ohut","bold":"Lihavoitu","left":"Vasen","center":"Keskitä","right":"Oikea","extraBold":"Erittäin lihavoitu","architect":"Arkkitehti","artist":"Taiteilija","cartoonist":"Sarjakuva","fileTitle":"Tiedostonimi","colorPicker":"Värin valinta","canvasBackground":"Piirtoalueen tausta","drawingCanvas":"Piirtoalue","layers":"Tasot","actions":"Toiminnot","language":"Kieli","createRoom":"Jaa yhteistyöistunto","duplicateSelection":"Monista","untitled":"Nimetön","name":"Nimi","yourName":"Nimesi","madeWithExcalidraw":"Tehty Excalidrawilla","group":"Ryhmitä valinta","ungroup":"Pura valittu ryhmä","collaborators":"Yhteistyökumppanit","toggleGridMode":"Ruudukko päälle/pois"},"buttons":{"clearReset":"Tyhjennä piirtoalue","export":"Vie","exportToPng":"Vie PNG-tiedostona","exportToSvg":"Vie SVG-tiedostona","copyToClipboard":"Kopioi leikepöydälle","copyPngToClipboard":"Kopioi PNG-tiedosto leikepöydälle","save":"Tallenna","saveAs":"Tallenna nimellä","load":"Avaa","getShareableLink":"Hae jaettava linkki","close":"Sulje","selectLanguage":"Valitse kieli","scrollBackToContent":"Näytä sisältö","zoomIn":"Zoomaa sisään","zoomOut":"Zoomaa ulos","resetZoom":"Nollaa zoomaus","menu":"Valikko","done":"Valmis","edit":"Muokkaa","undo":"Kumoa","redo":"Tee uudelleen","roomDialog":"Aloita live-yhteistyö","createNewRoom":"Luo huone","toggleFullScreen":"Koko näytön tila päälle/pois","toggleZenMode":"Zen-tila päälle","exitZenMode":"Poistu zen-tilasta"},"alerts":{"clearReset":"Tämä tyhjentää koko piirtoalueen. Jatketaanko?","couldNotCreateShareableLink":"Jaettavan linkin luominen epäonnistui.","couldNotLoadInvalidFile":"Virheellistä tiedostoa ei voitu avata","importBackendFailed":"Palvelimelta tuonti epäonnistui.","cannotExportEmptyCanvas":"Tyhjää piirtoaluetta ei voi viedä.","couldNotCopyToClipboard":"Leikepöydälle kopiointi epäonnistui. Kokeile Chrome-selainta.","decryptFailed":"Salauksen purkaminen epäonnistui.","uploadedSecurly":"Lähetys on turvattu päästä päähän salauksella. Excalidrawin palvelin ja kolmannet osapuolet eivät voi lukea sisältöä."},"toolBar":{"selection":"Valinta","draw":"Vapaa piirto","rectangle":"Suorakulmio","diamond":"Vinoneliö","ellipse":"Soikio","arrow":"Nuoli","line":"Viiva","text":"Teksti","lock":"Pidä valittu työkalu aktiivisena piirron jälkeen"},"headings":{"canvasActions":"Piirtoalueen toiminnot","selectedShapeActions":"Valitun muodon toiminnot","shapes":"Muodot"},"hints":{"linearElement":"Klikkaa piirtääksesi useampi piste, raahaa piirtääksesi yksittäinen viiva","freeDraw":"Paina ja raahaa, päästä irti kun olet valmis","linearElementMulti":"Klikkaa viimeistä pistettä, paina Escape tai paina Enter lopettaaksesi","resize":"Voit rajoittaa mittasuhteet pitämällä SHIFT pohjassa kun muutat kokoa, pidä ALT pohjassa muuttaaksesi kokoa keskipisteen suhteen","rotate":"Voit rajoittaa kulman pitämällä SHIFT pohjassa pyörittäessäsi","lineEditor_info":"Kaksoisnapauta tai paina Enter muokataksesi pisteitä","lineEditor_pointSelected":"Paina Delete poistaaksesi pisteen tai vedä liikuttaaksesi pistettä","lineEditor_nothingSelected":"Valitse liikutettava tai poistettava piste, tai pidä Alt pohjassa ja napauta lisätäksesi uusia pisteitä"},"errorSplash":{"headingMain_pre":"Tapahtui virhe. Yritä ","headingMain_button":"sivun lataamista uudelleen.","clearCanvasMessage":"Jos lataaminen uudelleen ei auta, yritä ","clearCanvasMessage_button":"tyhjentää piirtoalue.","clearCanvasCaveat":" Tämä johtaa työn menetykseen ","trackedToSentry_pre":"Virhe tunnisteella ","trackedToSentry_post":" tallennettiin järjestelmäämme.","openIssueMessage_pre":"Olimme varovaisia emmekä sisällyttäneet tietoa piirroksestasi virheeseen. Jos piirroksesi ei ole yksityinen, harkitsethan kertovasi meille ","openIssueMessage_button":"virheenseurantajärjestelmässämme.","openIssueMessage_post":" Sisällytä alla olevat tiedot kopioimalla ne GitHub-ongelmaan.","sceneContent":"Piirroksen tiedot:"},"roomDialog":{"desc_intro":"Voit kutsua ihmisiä piirrokseesi tekemään yhteistyötä kanssasi.","desc_privacy":"Älä huoli, istunto käyttää päästä päähän salausta, joten mitä tahansa piirrätkin, se pysyy salassa. Edes palvelimemme ei näe mitä keksit.","button_startSession":"Aloita istunto","button_stopSession":"Lopeta istunto","desc_inProgressIntro":"Jaettu istunto on nyt käynnissä.","desc_persistenceWarning":"Huomaa, että työn tiedot jaetaan muiden muiden käyttäjien kesken P2P-menetelmällä, eikä niitä tallenneta palvelimellemme. Jos kaikki työn käyttäjät katkaisevat yhteyden, menetätte työn, ellette tallenna sitä tiedostoksi tai jaettavaksi linkiksi.","desc_shareLink":"Jaa tämä linkki kenelle tahansa, jonka kanssa haluat tehdä yhteistyötä:","desc_exitSession":"Istunnon pysäyttäminen katkaisee yhteyden huoneeseen, mutta voit vielä jatkaa työskentelyä paikallisesti. Huomaa, että tämä ei vaikuta muihin käyttäjiin ja he voivat jatkaa oman versionsa parissa työskentelyä."},"errorDialog":{"title":"Virhe"},"shortcutsDialog":{"title":"Pikanäppäimet","shapes":"Muodot","or":"tai","click":"klikkaa","drag":"vedä","curvedArrow":"Kaareva nuoli","curvedLine":"Kaareva viiva","editor":"Editori","view":"Näkymä","blog":"Lue blogiamme","howto":"Seuraa oppaitamme","github":"Löysitkö ongelman? Kerro meille","textNewLine":"Lisää uusi rivi (teksti)","textFinish":"Lopeta muokkaus (teksti)","zoomToFit":"Zoomaa kaikki elementit näkyviin"},"encrypted":{"tooltip":"Piirroksesi ovat päästä päähän salattuja, joten Excalidrawin palvelimet eivät koskaan näe niitä."},"charts":{"noNumericColumn":"Liitit taulukon ilman lukuja sisältävää saraketta.","tooManyColumns":"Liitit taulukon, jossa on enemmän kuin kaksi saraketta."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Coller","selectAll":"Tout sélectionner","moveCanvas":"Déplacer le canevas","copy":"Copier","copyAsPng":"Copier dans le presse-papier en PNG","copyAsSvg":"Copier dans le presse-papier en SVG","bringForward":"Envoyer vers l\'avant","sendToBack":"Mettre en arrière-plan","bringToFront":"Mettre au premier plan","sendBackward":"Envoyer vers l\'arrière","delete":"Supprimer","copyStyles":"Copier les styles","pasteStyles":"Coller les styles","stroke":"Contour","background":"Arrière-plan","fill":"Remplissage","strokeWidth":"Largeur du contour","strokeStyle":"Style du trait","strokeStyle_solid":"Plein","strokeStyle_dashed":"Tirets","strokeStyle_dotted":"Pointillé","sloppiness":"Style de tracé","opacity":"Opacité","textAlign":"Alignement du texte","fontSize":"Taille de la police","fontFamily":"Police","onlySelected":"Uniquement la sélection","withBackground":"Avec arrière-plan","addWatermark":"Ajouter \\"Fabriqué avec Excalidraw\\"","handDrawn":"Manuscrite","normal":"Normale","code":"Code","small":"Petit","medium":"Moyen","large":"Grand","veryLarge":"Très grand","solid":"Solide","hachure":"Hachure","crossHatch":"Hachure croisée","thin":"Fin","bold":"Épais","left":"Gauche","center":"Centre","right":"Droite","extraBold":"Très épais","architect":"Architecte","artist":"Artiste","cartoonist":"Caricaturiste","fileTitle":"Titre du fichier","colorPicker":"Sélecteur de couleur","canvasBackground":"Fond du canevas","drawingCanvas":"Canevas de dessin","layers":"Calques","actions":"Actions","language":"Langue","createRoom":"Partager une session de collaboration en direct","duplicateSelection":"Dupliquer","untitled":"Sans titre","name":"Nom","yourName":"Votre nom","madeWithExcalidraw":"Fabriqué avec Excalidraw","group":"Grouper la sélection","ungroup":"Dégrouper la sélection","collaborators":"Collaborateurs","toggleGridMode":"Basculer le mode grille"},"buttons":{"clearReset":"Effacer le canvas & réinitialiser la couleur d\'arrière-plan","export":"Exporter","exportToPng":"Exporter en PNG","exportToSvg":"Exporter en SVG","copyToClipboard":"Copier dans le presse-papier","copyPngToClipboard":"Copier le PNG dans le presse-papier","save":"Sauvegarder","saveAs":"Enregistrer sous","load":"Ouvrir","getShareableLink":"Obtenir un lien de partage","close":"Fermer","selectLanguage":"Choisir une langue","scrollBackToContent":"Revenir au contenu","zoomIn":"Zoomer","zoomOut":"Dézoomer","resetZoom":"Réinitialiser le zoom","menu":"Menu","done":"Terminé","edit":"Modifier","undo":"Annuler","redo":"Rétablir","roomDialog":"Démarrer la collaboration en temps réel","createNewRoom":"Créer un nouveau salon","toggleFullScreen":"Mode plein-écran","toggleZenMode":"Activer/désactiver le mode zen","exitZenMode":"Quitter le mode zen"},"alerts":{"clearReset":"L\'intégralité du canvas va être effacé. Êtes-vous sur ?","couldNotCreateShareableLink":"Impossible de créer un lien de partage.","couldNotLoadInvalidFile":"Impossible de charger un fichier invalide","importBackendFailed":"L\'import depuis le backend a échoué.","cannotExportEmptyCanvas":"Impossible d\'exporter un canvas vide.","couldNotCopyToClipboard":"Impossible de copier dans le presse-papier. Essayez d\'utiliser le navigateur Chrome.","decryptFailed":"Les données n\'ont pas pu être déchiffrées.","uploadedSecurly":"Le téléchargement a été sécurisé avec un chiffrement de bout en bout, ce qui signifie que ni Excalidraw ni personne d\'autre ne peut en lire le contenu."},"toolBar":{"selection":"Sélection","draw":"Dessin libre","rectangle":"Rectangle","diamond":"Losange","ellipse":"Ellipse","arrow":"Flèche","line":"Ligne","text":"Texte","lock":"Garder l\'outil sélectionné actif après le dessin"},"headings":{"canvasActions":"Actions du canevas","selectedShapeActions":"Actions pour la forme sélectionnée","shapes":"Formes"},"hints":{"linearElement":"Cliquez pour démarrer plusieurs points, faites glisser pour une seule ligne","freeDraw":"Cliquez et faites glissez, relâchez quand vous avez terminé","linearElementMulti":"Cliquez sur le dernier point ou appuyez sur Échap ou Entrée pour terminer","resize":"Vous pouvez conserver les proportions en maintenant la touche SHIFT pendant le redimensionnement,\\nen maintenant la touche ALT pour redimensionner par rapport au centre","rotate":"Vous pouvez contraindre les angles en maintenant MAJ enfoncé pendant la rotation","lineEditor_info":"Double-cliquez ou appuyez sur Entrée pour éditer les points","lineEditor_pointSelected":"Appuyez sur Supprimer pour supprimer le point ou glissez pour déplacer","lineEditor_nothingSelected":"Sélectionnez un point à déplacer ou à supprimer, ou maintenez Alt enfoncé et cliquez pour ajouter de nouveaux points"},"errorSplash":{"headingMain_pre":"Une erreur est survenue. Essayez ","headingMain_button":"de recharger la page.","clearCanvasMessage":"Si le rechargement ne résout pas l\'erreur, essayez ","clearCanvasMessage_button":"d\'effacer le canevas.","clearCanvasCaveat":" Cela entraînera une perte du travail ","trackedToSentry_pre":"L\'erreur ","trackedToSentry_post":" a été enregistrée dans notre système.","openIssueMessage_pre":"Nous avons été très prudents de ne pas inclure les informations de votre scène dans l\'erreur. Si votre scène n\'est pas privée, veuillez envisager de poursuivre sur notre ","openIssueMessage_button":"outil de suivi des bugs.","openIssueMessage_post":" Veuillez inclure les informations ci-dessous en les copiant-collant dans le ticket GitHub.","sceneContent":"Contenu de la scène :"},"roomDialog":{"desc_intro":"Vous pouvez inviter des personnes dans votre scène actuelle à collaborer avec vous.","desc_privacy":"Ne vous inquiétez pas, la session utilise le chiffrement de bout en bout, donc tout ce que vous dessinez restera privé. Même notre serveur ne sera pas en mesure de voir ce que vous faites.","button_startSession":"Démarrer la session","button_stopSession":"Arrêter la session","desc_inProgressIntro":"La session de collaboration en direct est maintenant en cours.","desc_persistenceWarning":"Notez que les données de la scène sont partagées entre collaborateurs de manière P2P et ne sont pas enregistrés sur notre serveur. Ainsi, si vous vous déconnectez tous, vous perdrez les données sauf si vous les exportez vers un fichier ou un lien de partage.","desc_shareLink":"Partagez ce lien avec ceux avec qui vous souhaitez collaborer :","desc_exitSession":"Arrêter la session vous déconnectera du salon, mais vous pourrez continuer à travailler avec la scène, localement. Notez que cela n\'affectera pas les autres personnes, et ils seront toujours en mesure de collaborer sur leur version."},"errorDialog":{"title":"Erreur"},"shortcutsDialog":{"title":"Raccourcis clavier","shapes":"Formes","or":"ou","click":"cliquer","drag":"glisser","curvedArrow":"Flèche courbée","curvedLine":"Ligne courbée","editor":"Éditeur","view":"Afficher","blog":"Lisez notre blog","howto":"Suivez nos guides","github":"Vous avez trouvé un problème ? Envoyer","textNewLine":"Ajouter une nouvelle ligne (texte)","textFinish":"Terminer l\'édition (texte)","zoomToFit":"Zoomer pour visualiser tous les éléments"},"encrypted":{"tooltip":"Vos dessins sont cryptés de bout en bout, les serveurs d\'Excalidraw ne les verront jamais."},"charts":{"noNumericColumn":"Vous avez collé une feuille de calcul sans données numérique.","tooManyColumns":"Vous avez collé une feuille de calcul avec plus de deux colonnes."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"הדבק","selectAll":"בחר הכל","moveCanvas":"","copy":"העתק","copyAsPng":"העתק ללוח כ PNG","copyAsSvg":"העתק ללוח כ SVG","bringForward":"הבא שכבה קדימה","sendToBack":"העבר לסוף","bringToFront":"העבר לחזית","sendBackward":"העבר שכבה אחורה","delete":"מחק","copyStyles":"העתק סגנון","pasteStyles":"הדבק סגנון","stroke":"קו מתאר","background":"רקע","fill":"מילוי","strokeWidth":"עובי קו מתאר","strokeStyle":"סגנון קו המתאר","strokeStyle_solid":"מלא","strokeStyle_dashed":"מקווקו","strokeStyle_dotted":"מנוקד","sloppiness":"סגנון","opacity":"אטימות","textAlign":"יישור טקסט","fontSize":"גודל גופן","fontFamily":"סוג הגופן","onlySelected":"רק מה שנבחר","withBackground":"עם רקע","addWatermark":"הוסף \\"נוצר באמצעות Excalidraw\\"","handDrawn":"כתב יד","normal":"רגיל","code":"קוד","small":"קטן","medium":"בנוני","large":"גדול","veryLarge":"ענק","solid":"מוצק","hachure":"קווים משופעים","crossHatch":"קווים מוצלבים","thin":"דק","bold":"מודגש","left":"שמאל","center":"מרכז","right":"ימין","extraBold":"עבה","architect":"ארכיטקט","artist":"אמן","cartoonist":"קריקטוריסט","fileTitle":"כותרת קובץ","colorPicker":"בחירת צבע","canvasBackground":"רקע הלוח","drawingCanvas":"לוח ציור","layers":"שכבות","actions":"פעולות","language":"שפה","createRoom":"התחל שיתוף פעולה חי","duplicateSelection":"שכפל","untitled":"ללא כותרת","name":"שם","yourName":"שם","madeWithExcalidraw":"נוצר באמצעות Excalidraw","group":"אחד לקבוצה","ungroup":"פרק קבוצה","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"אפס את הלוח","export":"ייצא","exportToPng":"יצא ל PNG","exportToSvg":"יצא ל SVG","copyToClipboard":"העתק ללוח","copyPngToClipboard":"העתק PNG ללוח","save":"שמור","saveAs":"","load":"טען","getShareableLink":"קבל קישור לשיתוף","close":"סגור","selectLanguage":"בחר שפה","scrollBackToContent":"גלול בחזרה לתוכן","zoomIn":"הגדל","zoomOut":"הקטן","resetZoom":"איפוס זום","menu":"תפריט","done":"בוצע","edit":"ערוך","undo":"בטל","redo":"בצע מחדש","roomDialog":"התחל שיתוף חי","createNewRoom":"צור חדר","toggleFullScreen":"הפעל/הפסק מסך מלא","toggleZenMode":"התחל/הפסק מצב תפריט מרחף","exitZenMode":"צא ממצב תפריט מרחף"},"alerts":{"clearReset":"פעולה זו תנקה את כל הלוח. אתה בטוח?","couldNotCreateShareableLink":"לא ניתן לייצר לינק לשיתוף.","couldNotLoadInvalidFile":"לא ניתן לטעון קובץ שאיננו תואם","importBackendFailed":"ייבוא מהשרת נכשל.","cannotExportEmptyCanvas":"לא ניתן לייצא לוח ריק.","couldNotCopyToClipboard":"לא ניתן להעתיק ללוח. נסה להשתמש בדפדפן Chrome.","decryptFailed":"לא ניתן לפענח מידע.","uploadedSecurly":"ההעלאה הוצפנה מקצה לקצה, ולכן שרת Excalidraw וצד שלישי לא יכולים לקרוא את התוכן."},"toolBar":{"selection":"בחירה","draw":"ציור חופשי","rectangle":"מרובע","diamond":"מעוין","ellipse":"אליפסה","arrow":"חץ","line":"קו","text":"טקסט","lock":"השאר את הכלי הנבחר פעיל גם לאחר סיום הציור"},"headings":{"canvasActions":"פעולות הלוח","selectedShapeActions":"פעולות צורה שנבחרה","shapes":"צורות"},"hints":{"linearElement":"הקלק בשביל לבחור נקודות מרובות, גרור בשביל קו בודד","freeDraw":"לחץ וגרור, שחרר כשסיימת","linearElementMulti":"הקלק על הנקודה האחרונה או הקש Escape או Enter לסיום","resize":"ניתן להגביל פרופורציות על ידי לחיצה על SHIFT תוך כדי שינוי גודל,\\nהחזק ALT בשביל לשנות גודל ביחס למרכז","rotate":"ניתן להגביל זוויות על ידי לחיצה על SHIFT תוך כדי סיבוב","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"אירעה שגיאה. נסה ","headingMain_button":"טוען את העמוד מחדש.","clearCanvasMessage":"אם טעינה מחדש לא עובדת, נסה ","clearCanvasMessage_button":"מנקה את הלוח.","clearCanvasCaveat":" זה יביא לאובדן עבודה ","trackedToSentry_pre":"שגיאה עם מזהה ","trackedToSentry_post":" נמצאה במערכת שלנו.","openIssueMessage_pre":"נזהרנו מאוד שלא לכלול מידע שלך בשגיאה. אם המידע איננו אישי, בבקשה עקוב אחר ","openIssueMessage_button":"מעקב באגים.","openIssueMessage_post":" בבקשה כלול את המידע למטה באמצעות העתקה והדבקה בנושא ב GitHub.","sceneContent":"תוכן הלוח:"},"roomDialog":{"desc_intro":"אתה יכול להזמין אנשים ללוח הנוכחי שלך בכדי לשתף פעולה.","desc_privacy":"אל דאגה, השיתוף מוצפן מקצה לקצה, כך שכל מה שתצייר ישאר פרטי. אפילו השרתים שלנו לא יוכלו לראות את מה שאתה ממציא.","button_startSession":"התחל שיתוף","button_stopSession":"הפסק שיתוף","desc_inProgressIntro":"שיתוף חי כרגע בפעולה.","desc_persistenceWarning":"שים לב ששיתוף הלוח נעשה בין המשתתפים ממחשב למחשב באופן ישיר, ולא נשמר בשרתים שלנו. לכן, אם כולכם תתנתקו, המידע יאבד אלא אם כן תייצא אותו לקובץ או באמצעות לינק הניתן לשיתוף.","desc_shareLink":"שתף את הקישור עם כל מי שאתה מעוניין לעבוד אתו:","desc_exitSession":"עצירת השיתוף תנתק אותך מהחדר, אבל עדיין תוכל להמשיך לעבוד על הלוח, מקומית. שים לב שזה לא ישפיע על אנשים אחרים, והם עדיין יוכלו לשתף פעולה עם הגירסה שלהם."},"errorDialog":{"title":"שגיאה"},"shortcutsDialog":{"title":"קיצורי מקלדת","shapes":"צורות","or":"או","click":"לחץ","drag":"גרור","curvedArrow":"חץ מעוקל","curvedLine":"קו מעוקל","editor":"עורך","view":"תצוגה","blog":"קרא את הבלוג שלנו","howto":"עקוב אחר המדריכים שלנו","github":"מצאת בעיה? דווח","textNewLine":"הוסף שורה חדשה (טקסט)","textFinish":"סיים עריכה (טקסט)","zoomToFit":"זום להתאמת כל האלמנטים למסך"},"encrypted":{"tooltip":"הרישומים שלך מוצפנים מקצה לקצה כך שהשרתים של Excalidraw לא יראו אותם לעולם."},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"चिपकाएँ","selectAll":"सभी चुनें","moveCanvas":"कैनवास को स्थानांतरित करें","copy":"प्रतिलिपि","copyAsPng":"क्लिपबोर्ड पर कॉपी करें ,पीएनजी के रूप में","copyAsSvg":"क्लिपबोर्ड पर कॉपी करें,एसवीजी के रूप में","bringForward":"सामने लाएं","sendToBack":"पीछे भेजें","bringToFront":"सामने लाएँ","sendBackward":"पीचे भीजे","delete":"मिटाए","copyStyles":"कॉपी स्टाइल","pasteStyles":"स्टाइल पेस्ट करें","stroke":"रेखा","background":"पृष्ठभूमि","fill":"भरें","strokeWidth":"रेखा की चौड़ाई","strokeStyle":"स्ट्रोक का आकार","strokeStyle_solid":"ठोस","strokeStyle_dashed":"डैश","strokeStyle_dotted":"बिंदीदार","sloppiness":"बेढ़ंगापन","opacity":"अपारदर्शिता","textAlign":"टेक्स्ट संरेखन","fontSize":"फ़ॉन्ट का आकार","fontFamily":"फ़ॉन्ट का परिवार","onlySelected":"केवल चयनित","withBackground":"बैकग्राउंड के साथ","addWatermark":"ऐड \\"मेड विथ एक्सकैलिडराव\\"","handDrawn":"हाथ से बनाया हुआ","normal":"साधारण","code":"कोड","small":"छोटा","medium":"मध्यम","large":"बड़ा","veryLarge":"बहुत बड़ा","solid":"दृढ़","hachure":"हाचुरे","crossHatch":"क्रॉस हैच","thin":"पतला","bold":"मोटा","left":"बाएं","center":"मध्य","right":"दाएँ","extraBold":"बहुत मोटा","architect":"वास्तुकार","artist":"कलाकार","cartoonist":"व्यंग्य चित्रकार","fileTitle":"फ़ाइल का शीर्षक","colorPicker":"रंग चयन","canvasBackground":"कैनवास बैकग्राउंड","drawingCanvas":"कैनवास बना रहे हैं","layers":"परतें","actions":"कार्रवाई","language":"भाषा","createRoom":"अधिवेशन","duplicateSelection":"डुप्लिकेट","untitled":"अशीर्षित","name":"नाम","yourName":"आपका नाम","madeWithExcalidraw":"मेड विथ एक्सकैलिडराव","group":"समूह चयन","ungroup":"समूह चयन असमूहीकृत करें","collaborators":"सहयोगी","toggleGridMode":"टॉगल ग्रिड मोड"},"buttons":{"clearReset":"कैनवास रीसेट करें","export":"निर्यात","exportToPng":"पीएनजी के रूप में निर्यात करे","exportToSvg":"Svg के रूप में निर्यात करे","copyToClipboard":"क्लिपबोर्ड पर प्रतिलिपि बनाएँ","copyPngToClipboard":"क्लिपबोर्ड पर कॉपी करें,पीएनजी के रूप में","save":"सहेजें","saveAs":"सेव करे इस तरह","load":"लोड करें","getShareableLink":"साझा करने योग्य लिंक प्राप्त करें","close":"बंद करें","selectLanguage":"भाषा चुनें","scrollBackToContent":"सामग्री पर वापस स्क्रॉल करें","zoomIn":"बड़ा करें","zoomOut":"छोटा करें","resetZoom":"ज़ूम रीसेट करें","menu":"मेन्यू","done":"समाप्त","edit":"संशोधन करें","undo":"पूर्ववत् करें","redo":"फिर से करें","roomDialog":"लाइव सहयोग शुरू करें","createNewRoom":"एक नया कमरा बनाएं","toggleFullScreen":"पूर्णस्क्रीन चालू करें","toggleZenMode":"टॉगल ज़ेन मोड","exitZenMode":"जेन मोड से बाहर निकलें"},"alerts":{"clearReset":"इससे पूरा कैनवास साफ हो जाएगा। क्या आपको यकीन है?","couldNotCreateShareableLink":"साझा करने योग्य लिंक नहीं बनाया जा सका।","couldNotLoadInvalidFile":"अमान्य फ़ाइल लोड नहीं की जा सकी","importBackendFailed":"बैकएंड से आयात करना विफल रहा।","cannotExportEmptyCanvas":"खाली कैनवास निर्यात नहीं कर सकता।","couldNotCopyToClipboard":"क्लिपबोर्ड पर कॉपी नहीं किया जा सका। Chrome ब्राउज़र का उपयोग करने का प्रयास करें।","decryptFailed":"डेटा को डिक्रिप्ट नहीं किया जा सका।","uploadedSecurly":"अपलोड को एंड-टू-एंड एन्क्रिप्शन के साथ सुरक्षित किया गया है, जिसका मतलब है कि एक्सक्लूसिव सर्वर और थर्ड पार्टी कंटेंट नहीं पढ़ सकते हैं।"},"toolBar":{"selection":"चयन","draw":"मुफ्त ड्रा","rectangle":"आयात","diamond":"तिर्यग्वर्ग","ellipse":"दीर्घवृत्त","arrow":"तीर","line":"रेखा","text":"पाठ","lock":"ड्राइंग के बाद चयनित टूल को सक्रिय रखें"},"headings":{"canvasActions":"कैनवास क्रिया","selectedShapeActions":"चयनित आकृति क्रियाएं","shapes":"आकृतियाँ"},"hints":{"linearElement":"कई बिंदुओं को शुरू करने के लिए क्लिक करें, सिंगल लाइन के लिए खींचें","freeDraw":"क्लिक करें और खींचें। समाप्त करने के लिए, छोड़ो","linearElementMulti":"अंतिम बिंदु पर क्लिक करें या समाप्त होने के लिए एस्केप या एंटर दबाएं","resize":"आकार बदलते समय आप SHIFT को पकड़ कर अनुपात में कमी कर सकते हैं,\\nकेंद्र से आकार बदलने के लिए ALT दबाए रखें","rotate":"आप घूर्णन करते समय SHIFT पकड़कर कोणों को विवश कर सकते हैं","lineEditor_info":"बिंदुओं को संपादित करने के लिए Enter पर डबल-क्लिक करें या दबाएँ","lineEditor_pointSelected":"बिंदु हटाने या स्थानांतरित करने के लिए खींचें के लिए हटाएँ दबाएं","lineEditor_nothingSelected":"स्थानांतरित करने या हटाने के लिए एक बिंदु का चयन करें, या Alt दबाए रखें और नए बिंदुओं को जोड़ने के लिए क्लिक करें"},"errorSplash":{"headingMain_pre":"एक त्रुटि का सामना करना पड़ा। प्रयत्न ","headingMain_button":"इस पृष्ठ को पुनः लोड करें","clearCanvasMessage":"यदि पुनः लोड करना काम नहीं करता है, तो प्रयास करें ","clearCanvasMessage_button":"कैनवास साफ करना।","clearCanvasCaveat":" इससे काम का नुकसान होगा ","trackedToSentry_pre":"पहचानकर्ता के साथ त्रुटि ","trackedToSentry_post":" हमारे सिस्टम पर नज़र रखी गई थी।","openIssueMessage_pre":"हम बहुत सतर्क थे कि त्रुटि पर आपकी दृश्य जानकारी शामिल न करें। यदि आपका दृश्य निजी नहीं है, तो कृपया हमारे बारे में विचार करें ","openIssueMessage_button":"बग ट्रैकर","openIssueMessage_post":" कृपया GitHub मुद्दे को कॉपी और पेस्ट करके नीचे दी गई जानकारी शामिल करें।","sceneContent":"दृश्य सामग्री:"},"roomDialog":{"desc_intro":"आप अपने वर्तमान दृश्य के लोगों को अपने साथ सहयोग करने के लिए आमंत्रित कर सकते हैं।","desc_privacy":"चिंता न करें, सत्र अंत-से-अंत एन्क्रिप्शन का उपयोग करता है, इसलिए आप जो भी ड्रा करेंगे वह निजी रहेगा। यहां तक कि हमारा सर्वर भी नहीं देख पाएगा कि आप क्या कर रहे हैं।","button_startSession":"सत्र प्रारंभ करें","button_stopSession":"सत्र रुकें","desc_inProgressIntro":"लाइव सहयोग सत्र अब जारी है।","desc_persistenceWarning":"ध्यान दें कि दृश्य डेटा एक पी 2 पी फैशन में सहयोगियों के बीच साझा किया गया है, और हमारे सर्वर पर कायम नहीं है। इस प्रकार, यदि आप सभी डिस्कनेक्ट करते हैं, तो आप डेटा खो देंगे जब तक आप इसे फ़ाइल या साझा करने योग्य लिंक पर निर्यात नहीं करते।","desc_shareLink":"इस लिंक को आप जिस किसी के साथ भी सहयोग करना चाहते हैं, उसके साथ साझा करें","desc_exitSession":"सत्र रोकना आपको रूम से बाहर कर देगा, लेकिन आप स्थानीय स्तर पर दृश्य के साथ काम करना जारी रख पाएंगे। ध्यान दें कि यह अन्य लोगों को प्रभावित नहीं करेगा, और वे अभी भी अपने संस्करण पर सहयोग करने में सक्षम होंगे।"},"errorDialog":{"title":"गलती"},"shortcutsDialog":{"title":"कीबोर्ड के शॉर्टकट्स","shapes":"आकृतियाँ","or":"या","click":"क्लिक करें","drag":"खींचें","curvedArrow":"घुमावदार तीर","curvedLine":"घुमावदार रेखा","editor":"संपादक","view":"दृश्य","blog":"हमारा ब्लॉग पढे","howto":"हमारे गाइड का पालन करें","github":"एक मुद्दा मिला? प्रस्तुत करे","textNewLine":"नई पंक्ति (पाठ) जोड़ें","textFinish":"संपादन समाप्त करें (पाठ)","zoomToFit":"सभी तत्वों को फिट करने के लिए ज़ूम करें"},"encrypted":{"tooltip":"आपके चित्र अंत-से-अंत एन्क्रिप्टेड हैं, इसलिए एक्सक्लूसिव्रॉव के सर्वर उन्हें कभी नहीं देखेंगे।"},"charts":{"noNumericColumn":"आपने एक संख्यात्मक कॉलम के बिना एक स्प्रेडशीट चिपकाई।","tooManyColumns":"आपने दो से अधिक कॉलम के साथ एक स्प्रेडशीट चिपकाई।"}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Beillesztés","selectAll":"Összes kijelölése","moveCanvas":"","copy":"Másolás","copyAsPng":"Vágólapra másolás mint PNG","copyAsSvg":"Vágólapra másolás mint SVG","bringForward":"Előrébb hozás","sendToBack":"","bringToFront":"","sendBackward":"","delete":"Törlés","copyStyles":"","pasteStyles":"","stroke":"Körvonal","background":"Háttér","fill":"Kitöltés","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"Stílus","opacity":"Áttetszőség","textAlign":"","fontSize":"","fontFamily":"","onlySelected":"Csak a kiválasztott","withBackground":"Háttérrel együtt","addWatermark":"","handDrawn":"","normal":"Normál","code":"Code","small":"Kicsi","medium":"Közepes","large":"Nagy","veryLarge":"","solid":"Kitöltött","hachure":"Vonalkázott","crossHatch":"","thin":"Vékony","bold":"Félkövér","left":"Bal","center":"","right":"","extraBold":"","architect":"Tervezői","artist":"Művészi","cartoonist":"Karikatúrás","fileTitle":"Fájl címe","colorPicker":"Színválasztó","canvasBackground":"Vászon háttérszíne","drawingCanvas":"","layers":"Rétegek","actions":"Műveletek","language":"Nyelv","createRoom":"Élő együttmüködés megosztása","duplicateSelection":"","untitled":"","name":"Név","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Vászon törlése","export":"Exportálás","exportToPng":"Exportálás PNG-be","exportToSvg":"Exportálás SVG-be","copyToClipboard":"Vágólapra másolás","copyPngToClipboard":"PNG másolása a vágólapra","save":"Mentés","saveAs":"","load":"Betöltés","getShareableLink":"Megosztható link létrehozása","close":"Bezárás","selectLanguage":"","scrollBackToContent":"Visszagörgetés a tartalomhoz","zoomIn":"Nagyítás","zoomOut":"Kicsinyítés","resetZoom":"Nagyítás alaphelyzetbe","menu":"Menü","done":"Kész","edit":"Szerkesztés","undo":"Visszavonás","redo":"Újra végrehajtás","roomDialog":"Élő együttműködés indítása","createNewRoom":"Új szoba létrehozása","toggleFullScreen":"","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"Ez a művelet törli a vászont. Biztos benne?","couldNotCreateShareableLink":"Nem sikerült megosztható linket létrehozni.","couldNotLoadInvalidFile":"","importBackendFailed":"Nem sikerült betölteni a szerverről.","cannotExportEmptyCanvas":"Üres vászont nem lehet exportálni.","couldNotCopyToClipboard":"Nem sikerült vágólapra menteni. Próbálja meg Chrome böngészővel.","decryptFailed":"Nem sikerült dekódolni az adatot.","uploadedSecurly":"A feltöltést végpontok közötti titkosítással biztosítottuk, ami azt jelenti, hogy az Excalidraw szerver és harmadik felek nem tudják elolvasni a feltöltés tartalmát."},"toolBar":{"selection":"Kiválasztás","draw":"","rectangle":"Téglalap","diamond":"Rombusz","ellipse":"Ellipszis","arrow":"Nyíl","line":"Vonal","text":"Szöveg","lock":"Rajzolás után az aktív eszközt tartsa kiválasztva"},"headings":{"canvasActions":"Vászon műveletek","selectedShapeActions":"Kiválasztott forma műveletei","shapes":"Formák"},"hints":{"linearElement":"Kattintson a több pont elindításához, húzza az egyenes vonalhoz","freeDraw":"","linearElementMulti":"Kattintson az utolsó pontra, vagy nyomja meg az Escape vagy az Enter billentyűt a befejezéshez","resize":"","rotate":"A SHIFT billentyű lenyomva tartásával korlátozhatja a szögek illesztését","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"Hiba történt. Próbálja ","headingMain_button":"újratölteni az oldalt.","clearCanvasMessage":"Ha az újratöltés nem működik, próbálja ","clearCanvasMessage_button":"törölni a vászont.","clearCanvasCaveat":" Ezzel elveszik minden eddigi munkája ","trackedToSentry_pre":"A hibakód azonosítóval ","trackedToSentry_post":" nyomon van követve a rendszerünkben.","openIssueMessage_pre":"Nagyon vigyáztunk, hogy ne adjunk meg a jelenetre vonatkozó információkat a hibában. Ha a jeleneted nem bizalmas, kérjük fontolja meg a jelenet hozzáadását a hibakövető rendszerünkben ","openIssueMessage_button":"hibabejelentő.","openIssueMessage_post":" Kérjük, másolja be az alábbi információkat a GitHub problémába.","sceneContent":"Jelenet tartalma:"},"roomDialog":{"desc_intro":"Meghívhat embereket a jelenlegi jelenetbe, hogy együttműködjenek önnel.","desc_privacy":"Ne aggódjon, a munkamenet végpontok közötti titkosítást használ, tehát bármit rajzol, privát marad. Még a szerverünk sem fogja látni, hogy mit rajzolt.","button_startSession":"Munkamenet indítása","button_stopSession":"Munkamenet leállítása","desc_inProgressIntro":"Az élő együttműködési munkamenet folyamatban van.","desc_persistenceWarning":"","desc_shareLink":"Ossza meg ezt a linket bárkivel, akivel együtt szeretne működni:","desc_exitSession":""},"errorDialog":{"title":""},"shortcutsDialog":{"title":"","shapes":"","or":"","click":"","drag":"","curvedArrow":"","curvedLine":"","editor":"","view":"","blog":"","howto":"","github":"","textNewLine":"","textFinish":"","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Tempel","selectAll":"Pilih semua","moveCanvas":"","copy":"Salin","copyAsPng":"Salin ke Papan Klip Sebagai PNG","copyAsSvg":"Salin ke Papan Klip Sebagai SVG","bringForward":"Majukan","sendToBack":"Bawa ke Belakang","bringToFront":"Bawa ke depan","sendBackward":"Mundurkan","delete":"Hapus","copyStyles":"","pasteStyles":"","stroke":"Stroke","background":"Latar","fill":"Isian","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"Sloppiness","opacity":"Opasitas","textAlign":"Perataan Teks","fontSize":"Ukuran font","fontFamily":"Jenis font","onlySelected":"Hanya yang Dipilih","withBackground":"Dengan Latar","addWatermark":"Tambahkan \\"Dibuat dengan Excalidraw\\"","handDrawn":"","normal":"Biasa","code":"Kode","small":"Kecil","medium":"Menengah","large":"Besar","veryLarge":"","solid":"Padat","hachure":"Garis-garis","crossHatch":"","thin":"Lembut","bold":"Tebal","left":"Kiri","center":"Tengah","right":"Kanan","extraBold":"","architect":"Arsitek","artist":"Artis","cartoonist":"Kartunis","fileTitle":"Judul Berkas","colorPicker":"Pilihan Warna","canvasBackground":"Latar Kanvas","drawingCanvas":"","layers":"Lapisan","actions":"Aksi","language":"Bahasa","createRoom":"","duplicateSelection":"Duplikat","untitled":"Tanpa judul","name":"Nama","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Setel Ulang Kanvas","export":"Ekspor","exportToPng":"Ekspor ke PNG","exportToSvg":"Ekspor ke SVG","copyToClipboard":"Salin ke Papan Klip","copyPngToClipboard":"Salin PNG ke Papan Klip","save":"Simpan","saveAs":"","load":"Muat","getShareableLink":"Buat Tautan yang Bisa Dibagian","close":"Tutup","selectLanguage":"Pilih Bahasa","scrollBackToContent":"Gulir kembali ke konten","zoomIn":"Besarkan","zoomOut":"Kecilkan","resetZoom":"Reset Pembesaran","menu":"Menu","done":"Selesai","edit":"Sunting","undo":"Urungkan","redo":"Mengulang","roomDialog":"Mulai kolaborasi secara langsung","createNewRoom":"Buat ruang baru","toggleFullScreen":"Aktif / Nonaktifkan layar penuh","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"Ini akan menghapus semua yang ada dikanvas. Apakah kamu yakin ?","couldNotCreateShareableLink":"Tidak bisa membuat tautan yang bisa dibagikan","couldNotLoadInvalidFile":"Tidak Dapat Memuat Berkas yang Tidak Valid","importBackendFailed":"Gagal mengimpor dari backend","cannotExportEmptyCanvas":"Tidak bisa mengekspor kanvas kosong","couldNotCopyToClipboard":"Tidak bisa menyalin ke papan klip. Coba gunakan Browser Chrome","decryptFailed":"Tidak dapat mengdeskripsi data.","uploadedSecurly":"Pengunggahan ini telah diamankan menggunakan enkripsi end-to-end, artinya server Excalidraw dan pihak ketiga tidak data membaca nya"},"toolBar":{"selection":"Pilihan","draw":"","rectangle":"Persegi","diamond":"Berlian","ellipse":"Elips","arrow":"Panah","line":"Garis","text":"Teks","lock":"Biarkan alat yang dipilih aktif setelah menggambar"},"headings":{"canvasActions":"Opsi Kanvas","selectedShapeActions":"Opsi bentuk yang dipilih","shapes":"Bentuk"},"hints":{"linearElement":"Klik untuk memulai banyak poin, seret untuk satu baris","freeDraw":"","linearElementMulti":"","resize":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"muat ulang halaman.","clearCanvasMessage":"Jika memuat halaman tidak bisa, coba ","clearCanvasMessage_button":"bersihkan canvas.","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":" Mohon berikan informasi dibawah ini dengan menyalin dan tempelkan di Github issue.","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"Mulai Sesi","button_stopSession":"Hentikan sesi","desc_inProgressIntro":"","desc_persistenceWarning":"","desc_shareLink":"","desc_exitSession":""},"errorDialog":{"title":""},"shortcutsDialog":{"title":"","shapes":"","or":"","click":"","drag":"","curvedArrow":"","curvedLine":"","editor":"","view":"","blog":"","howto":"","github":"","textNewLine":"","textFinish":"","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Incolla","selectAll":"Seleziona tutto","moveCanvas":"","copy":"Copia","copyAsPng":"Copia negli appunti come PNG","copyAsSvg":"Copia negli appunti come SVG","bringForward":"Porta avanti","sendToBack":"Manda in fondo","bringToFront":"Porta in cima","sendBackward":"Manda dietro","delete":"Elimina","copyStyles":"Copia stili","pasteStyles":"Incolla stili","stroke":"Tratto","background":"Sfondo","fill":"Riempimento","strokeWidth":"Spessore del tratto","strokeStyle":"Stile del tratto","strokeStyle_solid":"Pieno","strokeStyle_dashed":"Tratteggiato","strokeStyle_dotted":"Punteggiato","sloppiness":"Imprecisione","opacity":"Opacità","textAlign":"Allineamento del testo","fontSize":"Dimensione carattere","fontFamily":"Carattere","onlySelected":"Solo selezionati","withBackground":"Con Sfondo","addWatermark":"Aggiungi \\"Creato con Excalidraw\\"","handDrawn":"A mano libera","normal":"Normale","code":"Codice","small":"Piccolo","medium":"Medio","large":"Grande","veryLarge":"Molto grande","solid":"Pieno","hachure":"Tratteggio obliquo","crossHatch":"Tratteggio incrociato","thin":"Sottile","bold":"Grassetto","left":"Sinistra","center":"Centro","right":"Destra","extraBold":"Extra Grassetto","architect":"Architetto","artist":"Artista","cartoonist":"Fumettista","fileTitle":"Titolo file","colorPicker":"Selettore colore","canvasBackground":"Sfondo tela","drawingCanvas":"Area di disegno","layers":"Livelli","actions":"Azioni","language":"Lingua","createRoom":"Condividi una sessione di collaborazione in diretta","duplicateSelection":"Duplica","untitled":"Senza titolo","name":"Nome","yourName":"Il vostro nome","madeWithExcalidraw":"Creato con Excalidraw","group":"Crea gruppo da selezione","ungroup":"Dividi gruppo da selezione","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Ripristina la tela","export":"Esporta","exportToPng":"Esporta come PNG","exportToSvg":"Esporta come SVG","copyToClipboard":"Copia negli appunti","copyPngToClipboard":"Copia PNG negli appunti","save":"Salva","saveAs":"Salva con nome","load":"Carica","getShareableLink":"Ottieni link condivisibile","close":"Chiudi","selectLanguage":"Seleziona lingua","scrollBackToContent":"Scorri indietro fino al contenuto","zoomIn":"Aumenta ingrandimento","zoomOut":"Riduci ingrandimento","resetZoom":"Ripristina ingrandimento","menu":"Menù","done":"Fatto","edit":"Modifica","undo":"Annulla","redo":"Ripeti","roomDialog":"Inizia collaborazione in diretta","createNewRoom":"Crea nuova stanza","toggleFullScreen":"Attiva/Disattiva schermo intero","toggleZenMode":"Attiva/Disattiva modalità zen","exitZenMode":"Uscire dalla modalità zen"},"alerts":{"clearReset":"Questo cancellerà l\'intera tela. Sei sicuro?","couldNotCreateShareableLink":"Non riesco a creare un link condivisibile.","couldNotLoadInvalidFile":"Impossibile caricare un file no valido","importBackendFailed":"Importazione dal server fallita.","cannotExportEmptyCanvas":"Non è possibile esportare una tela vuota.","couldNotCopyToClipboard":"Impossibile copiare negli appunti. Provare usando il browser Chrome.","decryptFailed":"Impossibile decriptare i dati.","uploadedSecurly":"L\'upload è stato protetto con la crittografia end-to-end, il che significa che il server Excalidraw e terze parti non possono leggere il contenuto."},"toolBar":{"selection":"Selezione","draw":"Disegno libero","rectangle":"Rettangolo","diamond":"Rombo","ellipse":"Ellisse","arrow":"Freccia","line":"Linea","text":"Testo","lock":"Mantieni lo strumento selezionato attivo dopo aver disegnato"},"headings":{"canvasActions":"Azioni sulla Tela","selectedShapeActions":"Impostazioni della forma selezionata","shapes":"Forme"},"hints":{"linearElement":"Clicca per iniziare una linea in più punti, trascina per singola linea","freeDraw":"Clicca e trascina, rilascia quando avrai finito","linearElementMulti":"Clicca sull\'ultimo punto o premi Esc o Invio per finire","resize":"Per vincolare le proporzioni, tenir premuto MAIUSC durante il ridimensionamento;\\nper ridimensionare dal centro, tenir premuto ALT","rotate":"Puoi mantenere gli angoli tenendo premuto SHIFT durante la rotazione","lineEditor_info":"Fai doppio click o premi invio per modificare i punti","lineEditor_pointSelected":"Premi il tasto cancella per rimuovere il punto o trascina per spostare","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"Si è verificato un errore. Provare ","headingMain_button":"ricaricando la pagina.","clearCanvasMessage":"Se ricaricare non funziona, prova ","clearCanvasMessage_button":"pulire la tela.","clearCanvasCaveat":" Questo risulterà nella perdita del lavoro ","trackedToSentry_pre":"L\'errore con identificativo ","trackedToSentry_post":" è stato tracciato nel nostro sistema.","openIssueMessage_pre":"Siamo stati molto cauti nel non includere informazioni della scena nell\'errore. Se la tua scena non è privata, ti preghiamo di considerare la sua inclusione nel nostro ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Per favore includi le informazioni riportate qui sotto copiandole e incollandole nella issue di GitHub.","sceneContent":"Contenuto della scena:"},"roomDialog":{"desc_intro":"Puoi invitare persone nella tua scena attuale per collaborare con te.","desc_privacy":"Non preoccuparti, la sessione utilizza la crittografia end-to-end, quindi qualsiasi cosa disegni rimarrà privata. Nemmeno il nostro server sarà in grado di vedere cosa hai creato.","button_startSession":"Avvia sessione","button_stopSession":"Termina sessione","desc_inProgressIntro":"La sessione di collaborazione è attualmente in corso.","desc_persistenceWarning":"Tieni presente che i dati della scena sono condivisi tra i collaboratori in modo P2P e non persistono sul nostro server. Pertanto, se vi disconnettere tutti, perderete i dati a meno che non li esportiate in un file o in un link condivisibile.","desc_shareLink":"Condividi questo link con chiunque desideri collaborare:","desc_exitSession":"Interrompere la sessione scollegherà la tua stanza ma potrai continuare a lavorare con la scena, localmente. Tieni presente che questo non influirà sulle altre persone, e che saranno ancora in grado di collaborare alla loro versione."},"errorDialog":{"title":"Errore"},"shortcutsDialog":{"title":"Scorciatoie da tastiera","shapes":"Forme","or":"oppure","click":"click","drag":"trascina","curvedArrow":"Freccia curva","curvedLine":"Linea curva","editor":"Editor","view":"Vista","blog":"Leggi il nostro blog","howto":"Segui le nostre guide","github":"Hai trovato un problema? Segnalalo","textNewLine":"Aggiungi nuova riga (testo)","textFinish":"Completa la modifica (testo)","zoomToFit":"Adatta zoom per mostrare tutti gli elementi"},"encrypted":{"tooltip":"I tuoi disegni sono crittografati end-to-end in modo che i server di Excalidraw non li possano mai vedere."},"charts":{"noNumericColumn":"Hai incollato un foglio di calcolo senza una colonna numerica.","tooManyColumns":"Hai incollato un foglio di calcolo con più di due colonne."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"貼り付け","selectAll":"すべて選択","moveCanvas":"","copy":"コピー","copyAsPng":"PNGとしてクリップボードへコピー","copyAsSvg":"SVGとしてクリップボードへコピー","bringForward":"前面に移動","sendToBack":"最背面に移動","bringToFront":"最前面に移動","sendBackward":"背面に移動","delete":"削除","copyStyles":"スタイルのコピー","pasteStyles":"スタイルの貼り付け","stroke":"線の色","background":"背景の色","fill":"塗りつぶし","strokeWidth":"線の幅","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"線のばらつき","opacity":"透明度","textAlign":"テキストの配置","fontSize":"フォントの大きさ","fontFamily":"フォントの種類","onlySelected":"選択中のみ","withBackground":"背景を含める","addWatermark":"\\"Made with Excalidraw\\"と表示","handDrawn":"手描き風","normal":"普通","code":"コード","small":"小","medium":"中","large":"大","veryLarge":"特大","solid":"ベタ塗り","hachure":"斜線","crossHatch":"網掛け","thin":"細","bold":"太字","left":"左寄せ","center":"中央寄せ","right":"右寄せ","extraBold":"極太","architect":"正確","artist":"アート","cartoonist":"漫画風","fileTitle":"ファイル名","colorPicker":"色選択","canvasBackground":"キャンバスの背景","drawingCanvas":"キャンバスの描画","layers":"レイヤー","actions":"操作","language":"言語","createRoom":"共同編集セッションの共有","duplicateSelection":"複製","untitled":"Untitled","name":"名前","yourName":"","madeWithExcalidraw":"Excalidrawで作成","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"キャンバスのリセット","export":"エクスポート","exportToPng":"PNG にエクスポート","exportToSvg":"SVG にエクスポート","copyToClipboard":"クリップボードにコピー","copyPngToClipboard":"クリップボードにPNGをコピー","save":"保存","saveAs":"","load":"読み込み...","getShareableLink":"共有URLの取得","close":"閉じる","selectLanguage":"言語の選択","scrollBackToContent":"","zoomIn":"拡大","zoomOut":"縮小","resetZoom":"拡大/縮小をリセット","menu":"メニュー","done":"完了","edit":"編集","undo":"元に戻す","redo":"やり直し","roomDialog":"共同編集を開始する","createNewRoom":"新しい部屋を作成する","toggleFullScreen":"全画面表示に切り替える","toggleZenMode":"集中モードに切り替える","exitZenMode":"集中モードをやめる"},"alerts":{"clearReset":"この操作によってキャンバス全体が消えます。よろしいですか?","couldNotCreateShareableLink":"共有URLを作成できませんでした。","couldNotLoadInvalidFile":"無効なファイルを読み込めませんでした。","importBackendFailed":"サーバーからの読み込みに失敗しました。","cannotExportEmptyCanvas":"空のキャンバスはエクスポートできません。","couldNotCopyToClipboard":"クリップボードにコピーできません。Google Chromeでお試しください。","decryptFailed":"データを復号できませんでした。","uploadedSecurly":"データのアップロードはエンドツーエンド暗号化によって保護されています。Excalidrawサーバーと第三者はデータの内容を見ることができません。"},"toolBar":{"selection":"選択","draw":"","rectangle":"矩形","diamond":"ひし形","ellipse":"楕円","arrow":"矢印","line":"直線","text":"テキスト","lock":"描画後も使用中のツールを選択したままにする"},"headings":{"canvasActions":"キャンバス操作","selectedShapeActions":"選択された図形に対する操作","shapes":"図形"},"hints":{"linearElement":"","freeDraw":"","linearElementMulti":"","resize":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"バグ報告","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"他の人を編集中のあなたの画面に招待して共同編集することができます。","desc_privacy":"このセッションはエンドツーエンド暗号化されており、描画内容は保護されています。運営サーバーからも内容は見えません。","button_startSession":"セッションを開始する","button_stopSession":"セッションを終了する","desc_inProgressIntro":"共同編集セッションが有効になっています。","desc_persistenceWarning":"","desc_shareLink":"下記URLを共同編集したい人に共有してください:","desc_exitSession":""},"errorDialog":{"title":"エラー"},"shortcutsDialog":{"title":"キーボードショートカット","shapes":"図形","or":"または","click":"クリック","drag":"ドラッグ","curvedArrow":"曲がった矢印","curvedLine":"曲線","editor":"エディタ","view":"表示","blog":"公式ブログを読む","howto":"ヘルプ・マニュアル","github":"不具合報告はこちら","textNewLine":"テキストの改行","textFinish":"テキストの編集を終える","zoomToFit":"すべての図形が収まるよう拡大/縮小"},"encrypted":{"tooltip":"描画内容はエンドツーエンド暗号化が施されており、Excalidrawサーバーが内容を見ることはできません。"},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"붙여넣기","selectAll":"전체 선택","moveCanvas":"","copy":"복사하기","copyAsPng":"클립보드로 PNG 이미지 복사","copyAsSvg":"클립보드로 SVG 이미지 복사","bringForward":"앞으로 가져오기","sendToBack":"맨 뒤로 보내기","bringToFront":"맨 앞으로 가져오기","sendBackward":"뒤로 보내기","delete":"삭제","copyStyles":"스타일 복사하기","pasteStyles":"스타일 붙여넣기","stroke":"선 색상","background":"배경색","fill":"채우기 스타일","strokeWidth":"선 두께","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"선 스타일","opacity":"불투명도","textAlign":"텍스트 정렬","fontSize":"폰트 크기","fontFamily":"폰트 스타일","onlySelected":"선택한 항목만","withBackground":"배경 포함","addWatermark":"","handDrawn":"필기체","normal":"일반","code":"코드","small":"작게","medium":"보통","large":"크게","veryLarge":"매우 크게","solid":"단색","hachure":"평행선","crossHatch":"교차선","thin":"얇게","bold":"굵게","left":"왼쪽","center":"가운데","right":"오른쪽","extraBold":"매우 굵게","architect":"","artist":"","cartoonist":"","fileTitle":"파일 제목","colorPicker":"색상 선택기","canvasBackground":"캔버스 배경","drawingCanvas":"캔버스 그리기","layers":"레이어","actions":"","language":"언어","createRoom":"실시간 협업 세션 공유","duplicateSelection":"복제","untitled":"제목 없음","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"캔버스 초기화","export":"내보내기","exportToPng":"PNG로 내보내기","exportToSvg":"SVG로 내보내기","copyToClipboard":"클립보드로 복사","copyPngToClipboard":"클립보드로 PNG 이미지 복사","save":"저장","saveAs":"","load":"불러오기","getShareableLink":"공유 가능한 링크 생성","close":"닫기","selectLanguage":"언어 선택","scrollBackToContent":"콘텐츠 영역으로 스크롤 이동하기","zoomIn":"확대","zoomOut":"축소","resetZoom":"줌 초기화","menu":"메뉴","done":"완료","edit":"수정","undo":"실행 취소","redo":"다시 실행","roomDialog":"실시간 협업 시작하기","createNewRoom":"","toggleFullScreen":"전체화면","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"모든 작업 내용을 초기화 합니다. 계속 진행할까요?","couldNotCreateShareableLink":"공유 가능한 링크를 생성할 수 없습니다.","couldNotLoadInvalidFile":"유효하지 않은 파일입니다.","importBackendFailed":"서버로부터 불러 오지 못했습니다.","cannotExportEmptyCanvas":"빈 캔버스를 내보낼 수 없습니다.","couldNotCopyToClipboard":"클립 보드에 복사 할 수 없습니다. Chrome 브라우저에서 시도해 주세요.","decryptFailed":"데이터를 복호화하지 못했습니다.","uploadedSecurly":"업로드는 종단 간 암호화로 보호되므로 Excalidraw 서버 및 타사가 콘텐츠를 읽을 수 없습니다."},"toolBar":{"selection":"선택","draw":"","rectangle":"사각형","diamond":"다이아몬드","ellipse":"타원","arrow":"화살표","line":"라인","text":"텍스트","lock":"선택된 도구 유지하기"},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":""},"hints":{"linearElement":"여러 점을 연결하려면 클릭하고, 직선을 그리려면 바로 드래그하세요.","freeDraw":"","linearElementMulti":"마지막 지점을 클릭하거나 Esc 또는 Enter 키를 눌러 완료하세요.","resize":"","rotate":"SHIFT 키를 누르면서 회전하면 각도를 제한할 수 있습니다.","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"페이지 새로고침","clearCanvasMessage":"","clearCanvasMessage_button":"캔버스를 초기화 중입니다.","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":" 아래 정보를 GitHub 이슈에 복사 및 붙여넣기해 주세요.","sceneContent":""},"roomDialog":{"desc_intro":"현재 화면에 공동 작업자를 초대해 협업할 수 있습니다.","desc_privacy":"안심하세요, 세션은 종단 간 암호화를 사용하므로 당신의 작업은 비공개로 유지되며 서버조차도 작업 내용을 알 수 없습니다.","button_startSession":"세션 시작","button_stopSession":"세션 중단","desc_inProgressIntro":"실시간 협업 세션이 진행 중입니다.","desc_persistenceWarning":"","desc_shareLink":"공동 작업자에게 이 링크를 공유하세요.","desc_exitSession":""},"errorDialog":{"title":"에러"},"shortcutsDialog":{"title":"키보드 단축키","shapes":"그리기","or":"또는","click":"클릭","drag":"드래그","curvedArrow":"곡선 화살표","curvedLine":"곡선","editor":"편집","view":"보기","blog":"블로그 읽어보기","howto":"가이드 참고하기","github":"이슈 제보하기","textNewLine":"줄바꾸기","textFinish":"편집 완료","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Lim inn","selectAll":"Velg alt","moveCanvas":"Flytt lerretet","copy":"Kopier","copyAsPng":"Kopier til PNG","copyAsSvg":"Kopier til utklippstavlen som SVG","bringForward":"Flytt framover","sendToBack":"Send bakerst","bringToFront":"Flytt forrest","sendBackward":"Send bakover","delete":"Slett","copyStyles":"Kopier stiler","pasteStyles":"Lim inn stiler","stroke":"Strek","background":"Bakgrunn","fill":"Fyll","strokeWidth":"Strektykkelse","strokeStyle":"Strekstil","strokeStyle_solid":"Heltrukket","strokeStyle_dashed":"Stiplet","strokeStyle_dotted":"Prikket","sloppiness":"Ujevnhet","opacity":"Synlighet","textAlign":"Tekstjustering","fontSize":"Skriftstørrelse","fontFamily":"Fontfamilie","onlySelected":"Kun valgte","withBackground":"Inkluder bakgrunn","addWatermark":"Legg til \\"Laget med Excalidraw\\"","handDrawn":"Håndtegnet","normal":"Normal","code":"Kode","small":"Liten","medium":"Medium","large":"Stor","veryLarge":"Svært stor","solid":"Helfarge","hachure":"Skravert","crossHatch":"Krysskravert","thin":"Tynn","bold":"Tykk","left":"Venstre","center":"Midtstill","right":"Høyre","extraBold":"Ekstra tykk","architect":"Arkitekt","artist":"Kunstner","cartoonist":"Tegner","fileTitle":"Filnavn","colorPicker":"Fargevelger","canvasBackground":"Lerretsbakgrunn","drawingCanvas":"Lerret","layers":"Lag","actions":"Handlinger","language":"Språk","createRoom":"Del en sanntids-samarbeidsøkt","duplicateSelection":"Dupliser","untitled":"Uten navn","name":"Navn","yourName":"Ditt navn","madeWithExcalidraw":"Laget med Excalidraw","group":"Gruppér utvalg","ungroup":"Avgruppér utvalg","collaborators":"Samarbeidspartnere","toggleGridMode":"Slå av/på rutenett"},"buttons":{"clearReset":"Tøm lerretet og tilbakestill bakgrunnsfargen","export":"Eksporter","exportToPng":"Eksporter til PNG","exportToSvg":"Eksporter til SVG","copyToClipboard":"Kopier til utklippstavle","copyPngToClipboard":"Kopier PNG til utklippstavlen","save":"Lagre","saveAs":"Lagre som","load":"Åpne","getShareableLink":"Få delingslenke","close":"Lukk","selectLanguage":"Velg språk","scrollBackToContent":"Skroll tilbake til innhold","zoomIn":"Zoom inn","zoomOut":"Zoom ut","resetZoom":"Nullstill zoom","menu":"Meny","done":"Ferdig","edit":"Rediger","undo":"Angre","redo":"Gjør om","roomDialog":"Start sanntids-samarbeid","createNewRoom":"Opprett et nytt rom","toggleFullScreen":"Skru fullskjerm av/på","toggleZenMode":"Slå av/på zen-modus","exitZenMode":"Avslutt zen-modus"},"alerts":{"clearReset":"Dette vil tømme lerretet. Er du sikker?","couldNotCreateShareableLink":"Kunne ikke lage delbar lenke.","couldNotLoadInvalidFile":"Kunne ikke laste inn ugyldig fil","importBackendFailed":"Importering av backend feilet.","cannotExportEmptyCanvas":"Kan ikke eksportere et tomt lerret.","couldNotCopyToClipboard":"Kunne ikke kopiere til utklippstavlen. Prøv med nettleseren Chrome.","decryptFailed":"Kunne ikke dekryptere data.","uploadedSecurly":"Opplastingen er kryptert og kan ikke leses av Excalidraw-serveren eller tredjeparter."},"toolBar":{"selection":"Velg","draw":"Frihåndstegning","rectangle":"Rektangel","diamond":"Diamant","ellipse":"Ellipse","arrow":"Pil","line":"Linje","text":"Tekst","lock":"Behold merket verktøy som aktivt"},"headings":{"canvasActions":"Handlinger: lerret","selectedShapeActions":"Handlinger: valgt objekt","shapes":"Former"},"hints":{"linearElement":"Klikk for å starte linje med flere punkter, eller dra for en enkel linje","freeDraw":"Klikk og dra, slipp når du er ferdig","linearElementMulti":"Klikk på siste punkt eller trykk Escape eller Enter for å fullføre","resize":"Du kan beholde forholdet ved å trykke SHIFT mens du endrer størrelse,\\ntrykk ALT for å endre størrelsen fra midten","rotate":"Du kan låse vinklene ved å holde SHIFT mens du roterer","lineEditor_info":"Dobbeltklikk eller trykk Enter for å redigere punkter","lineEditor_pointSelected":"Trykk på Slett for å fjerne punktet, eller dra for å flytte","lineEditor_nothingSelected":"Velg et punkt å flytte eller fjerne, eller hold Alt og klikk for å legge til nye punkter"},"errorSplash":{"headingMain_pre":"En feil oppsto. Prøv ","headingMain_button":"å laste siden på nytt.","clearCanvasMessage":"Om ny sidelasting ikke fungerer, prøv ","clearCanvasMessage_button":"å tømme lerretet.","clearCanvasCaveat":" Dette vil føre til tap av arbeid ","trackedToSentry_pre":"Feilen med identifikator ","trackedToSentry_post":" ble logget i vårt system.","openIssueMessage_pre":"Vi er veldig nøye med å ikke inkludere dine scene-opplysninger i feilen. Hvis din scene ikke er privat, vurder å følge opp i vårt ","openIssueMessage_button":"feilrapporteringssystem.","openIssueMessage_post":" Ta med opplysningene nedenfor ved å kopiere og lime inn i GitHub-saken.","sceneContent":"Scene-innhold:"},"roomDialog":{"desc_intro":"Du kan invitere personer til scenen din for å samarbeide med deg.","desc_privacy":"Ta det med ro, sesjonen bruker ende-til-ende-kryptering, så alt du tegner forblir privat. Ikke en gang serveren vår kan se hva du lager.","button_startSession":"Start økt","button_stopSession":"Stopp sesjon","desc_inProgressIntro":"Sanntids-samarbeidsøkt er nå i gang.","desc_persistenceWarning":"Vær oppmerksom på at scene-data deles på tvers av samarbeidspartnere på en P2P-måte, og er ikke lagret på serveren vår. Dette betyr at hvis alle kobler fra, mister du dataene med mindre du eksporterer dem til en fil eller en delbar lenke.","desc_shareLink":"Del denne linken med de du vil samarbeide med:","desc_exitSession":"Dersom du avslutter sesjonen blir du frakoblet rommet, men du kan fortsette å arbeide med scenen lokalt. Vær oppmerksom på at dette ikke vil påvirke andre personer, og de vil fortsatt ha mulighet til å samarbeide på deres versjon."},"errorDialog":{"title":"Feil"},"shortcutsDialog":{"title":"Tastatursnarveier","shapes":"Figurer","or":"eller","click":"klikk","drag":"dra","curvedArrow":"Buet pil","curvedLine":"Buet linje","editor":"Redigering","view":"Visning","blog":"Les bloggen vår","howto":"Følg våre veiledninger","github":"Funnet et problem? Send inn","textNewLine":"Legg til ny linje (tekst)","textFinish":"Fullfør redigering (tekst)","zoomToFit":"Zoom for å passe alle elementene"},"encrypted":{"tooltip":"Dine tegninger er ende-til-ende-krypterte slik at Excalidraw sine servere aldri vil se dem."},"charts":{"noNumericColumn":"Du limte inn et regneark uten en numerisk kolonne.","tooManyColumns":"Du limte inn et regneark med mer enn to kolonner."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Plakken","selectAll":"Alles selecteren","moveCanvas":"","copy":"Kopiëren","copyAsPng":"Kopieer als PNG","copyAsSvg":"Kopieer als SVG","bringForward":"Breng naar voren","sendToBack":"Breng naar achtergrond","bringToFront":"Breng naar voorgrond","sendBackward":"Breng naar achter","delete":"Verwijderen","copyStyles":"Stijl kopiëren","pasteStyles":"Stijl plakken","stroke":"Lijn","background":"Achtergrond","fill":"Invulling","strokeWidth":"Lijnbreedte","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"Slordigheid","opacity":"Doorzichtigheid","textAlign":"Uitlijning","fontSize":"Tekstgrootte","fontFamily":"Lettertype","onlySelected":"Enkel geselecteerde","withBackground":"Met achtergrond","addWatermark":"Voeg \\"Gemaakt met Excalidraw\\" toe","handDrawn":"Handgetekend","normal":"Normaal","code":"Code","small":"Klein","medium":"Medium","large":"Groot","veryLarge":"Zeer groot","solid":"Ingekleurd","hachure":"Arcering","crossHatch":"Tweemaal gearceerd","thin":"Dun","bold":"Vet","left":"Links","center":"Midden","right":"Rechts","extraBold":"Zwaar","architect":"Architect","artist":"Artiest","cartoonist":"Cartoonist","fileTitle":"Bestandsnaam","colorPicker":"Kleurenkiezer","canvasBackground":"Canvas achtergrond","drawingCanvas":"Canvas","layers":"Lagen","actions":"Acties","language":"Taal","createRoom":"Deel een live-samenwerkingssessie","duplicateSelection":"Dupliceer","untitled":"Naamloos","name":"Naam","yourName":"Jouw naam","madeWithExcalidraw":"Gemaakt met Excalidraw","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Canvas opnieuw instellen","export":"Exporteren","exportToPng":"Exporteren naar PNG","exportToSvg":"Exporteren naar SVG","copyToClipboard":"Kopieer","copyPngToClipboard":"Kopieer als PNG","save":"Opslaan","saveAs":"","load":"Open","getShareableLink":"Maak een deelbare link","close":"Sluiten","selectLanguage":"Taal selecteren","scrollBackToContent":"Scroll terug naar inhoud","zoomIn":"Inzoomen","zoomOut":"Uitzoomen","resetZoom":"Zoom terugzetten","menu":"Menu","done":"Klaar","edit":"Bewerken","undo":"Ongedaan maken","redo":"Herstel ongedaan maken","roomDialog":"Live-samenwerkingssessie starten","createNewRoom":"Creëer live-samenwerkingssessie","toggleFullScreen":"Schermvullende weergave","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"Dit zal het hele canvas verwijderen. Ben je zeker?","couldNotCreateShareableLink":"Kon geen deelbare link aanmaken.","couldNotLoadInvalidFile":"Kan ongeldig bestand niet laden","importBackendFailed":"Importeren vanuit backend mislukt.","cannotExportEmptyCanvas":"Kan geen leeg canvas exporteren.","couldNotCopyToClipboard":"Kan niet kopiëren. Probeer in de Chrome-browser.","decryptFailed":"Kan gegevens niet decoderen.","uploadedSecurly":"De upload is beveiligd met end-to-end encryptie, wat betekent dat de Excalidraw server en derden de inhoud niet kunnen lezen."},"toolBar":{"selection":"Selectie","draw":"","rectangle":"Rechthoek","diamond":"Ruit","ellipse":"Ovaal","arrow":"Pijl","line":"Lijn","text":"Tekst","lock":"Geselecteerde tool actief houden na tekenen"},"headings":{"canvasActions":"Canvasacties","selectedShapeActions":"Acties van geselecteerde vorm","shapes":"Vormen"},"hints":{"linearElement":"Klik om meerdere punten te starten, sleep voor één lijn","freeDraw":"","linearElementMulti":"Klik op het laatste punt of druk op Escape of Enter om te stoppen","resize":"","rotate":"Je kan hoeken beperken door SHIFT ingedrukt te houden wanneer je draait","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"Fout opgetreden. Probeer ","headingMain_button":"de pagina opnieuw laden.","clearCanvasMessage":"Als herladen niet werkt, probeer ","clearCanvasMessage_button":"het canvas te wissen.","clearCanvasCaveat":" Dit zal leiden tot verlies van je werk ","trackedToSentry_pre":"De fout met ID ","trackedToSentry_post":" was gevolgd op ons systeem.","openIssueMessage_pre":"We waren voorzichtig om je scène-informatie niet in de fout toe te voegen. Als je scène niet privé is, overweeg dan alstublieft het opvolgen op onze ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Kopieer de informatie hieronder toe in de GitHub issue.","sceneContent":"Scène-inhoud:"},"roomDialog":{"desc_intro":"Je kunt mensen uitnodigen om met je samen te werken.","desc_privacy":"Geen zorgen, de sessie gebruikt end-to-end encryptie, dus wat je tekent blijft privé. Zelfs onze server zal niet kunnen zien wat je tekent.","button_startSession":"Sessie starten","button_stopSession":"Sessie afbreken","desc_inProgressIntro":"De live-samenwerkingssessie is nu gestart.","desc_persistenceWarning":"","desc_shareLink":"Deel deze link met iedereen waarmee je wil samenwerken:","desc_exitSession":""},"errorDialog":{"title":"Fout"},"shortcutsDialog":{"title":"Sneltoetsen","shapes":"Vormen","or":"of","click":"klik","drag":"slepen","curvedArrow":"Gebogen pijl","curvedLine":"Gebogen lijn","editor":"Editor","view":"Weergave","blog":"Lees onze blog","howto":"Volg onze handleidingen","github":"Probleem gevonden? Stuur een nieuwe issue","textNewLine":"Nieuwe regel toevoegen (tekst)","textFinish":"Voltooi bewerken (tekst)","zoomToFit":"Zoom in op alle elementen"},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Lim inn","selectAll":"Vel alt","moveCanvas":"Flytt lerretet","copy":"Kopier","copyAsPng":"Kopier til utklippstavla som PNG","copyAsSvg":"Kopier til utklippstavla som SVG","bringForward":"Flytt framover","sendToBack":"Send heilt bak","bringToFront":"Flytt heilt fram","sendBackward":"Send bakover","delete":"Slett","copyStyles":"Kopier stilar","pasteStyles":"Lim inn stilar","stroke":"Strek","background":"Bakgrunn","fill":"Fyll","strokeWidth":"Strekbreidd","strokeStyle":"Strekstil","strokeStyle_solid":"Solid","strokeStyle_dashed":"Stipla","strokeStyle_dotted":"Prikka","sloppiness":"Ujamnheit","opacity":"Synlegheit","textAlign":"Tekstjustering","fontSize":"Skriftstorleik","fontFamily":"Skrifttype","onlySelected":"Kun valde","withBackground":"Inkluder bakgrunn","addWatermark":"Legg til «Laga med Excalidraw»","handDrawn":"Handteikna","normal":"Normal","code":"Kode","small":"Liten","medium":"Medium","large":"Stor","veryLarge":"Svært stor","solid":"Solid","hachure":"Skravert","crossHatch":"Krysskravert","thin":"Tynn","bold":"Tjukk","left":"Venstre","center":"Midstill","right":"Høgre","extraBold":"Ekstra tjukk","architect":"Arkitekt","artist":"Kunstnar","cartoonist":"Teiknar","fileTitle":"Filnamn","colorPicker":"Fargeveljar","canvasBackground":"Lerretsbakgrunn","drawingCanvas":"Lerret","layers":"Lag","actions":"Handlingar","language":"Språk","createRoom":"Del ei sanntids-samarbeidsøkt","duplicateSelection":"Dupliser","untitled":"Utan namn","name":"Namn","yourName":"Namnet ditt","madeWithExcalidraw":"Laga med Excalidraw","group":"Grupper utval","ungroup":"Avgrupper utval","collaborators":"Samarbeidarar","toggleGridMode":"Sla på/av rutenett"},"buttons":{"clearReset":"Tilbakestill lerretet","export":"Eksporter","exportToPng":"Eksporter til PNG","exportToSvg":"Eksporter til SVG","copyToClipboard":"Kopier til utklippstavla","copyPngToClipboard":"Kopier PNG til utklippstavla","save":"Lagre","saveAs":"Lagre som","load":"Opne","getShareableLink":"Hent delingslenke","close":"Lukk","selectLanguage":"Vel språk","scrollBackToContent":"Skroll tilbake til innhald","zoomIn":"Zoom inn","zoomOut":"Zoom ut","resetZoom":"Nullstill zoom","menu":"Meny","done":"Ferdig","edit":"Rediger","undo":"Angre","redo":"Gjer om","roomDialog":"Start sanntids-samarbeid","createNewRoom":"Lag nytt rom","toggleFullScreen":"Slå på/av fullskjerm","toggleZenMode":"Slå på/av zen-modus","exitZenMode":"Avslutt zen-modus"},"alerts":{"clearReset":"Dette vil tømme lerretet. Er du sikker?","couldNotCreateShareableLink":"Kunne ikkje lage delingslenke.","couldNotLoadInvalidFile":"Kunne ikkje laste inn ugyldig fil","importBackendFailed":"Importering av backend feila.","cannotExportEmptyCanvas":"Kan ikkje eksportere eit tomt lerret.","couldNotCopyToClipboard":"Kunne ikkje kopiere til utklippstavla. Prøv med nettlesaren Chrome.","decryptFailed":"Kunne ikkje dekryptere data.","uploadedSecurly":"Opplastinga er kryptert og er ikkje mogleg å lese av Excalidraw-serveren eller tredjepartar."},"toolBar":{"selection":"Vel","draw":"Frihandsteikning","rectangle":"Rektangel","diamond":"Diamant","ellipse":"Ellipse","arrow":"Pil","line":"Linje","text":"Tekst","lock":"Hald fram med valt verktøy"},"headings":{"canvasActions":"Handlingar: lerret","selectedShapeActions":"Handlingar: valt objekt","shapes":"Formar"},"hints":{"linearElement":"Klikk for å starte linje med fleire punkt, eller drag for ei enkel linje","freeDraw":"Klikk og drag, slepp når du er ferdig","linearElementMulti":"Klikk på siste punkt eller trykk Escape eller Enter for å fullføre","resize":"Du kan halde fram med forholdet ved å trykke SHIFT medan du endrar storleik,\\ntrykk ALT for å endre storleiken frå midten","rotate":"Du kan låse vinklane ved å halde SHIFT medan du roterer","lineEditor_info":"Dobbeltklikk eller trykk Enter for å redigere punkt","lineEditor_pointSelected":"Trykk på Slett for å fjerne punktet, eller drag for å flytte","lineEditor_nothingSelected":"Vel eit punkt å flytte eller fjerne, eller hald Alt og klikk for å legge til nye punkt"},"errorSplash":{"headingMain_pre":"Ein feil oppstod. Prøv ","headingMain_button":"å laste sida på nytt.","clearCanvasMessage":"Om ny sidelasting ikkje fungerer, prøv ","clearCanvasMessage_button":"å tømme lerretet.","clearCanvasCaveat":" Dette vil føre til tap av arbeid ","trackedToSentry_pre":"Feilen med identifikator ","trackedToSentry_post":" vart logga i systemet vårt.","openIssueMessage_pre":"Vi er veldig nøye med å ikkje inkludere scene-opplysingane dine i feilmeldinga. Viss scena di ikkje er privat kan du vurdere å følge opp i ","openIssueMessage_button":"feilrapporteringssystemet vårt.","openIssueMessage_post":" Ta med opplysingane nedanfor ved å kopiere og lime inn i GitHub-saka.","sceneContent":"Scene-innhald:"},"roomDialog":{"desc_intro":"Du kan invitere personar til scena di for å samarbeide med deg.","desc_privacy":"Ta det med ro; økta brukar ende-til-ende-kryptering, så alt du teiknar held fram med å vere privat. Ikkje ein gong serveren vår kan sjå kva du lagar.","button_startSession":"Start økt","button_stopSession":"Stopp økt","desc_inProgressIntro":"Sanntids-samarbeidsøkt er no i gang.","desc_persistenceWarning":"Ver merksam på at scene-data vert delte på tvers av samarbeidspartnarar ved P2P-metoden, og er ikkje lagra på serveren vår. Dette betyr at viss alle koplar frå, mistar du data med mindre du eksporterer dei til ei fil eller ei delbar lenke.","desc_shareLink":"Del denne lenka med dei du vil samarbeide med:","desc_exitSession":"Dersom du avsluttar økta blir du kopla frå rommet, men du kan halde fram med å arbeide med scena lokalt. Ver merksam på at dette ikkje vil påverke andre personar, og desse vil framleis ha moglegheit til å samarbeide på deira eigen versjon."},"errorDialog":{"title":"Feil"},"shortcutsDialog":{"title":"Tastatursnarvegar","shapes":"Figurar","or":"eller","click":"klikk","drag":"drag","curvedArrow":"Boga pil","curvedLine":"Boga linje","editor":"Redigering","view":"Vising","blog":"Les bloggen vår","howto":"Følg vegleiinga vår","github":"Funne eit problem? Send inn","textNewLine":"Legg til ny linje (tekst)","textFinish":"Fullfør redigering (tekst)","zoomToFit":"Zoom for å sjå alle elementa"},"encrypted":{"tooltip":"Teikningane dine er ende-til-ende-krypterte slik at Excalidraw sine serverar aldri får sjå dei."},"charts":{"noNumericColumn":"Du limte inn eit rekneark utan ei numerisk kolonne.","tooManyColumns":"Du limte inn eit rekneark med meir enn to kolonnar."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Wklej","selectAll":"Zaznacz wszystko","moveCanvas":"Przesuń obszar roboczy","copy":"Kopiuj","copyAsPng":"Skopiuj do schowka jako plik PNG","copyAsSvg":"Skopiuj do schowka jako plik SVG","bringForward":"Przenieś wyżej","sendToBack":"Przenieś na spód","bringToFront":"Przenieś na wierzch","sendBackward":"Przenieś niżej","delete":"Usuń","copyStyles":"Kopiuj style","pasteStyles":"Wklej style","stroke":"Kolor obramowania","background":"Kolor wypełnienia","fill":"Wypełnienie","strokeWidth":"Grubość obramowania","strokeStyle":"Styl obrysu","strokeStyle_solid":"Pełny","strokeStyle_dashed":"Kreskowany","strokeStyle_dotted":"Kropkowany","sloppiness":"Styl kreski","opacity":"Przeźroczystość","textAlign":"Wyrównanie tekstu","fontSize":"Rozmiar tekstu","fontFamily":"Krój pisma","onlySelected":"Tylko wybrane","withBackground":"Z tłem dokumentu","addWatermark":"Dodaj \\"Zrobione w Excalidraw\\"","handDrawn":"Odręczny","normal":"Normalny","code":"Kod","small":"Mały","medium":"Średni","large":"Duży","veryLarge":"Bardzo duży","solid":"Pełne","hachure":"Linie","crossHatch":"Zakreślone","thin":"Cienkie","bold":"Pogrubione","left":"Do lewej","center":"Do środka","right":"Do prawej","extraBold":"Ekstra pogrubione","architect":"Dokładny","artist":"Artystyczny","cartoonist":"Rysunkowy","fileTitle":"Nazwa pliku","colorPicker":"Paleta kolorów","canvasBackground":"Kolor dokumentu","drawingCanvas":"Obszar roboczy","layers":"Warstwy","actions":"Akcje","language":"Język","createRoom":"Udostępnij sesję współpracy na żywo","duplicateSelection":"Powiel","untitled":"Bez tytułu","name":"Nazwa","yourName":"Twoje imię","madeWithExcalidraw":"Zrobione w Excalidraw","group":"Zgrupuj wybrane","ungroup":"Rozgrupuj wybrane","collaborators":"Współtwórcy","toggleGridMode":""},"buttons":{"clearReset":"Wyczyść dokument i zresetuj kolor dokumentu","export":"Zapisz jako","exportToPng":"Zapisz jako PNG","exportToSvg":"Zapisz jako SVG","copyToClipboard":"Skopiuj do schowka","copyPngToClipboard":"Skopiuj do schowka jako plik PNG","save":"Zapisz","saveAs":"Zapisz jako","load":"Otwórz","getShareableLink":"Udostępnij","close":"Zamknij","selectLanguage":"Wybierz język","scrollBackToContent":"Wróć do obszaru roboczego","zoomIn":"Powiększ","zoomOut":"Pomniejsz","resetZoom":"Zresetuj powiększenie","menu":"Menu","done":"Gotowe","edit":"Edytuj","undo":"Cofnij","redo":"Przywróć","roomDialog":"Utwórz nową sesję współpracy na żywo","createNewRoom":"Utwórz nowy pokój","toggleFullScreen":"Włącz/wyłącz tryb pełnoekranowy","toggleZenMode":"Włącz tryb Zen","exitZenMode":"Wyjdź z trybu Zen"},"alerts":{"clearReset":"To spowoduje usunięcie wszystkiego z dokumentu. Czy chcesz kontynuować?","couldNotCreateShareableLink":"Wystąpił błąd przy generowaniu linka do udostępniania.","couldNotLoadInvalidFile":"Nie udało się otworzyć pliku. Wybrany plik jest nieprawidłowy.","importBackendFailed":"Wystąpił błąd podczas importowania pliku.","cannotExportEmptyCanvas":"Najpierw musisz coś narysować, aby zapisać dokument.","couldNotCopyToClipboard":"Błąd podczas kopiowania. Spróbuj użyć Google Chrome.","decryptFailed":"Nie udało się odszyfrować danych.","uploadedSecurly":"By zapewnić Ci prywatność, udostępnianie projektu jest zabezpieczone szyfrowaniem end-to-end, co oznacza, że poza tobą i osobą z którą podzielisz się linkiem, nikt nie ma dostępu do tego co udostępniasz."},"toolBar":{"selection":"Zaznaczenie","draw":"Swobodne rysowanie","rectangle":"Prostokąt","diamond":"Romb","ellipse":"Elipsa","arrow":"Strzałka","line":"Linia","text":"Tekst","lock":"Zablokuj wybrane narzędzie"},"headings":{"canvasActions":"Narzędzia","selectedShapeActions":"Wybrane narzędzie","shapes":"Kształty"},"hints":{"linearElement":"Naciśnij, aby zrobić punkt, przeciągnij, aby narysować linię","freeDraw":"Naciśnij i przeciągnij by rysować, puść kiedy skończysz","linearElementMulti":"Aby zakończyć krzywą, ponownie kliknij w ostatni punkt, bądź naciśnij Esc albo Enter","resize":"Możesz zachować proporcję trzymająć wcisnięty SHIFT, przytrzymaj ALT by zmienić rozmiar względem środka","rotate":"Możesz obracać element w równych odstępach trzymając wciśnięty SHIFT","lineEditor_info":"Kliknij dwukrotnie lub naciśnij Enter, aby edytować punkty","lineEditor_pointSelected":"Naciśnij Delete by usunąć punkt albo przeciągnij by zmienić jego pozycje","lineEditor_nothingSelected":"Naciśnij w punkt by go edytować, przytrzymaj Alt i naciśnij by dodać nowy punkt"},"errorSplash":{"headingMain_pre":"Wystąpił błąd. Spróbuj ","headingMain_button":"odświeżyć stronę.","clearCanvasMessage":"Jeśli odświeżenie strony nie zadziałało, spróbuj ","clearCanvasMessage_button":"usunąć wszystko z dokumentu.","clearCanvasCaveat":" Pamiętaj tylko, że spowoduje to utratę całej twojej pracy ","trackedToSentry_pre":"Błąd o identyfikatorze ","trackedToSentry_post":" został zaraportowany w naszym systemie.","openIssueMessage_pre":"Szanujemy twoją prywatność i raport nie zawierał żadnych danych dotyczących tego nad czym pracowałeś, natomiast jeżeli jesteś w stanie podzielić się tym nad czym pracowałeś, prosimy o dodatkowy raport poprzez ","openIssueMessage_button":"nasze narzędzie do raportowania błędów.","openIssueMessage_post":" Prosimy o dołączenie poniższej informacji poprzez skopiowanie jej i umieszczenie jej w zgłoszeniu na portalu GitHub.","sceneContent":"Zawartość dokumentu:"},"roomDialog":{"desc_intro":"Będziesz w stanie pracować wraz z osobami które zaprosisz do współpracy.","desc_privacy":"By zapewnić Ci prywatność, sesja współpracy na żywo jest zabezpieczona szyfrowaniem end-to-end, co oznacza, że poza tobą i osobami z którymi podzielisz się linkiem, nikt nie ma dostępu do tego co będziecie tworzyć.","button_startSession":"Rozpocznij sesję","button_stopSession":"Zakończ sesję","desc_inProgressIntro":"Sesja współpracy na żywo właśnie się rozpoczęła.","desc_persistenceWarning":"Ważne! Wszystko co będziesz tworzyć wraz z osobami które zaprosisz do współpracy jest dostępne tylko dla was (protokół P2P), co oznacza, że nie jest przechowywane na serwerach Excalidraw. Dlatego, jeżeli wszyscy się rozłączycie i nie zapiszecie wcześniej danych (albo nie utworzycie linka do udostępnienia projektu), wasze dane zostaną utracone.","desc_shareLink":"Udostępnij ten link osobom, z którymi chcesz współpracować:","desc_exitSession":"Zakończenie sesji spowoduje odłączenie ciebie od pokoju, ale nadal będziesz mógł lokalnie kontynuować pracę. Zauważ, że osoby z którymi współpracowałeś nadal będą mogły współpracować."},"errorDialog":{"title":"Wystąpił błąd"},"shortcutsDialog":{"title":"Skróty klawiszowe","shapes":"Kształty","or":"lub","click":"klik","drag":"przeciągnij","curvedArrow":"Zakrzywiona strzałka","curvedLine":"Zakrzywiona linia","editor":"Edytor","view":"Widok","blog":"Przeczytaj naszego bloga","howto":"Skorzystaj z instrukcji","github":"Znalazłeś problem? Zgłoś go","textNewLine":"Dodaj nową linię (tekst)","textFinish":"Zakończ edycję (tekst)","zoomToFit":"Powiększ, aby wyświetlić wszystkie elementy"},"encrypted":{"tooltip":"Twoje rysunki są zabezpieczone szyfrowaniem end-to-end, tak więc nawet w Excalidraw nie jesteśmy w stanie zobaczyć tego co tworzysz."},"charts":{"noNumericColumn":"Wklejono arkusz kalkulacyjny bez kolumny numerycznej.","tooManyColumns":"Wklejono arkusz kalkulacyjny z więcej niż dwoma kolumnami."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Colar","selectAll":"Selecionar tudo","moveCanvas":"Mover tela","copy":"Copiar","copyAsPng":"Copiar para a área de transferência como PNG","copyAsSvg":"Copiar para a área de transferência como SVG","bringForward":"Trazer para o primeiro plano","sendToBack":"Enviar para o plano de fundo","bringToFront":"Trazer para o primeiro plano","sendBackward":"Enviar para trás","delete":"Apagar","copyStyles":"Copiar os estilos","pasteStyles":"Colar os estilos","stroke":"Contornos","background":"Fundo","fill":"Preenchimento","strokeWidth":"Espessura do traço","strokeStyle":"Estilo de traço","strokeStyle_solid":"Sólido","strokeStyle_dashed":"Tracejado","strokeStyle_dotted":"Pontilhado","sloppiness":"Desleixo","opacity":"Opacidade","textAlign":"Alinhamento do texto","fontSize":"Tamanho da fonte","fontFamily":"Família da fontes","onlySelected":"Somente a seleção","withBackground":"Com fundo","addWatermark":"Adicionar \\"Feito com Excalidraw\\"","handDrawn":"Manuscrito","normal":"Normal","code":"Código","small":"Pequeno","medium":"Médio","large":"Grande","veryLarge":"Muito grande","solid":"Sólido","hachure":"Eclosão","crossHatch":"Hachurado","thin":"Fino","bold":"Espesso","left":"Esquerda","center":"Centralizar","right":"Direita","extraBold":"Muito espesso","architect":"Arquitecto","artist":"Artista","cartoonist":"Caricaturista","fileTitle":"Título do arquivo","colorPicker":"Seletor de cores","canvasBackground":"Fundo da tela","drawingCanvas":"Tela de desenho","layers":"Camadas","actions":"Ações","language":"Idioma","createRoom":"Compartilhar uma sessão de colaboração ao vivo","duplicateSelection":"Duplicar","untitled":"Sem título","name":"Nome","yourName":"Seu nome","madeWithExcalidraw":"Feito com Excalidraw","group":"Agrupar seleção","ungroup":"Desagrupar seleção","collaborators":"Colaboradores","toggleGridMode":"Alternar modo de grade"},"buttons":{"clearReset":"Limpar o canvas e redefinir a cor de fundo","export":"Exportar","exportToPng":"Exportar em PNG","exportToSvg":"Exportar em SVG","copyToClipboard":"Copiar para o clipboard","copyPngToClipboard":"Copiar PNG para área de transferência","save":"Guardar","saveAs":"Salvar como","load":"Carregar","getShareableLink":"Obter um link de partilha","close":"Fechar","selectLanguage":"Selecionar idioma","scrollBackToContent":"Voltar ao conteúdo","zoomIn":"Aumentar zoom","zoomOut":"Diminuir zoom","resetZoom":"Redefinir zoom","menu":"Menu","done":"Concluído","edit":"Editar","undo":"Desfazer","redo":"Refazer","roomDialog":"Iniciar colaboração ao vivo","createNewRoom":"Criar nova sala","toggleFullScreen":"Alternar tela cheia","toggleZenMode":"Alternar modo zen","exitZenMode":"Sair do modo zen"},"alerts":{"clearReset":"O canvas inteiro será excluído. Tens a certeza?","couldNotCreateShareableLink":"Não foi possível criar um link de compartilhamento.","couldNotLoadInvalidFile":"Não foi possível carregar o arquivo inválido","importBackendFailed":"A importação do servidor falhou.","cannotExportEmptyCanvas":"Não é possível exportar um canvas vazío.","couldNotCopyToClipboard":"Não foi possível copiar no clipboard. Experimente no navegador Chrome.","decryptFailed":"Não foi possível descriptografar os dados.","uploadedSecurly":"O upload foi protegido com criptografia de ponta a ponta, o que significa que o servidor do Excalidraw e terceiros não podem ler o conteúdo."},"toolBar":{"selection":"Seleção","draw":"Desenho livre","rectangle":"Retângulo","diamond":"Losango","ellipse":"Elipse","arrow":"Flecha","line":"Linha","text":"Texto","lock":"Manter a ferramenta selecionada ativa após desenhar"},"headings":{"canvasActions":"Ações da tela","selectedShapeActions":"Ações das formas selecionadas","shapes":"Formas"},"hints":{"linearElement":"Clique para iniciar vários pontos, arraste para uma única linha","freeDraw":"Toque e arraste, solte quando terminar","linearElementMulti":"Clique no último ponto ou pressione Escape ou Enter para terminar","resize":"Você pode restringir proporções segurando SHIFT enquanto redimensiona,\\nsegure ALT para redimensionar do centro","rotate":"Você pode restringir os ângulos segurando SHIFT enquanto gira","lineEditor_info":"Clique duas vezes ou pressione Enter para editar os pontos","lineEditor_pointSelected":"Pressione Delete para remover o ponto ou arraste para mover","lineEditor_nothingSelected":"Selecione um ponto para mover ou remover, ou segure Alt e clique para adicionar novos pontos"},"errorSplash":{"headingMain_pre":"Foi encontrado um erro. Tente ","headingMain_button":"recarregar a página.","clearCanvasMessage":"Se a recarga não funcionar, tente ","clearCanvasMessage_button":"limpando a tela.","clearCanvasCaveat":" Isso resultará em perda de trabalho ","trackedToSentry_pre":"O erro com o identificador ","trackedToSentry_post":" foi rastreado no nosso sistema.","openIssueMessage_pre":"Fomos muito cautelosos para não incluir suas informações de cena no erro. Se sua cena não for privada, por favor, considere seguir nosso ","openIssueMessage_button":"rastreador de bugs.","openIssueMessage_post":" Por favor, inclua informações abaixo, copiando e colando para a issue do GitHub.","sceneContent":"Conteúdo da cena:"},"roomDialog":{"desc_intro":"Você pode convidar pessoas para sua cena atual para colaborar com você.","desc_privacy":"Não se preocupe, a sessão usa criptografia de ponta a ponta; portanto, o que você desenhar permanecerá privado. Nem mesmo nosso servidor poderá ver o que você cria.","button_startSession":"Iniciar sessão","button_stopSession":"Parar sessão","desc_inProgressIntro":"A sessão de colaboração ao vivo está agora em andamento.","desc_persistenceWarning":"Observe que os dados da cena são compartilhados entre os colaboradores de maneira P2P e não permanecem no nosso servidor. Portanto, se todos vocês se desconectarem, você perderá os dados, a menos que os exporte para um arquivo ou um link de partilha.","desc_shareLink":"Compartilhe este link com qualquer pessoa com quem você queira colaborar:","desc_exitSession":"Interrompendo a sessão você irá se desconectar da sala, mas você poderá continuar trabalhando com a cena localmente. Observe que isso não afetará outras pessoas, e elas ainda poderão colaborar em sua versão."},"errorDialog":{"title":"Erro"},"shortcutsDialog":{"title":"Atalhos de teclado","shapes":"Formas","or":"ou","click":"clicar","drag":"arrastar","curvedArrow":"Seta curva","curvedLine":"Linha curva","editor":"Editor","view":"Visualizar","blog":"Leia o nosso blog","howto":"Siga os nossos guias","github":"Encontrou algum problema? Nos informe","textNewLine":"Adicionar nova linha (texto)","textFinish":"Finalizar edição (texto)","zoomToFit":"Ajustar para caber todos os elementos"},"encrypted":{"tooltip":"Seus desenhos são criptografados de ponta a ponta, então os servidores do Excalidraw nunca os verão."},"charts":{"noNumericColumn":"Você colou uma planilha sem uma coluna numérica.","tooManyColumns":"Você colou uma planilha com mais de duas colunas."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Вставить","selectAll":"Выбрать все","moveCanvas":"","copy":"Копировать","copyAsPng":"Скопировать в буфер обмена как PNG","copyAsSvg":"Скопировать в буфер обмена как SVG","bringForward":"Переместить вперед","sendToBack":"На задний план","bringToFront":"На передний план","sendBackward":"Переместить назад","delete":"Удалить","copyStyles":"Скопировать стили","pasteStyles":"Вставить стили","stroke":"Обводка","background":"Фон","fill":"Заливка","strokeWidth":"Толщина штриха","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"Стиль обводки","opacity":"Непрозрачность","textAlign":"Выравнивание текста","fontSize":"Размер шрифта","fontFamily":"Семейство шрифтов","onlySelected":"Только выбранные","withBackground":"С фоном","addWatermark":"Добавить \\"Сделано с Excalidraw\\"","handDrawn":"Нарисованный от руки","normal":"Обычный","code":"Код","small":"Малый","medium":"Средний","large":"Большой","veryLarge":"Очень большой","solid":"Однотонная","hachure":"Штрихованная","crossHatch":"Перекрестная","thin":"Тонкая","bold":"Жирная","left":"Слева","center":"Центр","right":"Справа","extraBold":"Очень жирная Жирная","architect":"Архитектор","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Название файла","colorPicker":"Выбор цвета","canvasBackground":"Фон холста","drawingCanvas":"Холст для рисования","layers":"Слои","actions":"Действия","language":"Язык","createRoom":"Создать многопользовательскую сессию","duplicateSelection":"Дубликат","untitled":"Без названия","name":"Имя","yourName":"Ваше имя","madeWithExcalidraw":"Сделано в Excalidraw","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"Очистить холст и сбросить цвет фона","export":"Экспортировать","exportToPng":"Экспорт в PNG","exportToSvg":"Экспорт в SVG","copyToClipboard":"Скопировать в буфер обмена","copyPngToClipboard":"Скопировать PNG в буфер обмена","save":"Сохранить","saveAs":"Сохранить как","load":"Загрузить","getShareableLink":"Получить доступ по ссылке","close":"Закрыть","selectLanguage":"Выбрать язык","scrollBackToContent":"Вернуться к содержимому","zoomIn":"Увеличить","zoomOut":"Уменьшить","resetZoom":"Сбросить масштаб","menu":"Меню","done":"Готово","edit":"Изменить","undo":"Шаг назад","redo":"Шаг вперед","roomDialog":"Начать совместную работу","createNewRoom":"Создать новую комнату","toggleFullScreen":"Переключить полноэкранный режим","toggleZenMode":"Переключить режим концентрации внимания","exitZenMode":"Выключить режим концентрации внимания"},"alerts":{"clearReset":"Это очистит весь холст. Вы уверены?","couldNotCreateShareableLink":"Не удалось создать общедоступную ссылку.","couldNotLoadInvalidFile":"Не удалось загрузить недопустимый файл","importBackendFailed":"Не удалось импортировать из бэкэнда.","cannotExportEmptyCanvas":"Не может экспортировать пустой холст.","couldNotCopyToClipboard":"Не удалось скопировать в буфер обмена. Попробуйте использовать веб-браузер Chrome.","decryptFailed":"Не удалось декодировать данные.","uploadedSecurly":"Загружаемые данные защищена сквозным шифрованием, что означает, что сервер Excalidraw и третьи стороны не могут прочитать содержимое."},"toolBar":{"selection":"Выделение области","draw":"","rectangle":"Прямоугольник","diamond":"Ромб","ellipse":"Эллипс","arrow":"Cтрелка","line":"Линия","text":"Текст","lock":"Сохранять выбранный инструмент активным после рисования"},"headings":{"canvasActions":"Операции холста","selectedShapeActions":"Операции выбранной фигуры","shapes":"Фигуры"},"hints":{"linearElement":"Нажмите, чтобы начать несколько точек, перетащите для одной линии","freeDraw":"","linearElementMulti":"Кликните на последней точке или нажмите Escape или Enter чтобы закончить","resize":"Вы можете ограничить пропорции, удерживая SHIFT во время изменения размеров,\\nудерживайте ALT чтобы изменить размер из центра","rotate":"Вы можете ограничить углы, удерживая SHIFT во время вращения","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"Возникла ошибка. Попробуйте ","headingMain_button":"перезагрузить страницу.","clearCanvasMessage":"Если перезагрузка страницы не помогла, попробуйте ","clearCanvasMessage_button":"очистить холст.","clearCanvasCaveat":" Текущая работа будет утеряна ","trackedToSentry_pre":"Ошибка с идентификатором ","trackedToSentry_post":" отслеживается в нашей системе.","openIssueMessage_pre":"Для безопасности информация о вашей сцене не включена в ошибку. Если в сцене нет ничего конфиденциального, пожалуйста следуйте нашим ","openIssueMessage_button":"баг трекере.","openIssueMessage_post":" Пожалуйста, приложите информацию ниже, скопировав и вставив её, в issue GitHub.","sceneContent":"Содержание сцены:"},"roomDialog":{"desc_intro":"Вы можете пригласить людей в текущую сцену для совместной работы.","desc_privacy":"Не беспокойтесь, сессия использует сквозное шифрование, поэтому всё что вы нарисуете останется приватным. Ваша информация не будет доступна даже на наших серверах.","button_startSession":"Начать сессию","button_stopSession":"Закончить сессию","desc_inProgressIntro":"Совместная сессия теперь активна.","desc_persistenceWarning":"","desc_shareLink":"Поделитесь этой ссылкой со всеми участниками:","desc_exitSession":""},"errorDialog":{"title":"Ошибка"},"shortcutsDialog":{"title":"Сочетания клавиш","shapes":"Фигуры","or":"или","click":"","drag":"","curvedArrow":"Изогнутая стрелка","curvedLine":"Изогнутая линия","editor":"Редактор","view":"Просмотр","blog":"Прочитайте наш блог","howto":"","github":"","textNewLine":"Добавить новую строку (текст)","textFinish":"","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Ngjit","selectAll":"Përzgjidh të gjitha","moveCanvas":"","copy":"Kopjo","copyAsPng":"Kopjo në clipboard si PNG","copyAsSvg":"Kopjo në clipboard si SVG","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"Fshij","copyStyles":"Kopjo stilet","pasteStyles":"Ngjit stilet","stroke":"","background":"","fill":"","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"I pandërprerë","strokeStyle_dashed":"Me vija","strokeStyle_dotted":"Me pika","sloppiness":"","opacity":"Transparenca","textAlign":"","fontSize":"Madhësia e gërmave","fontFamily":"Familja e gërmave","onlySelected":"Vetëm të përzgjedhurat","withBackground":"Me sfondin","addWatermark":"Shto \\"Made with Excalidraw\\"","handDrawn":"Vizatuar me dorë","normal":"Normale","code":"Kod","small":"E vogël","medium":"E mesme","large":"E madhe","veryLarge":"Shumë e madhe","solid":"Mbushur","hachure":"E vijëzuar","crossHatch":"E vijëzuar kryq","thin":"Hollë","bold":"Trashë","left":"Majtas","center":"Në qendër","right":"Djathtas","extraBold":"Shumë trashë","architect":"Arkitekt","artist":"Artist","cartoonist":"Karikaturist","fileTitle":"Titulli i dokumentit","colorPicker":"Përzgjedhësi i ngjyrave","canvasBackground":"Sfondi i kanavacës","drawingCanvas":"Kanavaca e vizatimit","layers":"Shtresat","actions":"Veprimet","language":"Gjuha","createRoom":"","duplicateSelection":"","untitled":"","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","toggleGridMode":""},"buttons":{"clearReset":"","export":"","exportToPng":"","exportToSvg":"","copyToClipboard":"","copyPngToClipboard":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"","selectLanguage":"","scrollBackToContent":"","zoomIn":"","zoomOut":"","resetZoom":"","menu":"","done":"","edit":"","undo":"","redo":"","roomDialog":"","createNewRoom":"","toggleFullScreen":"","toggleZenMode":"","exitZenMode":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"Nuk eksportohet telajo bosh.","couldNotCopyToClipboard":"","decryptFailed":"S\'mund të deshifroj të dhënat.","uploadedSecurly":""},"toolBar":{"selection":"Përzgjedhja","draw":"Vizatim me dorë të lirë","rectangle":"Drejtkëndësh","diamond":"Romb","ellipse":"Elips","arrow":"Shigjetë","line":"Vijë","text":"Tekst","lock":""},"headings":{"canvasActions":"Veprime mbi telajon","selectedShapeActions":"Veprime mbi format e përzgjedhura","shapes":"Format"},"hints":{"linearElement":"","freeDraw":"","linearElementMulti":"","resize":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":"Përmbajtja e skenës:"},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"Nis sesionin","button_stopSession":"Ndal sesionin","desc_inProgressIntro":"","desc_persistenceWarning":"","desc_shareLink":"","desc_exitSession":""},"errorDialog":{"title":"Gabim"},"shortcutsDialog":{"title":"Shkurtesat e tastierës","shapes":"Format","or":"ose","click":"kliko","drag":"tërhiq","curvedArrow":"Shigjetë e lakuar","curvedLine":"Vijë e lakuar","editor":"","view":"Shiko","blog":"","howto":"","github":"","textNewLine":"","textFinish":"","zoomToFit":""},"encrypted":{"tooltip":""},"charts":{"noNumericColumn":"","tooManyColumns":""}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Yapıştır","selectAll":"Tümünü seç","moveCanvas":"Tuvali taşı","copy":"Kopyala","copyAsPng":"Panoya PNG olarak kopyala","copyAsSvg":"Panoya SVG olarak kopyala","bringForward":"Bir öne getir","sendToBack":"Arkaya gönder","bringToFront":"En öne getir","sendBackward":"Bir geriye gönder","delete":"Sil","copyStyles":"Stilleri kopyala","pasteStyles":"Stilleri yapıştır","stroke":"Vurgu","background":"Arka plan","fill":"Doldur","strokeWidth":"Kontur genişliği","strokeStyle":"Kontur stili","strokeStyle_solid":"Dolu","strokeStyle_dashed":"Kesik çizgili","strokeStyle_dotted":"Noktalı","sloppiness":"Üstün körülük","opacity":"Opaklık","textAlign":"Metin hizala","fontSize":"Yazı tipi boyutu","fontFamily":"Yazı tipi ailesi","onlySelected":"Sadece seçilen","withBackground":"Arka Plan İle Beraber","addWatermark":"\\"Excalidraw ile yapıldı\\" yazısını ekle","handDrawn":"El-yazısı","normal":"Normal","code":"Kod","small":"Küçük","medium":"Orta","large":"Büyük","veryLarge":"Çok geniş","solid":"Dolu","hachure":"Taralı","crossHatch":"Çapraz-taralı","thin":"İnce","bold":"Kalın","left":"Sol","center":"Ortala","right":"Sağ","extraBold":"Ekstra kalın","architect":"Mimar","artist":"Sanatçı","cartoonist":"Karikatürist","fileTitle":"Dosya başlığı","colorPicker":"Renk seçici","canvasBackground":"Tuval arka planı","drawingCanvas":"Çizim tuvali","layers":"Katmanlar","actions":"Eylemler","language":"Dil","createRoom":"Ortak çalışma ortamını paylaş","duplicateSelection":"Çoğalt","untitled":"Başlıksız","name":"İsim","yourName":"İsminiz","madeWithExcalidraw":"Excalidraw ile yapıldı","group":"Seçimi grup yap","ungroup":"Seçilen grubu dağıt","collaborators":"Ortaklar","toggleGridMode":""},"buttons":{"clearReset":"Tuvali sıfırla","export":"Dışa aktar","exportToPng":"PNG olarak dışa aktar","exportToSvg":"SVG olarak dışa aktar","copyToClipboard":"Panoya kopyala","copyPngToClipboard":"PNG\'yi panoya kopyala","save":"Kaydet","saveAs":"Farklı kaydet","load":"Yükle","getShareableLink":"Paylaşılabilir bağlantı al","close":"Kapat","selectLanguage":"Dil seçin","scrollBackToContent":"İçeriğe geri dön","zoomIn":"Yakınlaştır","zoomOut":"Uzaklaştır","resetZoom":"Yakınlaştırmayı sıfırla","menu":"Menü","done":"Tamam","edit":"Düzenle","undo":"Geri Al","redo":"Yeniden yap","roomDialog":"Ortak çalışma ortamı yarat","createNewRoom":"Yeni oda oluştur","toggleFullScreen":"Tam ekranı aç/kapa","toggleZenMode":"Zen modunu aç/kapa","exitZenMode":"Zen modundan çık"},"alerts":{"clearReset":"Tuvalin tamamı temizlenecek. Emin misiniz?","couldNotCreateShareableLink":"Paylaşılabilir bağlantı oluşturulamadı.","couldNotLoadInvalidFile":"Bilinmeyen dosya yüklenemiyor","importBackendFailed":"Sunucudan içe aktarma başarısız.","cannotExportEmptyCanvas":"Boş tuval dışarıya aktarılamaz.","couldNotCopyToClipboard":"Panoya kopyalanamadı. Chrome tarayıcısını deneyiniz.","decryptFailed":"Şifrelenmiş veri çözümlenemedi.","uploadedSecurly":"Yükleme uçtan uca şifreleme ile korunmaktadır. Excalidraw sunucusu ve üçüncül şahıslar içeriği okuyamayacaktır."},"toolBar":{"selection":"Seçme","draw":"Serbest çizim","rectangle":"Dikdörtgen","diamond":"Elmas","ellipse":"Elips","arrow":"Ok","line":"Çizgi","text":"Yazı","lock":"Seçilen aracı çizimden sonra aktif tut"},"headings":{"canvasActions":"Tuval eylemleri","selectedShapeActions":"Seçilen şekil aksiyonları","shapes":"Şekiller"},"hints":{"linearElement":"Birden fazla nokta için tıklayın, tek çizgi için sürükleyin","freeDraw":"Tıkla ve sürükle, bitirdiğinde serbest bırak","linearElementMulti":"Tamamlamak için son noktayı seçin veya Escape ve Enter\'dan birine basın","resize":"Yeniden boyutlandırırken SHIFT\'e basılı tutarak oranları kısıtlayabilirsiniz, merkezden yeniden boyutlandırmak için ALT\'a basılı tutun","rotate":"Döndürürken SHIFT tuşuna basılı tutarak açıları koruyabilirsiniz","lineEditor_info":"Noktaları düzenlemek için çift-tıklayın veya Enter\'a basın","lineEditor_pointSelected":"Noktayı kaldırmak için Delete tuşuna basın veya taşımak için sürükleyin","lineEditor_nothingSelected":"Kaldırmak veya oynatmak için bir nokta seç, veya yeni noktalar eklemek için Alt\'a basılı tut"},"errorSplash":{"headingMain_pre":"Hata oluştu. Lütfen ","headingMain_button":"sayfayı yenilemeyi deneyin.","clearCanvasMessage":"Yenileme sonrası sorun devam ediyorsa, lütfen ","clearCanvasMessage_button":"çizim alanını temizlemeyi deneyin.","clearCanvasCaveat":" Bu, yaptığınız değişiklikleri sıfırlayacak ","trackedToSentry_pre":"Tanımlayıcı ile ilgili hata ","trackedToSentry_post":" sistemimize yakalandı.","openIssueMessage_pre":"","openIssueMessage_button":"hata takibinde bir yardım bileti oluşturun.","openIssueMessage_post":" Lütfen aşağıya Github sorununa kopyalayarak ve yapıştırarak bilgi ekleyin.","sceneContent":"Sahne içeriği:"},"roomDialog":{"desc_intro":"Çalışma alanınıza, sizinle birlikte çalışabilmeleri için başkalarını da ekleyebilirsiniz.","desc_privacy":"Çalışma ortamında yaptıklarınız ve çizimleriniz uçtan uca şifrelemeyle saklanmaktadır. Sunucularımız dahi bu verileri şifrelenmemiş haliyle göremez.","button_startSession":"Oturumu başlat","button_stopSession":"Oturumu durdur","desc_inProgressIntro":"Ortak çalışma ortamı oluşturuldu.","desc_persistenceWarning":"Çalışma ortamında yaptıklarınız sadece ortama katılmış diğer kişiler ile paylaşılmaktadır. Bundan dolayı, hepinizin bağlantısı kesilirse ve bir dosyaya veya paylaşılabilir link\'e dışa aktarmamışsanız tüm verilerinizi kaybedebilirsiniz.","desc_shareLink":"Bu bağlantıyı birlikte çalışacağınız kişilerle paylaşabilirsiniz:","desc_exitSession":"Çalışma ortamını kapattığınızda ortak çalışmadan ayrılmış olursunuz ancak kendi versiyonunuzda çalışmaya devam edebilirsiniz. Bu durumda ortak çalıştığınız diğer kişiler etkilenmeyecek, çalışma ortamındaki versiyon üzerinden çalışmaya devam edebilecekler."},"errorDialog":{"title":"Hata"},"shortcutsDialog":{"title":"Klavye kısayolları","shapes":"Şekiller","or":"veya","click":"tıkla","drag":"sürükle","curvedArrow":"Eğri ok","curvedLine":"Eğri çizgi","editor":"Düzenleyici","view":"Görüntüle","blog":"Blog\'umuzu okuyun","howto":"Rehberimizi takip edin","github":"Bir hata mı buldun? Bildir","textNewLine":"Yeni satır ekle (yazı)","textFinish":"(Yazıyı) düzenlemeyi bitir","zoomToFit":"Tüm öğeleri sığdırmak için yakınlaştır"},"encrypted":{"tooltip":"Çizimleriniz sonuna kadar şifrelenmiştir, Excalidraw\'ın sunucuları bile onları göremez."},"charts":{"noNumericColumn":"Sayısal sütunu olmayan bir tablo yapıştırdın.","tooManyColumns":"İkiden daha fazla sütuna sahip bir tablo yapıştırdın."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"Вставити","selectAll":"Вибрати все","moveCanvas":"Перемістити полотно","copy":"Копіювати","copyAsPng":"Копіювати як PNG","copyAsSvg":"Копіювати як SVG","bringForward":"Перемістити вперед","sendToBack":"На задній план","bringToFront":"На передній план","sendBackward":"Перемістити назад","delete":"Видалити","copyStyles":"Копіювати стилі","pasteStyles":"Вставити стилі","stroke":"Контур","background":"Тло","fill":"Заповнити","strokeWidth":"Товщина контуру","strokeStyle":"Стиль контуру","strokeStyle_solid":"Суцільний","strokeStyle_dashed":"Пунктир","strokeStyle_dotted":"Крапки","sloppiness":"Охайність","opacity":"Прозорість","textAlign":"Вирівнювання тексту","fontSize":"Розмір шрифту","fontFamily":"Шрифт","onlySelected":"Тільки вибране","withBackground":"З тлом","addWatermark":"Додати «Накреслене в Excalidraw»","handDrawn":"Рукописний","normal":"Звичайний","code":"Код","small":"Малий","medium":"Середній","large":"Великий","veryLarge":"Дуже великий","solid":"Суцільна","hachure":"Штриховка","crossHatch":"Перехресна штриховка","thin":"Тонкий","bold":"Жирний","left":"Зліва","center":"По центру","right":"Справа","extraBold":"Товстий","architect":"Архітектор","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Назва файла","colorPicker":"Палітра кольорів","canvasBackground":"Тло полотна","drawingCanvas":"Полотно","layers":"Шари","actions":"Дії","language":"Мова","createRoom":"Поділитися сесією для спільної роботи","duplicateSelection":"Дублювати","untitled":"Без-назви","name":"Ім’я","yourName":"Ваше ім’я","madeWithExcalidraw":"Накреслене в Excalidraw","group":"Групувати виділене","ungroup":"Розгрупувати виділене","collaborators":"Співавтори","toggleGridMode":"Режим сітки"},"buttons":{"clearReset":"Очистити полотно","export":"Експортувати","exportToPng":"Експортувати в PNG","exportToSvg":"Експортувати в SVG","copyToClipboard":"Скопіювати до буферу обміну","copyPngToClipboard":"Скопіювати PNG до буферу обміну","save":"Зберегти","saveAs":"Зберегти як","load":"Завантажити","getShareableLink":"Отримати посилання","close":"Закрити","selectLanguage":"Обрати мову","scrollBackToContent":"Повернутися до вмісту","zoomIn":"Збільшити","zoomOut":"Зменшити","resetZoom":"Скинути масштаб","menu":"Меню","done":"Готово","edit":"Редагувати","undo":"Відмінити","redo":"Повторити","roomDialog":"Відкрити сесію спільної роботи","createNewRoom":"Створити нову кімнату","toggleFullScreen":"Повноекранний режим","toggleZenMode":"Дзен-режим","exitZenMode":"Вийти з дзен-режиму"},"alerts":{"clearReset":"Це очистить все полотно. Впевнені?","couldNotCreateShareableLink":"Не вдалося створити посилання.","couldNotLoadInvalidFile":"Файл з помилками не відкрився","importBackendFailed":"Імпортування невдале.","cannotExportEmptyCanvas":"Не вийшло експортувати пусте полотно.","couldNotCopyToClipboard":"Не копіюється до буферу обміну. Спробуйте в браузері Chrome.","decryptFailed":"Не вдалося розшифрувати дані.","uploadedSecurly":"Це завантаження було захищене наскрізним шифруванням, а це означає що сервер Excalidraw та інші не зможуть прочитати вміст."},"toolBar":{"selection":"Виділення","draw":"Вільне креслення","rectangle":"Прямокутник","diamond":"Ромб","ellipse":"Еліпс","arrow":"Стрілка","line":"Лінія","text":"Текст","lock":"Залишити обраний інструмент після креслення"},"headings":{"canvasActions":"Дії з полотном","selectedShapeActions":"Вибрані дії з фігурою","shapes":"Фігури"},"hints":{"linearElement":"Натисніть щоб додати кілька точок, перетягніть щоб намалювати одну лінію","freeDraw":"Натисніть і потягніть, відпустіть коли завершите","linearElementMulti":"Натисніть на останню точку, клацніть Esc або Enter щоб завершити","resize":"Ви можете зберегти пропорції, утримуючи SHIFT під час зміни розміру,\\nутримуйте ALT для змінення розміру від центру","rotate":"Ви можете обмежити кути, утримуючи SHIFT під час обертання","lineEditor_info":"Двічі клацніть або натисніть Enter щоб редагувати точки","lineEditor_pointSelected":"Натисніть Delete щоб видалити точку або потягніть, щоб перемістити","lineEditor_nothingSelected":"Виберіть точку для переміщення чи видалення, або утримуйте Alt і натисніть, щоб додати нові точки"},"errorSplash":{"headingMain_pre":"Сталася помилка. Спробуйте ","headingMain_button":"перезавантажити сторінку.","clearCanvasMessage":"Якщо перезавантаження не допоможе, спробуйте ","clearCanvasMessage_button":"очистити полотно.","clearCanvasCaveat":" Це призведе до втрати роботи ","trackedToSentry_pre":"Помилка з ідентифікатором ","trackedToSentry_post":" було відслідковано в нашій системі.","openIssueMessage_pre":"Ми були дуже обережні, щоб не включати інформацію про ваші сцени в текст помилки. Якщо ваша сцена не була приватна, будь ласка, розгляньте можливість продовження на нашому ","openIssueMessage_button":"трекер помилок.","openIssueMessage_post":" Будь ласка, додайте інформацію нижче, скопіюючи і вставляючи у GitHub issue.","sceneContent":"Вміст сцени:"},"roomDialog":{"desc_intro":"Ви можете запросити людей на вашу поточну сцену для співпраці з вами.","desc_privacy":"Не хвилюйтеся, сесія захищена наскрізним шифруванням, тому ваше креслення залишиться приватним. Навіть наш сервер не побачить вашу мазанину.","button_startSession":"Почати сесію","button_stopSession":"Закрити сесію","desc_inProgressIntro":"Сесія спільної роботи над кресленням триває.","desc_persistenceWarning":"Зауважте, що креслення поширюються серед співавторів методом P2P, і не зберігаються на нашому сервері. Як тільки ви від’єднаєтеся, ви втратите ваші дані, хіба що перед виходом ви експортуєте файл, або зробите посилання.","desc_shareLink":"Поділіться цим посиланням з будь-ким для спільної роботи:","desc_exitSession":"Зупинка сесії відключить вас від кімнати, але ви зможете продовжити роботу з полотном локально. Зверніть увагу, що це не вплине на інших людей, і вони все одно зможуть працювати над їх версією."},"errorDialog":{"title":"Помилка"},"shortcutsDialog":{"title":"Гарячі клавіші","shapes":"Фігури","or":"або","click":"натиснути","drag":"перетягнути","curvedArrow":"Вигнута стрілка","curvedLine":"Вигнута лінія","editor":"Редактор","view":"Вигляд","blog":"Читайте наш блог","howto":"Дотримуйтесь наших інструкцій","github":"Знайшли помилку? Повідомте!","textNewLine":"Додати новий рядок (текст)","textFinish":"Завершити редагування (текст)","zoomToFit":"Збільшити щоб умістити все"},"encrypted":{"tooltip":"Ваші малюнки захищені наскрізним шифруванням — сервери Excalidraw ніколи їх не побачать."},"charts":{"noNumericColumn":"Ви вставили таблицю без числової колонки.","tooManyColumns":"Ви вставляли таблицю з більш ніж двома колонками."}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"粘贴","selectAll":"选择所有","moveCanvas":"移动画布","copy":"复制","copyAsPng":"复制为 PNG 到剪贴板","copyAsSvg":"复制为 SVG 到剪贴板","bringForward":"上移一层","sendToBack":"置于底层","bringToFront":"置于顶层","sendBackward":"下移一层","delete":"删除","copyStyles":"复制样式","pasteStyles":"粘贴样式","stroke":"描边","background":"背景","fill":"填充","strokeWidth":"描边宽度","strokeStyle":"描边 (样式)","strokeStyle_solid":"实线","strokeStyle_dashed":"虚线","strokeStyle_dotted":"点虚线","sloppiness":"边框","opacity":"透明度","textAlign":"文本对齐","fontSize":"字体大小","fontFamily":"字体","onlySelected":"仅被选中","withBackground":"添加背景","addWatermark":"添加“使用 Excalidraw 创建”","handDrawn":"手写","normal":"正常","code":"代码","small":"小号","medium":"中等","large":"大号","veryLarge":"极大","solid":"实心","hachure":"线条","crossHatch":"交叉线条","thin":"细","bold":"加粗","left":"左对齐","center":"居中","right":"右对齐","extraBold":"超粗","architect":"朴素","artist":"艺术","cartoonist":"漫画师","fileTitle":"文件标题","colorPicker":"调色盘","canvasBackground":"Canvas 背景","drawingCanvas":"绘制 Canvas","layers":"图层","actions":"操作","language":"语言","createRoom":"分享实时协作会议","duplicateSelection":"复制所有已选择的元素","untitled":"无标题","name":"名字","yourName":"您的姓名","madeWithExcalidraw":"使用 Excalidraw 创建","group":"组选","ungroup":"取消组选","collaborators":"协作者","toggleGridMode":"切换网格模式"},"buttons":{"clearReset":"重置画布","export":"导出","exportToPng":"导出为 PNG","exportToSvg":"导出为 SVG","copyToClipboard":"复制到剪贴板","copyPngToClipboard":"复制 PNG 到剪切板","save":"保存","saveAs":"保存为","load":"载入文件","getShareableLink":"获取共享链接","close":"关闭","selectLanguage":"选择语言","scrollBackToContent":"滚动回到内容","zoomIn":"放大","zoomOut":"缩小","resetZoom":"重置缩放","menu":"菜单","done":"完成","edit":"编辑","undo":"撤销","redo":"重做","roomDialog":"开始实时协作","createNewRoom":"新建会议室","toggleFullScreen":"切换全屏显示","toggleZenMode":"切换禅模式","exitZenMode":"退出禅模式"},"alerts":{"clearReset":"这将会清除整个 画板。您是否要继续?","couldNotCreateShareableLink":"无法创建共享链接","couldNotLoadInvalidFile":"无法加载错误文件","importBackendFailed":"从后端导入失败","cannotExportEmptyCanvas":"无法导出空画布。","couldNotCopyToClipboard":"无法复制到剪贴板。请尝试使用 Chrome 浏览器。","decryptFailed":"无法解密数据。","uploadedSecurly":"上传已被端到端加密保护,这意味着Excalidraw 的服务器和第三方都无法读取内容。"},"toolBar":{"selection":"选择","draw":"自由书写","rectangle":"矩形","diamond":"菱形","ellipse":"椭圆","arrow":"箭头","line":"线条","text":"文字","lock":"绘制后保持所选的工具栏状态"},"headings":{"canvasActions":"画布动作","selectedShapeActions":"选定形状操作","shapes":"形状"},"hints":{"linearElement":"点击创建多个点 拖动创建直线","freeDraw":"点击并拖动,完成后发布","linearElementMulti":"点击最后一个点或按下 Esc/Enter 来完成","resize":"您可以按住SHIFT来限制比例大小,\\n按住ALT来调整中心大小","rotate":"旋转时可以按住 Shift 来约束角度","lineEditor_info":"双击或按回车键编辑","lineEditor_pointSelected":"按删除键删除或拖动到回收站删除","lineEditor_nothingSelected":"选中要移动或移除的点,或按住Alt并点击添加新点"},"errorSplash":{"headingMain_pre":"遇到异常。请尝试 ","headingMain_button":"重新加载页面。","clearCanvasMessage":"如果重新加载页面无效, 请尝试 ","clearCanvasMessage_button":"清除画布。","clearCanvasCaveat":" 这会造成当前工作丢失 ","trackedToSentry_pre":"带有标识符的错误 ","trackedToSentry_post":" 已在我们的系统中跟踪","openIssueMessage_pre":"我们非常谨慎地不将您的场景信息包含在错误信息中。如果您的场景不是私密的,请考虑跟进我们的 ","openIssueMessage_button":"错误追踪器。","openIssueMessage_post":" 请复制并粘贴以下信息到 GitHub Issue 中。","sceneContent":"画布 内容:"},"roomDialog":{"desc_intro":"你可以邀请其他人到目前的画面中与你协作。","desc_privacy":"别担心, 该会话使用端到端加密, 无论绘制什么都将保持私密,甚至连我们的服务器也无法查看。","button_startSession":"启动会议","button_stopSession":"结束会议","desc_inProgressIntro":"实时协作会议正在进行。","desc_persistenceWarning":"请注意,场景数据是以P2P方式在合作者之间共享的,不会持续到我们的服务器。 因此,如果您都断开了连接,您将会丢失数据,除非您将其导出到一个文件或一个可共享的链接。","desc_shareLink":"分享此链接给你要协作的用户","desc_exitSession":"停止会话将中断您在与房间的连接,但您依然可以在本地继续使用画布. 请注意,这不会影响到其他用户, 他们仍可以在他们的版本上继续协作。"},"errorDialog":{"title":"错误"},"shortcutsDialog":{"title":"快捷键列表","shapes":"形状","or":"或者","click":"点击","drag":"拖动","curvedArrow":"曲线(带有箭头)","curvedLine":"曲线(无箭头)","editor":"编辑器","view":"视图","blog":"浏览我们的博客","howto":"跟随我们的指南","github":"发现问题?提交","textNewLine":"文本换行","textFinish":"完成编辑文本","zoomToFit":"缩放以适应所有元素"},"encrypted":{"tooltip":"您的绘图采用的端到端加密,因此Excalidraw服务器永远不会收集。"},"charts":{"noNumericColumn":"您粘贴了一个没有数字列的表格。","tooManyColumns":"您粘贴了两列以上的表格。"}}')},function(e){e.exports=JSON.parse('{"labels":{"paste":"貼上","selectAll":"全選","moveCanvas":"移動畫布","copy":"複製","copyAsPng":"複製 PNG 至剪貼簿","copyAsSvg":"複製 SVG 至剪貼簿","bringForward":"往前移一層","sendToBack":"移到最後面","bringToFront":"移到最前面","sendBackward":"往後移一層","delete":"刪除","copyStyles":"複製樣式","pasteStyles":"貼上樣式","stroke":"筆畫","background":"背景","fill":"填充","strokeWidth":"筆劃寬度","strokeStyle":"筆畫樣式","strokeStyle_solid":"實線","strokeStyle_dashed":"虛線","strokeStyle_dotted":"點線","sloppiness":"線條風格","opacity":"透明度","textAlign":"文字對齊","fontSize":"字型大小","fontFamily":"字體","onlySelected":"僅選取物件","withBackground":"包含背景","addWatermark":"加上 \\"Made with Excalidraw\\"","handDrawn":"手寫","normal":"一般","code":"等寬","small":"小","medium":"中","large":"大","veryLarge":"特大","solid":"實心","hachure":"斜線筆觸","crossHatch":"交叉筆觸","thin":"細","bold":"粗","left":"左側","center":"置中","right":"右側","extraBold":"極粗","architect":"精確","artist":"藝術","cartoonist":"卡通","fileTitle":"檔案名稱","colorPicker":"色彩選擇工具","canvasBackground":"Canvas 背景","drawingCanvas":"繪圖 canvas","layers":"圖層","actions":"動作","language":"語言","createRoom":"建立新協作會議室","duplicateSelection":"複製","untitled":"無標題","name":"名稱","yourName":"你的名稱","madeWithExcalidraw":"以 Excalidraw 製作","group":"建立群組","ungroup":"取消群組","collaborators":"協作者","toggleGridMode":"切換格線模式"},"buttons":{"clearReset":"重置 canvas","export":"輸出","exportToPng":"輸出成 PNG","exportToSvg":"輸出成 SVG","copyToClipboard":"複製至剪貼簿","copyPngToClipboard":"複製 PNG 至剪貼簿","save":"儲存","saveAs":"儲存為","load":"載入","getShareableLink":"取得共享連結","close":"關閉","selectLanguage":"選擇語言","scrollBackToContent":"捲動回到內容","zoomIn":"放大","zoomOut":"縮小","resetZoom":"重設縮放","menu":"選單","done":"完成","edit":"編輯","undo":"復原","redo":"重做","roomDialog":"開始即時協作","createNewRoom":"建立新協作會議室","toggleFullScreen":"切換全螢幕","toggleZenMode":"切換專注模式","exitZenMode":"離開專注模式"},"alerts":{"clearReset":"這將會清除整個 canvas。你確定嗎?","couldNotCreateShareableLink":"無法建立共享連結。","couldNotLoadInvalidFile":"無法讀取失效的檔案。","importBackendFailed":"後端讀取失敗。","cannotExportEmptyCanvas":"無法輸出空白的 canvas。","couldNotCopyToClipboard":"無法複製至剪貼簿。請使用 Chrome 瀏覽器再試試看。","decryptFailed":"無法解密資料。","uploadedSecurly":"上傳已通過 end-to-end 加密,Excalidraw 伺服器和第三方無法皆讀取其內容。"},"toolBar":{"selection":"選取","draw":"繪圖","rectangle":"長方形","diamond":"菱形","ellipse":"橢圓","arrow":"箭頭","line":"線條","text":"文字","lock":"可連續使用選取的工具"},"headings":{"canvasActions":"canvas 動作","selectedShapeActions":"選取圖形動作","shapes":"形狀"},"hints":{"linearElement":"點擊以繪製多點曲線;或拖曳以繪製直線","freeDraw":"點擊並拖曳來繪圖,放開即結束","linearElementMulti":"按下 Escape 或 Enter 以結束繪製","resize":"縮放時按住 Shift 可保持原比例縮放;\\\\n按住 Alt 可由中心點進行縮放","rotate":"旋轉時按住 Shift 可限制旋轉角度","lineEditor_info":"雙擊滑鼠左鍵或按 Enter 來編輯控制點","lineEditor_pointSelected":"按下 Delete 可刪除控制點;亦可拖曳移動控制點","lineEditor_nothingSelected":"點選想移動或刪除的控制點;或按住 Alt 再點擊以增加新控制點"},"errorSplash":{"headingMain_pre":"發生錯誤,嘗試","headingMain_button":"重新載入頁面。","clearCanvasMessage":"若重新載入仍無法解決問題,嘗試","clearCanvasMessage_button":"清除 canvas。","clearCanvasCaveat":"此動作將造成目前的作品被移除。","trackedToSentry_pre":"此錯誤與其識別碼","trackedToSentry_post":"將由系統記錄。","openIssueMessage_pre":"我們將謹慎處理,你的作品內容不會被包含在錯誤報告中。若你的作品不需保持私密,請考慮使用我們的","openIssueMessage_button":"bug tracker。","openIssueMessage_post":"請將下列資訊複製貼上至 GitHub issue 中。","sceneContent":"作品內容:"},"roomDialog":{"desc_intro":"你可以邀請其他人一起協作目前的作品。","desc_privacy":"連線使用 end-to-end 加密故無須擔心作品的安全性。即使是我們的伺服器也無法取得其內容。","button_startSession":"開始連線","button_stopSession":"停止連線","desc_inProgressIntro":"即時協作連線正在進行中。","desc_persistenceWarning":"請注意此作品的資料是以 P2P 的方式分享給所有參與者,並未儲存於我們的伺服器。故若所有參加者皆斷線,未輸出或建立分享連結的內容將會遺失。","desc_shareLink":"將此連結分享給欲協作的對象:","desc_exitSession":"停止連線將中斷你與協作會議室的連結,但你仍可於本機編輯此作品。意指停止連線後你的編輯不會被先前共同協作的人看見,且他們可繼續共同協作另一個版本。"},"errorDialog":{"title":"錯誤"},"shortcutsDialog":{"title":"鍵盤快速鍵","shapes":"形狀","or":"或","click":"點擊","drag":"拖曳","curvedArrow":"箭頭曲線","curvedLine":"曲線","editor":"編輯器","view":"檢視","blog":"閱讀部落格","howto":"官方指南","github":"發現問題?回報 issue","textNewLine":"換行(文字)","textFinish":"完成編輯(文字)","zoomToFit":"放大至填滿畫面"},"encrypted":{"tooltip":"你的作品已使用 end-to-end 方式加密,Excalidraw 的伺服器也無法取得其內容。"},"charts":{"noNumericColumn":"你貼上的 spreadsheet 沒有數字欄。","tooManyColumns":"你貼上的 spreadsheet 超過兩欄。"}}')},function(e,t,n){"use strict";n.r(t),n.d(t,"serializeAsJSON",(function(){return xa})),n.d(t,"loadFromBlob",(function(){return wa})),n.d(t,"default",(function(){return ou}));var r=n(0),o=n.n(r);function a(e,t,n){if(e&&e.length){var r=t[0],o=t[1],a=Math.PI/180*n,i=Math.cos(a),s=Math.sin(a);e.forEach((function(e){var t=e[0],n=e[1];e[0]=(t-r)*i-(n-o)*s+r,e[1]=(t-r)*s+(n-o)*i+o}))}}function i(e){var t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}function s(e,t,n){var r=e.length;if(r<3)return!1;for(var o=[Number.MAX_SAFE_INTEGER,n],a=[t,n],i=0,s=0;s<r;s++){var d=e[s],p=e[(s+1)%r];if(u(d,p,a,o)){if(0===c(d,a,p))return l(d,a,p);i++}}return i%2==1}function l(e,t,n){return t[0]<=Math.max(e[0],n[0])&&t[0]>=Math.min(e[0],n[0])&&t[1]<=Math.max(e[1],n[1])&&t[1]>=Math.min(e[1],n[1])}function c(e,t,n){var r=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return 0===r?0:r>0?1:2}function u(e,t,n,r){var o=c(e,t,n),a=c(e,t,r),i=c(n,r,e),s=c(n,r,t);return o!==a&&i!==s||(!(0!==o||!l(e,n,t))||(!(0!==a||!l(e,r,t))||(!(0!==i||!l(n,e,r))||!(0!==s||!l(n,t,r)))))}var d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function p(e,t){var n=[0,0],r=Math.round(t.hachureAngle+90);r&&a(e,n,r);var o=function(e,t){var n=d(e);n[0].join(",")!==n[n.length-1].join(",")&&n.push([n[0][0],n[0][1]]);var r=[];if(n&&n.length>2){var o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.max(o,.1);for(var a=[],i=0;i<n.length-1;i++){var s=n[i],l=n[i+1];if(s[1]!==l[1]){var c=Math.min(s[1],l[1]);a.push({ymin:c,ymax:Math.max(s[1],l[1]),x:c===s[1]?s[0]:l[0],islope:(l[0]-s[0])/(l[1]-s[1])})}}if(a.sort((function(e,t){return e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)})),!a.length)return r;for(var u=[],p=a[0].ymin;u.length||a.length;){if(a.length){var h=-1;for(i=0;i<a.length&&!(a[i].ymin>p);i++)h=i;a.splice(0,h+1).forEach((function(e){u.push({s:p,edge:e})}))}if((u=u.filter((function(e){return!(e.edge.ymax<=p)}))).sort((function(e,t){return e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)})),u.length>1)for(i=0;i<u.length;i+=2){var f=i+1;if(f>=u.length)break;var m=u[i].edge,g=u[f].edge;r.push([[Math.round(m.x),p],[Math.round(g.x),p]])}p+=o,u.forEach((function(e){e.edge.x=e.edge.x+o*e.edge.islope}))}}return r}(e,t);return r&&(a(e,n,-r),function(e,t,n){var r=[];e.forEach((function(e){return r.push.apply(r,e)})),a(r,t,n)}(o,n,-r)),o}var h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},f=function(){function e(e){this.helper=e}return e.prototype.fillPolygon=function(e,t){return this._fillPolygon(e,t)},e.prototype._fillPolygon=function(e,t,n){void 0===n&&(n=!1);var r=p(e,t);if(n){var o=this.connectingLines(e,r);r=r.concat(o)}return{type:"fillSketch",ops:this.renderLines(r,t)}},e.prototype.renderLines=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];n.push.apply(n,this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],t))}return n},e.prototype.connectingLines=function(e,t){var n=[];if(t.length>1)for(var r=1;r<t.length;r++){var o=t[r-1];if(!(i(o)<3)){var a=[t[r][0],o[1]];if(i(a)>3){var s=this.splitOnIntersections(e,a);n.push.apply(n,s)}}}return n},e.prototype.midPointInPolygon=function(e,t){return s(e,(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2)},e.prototype.splitOnIntersections=function(e,t){for(var n,r,o,a,l,c,d,p,f,m,g,y=Math.max(5,.1*i(t)),v=[],b=0;b<e.length;b++){var k=e[b],w=e[(b+1)%e.length];if(u.apply(void 0,h([k,w],t))){var S=(n=k,r=w,o=t[0],a=t[1],l=void 0,c=void 0,d=void 0,p=void 0,f=void 0,m=void 0,g=void 0,l=r[1]-n[1],c=n[0]-r[0],d=l*n[0]+c*n[1],p=a[1]-o[1],f=o[0]-a[0],m=p*o[0]+f*o[1],(g=l*f-p*c)?[(f*d-c*m)/g,(l*m-p*d)/g]:null);if(S){var E=i([S,t[0]]),C=i([S,t[1]]);E>y&&C>y&&v.push({point:S,distance:E})}}}if(v.length>1){var x=v.sort((function(e,t){return e.distance-t.distance})).map((function(e){return e.point}));if(s.apply(void 0,h([e],t[0]))||x.shift(),s.apply(void 0,h([e],t[1]))||x.pop(),x.length<=1)return this.midPointInPolygon(e,t)?[t]:[];var _=h([t[0]],x,[t[1]]),T=[];for(b=0;b<_.length-1;b+=2){var P=[_[b],_[b+1]];this.midPointInPolygon(e,P)&&T.push(P)}return T}return this.midPointInPolygon(e,t)?[t]:[]},e}(),m=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.fillPolygon=function(e,t){return this._fillPolygon(e,t,!0)},t}(f),y=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.fillPolygon=function(e,t){var n=this._fillPolygon(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),o=this._fillPolygon(e,r);return n.ops=n.ops.concat(o.ops),n},t}(f),b=function(){function e(e){this.helper=e}return e.prototype.fillPolygon=function(e,t){var n=p(e,t=Object.assign({},t,{curveStepCount:4,hachureAngle:0,roughness:1}));return this.dotsOnLines(n,t)},e.prototype.dotsOnLines=function(e,t){var n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);var o=t.fillWeight;o<0&&(o=t.strokeWidth/2);for(var a=r/4,s=0,l=e;s<l.length;s++)for(var c=l[s],u=i(c),d=u/r,p=Math.ceil(d)-1,h=u-p*r,f=(c[0][0]+c[1][0])/2-r/4,m=Math.min(c[0][1],c[1][1]),g=0;g<p;g++){var y=m+h+g*r,v=this.helper.randOffsetWithRange(f-a,f+a,t),b=this.helper.randOffsetWithRange(y-a,y+a,t),k=this.helper.ellipse(v,b,o,o,t);n.push.apply(n,k.ops)}return{type:"fillSketch",ops:n}},e}(),k=function(){function e(e){this.helper=e}return e.prototype.fillPolygon=function(e,t){var n=p(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}},e.prototype.dashedLine=function(e,t){var n=this,r=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,o=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,a=[];return e.forEach((function(e){var s=i(e),l=Math.floor(s/(r+o)),c=(s+o-l*(r+o))/2,u=e[0],d=e[1];u[0]>d[0]&&(u=e[1],d=e[0]);for(var p=Math.atan((d[1]-u[1])/(d[0]-u[0])),h=0;h<l;h++){var f=h*(r+o),m=f+r,g=[u[0]+f*Math.cos(p)+c*Math.cos(p),u[1]+f*Math.sin(p)+c*Math.sin(p)],y=[u[0]+m*Math.cos(p)+c*Math.cos(p),u[1]+m*Math.sin(p)+c*Math.sin(p)];a.push.apply(a,n.helper.doubleLineOps(g[0],g[1],y[0],y[1],t))}})),a},e}(),w=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},S=function(){function e(e){this.helper=e}return e.prototype.fillPolygon=function(e,t){var n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,o=p(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(o,r,t)}},e.prototype.zigzagLines=function(e,t,n){var r=this,o=[];return e.forEach((function(e){var a=i(e),s=Math.round(a/(2*t)),l=e[0],c=e[1];l[0]>c[0]&&(l=e[1],c=e[0]);for(var u=Math.atan((c[1]-l[1])/(c[0]-l[0])),d=0;d<s;d++){var p=2*d*t,h=2*(d+1)*t,f=Math.sqrt(2*Math.pow(t,2)),m=[l[0]+p*Math.cos(u),l[1]+p*Math.sin(u)],g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],y=[m[0]+f*Math.cos(u+Math.PI/4),m[1]+f*Math.sin(u+Math.PI/4)];o.push.apply(o,w(r.helper.doubleLineOps(m[0],m[1],y[0],y[1],n),r.helper.doubleLineOps(y[0],y[1],g[0],g[1],n)))}})),o},e}(),E={};var C=function(){function e(e){this.seed=e}return e.prototype.next=function(){return this.seed?(Math.pow(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Math.pow(2,31):Math.random()},e}();const x={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function _(e,t){return e.type===t}function T(e){const t=[],n=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:""+parseFloat(RegExp.$1)},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",o=0,a=n[o];for(;!_(a,2);){let i=0;const s=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return T("M0,0"+e);o++,i=x[a.text],r=a.text}else _(a,1)?i=x[r]:(o++,i=x[a.text],r=a.text);if(!(o+i<n.length))throw new Error("Path data ended short");for(let e=o;e<o+i;e++){const t=n[e];if(!_(t,1))throw new Error("Param not a number: "+r+","+t.text);s[s.length]=+t.text}if("number"!=typeof x[r])throw new Error("Bad segment: "+r);{const e={key:r,data:s};t.push(e),o+=i,a=n[o],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function P(e){let t=0,n=0,r=0,o=0;const a=[];for(const{key:i,data:s}of e)switch(i){case"M":a.push({key:"M",data:[...s]}),[t,n]=s,[r,o]=s;break;case"m":t+=s[0],n+=s[1],a.push({key:"M",data:[t,n]}),r=t,o=n;break;case"L":a.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{const e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const e=s.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=o}return a}function O(e){const t=[];let n="",r=0,o=0,a=0,i=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,o]=u,[a,i]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],o=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,o]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,o]});break;case"V":o=u[0],t.push({key:"L",data:[r,o]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-s),a=o+(o-l)):(e=r,a=o),t.push({key:"C",data:[e,a,...u]}),s=u[0],l=u[1],r=u[2],o=u[3];break}case"T":{const[e,a]=u;let i=0,c=0;"Q"===n||"T"===n?(i=r+(r-s),c=o+(o-l)):(i=r,c=o);const d=r+2*(i-r)/3,p=o+2*(c-o)/3,h=e+2*(i-e)/3,f=a+2*(c-a)/3;t.push({key:"C",data:[d,p,h,f,e,a]}),s=i,l=c,r=e,o=a;break}case"Q":{const[e,n,a,i]=u,c=r+2*(e-r)/3,d=o+2*(n-o)/3,p=a+2*(e-a)/3,h=i+2*(n-i)/3;t.push({key:"C",data:[c,d,p,h,a,i]}),s=e,l=n,r=a,o=i;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],i=u[3],s=u[4],l=u[5],c=u[6];if(0===e||0===n)t.push({key:"C",data:[r,o,l,c,l,c]}),r=l,o=c;else if(r!==l||o!==c){M(r,o,l,c,e,n,a,i,s).forEach((function(e){t.push({key:"C",data:e})})),r=l,o=c}break}case"Z":t.push({key:"Z",data:[]}),r=a,o=i}n=c}return t}function A(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function M(e,t,n,r,o,a,i,s,l,c){const u=(d=i,Math.PI*d/180);var d;let p=[],h=0,f=0,m=0,g=0;if(c)[h,f,m,g]=c;else{[e,t]=A(e,t,-u),[n,r]=A(n,r,-u);const i=(e-n)/2,c=(t-r)/2;let d=i*i/(o*o)+c*c/(a*a);d>1&&(d=Math.sqrt(d),o*=d,a*=d);const p=o*o,y=a*a,v=p*y-p*c*c-y*i*i,b=p*c*c+y*i*i,k=(s===l?-1:1)*Math.sqrt(Math.abs(v/b));m=k*o*c/a+(e+n)/2,g=k*-a*i/o+(t+r)/2,h=Math.asin(parseFloat(((t-g)/a).toFixed(9))),f=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<m&&(h=Math.PI-h),n<m&&(f=Math.PI-f),h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),l&&h>f&&(h-=2*Math.PI),!l&&f>h&&(f-=2*Math.PI)}let y=f-h;if(Math.abs(y)>120*Math.PI/180){const e=f,t=n,s=r;f=l&&f>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,p=M(n=m+o*Math.cos(f),r=g+a*Math.sin(f),t,s,o,a,i,0,l,[f,e,m,g])}y=f-h;const v=Math.cos(h),b=Math.sin(h),k=Math.cos(f),w=Math.sin(f),S=Math.tan(y/4),E=4/3*o*S,C=4/3*a*S,x=[e,t],_=[e+E*b,t-C*v],T=[n+E*w,r-C*k],P=[n,r];if(_[0]=2*x[0]-_[0],_[1]=2*x[1]-_[1],c)return[_,T,P].concat(p);{p=[_,T,P].concat(p);const e=[];for(let t=0;t<p.length;t+=3){const n=A(p[t][0],p[t][1],u),r=A(p[t+1][0],p[t+1][1],u),o=A(p[t+2][0],p[t+2][1],u);e.push([n[0],n[1],r[0],r[1],o[0],o[1]])}return e}}var z=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},I={randOffset:function(e,t){return K(e,t)},randOffsetWithRange:function(e,t,n){return V(e,t,n)},ellipse:function(e,t,n,r,o){var a=F(n,r,o);return B(e,t,o,a).opset},doubleLineOps:function(e,t,n,r,o){return Y(e,t,n,r,o,!0)}};function j(e,t,n,r,o){return{type:"path",ops:Y(e,t,n,r,o)}}function D(e,t,n){var r=(e||[]).length;if(r>2){for(var o=[],a=0;a<r-1;a++)o.push.apply(o,Y(e[a][0],e[a][1],e[a+1][0],e[a+1][1],n));return t&&o.push.apply(o,Y(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:o}}return 2===r?j(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function L(e,t,n,r,o){return function(e,t){return D(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],o)}function N(e,t){var n=Z(e,1*(1+.2*t.roughness),t);if(!t.disableMultiStroke){var r=Z(e,1.5*(1+.22*t.roughness),function(e){var t=Object.assign({},e);t.randomizer=void 0,e.seed&&(t.seed=e.seed+1);return t}(t));n=n.concat(r)}return{type:"path",ops:n}}function F(e,t,n){var r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),o=Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r),a=2*Math.PI/o,i=Math.abs(e/2),s=Math.abs(t/2),l=1-n.curveFitting;return{increment:a,rx:i+=K(i*l,n),ry:s+=K(s*l,n)}}function B(e,t,n,r){var o=J(r.increment,e,t,r.rx,r.ry,1,r.increment*V(.1,V(.4,1,n),n),n),a=o[0],i=o[1],s=X(a,null,n);if(!n.disableMultiStroke){var l=X(J(r.increment,e,t,r.rx,r.ry,1.5,0,n)[0],null,n);s=s.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:s}}}function R(e,t,n,r,o,a,i,s,l){var c=e,u=t,d=Math.abs(n/2),p=Math.abs(r/2);d+=K(.01*d,l),p+=K(.01*p,l);for(var h=o,f=a;h<0;)h+=2*Math.PI,f+=2*Math.PI;f-h>2*Math.PI&&(h=0,f=2*Math.PI);var m=2*Math.PI/l.curveStepCount,g=Math.min(m/2,(f-h)/2),y=$(g,c,u,d,p,h,f,1,l);if(!l.disableMultiStroke){var v=$(g,c,u,d,p,h,f,1.5,l);y.push.apply(y,v)}return i&&(s?y.push.apply(y,z(Y(c,u,c+d*Math.cos(h),u+p*Math.sin(h),l),Y(c,u,c+d*Math.cos(f),u+p*Math.sin(f),l))):y.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+d*Math.cos(h),u+p*Math.sin(h)]})),{type:"path",ops:y}}function H(e,t){for(var n=O(P(T(e))),r=[],o=[0,0],a=[0,0],i=function(e,n){switch(e){case"M":var i=1*(t.maxRandomnessOffset||0);r.push({op:"move",data:n.map((function(e){return e+K(i,t)}))}),a=[n[0],n[1]],o=[n[0],n[1]];break;case"L":r.push.apply(r,Y(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]];break;case"C":var s=n[0],l=n[1],c=n[2],u=n[3],d=n[4],p=n[5];r.push.apply(r,function(e,t,n,r,o,a,i,s){for(var l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],d=s.disableMultiStroke?1:2,p=0;p<d;p++)0===p?l.push({op:"move",data:[i[0],i[1]]}):l.push({op:"move",data:[i[0]+K(c[0],s),i[1]+K(c[0],s)]}),u=[o+K(c[p],s),a+K(c[p],s)],l.push({op:"bcurveTo",data:[e+K(c[p],s),t+K(c[p],s),n+K(c[p],s),r+K(c[p],s),u[0],u[1]]});return l}(s,l,c,u,d,p,a,t)),a=[d,p];break;case"Z":r.push.apply(r,Y(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]]}},s=0,l=n;s<l.length;s++){var c=l[s];i(c.key,c.data)}return{type:"path",ops:r}}function G(e,t){var n=[];if(e.length){var r=t.maxRandomnessOffset||0,o=e.length;if(o>2){n.push({op:"move",data:[e[0][0]+K(r,t),e[0][1]+K(r,t)]});for(var a=1;a<o;a++)n.push({op:"lineTo",data:[e[a][0]+K(r,t),e[a][1]+K(r,t)]})}}return{type:"fillPath",ops:n}}function W(e,t){return function(e,t){var n=e.fillStyle||"hachure";if(!E[n])switch(n){case"zigzag":E[n]||(E[n]=new g(t));break;case"cross-hatch":E[n]||(E[n]=new v(t));break;case"dots":E[n]||(E[n]=new b(t));break;case"dashed":E[n]||(E[n]=new k(t));break;case"zigzag-line":E[n]||(E[n]=new S(t));break;case"hachure":default:E[n="hachure"]||(E[n]=new f(t))}return E[n]}(t,I).fillPolygon(e,t)}function U(e){return e.randomizer||(e.randomizer=new C(e.seed||0)),e.randomizer.next()}function V(e,t,n,r){return void 0===r&&(r=1),n.roughness*r*(U(n)*(t-e)+e)}function K(e,t,n){return void 0===n&&(n=1),V(-e,e,t,n)}function Y(e,t,n,r,o,a){void 0===a&&(a=!1);var i=a?o.disableMultiStrokeFill:o.disableMultiStroke,s=q(e,t,n,r,o,!0,!1);if(i)return s;var l=q(e,t,n,r,o,!0,!0);return s.concat(l)}function q(e,t,n,r,o,a,i){var s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;var u=o.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);var d=u/2,p=.2+.2*U(o),h=o.bowing*o.maxRandomnessOffset*(r-t)/200,f=o.bowing*o.maxRandomnessOffset*(e-n)/200;h=K(h,o,c),f=K(f,o,c);var m=[],g=function(){return K(d,o,c)},y=function(){return K(u,o,c)};return a&&(i?m.push({op:"move",data:[e+g(),t+g()]}):m.push({op:"move",data:[e+K(u,o,c),t+K(u,o,c)]})),i?m.push({op:"bcurveTo",data:[h+e+(n-e)*p+g(),f+t+(r-t)*p+g(),h+e+2*(n-e)*p+g(),f+t+2*(r-t)*p+g(),n+g(),r+g()]}):m.push({op:"bcurveTo",data:[h+e+(n-e)*p+y(),f+t+(r-t)*p+y(),h+e+2*(n-e)*p+y(),f+t+2*(r-t)*p+y(),n+y(),r+y()]}),m}function Z(e,t,n){var r=[];r.push([e[0][0]+K(t,n),e[0][1]+K(t,n)]),r.push([e[0][0]+K(t,n),e[0][1]+K(t,n)]);for(var o=1;o<e.length;o++)r.push([e[o][0]+K(t,n),e[o][1]+K(t,n)]),o===e.length-1&&r.push([e[o][0]+K(t,n),e[o][1]+K(t,n)]);return X(r,null,n)}function X(e,t,n){var r=e.length,o=[];if(r>3){var a=[],i=1-n.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(var s=1;s+2<r;s++){var l=e[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(i*e[s+1][0]-i*e[s-1][0])/6,l[1]+(i*e[s+1][1]-i*e[s-1][1])/6],a[2]=[e[s+1][0]+(i*e[s][0]-i*e[s+2][0])/6,e[s+1][1]+(i*e[s][1]-i*e[s+2][1])/6],a[3]=[e[s+1][0],e[s+1][1]],o.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){var c=n.maxRandomnessOffset;o.push({op:"lineTo",data:[t[0]+K(c,n),t[1]+K(c,n)]})}}else 3===r?(o.push({op:"move",data:[e[1][0],e[1][1]]}),o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&o.push.apply(o,Y(e[0][0],e[0][1],e[1][0],e[1][1],n));return o}function J(e,t,n,r,o,a,i,s){var l=[],c=[],u=K(.5,s)-Math.PI/2;c.push([K(a,s)+t+.9*r*Math.cos(u-e),K(a,s)+n+.9*o*Math.sin(u-e)]);for(var d=u;d<2*Math.PI+u-.01;d+=e){var p=[K(a,s)+t+r*Math.cos(d),K(a,s)+n+o*Math.sin(d)];l.push(p),c.push(p)}return c.push([K(a,s)+t+r*Math.cos(u+2*Math.PI+.5*i),K(a,s)+n+o*Math.sin(u+2*Math.PI+.5*i)]),c.push([K(a,s)+t+.98*r*Math.cos(u+i),K(a,s)+n+.98*o*Math.sin(u+i)]),c.push([K(a,s)+t+.9*r*Math.cos(u+.5*i),K(a,s)+n+.9*o*Math.sin(u+.5*i)]),[c,l]}function $(e,t,n,r,o,a,i,s,l){var c=a+K(.1,l),u=[];u.push([K(s,l)+t+.9*r*Math.cos(c-e),K(s,l)+n+.9*o*Math.sin(c-e)]);for(var d=c;d<=i;d+=e)u.push([K(s,l)+t+r*Math.cos(d),K(s,l)+n+o*Math.sin(d)]);return u.push([t+r*Math.cos(i),n+o*Math.sin(i)]),u.push([t+r*Math.cos(i),n+o*Math.sin(i)]),X(u,null,l)}function Q(e){return[...e]}function ee(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function te(e,t,n){const r=ee(t,n);if(0===r)return ee(e,t);let o=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return o=Math.max(0,Math.min(1,o)),ee(e,ne(t,n,o))}function ne(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function re(e,t,n,r){const o=r||[];if(function(e,t){const n=e[t+0],r=e[t+1],o=e[t+2],a=e[t+3];let i=3*r[0]-2*n[0]-a[0];i*=i;let s=3*r[1]-2*n[1]-a[1];s*=s;let l=3*o[0]-2*a[0]-n[0];l*=l;let c=3*o[1]-2*a[1]-n[1];return c*=c,i<l&&(i=l),s<c&&(s=c),i+s}(e,t)<n){const n=e[t+0];if(o.length){(a=o[o.length-1],i=n,Math.sqrt(ee(a,i)))>1&&o.push(n)}else o.push(n);o.push(e[t+3])}else{const r=.5,a=e[t+0],i=e[t+1],s=e[t+2],l=e[t+3],c=ne(a,i,r),u=ne(i,s,r),d=ne(s,l,r),p=ne(c,u,r),h=ne(u,d,r),f=ne(p,h,r);re([a,c,p,f],0,n,o),re([f,h,d,l],0,n,o)}var a,i;return o}function oe(e,t){return ae(e,0,e.length,t)}function ae(e,t,n,r,o){const a=o||[],i=e[t],s=e[n-1];let l=0,c=1;for(let r=t+1;r<n-1;++r){const t=te(e[r],i,s);t>l&&(l=t,c=r)}return Math.sqrt(l)>r?(ae(e,t,c+1,r,a),ae(e,c,n,r,a)):(a.length||a.push(i),a.push(s)),a}function ie(e,t=.15,n){const r=[],o=(e.length-1)/3;for(let n=0;n<o;n++){re(e,3*n,t,r)}return n&&n>0?ae(r,0,r.length,n):r}var se,le,ce="none",ue=function(){function e(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,combineNestedSvgPaths:!1,disableMultiStroke:!1,disableMultiStrokeFill:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}return e.newSeed=function(){return Math.floor(Math.random()*Math.pow(2,31))},e.prototype._o=function(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions},e.prototype._d=function(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}},e.prototype.line=function(e,t,n,r,o){var a=this._o(o);return this._d("line",[j(e,t,n,r,a)],a)},e.prototype.rectangle=function(e,t,n,r,o){var a=this._o(o),i=[],s=L(e,t,n,r,a);if(a.fill){var l=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===a.fillStyle?i.push(G(l,a)):i.push(W(l,a))}return a.stroke!==ce&&i.push(s),this._d("rectangle",i,a)},e.prototype.ellipse=function(e,t,n,r,o){var a=this._o(o),i=[],s=F(n,r,a),l=B(e,t,a,s);if(a.fill)if("solid"===a.fillStyle){var c=B(e,t,a,s).opset;c.type="fillPath",i.push(c)}else i.push(W(l.estimatedPoints,a));return a.stroke!==ce&&i.push(l.opset),this._d("ellipse",i,a)},e.prototype.circle=function(e,t,n,r){var o=this.ellipse(e,t,n,n,r);return o.shape="circle",o},e.prototype.linearPath=function(e,t){var n=this._o(t);return this._d("linearPath",[D(e,!1,n)],n)},e.prototype.arc=function(e,t,n,r,o,a,i,s){void 0===i&&(i=!1);var l=this._o(s),c=[],u=R(e,t,n,r,o,a,i,!0,l);if(i&&l.fill)if("solid"===l.fillStyle){var d=R(e,t,n,r,o,a,!0,!1,l);d.type="fillPath",c.push(d)}else c.push(function(e,t,n,r,o,a,i){var s=e,l=t,c=Math.abs(n/2),u=Math.abs(r/2);c+=K(.01*c,i),u+=K(.01*u,i);for(var d=o,p=a;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);for(var h=(p-d)/i.curveStepCount,f=[],m=d;m<=p;m+=h)f.push([s+c*Math.cos(m),l+u*Math.sin(m)]);return f.push([s+c*Math.cos(p),l+u*Math.sin(p)]),f.push([s,l]),W(f,i)}(e,t,n,r,o,a,l));return l.stroke!==ce&&c.push(u),this._d("arc",c,l)},e.prototype.curve=function(e,t){var n=this._o(t),r=[],o=N(e,n);if(n.fill&&n.fill!==ce&&e.length>=3){var a=ie(function(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(Q(e[0]),Q(e[1]),Q(e[2]),Q(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);const o=[],a=1-t;r.push(Q(n[0]));for(let e=1;e+2<n.length;e++){const t=n[e];o[0]=[t[0],t[1]],o[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],o[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],o[3]=[n[e+1][0],n[e+1][1]],r.push(o[1],o[2],o[3])}}return r}(e),10,(1+n.roughness)/2);"solid"===n.fillStyle?r.push(G(a,n)):r.push(W(a,n))}return n.stroke!==ce&&r.push(o),this._d("curve",r,n)},e.prototype.polygon=function(e,t){var n=this._o(t),r=[],o=D(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(G(e,n)):r.push(W(e,n))),n.stroke!==ce&&r.push(o),this._d("polygon",r,n)},e.prototype.path=function(e,t){var n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");var o=n.fill&&"transparent"!==n.fill&&n.fill!==ce,a=n.stroke!==ce,i=!!(n.simplification&&n.simplification<1),s=function(e,t,n){const r=O(P(T(e))),o=[];let a=[],i=[0,0],s=[];const l=()=>{s.length>=4&&a.push(...ie(s,t)),s=[]},c=()=>{l(),a.length&&(o.push(a),a=[])};for(const{key:e,data:t}of r)switch(e){case"M":c(),i=[t[0],t[1]],a.push(i);break;case"L":l(),a.push([t[0],t[1]]);break;case"C":if(!s.length){const e=a.length?a[a.length-1]:i;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":l(),a.push([i[0],i[1]])}if(c(),!n)return o;const u=[];for(const e of o){const t=oe(e,n);t.length&&u.push(t)}return u}(e,1,i?4-4*n.simplification:(1+n.roughness)/2);if(o)if(n.combineNestedSvgPaths){var l=[];s.forEach((function(e){return l.push.apply(l,e)})),"solid"===n.fillStyle?r.push(G(l,n)):r.push(W(l,n))}else s.forEach((function(e){"solid"===n.fillStyle?r.push(G(e,n)):r.push(W(e,n))}));return a&&(i?s.forEach((function(e){r.push(D(e,!1,n))})):r.push(H(e,n))),this._d("path",r,n)},e.prototype.opsToPath=function(e){for(var t="",n=0,r=e.ops;n<r.length;n++){var o=r[n],a=o.data;switch(o.op){case"move":t+="M".concat(a[0]," ").concat(a[1]," ");break;case"bcurveTo":t+="C".concat(a[0]," ").concat(a[1],", ").concat(a[2]," ").concat(a[3],", ").concat(a[4]," ").concat(a[5]," ");break;case"lineTo":t+="L".concat(a[0]," ").concat(a[1]," ")}}return t.trim()},e.prototype.toPaths=function(e){for(var t=e.sets||[],n=e.options||this.defaultOptions,r=[],o=0,a=t;o<a.length;o++){var i=a[o],s=null;switch(i.type){case"path":s={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ce};break;case"fillPath":s={d:this.opsToPath(i),stroke:ce,strokeWidth:0,fill:n.fill||ce};break;case"fillSketch":s=this.fillSketch(i,n)}s&&r.push(s)}return r},e.prototype.fillSketch=function(e,t){var n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||ce,strokeWidth:n,fill:ce}},e}(),de=function(){function e(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new ue(t)}return e.prototype.draw=function(e){for(var t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,o=0,a=t;o<a.length;o++){var i=a[o];switch(i.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,i),r.restore();break;case"fillPath":r.save(),r.fillStyle=n.fill||"";var s="curve"===e.shape||"polygon"===e.shape?"evenodd":"nonzero";this._drawToContext(r,i,s),r.restore();break;case"fillSketch":this.fillSketch(r,i,n)}}},e.prototype.fillSketch=function(e,t,n){var r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t),e.restore()},e.prototype._drawToContext=function(e,t,n){void 0===n&&(n="nonzero"),e.beginPath();for(var r=0,o=t.ops;r<o.length;r++){var a=o[r],i=a.data;switch(a.op){case"move":e.moveTo(i[0],i[1]);break;case"bcurveTo":e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"lineTo":e.lineTo(i[0],i[1])}}"fillPath"===t.type?e.fill(n):e.stroke()},Object.defineProperty(e.prototype,"generator",{get:function(){return this.gen},enumerable:!1,configurable:!0}),e.prototype.getDefaultOptions=function(){return this.gen.defaultOptions},e.prototype.line=function(e,t,n,r,o){var a=this.gen.line(e,t,n,r,o);return this.draw(a),a},e.prototype.rectangle=function(e,t,n,r,o){var a=this.gen.rectangle(e,t,n,r,o);return this.draw(a),a},e.prototype.ellipse=function(e,t,n,r,o){var a=this.gen.ellipse(e,t,n,r,o);return this.draw(a),a},e.prototype.circle=function(e,t,n,r){var o=this.gen.circle(e,t,n,r);return this.draw(o),o},e.prototype.linearPath=function(e,t){var n=this.gen.linearPath(e,t);return this.draw(n),n},e.prototype.polygon=function(e,t){var n=this.gen.polygon(e,t);return this.draw(n),n},e.prototype.arc=function(e,t,n,r,o,a,i,s){void 0===i&&(i=!1);var l=this.gen.arc(e,t,n,r,o,a,i,s);return this.draw(l),l},e.prototype.curve=function(e,t){var n=this.gen.curve(e,t);return this.draw(n),n},e.prototype.path=function(e,t){var n=this.gen.path(e,t);return this.draw(n),n},e}(),pe="http://www.w3.org/2000/svg",he=function(){function e(e,t){this.svg=e,this.gen=new ue(t)}return e.prototype.draw=function(e){for(var t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,o=r.createElementNS(pe,"g"),a=0,i=t;a<i.length;a++){var s=i[a],l=null;switch(s.type){case"path":(l=r.createElementNS(pe,"path")).setAttribute("d",this.opsToPath(s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset","".concat(n.strokeLineDashOffset));break;case"fillPath":(l=r.createElementNS(pe,"path")).setAttribute("d",this.opsToPath(s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(r,s,n)}l&&o.appendChild(l)}return o},e.prototype.fillSketch=function(e,t,n){var r=n.fillWeight;r<0&&(r=n.strokeWidth/2);var o=e.createElementNS(pe,"path");return o.setAttribute("d",this.opsToPath(t)),o.setAttribute("stroke",n.fill||""),o.setAttribute("stroke-width",r+""),o.setAttribute("fill","none"),n.fillLineDash&&o.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&o.setAttribute("stroke-dashoffset","".concat(n.fillLineDashOffset)),o},Object.defineProperty(e.prototype,"generator",{get:function(){return this.gen},enumerable:!1,configurable:!0}),e.prototype.getDefaultOptions=function(){return this.gen.defaultOptions},e.prototype.opsToPath=function(e){return this.gen.opsToPath(e)},e.prototype.line=function(e,t,n,r,o){var a=this.gen.line(e,t,n,r,o);return this.draw(a)},e.prototype.rectangle=function(e,t,n,r,o){var a=this.gen.rectangle(e,t,n,r,o);return this.draw(a)},e.prototype.ellipse=function(e,t,n,r,o){var a=this.gen.ellipse(e,t,n,r,o);return this.draw(a)},e.prototype.circle=function(e,t,n,r){var o=this.gen.circle(e,t,n,r);return this.draw(o)},e.prototype.linearPath=function(e,t){var n=this.gen.linearPath(e,t);return this.draw(n)},e.prototype.polygon=function(e,t){var n=this.gen.polygon(e,t);return this.draw(n)},e.prototype.arc=function(e,t,n,r,o,a,i,s){void 0===i&&(i=!1);var l=this.gen.arc(e,t,n,r,o,a,i,s);return this.draw(l)},e.prototype.curve=function(e,t){var n=this.gen.curve(e,t);return this.draw(n)},e.prototype.path=function(e,t){var n=this.gen.path(e,t);return this.draw(n)},e}(),fe=function(e,t){return new de(e,t)},me=function(e,t){return new he(e,t)},ge=function(e){return new ue(e)},ye=function(e){return null!=e&&"text"===e.type},ve=function(e){return null!=e&&("arrow"===e.type||"line"===e.type||"draw"===e.type)},be=Math.PI/12,ke="text",we="crosshair",Se="grabbing",Ee="pointer",Ce=0,xe=1,_e=-1;!function(e){e.INIT="SCENE_INIT",e.UPDATE="SCENE_UPDATE"}(se||(se={})),function(e){e.COPY="copy",e.PASTE="paste",e.CUT="cut",e.KEYDOWN="keydown",e.KEYUP="keyup",e.MOUSE_MOVE="mousemove",e.RESIZE="resize",e.UNLOAD="unload",e.BLUR="blur",e.DRAG_OVER="dragover",e.DROP="drop",e.GESTURE_END="gestureend",e.BEFORE_UNLOAD="beforeunload",e.GESTURE_START="gesturestart",e.GESTURE_CHANGE="gesturechange",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.STATE_CHANGE="statechange",e.WHEEL="wheel",e.TOUCH_START="touchstart",e.TOUCH_END="touchend"}(le||(le={}));var Te="test",Pe="development",Oe="server-volatile-broadcast",Ae="server-broadcast",Me="App-menu__left",ze={1:"Virgil",2:"Helvetica",3:"Cascadia"},Ie=["selectAll"],je=function(e,t,n,r,o,a){var i,s,l=o-n,c=a-r,u=l*l+c*c,d=-1;0!==u&&(d=((e-n)*l+(t-r)*c)/u),d<0?(i=n,s=r):d>1?(i=o,s=a):(i=n+d*l,s=r+d*c);var p=e-i,h=t-s;return Math.hypot(p,h)},De=function(e,t,n,r,o){return[(e-n)*Math.cos(o)-(t-r)*Math.sin(o)+n,(e-n)*Math.sin(o)+(t-r)*Math.cos(o)+r]},Le=function(e,t,n,r,o,a,i,s){var l=Math.cos(r),c=Math.sin(r);return e.e&&e.w?t+=o+i:e.e?(t+=o*(1+l),n+=o*c,t+=i*(1-l),n+=i*-c):e.w&&(t+=o*(1-l),n+=o*-c,t+=i*(1+l),n+=i*c),e.n&&e.s?n+=a+s:e.n?(t+=a*c,n+=a*(1-l),t+=s*-c,n+=s*(1+l)):e.s&&(t+=a*-c,n+=a*(1+l),t+=s*c,n+=s*(1-l)),[t,n]},Ne=function(e,t,n,r){var o=n-e,a=r-t;return Math.hypot(o,a)},Fe=function(e){if(e.length>=3){var t=[e[0],e[e.length-1]],n=t[0],r=t[1];return Ne(n[0],n[1],r[0],r[1])<=10}return!1},Be=function(e,t,n){return t[0]<=Math.max(e[0],n[0])&&t[0]>=Math.min(e[0],n[0])&&t[1]<=Math.max(e[1],n[1])&&t[1]>=Math.min(e[1],n[1])},Re=function(e,t,n){var r=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return 0===r?0:r>0?1:2},He=function(e,t,n,r){var o=Re(e,t,n),a=Re(e,t,r),i=Re(n,r,e),s=Re(n,r,t);return o!==a&&i!==s||(!(0!==o||!Be(e,n,t))||(!(0!==a||!Be(e,r,t))||(!(0!==i||!Be(n,e,r))||!(0!==s||!Be(n,t,r)))))},Ge=function(e,t,n){return n?[Math.round(e/n)*n,Math.round(t/n)*n]:[e,t]},We=function(e,t,n){var r=n.map((function(t){return t[e]})),o=Math.max.apply(Math,r),a=Math.min.apply(Math,r),i=o-a,s=0===i?1:t/i,l=1/0,c=n.map((function(t){return t.map((function(t,n){if(n!==e)return t;var r=t*s;return l=Math.min(r,l),r}))}));if(2===c.length)return c;var u=a-l;return c.map((function(t){return t.map((function(t,n){return n===e?t+u:t}))}))},Ue=function(e){return ve(e)?qe(e):[e.x,e.y,e.x+e.width,e.y+e.height]},Ve=function(e){var t=Math.floor(e.width/2)+1,n=e.width,r=Math.floor(e.height/2)+1;return[t,0,n,r,t,e.height,0,r]},Ke=function(e){for(var t=0,n=e.sets;t<n.length;t++){var r=n[t];if("path"===r.type)return r.ops}return e.sets[0].ops},Ye=function(e,t){var n=[0,0],r=e.reduce((function(e,r){var o,a=r.op,i=r.data;if("move"===a)n=i;else if("bcurveTo"===a){var s=[i[0],i[1]],l=[i[2],i[3]],c=[i[4],i[5]],u=n;n=c;for(var d=function(e,t){return Math.pow(1-e,3)*c[t]+3*e*Math.pow(1-e,2)*l[t]+3*Math.pow(e,2)*(1-e)*s[t]+u[t]*Math.pow(e,3)},p=0;p<=1;){var h=d(p,0),f=d(p,1);t&&(h=(o=t(h,f))[0],f=o[1]),e.minY=Math.min(e.minY,f),e.minX=Math.min(e.minX,h),e.maxX=Math.max(e.maxX,h),e.maxY=Math.max(e.maxY,f),p+=.1}}return e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r.minX,r.minY,r.maxX,r.maxY]},qe=function(e){if(e.points.length<2||!vn(e)){var t=e.points.reduce((function(e,t){var n=t[0],r=t[1];return e.minY=Math.min(e.minY,r),e.minX=Math.min(e.minX,n),e.maxX=Math.max(e.maxX,n),e.maxY=Math.max(e.maxY,r),e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),n=t.minX,r=t.minY,o=t.maxX,a=t.maxY;return[n+e.x,r+e.y,o+e.x,a+e.y]}var i=vn(e),s=Ke(i[0]),l=Ye(s),c=l[0],u=l[1],d=l[2],p=l[3];return[c+e.x,u+e.y,d+e.x,p+e.y]},Ze=function(e){var t=Ue(e),n=t[0],r=t[1],o=t[2],a=t[3],i=(n+o)/2,s=(r+a)/2;if(ve(e))return function(e,t,n){if(e.points.length<2||!vn(e)){var r=e.points.reduce((function(r,o){var a,i=o[0],s=o[1];return i=(a=De(e.x+i,e.y+s,t,n,e.angle))[0],s=a[1],r.minY=Math.min(r.minY,s),r.minX=Math.min(r.minX,i),r.maxX=Math.max(r.maxX,i),r.maxY=Math.max(r.maxY,s),r}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r.minX,r.minY,r.maxX,r.maxY]}var o=vn(e),a=Ke(o[0]);return Ye(a,(function(r,o){return De(e.x+r,e.y+o,t,n,e.angle)}))}(e,i,s);if("diamond"===e.type){var l=De(i,r,i,s,e.angle),c=l[0],u=l[1],d=De(i,a,i,s,e.angle),p=d[0],h=d[1],f=De(n,s,i,s,e.angle),m=f[0],g=f[1],y=De(o,s,i,s,e.angle),v=y[0],b=y[1];return[Math.min(c,p,m,v),Math.min(u,h,g,b),Math.max(c,p,m,v),Math.max(u,h,g,b)]}if("ellipse"===e.type){var k=(o-n)/2,w=(a-r)/2,S=Math.cos(e.angle),E=Math.sin(e.angle),C=Math.hypot(k*S,w*E),x=Math.hypot(w*S,k*E);return[i-C,s-x,i+C,s+x]}var _=De(n,r,i,s,e.angle),T=_[0],P=_[1],O=De(n,a,i,s,e.angle),A=O[0],M=O[1],z=De(o,a,i,s,e.angle),I=z[0],j=z[1],D=De(o,r,i,s,e.angle),L=D[0],N=D[1];return[Math.min(T,A,I,L),Math.min(P,M,j,N),Math.max(T,A,I,L),Math.max(P,M,j,N)]},Xe=function(e){if(!e.length)return[0,0,0,0];var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEach((function(e){var a=Ze(e),i=a[0],s=a[1],l=a[2],c=a[3];t=Math.min(t,i),r=Math.min(r,s),n=Math.max(n,l),o=Math.max(o,c)})),[t,r,n,o]},Je=function(e,t,n){if(!ve(e))return[e.x,e.y,e.x+t,e.y+n];var r=We(0,t,We(1,n,e.points)),o=ge().curve(r,kn(e)),a=Ke(o),i=Ye(a),s=i[0],l=i[1],c=i[2],u=i[3];return[s+e.x,l+e.y,c+e.x,u+e.y]},$e=function(e,t){var n=ge().curve(t,kn(e)),r=Ke(n),o=Ye(r),a=o[0],i=o[1],s=o[2],l=o[3];return[a+e.x,i+e.y,s+e.x,l+e.y]};function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tt=[],nt=tt.forEach,rt=tt.slice;function ot(e){return nt.call(rt.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var at,it=function(e,t,n,r){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/"};if(n){var i=new Date;i.setTime(i.getTime()+60*n*1e3),o="; expires="+i.toUTCString()}else o="";r=r?"domain="+r+";":"",a=Object.keys(a).reduce((function(e,t){return e+";"+t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))+"="+a[t]}),""),document.cookie=e+"="+encodeURIComponent(t)+o+";"+r+a},st=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},lt={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=st(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&it(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},ct={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].indexOf("=");if(o>0)n[r].substring(0,o)===e.lookupQuerystring&&(t=n[r].substring(o+1))}return t}};try{at="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(Do){at=!1}var ut,dt={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&at){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&at&&window.localStorage.setItem(t.lookupLocalStorage,e)}};try{ut="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(Do){ut=!1}var pt={name:"sessionStorage",lookup:function(e){var t;if(e.lookupsessionStorage&&ut){var n=window.sessionStorage.getItem(e.lookupsessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupsessionStorage&&ut&&window.sessionStorage.setItem(t.lookupsessionStorage,e)}},ht={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},ft={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},mt={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},gt={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var yt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qe(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}var t,n,r;return t=e,(n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=ot(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(lt),this.addDetector(ct),this.addDetector(dt),this.addDetector(pt),this.addDetector(ht),this.addDetector(ft),this.addDetector(mt),this.addDetector(gt)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}])&&et(t.prototype,n),r&&et(t,r),e}();yt.type="languageDetector";var vt=yt,bt=n(19),kt=n(20),wt=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function St(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Et(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){St(a,r,o,i,s,"next",e)}function s(e){St(a,r,o,i,s,"throw",e)}i(void 0)}))}}var Ct=[{lng:"en",label:"English",data:"en.json"}].concat([{lng:"bg-BG",label:"Български",data:"bg-BG.json"},{lng:"de-DE",label:"Deutsch",data:"de-DE.json"},{lng:"es-ES",label:"Español",data:"es-ES.json"},{lng:"ca-ES",label:"Catalan",data:"ca-ES.json"},{lng:"el-GR",label:"Ελληνικά",data:"el-GR.json"},{lng:"fr-FR",label:"Français",data:"fr-FR.json"},{lng:"id-ID",label:"Bahasa Indonesia",data:"id-ID.json"},{lng:"it-IT",label:"Italiano",data:"it-IT.json"},{lng:"hu-HU",label:"Magyar",data:"hu-HU.json"},{lng:"nl-NL",label:"Nederlands",data:"nl-NL.json"},{lng:"nb-NO",label:"Norsk bokmål",data:"nb-NO.json"},{lng:"nn-NO",label:"Norsk nynorsk",data:"nn-NO.json"},{lng:"pl-PL",label:"Polski",data:"pl-PL.json"},{lng:"pt-PT",label:"Português",data:"pt-PT.json"},{lng:"ru-RU",label:"Русский",data:"ru-RU.json"},{lng:"uk-UA",label:"Українська",data:"uk-UA.json"},{lng:"fi-FI",label:"Suomi",data:"fi-FI.json"},{lng:"tr-TR",label:"Türkçe",data:"tr-TR.json"},{lng:"ja-JP",label:"日本語",data:"ja-JP.json"},{lng:"ko-KR",label:"한국어",data:"ko-KR.json"},{lng:"zh-TW",label:"繁體中文",data:"zh-TW.json"},{lng:"zh-CN",label:"简体中文",data:"zh-CN.json"},{lng:"ar-SA",label:"العربية",data:"ar-SA.json",rtl:!0},{lng:"he-IL",label:"עברית",data:"he-IL.json",rtl:!0},{lng:"hi-IN",label:"हिन्दी",data:"hi-IN.json"}].sort((function(e,t){return e.label>t.label?1:-1}))).filter((function(e){return kt[e.lng]>85})),xt=Ct[0],_t={},Tt=Ct[0],Pt=function(){var e=Et((function(e){return wt(this,(function(t){switch(t.label){case 0:return xt=Ct.find((function(t){return t.lng===e}))||Tt,document.documentElement.dir=xt.rtl?"rtl":"ltr",[4,n(21)("./".concat(xt.data))];case 1:return _t=t.sent(),It.cacheUserLanguage(xt.lng),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),Ot=function(){var e=Et((function(){var e;return wt(this,(function(t){switch(t.label){case 0:return e=It.detect(),xt=Ct.find((function(t){return t.lng===e}))||Tt,document.documentElement.dir=xt.rtl?"rtl":"ltr",[4,n(21)("./".concat(xt.data))];case 1:return _t=t.sent(),It.cacheUserLanguage(xt.lng),[2]}}))}));return function(){return e.apply(this,arguments)}}(),At=function(){return xt},Mt=function(e,t){for(var n=0;n<t.length;++n){var r=t[n];if(void 0===e[r])return;e=e[r]}if("string"==typeof e)return e},zt=function(e,t){var n=e.split("."),r=Mt(_t,n)||Mt(bt,n);if(void 0===r)throw new Error("Can't find translation for ".concat(e));if(t)for(var o in t)r=r.replace("{{".concat(o,"}}"),t[o]);return r},It=new vt;It.init({languageUtils:{formatLanguageCode:function(e){return e},isWhitelisted:function(){return!0}},checkWhitelist:!1});var jt=function(e,t,n){var r=[e.horizontal,e.vertical].map((function(e){return e&&e.x<=t&&t<=e.x+e.width&&e.y<=n&&n<=e.y+e.height}));return{isOverHorizontalScrollBar:r[0],isOverVerticalScrollBar:r[1]}},Dt=function(e,t){return e.some((function(e){return t.selectedElementIds[e.id]}))},Lt=function(e,t){return e.filter((function(e){return t.selectedElementIds[e.id]}))},Nt=function(e){return Math.floor(e)};var Ft=function(e,t,n){var r,o,a;if(!e.length)return{scrollX:Nt(0),scrollY:Nt(0)};var i=window.devicePixelRatio,s=Xe(e),l=s[0],c=s[1],u=s[2],d=s[3],p=null===(o=document.querySelector(".excalidraw"))||void 0===o||null===(a=o.parentElement)||void 0===a?void 0:a.getBoundingClientRect(),h=(null==p?void 0:p.width)||window.innerWidth,f=(null==p?void 0:p.height)||window.innerHeight,m=(null==p?void 0:p.left)||0,g=(null==p?void 0:p.top)||0;(function(e,t,n){var r=n[0],o=n[1],a=n[2],i=n[3],s=cn({sceneX:r,sceneY:o},e,t,window.devicePixelRatio),l=s.x,c=s.y,u=cn({sceneX:a,sceneY:i},e,t,window.devicePixelRatio),d=u.x,p=u.y;return d-l>window.innerWidth||p-c>window.innerHeight})(t,n,[l,c,u,d])&&(l=(r=function(e,t){if(!e.length)return[0,0,0,0];var n=1/0,r=e[0];return e.forEach((function(e){var o=Ze(e),a=o[0],i=o[1],s=o[2],l=o[3],c=Ne((a+s)/2,(i+l)/2,t.x,t.y);c<n&&(n=c,r=e)})),Ze(r)}(e,ln({clientX:t.scrollX,clientY:t.scrollY},t,n,i,{deltaX:m,deltaY:g})))[0],c=r[1],u=r[2],d=r[3]);var y=(c+d)/2;return{scrollX:Nt(h/2-(l+u)/2),scrollY:Nt(f/2-y)}},Bt=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"draw"===e||"line"===e},Rt=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"arrow"===e||"draw"===e||"line"===e},Ht=function(e){return"text"===e},Gt=function(e,t,n,r,o){for(var a=null,i=e.length-1;i>=0;--i)if(!e[i].isDeleted&&hr(e[i],t,n,r,o)){a=e[i];break}return a},Wt=function(e,t){return null===e||null===e.getContext("2d")?{x:0,y:0}:{x:e.width/t/2,y:e.height/t/2}},Ut=function(e){var t=parseFloat(e.toFixed(2));return Math.max(.1,Math.min(t,2))},Vt=new(function(){function e(){this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.elementsMap={}}return e.prototype.getElementsIncludingDeleted=function(){return this.elements},e.prototype.getElements=function(){return this.nonDeletedElements},e.prototype.getElement=function(e){return this.elementsMap[e]||null},e.prototype.getNonDeletedElement=function(e){var t=this.getElement(e);return t&&uo(t)?t:null},e.prototype.replaceAllElements=function(e){this.elements=e,this.elementsMap=so(e),this.nonDeletedElements=co(this.elements),this.informMutation()},e.prototype.informMutation=function(){for(var e=0,t=Array.from(this.callbacks);e<t.length;e++){(0,t[e])()}},e.prototype.addCallback=function(e){var t=this;if(this.callbacks.has(e))throw new Error;return this.callbacks.add(e),function(){if(!t.callbacks.has(e))throw new Error;t.callbacks.delete(e)}},e}()),Kt="http://www.w3.org/2000/svg",Yt=null,qt=function(){if(Yt)return Yt;var e=new Date,t=e.getFullYear(),n="".concat(e.getMonth()+1).padStart(2,"0"),r="".concat(e.getDate()).padStart(2,"0"),o="".concat(e.getHours()).padStart(2,"0"),a="".concat(e.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o).concat(a)},Zt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Xt=function(e){return e instanceof HTMLElement&&"wysiwyg"===e.dataset.type||e instanceof HTMLBRElement||e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&("text"===e.type||"number"===e.type)},Jt=function(e){var t=e.fontFamily;return ze[t]},$t=function(e){var t=e.fontSize,n=e.fontFamily;return"".concat(t,"px ").concat(Jt({fontFamily:n}))},Qt=function(e,t){var n=document.createElement("div"),r=document.body;n.style.position="absolute",n.style.whiteSpace="pre",n.style.font=t,r.appendChild(n),n.innerText=e.split("\n").map((function(e){return e||" "})).join("\n");var o=n.offsetWidth,a=n.offsetHeight,i=document.createElement("span");i.style.display="inline-block",i.style.overflow="hidden",i.style.width="1px",i.style.height="1px",n.appendChild(i);var s=i.offsetTop+i.offsetHeight;return document.body.removeChild(n),{width:o,height:a,baseline:s}},en=function(e){var t=window.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}},tn=function(){var e=window.getSelection();e&&e.removeAllRanges()},nn=function(e,t){return Math.abs(e-t)},rn=function(){document.documentElement.style.cursor=""},on=function(e){"selection"===e?rn():document.documentElement.style.cursor=we},an=function(){var e;return"HTML"===(null===(e=document.fullscreenElement)||void 0===e?void 0:e.nodeName)},sn=function(e){var t=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform);return"".concat(t?e.replace(/\bCtrlOrCmd\b/i,"Cmd").replace(/\bAlt\b/i,"Option").replace(/\bDel\b/i,"Delete").replace(/\b(Enter|Return)\b/i,"Enter"):e.replace(/\bCtrlOrCmd\b/i,"Ctrl"))},ln=function(e,t,n,r,o){var a=e.clientX,i=e.clientY,s=t.scrollX,l=t.scrollY,c=t.zoom,u=o.deltaX,d=void 0===u?0:u,p=o.deltaY,h=void 0===p?0:p,f=Wt(n,r);return{x:f.x+(a-f.x-d)/c-s,y:f.y+(i-f.y-h)/c-l}},cn=function(e,t,n,r){var o=e.sceneX,a=e.sceneY,i=t.scrollX,s=t.scrollY,l=t.zoom,c=Wt(n,r);return{x:c.x-(c.x-o-i)*l,y:c.y-(c.y-a-s)*l}},un=function(e){return getComputedStyle(document.documentElement).getPropertyValue("--".concat(e))},dn=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-﷾--","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),pn=function(e){return dn.test(e)},hn=[12,8],fn=[3,6],mn=function(e,t,n){switch(n.globalAlpha=e.opacity/100,e.type){case"rectangle":case"diamond":case"ellipse":t.draw(vn(e));break;case"arrow":case"draw":case"line":vn(e).forEach((function(e){t.draw(e)}));break;default:if(!ye(e))throw new Error("Unimplemented type ".concat(e.type));var r=pn(e.text),o=r&&!n.canvas.isConnected;o&&document.body.appendChild(n.canvas),n.canvas.setAttribute("dir",r?"rtl":"ltr");var a=n.font;n.font=$t(e);var i=n.fillStyle;n.fillStyle=e.strokeColor;var s=n.textAlign;n.textAlign=e.textAlign;for(var l=e.text.replace(/\r\n?/g,"\n").split("\n"),c=e.height/l.length,u=e.height-e.baseline,d="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,p=0;p<l.length;p++)n.fillText(l[p],d,(p+1)*c-u);n.fillStyle=i,n.font=a,n.textAlign=s,o&&n.canvas.remove()}n.globalAlpha=1},gn=new WeakMap,yn=new WeakMap,vn=function(e){return yn.get(e)},bn=function(e){return yn.delete(e)},kn=function(e){var t={seed:e.seed,strokeLineDash:"dashed"===e.strokeStyle?hn:"dotted"===e.strokeStyle?fn:void 0,disableMultiStroke:"solid"!==e.strokeStyle,strokeWidth:"solid"!==e.strokeStyle?e.strokeWidth+.5:e.strokeWidth,fillWeight:e.strokeWidth/2,hachureGap:4*e.strokeWidth,roughness:e.roughness,stroke:e.strokeColor};switch(e.type){case"rectangle":case"diamond":case"ellipse":return t.fillStyle=e.fillStyle,t.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor,"ellipse"===e.type&&(t.curveFitting=1),t;case"line":case"draw":return Fe(e.points)&&(t.fillStyle=e.fillStyle,t.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor),t;case"arrow":return t;default:throw new Error("Unimplemented type ".concat(e.type))}},wn=function(e,t){var n=yn.get(e)||null;if(!n){switch(gn.delete(e),e.type){case"rectangle":n=t.rectangle(0,0,e.width,e.height,kn(e));break;case"diamond":var r=Ve(e),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7];n=t.polygon([[o,a],[i,s],[l,c],[u,d]],kn(e));break;case"ellipse":n=t.ellipse(e.width/2,e.height/2,e.width,e.height,kn(e));break;case"line":case"draw":case"arrow":var p=kn(e),h=e.points.length?e.points:[[0,0]];if(n=[t.curve(h,p)],"arrow"===e.type){var f=function(e,t){var n=Ke(t[0]),r=n[n.length-1].data,o=[r[4],r[5]],a=[r[2],r[3]],i=[r[0],r[1]],s=n[n.length-2],l=[0,0];"move"===s.op?l=s.data:"bcurveTo"===s.op&&(l=[s.data[4],s.data[5]]);var c=function(e,t){return Math.pow(1-e,3)*o[t]+3*e*Math.pow(1-e,2)*a[t]+3*Math.pow(e,2)*(1-e)*i[t]+l[t]*Math.pow(e,3)},u=o[0],d=o[1],p=[c(.3,0),c(.3,1)],h=p[0],f=p[1],m=Math.hypot(u-h,d-f),g=(u-h)/m,y=(d-f)/m,v=e.points.reduce((function(e,t,n,r){var o=t[0],a=t[1],i=n>0?r[n-1]:[0,0],s=i[0],l=i[1];return e+Math.hypot(o-s,a-l)}),0),b=Math.min(30,v/2),k=u-g*b,w=d-y*b,S=De(k,w,u,d,-20*Math.PI/180),E=S[0],C=S[1],x=De(k,w,u,d,20*Math.PI/180);return[u,d,E,C,x[0],x[1]]}(e,n),m=f[0],g=f[1],y=f[2],v=f[3],b=f[4],k=f[5];"dotted"===e.strokeStyle?p.strokeLineDash=[3,4]:delete p.strokeLineDash,n.push.apply(n,[t.line(y,v,m,g,p),t.line(b,k,m,g,p)])}break;case"text":n=[]}yn.set(e,n)}},Sn=function(e,t){var n=t?t.zoom:1,r=gn.get(e),o=r&&r.canvasZoom!==n&&!(null==t?void 0:t.shouldCacheIgnoreZoom);if(!r||o){var a=function(e,t){var n=document.createElement("canvas"),r=n.getContext("2d"),o=0,a=0;if(ve(e)){var i=Ue(e),s=i[0],l=i[1],c=i[2],u=i[3];n.width=nn(s,c)*window.devicePixelRatio*t+40,n.height=nn(l,u)*window.devicePixelRatio*t+40,o=e.x>s?Math.floor(nn(e.x,s))*window.devicePixelRatio:0,a=e.y>l?Math.floor(nn(e.y,l))*window.devicePixelRatio:0,r.translate(o*t,a*t)}else n.width=e.width*window.devicePixelRatio*t+40,n.height=e.height*window.devicePixelRatio*t+40;r.translate(20,20),r.scale(window.devicePixelRatio*t,window.devicePixelRatio*t);var d=fe(n);return mn(e,d,r),r.translate(-20,-20),r.scale(1/(window.devicePixelRatio*t),1/(window.devicePixelRatio*t)),{element:e,canvas:n,canvasZoom:t,canvasOffsetX:o,canvasOffsetY:a}}(e,n);return gn.set(e,a),a}return r},En=function(e,t,n,r,o){var a=t.generator;switch(e.type){case"selection":n.translate(e.x+o.scrollX,e.y+o.scrollY);var i=n.fillStyle;n.fillStyle="rgba(0, 0, 255, 0.10)",n.fillRect(0,0,e.width,e.height),n.fillStyle=i,n.translate(-e.x-o.scrollX,-e.y-o.scrollY);break;case"rectangle":case"diamond":case"ellipse":case"line":case"draw":case"arrow":case"text":if(wn(e,a),r){!function(e,t,n,r){var o=e.element,a=Ue(o),i=a[0],s=a[1],l=a[2],c=a[3],u=((i+l)/2+r.scrollX)*window.devicePixelRatio,d=((s+c)/2+r.scrollY)*window.devicePixelRatio;n.scale(1/window.devicePixelRatio,1/window.devicePixelRatio),n.translate(u,d),n.rotate(o.angle),n.drawImage(e.canvas,-(l-i)/2*window.devicePixelRatio-20/e.canvasZoom,-(c-s)/2*window.devicePixelRatio-20/e.canvasZoom,e.canvas.width/e.canvasZoom,e.canvas.height/e.canvasZoom),n.rotate(-o.angle),n.translate(-u,-d),n.scale(window.devicePixelRatio,window.devicePixelRatio)}(Sn(e,o),0,n,o)}else{var s=Ue(e),l=s[0],c=s[1],u=s[2],d=s[3],p=(l+u)/2+o.scrollX,h=(c+d)/2+o.scrollY,f=(u-l)/2-(e.x-l),m=(d-c)/2-(e.y-c);n.translate(p,h),n.rotate(e.angle),n.translate(-f,-m),mn(e,t,n),n.translate(f,m),n.rotate(-e.angle),n.translate(-p,-h)}break;default:throw new Error("Unimplemented type ".concat(e.type))}},Cn=n(37),xn=n.n(Cn),_n=new C(Date.now()),Tn=function(){return Math.floor(_n.next()*Math.pow(2,31))},Pn=function(){return xn()()};function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){Mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zn=function(e,t){var n=!1,r=t.points;for(var o in void 0!==r&&(t=An(An({},function(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{width:Math.max.apply(Math,t)-Math.min.apply(Math,t),height:Math.max.apply(Math,n)-Math.min.apply(Math,n)}}(r)),t)),t){var a=t[o];if(void 0!==a){if(e[o]===a&&("object"!=typeof a||null===a||"groupIds"===o))continue;if("points"===o){var i=e[o],s=a;if(i.length===s.length){for(var l=!1,c=i.length;--c;){var u=i[c],d=s[c];if(u[0]!==d[0]||u[1]!==d[1]){l=!0;break}}if(!l)continue}}e[o]=a,n=!0}}n&&(void 0===t.height&&void 0===t.width&&void 0===r||bn(e),e.version++,e.versionNonce=Tn(),Vt.informMutation())},In=function(e,t){return An(An(An({},e),t),{},{version:e.version+1,versionNonce:Tn()})},jn=function(e){return ve(e)?e.points.length<2:0===e.width&&0===e.height},Dn=function(e,t,n){var r=Math.abs(t),o=Math.abs(n);if("line"===e||"arrow"===e||"draw"===e){var a=Math.round(Math.atan(o/r)/be)*be;0===a?n=0:a===Math.PI/2?t=0:n=Math.round(r*Math.tan(a))*Math.sign(n)||n}else"selection"!==e&&(n=r*Math.sign(n));return{width:t,height:n}},Ln=function(e){var t={width:e.width,height:e.height,x:e.x,y:e.y};if(e.width<0){var n=Math.abs(e.width);t.width=n,t.x=e.x-n}if(e.height<0){var r=Math.abs(e.height);t.height=r,t.y=e.y-r}return t},Nn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e,t,n){var r,o,a=n.filter((function(t){return t.groupIds.includes(e)}));return a.length<2?t.selectedGroupIds[e]||t.editingGroupId===e?Bn(Bn({},t),{},{selectedGroupIds:Bn(Bn({},t.selectedGroupIds),{},(r={},r[e]=!1,r)),editingGroupId:null}):t:Bn(Bn({},t),{},{selectedGroupIds:Bn(Bn({},t.selectedGroupIds),{},(o={},o[e]=!0,o)),selectedElementIds:Bn(Bn({},t.selectedElementIds),Object.fromEntries(a.map((function(e){return[e.id,!0]}))))})}function Gn(e){return Object.entries(e.selectedGroupIds).filter((function(e){e[0];return e[1]})).map((function(e){var t=e[0];e[1];return t}))}function Wn(e,t){for(var n=Bn({},e),r=0,o=Lt(t,e);r<o.length;r++){var a=o[r].groupIds;if(e.editingGroupId){var i=a.indexOf(e.editingGroupId);i>-1&&(a=a.slice(0,i))}if(a.length>0)n=Hn(a[a.length-1],n,t)}return n}function Un(e,t){return e.groupIds.includes(t)}function Vn(e,t){return e.filter((function(e){return Un(e,t)}))}function Kn(e,t,n){var r=Nn(e),o=n?r.indexOf(n):-1,a=o>-1?o:r.length;return r.splice(a,0,t),r}function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jn=function(e,t){var n,r,o=t.x,a=t.y,i=t.strokeColor,s=t.backgroundColor,l=t.fillStyle,c=t.strokeWidth,u=t.strokeStyle,d=t.roughness,p=t.opacity,h=t.width,f=void 0===h?0:h,m=t.height,g=void 0===m?0:m,y=t.angle,v=void 0===y?0:y,b=t.groupIds,k=void 0===b?[]:b,w=Xn(t,["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds"]);return{id:w.id||Pn(),type:e,x:o,y:a,width:f,height:g,angle:v,strokeColor:i,backgroundColor:s,fillStyle:l,strokeWidth:c,strokeStyle:u,roughness:d,opacity:p,groupIds:k,seed:null!==(n=w.seed)&&void 0!==n?n:Tn(),version:w.version||1,versionNonce:null!==(r=w.versionNonce)&&void 0!==r?r:0,isDeleted:!1}},$n=function(e){return Jn(e.type,e)};function Qn(e,t){return{x:"center"===e.textAlign?t.width/2:"right"===e.textAlign?t.width:0,y:"middle"===e.verticalAlign?t.height/2:0}}var er=function(e){var t=Qt(e.text,$t(e)),n=Qn(e,t);return In(qn(qn({},Jn("text",e)),{},{text:e.text,fontSize:e.fontSize,fontFamily:e.fontFamily,textAlign:e.textAlign,verticalAlign:e.verticalAlign,x:e.x-n.x,y:e.y-n.y,width:t.width,height:t.height,baseline:t.baseline}),{})},tr=function(e,t){var n=t.text,r=t.isDeleted;return In(e,qn({text:n,isDeleted:null!=r?r:e.isDeleted},function(e,t){var n,r,o,a=Qt(t,$t(e)),i=a.width,s=a.height,l=a.baseline,c=e.textAlign,u=e.verticalAlign;if("center"===c&&"middle"===u){var d=Qt(e.text,$t(e)),p=Qn(e,{width:i-d.width,height:s-d.height});r=e.x-p.x,o=e.y-p.y}else{var h=Ue(e),f=h[0],m=h[1],g=h[2],y=h[3],v=Je(e,i,s),b=(f-v[0])/2,k=(m-v[1])/2,w=(g-v[2])/2,S=(y-v[3])/2;r=(n=Le({s:!0,e:"center"===c||"left"===c,w:"center"===c||"right"===c},e.x,e.y,e.angle,b,k,w,S))[0],o=n[1]}return{width:i,height:s,x:Number.isFinite(r)?r:e.x,y:Number.isFinite(o)?o:e.y,baseline:l}}(e,n)))},nr=function(e,t){if(void 0===t&&(t=0),null==e||"object"!=typeof e)return e;if("[object Object]"===Object.prototype.toString.call(e)){var n="function"==typeof e.constructor?Object.create(Object.getPrototypeOf(e)):{};for(var r in e)if(e.hasOwnProperty(r)){if(0===t&&("shape"===r||"canvas"===r))continue;n[r]=nr(e[r],t+1)}return n}if(Array.isArray(e)){for(var o=e.length,a=new Array(o);o--;)a[o]=nr(e[o],t+1);return a}return e},rr=function(e,t,n,r){var o=nr(n);return o.id=Pn(),o.seed=Tn(),o.groupIds=function(e,t,n){for(var r=Nn(e),o=t?e.indexOf(t):-1,a=o>-1?o:e.length,i=0;i<a;i++)r[i]=n(r[i]);return r}(o.groupIds,e,(function(e){return t.has(e)||t.set(e,Pn()),t.get(e)})),r&&(o=Object.assign(o,r)),o},or={mouse:8,pen:16,touch:28},ar={e:!0,s:!0,n:!0,w:!0,rotation:!0},ir={e:!0,s:!0,n:!0,w:!0},sr={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0,rotation:!0},lr={e:!0,s:!0,n:!0,w:!0,ne:!0,sw:!0,rotation:!0},cr=function(e,t,n,r,o,a,i){var s=De(e+n/2,t+r/2,o,a,i);return[s[0]-n/2,s[1]-r/2,n,r]},ur=function(e,t,n,r,o){var a=e[0],i=e[1],s=e[2],l=e[3];void 0===r&&(r="mouse"),void 0===o&&(o={});var c=or[r],u=c/n,d=c/n,p=c/n,h=c/n,f=s-a,m=l-i,g=(a+s)/2,y=(i+l)/2,v=4/n,b=(c-8)/(2*n),k={nw:o.nw?void 0:cr(a-v-p+b,i-v-h+b,u,d,g,y,t),ne:o.ne?void 0:cr(s+v-b,i-v-h+b,u,d,g,y,t),sw:o.sw?void 0:cr(a-v-p+b,l+v-b,u,d,g,y,t),se:o.se?void 0:cr(s+v-b,l+v-b,u,d,g,y,t),rotation:o.rotation?void 0:cr(a+f/2-u/2,i-v-h+b-16/n,u,d,g,y,t)},w=5*c/n;return Math.abs(f)>w&&(o.n||(k.n=cr(a+f/2-u/2,i-v-h+b,u,d,g,y,t)),o.s||(k.s=cr(a+f/2-u/2,l+v-b,u,d,g,y,t))),Math.abs(m)>w&&(o.w||(k.w=cr(a-v-p+b,i+m/2-d/2,u,d,g,y,t)),o.e||(k.e=cr(s+v-b,i+m/2-d/2,u,d,g,y,t))),k},dr=function(e,t,n){void 0===n&&(n="mouse");var r={};if("arrow"===e.type||"line"===e.type||"draw"===e.type){if(2===e.points.length){var o=e.points[1];0===o[0]||0===o[1]?r=lr:o[0]>0&&o[1]<0?r=sr:o[0]>0&&o[1]>0?r=lr:o[0]<0&&o[1]>0?r=sr:o[0]<0&&o[1]<0&&(r=lr)}}else"text"===e.type&&(r=ir);return ur(Ue(e),e.angle,t,n,r)},pr=function(e,t){if("arrow"===e.type)return!1;var n="transparent"!==e.backgroundColor||t.selectedElementIds[e.id];return"line"===e.type||"draw"===e.type?n&&Fe(e.points):n},hr=function(e,t,n,r,o){var a,i,s,l=10/o,c=Ue(e),u=c[0],d=c[1],p=c[2],h=c[3];if(n=(a=De(n,r,(u+p)/2,(d+h)/2,-e.angle))[0],r=a[1],"ellipse"===e.type){var f=Math.abs(n-e.x-e.width/2),m=Math.abs(r-e.y-e.height/2),g=.707,y=.707,v=Math.abs(e.width)/2,b=Math.abs(e.height)/2;return[0,1,2,3].forEach((function(e){var t=v*g,n=b*y,r=(v*v-b*b)*Math.pow(g,3)/v,o=(b*b-v*v)*Math.pow(y,3)/b,a=t-r,i=n-o,s=f-r,l=m-o,c=Math.hypot(i,a),u=Math.hypot(l,s);g=Math.min(1,Math.max(0,(s*c/u+r)/v)),y=Math.min(1,Math.max(0,(l*c/u+o)/b));var d=Math.hypot(y,g);g/=d,y/=d})),pr(e,t)?v*g-(f-l)>=0&&b*y-(m-l)>=0:Math.hypot(v*g-f,b*y-m)<l}if("rectangle"===e.type)return pr(e,t)?n>u-l&&n<p+l&&r>d-l&&r<h+l:je(n,r,u,d,p,d)<l||je(n,r,p,d,p,h)<l||je(n,r,p,h,u,h)<l||je(n,r,u,h,u,d)<l;if("diamond"===e.type){n-=e.x,r-=e.y;var k=Ve(e),w=k[0],S=k[1],E=k[2],C=k[3],x=k[4],_=k[5],T=k[6],P=k[7];return pr(e,t)?(S>_&&(_=(i=[S,_])[0],S=i[1]),E<T&&(T=(s=[E,T])[0],E=s[1]),_+=l,E+=l,((T-=l)-w)*(r-P)-(T-n)*((S-=l)-P)<=0&&(w-E)*(r-C)-(n-E)*(S-C)<=0&&(E-x)*(r-_)-(n-x)*(C-_)<=0&&(x-T)*(r-P)-(n-T)*(_-P)<=0):je(n,r,w,S,E,C)<l||je(n,r,E,C,x,_)<l||je(n,r,x,_,T,P)<l||je(n,r,T,P,w,S)<l}if(ve(e)){if(!vn(e))return!1;var O=vn(e);if(n<u-l||r<d-l||n>p+l||r>h+l)return!1;var A=n-e.x,M=r-e.y;if(pr(e,t))if(O.some((function(e){return fr(e,A,M,l)})))return!0;return O.some((function(e){return mr(e,A,M,l)}))}if("text"===e.type)return n>=u&&n<=p&&r>=d&&r<=h;if("selection"===e.type)return console.warn("This should not happen, we need to investigate why it does."),!1;throw new Error("Unimplemented type ".concat(e.type))},fr=function(e,t,n,r){for(var o=[],a=0,i=Ke(e);a<i.length;a++){var s=i[a];if("move"===s.op){if(o.length)break;o.push([s.data[0],s.data[1]])}else"bcurveTo"===s.op&&(o.push([s.data[0],s.data[1]]),o.push([s.data[2],s.data[3]]),o.push([s.data[4],s.data[5]]))}return o.length>=4&&function(e,t,n){var r=e.length;if(r<3)return!1;for(var o=[Number.MAX_SAFE_INTEGER,n],a=[t,n],i=0,s=0;s<r;s++){var l=e[s],c=e[(s+1)%r];if(He(l,c,a,o)){if(0===Re(l,a,c))return Be(l,a,c);i++}}return i%2==1}(ie(o,10,5),t,n)},mr=function(e,t,n,r){var o=Ke(e),a=[0,0];return o.some((function(e,o){var i=e.op,s=e.data;if("move"===i)a=s;else if("bcurveTo"===i){var l=[s[0],s[1]],c=[s[2],s[3]],u=[s[4],s[5]],d=a;return a=u,function(e,t,n,r,o,a){for(var i=o[0],s=o[1],l=function(o,a){return Math.pow(1-o,3)*r[a]+3*o*Math.pow(1-o,2)*n[a]+3*Math.pow(o,2)*(1-o)*t[a]+e[a]*Math.pow(o,3)},c=0;c<=1;){var u=l(c,0),d=l(c,1);if(Math.sqrt(Math.pow(u-i,2)+Math.pow(d-s,2))<a)return!0;c+=.01}return!1}(d,l,c,u,[t,n],r)}return!1}))};function gr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yr=function(e,t,n){return t>=e[0]&&t<=e[0]+e[2]&&n>=e[1]&&n<=e[1]+e[3]},vr=function(e,t,n,r,o,a){return e.reduce((function(e,i){if(e)return e;var s=function(e,t,n,r,o,a){if(!t.selectedElementIds[e.id])return!1;var i=dr(e,o,a),s=i.rotation,l=gr(i,["rotation"]);if(s&&yr(s,n,r))return"rotation";var c=Object.keys(l).filter((function(e){var t=l[e];return!!t&&yr(t,n,r)}));return c.length>0&&c[0]}(i,t,n,r,o,a);return s?{element:i,resizeHandle:s}:null}),null)},br=function(e,t,n,r,o){var a=e[0],i=e[1],s=e[2],l=e[3],c=ur([a,i,s,l],0,r,o,ar);return Object.keys(c).find((function(e){var r=c[e];return r&&yr(r,t,n)}))||!1},kr=["ns","nesw","ew","nwse"],wr=function(e){var t=e.element,n=e.resizeHandle,r=t&&Math.sign(t.height)*Math.sign(t.width)==-1,o=null;switch(n){case"n":case"s":o="ns";break;case"w":case"e":o="ew";break;case"nw":case"se":o=r?"nesw":"nwse";break;case"ne":case"sw":o=r?"nwse":"nesw";break;case"rotation":return"grab"}return o&&t&&(o=function(e,t){var n=kr.indexOf(e);if(n>=0){var r=Math.round(t/(Math.PI/4));e=kr[(n+r)%kr.length]}return e}(o,t.angle)),o?"".concat(o,"-resize"):""},Sr=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(n),!0).forEach((function(t){xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _r=function(e,t,n,r){var o=Ue(e),a=o[0],i=o[1],s=(a+o[2])/2,l=(i+o[3])/2,c=5*Math.PI/2+Math.atan2(n-l,t-s);r&&(c+=be/2,c-=c%be),c>=2*Math.PI&&(c-=2*Math.PI),zn(e,{angle:c})},Tr=function(e,t,n,r,o){var a=e.points[0],i=e.points[1];if("end"===t)if(n){var s=Dn(e.type,r-e.x,o-e.y),l=s.width,c=s.height;zn(e,{points:[a,[l,c]]})}else zn(e,{points:[a,[r-a[0]-e.x,o-a[1]-e.y]]});else if(n){var u=Dn(e.type,e.x+i[0]-a[0]-r,e.y+i[1]-a[1]-o);l=u.width,c=u.height;zn(e,{x:e.x+i[0]-a[0]-l,y:e.y+i[1]-a[1]-c,points:[a,[l,c]]})}else zn(e,{x:r,y:o,points:[a,[i[0]-(r-a[0]-e.x),i[1]-(o-a[1]-e.y)]]})},Pr=function(e,t,n){return ve(e)?{points:We(0,t,We(1,n,e.points))}:{}},Or=function(e,t,n){var r=Math.min(t/e.width,n/e.height),o=e.fontSize*r,a=Qt(e.text,$t({fontSize:o,fontFamily:e.fontFamily}));return a.width-t<1&&a.height-n<1?{size:o,baseline:a.baseline}:(r=Math.min(Math.min(t,a.width)/e.width,Math.min(n,a.height)/e.height),o=e.fontSize*r,(a=Qt(e.text,$t({fontSize:o,fontFamily:e.fontFamily}))).width-t<1&&a.height-n<1?{size:o,baseline:a.baseline}:(r*=.99,o=e.fontSize*r,(a=Qt(e.text,$t({fontSize:o,fontFamily:e.fontFamily}))).width-t<1&&a.height-n<1?{size:o,baseline:a.baseline}:null))},Ar=function(e,t){return{n:/^(n|ne|nw)$/.test(e)||t&&/^(s|se|sw)$/.test(e),s:/^(s|se|sw)$/.test(e)||t&&/^(n|ne|nw)$/.test(e),w:/^(w|nw|sw)$/.test(e)||t&&/^(e|ne|se)$/.test(e),e:/^(e|ne|se)$/.test(e)||t&&/^(w|nw|sw)$/.test(e)}},Mr=function(e,t,n,r,o){var a,i=Ue(e),s=i[0],l=i[1],c=i[2],u=i[3],d=De(r,o,(s+c)/2,(l+u)/2,-e.angle),p=d[0],h=d[1];switch(t){case"se":a=Math.max((p-s)/(c-s),(h-l)/(u-l));break;case"nw":a=Math.max((c-p)/(c-s),(u-h)/(u-l));break;case"ne":a=Math.max((p-s)/(c-s),(u-h)/(u-l));break;case"sw":a=Math.max((c-p)/(c-s),(h-l)/(u-l))}if(a>0){var f=e.width*a,m=e.height*a,g=Or(e,f,m);if(null===g)return;var y=Je(e,f,m),v=(s-y[0])/2,b=(l-y[1])/2,k=(c-y[2])/2,w=(u-y[3])/2,S=Le(Ar(t,n),e.x,e.y,e.angle,v,b,k,w),E=S[0],C=S[1];zn(e,{fontSize:g.size,width:f,height:m,baseline:g.baseline,x:E,y:C})}},zr=function(e,t,n,r,o,a){var i=Ue(e),s=i[0],l=i[1],c=i[2],u=i[3],d=De(o,a,(s+c)/2,(l+u)/2,-e.angle),p=d[0],h=d[1],f=1,m=1;"e"!==t&&"ne"!==t&&"se"!==t||(f=(p-s)/(c-s)),"s"!==t&&"sw"!==t&&"se"!==t||(m=(h-l)/(u-l)),"w"!==t&&"nw"!==t&&"sw"!==t||(f=(c-p)/(c-s)),"n"!==t&&"nw"!==t&&"ne"!==t||(m=(u-h)/(u-l));var g=e.width*f,y=e.height*m;n&&(g=y=Math.max(g,y));var v=Je(e,g,y),b=v[0],k=v[1],w=v[2],S=v[3],E=(s-b)/2,C=(l-k)/2,x=(c-w)/2,_=(u-S)/2,T=Pr(e,g,y),P=Je(Cr(Cr({},e),T),Math.abs(g),Math.abs(y)),O=function(e,t,n,r,o,a,i,s,l,c,u,d,p){var h=Math.cos(p),f=Math.sin(p),m=0,g=0;return t<0&&("e"!==e&&"ne"!==e&&"se"!==e||(d?(m+=(c-r)*h,g+=(c-r)*f):m+=c-r),"w"!==e&&"nw"!==e&&"sw"!==e||(d?(m+=(s-a)*h,g+=(s-a)*f):m+=s-a)),n<0&&("s"!==e&&"se"!==e&&"sw"!==e||(d?(g+=(u-o)*h,m+=(u-o)*-f):g+=u-o),"n"!==e&&"ne"!==e&&"nw"!==e||(d?(g+=(l-i)*h,m+=(l-i)*-f):g+=l-i)),[m,g]}(t,g,y,b,k,w,S,P[0],P[1],P[2],P[3],ve(e),e.angle),A=O[0],M=O[1],z=Le(Ar(t,r),e.x-A,e.y-M,e.angle,E,C,x,_),I=z[0],j=z[1];0!==g&&0!==y&&Number.isFinite(I)&&Number.isFinite(j)&&zn(e,Cr({width:g,height:y,x:I,y:j},T))},Ir=function(e,t,n,r){var o,a,i=Xe(e),s=i[0],l=i[1],c=i[2],u=i[3];switch(t){case"se":o=Math.max((n-s)/(c-s),(r-l)/(u-l)),a=function(e,t,n){var r=t[0],a=t[1],i=n[0],c=n[1];return{x:e.x+(r-s)*(o-1)+r-i,y:e.y+(a-l)*(o-1)+a-c}};break;case"nw":o=Math.max((c-n)/(c-s),(u-r)/(u-l)),a=function(e,t,n){var r=t[2],a=t[3],i=n[2],s=n[3];return{x:e.x-(c-r)*(o-1)+r-i,y:e.y-(u-a)*(o-1)+a-s}};break;case"ne":o=Math.max((n-s)/(c-s),(u-r)/(u-l)),a=function(e,t,n){var r=t[0],a=t[3],i=n[0],l=n[3];return{x:e.x+(r-s)*(o-1)+r-i,y:e.y-(u-a)*(o-1)+a-l}};break;case"sw":o=Math.max((c-n)/(c-s),(r-l)/(u-l)),a=function(e,t,n){var r=t[1],a=t[2],i=n[1],s=n[2];return{x:e.x-(c-a)*(o-1)+a-s,y:e.y+(r-l)*(o-1)+r-i}}}if(o>0){var d=e.reduce((function(e,t){if(!e)return e;var n=t.width*o,r=t.height*o,i={};if("text"===t.type){var s=Or(t,n,r);if(null===s)return null;i={fontSize:s.size,baseline:s.baseline}}var l=Ue(t),c=Pr(t,n,r),u=Je(Cr(Cr({},t),c),n,r),d=a(t,l,u),p=d.x,h=d.y;return Sr(e,[Cr(Cr({width:n,height:r,x:p,y:h},c),i)])}),[]);d&&e.forEach((function(e,t){zn(e,d[t])}))}},jr=function(e,t,n,r,o,a,i,s,l,c){var u;l&&(i=(u=Dn(t,i,a<r?-s:s)).width,(s=u.height)<0&&(s=-s));var d=o<n?n-i:n,p=a<r?r-s:r;c&&(d=n-(i+=i)/2,p=r-(s+=s)/2),0!==i&&0!==s&&zn(e,{x:d,y:p,width:i,height:s})},Dr=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Lr="ArrowLeft",Nr="ArrowRight",Fr="ArrowDown",Br="ArrowUp",Rr="Enter",Hr="Escape",Gr="Delete",Wr="Backspace",Ur=Dr?"metaKey":"ctrlKey",Vr="Tab",Kr=" ",Yr="?",qr=70,Zr=18,Xr=90,Jr=222,$r=71,Qr=function(e){return e===Lr||e===Nr||e===Fr||e===Br},eo=function(e){return e.altKey||e.which===Zr},to=function(e){return e.shiftKey},no=function(e){return e.shiftKey},ro=function(e){return e.replace(/\t/g," ").replace(/\r?\n|\r/g,"\n")},oo=function(e,t,n,r){var o=180*n/Math.PI;return"translate(".concat(e*(r-1)/2,"px, ").concat(t*(r-1)/2,"px) scale(").concat(r,") rotate(").concat(o,"deg)")},ao=function(e){var t=Qt(e.text,$t(e));zn(e,{width:t.width,height:t.height,baseline:t.baseline})},io=function(e,t){return Boolean(e.editingElement||Lt(t,e).length||"selection"!==e.elementType)},so=function(e){return e.reduce((function(e,t){return e[t.id]=t,e}),{})},lo=function(e){return e.reduce((function(e,t){return e+t.version}),0)},co=function(e){return e.filter((function(e){return!e.isDeleted}))},uo=function(e){return!e.isDeleted},po=n(1);var ho=function(){return{isLoading:!1,errorMessage:null,draggingElement:null,resizingElement:null,multiElement:null,editingElement:null,editingLinearElement:null,elementType:"selection",elementLocked:!1,exportBackground:!0,shouldAddWatermark:!1,currentItemStrokeColor:po.black,currentItemBackgroundColor:"transparent",currentItemFillStyle:"hachure",currentItemStrokeWidth:1,currentItemStrokeStyle:"solid",currentItemRoughness:1,currentItemOpacity:100,currentItemFontSize:20,currentItemFontFamily:1,currentItemTextAlign:"left",viewBackgroundColor:po.white,scrollX:0,scrollY:0,cursorX:0,cursorY:0,cursorButton:"up",scrolledOutside:!1,name:"".concat(zt("labels.untitled"),"-").concat(qt()),username:"",isCollaborating:!1,isResizing:!1,isRotating:!1,selectionElement:null,zoom:1,openMenu:null,lastPointerDownWith:"mouse",selectedElementIds:{},previousSelectedElementIds:{},collaborators:new Map,shouldCacheIgnoreZoom:!1,showShortcutsDialog:!1,zenModeEnabled:!1,gridSize:null,editingGroupId:null,selectedGroupIds:{},width:window.innerWidth,height:window.innerHeight}},fo=function(e){return{viewBackgroundColor:e.viewBackgroundColor,gridSize:e.gridSize}},mo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},go=function(e){return[po.red[e],po.pink[e],po.grape[e],po.violet[e],po.indigo[e],po.blue[e],po.cyan[e],po.teal[e],po.green[e],po.lime[e],po.yellow[e],po.orange[e]]},yo={canvasBackground:mo([po.white,po.gray[0],po.gray[1]],go(0)),elementBackground:mo(["transparent",po.gray[4],po.gray[6]],go(6)),elementStroke:mo([po.black,po.gray[8],po.gray[7]],go(9))},vo=function(e){var t=e.split("").reduce((function(e,t){return e+t.charCodeAt(0)}),0),n=yo.elementBackground.slice(1),r=yo.elementStroke.slice(1);return{background:n[t%n.length],stroke:r[t%r.length]}},bo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eo=function(){function e(t){e.normalizePoints(t),this.elementId=t.id,this.activePointIndex=null,this.lastUncommittedPoint=null,this.draggingElementPointIndex=null}return e.getElement=function(e){var t=Vt.getNonDeletedElement(e);return t||null},e.handlePointDragging=function(t,n,r,o,a,i){var s,l;if(!t.editingLinearElement)return!1;var c=t.editingLinearElement,u=c.draggingElementPointIndex,d=c.elementId,p=e.getElement(d);if(!p)return!1;var h=null!==(s=u)&&void 0!==s?s:e.getPointIndexUnderCursor(p,t.zoom,r,o);if((u=null!==(l=u)&&void 0!==l?l:h)>-1){c.draggingElementPointIndex===u&&c.activePointIndex===h||n({editingLinearElement:wo(wo({},c),{},{draggingElementPointIndex:u,activePointIndex:h})});var f=De(r-a,o-i,0,0,-p.angle),m=f[0],g=f[1],y=p.points[h];return e.movePoint(p,h,[y[0]+m,y[1]+g]),!0}return!1},e.handlePointerUp=function(t){var n=t.elementId,r=t.draggingElementPointIndex,o=e.getElement(n);return o?(null===r||0!==r&&r!==o.points.length-1||!Fe(o.points)||e.movePoint(o,r,0===r?o.points[o.points.length-1]:o.points[0]),null!==r?wo(wo({},t),{},{draggingElementPointIndex:null}):t):t},e.handlePointerDown=function(t,n,r,o,a,i){var s={didAddPoint:!1,hitElement:null};if(!n.editingLinearElement)return s;var l=n.editingLinearElement.elementId,c=e.getElement(l);if(!c)return s;if(t.altKey)return n.editingLinearElement.lastUncommittedPoint||zn(c,{points:bo(c.points,[e.createPointAt(c,a,i)])}),o.resumeRecording(),r({editingLinearElement:wo(wo({},n.editingLinearElement),{},{activePointIndex:c.points.length-1,lastUncommittedPoint:null})}),s.didAddPoint=!0,s;var u=e.getPointIndexUnderCursor(c,n.zoom,a,i);return u>-1&&(s.hitElement=c),r({editingLinearElement:wo(wo({},n.editingLinearElement),{},{activePointIndex:u>-1?u:null})}),s},e.handlePointerMove=function(t,n,r,o){var a=o.elementId,i=o.lastUncommittedPoint,s=e.getElement(a);if(!s)return o;var l=s.points,c=l[l.length-1];if(!t.altKey)return c===i&&e.movePoint(s,l.length-1,"delete"),o;var u=e.createPointAt(s,n,r);return c===i?e.movePoint(s,s.points.length-1,u):e.movePoint(s,"new",u),wo(wo({},o),{},{lastUncommittedPoint:s.points[s.points.length-1]})},e.getPointsGlobalCoordinates=function(e){var t=Ue(e),n=t[0],r=t[1],o=t[2],a=t[3],i=(n+o)/2,s=(r+a)/2;return e.points.map((function(t){var n,r=e.x,o=e.y;return[r=(n=De(r+t[0],o+t[1],i,s,e.angle))[0],o=n[1]]}))},e.getPointIndexUnderCursor=function(e,t,n,r){for(var o=this.getPointsGlobalCoordinates(e),a=o.length;--a>-1;){var i=o[a];if(Ne(n,r,i[0],i[1])*t<this.POINT_HANDLE_SIZE/2+1)return a}return-1},e.createPointAt=function(e,t,n){var r=Ue(e),o=r[0],a=r[1],i=r[2],s=r[3],l=De(t,n,(o+i)/2,(a+s)/2,-e.angle),c=l[0],u=l[1];return[c-e.x,u-e.y]},e.normalizePoints=function(e){var t=e.points,n=t[0][0],r=t[0][1];zn(e,{points:t.map((function(e,t){return[e[0]-n,e[1]-r]})),x:e.x+n,y:e.y+r})},e.movePoint=function(e,t,n){var r,o=e.points,a=0,i=0;if("delete"===n){if("new"===t)throw new Error("invalid args in movePoint");(r=o.slice()).splice(t,1),0===t&&(a=r[0][0],i=r[0][1],r=r.map((function(e,t){return 0===t?[0,0]:[e[0]-a,e[1]-i]})))}else if("new"===t)r=bo(o,[n]);else{var s=n[0]-o[t][0],l=n[1]-o[t][1];r=o.map((function(e,n){return n===t?0===n?(a=s,i=l,e):(a=0,i=0,[e[0]+s,e[1]+l]):a||i?[e[0]-a,e[1]-i]:e}))}var c=$e(e,r),u=$e(e,o),d=(c[0]+c[2])/2,p=(c[1]+c[3])/2,h=(u[0]+u[2])/2,f=(u[1]+u[3])/2,m=De(a,i,h-d,f-p,e.angle);zn(e,{points:r,x:e.x+m[0],y:e.y+m[1]})},e}();Eo.POINT_HANDLE_SIZE=20;var Co=function(e,t,n,r,o,a,i,s,l){e.translate(a,i),e.rotate(s),l&&e.fillRect(t-a,n-i,r,o),e.strokeRect(t-a,n-i,r,o),e.rotate(-s),e.translate(-a,-i)},xo=function(e,t,n,r,o){e.beginPath(),e.arc(t+r/2,n+o/2,r/2,0,2*Math.PI),e.fill(),e.stroke()},_o=function(e,t,n,r,o,a,i,s){var l=void 0===s?{}:s,c=l.renderScrollbars,u=void 0===c||c,d=l.renderSelection,p=void 0===d||d,h=l.renderOptimizations,f=void 0!==h&&h,m=l.renderGrid,g=void 0===m||m;if(!a)return{atLeastOneVisibleElement:!1};var y=a.getContext("2d");y.scale(r,r);var v=a.width/r,b=a.height/r;if("string"==typeof i.viewBackgroundColor){("transparent"===i.viewBackgroundColor||5===i.viewBackgroundColor.length||9===i.viewBackgroundColor.length||/(hsla|rgba)\(/.test(i.viewBackgroundColor))&&y.clearRect(0,0,v,b);var k=y.fillStyle;y.fillStyle=i.viewBackgroundColor,y.fillRect(0,0,v,b),y.fillStyle=k}else y.clearRect(0,0,v,b);var w=-v*(i.zoom-1)/2,S=-b*(i.zoom-1)/2;y.translate(w,S),y.scale(i.zoom,i.zoom),g&&t.gridSize&&function(e,t,n,r,o,a){var i=e.strokeStyle;e.strokeStyle="rgba(0,0,0,0.1)",e.beginPath();for(var s=n;s<n+o+2*t;s+=t)e.moveTo(s,r-t),e.lineTo(s,r+a+2*t);for(var l=r;l<r+a+2*t;l+=t)e.moveTo(n-t,l),e.lineTo(n+o+2*t,l);e.stroke(),e.strokeStyle=i}(y,t.gridSize,-Math.ceil(w/i.zoom/t.gridSize)*t.gridSize+i.scrollX%t.gridSize,-Math.ceil(S/i.zoom/t.gridSize)*t.gridSize+i.scrollY%t.gridSize,v/i.zoom,b/i.zoom);var E,C=e.filter((function(e){return To(e,v,b,i)}));if(C.forEach((function(e){En(e,o,y,f,i),ve(e)&&t.editingLinearElement&&t.editingLinearElement.elementId===e.id&&function(e,t,n,r){e.translate(n.scrollX,n.scrollY);var o=e.strokeStyle,a=e.lineWidth;e.lineWidth=1/n.zoom,Eo.getPointsGlobalCoordinates(r).forEach((function(r,o){var a;e.strokeStyle="red",e.setLineDash([]),e.fillStyle=(null===(a=t.editingLinearElement)||void 0===a?void 0:a.activePointIndex)===o?"rgba(255, 127, 127, 0.9)":"rgba(255, 255, 255, 0.9)";var i=Eo.POINT_HANDLE_SIZE;xo(e,r[0]-i/2/n.zoom,r[1]-i/2/n.zoom,i/n.zoom,i/n.zoom)})),e.setLineDash([]),e.lineWidth=a,e.translate(-n.scrollX,-n.scrollY),e.strokeStyle=o}(y,t,i,e)})),n&&En(n,o,y,f,i),p&&!t.multiElement&&!t.editingLinearElement){y.translate(i.scrollX,i.scrollY);var x=e.reduce((function(e,n){var r=[];if(t.selectedElementIds[n.id]&&!function(e,t){return!!t.groupIds.filter((function(t){return t!==e.editingGroupId})).find((function(t){return e.selectedGroupIds[t]}))}(t,n)&&r.push(po.black),i.remoteSelectedElementIds[n.id]&&r.push.apply(r,i.remoteSelectedElementIds[n.id].map((function(e){return vo(e).background}))),r.length){var o=Ue(n),a=o[0],s=o[1],l=o[2],c=o[3];e.push({angle:n.angle,elementX1:a,elementY1:s,elementX2:l,elementY2:c,selectionColors:r})}return e}),[]);function _(t){var n=Vn(e,t),r=Xe(n),o=r[0],a=r[1],i=r[2],s=r[3];x.push({angle:0,elementX1:o,elementX2:i,elementY1:a,elementY2:s,selectionColors:[po.black]})}for(var T=0,P=Gn(t);T<P.length;T++){_(P[T])}t.editingGroupId&&_(t.editingGroupId),x.forEach((function(e){var t=e.angle,n=e.elementX1,r=e.elementY1,o=e.elementX2,a=e.elementY2,s=e.selectionColors,l=o-n,c=a-r,u=y.getLineDash(),d=y.lineWidth,p=y.lineDashOffset,h=y.strokeStyle,f=4/i.zoom,m=8/i.zoom,g=4/i.zoom;y.lineWidth=1/i.zoom;for(var v=s.length,b=0;b<v;++b)y.strokeStyle=s[b],y.setLineDash([m,g+(m+g)*(v-1)]),y.lineDashOffset=(m+g)*b,Co(y,n-f,r-f,l+2*f,c+2*f,n+l/2,r+c/2,t);y.lineDashOffset=p,y.strokeStyle=h,y.lineWidth=d,y.setLineDash(u)})),y.translate(-i.scrollX,-i.scrollY);var O=Lt(e,t);if(1===O.length){y.translate(i.scrollX,i.scrollY),y.fillStyle=po.white;var A=dr(O[0],i.zoom);Object.keys(A).forEach((function(e){var t=A[e];if(void 0!==t){var n=y.lineWidth;y.lineWidth=1/i.zoom,"rotation"===e?xo(y,t[0],t[1],t[2],t[3]):Co(y,t[0],t[1],t[2],t[3],t[0]+t[2]/2,t[1]+t[3]/2,O[0].angle,!0),y.lineWidth=n}})),y.translate(-i.scrollX,-i.scrollY)}else if(O.length>1){var M=4/i.zoom;y.translate(i.scrollX,i.scrollY),y.fillStyle=po.white;var z=Xe(O),I=z[0],j=z[1],D=z[2],L=z[3],N=y.getLineDash();y.setLineDash([2/i.zoom]);var F=y.lineWidth;y.lineWidth=1/i.zoom,Co(y,I-M,j-M,D-I+2*M,L-j+2*M,(I+D)/2,(j+L)/2,0),y.lineWidth=F,y.setLineDash(N);var B=ur([I,j,D,L],0,i.zoom,void 0,ar);Object.keys(B).forEach((function(e){var t=B[e];if(void 0!==t){var n=y.lineWidth;y.lineWidth=1/i.zoom,Co(y,t[0],t[1],t[2],t[3],t[0]+t[2]/2,t[1]+t[3]/2,0,!0),y.lineWidth=n}})),y.translate(-i.scrollX,-i.scrollY)}}for(var R in y.scale(1/i.zoom,1/i.zoom),y.translate(-w,-S),i.remotePointerViewportCoords){var H=i.remotePointerViewportCoords[R],G=H.x,W=H.y,U=i.remotePointerUsernames[R],V=G<0||G>v-9||W<0||W>b-14;G=Math.max(G,0),G=Math.min(G,v-9),W=Math.max(W,0),W=Math.min(W,b-14);var K=vo(R),Y=K.background,q=K.stroke,Z=y.strokeStyle,X=(k=y.fillStyle,y.globalAlpha);if(y.strokeStyle=q,y.fillStyle=Y,V&&(y.globalAlpha=.2),i.remotePointerButton&&"down"===i.remotePointerButton[R]&&(y.beginPath(),y.arc(G,W,15,0,2*Math.PI,!1),y.lineWidth=3,y.strokeStyle="#ffffff88",y.stroke(),y.closePath(),y.beginPath(),y.arc(G,W,15,0,2*Math.PI,!1),y.lineWidth=1,y.strokeStyle=q,y.stroke(),y.closePath()),y.beginPath(),y.moveTo(G,W),y.lineTo(G+1,W+14),y.lineTo(G+4,W+9),y.lineTo(G+9,W+10),y.lineTo(G,W),y.fill(),y.stroke(),!V&&U){var J=G+9,$=W+14,Q=y.measureText(U),ee=Q.actualBoundingBoxDescent+Q.actualBoundingBoxAscent;y.fillStyle=q,y.globalAlpha=X,y.fillRect(J-1,$-1,Q.width+8+2,ee+8+2),y.fillStyle=Y,y.fillRect(J,$,Q.width+8,ee+8),y.fillStyle=po.white,y.fillText(U,J+4,$+4+Q.actualBoundingBoxAscent)}y.strokeStyle=Z,y.fillStyle=k,y.globalAlpha=X,y.closePath()}if(u){E=function(e,t,n,r){var o=r.scrollX,a=r.scrollY,i=r.zoom,s=Xe(e),l=s[0],c=s[1],u=s[2],d=s[3],p=t/i,h=n/i,f=t-p,m=n-h,g={top:parseInt(un("sat")),bottom:parseInt(un("sab")),left:parseInt(un("sal")),right:parseInt(un("sar"))},y=At().rtl,v=f/2-o+g.left,b=m/2-a+g.top,k=v+p-g.right,w=b+h-g.bottom,S=Math.min(l,v),E=Math.min(c,b),C=Math.max(u,k),x=Math.max(d,w);return{horizontal:v===S&&k===C?null:{x:Math.max(g.left,4)+(v-S)/(C-S)*t,y:n-6-Math.max(4,g.bottom),width:(k-v)/(C-S)*t-Math.max(8,g.left+g.right),height:6},vertical:b===E&&w===x?null:{x:y?Math.max(g.left,4):t-6-Math.max(g.right,4),y:(b-E)/(x-E)*n+Math.max(g.top,4),width:6,height:(w-b)/(x-E)*n-Math.max(8,g.top+g.bottom)}}}(e,v,b,i);k=y.fillStyle,Z=y.strokeStyle;y.fillStyle="rgba(0,0,0,0.3)",y.strokeStyle="rgba(255,255,255,0.8)",[E.horizontal,E.vertical].forEach((function(e){e&&function(e,t,n,r,o,a){e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+o-a),e.quadraticCurveTo(t+r,n+o,t+r-a,n+o),e.lineTo(t+a,n+o),e.quadraticCurveTo(t,n+o,t,n+o-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath(),e.fill(),e.stroke()}(y,e.x,e.y,e.width,e.height,3)})),y.fillStyle=k,y.strokeStyle=Z}return y.scale(1/r,1/r),{atLeastOneVisibleElement:C.length>0,scrollBars:E}},To=function(e,t,n,r){var o=r.scrollX,a=r.scrollY,i=r.zoom,s=Ze(e),l=s[0],c=s[1],u=s[2],d=s[3],p=t/i,h=n/i,f=t-p,m=n-h;return u+o-f/2>=0&&l+o-f/2<=p&&d+a-m/2>=0&&c+a-m/2<=h},Po=function(e,t,n,r){var o=void 0===r?{}:r,a=o.offsetX,i=void 0===a?0:a,s=o.offsetY,l=void 0===s?0:s;n&&e.forEach((function(e){e.isDeleted||function(e,t,n,r,o){var a=Ue(e),i=a[0],s=a[1],l=a[2],c=a[3],u=(l-i)/2-(e.x-i),d=(c-s)/2-(e.y-s),p=180*e.angle/Math.PI,h=t.generator;switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":wn(e,h);var f=t.draw(vn(e));1!==(y=e.opacity/100)&&(f.setAttribute("stroke-opacity","".concat(y)),f.setAttribute("fill-opacity","".concat(y))),f.setAttribute("transform","translate(".concat(r||0," ").concat(o||0,") rotate(").concat(p," ").concat(u," ").concat(d,")")),n.appendChild(f);break;case"line":case"draw":case"arrow":wn(e,h);var m=n.ownerDocument.createElementNS(Kt,"g"),g=e.opacity/100;vn(e).forEach((function(n){var a=t.draw(n);1!==g&&(a.setAttribute("stroke-opacity","".concat(g)),a.setAttribute("fill-opacity","".concat(g))),a.setAttribute("transform","translate(".concat(r||0," ").concat(o||0,") rotate(").concat(p," ").concat(u," ").concat(d,")")),"line"!==e.type&&"draw"!==e.type||!Fe(e.points)||"transparent"===e.backgroundColor||a.setAttribute("fill-rule","evenodd"),m.appendChild(a)})),n.appendChild(m);break;default:if(!ye(e))throw new Error("Unimplemented type ".concat(e.type));var y=e.opacity/100;f=n.ownerDocument.createElementNS(Kt,"g");1!==y&&(f.setAttribute("stroke-opacity","".concat(y)),f.setAttribute("fill-opacity","".concat(y))),f.setAttribute("transform","translate(".concat(r||0," ").concat(o||0,") rotate(").concat(p," ").concat(u," ").concat(d,")"));for(var v=e.text.replace(/\r\n?/g,"\n").split("\n"),b=e.height/v.length,k=e.height-e.baseline,w="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,S=pn(e.text)?"rtl":"ltr",E="center"===e.textAlign?"middle":"right"===e.textAlign||"rtl"===S?"end":"start",C=0;C<v.length;C++){var x=n.ownerDocument.createElementNS(Kt,"text");x.textContent=v[C],x.setAttribute("x","".concat(w)),x.setAttribute("y","".concat((C+1)*b-k)),x.setAttribute("font-family",Jt(e)),x.setAttribute("font-size","".concat(e.fontSize,"px")),x.setAttribute("fill",e.strokeColor),x.setAttribute("text-anchor",E),x.setAttribute("style","white-space: pre;"),x.setAttribute("direction",S),f.appendChild(x)}n.appendChild(f)}}(e,t,n,e.x+i,e.y+l)}))},Oo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},Ao=function(e,t,n,r){var o=n.exportBackground,a=n.exportPadding,i=void 0===a?10:a,s=n.viewBackgroundColor,l=n.scale,c=void 0===l?1:l,u=n.shouldAddWatermark;void 0===r&&(r=function(e,t){var n=document.createElement("canvas");return n.width=e*c,n.height=t*c,n});var d=e;if(u){var p=Xe(e),h=p[2],f=p[3];d=Oo(d,[Mo(h,f)])}var m=Xe(d),g=m[0],y=m[1],v=m[2],b=m[3],k=r(nn(g,v)+2*i,nn(y,b)+i+(u?0:i));return _o(d,t,null,c,fe(k),k,{viewBackgroundColor:o?s:null,scrollX:Nt(-g+i),scrollY:Nt(-y+i),zoom:1,remotePointerViewportCoords:{},remoteSelectedElementIds:{},shouldCacheIgnoreZoom:!1,remotePointerUsernames:{}},{renderScrollbars:!1,renderSelection:!1,renderOptimizations:!1,renderGrid:!1}),k},Mo=function(e,t){return er({text:zt("labels.madeWithExcalidraw"),fontSize:16,fontFamily:1,textAlign:"right",verticalAlign:"top",x:e,y:t+16,strokeColor:po.gray[5],backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100})},zo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Io(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Io(a,r,o,i,s,"next",e)}function s(e){Io(a,r,o,i,s,"throw",e)}i(void 0)}))}}var Do="chooseFileSystemEntries"in self?Promise.resolve().then(n.bind(null,119)):Promise.resolve().then(n.bind(null,120));function Lo(){return No.apply(this,arguments)}function No(){return(No=jo((function(){var e,t,n=[];for(e=0;e<arguments.length;e++)n[e]=arguments[e];return zo(this,(function(e){switch(e.label){case 0:return[4,Do];case 1:return[2,(t=e.sent()).default.apply(t,n)]}}))}))).apply(this,arguments)}"chooseFileSystemEntries"in self?Promise.resolve().then(n.bind(null,121)):Promise.resolve().then(n.bind(null,122));var Fo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Bo(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ro(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Bo(a,r,o,i,s,"next",e)}function s(e){Bo(a,r,o,i,s,"throw",e)}i(void 0)}))}}var Ho="chooseFileSystemEntries"in self?Promise.resolve().then(n.bind(null,123)):Promise.resolve().then(n.bind(null,124));function Go(){return Wo.apply(this,arguments)}function Wo(){return(Wo=Ro((function(){var e,t,n=[];for(e=0;e<arguments.length;e++)n[e]=arguments[e];return Fo(this,(function(e){switch(e.label){case 0:return[4,Ho];case 1:return[2,(t=e.sent()).default.apply(t,n)]}}))}))).apply(this,arguments)}var Uo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function Vo(e){var t=/^[$€£¥₩]?([0-9]+(\.[0-9]+)?)$/.exec(e);return t?parseFloat(t[1]):null}function Ko(e,t){return e.slice(1).every((function(e){return null!==Vo(e[t])}))}function Yo(e){var t=e[0].length;if(t>2)return{type:"malformed spreadsheet",error:zt("charts.tooManyColumns")};if(1===t){if(!Ko(e,0))return{type:"not a spreadsheet"};var n=null===Vo(e[0][0]),r=(n?e.slice(1):e).map((function(e){return Vo(e[0])}));return r.length<2?{type:"not a spreadsheet"}:{type:"spreadsheet",spreadsheet:{yAxisLabel:n?e[0][0]:null,labels:null,values:r}}}var o=Ko(e,0)?0:1;if(!Ko(e,o))return{type:"malformed spreadsheet",error:zt("charts.noNumericColumn")};var a=(o+1)%2,i=null===Vo(e[0][o]),s=i?e.slice(1):e;return s.length<2?{type:"not a spreadsheet"}:{type:"spreadsheet",spreadsheet:{yAxisLabel:i?e[0][o]:null,labels:s.map((function(e){return e[a]})),values:s.map((function(e){return Vo(e[o])}))}}}function qo(e,t,n,r){var o,a=Math.max.apply(Math,t.values),i=Math.min.apply(Math,Uo([0],t.values)),s=a-i,l=er({x:n,y:r+192,strokeColor:e.currentItemStrokeColor,backgroundColor:e.currentItemBackgroundColor,fillStyle:e.currentItemFillStyle,strokeWidth:e.currentItemStrokeWidth,strokeStyle:e.currentItemStrokeStyle,roughness:e.currentItemRoughness,opacity:e.currentItemOpacity,text:i.toLocaleString(),fontSize:16,fontFamily:e.currentItemFontFamily,textAlign:e.currentItemTextAlign,verticalAlign:"top"}),c=er({x:n,y:r,strokeColor:e.currentItemStrokeColor,backgroundColor:e.currentItemBackgroundColor,fillStyle:e.currentItemFillStyle,strokeWidth:e.currentItemStrokeWidth,strokeStyle:e.currentItemStrokeStyle,roughness:e.currentItemRoughness,opacity:e.currentItemOpacity,text:a.toLocaleString(),fontSize:16,fontFamily:e.currentItemFontFamily,textAlign:e.currentItemTextAlign,verticalAlign:"top"}),u=t.values.map((function(t,o){var a=192*((t-i)/s);return $n({type:"rectangle",x:44*o+36+n,y:192-a+r,width:32,height:a,strokeColor:e.currentItemStrokeColor,backgroundColor:e.currentItemBackgroundColor,fillStyle:e.currentItemFillStyle,strokeWidth:e.currentItemStrokeWidth,strokeStyle:e.currentItemStrokeStyle,roughness:e.currentItemRoughness,opacity:e.currentItemOpacity})})),d=(null===(o=t.labels)||void 0===o?void 0:o.map((function(t,o){var a=44*o+36+12;return er({text:t.length>8?"".concat(t.slice(0,5),"..."):t,x:n+a,y:r+204,strokeColor:e.currentItemStrokeColor,backgroundColor:e.currentItemBackgroundColor,fillStyle:e.currentItemFillStyle,strokeWidth:e.currentItemStrokeWidth,strokeStyle:e.currentItemStrokeStyle,roughness:e.currentItemRoughness,opacity:e.currentItemOpacity,fontSize:16,fontFamily:e.currentItemFontFamily,textAlign:"center",verticalAlign:"top",width:32,angle:5.87})})))||[],p=t.yAxisLabel?er({text:t.yAxisLabel,x:n-36,y:r+96-10,strokeColor:e.currentItemStrokeColor,backgroundColor:e.currentItemBackgroundColor,fillStyle:e.currentItemFillStyle,strokeWidth:e.currentItemStrokeWidth,strokeStyle:e.currentItemStrokeStyle,roughness:e.currentItemRoughness,opacity:e.currentItemOpacity,fontSize:20,fontFamily:e.currentItemFontFamily,textAlign:"center",verticalAlign:"top",width:32,angle:5.87}):null;return Uo(u,[p,l,c],d).filter((function(e){return null!==e}))}var Zo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Xo(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Xo(a,r,o,i,s,"next",e)}function s(e){Xo(a,r,o,i,s,"throw",e)}i(void 0)}))}}var $o="",Qo=!1,ea="clipboard"in navigator&&"readText"in navigator.clipboard,ta="clipboard"in navigator&&"writeText"in navigator.clipboard,na="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,ra=function(){var e=Jo((function(e,t){return Zo(this,(function(n){switch(n.label){case 0:$o=JSON.stringify(Lt(e,t)),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,la(null)];case 2:return n.sent(),Qo=!1,[3,4];case 3:return n.sent(),Qo=!0,[3,4];case 4:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),oa=function(){if(!$o)return{};try{var e=JSON.parse($o);if(Array.isArray(e)&&e.length>0&&e[0].type)return{elements:e}}catch(e){console.error(e)}return{}},aa=function(){var e=Jo((function(e,t,n,r){var o,a,i,s,l,c;return Zo(this,(function(u){switch(u.label){case 0:return u.trys.push([0,5,,6]),r?(i=null===(o=r.clipboardData)||void 0===o?void 0:o.getData("text/plain").trim(),[3,4]):[3,1];case 1:return(s=ea)?[4,navigator.clipboard.readText()]:[3,3];case 2:s=u.sent(),u.label=3;case 3:i=s,u.label=4;case 4:return!(a=i)||Qo||a.includes("\x3c!-- svg-source:excalidraw --\x3e")?[3,6]:"spreadsheet"===(l=function(e){var t=e.trim().split("\n").map((function(e){return e.trim().split("\t")}));if(0===t.length)return{type:"not a spreadsheet"};var n=t[0].length;if(!t.every((function(e){return e.length===n})))return{type:"not a spreadsheet"};var r=Yo(t);if("spreadsheet"!==r.type){var o=Yo(function(e){for(var t=[],n=0;n<e[0].length;n++){for(var r=[],o=0;o<e.length;o++)r.push(e[o][n]);t.push(r)}return t}(t));if("spreadsheet"===o.type)return o}return r}(a)).type?[2,{elements:qo(e,l.spreadsheet,t,n)}]:"malformed spreadsheet"===l.type?[2,{error:l.error}]:[2,{text:a}];case 5:return c=u.sent(),console.error(c),[3,6];case 6:return[2,oa()]}}))}));return function(t,n,r,o){return e.apply(this,arguments)}}(),ia=function(){var e=Jo((function(e){return Zo(this,(function(t){return[2,new Promise((function(t,n){try{e.toBlob(function(){var e=Jo((function(e){var r;return Zo(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.clipboard.write([new window.ClipboardItem({"image/png":e})])];case 1:return o.sent(),t(),[3,3];case 2:return r=o.sent(),n(r),[3,3];case 3:return[2]}}))}));return function(t){return e.apply(this,arguments)}}())}catch(e){n(e)}}))]}))}));return function(t){return e.apply(this,arguments)}}(),sa=function(){var e=Jo((function(e){var t;return Zo(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,navigator.clipboard.writeText(e.outerHTML)];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),la=function(){var e=Jo((function(e){var t,n;return Zo(this,(function(r){switch(r.label){case 0:if(t=!1,!ta)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e||"")];case 2:return r.sent(),t=!0,[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:if(!t&&!ca(e||" "))throw new Error("couldn't copy");return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),ca=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;n.style.top="".concat(r,"px"),n.style.fontSize="12pt",n.setAttribute("readonly",""),n.value=e,document.body.appendChild(n);var o=!1;try{n.select(),n.setSelectionRange(0,n.value.length),o=document.execCommand("copy")}catch(e){console.error(e)}return n.remove(),o};function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){var n,r,o,a,i={type:e.type,version:e.version||1,versionNonce:null!==(n=e.versionNonce)&&void 0!==n?n:0,isDeleted:!1,id:e.id||Pn(),fillStyle:e.fillStyle||"hachure",strokeWidth:e.strokeWidth||1,strokeStyle:null!==(r=e.strokeStyle)&&void 0!==r?r:"solid",roughness:null!==(o=e.roughness)&&void 0!==o?o:1,opacity:null==e.opacity?100:e.opacity,angle:e.angle||0,x:e.x||0,y:e.y||0,strokeColor:e.strokeColor,backgroundColor:e.backgroundColor,width:e.width||0,height:e.height||0,seed:null!==(a=e.seed)&&void 0!==a?a:1,groupIds:e.groupIds||[]};return da(da(da({},i),Ln(i)),t)}var fa=function(e){var t;switch(e.type){case"text":var n=e.fontSize,r=e.fontFamily;if("font"in e){var o=e.font.split(" "),a=o[0],i=o[1];n=parseInt(a,10),r=function(e){for(var t=0,n=Object.entries(ze);t<n.length;t++){var r=n[t],o=r[0];if(r[1].includes(e))return parseInt(o)}return 1}(i)}return ha(e,{fontSize:n,fontFamily:r,text:null!==(t=e.text)&&void 0!==t?t:"",baseline:e.baseline,textAlign:e.textAlign||"left",verticalAlign:e.verticalAlign||"top"});case"draw":case"line":case"arrow":return ha(e,{points:!Array.isArray(e.points)||e.points.length<2?[[0,0],[e.width,e.height]]:e.points});case"ellipse":case"rectangle":case"diamond":return ha(e,{})}},ma=function(e,t,n){var r=e.reduce((function(e,t){if("selection"!==t.type&&!jn(t)){var n=fa(t);n&&e.push(n)}return e}),[]);return(null==n?void 0:n.scrollToContent)&&t&&(t=da(da({},t),Ft(r,t,null))),{elements:r,appState:t}},ga=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var wa=function(){var e,t=(e=function(e){var t,n,r,o,a;return ga(this,(function(i){switch(i.label){case 0:return t=function(e){var t=ho(),n=[],r=t;try{var o=JSON.parse(e);if("excalidraw"!==o.type)throw new Error(zt("alerts.couldNotLoadInvalidFile"));n=o.elements||[],r=va(va({},t),o.appState)}catch(e){throw new Error(zt("alerts.couldNotLoadInvalidFile"))}return{elements:n,appState:r}},e.handle&&(window.handle=e.handle),"text"in Blob?[4,e.text()]:[3,2];case 1:return n=i.sent(),[3,4];case 2:return[4,new Promise((function(t){var n=new FileReader;n.readAsText(e,"utf8"),n.onloadend=function(){n.readyState===FileReader.DONE&&t(n.result)}}))];case 3:n=i.sent(),i.label=4;case 4:return r=t(n),o=r.elements,a=r.appState,[2,ma(o,a,{scrollToContent:!0})]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){ka(a,r,o,i,s,"next",e)}function s(e){ka(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Sa=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Ea(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ca(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ea(a,r,o,i,s,"next",e)}function s(e){Ea(a,r,o,i,s,"throw",e)}i(void 0)}))}}var xa=function(e,t){return JSON.stringify({type:"excalidraw",version:2,source:window.location.origin,elements:e.filter((function(e){return!e.isDeleted})),appState:fo(t)},null,2)},_a=function(){var e=Ca((function(e,t,n){var r,o,a,i;return Sa(this,(function(s){switch(s.label){case 0:return r=xa(e,t),o=new Blob([r],{type:"application/json"}),a="".concat(t.name,".excalidraw"),i=window,[4,Go(o,{fileName:a,description:"Excalidraw file",extensions:["excalidraw"]},n||null)];case 1:return i.handle=s.sent(),[2]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),Ta=function(){var e=Ca((function(){var e;return Sa(this,(function(t){switch(t.label){case 0:return[4,Lo({description:"Excalidraw files",extensions:["json","excalidraw"],mimeTypes:["application/json"]})];case 1:return e=t.sent(),[2,wa(e)]}}))}));return function(){return e.apply(this,arguments)}}(),Pa=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ia(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){za(a,r,o,i,s,"next",e)}function s(e){za(a,r,o,i,s,"throw",e)}i(void 0)}))}}window.handle=null;var ja=function(e){return"0".concat(e.toString(16)).slice(-2)},Da=function(){var e=Ia((function(){var e;return Pa(this,(function(t){return e=new Uint8Array(10),window.crypto.getRandomValues(e),[2,Array.from(e,ja).join("")]}))}));return function(){return e.apply(this,arguments)}}(),La=function(){var e=Ia((function(){var e;return Pa(this,(function(t){switch(t.label){case 0:return[4,window.crypto.subtle.generateKey({name:"AES-GCM",length:128},!0,["encrypt","decrypt"])];case 1:return e=t.sent(),[4,window.crypto.subtle.exportKey("jwk",e)];case 2:return[2,t.sent().k]}}))}));return function(){return e.apply(this,arguments)}}(),Na=function(e){if(0!==e.length)return new URL(e).hash.match(/^#room=([a-zA-Z0-9_-]+),([a-zA-Z0-9_-]+)$/)},Fa=function(){var e=Ia((function(){var e,t;return Pa(this,(function(n){switch(n.label){case 0:return[4,Da()];case 1:return e=n.sent(),[4,La()];case 2:return t=n.sent(),[2,"".concat(window.location.origin).concat(window.location.pathname,"#room=").concat(e,",").concat(t)]}}))}));return function(){return e.apply(this,arguments)}}(),Ba=function(e,t){return window.crypto.subtle.importKey("jwk",{alg:"A128GCM",ext:!0,k:e,key_ops:["encrypt","decrypt"],kty:"oct"},{name:"AES-GCM",length:128},!1,[t])},Ra=function(){var e=Ia((function(e,t){var n,r,o;return Pa(this,(function(a){switch(a.label){case 0:return[4,Ba(t,"encrypt")];case 1:return n=a.sent(),r=function(){var e=new Uint8Array(12);return window.crypto.getRandomValues(e)}(),o={},[4,window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,e)];case 2:return[2,(o.data=a.sent(),o.iv=r,o)]}}))}));return function(t,n){return e.apply(this,arguments)}}(),Ha=function(){var e=Ia((function(e,t,n){var r,o,a,i;return Pa(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,Ba(t,"decrypt")];case 1:return r=s.sent(),[4,window.crypto.subtle.decrypt({name:"AES-GCM",iv:n},r,e)];case 2:return o=s.sent(),a=new TextDecoder("utf-8").decode(new Uint8Array(o)),[2,JSON.parse(a)];case 3:return i=s.sent(),window.alert(zt("alerts.decryptFailed")),console.error(i),[3,4];case 4:return[2,{type:"INVALID_RESPONSE"}]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),Ga=function(){var e=Ia((function(e,t){var n,r,o,a,i,s,l,c,u,d;return Pa(this,(function(p){switch(p.label){case 0:return n=xa(e,t),r=(new TextEncoder).encode(n),[4,window.crypto.subtle.generateKey({name:"AES-GCM",length:128},!0,["encrypt","decrypt"])];case 1:return o=p.sent(),a=new Uint8Array(12),[4,window.crypto.subtle.encrypt({name:"AES-GCM",iv:a},o,r)];case 2:return i=p.sent(),[4,window.crypto.subtle.exportKey("jwk",o)];case 3:s=p.sent(),p.label=4;case 4:return p.trys.push([4,7,,8]),[4,fetch("https://json.excalidraw.com/api/v2/post/",{method:"POST",body:i})];case 5:return[4,p.sent().json()];case 6:return(l=p.sent()).id?((c=new URL(window.location.href)).hash="json=".concat(l.id,",").concat(s.k),u=c.toString(),window.prompt("🔒".concat(zt("alerts.uploadedSecurly")),u)):window.alert(zt("alerts.couldNotCreateShareableLink")),[3,8];case 7:return d=p.sent(),console.error(d),window.alert(zt("alerts.couldNotCreateShareableLink")),[3,8];case 8:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),Wa=function(){var e=Ia((function(e,t){var n,r,o,a,i,s,l,c,u,d;return Pa(this,(function(p){switch(p.label){case 0:n=[],r=ho(),p.label=1;case 1:return p.trys.push([1,9,10,11]),[4,fetch(t?"".concat("https://json.excalidraw.com/api/v2/").concat(e):"".concat("https://json.excalidraw.com/api/v1/").concat(e,".json"))];case 2:return(o=p.sent()).ok?(a=void 0,t?[4,o.arrayBuffer()]:[3,6]):(window.alert(zt("alerts.importBackendFailed")),[2,ma(n,r,{scrollToContent:!0})]);case 3:return i=p.sent(),[4,Ba(t,"decrypt")];case 4:return s=p.sent(),l=new Uint8Array(12),[4,window.crypto.subtle.decrypt({name:"AES-GCM",iv:l},s,i)];case 5:return c=p.sent(),u=new window.TextDecoder("utf-8").decode(new Uint8Array(c)),a=JSON.parse(u),[3,8];case 6:return[4,o.json()];case 7:a=p.sent(),p.label=8;case 8:return n=a.elements||n,r=Aa(Aa({},r),a.appState),[3,11];case 9:return d=p.sent(),window.alert(zt("alerts.importBackendFailed")),console.error(d),[3,11];case 10:return[2,ma(n,r,{scrollToContent:!0})];case 11:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),Ua=function(){var e=Ia((function(e,t,n,r,o){var a,i,s,l,c=o.exportBackground,u=o.exportPadding,d=void 0===u?10:u,p=o.viewBackgroundColor,h=o.name,f=o.scale,m=void 0===f?1:f,g=o.shouldAddWatermark;return Pa(this,(function(o){switch(o.label){case 0:return 0===t.length?[2,window.alert(zt("alerts.cannotExportEmptyCanvas"))]:"svg"!==e&&"clipboard-svg"!==e?[3,3]:(a=function(e,t){var n=t.exportBackground,r=t.exportPadding,o=void 0===r?10:r,a=t.viewBackgroundColor,i=t.shouldAddWatermark,s=e;if(i){var l=Xe(e),c=l[2],u=l[3];s=Oo(s,[Mo(c,u)])}var d=Xe(s),p=d[0],h=d[1],f=d[2],m=d[3],g=nn(p,f)+2*o,y=nn(h,m)+o+(i?0:o),v=document.createElementNS(Kt,"svg");if(v.setAttribute("version","1.1"),v.setAttribute("xmlns",Kt),v.setAttribute("viewBox","0 0 ".concat(g," ").concat(y)),v.innerHTML="\n ".concat("\x3c!-- svg-source:excalidraw --\x3e",'\n <defs>\n <style>\n @font-face {\n font-family: "Virgil";\n src: url("https://excalidraw.com/FG_Virgil.woff2");\n }\n @font-face {\n font-family: "Cascadia";\n src: url("https://excalidraw.com/Cascadia.woff2");\n }\n </style>\n </defs>\n '),n&&a){var b=v.ownerDocument.createElementNS(Kt,"rect");b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("width","".concat(g)),b.setAttribute("height","".concat(y)),b.setAttribute("fill",a),v.appendChild(b)}var k=me(v);return Po(s,k,v,{offsetX:-p+o,offsetY:-h+o}),v}(t,{exportBackground:c,viewBackgroundColor:p,exportPadding:d,shouldAddWatermark:g}),"svg"!==e?[3,2]:[4,Go(new Blob([a.outerHTML],{type:"image/svg+xml"}),{fileName:"".concat(h,".svg")})]);case 1:return o.sent(),[2];case 2:if("clipboard-svg"===e)return sa(a),[2];o.label=3;case 3:if((i=Ao(t,n,{exportBackground:c,viewBackgroundColor:p,exportPadding:d,scale:m,shouldAddWatermark:g})).style.display="none",document.body.appendChild(i),"png"===e)s="".concat(h,".png"),i.toBlob(function(){var e=Ia((function(e){return Pa(this,(function(t){switch(t.label){case 0:return e?[4,Go(e,{fileName:s})]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}));return function(t){return e.apply(this,arguments)}}());else if("clipboard"===e)try{ia(i)}catch(e){window.alert(zt("alerts.couldNotCopyToClipboard"))}else"backend"===e&&(l=ho(),c&&(l.viewBackgroundColor=p),Ga(t,l));return i!==r&&i.remove(),[2]}}))}));return function(t,n,r,o,a){return e.apply(this,arguments)}}(),Va=function(){var e=Ia((function(e,t,n){var r;return Pa(this,(function(o){switch(o.label){case 0:return null==e?[3,2]:[4,Wa(e,n)];case 1:return r=o.sent(),window.history.replaceState({},"Excalidraw",window.location.origin),[3,3];case 2:r=ma(t,ho()),o.label=3;case 3:return[2,{elements:r.elements,appState:r.appState&&Aa({},r.appState),commitToHistory:!1}]}}))}));return function(t,n,r){return e.apply(this,arguments)}}(),Ka=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Ya(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function qa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ya(a,r,o,i,s,"next",e)}function s(e){Ya(a,r,o,i,s,"throw",e)}i(void 0)}))}}var Za=function(){function e(e){this.socket=null,this.socketInitialized=!1,this.roomID=null,this.roomKey=null,this.app=e}return e.prototype.open=function(e,t,n){var r=this;this.socket=e,this.roomID=t,this.roomKey=n,this.socket.on("init-room",(function(){r.socket&&r.socket.emit("join-room",r.roomID)})),this.socket.on("new-user",function(){var e=qa((function(e){return Ka(this,(function(e){return r.app.broadcastScene(se.INIT,!0),[2]}))}));return function(t){return e.apply(this,arguments)}}()),this.socket.on("room-user-change",(function(e){r.app.setCollaborators(e)}))},e.prototype.close=function(){this.socket&&(this.socket.close(),this.socket=null,this.roomID=null,this.roomKey=null)},e.prototype.isOpen=function(){return!!(this.socketInitialized&&this.socket&&this.roomID&&this.roomKey)},e.prototype._broadcastSocketData=function(e,t){void 0===t&&(t=!1);var n=this;return qa((function(){var r,o,a;return Ka(this,(function(i){switch(i.label){case 0:return n.isOpen()?(r=JSON.stringify(e),o=(new TextEncoder).encode(r),[4,Ra(o,n.roomKey)]):[3,2];case 1:a=i.sent(),n.socket.emit(t?Oe:Ae,n.roomID,a.data,a.iv),i.label=2;case 2:return[2]}}))}))()},e}(),Xa=[{icon:o.a.createElement("svg",{viewBox:"0 0 320 512",className:""},o.a.createElement("path",{d:"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"})),value:"selection",key:"s"},{icon:o.a.createElement("svg",{viewBox:"0 0 448 512"},o.a.createElement("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"})),value:"rectangle",key:"r"},{icon:o.a.createElement("svg",{viewBox:"0 0 223.646 223.646"},o.a.createElement("path",{d:"M111.823 0L16.622 111.823 111.823 223.646 207.025 111.823z"})),value:"diamond",key:"d"},{icon:o.a.createElement("svg",{viewBox:"0 0 512 512"},o.a.createElement("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"})),value:"ellipse",key:"e"},{icon:o.a.createElement("svg",{viewBox:"0 0 448 512",className:"rtl-mirror"},o.a.createElement("path",{d:"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"})),value:"arrow",key:"a"},{icon:o.a.createElement("svg",{viewBox:"0 0 6 6"},o.a.createElement("line",{x1:"0",y1:"3",x2:"6",y2:"3",stroke:po.black,strokeLinecap:"round"})),value:"line",key:"l"},{icon:o.a.createElement("svg",{viewBox:"0 0 512 512"},o.a.createElement("path",{fill:"currentColor",d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"})),value:"draw",key:"x"},{icon:o.a.createElement("svg",{viewBox:"0 0 448 512"},o.a.createElement("path",{d:"M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"})),value:"text",key:"t"}],Ja=Xa.map((function(e,t){return[e.key,(t+1).toString()]})).flat(1);function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ti,ni=function(e){return{selectedElementIds:e.selectedElementIds,viewBackgroundColor:e.viewBackgroundColor,editingLinearElement:e.editingLinearElement,editingGroupId:e.editingGroupId,name:e.name}},ri=function(){function e(){var e=this;this.elementCache=new Map,this.recording=!0,this.stateHistory=[],this.redoStack=[],this.lastEntry=null,this.generateEntry=function(t,n){return e.dehydrateHistoryEntry({appState:ni(t),elements:n.reduce((function(e,n){if(ve(n)&&t.multiElement&&t.multiElement.id===n.id){if(t.multiElement&&t.multiElement.id===n.id&&n.points.length<2)return e;e.push(Qa(Qa({},n),{},{points:n.lastCommittedPoint!==n.points[n.points.length-1]?n.points.slice(0,-1):n.points}))}else e.push(n);return e}),[])})}}return e.prototype.hydrateHistoryEntry=function(e){var t=e.appState,n=e.elements,r=this;return{appState:JSON.parse(t),elements:n.map((function(e){var t,n=null===(t=r.elementCache.get(e.id))||void 0===t?void 0:t.get(e.versionNonce);if(!n)throw new Error("Element not found: ".concat(e.id,":").concat(e.versionNonce));return n}))}},e.prototype.dehydrateHistoryEntry=function(e){var t=e.appState,n=e.elements,r=this;return{appState:JSON.stringify(t),elements:n.map((function(e){r.elementCache.has(e.id)||r.elementCache.set(e.id,new Map);var t=r.elementCache.get(e.id);return t.has(e.versionNonce)||t.set(e.versionNonce,nr(e)),{id:e.id,versionNonce:e.versionNonce}}))}},e.prototype.getSnapshotForTest=function(){var e=this;return{recording:this.recording,stateHistory:this.stateHistory.map((function(t){return e.hydrateHistoryEntry(t)})),redoStack:this.redoStack.map((function(t){return e.hydrateHistoryEntry(t)}))}},e.prototype.clear=function(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()},e.prototype.shouldCreateEntry=function(e){var t,n=this.lastEntry;if(!n)return!0;if(e.elements.length!==n.elements.length)return!0;for(var r=e.elements.length-1;r>-1;r--){var o=e.elements[r],a=n.elements[r];if(!o||!a||o.id!==a.id||o.versionNonce!==a.versionNonce)return!0}for(t in e.appState){var i,s;if("editingLinearElement"===t)if((null===(i=e.appState[t])||void 0===i?void 0:i.elementId)===(null===(s=n.appState[t])||void 0===s?void 0:s.elementId))continue;if("selectedElementIds"!==t&&e.appState[t]!==n.appState[t])return!0}return!1},e.prototype.pushEntry=function(e,t){var n=this.generateEntry(e,t),r=this.hydrateHistoryEntry(n);if(r){if(!this.shouldCreateEntry(r))return;this.stateHistory.push(n),this.lastEntry=r,this.clearRedoStack()}},e.prototype.clearRedoStack=function(){this.redoStack.splice(0,this.redoStack.length)},e.prototype.redoOnce=function(){if(0===this.redoStack.length)return null;var e=this.redoStack.pop();return void 0!==e?(this.stateHistory.push(e),this.hydrateHistoryEntry(e)):null},e.prototype.undoOnce=function(){if(1===this.stateHistory.length)return null;var e=this.stateHistory.pop(),t=this.stateHistory[this.stateHistory.length-1];return void 0!==e?(this.redoStack.push(e),this.hydrateHistoryEntry(t)):null},e.prototype.setCurrentState=function(e,t){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(e,t))},e.prototype.resumeRecording=function(){this.recording=!0},e.prototype.record=function(e,t){this.recording&&(this.pushEntry(e,t),this.recording=!1)},e}(),oi=(n(40),n(2)),ai=function(e){var t=e.children,n=e.left,a=e.top,i=e.onCloseRequest,s=e.fitInViewport,l=void 0!==s&&s,c=Object(r.useRef)(null);return Object(r.useLayoutEffect)((function(){if(l&&c.current){var e=c.current,t=e.getBoundingClientRect(),n=t.x,r=t.y,o=t.width,a=t.height,i=window.innerWidth;n+o>i&&(e.style.left="".concat(i-o,"px"));var s=window.innerHeight;r+a>s&&(e.style.top="".concat(s-a,"px"))}}),[l]),Object(r.useEffect)((function(){if(i){var e=function(e){var t;(null===(t=c.current)||void 0===t?void 0:t.contains(e.target))||Object(oi.unstable_batchedUpdates)((function(){return i(e)}))};return document.addEventListener("pointerdown",e,!1),function(){return document.removeEventListener("pointerdown",e,!1)}}}),[i]),o.a.createElement("div",{className:"popover",style:{top:a,left:n},ref:c},t)},ii=(n(41),function(e){var t=e.options,n=e.onCloseRequest,r=e.top,a=e.left;return o.a.createElement(ai,{onCloseRequest:n,top:r,left:a,fitInViewport:!0},o.a.createElement("ul",{className:"context-menu",onContextMenu:function(e){return e.preventDefault()}},t.map((function(e,t){return o.a.createElement("li",{key:t,onClick:n},o.a.createElement(si,e))}))))}),si=function(e){var t=e.label,n=e.action;return o.a.createElement("button",{className:"context-menu-option",onClick:n},t)},li=function(){if(ti)return ti;var e=document.createElement("div");return document.body.appendChild(e),ti=e},ci=function(){Object(oi.unmountComponentAtNode)(li())},ui=function(e){var t=Array.of();e.options.forEach((function(e){e&&t.push(e)})),t.length&&Object(oi.render)(o.a.createElement(ii,{top:e.top,left:e.left,options:t,onCloseRequest:ci}),li())},di=function(){function e(e,t,n){var r=this;this.actions={},this.renderAction=function(e,t){if(r.actions[e]&&"PanelComponent"in r.actions[e]){var n=r.actions[e],a=n.PanelComponent;return o.a.createElement(a,{elements:r.getElementsIncludingDeleted(),appState:r.getAppState(),updateData:function(e){r.updater(n.perform(r.getElementsIncludingDeleted(),r.getAppState(),e))},id:t})}return null},this.updater=e,this.getAppState=t,this.getElementsIncludingDeleted=n}return e.prototype.registerAction=function(e){this.actions[e.name]=e},e.prototype.registerAll=function(e){var t=this;e.forEach((function(e){return t.registerAction(e)}))},e.prototype.handleKeyDown=function(e){var t=this,n=Object.values(this.actions).sort((function(e,t){return(t.keyPriority||0)-(e.keyPriority||0)})).filter((function(n){return n.keyTest&&n.keyTest(e,t.getAppState(),t.getElementsIncludingDeleted())}));return 0!==n.length&&(e.preventDefault(),this.updater(n[0].perform(this.getElementsIncludingDeleted(),this.getAppState(),null)),!0)},e.prototype.executeAction=function(e){this.updater(e.perform(this.getElementsIncludingDeleted(),this.getAppState(),null))},e.prototype.getContextMenuItems=function(e){void 0===e&&(e=function(e){return e});var t=this;return Object.values(this.actions).filter(e).filter((function(e){return"contextItemLabel"in e})).sort((function(e,t){return(void 0!==e.contextMenuOrder?e.contextMenuOrder:999)-(void 0!==t.contextMenuOrder?t.contextMenuOrder:999)})).map((function(e){return{label:e.contextItemLabel?zt(e.contextItemLabel):"",action:function(){t.updater(e.perform(t.getElementsIncludingDeleted(),t.getAppState(),null))}}}))},e}(),pi=(n(22),o.a.forwardRef((function(e,t){var n=o.a.useRef(null);o.a.useImperativeHandle(t,(function(){return n.current}));var r="ToolIcon_size_".concat(e.size||"m");return"button"===e.type?o.a.createElement("button",{className:"ToolIcon_type_button ".concat(e.hidden?"":"ToolIcon"," ").concat(r).concat(e.selected?" ToolIcon--selected":""," ").concat(e.className," ").concat(e.visible&&!e.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide"),hidden:e.hidden,title:e.title,"aria-label":e["aria-label"],type:"button",onClick:e.onClick,ref:n},o.a.createElement("div",{className:"ToolIcon__icon","aria-hidden":"true"},e.icon||e.label),e.showAriaLabel&&o.a.createElement("div",{className:"ToolIcon__label"},e["aria-label"]),e.children):o.a.createElement("label",{className:"ToolIcon",title:e.title},o.a.createElement("input",{className:"ToolIcon_type_radio ".concat(r),type:"radio",name:e.name,"aria-label":e["aria-label"],"aria-keyshortcuts":e["aria-keyshortcuts"],"data-testid":e["data-testid"],id:e.id,onChange:e.onChange,checked:e.checked,ref:n}),o.a.createElement("div",{className:"ToolIcon__icon"},e.icon,e.keyBindingLabel&&o.a.createElement("span",{className:"ToolIcon__keybinding"},e.keyBindingLabel)))})));pi.defaultProps={visible:!0,className:""};var hi=po.orange[4],fi=function(e,t){void 0===t&&(t=512);var n="number"==typeof t?{width:t}:t,r=n.width,a=void 0===r?512:r,i=n.height,s=void 0===i?a:i,l=n.mirror,c=n.style;return o.a.createElement("svg",{"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(a," ").concat(s),className:l&&"rtl-mirror",style:c},"string"==typeof e?o.a.createElement("path",{fill:"currentColor",d:e}):e)},mi=fi("M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z",{mirror:!0}),gi=fi("M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z",{width:448,height:512}),yi=fi("M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z",{width:448,height:512}),vi=fi("M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z",{width:576,height:512,mirror:!0}),bi=fi("M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z",{width:384,height:512}),ki=fi("M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",{width:448,height:512}),wi=fi("M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"),Si=fi("M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z",{width:576,height:512,mirror:!0}),Ei=fi("M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),Ci=fi("M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),xi=fi("M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",{mirror:!0}),_i=fi("M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"),Ti=fi("M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z",{mirror:!0}),Pi=fi("M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z",{mirror:!0}),Oi=fi(o.a.createElement("path",{stroke:"currentColor",strokeWidth:"40",fill:"currentColor",d:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z"}),{width:1024}),Ai=fi(o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H16v8H8v4.444C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",stroke:po.black,strokeWidth:"2"}),o.a.createElement("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:hi,stroke:hi,strokeWidth:"2"})),{width:24}),Mi=fi(o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:hi,stroke:hi,strokeWidth:"2"}),o.a.createElement("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H9.556C8.696 8 8 8.697 8 9.556v10.888C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",stroke:po.black,strokeWidth:"2"})),{width:24}),zi=fi(o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{d:"M13 21a1 1 0 001 1h7a1 1 0 001-1v-7a1 1 0 00-1-1h-3v5h-5v3zM11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h3V6h5V3z",stroke:po.black,strokeWidth:"2"}),o.a.createElement("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:hi,stroke:hi,strokeWidth:"2"})),{width:24}),Ii=fi(o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:hi,stroke:hi,strokeLinejoin:"round",strokeWidth:"2"}),o.a.createElement("path",{d:"M11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h8V3zM22 14a1 1 0 00-1-1h-7a1 1 0 00-1 1v7a1 1 0 001 1h8v-8z",stroke:po.black,strokeLinejoin:"round",strokeWidth:"2"})),{width:24}),ji=fi("M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z",{width:640,height:512,mirror:!0}),Di=fi("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"),Li=fi("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"),Ni=fi("M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",{width:352,height:512}),Fi=fi("M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z",{width:320,height:512,style:{marginLeft:"-0.2rem"},mirror:!0}),Bi=fi("M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z",{mirror:!0}),Ri=fi("M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z",{width:24}),Hi=[],Gi=function(e){return Hi=Hi.concat(e),e};function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Vi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){var n;if(e.editingGroupId){var r=Vn(co(t),e.editingGroupId);if(r.length)return Ui(Ui({},e),{},{selectedElementIds:(n={},n[r[0].id]=!0,n)})}return e}var Yi=Gi({name:"deleteSelectedElements",perform:function(e,t){var n,r;if(null!=(null===(n=t.editingLinearElement)||void 0===n?void 0:n.activePointIndex)&&(null===(r=t.editingLinearElement)||void 0===r?void 0:r.activePointIndex)>-1){var o=t.editingLinearElement.elementId,a=Eo.getElement(o);if(a){if(a.points.length<2){var i=e.filter((function(e){return e.id!==a.id}));return{elements:i,appState:Ui(Ui({},Ki(t,i)),{},{editingLinearElement:null}),commitToHistory:!1}}return Eo.movePoint(a,t.editingLinearElement.activePointIndex,"delete"),{elements:e,appState:Ui(Ui({},t),{},{editingLinearElement:Ui(Ui({},t.editingLinearElement),{},{activePointIndex:t.editingLinearElement.activePointIndex>0?t.editingLinearElement.activePointIndex-1:0})}),commitToHistory:!0}}}var s=function(e,t){return{elements:e.map((function(e){return t.selectedElementIds[e.id]?In(e,{isDeleted:!0}):e})),appState:Ui(Ui({},t),{},{selectedElementIds:{}})}}(e,t),l=s.elements,c=s.appState;return{elements:l,appState:Ui(Ui({},c=Ki(c,l)),{},{elementType:"selection",multiElement:null}),commitToHistory:Dt(co(e),t)}},contextItemLabel:"labels.delete",contextMenuOrder:3,keyTest:function(e){return e.key===Wr||e.key===Gr},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement(pi,{type:"button",icon:ki,title:zt("labels.delete"),"aria-label":zt("labels.delete"),onClick:function(){return r(null)},visible:Dt(co(t),n)})}}),qi=function(e,t,n){var r=e[t];e[t]=e[n],e[n]=r},Zi=function(e,t){t.sort((function(e,t){return e-t}));var n=!0;return t.forEach((function(t,r){(n=n&&t===r)||qi(e,t-1,t)})),e},Xi=function(e,t){var n=t.sort((function(e,t){return t-e})),r=!0;return n.forEach((function(t,n){(r=r&&t===e.length-n-1)||qi(e,t+1,t)})),e},Ji=function(e,t){t.sort((function(e,t){return e-t}));var n=t.map((function(t){return e[t]})),r=t.reverse().concat([0]);return r.forEach((function(t,n){if(0!==n)for(var o=r[n-1]-1;o>=t;--o)e[o+n]=e[o]})),n.forEach((function(t,n){e[n]=t})),e},$i=function(e,t){var n=t.sort((function(e,t){return t-e})),r=n.map((function(t){return e[t]}));return(t=n.reverse().concat([e.length])).forEach((function(n,r){if(0!==r)for(var o=t[r-1]+1;o<n;++o)e[o-r]=e[o]})),r.forEach((function(t,n){e[e.length-n-1]=t})),e},Qi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r},es=function(e,t,n){var r=t.slice();return e(r,function(e,t,n){var r=[],o=[],a=function(e,t){e.isDeleted?o.push(t):(n.selectedElementIds[e.id]&&r.push.apply(r,Qi(o,[t])),o=[])};if("left"===e)for(var i=-1,s=t.length;++i<s;)a(t[i],i);else for(i=t.length;--i>-1;)a(t[i],i);return r.sort()}(e===Zi||e===Ji?"left":"right",r,n))};Gi({name:"sendBackward",perform:function(e,t){return{elements:es(Zi,e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:function(e){return e[Ur]&&!e.shiftKey&&"BracketLeft"===e.code},PanelComponent:function(e){var t=e.updateData;return o.a.createElement("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(zt("labels.sendBackward")," — ").concat(sn("CtrlOrCmd+["))},Mi)}}),Gi({name:"bringForward",perform:function(e,t){return{elements:es(Xi,e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:function(e){return e[Ur]&&!e.shiftKey&&"BracketRight"===e.code},PanelComponent:function(e){var t=e.updateData;return o.a.createElement("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(zt("labels.bringForward")," — ").concat(sn("CtrlOrCmd+]"))},Ai)}}),Gi({name:"sendToBack",perform:function(e,t){return{elements:es(Ji,e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendToBack",keyTest:function(e){return Dr?e[Ur]&&e.altKey&&"BracketLeft"===e.code:e[Ur]&&e.shiftKey&&"BracketLeft"===e.code},PanelComponent:function(e){var t=e.updateData;return o.a.createElement("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(zt("labels.sendToBack")," — ").concat(sn(Dr?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+["))},Ii)}}),Gi({name:"bringToFront",perform:function(e,t){return{elements:es($i,e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringToFront",keyTest:function(e){return Dr?e[Ur]&&e.altKey&&"BracketRight"===e.code:e[Ur]&&e.shiftKey&&"BracketRight"===e.code},PanelComponent:function(e){var t=e.updateData;return o.a.createElement("button",{type:"button",className:"zIndexButton",onClick:function(e){return t(null)},title:"".concat(zt("labels.bringToFront")," — ").concat(sn(Dr?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]"))},zi)}});function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach((function(t){rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"selectAll",perform:function(e,t){return{appState:Wn(ns(ns({},t),{},{editingGroupId:null,selectedElementIds:e.reduce((function(e,t){return t.isDeleted||(e[t.id]=!0),e}),{})}),co(e)),commitToHistory:!0}},contextItemLabel:"labels.selectAll",keyTest:function(e){return e[Ur]&&"a"===e.key}}),Gi({name:"duplicateSelection",perform:function(e,t){var n=new Map;return{appState:t,elements:e.reduce((function(e,r){if(t.selectedElementIds[r.id]){var o=rr(t.editingGroupId,n,r,{x:r.x+10,y:r.y+10});return t.selectedElementIds[o.id]=!0,delete t.selectedElementIds[r.id],e.concat([r,o])}return e.concat(r)}),[]),commitToHistory:!0}},contextItemLabel:"labels.duplicateSelection",keyTest:function(e){return e[Ur]&&"d"===e.key},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement(pi,{type:"button",icon:Bi,title:"".concat(zt("labels.duplicateSelection")," — ").concat(sn("CtrlOrCmd+D")),"aria-label":zt("labels.duplicateSelection"),onClick:function(){return r(null)},visible:Dt(co(t),n)})}});var os=function(e){var t=e.options,n=e.value,r=e.onChange,a=e.group;return o.a.createElement("div",{className:"buttonList"},t.map((function(e){return o.a.createElement("label",{key:e.text,className:n===e.value?"active":""},o.a.createElement("input",{type:"radio",name:a,onChange:function(){return r(e.value)},checked:n===e.value}),e.text)})))},as=(n(42),function(e){var t=(new Option).style;return t.color=e,!!t.color}),is=[["1","2","3","4","5"],["q","w","e","r","t"],["a","s","d","f","g"]].flat(),ss=function(e){var t=e.colors,n=e.color,r=e.onChange,a=e.onClose,i=e.label,s=e.showInput,l=void 0===s||s,c=o.a.useRef(),u=o.a.useRef(),d=o.a.useRef(),p=o.a.useRef();o.a.useEffect((function(){u.current?u.current.focus():p.current&&p.current.focus()}),[]);return o.a.createElement("div",{className:"color-picker",role:"dialog","aria-modal":"true","aria-label":zt("labels.colorPicker"),onKeyDown:function(e){if(e.key===Vr){var t,n,r=document.activeElement;if(e.shiftKey){if(r===c.current)null===(t=p.current)||void 0===t||t.focus(),e.preventDefault()}else if(r===p.current)null===(n=c.current)||void 0===n||n.focus(),e.preventDefault()}else if(e.key===Nr||e.key===Lr||e.key===Br||e.key===Fr){r=document.activeElement;var o=At().rtl;if(-1!==(u=Array.prototype.indexOf.call(d.current.children,r))){var i=d.current.children.length-(l?1:0),s=e.key===(o?Lr:Nr)?(u+1)%i:e.key===(o?Nr:Lr)?(i+u-1)%i:e.key===Fr?(u+5)%i:e.key===Br?(i+u-5)%i:u;d.current.children[s].focus()}e.preventDefault()}else if(is.includes(e.key.toLowerCase())&&!Xt(e.target)){var u=is.indexOf(e.key.toLowerCase());d.current.children[u].focus(),e.preventDefault()}else e.key!==Hr&&e.key!==Rr||(e.preventDefault(),a());e.nativeEvent.stopImmediatePropagation()}},o.a.createElement("div",{className:"color-picker-triangle color-picker-triangle-shadow"}),o.a.createElement("div",{className:"color-picker-triangle"}),o.a.createElement("div",{className:"color-picker-content",ref:function(e){e&&(d.current=e)}},t.map((function(e,t){return o.a.createElement("button",{className:"color-picker-swatch",onClick:function(t){t.currentTarget.focus(),r(e)},title:"".concat(e," — ").concat(is[t].toUpperCase()),"aria-label":e,"aria-keyshortcuts":is[t],style:{color:e},key:e,ref:function(r){r&&0===t&&(c.current=r),r&&e===n&&(u.current=r)},onFocus:function(){r(e)}},"transparent"===e?o.a.createElement("div",{className:"color-picker-transparent"}):void 0,o.a.createElement("span",{className:"color-picker-keybinding"},is[t]))})),l&&o.a.createElement(ls,{color:n,label:i,onChange:function(e){r(e)},ref:p})))},ls=o.a.forwardRef((function(e,t){var n=e.color,r=e.onChange,a=e.label,i=o.a.useState(n),s=i[0],l=i[1],c=o.a.useRef(null);o.a.useEffect((function(){l(n)}),[n]),o.a.useImperativeHandle(t,(function(){return c.current}));var u=o.a.useCallback((function(e){var t=e.toLowerCase(),n=function(e){return"transparent"===e||as(e)?e:as("#".concat(e))?"#".concat(e):null}(t);n&&r(n),l(t)}),[r]);return o.a.createElement("label",{className:"color-input-container"},o.a.createElement("div",{className:"color-picker-hash"},"#"),o.a.createElement("input",{spellCheck:!1,className:"color-picker-input","aria-label":a,onChange:function(e){return u(e.target.value)},value:(s||"").replace(/^#/,""),onBlur:function(){return l(n)},ref:c}))})),cs=function(e){var t=e.type,n=e.color,r=e.onChange,a=e.label,i=o.a.useState(!1),s=i[0],l=i[1],c=o.a.useRef(null);return o.a.createElement("div",null,o.a.createElement("div",{className:"color-picker-control-container"},o.a.createElement("button",{className:"color-picker-label-swatch","aria-label":a,style:n?{"--swatch-color":n}:void 0,onClick:function(){return l(!s)},ref:c}),o.a.createElement(ls,{color:n,label:a,onChange:function(e){r(e)}})),o.a.createElement(o.a.Suspense,{fallback:""},s?o.a.createElement(ai,{onCloseRequest:function(e){return e.target!==c.current&&l(!1)}},o.a.createElement(ss,{colors:yo[t],color:n||null,onChange:function(e){r(e)},onClose:function(){var e;l(!1),null===(e=c.current)||void 0===e||e.focus()},label:a,showInput:!1})):null))};function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hs=function(e,t,n){return e.map((function(e){var r;return t.selectedElementIds[e.id]||e.id===(null===(r=t.editingElement)||void 0===r?void 0:r.id)?n(e):e}))},fs=function(e,t,n,r){var o,a,i=t.editingElement,s=co(e);return null!==(o=null!==(a=i&&n(i))&&void 0!==a?a:Dt(s,t)?function(e,t,n){var r=Array.from(new Set(Lt(e,t).map((function(e){return n(e)}))));return 1===r.length?r[0]:null}(s,t,n):r)&&void 0!==o?o:null},ms=(Gi({name:"changeStrokeColor",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{strokeColor:n})})),appState:ds(ds({},t),{},{currentItemStrokeColor:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement(o.a.Fragment,null,o.a.createElement("h3",{"aria-hidden":"true"},zt("labels.stroke")),o.a.createElement(cs,{type:"elementStroke",label:zt("labels.stroke"),color:fs(t,n,(function(e){return e.strokeColor}),n.currentItemStrokeColor),onChange:r}))}}),Gi({name:"changeBackgroundColor",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{backgroundColor:n})})),appState:ds(ds({},t),{},{currentItemBackgroundColor:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement(o.a.Fragment,null,o.a.createElement("h3",{"aria-hidden":"true"},zt("labels.background")),o.a.createElement(cs,{type:"elementBackground",label:zt("labels.background"),color:fs(t,n,(function(e){return e.backgroundColor}),n.currentItemBackgroundColor),onChange:r}))}}),Gi({name:"changeFillStyle",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{fillStyle:n})})),appState:ds(ds({},t),{},{currentItemFillStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.fill")),o.a.createElement(os,{options:[{value:"hachure",text:zt("labels.hachure")},{value:"cross-hatch",text:zt("labels.crossHatch")},{value:"solid",text:zt("labels.solid")}],group:"fill",value:fs(t,n,(function(e){return e.fillStyle}),n.currentItemFillStyle),onChange:function(e){r(e)}}))}}),Gi({name:"changeStrokeWidth",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{strokeWidth:n})})),appState:ds(ds({},t),{},{currentItemStrokeWidth:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.strokeWidth")),o.a.createElement(os,{group:"stroke-width",options:[{value:1,text:zt("labels.thin")},{value:2,text:zt("labels.bold")},{value:4,text:zt("labels.extraBold")}],value:fs(t,n,(function(e){return e.strokeWidth}),n.currentItemStrokeWidth),onChange:function(e){return r(e)}}))}}),Gi({name:"changeSloppiness",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{roughness:n})})),appState:ds(ds({},t),{},{currentItemRoughness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.sloppiness")),o.a.createElement(os,{group:"sloppiness",options:[{value:0,text:zt("labels.architect")},{value:1,text:zt("labels.artist")},{value:2,text:zt("labels.cartoonist")}],value:fs(t,n,(function(e){return e.roughness}),n.currentItemRoughness),onChange:function(e){return r(e)}}))}}),Gi({name:"changeStrokeStyle",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{strokeStyle:n})})),appState:ds(ds({},t),{},{currentItemStrokeStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.strokeStyle")),o.a.createElement(os,{group:"strokeStyle",options:[{value:"solid",text:zt("labels.strokeStyle_solid")},{value:"dashed",text:zt("labels.strokeStyle_dashed")},{value:"dotted",text:zt("labels.strokeStyle_dotted")}],value:fs(t,n,(function(e){return e.strokeStyle}),n.currentItemStrokeStyle),onChange:function(e){return r(e)}}))}}),Gi({name:"changeOpacity",perform:function(e,t,n){return{elements:hs(e,t,(function(e){return In(e,{opacity:n})})),appState:ds(ds({},t),{},{currentItemOpacity:n}),commitToHistory:!0}},PanelComponent:function(e){var t,n=e.elements,r=e.appState,a=e.updateData;return o.a.createElement("label",{className:"control-label"},zt("labels.opacity"),o.a.createElement("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(e){return a(+e.target.value)},onWheel:function(e){e.stopPropagation();var t=+e.target.value;e.deltaY<0&&t<100?a(t+10):e.deltaY>0&&t>0&&a(t-10)},value:null!==(t=fs(n,r,(function(e){return e.opacity}),r.currentItemOpacity))&&void 0!==t?t:void 0}))}}),Gi({name:"changeFontSize",perform:function(e,t,n){return{elements:hs(e,t,(function(e){if(ye(e)){var t=In(e,{fontSize:n});return ao(t),t}return e})),appState:ds(ds({},t),{},{currentItemFontSize:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.fontSize")),o.a.createElement(os,{group:"font-size",options:[{value:16,text:zt("labels.small")},{value:20,text:zt("labels.medium")},{value:28,text:zt("labels.large")},{value:36,text:zt("labels.veryLarge")}],value:fs(t,n,(function(e){return ye(e)&&e.fontSize}),n.currentItemFontSize||20),onChange:function(e){return r(e)}}))}}),Gi({name:"changeFontFamily",perform:function(e,t,n){return{elements:hs(e,t,(function(e){if(ye(e)){var t=In(e,{fontFamily:n});return ao(t),t}return e})),appState:ds(ds({},t),{},{currentItemFontFamily:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,a=[{value:1,text:zt("labels.handDrawn")},{value:2,text:zt("labels.normal")},{value:3,text:zt("labels.code")}];return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.fontFamily")),o.a.createElement(os,{group:"font-family",options:a,value:fs(t,n,(function(e){return ye(e)&&e.fontFamily}),n.currentItemFontFamily||1),onChange:function(e){return r(e)}}))}}),Gi({name:"changeTextAlign",perform:function(e,t,n){return{elements:hs(e,t,(function(e){if(ye(e)){var t=In(e,{textAlign:n});return ao(t),t}return e})),appState:ds(ds({},t),{},{currentItemTextAlign:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.textAlign")),o.a.createElement(os,{group:"text-align",options:[{value:"left",text:zt("labels.left")},{value:"center",text:zt("labels.center")},{value:"right",text:zt("labels.right")}],value:fs(t,n,(function(e){return ye(e)&&e.textAlign}),n.currentItemTextAlign),onChange:function(e){return r(e)}}))}}),o.a.createContext(!1)),gs=function(e){var t=e.children,n=Object(r.useRef)();n.current||(n.current=window.matchMedia?window.matchMedia("(max-width: 640px), (max-height: 500px) and (max-width: 1000px)"):{matches:!1,addListener:function(){},removeListener:function(){}});var a=Object(r.useState)(n.current.matches),i=a[0],s=a[1];return Object(r.useEffect)((function(){var e=function(){return s(n.current.matches)};return n.current.addListener(e),function(){return n.current.removeListener(e)}}),[]),o.a.createElement(ms.Provider,{value:i},t)};function ys(){return Object(r.useContext)(ms)}function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(n),!0).forEach((function(t){ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"changeViewBackgroundColor",perform:function(e,t,n){return{appState:bs(bs({},t),{},{viewBackgroundColor:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement("div",{style:{position:"relative"}},o.a.createElement(cs,{label:zt("labels.canvasBackground"),type:"canvasBackground",color:t.viewBackgroundColor,onChange:function(e){return n(e)}}))}}),Gi({name:"clearCanvas",perform:function(e,t){return{elements:e.map((function(e){return In(e,{isDeleted:!0})})),appState:bs(bs({},ho()),{},{username:t.username}),commitToHistory:!0}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:ki,title:zt("buttons.clearReset"),"aria-label":zt("buttons.clearReset"),showAriaLabel:ys(),onClick:function(){window.confirm(zt("alerts.clearReset"))&&(window.handle=null,t(null))}})}});var ws="Minus",Ss="Equal",Es="Digit1",Cs="Digit0",xs="NumpadSubtract",_s="NumpadAdd",Ts="Numpad0";Gi({name:"zoomIn",perform:function(e,t){return{appState:bs(bs({},t),{},{zoom:Ut(t.zoom+.1)}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:Ei,title:"".concat(zt("buttons.zoomIn")," — ").concat(sn("CtrlOrCmd++")),"aria-label":zt("buttons.zoomIn"),onClick:function(){t(null)}})},keyTest:function(e){return(e.code===Ss||e.code===_s)&&(e[Ur]||e.shiftKey)}}),Gi({name:"zoomOut",perform:function(e,t){return{appState:bs(bs({},t),{},{zoom:Ut(t.zoom-.1)}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:Ci,title:"".concat(zt("buttons.zoomOut")," — ").concat(sn("CtrlOrCmd+-")),"aria-label":zt("buttons.zoomOut"),onClick:function(){t(null)}})},keyTest:function(e){return(e.code===ws||e.code===xs)&&(e[Ur]||e.shiftKey)}}),Gi({name:"resetZoom",perform:function(e,t){return{appState:bs(bs({},t),{},{zoom:1}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:Oi,title:zt("buttons.resetZoom"),"aria-label":zt("buttons.resetZoom"),onClick:function(){t(null)}})},keyTest:function(e){return(e.code===Cs||e.code===Ts)&&(e[Ur]||e.shiftKey)}}),Gi({name:"zoomToFit",perform:function(e,t){var n=e.filter((function(e){return!e.isDeleted})),r=Xe(n),o=r[0],a=r[1],i=(o+r[2])/2,s=(a+r[3])/2,l=Nt(window.innerWidth/2-i),c=Nt(window.innerHeight/2-s),u=function(e,t,n){var r,o=n.scrollX,a=n.scrollY,i=window.innerWidth,s=window.innerHeight,l=-i/(2*o+2*e[0]-i),c=-s/(2*a+2*e[1]-s);return(r=l<c?l-.01:c<=l?c-.01:t)<=.1?.1:r>=1?1:r}(r,t.zoom,{scrollX:l,scrollY:c});return{appState:bs(bs({},t),{},{scrollX:l,scrollY:c,zoom:u}),commitToHistory:!1}},keyTest:function(e){return e.code===Es&&e.shiftKey&&!e.altKey&&!e[Ur]}});function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach((function(t){As(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function As(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ms=Gi({name:"finalize",perform:function(e,t){var n,r;if(t.editingLinearElement){var o=t.editingLinearElement.elementId,a=Eo.getElement(o);if(a)return{elements:a.points.length<2||jn(a)?e.filter((function(e){return e.id!==a.id})):void 0,appState:Os(Os({},t),{},{editingLinearElement:null}),commitToHistory:!0}}var i=e;window.document.activeElement instanceof HTMLElement&&window.document.activeElement.blur();var s=t.multiElement?t.multiElement:"draw"===(null===(r=t.editingElement)||void 0===r?void 0:r.type)?t.editingElement:null;if(s){if("draw"!==s.type&&"touch"!==t.lastPointerDownWith){var l=s.points,c=s.lastCommittedPoint;c&&l[l.length-1]===c||zn(s,{points:s.points.slice(0,-1)})}if(jn(s)&&(i=i.slice(0,-1)),("line"===s.type||"draw"===s.type)&&Fe(s.points)){var u=s.points,d=u[0];zn(s,{points:u.map((function(e,t){return t===u.length-1?[d[0],d[1]]:e}))})}t.elementLocked||(t.selectedElementIds[s.id]=!0)}return t.elementLocked&&s||rn(),{elements:i,appState:Os(Os({},t),{},{elementType:t.elementLocked&&s?t.elementType:"selection",draggingElement:null,multiElement:null,editingElement:null,selectedElementIds:s&&!t.elementLocked?Os(Os({},t.selectedElementIds),{},(n={},n[s.id]=!0,n)):t.selectedElementIds}),commitToHistory:"draw"===t.elementType}},keyTest:function(e,t){return e.key===Hr&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===Hr||e.key===Rr)&&null!==t.multiElement},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement(pi,{type:"button",icon:xi,title:zt("buttons.done"),"aria-label":zt("buttons.done"),onClick:n,visible:null!=t.multiElement})}}),zs=(n(43),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Is=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,o,a=this;return a=e.apply(this,t)||this,r=o=a,a.handleFocus=function(e){en(e.currentTarget)},a.handleBlur=function(e){var t=e.currentTarget.innerText.trim();t!==o.props.value&&o.props.onChange(t),tn()},a.handleKeyDown=function(e){if("Enter"===e.key){if(e.preventDefault(),e.nativeEvent.isComposing||229===e.keyCode)return;e.currentTarget.blur()}},a.makeEditable=function(e){if(e)try{e.contentEditable="plaintext-only"}catch(t){e.contentEditable="true"}},r}return zs(t,e),t.prototype.render=function(){return o.a.createElement("span",{suppressContentEditableWarning:!0,ref:this.makeEditable,"data-type":"wysiwyg",className:"TextInput",role:"textbox","aria-label":this.props.label,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus},this.props.value)},t}(r.Component);function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){Ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"changeProjectName",perform:function(e,t,n){return{appState:Ds(Ds({},t),{},{name:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement(Is,{label:zt("labels.fileTitle"),value:t.name||"Unnamed",onChange:function(e){return n(e)}})}}),Gi({name:"changeExportBackground",perform:function(e,t,n){return{appState:Ds(Ds({},t),{},{exportBackground:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement("label",null,o.a.createElement("input",{type:"checkbox",checked:t.exportBackground,onChange:function(e){return n(e.target.checked)}})," ",zt("labels.withBackground"))}}),Gi({name:"changeShouldAddWatermark",perform:function(e,t,n){return{appState:Ds(Ds({},t),{},{shouldAddWatermark:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement("label",null,o.a.createElement("input",{type:"checkbox",checked:t.shouldAddWatermark,onChange:function(e){return n(e.target.checked)}})," ",zt("labels.addWatermark"))}}),Gi({name:"saveScene",perform:function(e,t,n){return _a(e,t,window.handle).catch((function(e){return console.error(e)})),{commitToHistory:!1}},keyTest:function(e){return!1},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:gi,title:zt("buttons.save"),"aria-label":zt("buttons.save"),showAriaLabel:ys(),onClick:function(){return t(null)}})}}),Gi({name:"saveAsScene",perform:function(e,t,n){return _a(e,t,null).catch((function(e){return console.error(e)})),{commitToHistory:!1}},keyTest:function(e){return"s"===e.key&&e.shiftKey&&e[Ur]},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:yi,title:zt("buttons.saveAs"),"aria-label":zt("buttons.saveAs"),showAriaLabel:ys(),hidden:!("chooseFileSystemEntries"in window),onClick:function(){return t(null)}})}}),Gi({name:"loadScene",perform:function(e,t,n){var r=n.elements,o=n.appState,a=n.error;return{elements:r,appState:Ds(Ds({},o),{},{errorMessage:a}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:vi,title:zt("buttons.load"),"aria-label":zt("buttons.load"),showAriaLabel:ys(),onClick:function(){Ta().then((function(e){var n=e.elements,r=e.appState;t({elements:n,appState:r})})).catch((function(e){"AbortError"!==e.name&&t({error:e.message})}))}})}});var Ns="{}",Fs=(Gi({name:"copyStyles",perform:function(e,t){var n=e.find((function(e){return t.selectedElementIds[e.id]}));return n&&(Ns=JSON.stringify(n)),{commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:function(e){return e[Ur]&&e.shiftKey&&"C"===e.key},contextMenuOrder:0}),Gi({name:"pasteStyles",perform:function(e,t){var n,r=JSON.parse(Ns);return"text"!==(null==(n=r)?void 0:n.type)&&"diamond"!==(null==n?void 0:n.type)&&"rectangle"!==(null==n?void 0:n.type)&&"ellipse"!==(null==n?void 0:n.type)&&"arrow"!==(null==n?void 0:n.type)&&"draw"!==(null==n?void 0:n.type)&&"line"!==(null==n?void 0:n.type)?{elements:e,commitToHistory:!1}:{elements:e.map((function(e){if(t.selectedElementIds[e.id]){var n=In(e,{backgroundColor:null==r?void 0:r.backgroundColor,strokeWidth:null==r?void 0:r.strokeWidth,strokeColor:null==r?void 0:r.strokeColor,strokeStyle:null==r?void 0:r.strokeStyle,fillStyle:null==r?void 0:r.fillStyle,opacity:null==r?void 0:r.opacity,roughness:null==r?void 0:r.roughness});return ye(n)&&(zn(n,{fontSize:(null==r?void 0:r.fontSize)||20,fontFamily:(null==r?void 0:r.fontFamily)||1,textAlign:(null==r?void 0:r.textAlign)||"left"}),ao(n)),n}return e})),commitToHistory:!0}},contextItemLabel:"labels.pasteStyles",keyTest:function(e){return e[Ur]&&e.shiftKey&&"V"===e.key},contextMenuOrder:1}),o.a.createElement("svg",{width:"30",height:"22",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"}))),Bs=function(e){return o.a.createElement("label",{title:"".concat(e.title," — ?"),className:"help-icon"},o.a.createElement("div",{onClick:e.onClick},Fs))};function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"toggleCanvasMenu",perform:function(e,t){return{appState:Hs(Hs({},t),{},{openMenu:"canvas"===t.openMenu?null:"canvas"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return o.a.createElement(pi,{type:"button",icon:_i,"aria-label":zt("buttons.menu"),onClick:n,selected:"canvas"===t.openMenu})}}),Gi({name:"toggleEditMenu",perform:function(e,t){return{appState:Hs(Hs({},t),{},{openMenu:"shape"===t.openMenu?null:"shape"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return o.a.createElement(pi,{visible:io(n,co(t)),type:"button",icon:wi,"aria-label":zt("buttons.edit"),onClick:r,selected:"shape"===n.openMenu})}}),Gi({name:"toggleFullScreen",perform:function(){return an()||document.documentElement.requestFullscreen(),an()&&document.exitFullscreen(),{commitToHistory:!1}},keyTest:function(e){return e.keyCode===qr}}),Gi({name:"toggleShortcuts",perform:function(e,t){return{appState:Hs(Hs({},t),{},{showShortcutsDialog:!0}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return o.a.createElement(Bs,{title:zt("shortcutsDialog.title"),onClick:t})},keyTest:function(e){return e.key===Yr}});var Ws=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"group",perform:function(e,t){var n=Lt(co(e),t);if(n.length<2)return{appState:t,elements:e,commitToHistory:!1};var r=Gn(t);if(1===r.length){var o=r[0],a=new Set(Vn(e,o).map((function(e){return e.id}))),i=new Set(n.map((function(e){return e.id})));if(new Set(Ws(Array.from(a),Array.from(i))).size===a.size)return{appState:t,elements:e,commitToHistory:!1}}var s=Pn(),l=e.map((function(e){return t.selectedElementIds[e.id]?In(e,{groupIds:Kn(e.groupIds,s,t.editingGroupId)}):e})),c=Vn(l,s),u=c[c.length-1],d=l.lastIndexOf(u),p=l.slice(d+1),h=l.slice(0,d).filter((function(e){return!Un(e,s)})),f=Ws(h,c,p);return{appState:Hn(s,Vs(Vs({},t),{},{selectedGroupIds:{}}),co(f)),elements:f,commitToHistory:!0}},contextMenuOrder:4,contextItemLabel:"labels.group",keyTest:function(e){return!e.shiftKey&&e[Ur]&&e.keyCode===$r}}),Gi({name:"ungroup",perform:function(e,t){if(0===Gn(t).length)return{appState:t,elements:e,commitToHistory:!1};var n=e.map((function(e){var n=function(e,t){return e.filter((function(e){return!t[e]}))}(e.groupIds,t.selectedGroupIds);return n.length===e.groupIds.length?e:In(e,{groupIds:n})}));return{appState:Wn(Vs(Vs({},t),{},{selectedGroupIds:{}}),co(n)),elements:n,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e[Ur]&&e.keyCode===$r},contextMenuOrder:5,contextItemLabel:"labels.ungroup"}),n(44);var Ys=function(e){var t=e.children,n=e.className,r=e.color,a=e.onClick;return o.a.createElement("div",{className:"Avatar ".concat(n),style:{background:r},onClick:a},t)};function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Gi({name:"goToCollaborator",perform:function(e,t,n){var r=n;return r?{appState:Zs(Zs({},t),{},{scrollX:Nt(window.innerWidth/2-r.x),scrollY:Nt(window.innerHeight/2-r.y),openMenu:"canvas"===t.openMenu?null:t.openMenu}),commitToHistory:!1}:{appState:t,commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.id;if(!r)return null;var a=t.collaborators.get(r);if(!a)return null;var i=vo(r).background,s=function(e){if(!e)return"?";var t=e.trim().split(" ");if(t.length<2)return t[0].substring(0,2).toUpperCase();var n=t[0],r=t[t.length-1];return(n[0]+r[0]).toUpperCase()}(a.username);return o.a.createElement(Ys,{color:i,onClick:function(){return n(a.pointer)}},s)}});var Js=function(e){var t=Array.from(e.values());return{x:Nt(Qs(t,(function(e){return e.x}))/t.length),y:Nt(Qs(t,(function(e){return e.y}))/t.length)}},$s=function(e){var t=e[0],n=e[1];return Math.hypot(t.x-n.x,t.y-n.y)},Qs=function(e,t){return e.reduce((function(e,n){return e+t(n)}),0)};function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rl=function(e,t,n){if(!(t.multiElement||t.resizingElement||t.editingElement||t.draggingElement)){var r=n();if(null===r)return{commitToHistory:!1};var o=so(e),a=r.elements,i=so(a);return{elements:a.map((function(e){return In(o[e.id]||e,e)})).concat(e.filter((function(e){return!i.hasOwnProperty(e.id)})).map((function(e){return In(e,{isDeleted:!0})}))),appState:tl(tl({},t),r.appState),commitToHistory:!1,syncHistory:!0}}return{commitToHistory:!1}},ol=function(e){return function(t){return t[Ur]&&/z/i.test(t.key)&&t.shiftKey===e}};n(45);function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ll=o.a.forwardRef((function(e,t){var n=e.children,r=e.padding,a=e.className,i=e.style;return o.a.createElement("div",{className:"".concat(null!=a?a:""," Island"),style:il({"--padding":r},i),ref:t},n)})),cl=(n(46),function(e){var t=e.children,n=e.gap,r=e.align,a=e.justifyContent,i=e.className;return o.a.createElement("div",{className:"Stack Stack_horizontal ".concat(i||""),style:{"--gap":n,alignItems:r,justifyContent:a}},t)}),ul=function(e){var t=e.children,n=e.gap,r=e.align,a=e.justifyContent,i=e.className;return o.a.createElement("div",{className:"Stack Stack_vertical ".concat(i||""),style:{"--gap":n,justifyItems:r,justifyContent:a}},t)},dl=(n(47),function(e){var t=e.children,n=e.side,r=e.className;return o.a.createElement("div",{className:"FixedSideContainer FixedSideContainer_side_".concat(n," ").concat(r)},t)}),pl=(n(48),function(e){var t=e.children,n=e.className,r=e.mobile,a="UserList";return n&&(a+=" ".concat(n)),r&&(a+=" UserList_mobile"),o.a.createElement("div",{className:a},t)}),hl={CHECKED:o.a.createElement("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("path",{d:"M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"})),UNCHECKED:o.a.createElement("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",className:"unlocked-icon rtl-mirror"},o.a.createElement("path",{d:"M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"}))},fl=function(e){var t="ToolIcon_size_".concat(e.size||"m");return o.a.createElement("label",{className:"ToolIcon ToolIcon__lock ToolIcon_type_floating ".concat(t," zen-mode-visibility ").concat(e.zenModeEnabled&&"zen-mode-visibility--hidden"),title:"".concat(e.title," — Q")},o.a.createElement("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,id:e.id,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),o.a.createElement("div",{className:"ToolIcon__icon"},e.checked?hl.CHECKED:hl.UNCHECKED))},ml=(n(49),n(50),function(e){var t,n=gl();return Object(oi.createPortal)(o.a.createElement("div",{className:"Modal ".concat(null!==(t=e.className)&&void 0!==t?t:""),role:"dialog","aria-modal":"true",onKeyDown:function(t){t.key===Hr&&(t.nativeEvent.stopImmediatePropagation(),e.onCloseRequest())},"aria-labelledby":e.labelledBy},o.a.createElement("div",{className:"Modal__background",onClick:e.onCloseRequest}),o.a.createElement("div",{className:"Modal__content",style:{"--max-width":"".concat(e.maxWidth,"px"),maxHeight:"100%",overflowY:"scroll"}},e.children)),n)}),gl=function(){var e=Object(r.useState)((function(){var e=document.createElement("div");return document.body.appendChild(e),e}))[0];return Object(r.useEffect)((function(){return function(){document.body.removeChild(e)}}),[e]),e},yl=(n(51),function(e){var t,n=Object(r.useRef)(null);Object(r.useEffect)((function(){var e=a();e.length>0&&(e[1]||e[0]).focus()}),[]),Object(r.useEffect)((function(){if(n.current){var e=function(e){if(e.key===Vr){var t=a(),n=document.activeElement,r=t.findIndex((function(e){return e===n}));0===r&&e.shiftKey?(t[t.length-1].focus(),e.preventDefault()):r!==t.length-1||e.shiftKey||(t[0].focus(),e.preventDefault())}},t=n.current;return t.addEventListener("keydown",e),function(){return t.removeEventListener("keydown",e)}}}),[]);var a=function(){var e,t=null===(e=n.current)||void 0===e?void 0:e.querySelectorAll("button, a, input, select, textarea, div[tabindex]");return t?Array.from(t):[]};return o.a.createElement(ml,{className:"".concat(null!==(t=e.className)&&void 0!==t?t:""," Dialog"),labelledBy:"dialog-title",maxWidth:e.maxWidth,onCloseRequest:e.onCloseRequest},o.a.createElement(ll,{padding:4,ref:n},o.a.createElement("h2",{id:"dialog-title",className:"Dialog__title"},o.a.createElement("span",{className:"Dialog__titleContent"},e.title),o.a.createElement("button",{className:"Modal__close",onClick:e.onCloseRequest,"aria-label":zt("buttons.close")},ys()?Fi:Ni)),e.children))}),vl=[1,2,3],bl=vl.includes(devicePixelRatio)?devicePixelRatio:1,kl=function(e){var t=e.elements,n=e.appState,a=e.exportPadding,i=void 0===a?10:a,s=e.actionManager,l=e.onExportToPng,c=e.onExportToSvg,u=e.onExportToClipboard,d=e.onExportToBackend,p=Dt(t,n),h=Object(r.useState)(bl),f=h[0],m=h[1],g=Object(r.useState)(p),y=g[0],v=g[1],b=Object(r.useRef)(null),k=n.exportBackground,w=n.viewBackgroundColor,S=n.shouldAddWatermark,E=y?Lt(t,n):t;return Object(r.useEffect)((function(){v(p)}),[p]),Object(r.useEffect)((function(){var e=b.current,t=Ao(E,n,{exportBackground:k,viewBackgroundColor:w,exportPadding:i,scale:f,shouldAddWatermark:S});return null==e||e.appendChild(t),function(){null==e||e.removeChild(t)}}),[n,E,k,i,w,f,S]),o.a.createElement("div",{className:"ExportDialog"},o.a.createElement("div",{className:"ExportDialog__preview",ref:b}),o.a.createElement(ul,{gap:2,align:"center"},o.a.createElement("div",{className:"ExportDialog__actions"},o.a.createElement(cl,{gap:2},o.a.createElement(pi,{type:"button",label:"PNG",title:zt("buttons.exportToPng"),"aria-label":zt("buttons.exportToPng"),onClick:function(){return l(E,f)}}),o.a.createElement(pi,{type:"button",label:"SVG",title:zt("buttons.exportToSvg"),"aria-label":zt("buttons.exportToSvg"),onClick:function(){return c(E,f)}}),na&&o.a.createElement(pi,{type:"button",icon:bi,title:zt("buttons.copyPngToClipboard"),"aria-label":zt("buttons.copyPngToClipboard"),onClick:function(){return u(E,f)}}),o.a.createElement(pi,{type:"button",icon:mi,title:zt("buttons.getShareableLink"),"aria-label":zt("buttons.getShareableLink"),onClick:function(){return d(E)}})),o.a.createElement("div",{className:"ExportDialog__name"},s.renderAction("changeProjectName")),o.a.createElement(cl,{gap:2},vl.map((function(e){return o.a.createElement(pi,{key:e,size:"s",type:"radio",icon:"x".concat(e),name:"export-canvas-scale","aria-label":"Scale ".concat(e," x"),id:"export-canvas-scale",checked:e===f,onChange:function(){return m(e)}})})))),s.renderAction("changeExportBackground"),p&&o.a.createElement("div",null,o.a.createElement("label",null,o.a.createElement("input",{type:"checkbox",checked:y,onChange:function(e){return v(e.currentTarget.checked)}})," ",zt("labels.onlySelected"))),s.renderAction("changeShouldAddWatermark")))},wl=function(e){var t=e.elements,n=e.appState,a=e.exportPadding,i=void 0===a?10:a,s=e.actionManager,l=e.onExportToPng,c=e.onExportToSvg,u=e.onExportToClipboard,d=e.onExportToBackend,p=Object(r.useState)(!1),h=p[0],f=p[1],m=Object(r.useRef)(null),g=o.a.useCallback((function(){var e;f(!1),null===(e=m.current)||void 0===e||e.focus()}),[]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(pi,{onClick:function(){return f(!0)},icon:Si,type:"button","aria-label":zt("buttons.export"),showAriaLabel:ys(),title:zt("buttons.export"),ref:m}),h&&o.a.createElement(yl,{maxWidth:800,onCloseRequest:g,title:zt("buttons.export")},o.a.createElement(kl,{elements:t,appState:n,exportPadding:i,actionManager:s,onExportToPng:l,onExportToSvg:c,onExportToClipboard:u,onExportToBackend:d,onCloseRequest:g})))},Sl=function(e){var t=e.onChange,n=e.languages,r=void 0===n?Ct:n,a=e.currentLanguage,i=void 0===a?At().lng:a,s=e.floating;return o.a.createElement(o.a.Fragment,null,o.a.createElement("select",{className:"dropdown-select dropdown-select__language".concat(s?" dropdown-select--floating":""),onChange:function(e){var n=e.target;return t(n.value)},value:i,"aria-label":zt("buttons.selectLanguage")},r.map((function(e){return o.a.createElement("option",{key:e.lng,value:e.lng},e.label)}))))},El=(n(52),function(e){var t=function(e){var t=e.appState,n=e.elements,r=t.elementType,o=t.isResizing,a=t.isRotating,i=t.lastPointerDownWith,s=null!==t.multiElement;if("arrow"===r||"line"===r)return zt(s?"hints.linearElementMulti":"hints.linearElement");if("draw"===r)return zt("hints.freeDraw");var l=Lt(n,t);if(o&&"mouse"===i&&1===l.length){var c=l[0];return ve(c)&&c.points.length>2?null:zt("hints.resize")}return a&&"mouse"===i?zt("hints.rotate"):1===l.length&&ve(l[0])?t.editingLinearElement?t.editingLinearElement.activePointIndex?zt("hints.lineEditor_pointSelected"):zt("hints.lineEditor_nothingSelected"):zt("hints.lineEditor_info"):null}({appState:e.appState,elements:e.elements});return t?(t=sn(t),o.a.createElement("div",{className:"HintViewer"},o.a.createElement("span",null,t))):null}),Cl=function(e){var t=e.appState,n=e.elements,r=e.renderAction,a=e.elementType,i=function(e,t){return t.editingElement?[t.editingElement]:Lt(e,t)}(co(n),t),s=Boolean(t.editingElement),l=ys();return o.a.createElement("div",{className:"panelColumn"},r("changeStrokeColor"),(Bt(a)||i.some((function(e){return Bt(e.type)})))&&o.a.createElement(o.a.Fragment,null,r("changeBackgroundColor"),r("changeFillStyle")),(Rt(a)||i.some((function(e){return Rt(e.type)})))&&o.a.createElement(o.a.Fragment,null,r("changeStrokeWidth"),r("changeStrokeStyle"),r("changeSloppiness")),(Ht(a)||i.some((function(e){return Ht(e.type)})))&&o.a.createElement(o.a.Fragment,null,r("changeFontSize"),r("changeFontFamily"),r("changeTextAlign")),r("changeOpacity"),o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.layers")),o.a.createElement("div",{className:"buttonList"},r("sendToBack"),r("sendBackward"),r("bringToFront"),r("bringForward"))),!l&&!s&&i.length>0&&o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.actions")),o.a.createElement("div",{className:"buttonList"},r("duplicateSelection"),r("deleteSelectedElements"))))},xl=function(e){var t=e.elementType,n=e.setAppState;return o.a.createElement(o.a.Fragment,null,Xa.map((function(e,r){var a=e.value,i=e.icon,s=e.key,l=zt("toolBar.".concat(a)),c="".concat(Zt(s)," ").concat(zt("shortcutsDialog.or")," ").concat(r+1);return o.a.createElement(pi,{key:a,type:"radio",icon:i,checked:t===a,name:"editor-current-shape",title:"".concat(Zt(l)," — ").concat(c),keyBindingLabel:"".concat(r+1),"aria-label":Zt(l),"aria-keyshortcuts":"".concat(s," ").concat(r+1),"data-testid":a,onChange:function(){n({elementType:a,multiElement:null,selectedElementIds:{}}),on(a),n({})}})})))},_l=function(e){var t=e.renderAction,n=e.zoom;return o.a.createElement(ul,{gap:1},o.a.createElement(cl,{gap:1,align:"center"},t("zoomIn"),t("zoomOut"),t("resetZoom"),o.a.createElement("div",{style:{marginInlineStart:4}},(100*n).toFixed(0),"%")))};function Tl(){return(Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ol=function(e){var t=e.heading,n=e.children,r=Pl(e,["heading","children"]),a=o.a.createElement("h2",{className:"visually-hidden",id:"".concat(t,"-title")},zt("headings.".concat(t)));return o.a.createElement("section",Tl({},r,{"aria-labelledby":"".concat(t,"-title")}),"function"==typeof n?n(a):o.a.createElement(o.a.Fragment,null,a,n))},Al=(n(53),function(e){var t=e.activeRoomLink,n=e.username,a=e.onUsernameChange,i=e.onRoomCreate,s=e.onRoomDestroy,l=e.onPressingEnter,c=Object(r.useRef)(null);return o.a.createElement("div",{className:"RoomDialog-modal"},!t&&o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,zt("roomDialog.desc_intro")),o.a.createElement("p",null,"🔒 ".concat(zt("roomDialog.desc_privacy"))),o.a.createElement("div",{className:"RoomDialog-sessionStartButtonContainer"},o.a.createElement(pi,{className:"RoomDialog-startSession",type:"button",icon:Di,title:zt("roomDialog.button_startSession"),"aria-label":zt("roomDialog.button_startSession"),showAriaLabel:!0,onClick:i}))),t&&o.a.createElement(o.a.Fragment,null,o.a.createElement("p",null,zt("roomDialog.desc_inProgressIntro")),o.a.createElement("p",null,zt("roomDialog.desc_shareLink")),o.a.createElement("div",{className:"RoomDialog-linkContainer"},o.a.createElement(pi,{type:"button",icon:bi,title:zt("labels.copy"),"aria-label":zt("labels.copy"),onClick:function(){la(t),c.current&&c.current.select()}}),o.a.createElement("input",{value:t,readOnly:!0,className:"RoomDialog-link",ref:c,onPointerDown:function(e){e.target!==document.activeElement&&(e.preventDefault(),e.target.select())}})),o.a.createElement("div",{className:"RoomDialog-usernameContainer"},o.a.createElement("label",{className:"RoomDialog-usernameLabel",htmlFor:"username"},zt("labels.yourName")),o.a.createElement("input",{id:"username",value:n||"",className:"RoomDialog-username TextInput",onChange:function(e){return a(e.target.value)},onKeyPress:function(e){return"Enter"===e.key&&l()}})),o.a.createElement("p",null,"🔒 ".concat(zt("roomDialog.desc_privacy"))),o.a.createElement("p",null,o.a.createElement("span",{role:"img","aria-hidden":"true"},"⚠️")," ",zt("roomDialog.desc_persistenceWarning")),o.a.createElement("p",null,zt("roomDialog.desc_exitSession")),o.a.createElement("div",{className:"RoomDialog-sessionStartButtonContainer"},o.a.createElement(pi,{className:"RoomDialog-stopSession",type:"button",icon:Li,title:zt("roomDialog.button_stopSession"),"aria-label":zt("roomDialog.button_stopSession"),showAriaLabel:!0,onClick:s}))))}),Ml=function(e){var t=e.isCollaborating,n=e.collaboratorCount,a=e.username,i=e.onUsernameChange,s=e.onRoomCreate,l=e.onRoomDestroy,c=Object(r.useState)(!1),u=c[0],d=c[1],p=Object(r.useState)(""),h=p[0],f=p[1],m=Object(r.useRef)(null),g=o.a.useCallback((function(){var e;d(!1),null===(e=m.current)||void 0===e||e.focus()}),[]);return Object(r.useEffect)((function(){f(t?window.location.href:"")}),[t]),o.a.createElement(o.a.Fragment,null,o.a.createElement(pi,{className:"RoomDialog-modalButton ".concat(t?"is-collaborating":""),onClick:function(){return d(!0)},icon:ji,type:"button",title:zt("buttons.roomDialog"),"aria-label":zt("buttons.roomDialog"),showAriaLabel:ys(),ref:m},n>0&&o.a.createElement("div",{className:"RoomDialog-modalButton-collaborators"},n)),u&&o.a.createElement(yl,{maxWidth:800,onCloseRequest:g,title:zt("labels.createRoom")},o.a.createElement(Al,{activeRoomLink:h,username:a,onUsernameChange:i,onRoomCreate:s,onRoomDestroy:l,onPressingEnter:g})))},zl=function(){return o.a.createElement("div",{className:"LoadingMessage"},o.a.createElement("span",null,"Loading scene..."))},Il=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ll(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Nl=function(e){var t=e.appState,n=e.elements,r=e.actionManager,a=e.exportButton,i=e.setAppState,s=e.onRoomCreate,l=e.onUsernameChange,c=e.onRoomDestroy,u=e.onLockToggle,d=e.canvas;return o.a.createElement(o.a.Fragment,null,t.isLoading&&o.a.createElement(zl,null),o.a.createElement(dl,{side:"top"},o.a.createElement(Ol,{heading:"shapes"},(function(e){return o.a.createElement(ul,{gap:4,align:"center"},o.a.createElement(cl,{gap:1},o.a.createElement(ll,{padding:1},e,o.a.createElement(cl,{gap:1},o.a.createElement(xl,{elementType:t.elementType,setAppState:i}))),o.a.createElement(fl,{checked:t.elementLocked,onChange:u,title:zt("toolBar.lock")})))})),o.a.createElement(El,{appState:t,elements:n})),o.a.createElement("div",{className:"App-bottom-bar",style:{marginBottom:14,marginLeft:14,marginRight:14}},o.a.createElement(ll,{padding:3},"canvas"===t.openMenu?o.a.createElement(Ol,{className:"App-mobile-menu",heading:"canvasActions"},o.a.createElement("div",{className:"panelColumn"},o.a.createElement(ul,{gap:4},r.renderAction("loadScene"),r.renderAction("saveScene"),r.renderAction("saveAsScene"),a,r.renderAction("clearCanvas"),o.a.createElement(Ml,{isCollaborating:t.isCollaborating,collaboratorCount:t.collaborators.size,username:t.username,onUsernameChange:l,onRoomCreate:s,onRoomDestroy:c}),r.renderAction("changeViewBackgroundColor"),o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.language")),o.a.createElement(Sl,{onChange:function(){var e,t=(e=function(e){return Il(this,(function(t){switch(t.label){case 0:return[4,Pt(e)];case 1:return t.sent(),i({}),[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ll(a,r,o,i,s,"next",e)}function s(e){Ll(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}()})),o.a.createElement("fieldset",null,o.a.createElement("legend",null,zt("labels.collaborators")),o.a.createElement(pl,{mobile:!0},Array.from(t.collaborators).filter((function(e){e[0];var t=e[1];return 0!==Object.keys(t).length})).map((function(e){var t=e[0];e[1];return o.a.createElement(o.a.Fragment,{key:t},r.renderAction("goToCollaborator",t))}))))))):"shape"===t.openMenu&&io(t,n)?o.a.createElement(Ol,{className:"App-mobile-menu",heading:"selectedShapeActions"},o.a.createElement(Cl,{appState:t,elements:n,renderAction:r.renderAction,elementType:t.elementType})):null,o.a.createElement("footer",{className:"App-toolbar"},o.a.createElement("div",{className:"App-toolbar-content"},r.renderAction("toggleCanvasMenu"),r.renderAction("toggleEditMenu"),r.renderAction("undo"),r.renderAction("redo"),r.renderAction(t.multiElement?"finalize":"duplicateSelection"),r.renderAction("deleteSelectedElements")),t.scrolledOutside&&o.a.createElement("button",{className:"scroll-back-to-content",onClick:function(){i(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach((function(t){Dl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ft(n,t,d)))}},zt("buttons.scrollBackToContent"))))))},Fl=function(e){var t=e.message,n=e.onClose,a=Object(r.useState)(!!t),i=a[0],s=a[1],l=o.a.useCallback((function(){s(!1),n&&n()}),[n]);return o.a.createElement(o.a.Fragment,null,i&&o.a.createElement(yl,{maxWidth:500,onCloseRequest:l,title:zt("errorDialog.title")},o.a.createElement("div",null,t)))};function Bl(){return(Bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Rl=function(e){return o.a.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"}},e.children)},Hl=function(e){return o.a.createElement("div",{style:{width:"49%"}},e.children)},Gl=function(e){return o.a.createElement("div",{style:{border:"1px solid ".concat(po.gray[4]),marginBottom:"16px"}},o.a.createElement("h3",{style:{margin:"0",padding:"4px",backgroundColor:po.gray[2],textAlign:"center"}},e.caption),e.children)},Wl=function(e){var t="rtl"===document.documentElement.getAttribute("dir");return o.a.createElement("div",{style:{borderTop:"1px solid ".concat(po.gray[4])}},o.a.createElement("div",{style:{display:"flex",margin:"0",padding:"4px 8px",alignItems:"center"}},o.a.createElement("div",{style:{lineHeight:1.4}},e.label),o.a.createElement("div",{style:{display:"flex",flex:"0 0 auto",justifyContent:"flex-end",marginLeft:t?"0em":"auto",marginRight:t?"auto":"0em",minWidth:"30%"}},e.shortcuts.map((function(t,n){return o.a.createElement(o.a.Fragment,{key:n},o.a.createElement(Ul,null,t),e.isOr&&n!==e.shortcuts.length-1&&zt("shortcutsDialog.or"))})))))};Wl.defaultProps={isOr:!0};var Ul=function(e){return o.a.createElement("span",Bl({style:{wordBreak:"keep-all",border:"1px solid ".concat(po.gray[4]),padding:"2px 8px",margin:"auto 4px",backgroundColor:po.gray[2],borderRadius:"2px",fontSize:"0.8em",minHeight:"26px",boxSizing:"border-box",display:"flex",alignItems:"center"}},e))},Vl=function(){return o.a.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-evenly",borderTop:"1px solid ".concat(po.gray[4]),marginTop:8,paddingTop:16}},o.a.createElement("a",{href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer"},zt("shortcutsDialog.blog")),o.a.createElement("a",{href:"https://howto.excalidraw.com",target:"_blank",rel:"noopener noreferrer"},zt("shortcutsDialog.howto")),o.a.createElement("a",{href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer"},zt("shortcutsDialog.github")))},Kl=function(e){var t=e.onClose,n=o.a.useCallback((function(){t&&t()}),[t]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(yl,{maxWidth:900,onCloseRequest:n,title:zt("shortcutsDialog.title")},o.a.createElement(Rl,null,o.a.createElement(Hl,null,o.a.createElement(Gl,{caption:zt("shortcutsDialog.shapes")},o.a.createElement(Wl,{label:zt("toolBar.selection"),shortcuts:["S","1"]}),o.a.createElement(Wl,{label:zt("toolBar.rectangle"),shortcuts:["R","2"]}),o.a.createElement(Wl,{label:zt("toolBar.diamond"),shortcuts:["D","3"]}),o.a.createElement(Wl,{label:zt("toolBar.ellipse"),shortcuts:["E","4"]}),o.a.createElement(Wl,{label:zt("toolBar.arrow"),shortcuts:["A","5"]}),o.a.createElement(Wl,{label:zt("toolBar.line"),shortcuts:["L","6"]}),o.a.createElement(Wl,{label:zt("toolBar.draw"),shortcuts:["X","7"]}),o.a.createElement(Wl,{label:zt("toolBar.text"),shortcuts:["T","8"]}),o.a.createElement(Wl,{label:zt("shortcutsDialog.textNewLine"),shortcuts:[sn("Enter"),sn("Shift+Enter")]}),o.a.createElement(Wl,{label:zt("shortcutsDialog.textFinish"),shortcuts:[sn("Esc"),sn("CtrlOrCmd+Enter")]}),o.a.createElement(Wl,{label:zt("shortcutsDialog.curvedArrow"),shortcuts:["A",zt("shortcutsDialog.click"),zt("shortcutsDialog.click"),zt("shortcutsDialog.click")],isOr:!1}),o.a.createElement(Wl,{label:zt("shortcutsDialog.curvedLine"),shortcuts:["L",zt("shortcutsDialog.click"),zt("shortcutsDialog.click"),zt("shortcutsDialog.click")],isOr:!1}),o.a.createElement(Wl,{label:zt("toolBar.lock"),shortcuts:["Q"]})),o.a.createElement(Gl,{caption:zt("shortcutsDialog.view")},o.a.createElement(Wl,{label:zt("buttons.zoomIn"),shortcuts:[sn("CtrlOrCmd++")]}),o.a.createElement(Wl,{label:zt("buttons.zoomOut"),shortcuts:[sn("CtrlOrCmd+-")]}),o.a.createElement(Wl,{label:zt("buttons.resetZoom"),shortcuts:[sn("CtrlOrCmd+0")]}),o.a.createElement(Wl,{label:zt("shortcutsDialog.zoomToFit"),shortcuts:["Shift+1"]}),o.a.createElement(Wl,{label:zt("buttons.toggleFullScreen"),shortcuts:["F"]}),o.a.createElement(Wl,{label:zt("buttons.toggleZenMode"),shortcuts:[sn("Alt+Z")]}),o.a.createElement(Wl,{label:zt("labels.toggleGridMode"),shortcuts:[sn("CtrlOrCmd+'")]}))),o.a.createElement(Hl,null,o.a.createElement(Gl,{caption:zt("shortcutsDialog.editor")},o.a.createElement(Wl,{label:zt("labels.selectAll"),shortcuts:[sn("CtrlOrCmd+A")]}),o.a.createElement(Wl,{label:zt("labels.moveCanvas"),shortcuts:[sn("Space+".concat(zt("shortcutsDialog.drag"))),sn("Wheel+".concat(zt("shortcutsDialog.drag")))],isOr:!0}),o.a.createElement(Wl,{label:zt("labels.copy"),shortcuts:[sn("CtrlOrCmd+C")]}),o.a.createElement(Wl,{label:zt("labels.paste"),shortcuts:[sn("CtrlOrCmd+V")]}),o.a.createElement(Wl,{label:zt("labels.copyAsPng"),shortcuts:[sn("Shift+Alt+C")]}),o.a.createElement(Wl,{label:zt("labels.copyStyles"),shortcuts:[sn("CtrlOrCmd+Shift+C")]}),o.a.createElement(Wl,{label:zt("labels.pasteStyles"),shortcuts:[sn("CtrlOrCmd+Shift+V")]}),o.a.createElement(Wl,{label:zt("labels.delete"),shortcuts:[sn("Del")]}),o.a.createElement(Wl,{label:zt("labels.sendToBack"),shortcuts:[sn(Dr?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")]}),o.a.createElement(Wl,{label:zt("labels.bringToFront"),shortcuts:[sn(Dr?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")]}),o.a.createElement(Wl,{label:zt("labels.sendBackward"),shortcuts:[sn("CtrlOrCmd+[")]}),o.a.createElement(Wl,{label:zt("labels.bringForward"),shortcuts:[sn("CtrlOrCmd+]")]}),o.a.createElement(Wl,{label:zt("labels.duplicateSelection"),shortcuts:[sn("CtrlOrCmd+D"),sn("Alt+".concat(zt("shortcutsDialog.drag")))]}),o.a.createElement(Wl,{label:zt("buttons.undo"),shortcuts:[sn("CtrlOrCmd+Z")]}),o.a.createElement(Wl,{label:zt("buttons.redo"),shortcuts:[sn("CtrlOrCmd+Shift+Z")]}),o.a.createElement(Wl,{label:zt("labels.group"),shortcuts:[sn("CtrlOrCmd+G")]}),o.a.createElement(Wl,{label:zt("labels.ungroup"),shortcuts:[sn("CtrlOrCmd+Shift+G")]})))),o.a.createElement(Vl,null)))},Yl=o.a.memo((function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 250 250",className:"github-corner rtl-mirror"},o.a.createElement("a",{href:"https://github.com/excalidraw/excalidraw",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub repository"},o.a.createElement("path",{d:"M0 0l115 115h15l12 27 108 108V0z",fill:po.gray[6]}),o.a.createElement("path",{className:"octo-arm",d:"M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16",style:{transformOrigin:"130px 106px"},fill:po.white}),o.a.createElement("path",{className:"octo-body",d:"M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z",fill:po.white})))})),ql=(n(54),function(e){var t=e.children,n=e.label;return o.a.createElement("div",{className:"Tooltip"},o.a.createElement("span",{className:"Tooltip__label"},n),t)}),Zl=(n(55),function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}});function Xl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jl(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tc=o.a.memo((function(e){var t,n=e.actionManager,r=e.appState,a=e.setAppState,i=e.canvas,s=e.elements,l=e.onRoomCreate,c=e.onUsernameChange,u=e.onRoomDestroy,d=e.onLockToggle,p=e.zenModeEnabled,h=e.toggleZenMode,f=ys(),m=function(){var e=function(e){return function(t,n){i&&Ua(e,t,r,i,{exportBackground:r.exportBackground,name:r.name,viewBackgroundColor:r.viewBackgroundColor,scale:n,shouldAddWatermark:r.shouldAddWatermark})}};return o.a.createElement(wl,{elements:s,appState:r,actionManager:n,onExportToPng:e("png"),onExportToSvg:e("svg"),onExportToClipboard:e("clipboard"),onExportToBackend:function(e){i&&Ua("backend",e,Ql(Ql({},r),{},{selectedElementIds:{}}),i,r)}})};return f?o.a.createElement(Nl,{appState:r,elements:s,actionManager:n,exportButton:m(),setAppState:a,onUsernameChange:c,onRoomCreate:l,onRoomDestroy:u,onLockToggle:d,canvas:i}):o.a.createElement("div",{className:"layer-ui__wrapper"},r.isLoading&&o.a.createElement(zl,null),r.errorMessage&&o.a.createElement(Fl,{message:r.errorMessage,onClose:function(){return a({errorMessage:null})}}),r.showShortcutsDialog&&o.a.createElement(Kl,{onClose:function(){return a({showShortcutsDialog:null})}}),(t=io(r,s),o.a.createElement(dl,{side:"top"},o.a.createElement(El,{appState:r,elements:s}),o.a.createElement("div",{className:"App-menu App-menu_top"},o.a.createElement(ul,{gap:4,className:p&&"disable-pointerEvents"},o.a.createElement(Ol,{heading:"canvasActions",className:"zen-mode-transition ".concat(p&&"transition-left")},o.a.createElement(ll,{padding:4,style:{zIndex:1}},o.a.createElement(ul,{gap:4},o.a.createElement(cl,{gap:1,justifyContent:"space-between"},n.renderAction("loadScene"),n.renderAction("saveScene"),n.renderAction("saveAsScene"),m(),n.renderAction("clearCanvas"),o.a.createElement(Ml,{isCollaborating:r.isCollaborating,collaboratorCount:r.collaborators.size,username:r.username,onUsernameChange:c,onRoomCreate:l,onRoomDestroy:u})),n.renderAction("changeViewBackgroundColor")))),t&&o.a.createElement(Ol,{heading:"selectedShapeActions",className:"zen-mode-transition ".concat(p&&"transition-left")},o.a.createElement(ll,{className:Me,padding:4},o.a.createElement(Cl,{appState:r,elements:s,renderAction:n.renderAction,elementType:r.elementType})))),o.a.createElement(Ol,{heading:"shapes"},(function(e){return o.a.createElement(ul,{gap:4,align:"start"},o.a.createElement(cl,{gap:1},o.a.createElement(ll,{padding:1,className:p&&"zen-mode"},e,o.a.createElement(cl,{gap:1},o.a.createElement(xl,{elementType:r.elementType,setAppState:a}))),o.a.createElement(fl,{zenModeEnabled:p,checked:r.elementLocked,onChange:d,title:zt("toolBar.lock")})))})),o.a.createElement(pl,{className:"zen-mode-transition ".concat(p&&"transition-right")},Array.from(r.collaborators).filter((function(e){e[0];var t=e[1];return 0!==Object.keys(t).length})).map((function(e){var t=e[0],r=e[1];return o.a.createElement(ql,{label:r.username||"Unknown user",key:t},n.renderAction("goToCollaborator",t))})))))),o.a.createElement("div",{className:"App-menu App-menu_bottom zen-mode-transition ".concat(p&&"App-menu_bottom--transition-left")},o.a.createElement(ul,{gap:2},o.a.createElement(Ol,{heading:"canvasActions"},o.a.createElement(ll,{padding:1},o.a.createElement(_l,{renderAction:n.renderAction,zoom:r.zoom})),o.a.createElement("a",{className:"encrypted-icon tooltip zen-mode-visibility ".concat(p?"zen-mode-visibility--hidden":""),href:"https://blog.excalidraw.com/end-to-end-encryption/",target:"_blank",rel:"noopener noreferrer"},o.a.createElement("span",{className:"tooltip-text",dir:"auto"},zt("encrypted.tooltip")),Ri)))),o.a.createElement("aside",{className:"layer-ui__wrapper__github-corner zen-mode-transition ".concat(p&&"transition-right")},o.a.createElement(Yl,null)),o.a.createElement("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer"},o.a.createElement("div",{className:"zen-mode-transition ".concat(p&&"transition-right disable-pointerEvents")},o.a.createElement(Sl,{onChange:function(){var e,t=(e=function(e){return Zl(this,(function(t){switch(t.label){case 0:return[4,Pt(e)];case 1:return t.sent(),a({}),[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Jl(a,r,o,i,s,"next",e)}function s(e){Jl(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),languages:Ct,floating:!0}),n.renderAction("toggleShortcuts")),o.a.createElement("button",{className:"disable-zen-mode ".concat(p&&"disable-zen-mode--visible"),onClick:h},zt("buttons.exitZenMode")),r.scrolledOutside&&o.a.createElement("button",{className:"scroll-back-to-content",onClick:function(){a(Ql({},Ft(s,r,i)))}},zt("buttons.scrollBackToContent"))))}),(function(e,t){var n=function(e){e.draggingElement,e.resizingElement,e.multiElement,e.editingElement,e.isResizing,e.cursorX,e.cursorY;return Xl(e,["draggingElement","resizingElement","multiElement","editingElement","isResizing","cursorX","cursorY"])},r=n(e.appState),o=n(t.appState),a=Object.keys(r);return e.lng===t.lng&&e.elements===t.elements&&a.every((function(e){return r[e]===o[e]}))})),nc=n(38),rc=n.n(nc),oc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ac=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},ic=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function sc(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function lc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){sc(a,r,o,i,s,"next",e)}function s(e){sc(a,r,o,i,s,"throw",e)}i(void 0)}))}}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach((function(t){dc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pc=function(e){return function(t){Object(oi.unstable_batchedUpdates)(e,t)}},hc=new ri,fc=!1,mc=0,gc=0,yc=0,vc=!1,bc=!1,kc=!1,wc={horizontal:null,vertical:null},Sc=null,Ec={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null},Cc=function(e){function t(t){var n,r=this;r=e.call(this,t)||this,n=r,xc.call(r);var a,i=ho(),s=t.width,l=t.height,c=t.options,u=c.zenModeEnabled,d=c.viewBackgroundColor,p=t.user;return r.state=uc(uc({},i),{},{width:s,height:l,zenModeEnabled:u,viewBackgroundColor:d,username:p.name||""}),r.actionManager=new di(r.syncActionResult,(function(){return n.state}),(function(){return Vt.getElementsIncludingDeleted()})),r.actionManager.registerAll(Hi),r.actionManager.registerAction((a=hc,{name:"undo",perform:function(e,t){return rl(e,t,(function(){return a.undoOnce()}))},keyTest:ol(!1),PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:Ti,"aria-label":zt("buttons.undo"),onClick:t})},commitToHistory:function(){return!1}})),r.actionManager.registerAction(function(e){return{name:"redo",perform:function(t,n){return rl(t,n,(function(){return e.redoOnce()}))},keyTest:ol(!0),PanelComponent:function(e){var t=e.updateData;return o.a.createElement(pi,{type:"button",icon:Pi,"aria-label":zt("buttons.redo"),onClick:t})},commitToHistory:function(){return!1}}}(hc)),r.excalidrawRef=o.a.createRef(),r.parentDOMLeft=r.parentDOMTop=0,r}return oc(t,e),t.prototype.render=function(){var e=this,t=this.state,n=t.zenModeEnabled,r=t.width,a=t.height,i=this.props.onUsernameChange,s=window.devicePixelRatio,l=r*s,c=a*s;return o.a.createElement("div",{className:"excalidraw",ref:this.excalidrawRef,style:{width:r,height:a,top:this.parentDOMTop,left:this.parentDOMLeft}},o.a.createElement(tc,{canvas:this.canvas,appState:this.state,setAppState:this.setAppState,actionManager:this.actionManager,elements:Vt.getElements(),onRoomCreate:this.openPortal,onRoomDestroy:this.closePortal,onUsernameChange:function(t){i&&i(t),e.setState({username:t})},onLockToggle:this.toggleLock,zenModeEnabled:n,toggleZenMode:this.toggleZenMode,lng:At().lng}),o.a.createElement("main",null,o.a.createElement("canvas",{id:"canvas",style:{width:r,height:a},width:l,height:c,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.removePointer,onPointerCancel:this.removePointer,onDrop:this.handleCanvasOnDrop},zt("labels.drawingCanvas"))))},t.prototype.componentDidMount=function(){var e=this;return lc((function(){return ac(this,(function(t){return"production"!==Te&&"production"!==Pe||(e.setState.bind(e),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return e.state}},setState:{configurable:!0,value:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.setState.apply(e,t)}},app:{configurable:!0,value:e}})),e.removeSceneCallback=Vt.addCallback(e.onSceneUpdated),e.addEventListeners(),e.initializeScene(),e.calculateCanvasDimensions(),[2]}))}))()},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.removeSceneCallback(),this.removeEventListeners()},t.prototype.removeEventListeners=function(){document.removeEventListener(le.COPY,this.onCopy),document.removeEventListener(le.PASTE,this.pasteFromClipboard),document.removeEventListener(le.CUT,this.onCut),document.removeEventListener(le.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(le.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(le.KEYUP,this.onKeyUp),window.removeEventListener(le.RESIZE,this.onResize,!1),window.removeEventListener(le.UNLOAD,this.onUnload,!1),window.removeEventListener(le.BLUR,this.onBlur,!1),window.removeEventListener(le.DRAG_OVER,this.disableEvent,!1),window.removeEventListener(le.DROP,this.disableEvent,!1),document.removeEventListener(le.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(le.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(le.GESTURE_END,this.onGestureEnd,!1),window.removeEventListener(le.BEFORE_UNLOAD,this.beforeUnload)},t.prototype.addEventListeners=function(){var e,t;document.addEventListener(le.COPY,this.onCopy),document.addEventListener(le.PASTE,this.pasteFromClipboard),document.addEventListener(le.CUT,this.onCut),document.addEventListener(le.KEYDOWN,this.onKeyDown,!1),document.addEventListener(le.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(le.MOUSE_MOVE,this.updateCurrentCursorPosition),window.addEventListener(le.RESIZE,this.onResize,!1),window.addEventListener(le.UNLOAD,this.onUnload,!1),window.addEventListener(le.BLUR,this.onBlur,!1),window.addEventListener(le.DRAG_OVER,this.disableEvent,!1),window.addEventListener(le.DROP,this.disableEvent,!1),null===(e=document.fonts)||void 0===e||null===(t=e.addEventListener)||void 0===t||t.call(e,"loadingdone",this.onFontLoaded),document.addEventListener(le.GESTURE_START,this.onGestureStart,!1),document.addEventListener(le.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(le.GESTURE_END,this.onGestureEnd,!1),window.addEventListener(le.BEFORE_UNLOAD,this.beforeUnload)},t.prototype.componentDidUpdate=function(e){var t,n=this,r=e.width,o=e.height,a=this.props,i=a.width,s=a.height,l=a.onChange;r===i&&o===s||(this.setState({width:i,height:s}),this.calculateCanvasDimensions()),this.state.isCollaborating&&!this.portal.socket&&this.initializeSocketClient({showLoadingState:!0}),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout((function(){n.actionManager.executeAction(Ms)}));var c={},u={},d={},p={};this.state.collaborators.forEach((function(e,t){if(e.selectedElementIds)for(var r=0,o=Object.keys(e.selectedElementIds);r<o.length;r++){var a=o[r];a in d||(d[a]=[]),d[a].push(t)}e.pointer&&(e.username&&(p[t]=e.username),u[t]=cn({sceneX:e.pointer.x,sceneY:e.pointer.y},n.state,n.canvas,window.devicePixelRatio),c[t]=e.button)}));var h=Vt.getElements(),f=_o(h.filter((function(e){return!n.state.editingElement||"text"!==n.state.editingElement.type||e.id!==n.state.editingElement.id})),this.state,this.state.selectionElement,window.devicePixelRatio,this.rc,this.canvas,{scrollX:this.state.scrollX,scrollY:this.state.scrollY,viewBackgroundColor:this.state.viewBackgroundColor,zoom:this.state.zoom,remotePointerViewportCoords:u,remotePointerButton:c,remoteSelectedElementIds:d,remotePointerUsernames:p,shouldCacheIgnoreZoom:this.state.shouldCacheIgnoreZoom},{renderOptimizations:!0}),m=f.atLeastOneVisibleElement,g=f.scrollBars;g&&(wc=g);var y="text"!==(null===(t=this.state.editingElement)||void 0===t?void 0:t.type)&&(!m&&h.length>0);this.state.scrolledOutside!==y&&this.setState({scrolledOutside:y}),l&&l(Vt.getElementsIncludingDeleted(),this.state),lo(Vt.getElementsIncludingDeleted())>this.lastBroadcastedOrReceivedSceneVersion&&(this.broadcastScene(se.UPDATE,!1),this.queueBroadcastAllElements()),hc.record(this.state,Vt.getElementsIncludingDeleted())},t.resetTapTwice=function(){fc=!1},t.prototype.addTextFromPaste=function(e){var t,n=ln({clientX:gc,clientY:yc},this.state,this.canvas,window.devicePixelRatio,{deltaX:this.parentDOMLeft,deltaY:this.parentDOMTop}),r=n.x,o=n.y,a=er({x:r,y:o,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:"top"});Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted(),[a])),this.setState({selectedElementIds:(t={},t[a.id]=!0,t)}),hc.resumeRecording()},t.prototype.setCollaborators=function(e){this.setState((function(t){for(var n=new Map,r=0,o=e;r<o.length;r++){var a=o[r];t.collaborators.has(a)?n.set(a,t.collaborators.get(a)):n.set(a,{})}return uc(uc({},t),{},{collaborators:n})}))},t.prototype.selectShapeTool=function(e){var t;vc||on(e),(t=document.activeElement)instanceof HTMLElement&&t.className.includes("ToolIcon")&&document.activeElement.blur(),"selection"!==e?this.setState({elementType:e,selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}):this.setState({elementType:e})},t.prototype.handleTextWysiwyg=function(e,t){var n=t.isExistingElement,r=void 0!==n&&n,o=this,a=function(){o.setState({draggingElement:null,editingElement:null})},i=function(t){Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted().map((function(n){return n.id===e.id&&ye(n)?tr(n,{text:t,isDeleted:!t.trim()}):n}))))};!function(e){var t=e.id,n=e.zoom,r=e.onChange,o=e.onSubmit,a=e.onCancel,i=e.getViewportCoords;function s(){var e=Vt.getElement(t);if(ye(e)){var r=i(e.x,e.y),o=r[0],a=r[1],s=e.textAlign,c=e.angle;l.value=e.text;var u=e.text.replace(/\r\n?/g,"\n").split("\n"),d=e.height/u.length;Object.assign(l.style,{font:$t(e),lineHeight:"".concat(d,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"".concat(o,"px"),top:"".concat(a,"px"),transform:oo(e.width,e.height,c,n),textAlign:s,color:e.strokeColor,opacity:e.opacity/100})}}var l=document.createElement("textarea");l.dir="auto",l.tabIndex=0,l.dataset.type="wysiwyg",l.wrap="off",Object.assign(l.style,{position:"fixed",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",whiteSpace:"pre"}),s(),r&&(l.oninput=function(){r(ro(l.value))}),l.onkeydown=function(e){if(e.key===Hr)e.preventDefault(),u();else if(e.key===Rr&&e[Ur]){if(e.preventDefault(),e.isComposing||229===e.keyCode)return;u()}else e.key!==Rr||e.altKey||e.stopPropagation()};var c=function(e){e.stopPropagation()},u=function(){l.value?o(ro(l.value)):a(),d()},d=function(){m||(m=!0,l.onblur=null,l.oninput=null,l.onkeydown=null,window.removeEventListener("resize",s),window.removeEventListener("wheel",c,!0),window.removeEventListener("pointerdown",h),window.removeEventListener("pointerup",p),window.removeEventListener("blur",u),f(),document.body.removeChild(l))},p=function(){window.removeEventListener("pointerup",p),setTimeout((function(){l.onblur=u,l.focus()}))},h=function(e){e.target instanceof HTMLElement&&e.target.closest(".".concat(Me))&&!Xt(e.target)&&(l.onblur=null,window.addEventListener("pointerup",p),window.addEventListener("blur",u))},f=Vt.addCallback((function(){s(),l.focus()})),m=!1;l.onblur=u,window.addEventListener("resize",s),window.addEventListener("pointerdown",h),window.addEventListener("wheel",c,!0),document.body.appendChild(l),l.focus(),l.select()}({id:e.id,zoom:this.state.zoom,getViewportCoords:function(e,t){var n=cn({sceneX:e,sceneY:t},o.state,o.canvas,window.devicePixelRatio);return[n.x,n.y]},onChange:pc((function(e){i(e)})),onSubmit:pc((function(t){i(t),o.setState((function(t){var n;return{selectedElementIds:uc(uc({},t.selectedElementIds),{},(n={},n[e.id]=!0,n))}})),o.state.elementLocked&&on(o.state.elementType),hc.resumeRecording(),a()})),onCancel:pc((function(){i(""),r&&hc.resumeRecording(),a()}))}),this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}),i(e.text)},t.prototype.getTextElementAtPosition=function(e,t){var n=Gt(Vt.getElements(),this.state,e,t,this.state.zoom);return n&&ye(n)&&!n.isDeleted?n:null},t.prototype.getTextWysiwygSnappedToCenterPosition=function(e,t,n,r,o){var a=function(e,t,n){for(var r=null,o=e.length-1;o>=0;--o)if(!e[o].isDeleted){var a=Ue(e[o]),i=a[0],s=a[1],l=a[2],c=a[3];if(i<t&&t<l&&s<n&&n<c){r=e[o];break}}return r}(Vt.getElementsIncludingDeleted().filter((function(e){return!ye(e)})),e,t);if(a){var i=a.x+a.width/2+this.parentDOMLeft,s=a.y+a.height/2+this.parentDOMTop;if(Math.hypot(e-i,t-s)<30){var l=cn({sceneX:i,sceneY:s},n,r,o);return{viewportX:l.x,viewportY:l.y,elementCenterX:i,elementCenterY:s}}}},t.prototype.calculateCanvasDimensions=function(){var e=this.excalidrawRef.current.parentElement;this.excalidrawRef.current.parentNode.host&&(e=this.excalidrawRef.current.parentNode.host);var t=e.getBoundingClientRect(),n=t.left,r=t.top;this.parentDOMLeft=n,this.parentDOMTop=r},t}(o.a.Component);Cc.defaultProps={width:window.innerWidth,height:window.innerHeight,options:{zenModeEnabled:!1,viewBackgroundColor:po.white},initialData:[],user:{}};var xc=function(){var e,t,r,o,a,i=this;this.canvas=null,this.rc=null,this.portal=new Za(this),this.lastBroadcastedOrReceivedSceneVersion=-1,this.broadcastedElementVersions=new Map,this.removeSceneCallback=null,this.unmounted=!1,this.state=uc(uc({},ho()),{},{isLoading:!0}),this.syncActionResult=pc((function(e){if(!i.unmounted){var t=null;e.elements&&(e.elements.forEach((function(e){var n;(null===(n=i.state.editingElement)||void 0===n?void 0:n.id)===e.id&&i.state.editingElement!==e&&uo(e)&&(t=e)})),Vt.replaceAllElements(e.elements),e.commitToHistory&&hc.resumeRecording()),(e.appState||t)&&(e.commitToHistory&&hc.resumeRecording(),i.setState((function(n){var r;return uc(uc({},e.appState),{},{editingElement:t||(null===(r=e.appState)||void 0===r?void 0:r.editingElement)||null,isCollaborating:n.isCollaborating,collaborators:n.collaborators})}),(function(){e.syncHistory&&hc.setCurrentState(i.state,Vt.getElementsIncludingDeleted())})))}})),this.onBlur=pc((function(){vc=!1;var e=i.props.onBlur;e&&e(Vt.getElementsIncludingDeleted(),i.state)})),this.onUnload=function(){i.destroySocketClient(),i.onBlur()},this.disableEvent=function(e){e.preventDefault()},this.onFontLoaded=function(){Vt.getElementsIncludingDeleted().forEach((function(e){ye(e)&&bn(e)})),i.onSceneUpdated()},this.initializeScene=lc((function(){var e,t,n,r,o,a;return ac(this,(function(s){switch(s.label){case 0:return e=new URLSearchParams(window.location.search),t=e.get("id"),n=window.location.hash.match(/^#json=([0-9]+),([a-zA-Z0-9_-]+)$/),r=Na(window.location.href),o=i.props.initialData,r?[3,7]:(a=void 0,t?[4,Va(t,o)]:[3,2]);case 1:return a=s.sent(),[3,6];case 2:return n?[4,Va(n[1],o,n[2])]:[3,4];case 3:return a=s.sent(),[3,6];case 4:return[4,Va(null,o)];case 5:a=s.sent(),s.label=6;case 6:(a=uc(uc({},a),{},{appState:uc(uc({},a.appState),i.state)}))&&i.syncActionResult(a),s.label=7;case 7:return i.state.isLoading&&i.setState({isLoading:!1}),r&&i.initializeSocketClient({showLoadingState:!0}),[2]}}))})),this.onResize=pc((function(){var e=i.props.onResize;e&&e(),Vt.getElementsIncludingDeleted().forEach((function(e){return bn(e)})),i.setState({})})),this.beforeUnload=pc((function(e){i.state.isCollaborating&&Vt.getElements().length>0&&(e.preventDefault(),e.returnValue="")})),this.queueBroadcastAllElements=rc()((function(){i.broadcastScene(se.UPDATE,!0)}),2e4),this.onCut=pc((function(e){Xt(e.target)||(i.copyAll(),i.actionManager.executeAction(Yi),e.preventDefault())})),this.onCopy=pc((function(e){Xt(e.target)||(i.copyAll(),e.preventDefault())})),this.copyAll=function(){ra(Vt.getElements(),i.state)},this.copyToClipboardAsPng=function(){var e=Vt.getElements(),t=Lt(e,i.state);Ua("clipboard",t.length?t:e,i.state,i.canvas,i.state)},this.copyToClipboardAsSvg=function(){var e=Lt(Vt.getElements(),i.state);Ua("clipboard-svg",e.length?e:Vt.getElements(),i.state,i.canvas,i.state)},this.onTapStart=function(e){if(!fc)return fc=!0,clearTimeout(mc),void(mc=window.setTimeout(Cc.resetTapTwice,300));if(fc&&1===e.touches.length){var t=e.touches[0];i.handleCanvasDoubleClick({clientX:t.clientX,clientY:t.clientY}),fc=!1,clearTimeout(mc)}e.preventDefault(),2===e.touches.length&&i.setState({selectedElementIds:{}})},this.onTapEnd=function(e){if(e.preventDefault(),e.touches.length>0){var t=i.state.previousSelectedElementIds;i.setState({previousSelectedElementIds:{},selectedElementIds:t})}},this.pasteFromClipboard=pc(function(){var e=lc((function(e){var t,n,r;return ac(this,(function(o){switch(o.label){case 0:return t=document.activeElement,n=document.elementFromPoint(gc,yc),!e||n instanceof HTMLCanvasElement&&!Xt(t)?[4,aa(i.state,gc,yc,e)]:[2];case 1:return(r=o.sent()).error?alert(r.error):r.elements?i.addElementsFromPaste(r.elements):r.text&&i.addTextFromPaste(r.text),i.selectShapeTool("selection"),null==e||e.preventDefault(),[2]}}))}));return function(t){return e.apply(this,arguments)}}()),this.addElementsFromPaste=function(e){var t=Xe(e),n=t[0],r=t[1],o=t[2],a=t[3],s=nn(n,o)/2,l=nn(r,a)/2,c=ln({clientX:gc,clientY:yc},i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),u=c.x,d=c.y,p=u-s,h=d-l,f=new Map,m=e.map((function(e){return rr(i.state.editingGroupId,f,e,{x:e.x+p-n+i.parentDOMLeft,y:e.y+h-r+i.parentDOMTop})}));Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted(),m)),hc.resumeRecording(),i.setState({selectedElementIds:m.reduce((function(e,t){return e[t.id]=!0,e}),{})})},this.setAppState=function(e){i.setState(e)},this.removePointer=function(e){Ec.pointers.delete(e.pointerId)},this.openPortal=lc((function(){var e,t,n;return ac(this,(function(r){switch(r.label){case 0:return t=(e=window.history).pushState,n=[{},"Excalidraw"],[4,Fa()];case 1:return t.apply(e,n.concat([r.sent()])),i.initializeSocketClient({showLoadingState:!1}),[2]}}))})),this.closePortal=function(){window.history.pushState({},"Excalidraw",window.location.origin),i.destroySocketClient()},this.toggleLock=function(){i.setState((function(e){return{elementLocked:!e.elementLocked,elementType:e.elementLocked?"selection":e.elementType}}))},this.toggleZenMode=function(){i.setState({zenModeEnabled:!i.state.zenModeEnabled})},this.toggleGridMode=function(){i.setState({gridSize:i.state.gridSize?null:20})},this.destroySocketClient=function(){i.setState({isCollaborating:!1,collaborators:new Map}),i.portal.close()},this.initializeSocketClient=function(){var e=lc((function(e){var t,r,o,a,s;return ac(this,(function(l){switch(l.label){case 0:return i.portal.socket?[2]:(t=Na(window.location.href))?(r=function(){i.portal.socketInitialized=!0,clearTimeout(o),i.state.isLoading&&!i.unmounted&&i.setState({isLoading:!1})},o=setTimeout(r,5e3),a=function(e,t){var n,o=(void 0===t?{}:t).scrollToContent,a=void 0!==o&&o,s=e.payload.elements;if(a&&i.setState(uc(uc({},i.state),Ft(s.filter((function(e){return!e.isDeleted})),i.state,i.canvas))),null==Vt.getElementsIncludingDeleted()||0===Vt.getElementsIncludingDeleted().length)Vt.replaceAllElements(s);else{var l=so(Vt.getElementsIncludingDeleted()),c=(n=s.reduce((function(e,t){var n,r,o;return t.id===(null===(n=i.state.editingElement)||void 0===n?void 0:n.id)||t.id===(null===(r=i.state.resizingElement)||void 0===r?void 0:r.id)||t.id===(null===(o=i.state.draggingElement)||void 0===o?void 0:o.id)||(l.hasOwnProperty(t.id)&&l[t.id].version>t.version?(e.push(l[t.id]),delete l[t.id]):l.hasOwnProperty(t.id)&&l[t.id].version===t.version&&l[t.id].versionNonce!==t.versionNonce?(l[t.id].versionNonce<t.versionNonce?e.push(l[t.id]):e.push(t),delete l[t.id]):(e.push(t),delete l[t.id])),e}),[])).concat.apply(n,Object.values(l));i.lastBroadcastedOrReceivedSceneVersion=lo(c),Vt.replaceAllElements(c)}hc.clear(),i.portal.socketInitialized||r()},[4,Promise.resolve().then(n.t.bind(null,118,7))]):[3,2];case 1:s=l.sent().default,i.portal.open(s("https://excalidraw-socket.herokuapp.com"),t[1],t[2]),i.portal.socket.on("client-broadcast",function(){var e=lc((function(e,t){var n,r,o,s,l,c,u;return ac(this,(function(d){switch(d.label){case 0:return i.portal.roomKey?[4,Ha(e,i.portal.roomKey,t)]:[2];case 1:switch((n=d.sent()).type){case"INVALID_RESPONSE":return[2];case se.INIT:i.portal.socketInitialized||a(n,{scrollToContent:!0});break;case se.UPDATE:a(n);break;case"MOUSE_LOCATION":r=n.payload,o=r.socketID,s=r.pointerCoords,l=r.button,c=r.username,u=r.selectedElementIds,i.setState((function(e){e.collaborators.has(o)||e.collaborators.set(o,{});var t=e.collaborators.get(o);return t.pointer=s,t.button=l,t.selectedElementIds=u,t.username=c,e.collaborators.set(o,t),e}))}return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}()),i.portal.socket.on("first-in-room",(function(){i.portal.socket&&i.portal.socket.off("first-in-room"),r()})),i.setState({isCollaborating:!0,isLoading:!!e.showLoadingState||i.state.isLoading}),l.label=2;case 2:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),this.broadcastMouseLocation=function(e){var t;if(null===(t=i.portal.socket)||void 0===t?void 0:t.id){var n={type:"MOUSE_LOCATION",payload:{socketID:i.portal.socket.id,pointerCoords:e.pointerCoords,button:e.button||"up",selectedElementIds:i.state.selectedElementIds,username:i.state.username}};return i.portal._broadcastSocketData(n,!0)}},this.broadcastScene=function(e,t){if(e===se.INIT&&!t)throw new Error("syncAll must be true when sending SCENE.INIT");var n=Vt.getElementsIncludingDeleted().filter((function(e){return e.isDeleted||!jn(e)}));t||(n=n.filter((function(e){return!i.broadcastedElementVersions.has(e.id)||e.version>i.broadcastedElementVersions.get(e.id)})));var r={type:e,payload:{elements:n}};i.lastBroadcastedOrReceivedSceneVersion=Math.max(i.lastBroadcastedOrReceivedSceneVersion,lo(Vt.getElementsIncludingDeleted()));for(var o=0,a=n;o<a.length;o++){var s=a[o];i.broadcastedElementVersions.set(s.id,s.version)}return i.portal._broadcastSocketData(r)},this.onSceneUpdated=function(){i.setState({})},this.updateCurrentCursorPosition=pc((function(e){gc=e.x-i.parentDOMLeft,yc=e.y-i.parentDOMTop})),this.onKeyDown=pc((function(e){if(!(e[Ur]&&e.shiftKey&&"C"===e.key||Xt(e.target)&&e.key!==Hr||Qr(e.key)&&(t=e.target,t instanceof HTMLElement&&"wysiwyg"===t.dataset.type||t instanceof HTMLBRElement||t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))){var t;if(e.key===Yr&&i.setState({showShortcutsDialog:!0}),!e[Ur]&&e.altKey&&e.keyCode===Xr&&i.toggleZenMode(),e[Ur]&&e.keyCode===Jr&&i.toggleGridMode(),"KeyC"===e.code&&e.altKey&&e.shiftKey)return i.copyToClipboardAsPng(),void e.preventDefault();if(!i.actionManager.handleKeyDown(e)){var n,r,o=(n=e.key,(null===(r=Xa.find((function(e,t){return e.key===n.toLowerCase()||n===(t+1).toString()})))||void 0===r?void 0:r.value)||"selection");if(Qr(e.key)){var a=i.state.gridSize&&(e.shiftKey?1:i.state.gridSize)||(e.shiftKey?5:1);Vt.replaceAllElements(Vt.getElementsIncludingDeleted().map((function(t){if(i.state.selectedElementIds[t.id]){var n={};return e.key===Lr?n.x=t.x-a:e.key===Nr?n.x=t.x+a:e.key===Br?n.y=t.y-a:e.key===Fr&&(n.y=t.y+a),In(t,n)}return t}))),e.preventDefault()}else if(e.key===Rr){var s=Lt(Vt.getElements(),i.state);if(1===s.length&&ve(s[0]))i.state.editingLinearElement&&i.state.editingLinearElement.elementId===s[0].id||(hc.resumeRecording(),i.setState({editingLinearElement:new Eo(s[0])}));else if(1===s.length&&!ve(s[0])){var l=s[0];return i.startTextEditing({sceneX:l.x+l.width/2,sceneY:l.y+l.height/2}),void e.preventDefault()}}else e.ctrlKey||e.altKey||e.metaKey||null!==i.state.draggingElement||(Ja.includes(e.key.toLowerCase())?i.selectShapeTool(o):"q"===e.key&&i.toggleLock());e.key===Kr&&0===Ec.pointers.size&&(vc=!0,document.documentElement.style.cursor=Se)}}})),this.onKeyUp=pc((function(e){e.key===Kr&&("selection"===i.state.elementType?rn():(on(i.state.elementType),i.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),vc=!1)})),this.onGestureStart=pc((function(e){e.preventDefault(),i.setState({selectedElementIds:{}}),Ec.initialScale=i.state.zoom})),this.onGestureChange=pc((function(e){e.preventDefault(),i.setState({zoom:Ut(Ec.initialScale*e.scale)})})),this.onGestureEnd=pc((function(e){e.preventDefault();var t=i.state.previousSelectedElementIds;i.setState({previousSelectedElementIds:{},selectedElementIds:t}),Ec.initialScale=null})),this.setElements=function(e){Vt.replaceAllElements(e)},this.startTextEditing=function(e){var t=e.sceneX,n=e.sceneY,r=e.insertAtParentCenter,o=void 0===r||r,a=i.getTextElementAtPosition(t,n),s=o&&i.getTextWysiwygSnappedToCenterPosition(t,n,i.state,i.canvas,window.devicePixelRatio),l=a||er({x:s?s.elementCenterX:t,y:s?s.elementCenterY:n,strokeColor:i.state.currentItemStrokeColor,backgroundColor:i.state.currentItemBackgroundColor,fillStyle:i.state.currentItemFillStyle,strokeWidth:i.state.currentItemStrokeWidth,strokeStyle:i.state.currentItemStrokeStyle,roughness:i.state.currentItemRoughness,opacity:i.state.currentItemOpacity,text:"",fontSize:i.state.currentItemFontSize,fontFamily:i.state.currentItemFontFamily,textAlign:s?"center":i.state.currentItemTextAlign,verticalAlign:s?"middle":"top"});i.setState({editingElement:l}),a?s&&"center"===l.textAlign||zn(l,{verticalAlign:"top"}):(Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted(),[l])),s||zn(l,{y:l.y-l.baseline/2})),i.setState({editingElement:l}),i.handleTextWysiwyg(l,{isExistingElement:!!a})},this.handleCanvasDoubleClick=function(e){if(!i.state.multiElement){var t=Lt(Vt.getElements(),i.state);if(1===t.length&&ve(t[0]))i.state.editingLinearElement&&i.state.editingLinearElement.elementId===t[0].id||(hc.resumeRecording(),i.setState({editingLinearElement:new Eo(t[0])}));else{rn();var n=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),r=n.x,o=n.y;if(Gn(i.state).length>0){var a=Vt.getElements(),s=Gt(a,i.state,r,o,i.state.zoom),l=s&&function(e,t){return e.groupIds.find((function(e){return t[e]}))}(s,i.state.selectedGroupIds);if(l)return void i.setState((function(e){var t;return Wn(uc(uc({},e),{},{editingGroupId:l,selectedElementIds:(t={},t[s.id]=!0,t),selectedGroupIds:{}}),Vt.getElements())}))}rn(),i.startTextEditing({sceneX:r,sceneY:o,insertAtParentCenter:!e.altKey})}}},this.handleCanvasPointerMove=function(e){if(i.savePointer(e.clientX,e.clientY,i.state.cursorButton),Ec.pointers.has(e.pointerId)&&Ec.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===Ec.pointers.size){var t=Js(Ec.pointers),n=t.x-Ec.lastCenter.x,r=t.y-Ec.lastCenter.y;Ec.lastCenter=t;var o=$s(Array.from(Ec.pointers.values()))/Ec.initialDistance;i.setState({scrollX:Nt(i.state.scrollX+n/i.state.zoom),scrollY:Nt(i.state.scrollY+r/i.state.zoom),zoom:Ut(Ec.initialScale*o),shouldCacheIgnoreZoom:!0}),i.resetShouldCacheIgnoreZoomDebounced()}else Ec.lastCenter=Ec.initialDistance=Ec.initialScale=null;if(!(vc||bc||kc)){var a=jt(wc,e.clientX,e.clientY),s=a.isOverHorizontalScrollBar,l=a.isOverVerticalScrollBar||s;i.state.draggingElement||i.state.multiElement||(l?rn():on(i.state.elementType));var c=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),u=c.x,d=c.y;if(i.state.editingLinearElement&&null===i.state.editingLinearElement.draggingElementPointIndex){var p=Eo.handlePointerMove(e,u,d,i.state.editingLinearElement);p!==i.state.editingLinearElement&&i.setState({editingLinearElement:p})}if(i.state.multiElement){var h=i.state.multiElement,f=h.x,m=h.y,g=h.points,y=h.lastCommittedPoint,v=g[g.length-1];return on(i.state.elementType),void(v===y?Ne(u-f,d-m,v[0],v[1])>=10?zn(h,{points:ic(g,[[u-f,d-m]])}):document.documentElement.style.cursor=Ee:g.length>2&&y&&Ne(u-f,d-m,y[0],y[1])<10?(document.documentElement.style.cursor=Ee,zn(h,{points:g.slice(0,-1)})):(Fe(g)&&(document.documentElement.style.cursor=Ee),zn(h,{points:ic(g.slice(0,-1),[[u-f,d-m]])})))}if(!(Boolean(e.buttons)||"selection"!==i.state.elementType&&"text"!==i.state.elementType)){var b=Vt.getElements(),k=Lt(b,i.state);if(1!==k.length||l||i.state.editingLinearElement){if(k.length>1&&!l){var w=br(Xe(k),u,d,i.state.zoom,e.pointerType);if(w)return void(document.documentElement.style.cursor=wr({resizeHandle:w}))}}else{var S=vr(b,i.state,u,d,i.state.zoom,e.pointerType);if(S&&S.resizeHandle)return void(document.documentElement.style.cursor=wr(S))}var E=Gt(b,i.state,u,d,i.state.zoom);"text"===i.state.elementType?document.documentElement.style.cursor=ye(E)?ke:we:document.documentElement.style.cursor=E&&!l?"move":""}}},this.handleCanvasPointerDown=function(e){if(e.persist(),null!==Sc&&Sc(e),!bc){if(i.setState({lastPointerDownWith:e.pointerType,cursorButton:"down"}),i.savePointer(e.clientX,e.clientY,"down"),0===Ec.pointers.size&&(e.button===xe||e.button===Ce&&vc)){bc=!0;var t=!1,n=/Linux/.test(window.navigator.platform);document.documentElement.style.cursor=Se;var r=e.clientX,o=e.clientY,a=pc((function(e){var a=r-e.clientX,s=o-e.clientY;if(r=e.clientX,o=e.clientY,n&&!t&&(Math.abs(a)>1||Math.abs(s)>1)){t=!0;var l=function(e){document.body.removeEventListener(le.PASTE,l),e.stopPropagation()},c=function(){setTimeout((function(){document.body.removeEventListener(le.PASTE,l),window.removeEventListener(le.POINTER_UP,c)}),100)};document.body.addEventListener(le.PASTE,l),window.addEventListener(le.POINTER_UP,c)}i.setState({scrollX:Nt(i.state.scrollX-a/i.state.zoom),scrollY:Nt(i.state.scrollY-s/i.state.zoom)})})),s=pc(Sc=function(){Sc=null,bc=!1,vc||on(i.state.elementType),i.setState({cursorButton:"up"}),i.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(le.POINTER_MOVE,a),window.removeEventListener(le.POINTER_UP,s),window.removeEventListener(le.BLUR,s)});return window.addEventListener(le.BLUR,s),window.addEventListener(le.POINTER_MOVE,a,{passive:!0}),void window.addEventListener(le.POINTER_UP,s)}if(!(e.button!==Ce&&e.button!==_e||(Ec.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===Ec.pointers.size&&(Ec.lastCenter=Js(Ec.pointers),Ec.initialScale=i.state.zoom,Ec.initialDistance=$s(Array.from(Ec.pointers.values()))),e.preventDefault(),document.activeElement instanceof HTMLElement&&document.activeElement.blur(),Ec.pointers.size>1))){var l=jt(wc,e.clientX,e.clientY),c=l.isOverHorizontalScrollBar,u=l.isOverVerticalScrollBar,d=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),p=d.x,h=d.y,f=p,m=h;if((c||u)&&!i.state.multiElement){kc=!0,f=e.clientX,m=e.clientY;var g=pc((function(e){if(e.target instanceof HTMLElement){if(c){var t=e.clientX,n=t-f;return i.setState({scrollX:Nt(i.state.scrollX-n/i.state.zoom)}),void(f=t)}if(u){var r=e.clientY,o=r-m;i.setState({scrollY:Nt(i.state.scrollY-o/i.state.zoom)}),m=r}}})),y=pc((function(){kc=!1,on(i.state.elementType),Sc=null,i.setState({cursorButton:"up"}),i.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(le.POINTER_MOVE,g),window.removeEventListener(le.POINTER_UP,y)}));return Sc=y,window.addEventListener(le.POINTER_MOVE,g),void window.addEventListener(le.POINTER_UP,y)}var v,b=p,k=h,w=Ge(b,k,i.state.gridSize),S=w[0],E=w[1],C=!1,x=function(e){C=e},_=[0,0],T="origin",P=!1,O=!1,A=null,M=null,z=!1;if("selection"===i.state.elementType){var I=Vt.getElements(),j=Lt(I,i.state);if(1!==j.length||i.state.editingLinearElement)j.length>1&&(C=br(Xe(j),p,h,i.state.zoom,e.pointerType))&&(document.documentElement.style.cursor=wr({resizeHandle:C}),P=!0);else{var D=vr(I,i.state,p,h,i.state.zoom,e.pointerType);D&&(i.setState({resizingElement:D?D.element:null}),C=D.resizeHandle,document.documentElement.style.cursor=wr(D),P=!0)}if(P&&(_=function(e,t,n,r){var o,a=1===t.length?Ue(t[0]):Xe(t),i=a[0],s=a[1],l=a[2],c=a[3],u=(i+l)/2,d=(s+c)/2,p=1===t.length?t[0].angle:0;switch(n=(o=De(n,r,u,d,-p))[0],r=o[1],e){case"n":return De(n-(i+l)/2,r-s,0,0,p);case"s":return De(n-(i+l)/2,r-c,0,0,p);case"w":return De(n-i,r-(s+c)/2,0,0,p);case"e":return De(n-l,r-(s+c)/2,0,0,p);case"nw":return De(n-i,r-s,0,0,p);case"ne":return De(n-l,r-s,0,0,p);case"sw":return De(n-i,r-c,0,0,p);case"se":return De(n-l,r-c,0,0,p);default:return[0,0]}}(C,j,p,h),1===j.length&&ve(j[0])&&2===j[0].points.length&&(T=function(e,t){var n=t.points[1],r=n[0],o=n[1];return"nw"===e&&(r<0||o<0)||"ne"===e&&r>=0||"sw"===e&&r<=0||"se"===e&&(r>0||o>0)?"end":"origin"}(C,j[0]))),!P){if(i.state.editingLinearElement){var L=Eo.handlePointerDown(e,i.state,(function(e){return i.setState(e)}),hc,p,h);if(L.hitElement&&(M=L.hitElement),L.didAddPoint)return}if(!((M=M||Gt(I,i.state,p,h,i.state.zoom))&&i.state.selectedElementIds[M.id]||e.shiftKey)){i.setState((function(e){return{selectedElementIds:{},selectedGroupIds:{},editingGroupId:e.editingGroupId&&M&&Un(M,e.editingGroupId)?e.editingGroupId:null}}));var N=i.state.selectedElementIds;i.setState({selectedElementIds:{},previousSelectedElementIds:N})}if(M&&!i.state.selectedElementIds[M.id]){if(i.state.editingGroupId&&!Un(M,i.state.editingGroupId))return void i.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null});i.setState((function(e){var t;return Wn(uc(uc({},e),{},{selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[M.id]=!0,t))}),Vt.getElements())})),Vt.replaceAllElements(Vt.getElementsIncludingDeleted()),z=!0}var F=i.state.selectedElementIds;i.setState({previousSelectedElementIds:F})}}else i.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null});if("text"===i.state.elementType){var B;if("text"===(null===(B=i.state.editingElement)||void 0===B?void 0:B.type))return;return i.startTextEditing({sceneX:p,sceneY:h,insertAtParentCenter:!e.altKey}),rn(),void(i.state.elementLocked||i.setState({elementType:"selection"}))}if("arrow"===i.state.elementType||"draw"===i.state.elementType||"line"===i.state.elementType)if(i.state.multiElement){var R=i.state.multiElement;if("line"===R.type&&Fe(R.points))return zn(R,{lastCommittedPoint:R.points[R.points.length-1]}),void i.actionManager.executeAction(Ms);var H=R.x,G=R.y,W=R.lastCommittedPoint;if(R.points.length>1&&W&&Ne(p-H,h-G,W[0],W[1])<10)return void i.actionManager.executeAction(Ms);i.setState((function(e){var t;return{selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[R.id]=!0,t))}})),zn(R,{lastCommittedPoint:R.points[R.points.length-1]}),document.documentElement.style.cursor=Ee}else{var U=Ge(p,h,"draw"===i.state.elementType?null:i.state.gridSize),V=U[0],K=U[1],Y=(v={type:i.state.elementType,x:V,y:K,strokeColor:i.state.currentItemStrokeColor,backgroundColor:i.state.currentItemBackgroundColor,fillStyle:i.state.currentItemFillStyle,strokeWidth:i.state.currentItemStrokeWidth,strokeStyle:i.state.currentItemStrokeStyle,roughness:i.state.currentItemRoughness,opacity:i.state.currentItemOpacity},qn(qn({},Jn(v.type,v)),{},{points:[],lastCommittedPoint:v.lastCommittedPoint||null}));i.setState((function(e){var t;return{selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[Y.id]=!1,t))}})),zn(Y,{points:ic(Y.points,[[0,0]])}),Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted(),[Y])),i.setState({draggingElement:Y,editingElement:Y})}else{var q=Ge(p,h,i.state.gridSize),Z=(V=q[0],K=q[1],$n({type:i.state.elementType,x:V,y:K,strokeColor:i.state.currentItemStrokeColor,backgroundColor:i.state.currentItemBackgroundColor,fillStyle:i.state.currentItemFillStyle,strokeWidth:i.state.currentItemStrokeWidth,strokeStyle:i.state.currentItemStrokeStyle,roughness:i.state.currentItemRoughness,opacity:i.state.currentItemOpacity}));"selection"===Z.type?i.setState({selectionElement:Z,draggingElement:Z}):(Vt.replaceAllElements(ic(Vt.getElementsIncludingDeleted(),[Z])),i.setState({multiElement:null,draggingElement:Z,editingElement:Z}))}var X=!1,J=pc((function(e){var t;if(null===A&&(A=function(e,t,n){var r=Xe(e);return[t-r[0],n-r[1]]}(Lt(Vt.getElements(),i.state),b,k)),e.target instanceof HTMLElement){if(c){var n=e.clientX,r=n-f;return i.setState({scrollX:Nt(i.state.scrollX-r/i.state.zoom)}),void(f=n)}if(u){var o=e.clientY,a=o-m;return i.setState({scrollY:Nt(i.state.scrollY-a/i.state.zoom)}),void(m=o)}var s=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),l=s.x,d=s.y,p=Ge(l,d,i.state.gridSize),h=p[0],g=p[1];if(O||"arrow"!==i.state.elementType&&"line"!==i.state.elementType||!(Ne(l,d,b,k)<10)){if(P){var y=Lt(Vt.getElements(),i.state);i.setState({isResizing:C&&"rotation"!==C,isRotating:"rotation"===C});var v=Ge(l-_[0],d-_[1],i.state.gridSize),w=v[0],I=v[1];if(function(e,t,n,r,o,a,i,s,l){if(1===n.length){var c=n[0];return"rotation"===e?_r(c,s,l,o):!ve(c)||2!==c.points.length||"nw"!==e&&"ne"!==e&&"sw"!==e&&"se"!==e?"text"!==c.type||"nw"!==e&&"ne"!==e&&"sw"!==e&&"se"!==e?e&&(zr(c,e,a,i,s,l),t(function(e,t){if(e.width>=0&&e.height>=0)return t;if(e.width<0&&e.height<0)switch(t){case"nw":return"se";case"ne":return"sw";case"se":return"nw";case"sw":return"ne"}else if(e.width<0)switch(t){case"nw":return"ne";case"ne":return"nw";case"se":return"sw";case"sw":return"se";case"e":return"w";case"w":return"e"}else switch(t){case"nw":return"sw";case"ne":return"se";case"se":return"ne";case"sw":return"nw";case"n":return"s";case"s":return"n"}return t}(c,e)),c.width<0&&zn(c,{width:-c.width}),c.height<0&&zn(c,{height:-c.height})):Mr(c,e,i,s,l):Tr(c,r,o,s,l),document.documentElement.style.cursor=wr({element:c,resizeHandle:e}),!0}return n.length>1&&("nw"===e||"ne"===e||"sw"===e||"se"===e)&&(Ir(n,e,s,l),!0)}(C,x,y,T,no(e),to(e),eo(e),w,I))return}if(i.state.editingLinearElement)if(Eo.handlePointDragging(i.state,(function(e){return i.setState(e)}),l,d,f,m))return f=l,void(m=d);if(M&&i.state.selectedElementIds[M.id])if(O=!0,(y=Lt(Vt.getElements(),i.state)).length>0){var j=Ge(l-A[0],d-A[1],i.state.gridSize),D=j[0],L=j[1];if(function(e,t,n){var r=Xe(e),o=r[0],a=r[1];e.forEach((function(e){zn(e,{x:t+e.x-o,y:n+e.y-a})}))}(y,D,L),e.altKey&&!X){X=!0;for(var N=[],F=[],B=new Map,R=0,H=Vt.getElementsIncludingDeleted();R<H.length;R++){var G=H[R];if(i.state.selectedElementIds[G.id]||G.id===M.id&&z){var W=rr(i.state.editingGroupId,B,G),U=Ge(b-A[0],k-A[1],i.state.gridSize),V=U[0],K=U[1];zn(W,{x:W.x+(V-D),y:W.y+(K-L)}),N.push(W),F.push(G)}else N.push(G)}Vt.replaceAllElements(ic(N,F))}return}var Y=i.state.draggingElement;if(Y){if(ve(Y)){O=!0;var q=Y.points;r=void 0,a=void 0;"draw"===Y.type?(r=l-Y.x,a=d-Y.y):(r=h-Y.x,a=g-Y.y),no(e)&&2===q.length&&(r=(t=Dn(i.state.elementType,r,a)).width,a=t.height),1===q.length?zn(Y,{points:ic(q,[[r,a]])}):q.length>1&&("draw"===Y.type?zn(Y,{points:oe(ic(q,[[r,a]]),.7)}):zn(Y,{points:ic(q.slice(0,-1),[[r,a]])}))}else"selection"===Y.type?jr(Y,i.state.elementType,b,k,l,d,nn(b,l),nn(k,d),to(e),eo(e)):jr(Y,i.state.elementType,S,E,h,g,nn(S,h),nn(E,g),to(e),eo(e));if("selection"===i.state.elementType){var Z=Vt.getElements();!e.shiftKey&&Dt(Z,i.state)&&i.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null});var J=function(e,t){var n=Ue(t),r=n[0],o=n[1],a=n[2],i=n[3];return e.filter((function(e){var t=Ze(e),n=t[0],s=t[1],l=t[2],c=t[3];return"selection"!==e.type&&r<=n&&o<=s&&a>=l&&i>=c}))}(Z,Y);i.setState((function(e){return Wn(uc(uc({},e),{},{selectedElementIds:uc(uc({},e.selectedElementIds),J.reduce((function(e,t){return e[t.id]=!0,e}),{}))}),Vt.getElements())}))}}}}})),$=pc((function(e){var t=i.state,n=t.draggingElement,r=t.resizingElement,o=t.multiElement,a=t.elementType,s=t.elementLocked;if(i.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,cursorButton:"up",editingElement:o||ye(i.state.editingElement)?i.state.editingElement:null}),i.savePointer(e.clientX,e.clientY,"up"),i.state.editingLinearElement){var l=Eo.handlePointerUp(i.state.editingLinearElement);l!==i.state.editingLinearElement&&i.setState({editingLinearElement:l})}if(Sc=null,window.removeEventListener(le.POINTER_MOVE,J),window.removeEventListener(le.POINTER_UP,$),"draw"!==(null==n?void 0:n.type))if(ve(n))if(n.points.length>1&&hc.resumeRecording(),O||!n||o)O&&!o&&(s?i.setState((function(e){var t;return{draggingElement:null,selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[i.state.draggingElement.id]=!0,t))}})):(rn(),i.setState((function(e){var t;return{draggingElement:null,elementType:"selection",selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[i.state.draggingElement.id]=!0,t))}}))));else{var c=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),u=c.x,d=c.y;zn(n,{points:ic(n.points,[[u-n.x,d-n.y]])}),i.setState({multiElement:n,editingElement:i.state.draggingElement})}else{if("selection"!==a&&n&&jn(n))return Vt.replaceAllElements(Vt.getElementsIncludingDeleted().slice(0,-1)),void i.setState({draggingElement:null});n&&zn(n,Ln(n)),r&&hc.resumeRecording(),r&&jn(r)&&Vt.replaceAllElements(Vt.getElementsIncludingDeleted().filter((function(e){return e.id!==r.id}))),0!==Gn(i.state).length||!M||O||z||(e.shiftKey?i.setState((function(e){var t;return{selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[M.id]=!1,t))}})):i.setState((function(e){var t;return{selectedElementIds:(t={},t[M.id]=!0,t)}}))),null!==n?(s||i.setState((function(e){var t;return{selectedElementIds:uc(uc({},e.selectedElementIds),{},(t={},t[n.id]=!0,t))}})),("selection"!==a||Dt(Vt.getElements(),i.state))&&hc.resumeRecording(),s?i.setState({draggingElement:null}):(rn(),i.setState({draggingElement:null,elementType:"selection"}))):i.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}else i.actionManager.executeAction(Ms)}));Sc=$,window.addEventListener(le.POINTER_MOVE,J),window.addEventListener(le.POINTER_UP,$)}}},this.handleCanvasRef=function(e){var t,n,r;null!==e?(i.canvas=e,i.rc=fe(i.canvas),i.canvas.addEventListener(le.WHEEL,i.handleWheel,{passive:!1}),i.canvas.addEventListener(le.TOUCH_START,i.onTapStart),i.canvas.addEventListener(le.TOUCH_END,i.onTapEnd)):(null===(t=i.canvas)||void 0===t||t.removeEventListener(le.WHEEL,i.handleWheel),null===(n=i.canvas)||void 0===n||n.removeEventListener(le.TOUCH_START,i.onTapStart),null===(r=i.canvas)||void 0===r||r.removeEventListener(le.TOUCH_END,i.onTapEnd))},this.handleCanvasOnDrop=function(e){var t,n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0];"application/json"===(null==n?void 0:n.type)||(null==n?void 0:n.name.endsWith(".excalidraw"))?(i.setState({isLoading:!0}),wa(n).then((function(e){var t=e.elements,n=e.appState;return i.syncActionResult({elements:t,appState:uc(uc({},n||i.state),{},{isLoading:!1}),commitToHistory:!1})})).catch((function(e){i.setState({isLoading:!1,errorMessage:e.message})}))):i.setState({isLoading:!1,errorMessage:zt("alerts.couldNotLoadInvalidFile")})},this.handleCanvasContextMenu=function(e){var t;e.preventDefault();var n=ln(e,i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop}),r=n.x,o=n.y,a=Vt.getElements(),s=Gt(a,i.state,r,o,i.state.zoom);s?(i.state.selectedElementIds[s.id]||i.setState({selectedElementIds:(t={},t[s.id]=!0,t)}),ui({options:ic([navigator.clipboard&&{label:zt("labels.copy"),action:i.copyAll},navigator.clipboard&&{label:zt("labels.paste"),action:function(){return i.pasteFromClipboard(null)}},na&&{label:zt("labels.copyAsPng"),action:i.copyToClipboardAsPng},ta&&{label:zt("labels.copyAsSvg"),action:i.copyToClipboardAsSvg}],i.actionManager.getContextMenuItems((function(e){return!Ie.includes(e.name)}))),top:e.clientY,left:e.clientX})):ui({options:ic([navigator.clipboard&&{label:zt("labels.paste"),action:function(){return i.pasteFromClipboard(null)}},na&&a.length>0&&{label:zt("labels.copyAsPng"),action:i.copyToClipboardAsPng},ta&&a.length>0&&{label:zt("labels.copyAsSvg"),action:i.copyToClipboardAsSvg}],i.actionManager.getContextMenuItems((function(e){return Ie.includes(e.name)})),[{label:zt("labels.toggleGridMode"),action:i.toggleGridMode}]),top:e.clientY,left:e.clientX})},this.handleWheel=pc((function(e){e.preventDefault();var t=e.deltaX,n=e.deltaY,r=i.state,o=r.selectedElementIds,a=r.previousSelectedElementIds;if(e.metaKey||e.ctrlKey){var s=Math.sign(n),l=Math.abs(n);return l>10&&(l=10),l*=s,0!==Object.keys(a).length&&setTimeout((function(){i.setState({selectedElementIds:a,previousSelectedElementIds:{}})}),1e3),void i.setState((function(e){var t=e.zoom;return{zoom:Ut(t-l/100),selectedElementIds:{},previousSelectedElementIds:0!==Object.keys(o).length?o:a}}))}e.shiftKey?i.setState((function(e){var r=e.zoom,o=e.scrollX;return{scrollX:Nt(o-(n||t)/r)}})):i.setState((function(e){var r=e.zoom,o=e.scrollX,a=e.scrollY;return{scrollX:Nt(o-t/r),scrollY:Nt(a-n/r)}}))})),this.savePointer=function(e,t,n){if(e&&t){var r=ln({clientX:e,clientY:t},i.state,i.canvas,window.devicePixelRatio,{deltaX:i.parentDOMLeft,deltaY:i.parentDOMTop});isNaN(r.x)||isNaN(r.y)||i.portal.socket&&Ec.pointers.size<2&&i.broadcastMouseLocation({pointerCoords:r,button:n})}},this.resetShouldCacheIgnoreZoomDebounced=(e=function(){i.setState({shouldCacheIgnoreZoom:!1})},t=300,o=0,(a=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r=n,clearTimeout(o),o=window.setTimeout((function(){return e.apply(void 0,n)}),t)}).flush=function(){clearTimeout(o),e.apply(void 0,r)},a)};"production"!==Te&&"production"!==Pe||(window.h={},Object.defineProperties(window.h,{elements:{get:function(){return Vt.getElementsIncludingDeleted()},set:function(e){return Vt.replaceAllElements(e)}},history:{get:function(){return hc}}}));var _c=Cc,Tc=(n(56),n(57),n(58),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Pc=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Oc(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Ac=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,o=this;return r=o=e.apply(this,t)||this,o.state={isLoading:!0},r}return Tc(t,e),t.prototype.componentDidMount=function(){var e,t=this;return(e=function(){return Pc(this,(function(e){switch(e.label){case 0:return[4,Ot()];case 1:return e.sent(),t.setState({isLoading:!1}),[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Oc(a,r,o,i,s,"next",e)}function s(e){Oc(a,r,o,i,s,"throw",e)}i(void 0)}))})()},t.prototype.render=function(){return this.state.isLoading?o.a.createElement(zl,null):this.props.children},t}(o.a.Component);var Mc=function(){return(Mc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function zc(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ic(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zc(arguments[t]));return e}var jc=n(5),Dc=Object(jc.b)(),Lc="Sentry Logger ",Nc=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(jc.a)((function(){Dc.console.log(Lc+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(jc.a)((function(){Dc.console.warn(Lc+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(jc.a)((function(){Dc.console.error(Lc+"[Error]: "+e.join(" "))}))},e}();Dc.__SENTRY__=Dc.__SENTRY__||{};var Fc,Bc=Dc.__SENTRY__.logger||(Dc.__SENTRY__.logger=new Nc),Rc=n(3);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(Fc||(Fc={}));var Hc=function(){function e(e){var t=this;this._state=Fc.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Fc.RESOLVED,e)},this._reject=function(e){t._setResult(Fc.REJECTED,e)},this._setResult=function(e,n){t._state===Fc.PENDING&&(Object(Rc.d)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Fc.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Fc.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Fc.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,a=[];t.forEach((function(t,i){e.resolve(t).then((function(e){a[i]=e,0===(o-=1)&&n(a)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,a;return n.then((function(e){a=!1,o=e,t&&t()}),(function(e){a=!0,o=e,t&&t()})).then((function(){a?r(o):e(o)}))}))},e}(),Gc=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new Hc((function(a,i){var s=e[r];if(null===t||"function"!=typeof s)a(t);else{var l=s(Mc({},t),n);Object(Rc.d)(l)?l.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(a)})).then(null,i):o._notifyEventProcessors(e,l,n,r+1).then(a).then(null,i)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=Mc({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Mc({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Mc({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Mc({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return this._contexts=Mc({},this._contexts,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();if(e&&e.spanRecorder&&e.spanRecorder.spans[0])return e.spanRecorder.spans[0]},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Ic(t._breadcrumbs),n._tags=Mc({},t._tags),n._extra=Mc({},t._extra),n._contexts=Mc({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Ic(t._eventProcessors)),n},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Mc({},this._tags,t._tags),this._extra=Mc({},this._extra,t._extra),this._contexts=Mc({},this._contexts,t._contexts),t._user&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(Rc.a)(t)&&(t=t,this._tags=Mc({},this._tags,t.tags),this._extra=Mc({},this._extra,t.extra),this._contexts=Mc({},this._contexts,t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Mc({timestamp:Object(jc.d)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Ic(this._breadcrumbs,[n]).slice(-t):Ic(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=Mc({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Mc({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Mc({},this._user,e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Mc({},this._contexts,e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span&&(e.contexts=Mc({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=Ic(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Ic(Wc(),this._eventProcessors),e,t)},e}();function Wc(){var e=Object(jc.b)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}var Uc=function(){function e(e,t,n){void 0===t&&(t=new Gc),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t}),this.bindClient(e)}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[e]&&(t=o.client)[e].apply(t,Ic(n,[o.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=Gc.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(jc.e)(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,Mc({},r,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(jc.e)(),o=n;if(!n){var a=void 0;try{throw new Error(e)}catch(e){a=e}o={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,Mc({},o,{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(jc.e)();return this._invokeClient("captureEvent",e,Mc({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var r=n.client.getOptions&&n.client.getOptions()||{},o=r.beforeBreadcrumb,a=void 0===o?null:o,i=r.maxBreadcrumbs,s=void 0===i?100:i;if(!(s<=0)){var l=Object(jc.d)(),c=Mc({timestamp:l},e),u=a?Object(jc.a)((function(){return a(c,t)})):c;null!==u&&n.scope.addBreadcrumb(u,Math.min(s,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=Kc(this);try{e(this)}finally{Kc(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Bc.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e){return this._callExtensionMethod("startTransaction",e)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Vc(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);Bc.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Vc(){var e=Object(jc.b)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Kc(e){var t=Vc(),n=Zc(t);return Xc(t,e),n}function Yc(){var e=Vc();return qc(e)&&!Zc(e).isOlderThan(3)||Xc(e,new Uc),Object(jc.c)()?function(e){try{var t=Vc().__SENTRY__;if(!t||!t.extensions||!t.extensions.domain)return Zc(e);var n=t.extensions.domain.active;if(!n)return Zc(e);if(!qc(n)||Zc(n).isOlderThan(3)){var r=Zc(e).getStackTop();Xc(n,new Uc(r.client,Gc.clone(r.scope)))}return Zc(n)}catch(t){return Zc(e)}}(e):Zc(e)}function qc(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Zc(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Uc),e.__SENTRY__.hub}function Xc(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function Jc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Yc();if(r&&r[e])return r[e].apply(r,Ic(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}var $c=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qc=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function eu(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ru=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,o=this;return r=o=e.apply(this,t)||this,o.state={hasError:!1,sentryEventId:"",localStorage:""},r}return $c(t,e),t.prototype.render=function(){return this.state.hasError?this.errorSplash():this.props.children},t.prototype.componentDidCatch=function(e,t){var n=this;rn();for(var r,o={},a=0,i=Object.entries(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach((function(t){nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},localStorage));a<i.length;a++){var s=i[a],l=s[0],c=s[1];try{o[l]=JSON.parse(c)}catch(e){o[l]=c}}r=function(r){r.setExtras(t);var a=function(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return Jc("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}(e);n.setState((function(e){return{hasError:!0,sentryEventId:a,localStorage:JSON.stringify(o)}}))},Jc("withScope",r)},t.prototype.selectTextArea=function(e){e.target!==document.activeElement&&(e.preventDefault(),e.target.select())},t.prototype.createGithubIssue=function(){var e,t=this;return(e=function(){var e,r,o;return Qc(this,(function(a){switch(a.label){case 0:e="",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.resolve().then(n.bind(null,125))];case 2:return r=a.sent().default,e=encodeURIComponent(r(t.state.sentryEventId)),[3,4];case 3:return o=a.sent(),console.error(o),[3,4];case 4:return window.open("https://github.com/excalidraw/excalidraw/issues/new?body=".concat(e)),[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){eu(a,r,o,i,s,"next",e)}function s(e){eu(a,r,o,i,s,"throw",e)}i(void 0)}))})()},t.prototype.errorSplash=function(){var e=this;return o.a.createElement("div",{className:"ErrorSplash"},o.a.createElement("div",{className:"ErrorSplash-messageContainer"},o.a.createElement("div",{className:"ErrorSplash-paragraph bigger align-center"},zt("errorSplash.headingMain_pre"),o.a.createElement("button",{onClick:function(){return window.location.reload()}},zt("errorSplash.headingMain_button"))),o.a.createElement("div",{className:"ErrorSplash-paragraph align-center"},zt("errorSplash.clearCanvasMessage"),o.a.createElement("button",{onClick:function(){try{localStorage.clear(),window.location.reload()}catch(e){console.error(e)}}},zt("errorSplash.clearCanvasMessage_button")),o.a.createElement("br",null),o.a.createElement("div",{className:"smaller"},o.a.createElement("span",{role:"img","aria-label":"warning"},"⚠️"),zt("errorSplash.clearCanvasCaveat"),o.a.createElement("span",{role:"img","aria-hidden":"true"},"⚠️"))),o.a.createElement("div",null,o.a.createElement("div",{className:"ErrorSplash-paragraph"},zt("errorSplash.trackedToSentry_pre"),this.state.sentryEventId,zt("errorSplash.trackedToSentry_post")),o.a.createElement("div",{className:"ErrorSplash-paragraph"},zt("errorSplash.openIssueMessage_pre"),o.a.createElement("button",{onClick:function(){return e.createGithubIssue()}},zt("errorSplash.openIssueMessage_button")),zt("errorSplash.openIssueMessage_post")),o.a.createElement("div",{className:"ErrorSplash-paragraph"},o.a.createElement("div",{className:"ErrorSplash-details"},o.a.createElement("label",null,zt("errorSplash.sceneContent")),o.a.createElement("textarea",{rows:5,onPointerDown:this.selectTextArea,readOnly:!0,value:this.state.localStorage}))))))},t}(o.a.Component),ou=function(e){var t=e.width,n=e.height,a=e.onChange,i=e.onBlur,s=e.initialData,l=e.user,c=e.onUsernameChange,u=e.onResize,d=e.options;return Object(r.useEffect)((function(){var e=function(e){1!==e.scale&&e.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),function(){document.removeEventListener("touchMove",e)}}),[]),o.a.createElement(ru,null,o.a.createElement(gs,null,o.a.createElement(Ac,null,o.a.createElement(_c,{width:t,height:n,onChange:a,onBlur:i,initialData:s,user:l,onUsernameChange:c,onResize:u,options:d}))))}},,,function(e,t,n){var r=n(60),o=n(13),a=n(27),i=n(7)("socket.io-client");e.exports=t=l;var s=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),l=o.source,c=o.id,u=o.path,d=s[c]&&u in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(i("ignoring socket cache for %s",l),n=a(l,t)):(s[c]||(i("new io instance for %s",l),s[c]=a(l,t)),n=s[c]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=l,t.Manager=n(27),t.Socket=n(33)},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function o(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}t.default=function(){var e,t=(e=function(e){var t,n,o,a,i,s,l;return void 0===e&&(e={}),r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),[4,window.chooseFileSystemEntries({accepts:[{description:e.description||"",mimeTypes:e.mimeTypes||["*/*"],extensions:e.extensions||[""]}],multiple:e.multiple||!1})];case 1:if(t=r.sent(),!e.multiple)return[3,6];n=[],o=0,a=t,r.label=2;case 2:return o<a.length?[4,(i=a[o]).getFile()]:[3,5];case 3:(s=r.sent()).handle=i,n.push(s),r.label=4;case 4:return o++,[3,2];case 5:return[2,n];case 6:return[4,t.getFile()];case 7:return[2,((l=r.sent()).handle=t,l)];case 8:throw r.sent();case 9:return[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};function a(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}t.default=function(){var e,t=(e=function(e){return void 0===e&&(e={}),r(this,(function(t){return[2,new Promise((function(t){var n=document.createElement("input");n.type="file";var r=o(e.mimeTypes?e.mimeTypes:[],[e.extensions?e.extensions.map((function(e){return"."+e})):[]]).join();n.multiple=e.multiple||!1,n.accept=r||"*/*",n.addEventListener("change",(function(){t(n.multiple?n.files:n.files[0])})),n.click()}))]}))},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}},a=function(e){return this instanceof a?(this.v=e,this):new a(e)};function i(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}var l=function(){var e=s((function(e,t,n){var i,s,c,u,d,p,h,f,m,g;return void 0===n&&(n=[]),r(this,(function(r){switch(r.label){case 0:r.trys.push([0,11,12,17]),i=o(e),r.label=1;case 1:return[4,a(i.next())];case 2:return(s=r.sent()).done?[3,10]:(c=s.value).isFile?(d=(u=n).push,[4,c.getFile()]):[3,4];case 3:return d.apply(u,[r.sent()]),[3,8];case 4:return(p=c.isDirectory&&t)?(h=l,[4,c.getEntries()]):[3,7];case 5:return[4,h.apply(void 0,[r.sent(),t,n])];case 6:p=r.sent(),r.label=7;case 7:p,r.label=8;case 8:r.label=9;case 9:return[3,1];case 10:return[3,17];case 11:return f=r.sent(),m={error:f},[3,17];case 12:return r.trys.push([12,,15,16]),s&&!s.done&&(g=i.return)?[4,a(g.call(i))]:[3,14];case 13:r.sent(),r.label=14;case 14:return[3,16];case 15:if(m)throw m.error;return[7];case 16:return[7];case 17:return[2,n]}}))}));return function(t,n){return e.apply(this,arguments)}}();t.default=function(){var e=s((function(e){var t,n,o,a,i,s,c,u;return void 0===e&&(e={}),r(this,(function(r){switch(r.label){case 0:e.recursive=e.recursive||!1,e.multiple=e.multiple||!1,r.label=1;case 1:return r.trys.push([1,11,,12]),[4,window.chooseFileSystemEntries({type:"open-directory",multiple:e.multiple})];case 2:if(t=r.sent(),!e.multiple)return[3,8];n=[],o=0,a=t,r.label=3;case 3:return o<a.length?[4,a[o].getEntries()]:[3,7];case 4:return i=r.sent(),c=(s=n).push,[4,l(i,e.recursive)];case 5:c.apply(s,[r.sent()]),r.label=6;case 6:return o++,[3,3];case 7:return[2,n];case 8:return[4,t.getEntries()];case 9:return u=r.sent(),[4,l(u,e.recursive)];case 10:return[2,r.sent()];case 11:throw r.sent();case 12:return[2]}}))}));return function(){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function o(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}t.default=function(){var e,t=(e=function(e){return void 0===e&&(e={}),r(this,(function(t){return[2,(e.recursive=e.recursive||!1,e.multiple=e.multiple||!1,new Promise((function(t){var n=document.createElement("input");n.type="file",n.webkitdirectory=!0,n.multiple=e.multiple,n.addEventListener("change",(function(){var r=Array.from(n.files);if(e.recursive||(r=r.filter((function(e){return 2===e.webkitRelativePath.split("/").length}))),e.multiple){var o=new Set,a=[];r.forEach((function(e){o.add(e.webkitRelativePath.split("/")[0])}));for(var i=function(e){a.push(r.filter((function(t){return t.webkitRelativePath.startsWith(e)})))},s=0,l=o;s<l.length;s++)i(l[s]);r=a}t(r)})),n.click()})))]}))},function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function o(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}t.default=function(){var e,t=(e=function(e,t,n){var o,a;return void 0===t&&(t={}),void 0===n&&(n=null),r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),t.fileName=t.fileName||"Untitled",(o=n)?[3,2]:[4,window.chooseFileSystemEntries({type:"save-file",accepts:[{description:t.description||"",mimeTypes:[e.type],extensions:t.extensions||[""]}]})];case 1:o=r.sent(),r.label=2;case 2:return[4,(n=o).createWritable()];case 3:return[4,(a=r.sent()).write(e)];case 4:return r.sent(),[4,a.close()];case 5:return[2,(r.sent(),n)];case 6:throw r.sent();case 7:return[2]}}))},function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function o(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}t.default=function(){var e,t=(e=function(e,t){var n;return void 0===t&&(t={}),r(this,(function(r){return(n=document.createElement("a")).download=t.fileName||"Untitled",n.href=URL.createObjectURL(e),n.addEventListener("click",(function(){setTimeout((function(){return URL.revokeObjectURL(n.href)}),3e4)})),n.click(),[2]}))},function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function s(e){o(i,r,a,s,l,"next",e)}function l(e){o(i,r,a,s,l,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}()},function(e,t,n){"use strict";n.r(t),t.default=function(e){return"\n### Scene content\n\n```\nPaste scene content here\n```\n\n### Sentry Error ID\n\n".concat(e,"\n")}}])}));
|