diff --git a/README.md b/README.md index 5967480..6670a44 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ ## 更新日志 +#### v1.0.2 + +- 修复开启访问授权码时打开编辑页面为空白问题 + #### v1.0.1 - 修复编辑界面UI配置无法保存问题 diff --git a/asset-manifest.json b/asset-manifest.json index 1da266b..c24d524 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/widgets/widget-excalidraw/static/css/main.a6576d0b.css", - "main.js": "/widgets/widget-excalidraw/static/js/main.f28b0681.js", + "main.js": "/widgets/widget-excalidraw/static/js/main.721c0bea.js", "index.html": "/widgets/widget-excalidraw/index.html", "main.a6576d0b.css.map": "/widgets/widget-excalidraw/static/css/main.a6576d0b.css.map", - "main.f28b0681.js.map": "/widgets/widget-excalidraw/static/js/main.f28b0681.js.map" + "main.721c0bea.js.map": "/widgets/widget-excalidraw/static/js/main.721c0bea.js.map" }, "entrypoints": [ "static/css/main.a6576d0b.css", - "static/js/main.f28b0681.js" + "static/js/main.721c0bea.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index e9d67e9..54b65af 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Excalidraw | SiYuan
\ No newline at end of file +Excalidraw | SiYuan
\ No newline at end of file diff --git a/static/js/main.f28b0681.js b/static/js/main.721c0bea.js similarity index 92% rename from static/js/main.f28b0681.js rename to static/js/main.721c0bea.js index a413078..60e9e28 100644 --- a/static/js/main.f28b0681.js +++ b/static/js/main.721c0bea.js @@ -1,3 +1,3 @@ -/*! For license information please see main.f28b0681.js.LICENSE.txt */ -!function(){var e={973:function(e,t,n){var r,o,i=n(655).default,a=n(389).default,l=n(861).default,c=n(690).default,s=n(728).default,u=n(416).default,d=n(424).default,f=n(704).default;self,e.exports=(r=n(791),o=n(164),function(){var e,t,n,p,h={45:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n="undefined"!=typeof Buffer;function r(e){for(var n=-1,r=0,o=e.length-7;r>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])];for(;r>>8^t[255&(n^e[r++])];return-1^n}e.table=t,e.bstr=function(e){if(e.length>32768&&n)return r(new Buffer(e));for(var o=-1,i=e.length-1,a=0;a>>8,o=t[255&(o^e.charCodeAt(a++))]^o>>>8;return a===i&&(o=o>>>8^t[255&(o^e.charCodeAt(a))]),-1^o},e.buf=function(e){if(e.length>1e4)return r(e);for(var n=-1,o=0,i=e.length-3;o>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e){for(var n,r,o=-1,i=0,a=e.length;i>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),r=1023&e.charCodeAt(i++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|r>>6&15|3&n))])>>>8^t[255&(o^(128|63&r))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},4739:function(e,t,n){"use strict";n.d(t,{Dv:function(){return W},KO:function(){return U},Vv:function(){return S},b9:function(){return F},cn:function(){return H},zt:function(){return N}});var r=n(9787),o=Symbol(),i=function(e){return!!e[o]},a=function(e){var t,n;null==(n=(t=e[o]).c)||n.call(t)},l=function e(t,n){var r=t[o].o,a=n[o].o;return r===a||t===a||i(r)&&e(r,n)},c=function(e){var t={o:e,c:null},n=new Promise((function(n){t.c=function(){t.c=null,n()},e.then(t.c,t.c)}));return n[o]=t,n},s=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,b=function(e,t,n){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},y=function(e){return"init"in e},x="r",w="w",k="c",_="s",E=function(e){var t,n,r,s=new WeakMap,E=new WeakMap,S=new Map;if(n=new Set,r=new Set,e){var j,O=f(e);try{for(O.s();!(j=O.n()).done;){var C=d(j.value,2),M=C[0],P={v:C[1],r:0,d:new Map};Object.freeze(P),y(M)||console.warn("Found initial value for derived atom which can cause unexpected behavior",M),s.set(M,P)}}catch(te){O.e(te)}finally{O.f()}}var T=new WeakMap,I=new WeakMap,L=function(e){var t=I.get(e);return t||(t=new Map,I.set(e,t)),t},D=function e(t,n){if(t){var r=L(t),o=r.get(n);return o||(o=e(t.p,n))&&("p"in o&&o.p.then((function(){return r.delete(n)})),r.set(n,o)),o}return s.get(n)},A=function(e,t,n){if(Object.freeze(n),e)L(e).set(t,n);else{var r=s.get(t);s.set(t,n),S.has(t)||S.set(t,r)}},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2?arguments[2]:void 0;if(!n)return t;var r=new Map,o=!1;return n.forEach((function(n){var i,a=(null==(i=D(e,n))?void 0:i.r)||0;r.set(n,a),t.get(n)!==a&&(o=!0)})),t.size!==r.size||o?r:t},Z=function(e,t,n,r,o){var i=D(e,t);if(i){if(o&&(!("p"in i)||!l(i.p,o)))return i;"p"in i&&a(i.p)}var c={v:n,r:(null==i?void 0:i.r)||0,d:z(e,null==i?void 0:i.d,r)};return i&&"v"in i&&Object.is(i.v,n)?c.d===i.d||c.d.size===i.d.size&&Array.from(c.d.keys()).every((function(e){return i.d.has(e)}))||Promise.resolve().then((function(){$(e)})):(++c.r,c.d.has(t)&&(c.d=new Map(c.d).set(t,c.r))),A(e,t,c),c},R=function(e,t,n,r,o){var i=D(e,t);if(i){if(o&&(!("p"in i)||!l(i.p,o)))return i;"p"in i&&a(i.p)}var c={e:n,r:(null==i?void 0:i.r)||0,d:z(e,null==i?void 0:i.d,r)};return A(e,t,c),c},N=function(e,t,n,r){var o=D(e,t);if(o&&"p"in o){if(l(o.p,n))return o;a(o.p)}!function(e,t,n){var r=T.get(t);r||(r=new Map,T.set(t,r)),n.then((function(){r.get(e)===n&&(r.delete(e),r.size||T.delete(t))})),r.set(e,n)}(e,t,n);var i={p:n,r:(null==o?void 0:o.r)||0,d:z(e,null==o?void 0:o.d,r)};return A(e,t,i),i},B=function(e,t,n,r){if(n instanceof Promise){var o=c(n.then((function(n){Z(e,t,n,r,o),$(e)})).catch((function(n){if(n instanceof Promise)return i(n)?n.then((function(){W(e,t,!0)})):n;R(e,t,n,r,o),$(e)})));return N(e,t,o,r)}return Z(e,t,n,r)},H=function(e,t){var n,r,o=D(e,t);if(o){"p"in o&&a(o.p);var i=(n=function(e,t){for(var n in t||(t={}))m.call(t,n)&&b(e,n,t[n]);if(v){var r,o=f(v(t));try{for(o.s();!(r=o.n()).done;)n=r.value,g.call(t,n)&&b(e,n,t[n])}catch(te){o.e(te)}finally{o.f()}}return e}({},o),r={i:o.r},p(n,h(r)));A(e,t,i)}else console.warn("[Bug] could not invalidate non existing atom",t)},W=function e(t,n,r){if(!r){var i=D(t,n);if(i){if(i.r!==i.i&&"p"in i&&i.p[o].c)return i;if(i.d.forEach((function(r,o){if(o!==n)if(E.has(o)){var i=D(t,o);i&&i.r===i.i&&e(t,o)}else e(t,o)})),Array.from(i.d).every((function(e){var n=d(e,2),r=n[0],o=n[1],i=D(t,r);return i&&"v"in i&&i.r===o})))return i}}var a=new Set;try{var l=n.read((function(r){a.add(r);var o=r===n?D(t,r):e(t,r);if(o){if("e"in o)throw o.e;if("p"in o)throw o.p;return o.v}if(y(r))return r.init;throw new Error("no atom init")}));return B(t,n,l,a)}catch(E){if(E instanceof Promise){var s=c(E);return N(t,n,s,a)}return R(t,n,E,a)}},F=function(e,t){return W(t,e)},U=function(e,t){return!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e))},K=function e(t,n){var r=E.get(n);null==r||r.t.forEach((function(r){r!==n&&(H(t,r),e(t,r))}))},V=function e(t,n,r){var o=!0,i=function e(n,r){var o=W(t,n);if("e"in o)throw o.e;if("p"in o){if(null==r?void 0:r.unstable_promise)return o.p.then((function(){return e(n,r)}));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",n),o.p}if("v"in o)return o.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",n),new Error("no value found")},l=n.write(i,(function(r,i){var l;if(r===n){if(!y(r))throw new Error("atom not writable");var c=function(e){var t=new Set,n=T.get(e);return n&&(T.delete(e),n.forEach((function(e,n){a(e),t.add(n)}))),t}(r);c.forEach((function(e){e!==t&&B(e,r,i)})),B(t,r,i),K(t,r)}else l=e(t,r,i);return o||$(t),l}),r);return o=!1,t=void 0,l},Y=function(e,t,n){var r=V(n,e,t);return $(n),r},G=function e(t,n){var o={t:new Set(n&&[n]),l:new Set};if(E.set(t,o),r.add(t),W(void 0,t).d.forEach((function(n,r){var o=E.get(r);o?o.t.add(t):r!==t&&e(r,t)})),function(e){return!!e.write}(t)&&t.onMount){var i=function(e){return Y(t,e)},a=t.onMount(i);a&&(o.u=a)}return o},X=function e(t){var n,o=null==(n=E.get(t))?void 0:n.u;o&&o(),E.delete(t),r.delete(t);var i=D(void 0,t);i?i.d.forEach((function(n,r){if(r!==t){var o=E.get(r);o&&(o.t.delete(t),U(r,o)&&e(r))}})):console.warn("[Bug] could not find atom state to unmount",t)},q=function(e,t,n){var r=new Set(t.d.keys());null==n||n.forEach((function(t,n){if(r.has(n))r.delete(n);else{var o=E.get(n);o&&(o.t.delete(e),U(n,o)&&X(n))}})),r.forEach((function(t){var n=E.get(t);n?n.t.add(e):E.has(e)&&G(t,e)}))},$=function(e){if(e)L(e).forEach((function(t,n){if(t!==s.get(n)){var r=E.get(n);null==r||r.l.forEach((function(t){return t(e)}))}}));else{for(;S.size;){var t=Array.from(S);S.clear(),t.forEach((function(e){var t=d(e,2),n=t[0],r=t[1],o=D(void 0,n);o&&o.d!==(null==r?void 0:r.d)&&q(n,o,null==r?void 0:r.d);var i=E.get(n);null==i||i.l.forEach((function(e){return e()}))}))}n.forEach((function(e){return e()}))}},Q=function(e,t){t&&function(e){L(e).forEach((function(e,t){var n=s.get(t);(e.r>((null==n?void 0:n.r)||0)||"v"in e&&e.r===(null==n?void 0:n.r)&&e.d!==(null==n?void 0:n.d))&&(s.set(t,e),e.d!==(null==n?void 0:n.d)&&q(t,e,null==n?void 0:n.d))}))}(t),$(void 0)},J=function(e,t){var n=function(e){var t=E.get(e);return t||(t=G(e)),t}(e).l;return n.add(t),function(){n.delete(t),function(e){var t=E.get(e);t&&U(e,t)&&X(e)}(e)}},ee=function(e,t){var n,r=f(e);try{for(r.s();!(n=r.n()).done;){var o=d(n.value,2),i=o[0],a=o[1];y(i)&&(B(t,i,a),K(t,i))}}catch(te){r.e(te)}finally{r.f()}$(t)};return u(t={},x,F),u(t,w,Y),u(t,k,Q),u(t,_,J),u(t,"h",ee),u(t,"n",(function(e){return n.add(e),function(){n.delete(e)}})),u(t,"l",(function(){return r.values()})),u(t,"a",(function(e){return s.get(e)})),u(t,"m",(function(e){return E.get(e)})),t},S=function(e){var t=E(e),n=function e(n){return new Promise((function(r,o){var i=t.r(n);"e"in i?o(i.e):r("p"in i?i.p.then((function(){return e(n)})):i.v)}))};return{get:function(e){var n=t.r(e);if("e"in n)throw n.e;if(!("p"in n))return n.v},asyncGet:n,set:function(e,n){return t.w(e,n)},sub:function(e,n){return t.s(e,n)},SECRET_INTERNAL_store:t}},j=function(e,t){return{s:t?t(e).SECRET_INTERNAL_store:E(e)}},O=new Map,C=function(e){return O.has(e)||O.set(e,(0,r.createContext)(j())),O.get(e)},M=Object.defineProperty,P=Object.defineProperties,T=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,A=function(e,t,n){return t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},z=function(e,t){for(var n in t||(t={}))L.call(t,n)&&A(e,n,t[n]);if(I){var r,o=f(I(t));try{for(o.s();!(r=o.n()).done;)n=r.value,D.call(t,n)&&A(e,n,t[n])}catch(i){o.e(i)}finally{o.f()}}return e},Z=function(e){return e.debugLabel||e.toString()},R=function(e){var t=d(e,2),n=t[0],r=t[1];return Object.fromEntries(r.flatMap((function(e){var t,r,o=null==(t=n.m)?void 0:t.call(n,e);if(!o)return[];var i,a,l=o.t,c=(null==(r=n.a)?void 0:r.call(n,e))||{};return[[Z(e),(i=z(z(z({},"e"in c&&{error:c.e}),"p"in c&&{promise:c.p}),"v"in c&&{value:c.v}),a={dependents:Array.from(l).map(Z)},P(i,T(a)))]]})))},N=function(e){var t=e.children,n=e.initialValues,o=e.scope,i=e.unstable_createStore,a=e.unstable_enableVersionedWrite,l=(0,r.useState)(),c=d(l,2),s=c[0],u=c[1];(0,r.useEffect)((function(){s&&(f.current.s.c(null,s),delete s.p)}),[s]);var f=(0,r.useRef)();f.current||(f.current=j(n,i),a&&(f.current.w=function(e){u((function(t){var n=t?{p:t}:{};return e(n),n}))})),a||function(e){var t=e.s,n=(0,r.useState)([]),o=d(n,2),i=o[0],a=o[1];(0,r.useEffect)((function(){var e,n=function(){var e;a(Array.from((null==(e=t.l)?void 0:e.call(t))||[]))},r=null==(e=t.n)?void 0:e.call(t,n);return n(),r}),[t]),(0,r.useDebugValue)([t,i],R)}(f.current);var p=C(o);return(0,r.createElement)(p.Provider,{value:f.current},t)},B=0;function H(e,t){var n="atom"+ ++B,r={toString:function(){return n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=function(e){return e(r)},r.write=function(e,t,n){return t(r,"function"==typeof n?n(e(r)):n)}),t&&(r.write=t),r}function W(e,t){var n=C(t),o=(0,r.useContext)(n).s,i=(0,r.useCallback)((function(t){var n=o.r(e,t);if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")}),[o,e]),a=(0,r.useReducer)((0,r.useCallback)((function(t,n){var r=i(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),[i,e]),void 0,(function(){var t=void 0;return[t,i(t),e]})),l=d(a,2),c=d(l[0],3),s=c[0],u=c[1],f=c[2],p=l[1];return f!==e&&p(void 0),(0,r.useEffect)((function(){var t=o.s(e,p);return p(void 0),t}),[o,e]),(0,r.useEffect)((function(){o.c(e,s)})),(0,r.useDebugValue)(u),u}function F(e,t){var n=C(t),o=(0,r.useContext)(n),i=o.s,a=o.w;return(0,r.useCallback)((function(t){if(!("write"in e))throw new Error("not writable atom");var n=function(n){return i.w(e,t,n)};return a?a(n):n()}),[i,a,e])}function U(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[W(e,t),F(e,t)]}},200:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=s||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return d.Date.now()};function m(e,t,n){var o,i,a,l,c,s,u=0,d=!1,f=!1,m=!0;if("function"!=typeof e)throw new TypeError(r);function y(t){var n=o,r=i;return o=i=void 0,u=t,l=e.apply(r,n)}function x(e){return u=e,c=setTimeout(k,t),d?y(e):l}function w(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-u>=a}function k(){var e=v();if(w(e))return _(e);c=setTimeout(k,function(e){var n=t-(e-s);return f?h(n,a-(e-u)):n}(e))}function _(e){return c=void 0,m&&o?y(e):(o=i=void 0,l)}function E(){var e=v(),n=w(e);if(o=arguments,i=this,s=e,n){if(void 0===c)return x(s);if(f)return c=setTimeout(k,t),y(s)}return void 0===c&&(c=setTimeout(k,t)),l}return t=b(t)||0,g(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(b(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==c&&clearTimeout(c),u=0,o=s=i=c=void 0},E.flush=function(){return void 0===c?l:_(v())},E}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}},2744:function(e,t,n){"use strict";var r={};(0,n(9187).assign)(r,n(4395),n(578),n(2684)),e.exports=r},4395:function(e,t,n){"use strict";var r=n(7651),o=n(9187),i=n(8592),a=n(5604),l=n(249),c=Object.prototype.toString;function s(e){if(!(this instanceof s))return new s(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new s(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}s.prototype.push=function(e,t){var n,a,l=this.strm,s=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?l.input=i.string2buf(e):"[object ArrayBuffer]"===c.call(e)?l.input=new Uint8Array(e):l.input=e,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new o.Buf8(s),l.next_out=0,l.avail_out=s),1!==(n=r.deflate(l,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==l.avail_out&&(0!==l.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(l.output,l.next_out))):this.onData(o.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||0===l.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),l.avail_out=0,!0)},s.prototype.onData=function(e){this.chunks.push(e)},s.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=s,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},578:function(e,t,n){"use strict";var r=n(7823),o=n(9187),i=n(8592),a=n(2684),l=n(5604),c=n(249),s=n(9968),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(l[n]);if(this.header=new s,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(l[n])}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||l[n.err];return n.result}d.prototype.push=function(e,t){var n,l,c,s,d,f=this.strm,p=this.options.chunkSize,h=this.options.dictionary,v=!1;if(this.ended)return!1;l=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new o.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||l!==a.Z_FINISH&&l!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=i.utf8border(f.output,f.next_out),s=f.next_out-c,d=i.buf2string(f.output,c),f.next_out=s,f.avail_out=p-s,s&&o.arraySet(f.output,f.output,c,s,0),this.onData(d)):this.onData(o.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(v=!0)}while((f.avail_in>0||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(l=a.Z_FINISH),l===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):l!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},9187:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var o in n)r(n,o)&&(e[o]=n[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n4)s[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return c(s,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},3693:function(e){"use strict";e.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},2684:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,o){var i=t,a=o+r;e^=-1;for(var l=o;l>>8^i[255&(e^n[l])];return-1^e}},7651:function(e,t,n){"use strict";var r,o=n(9187),i=n(8676),a=n(3693),l=n(8464),c=n(5604),s=-2,u=258,d=262,f=103,p=113,h=666;function v(e,t){return e.msg=c[t],t}function m(e){return(e<<1)-(e>4?9:0)}function g(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function y(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function x(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,l=e.nice_match,c=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,s=e.window,f=e.w_mask,p=e.prev,h=e.strstart+u,v=s[i+a-1],m=s[i+a];e.prev_length>=e.good_match&&(o>>=2),l>e.lookahead&&(l=e.lookahead);do{if(s[(n=t)+a]===m&&s[n+a-1]===v&&s[n]===s[i]&&s[++n]===s[i+1]){i+=2,n++;do{}while(s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&s[++i]===s[++n]&&ia){if(e.match_start=t,a=r,r>=l)break;v=s[i+a-1],m=s[i+a]}}}while((t=p[t&f])>c&&0!=--o);return a<=e.lookahead?a:e.lookahead}function _(e){var t,n,r,i,c,s,u,f,p,h,v=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=v+(v-d)){o.arraySet(e.window,e.window,v,v,0),e.match_start-=v,e.strstart-=v,e.block_start-=v,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=v?r-v:0}while(--n);t=n=v;do{r=e.prev[--t],e.prev[t]=r>=v?r-v:0}while(--n);i+=v}if(0===e.strm.avail_in)break;if(s=e.strm,u=e.window,f=e.strstart+e.lookahead,p=i,h=void 0,(h=s.avail_in)>p&&(h=p),n=0===h?0:(s.avail_in-=h,o.arraySet(u,s.input,s.next_in,h,f),1===s.state.wrap?s.adler=a(s.adler,u,h,f):2===s.state.wrap&&(s.adler=l(s.adler,u,h,f)),s.next_in+=h,s.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<15&&(l=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return v(e,s);8===r&&(r=9);var c=new O;return e.state=c,c.strm=e,c.wrap=l,c.gzhead=null,c.w_bits=r,c.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)})),new j(4,4,8,4,E),new j(4,5,16,8,E),new j(4,6,32,32,E),new j(4,4,16,16,S),new j(8,16,32,32,S),new j(8,16,128,128,S),new j(8,32,128,256,S),new j(32,128,258,1024,S),new j(32,258,258,4096,S)],t.deflateInit=function(e,t){return P(e,t,8,15,8,0)},t.deflateInit2=P,t.deflateReset=M,t.deflateResetKeep=C,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?s:(e.state.gzhead=t,0):s},t.deflate=function(e,t){var n,o,a,c;if(!e||!e.state||t>5||t<0)return e?v(e,s):s;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===h&&4!==t)return v(e,0===e.avail_out?-5:s);if(o.strm=e,n=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,x(o,31),x(o,139),x(o,8),o.gzhead?(x(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),x(o,255&o.gzhead.time),x(o,o.gzhead.time>>8&255),x(o,o.gzhead.time>>16&255),x(o,o.gzhead.time>>24&255),x(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),x(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(x(o,255&o.gzhead.extra.length),x(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=l(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(x(o,0),x(o,0),x(o,0),x(o,0),x(o,0),x(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),x(o,3),o.status=p);else{var d=8+(o.w_bits-8<<4)<<8;d|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=p,w(o,d),0!==o.strstart&&(w(o,e.adler>>>16),w(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending!==o.pending_buf_size));)x(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindexa&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),0===c&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindexa&&(e.adler=l(e.adler,o.pending_buf,o.pending-a,a)),0===c&&(o.status=f)}else o.status=f;if(o.status===f&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&b(e),o.pending+2<=o.pending_buf_size&&(x(o,255&e.adler),x(o,e.adler>>8&255),e.adler=0,o.status=p)):o.status=p),0!==o.pending){if(b(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(n)&&4!==t)return v(e,-5);if(o.status===h&&0!==e.avail_in)return v(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&o.status!==h){var k=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,l=e.window;;){if(e.lookahead<=u){if(_(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=l[o=e.strstart-1])===l[++o]&&r===l[++o]&&r===l[++o]){a=e.strstart+u;do{}while(r===l[++o]&&r===l[++o]&&r===l[++o]&&r===l[++o]&&r===l[++o]&&r===l[++o]&&r===l[++o]&&r===l[++o]&&oe.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):r[o.level].func(o,t);if(3!==k&&4!==k||(o.status=h),1===k||3===k)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===k&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(g(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),b(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(x(o,255&e.adler),x(o,e.adler>>8&255),x(o,e.adler>>16&255),x(o,e.adler>>24&255),x(o,255&e.total_in),x(o,e.total_in>>8&255),x(o,e.total_in>>16&255),x(o,e.total_in>>24&255)):(w(o,e.adler>>>16),w(o,65535&e.adler)),b(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==p&&t!==h?v(e,s):(e.state=null,t===p?v(e,-3):0):s},t.deflateSetDictionary=function(e,t){var n,r,i,l,c,u,d,f,p=t.length;if(!e||!e.state)return s;if(2===(l=(n=e.state).wrap)||1===l&&42!==n.status||n.lookahead)return s;for(1===l&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===l&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new o.Buf8(n.w_size),o.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),c=e.avail_in,u=e.next_in,d=e.input,e.avail_in=p,e.next_in=0,e.input=t,_(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<>>=x=y>>>24,h-=x,0===(x=y>>>16&255))j[i++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=v[(65535&y)+(p&(1<>>=x,h-=x),h<15&&(p+=S[r++]<>>=x=y>>>24,h-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=m[(65535&y)+(p&(1<c){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=x,h-=x,k>(x=i-a)){if((x=k-x)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,E=f,0===d){if(_+=s-x,x2;)j[i++]=E[_++],j[i++]=E[_++],j[i++]=E[_++],w-=3;w&&(j[i++]=E[_++],w>1&&(j[i++]=E[_++]))}else{_=i-k;do{j[i++]=j[_++],j[i++]=j[_++],j[i++]=j[_++],w-=3}while(w>2);w&&(j[i++]=j[_++],w>1&&(j[i++]=j[_++]))}break}}break}}while(r>3,p&=(1<<(h-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):c}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):c}function v(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):c}function m(e,t){var n,r;return e?(r=new f,e.state=r,r.window=null,0!==(n=v(e,t))&&(e.state=null),n):c}var g,b,y=!0;function x(e){if(y){var t;for(g=new r.Buf32(512),b=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(l(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;l(2,e.lens,0,32,b,0,e.work,{bits:5}),y=!1}e.lencode=g,e.lenbits=9,e.distcode=b,e.distbits=5}function w(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=i(n.check,R,2,0),b=0,y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=u;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=u;break}if(y-=4,L=8+(15&(b>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=u;break}n.dmax=1<>8&1),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0)),b=0,y=0,n.mode=3;case 3:for(;y<32;){if(0===m)break e;m--,b+=f[h++]<>>8&255,R[2]=b>>>16&255,R[3]=b>>>24&255,n.check=i(n.check,R,4,0)),b=0,y=0,n.mode=4;case 4:for(;y<16;){if(0===m)break e;m--,b+=f[h++]<>8),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=i(n.check,R,2,0)),b=0,y=0,n.mode=5;case 5:if(1024&n.flags){for(;y<16;){if(0===m)break e;m--,b+=f[h++]<>>8&255,n.check=i(n.check,R,2,0)),b=0,y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>m&&(E=m),E&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,h,E,L)),512&n.flags&&(n.check=i(n.check,f,E,h)),m-=E,h+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;E=0;do{L=f[h+E++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&E>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=s;break;case 10:for(;y<32;){if(0===m)break e;m--,b+=f[h++]<>>=7&y,y-=7&y,n.mode=27;break}for(;y<3;){if(0===m)break e;m--,b+=f[h++]<>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6===t){b>>>=2,y-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=u}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===m)break e;m--,b+=f[h++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=u;break}if(n.length=65535&b,b=0,y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>m&&(E=m),E>g&&(E=g),0===E)break e;r.arraySet(p,f,h,E,v),m-=E,h+=E,g-=E,v+=E,n.length-=E;break}n.mode=s;break;case 17:for(;y<14;){if(0===m)break e;m--,b+=f[h++]<>>=5,y-=5,n.ndist=1+(31&b),b>>>=5,y-=5,n.ncode=4+(15&b),b>>>=4,y-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=u;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,y-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},D=l(0,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,D){e.msg="invalid code lengths set",n.mode=u;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,M=65535&Z,!((O=Z>>>24)<=y);){if(0===m)break e;m--,b+=f[h++]<>>=O,y-=O,n.lens[n.have++]=M;else{if(16===M){for(z=O+2;y>>=O,y-=O,0===n.have){e.msg="invalid bit length repeat",n.mode=u;break}L=n.lens[n.have-1],E=3+(3&b),b>>>=2,y-=2}else if(17===M){for(z=O+3;y>>=O)),b>>>=3,y-=3}else{for(z=O+7;y>>=O)),b>>>=7,y-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=u;break}for(;E--;)n.lens[n.have++]=L}}if(n.mode===u)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=u;break}if(n.lenbits=9,A={bits:n.lenbits},D=l(1,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,D){e.msg="invalid literal/lengths set",n.mode=u;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},D=l(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,D){e.msg="invalid distances set",n.mode=u;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(m>=6&&g>=258){e.next_out=v,e.avail_out=g,e.next_in=h,e.avail_in=m,n.hold=b,n.bits=y,a(e,_),v=e.next_out,p=e.output,g=e.avail_out,h=e.next_in,f=e.input,m=e.avail_in,b=n.hold,y=n.bits,n.mode===s&&(n.back=-1);break}for(n.back=0;C=(Z=n.lencode[b&(1<>>16&255,M=65535&Z,!((O=Z>>>24)<=y);){if(0===m)break e;m--,b+=f[h++]<>P)])>>>16&255,M=65535&Z,!(P+(O=Z>>>24)<=y);){if(0===m)break e;m--,b+=f[h++]<>>=P,y-=P,n.back+=P}if(b>>>=O,y-=O,n.back+=O,n.length=M,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=s;break}if(64&C){e.msg="invalid literal/length code",n.mode=u;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(z=n.extra;y>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(Z=n.distcode[b&(1<>>16&255,M=65535&Z,!((O=Z>>>24)<=y);){if(0===m)break e;m--,b+=f[h++]<>P)])>>>16&255,M=65535&Z,!(P+(O=Z>>>24)<=y);){if(0===m)break e;m--,b+=f[h++]<>>=P,y-=P,n.back+=P}if(b>>>=O,y-=O,n.back+=O,64&C){e.msg="invalid distance code",n.mode=u;break}n.offset=M,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(z=n.extra;y>>=n.extra,y-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=u;break}n.mode=25;case 25:if(0===g)break e;if(E=_-g,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=u;break}E>n.wnext?(E-=n.wnext,S=n.wsize-E):S=n.wnext-E,E>n.length&&(E=n.length),j=n.window}else j=p,S=v-n.offset,E=n.length;E>g&&(E=g),g-=E,n.length-=E;do{p[v++]=j[S++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;p[v++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;y<32;){if(0===m)break e;m--,b|=f[h++]<=1&&0===z[O];O--);if(C>O&&(C=O),0===O)return u[d++]=20971520,u[d++]=20971520,p.bits=1,0;for(j=1;j0&&(0===e||1!==O))return-1;for(Z[1]=0,E=1;E852||2===e&&I>592)return 1;for(;;){x=E-P,f[S]y?(w=R[N+f[S]],k=D[A+f[S]]):(w=96,k=0),h=1<>P)+(v-=h)]=x<<24|w<<16|k|0}while(0!==v);for(h=1<>=1;if(0!==h?(L&=h-1,L+=h):L=0,S++,0==--z[E]){if(E===O)break;E=t[n+f[S]]}if(E>C&&(L&g)!==m){for(0===P&&(P=C),b+=j,T=1<<(M=E-P);M+P852||2===e&&I>592)return 1;u[m=L&g]=C<<24|M<<16|b-d|0}}return 0!==L&&(u[b+L]=E-P<<24|64<<16|0),p.bits=C,0}},5604:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(e,t,n){"use strict";var r=n(9187);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=256,a=286,l=30,c=15,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);o(p);var h=new Array(60);o(h);var v=new Array(512);o(v);var m=new Array(256);o(m);var g=new Array(29);o(g);var b,y,x,w=new Array(l);function k(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function E(e){return e<256?v[e]:v[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function M(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=c;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var l=e[2*o+1];0!==l&&(e[2*o]=C(i[l]++,l))}}function P(e){var t;for(t=0;t8?S(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function I(e,t,n,r){var o=2*t,i=2*n;return e[o]>1;n>=1;n--)L(e,i,n);o=s;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],L(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,L(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,l,s=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,v=t.stat_desc.max_length,m=0;for(i=0;i<=c;i++)e.bl_count[i]=0;for(s[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=s[2*s[2*(r=e.heap[n])+1]+1]+1)>v&&(i=v,m++),s[2*r+1]=i,r>u||(e.bl_count[i]++,a=0,r>=h&&(a=p[r-h]),l=s[2*r],e.opt_len+=l*(i+a),f&&(e.static_len+=l*(d[2*r+1]+a)));if(0!==m){do{for(i=v-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[v]--,m-=2}while(m>0);for(i=v;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>u||(s[2*o+1]!==i&&(e.opt_len+=(i-s[2*o+1])*s[2*o],s[2*o+1]=i),r--)}}(e,t),M(i,u,e.bl_count)}function z(e,t,n){var r,o,i=-1,a=t[1],l=0,c=7,s=4;for(0===a&&(c=138,s=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++l>=7;r0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==t?N(e,t,n,r):4===e.strategy||a===o?(j(e,2+(r?1:0),3),D(e,p,h)):(j(e,4+(r?1:0),3),function(e,t,n,r){var o;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),o=0;o>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(m[n]+i+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){j(e,2,3),O(e,256,p),function(e){16===e.bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},249:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(e){e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,n="",r="",o=0;o=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var n,r=e.length+t.length+1,o=new Uint8Array(r),i=0,a=0;a1&&s.push(u)):s.push(u),s.push(e[t+3])}else{var d=.5,f=e[t+0],p=e[t+1],h=e[t+2],v=e[t+3],m=i(f,p,d),g=i(p,h,d),b=i(h,v,d),y=i(m,g,d),x=i(g,b,d),w=i(y,x,d);a([f,m,y,w],0,n,s),a([w,x,b,v],0,n,s)}return s}function l(e,t){return c(e,0,e.length,t)}function c(e,t,n,r,i){for(var a=i||[],l=e[t],s=e[n-1],u=0,d=1,f=t+1;fu&&(u=p,d=f)}return Math.sqrt(u)>r?(c(e,t,d+1,r,a),c(e,d,n,r,a)):(a.length||a.push(l),a.push(s)),a}function s(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15,n=arguments.length>2?arguments[2]:void 0,r=[],o=(e.length-1)/3,i=0;i0?c(r,0,r.length,n):r}n.d(t,{o:function(){return l},s:function(){return s}})},6094:function(e,t,n){"use strict";var r=n(9787),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},4512:function(e,t,n){"use strict";e.exports=n(6094)},8152:function(e,t,n){"use strict";function r(){return Math.floor(Math.random()*Math.pow(2,31))}n.d(t,{W:function(){return r},k:function(){return o}});var o=function(){function e(t){c(this,e),this.seed=t}return s(e,[{key:"next",value:function(){return this.seed?(Math.pow(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Math.pow(2,31):Math.random()}}]),e}()},8234:function(e,t,n){"use strict";function r(e,t,n){if(e&&e.length){var r=d(t,2),o=r[0],i=r[1],a=Math.PI/180*n,l=Math.cos(a),c=Math.sin(a);e.forEach((function(e){var t=d(e,2),n=t[0],r=t[1];e[0]=(n-o)*l-(r-i)*c+o,e[1]=(n-o)*c+(r-i)*l+i}))}}function o(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 u(e,t){var n=t.hachureAngle+90,o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.max(o,.1);var i=[0,0];if(n){var a,c=f(e);try{for(c.s();!(a=c.n()).done;)r(a.value,i,n)}catch(p){c.e(p)}finally{c.f()}}var s=function(e,t){var n,r=[],o=f(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=l(i);a[0].join(",")!==a[a.length-1].join(",")&&a.push([a[0][0],a[0][1]]),a.length>2&&r.push(a)}}catch(p){o.e(p)}finally{o.f()}var c=[];t=Math.max(t,.1);for(var s=[],u=0,d=r;ut.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)})),!s.length)return c;for(var y=[],x=s[0].ymin;y.length||s.length;){if(s.length){for(var w=-1,k=0;kx);k++)w=k;s.splice(0,w+1).forEach((function(e){y.push({s:x,edge:e})}))}if(y=y.filter((function(e){return!(e.edge.ymax<=x)})),y.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)})),y.length>1)for(var _=0;_=y.length)break;var S=y[_].edge,j=y[E].edge;c.push([[Math.round(S.x),x],[Math.round(j.x),x]])}x+=t,y.forEach((function(e){e.edge.x=e.edge.x+t*e.edge.islope}))}return c}(e,o);if(n){var u,d=f(e);try{for(d.s();!(u=d.n()).done;)r(u.value,i,-n)}catch(p){d.e(p)}finally{d.f()}!function(e,t,n){var o=[];e.forEach((function(e){return o.push.apply(o,l(e))})),r(o,t,n)}(s,i,-n)}return s}n.d(t,{Z:function(){return te}});var p=function(){function e(t){c(this,e),this.helper=t}return s(e,[{key:"fillPolygons",value:function(e,t){return this._fillPolygons(e,t)}},{key:"_fillPolygons",value:function(e,t){var n=u(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}},{key:"renderLines",value:function(e,t){var n,r=[],o=f(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;r.push.apply(r,l(this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],t)))}}catch(a){o.e(a)}finally{o.f()}return r}}]),e}(),h=function(e){i(n,e);var t=a(n);function n(){return c(this,n),t.apply(this,arguments)}return s(n,[{key:"fillPolygons",value:function(e,t){var n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);var r,i=u(e,Object.assign({},t,{hachureGap:n})),a=Math.PI/180*t.hachureAngle,c=[],s=.5*n*Math.cos(a),p=.5*n*Math.sin(a),h=f(i);try{for(h.s();!(r=h.n()).done;){var v=d(r.value,2),m=v[0],g=v[1];o([m,g])&&c.push([[m[0]-s,m[1]+p],l(g)],[[m[0]+s,m[1]-p],l(g)])}}catch(b){h.e(b)}finally{h.f()}return{type:"fillSketch",ops:this.renderLines(c,t)}}}]),n}(p),v=function(e){i(n,e);var t=a(n);function n(){return c(this,n),t.apply(this,arguments)}return s(n,[{key:"fillPolygons",value:function(e,t){var n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),o=this._fillPolygons(e,r);return n.ops=n.ops.concat(o.ops),n}}]),n}(p),m=function(){function e(t){c(this,e),this.helper=t}return s(e,[{key:"fillPolygons",value:function(e,t){var n=u(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}},{key:"dotsOnLines",value:function(e,t){var n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);var i=t.fillWeight;i<0&&(i=t.strokeWidth/2);var a,c=r/4,s=f(e);try{for(s.s();!(a=s.n()).done;)for(var u=a.value,d=o(u),p=d/r,h=Math.ceil(p)-1,v=d-h*r,m=(u[0][0]+u[1][0])/2-r/4,g=Math.min(u[0][1],u[1][1]),b=0;bf[0]&&(d=e[1],f=e[0]);for(var p=Math.atan((f[1]-d[1])/(f[0]-d[0])),h=0;hu[0]&&(s=e[1],u=e[0]);for(var d=Math.atan((u[1]-s[1])/(u[0]-s[0])),f=0;f1&&(o*=S=Math.sqrt(S),i*=S);var C=o*o,M=i*i,P=C*M-C*E*E-M*_*_,T=C*E*E+M*_*_,I=(l===c?-1:1)*Math.sqrt(Math.abs(P/T));m=I*o*E/i+(e+n)/2,g=I*-i*_/o+(t+r)/2,h=Math.asin(parseFloat(((t-g)/i).toFixed(9))),v=Math.asin(parseFloat(((r-g)/i).toFixed(9))),ev&&(h-=2*Math.PI),!c&&v>h&&(v-=2*Math.PI)}var L=v-h;if(Math.abs(L)>120*Math.PI/180){var D=v,A=n,z=r;v=c&&v>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,p=O(n=m+o*Math.cos(v),r=g+i*Math.sin(v),A,z,o,i,a,0,c,[v,D,m,g])}L=v-h;var Z=Math.cos(h),R=Math.sin(h),N=Math.cos(v),B=Math.sin(v),H=Math.tan(L/4),W=4/3*o*H,F=4/3*i*H,U=[e,t],K=[e+W*R,t-F*Z],V=[n+W*B,r-F*N],Y=[n,r];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],s)return[K,V,Y].concat(p);p=[K,V,Y].concat(p);for(var G=[],X=0;X2){for(var o=[],i=0;i2*Math.PI&&(h=0,v=2*Math.PI);var m=2*Math.PI/s.curveStepCount,g=Math.min(m/2,(v-h)/2),b=V(g,u,d,f,p,h,v,1,s);if(!s.disableMultiStroke){var y=V(g,u,d,f,p,h,v,1.5,s);b.push.apply(b,l(y))}return a&&(c?b.push.apply(b,l(H(u,d,u+f*Math.cos(h),d+p*Math.sin(h),s)).concat(l(H(u,d,u+f*Math.cos(v),d+p*Math.sin(v),s)))):b.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+f*Math.cos(h),d+p*Math.sin(h)]})),{type:"path",ops:b}}function z(e,t){var n,r=[],o=f(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.length){var a=t.maxRandomnessOffset||0,l=i.length;if(l>2){r.push({op:"move",data:[i[0][0]+B(a,t),i[0][1]+B(a,t)]});for(var c=1;c3&&void 0!==arguments[3]?arguments[3]:1;return n.roughness*r*(R(n)*(t-e)+e)}function B(e,t){return N(-e,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}function H(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5]?o.disableMultiStrokeFill:o.disableMultiStroke,a=W(e,t,n,r,o,!0,!1);if(i)return a;var l=W(e,t,n,r,o,!0,!0);return a.concat(l)}function W(e,t,n,r,o,i,a){var l=Math.pow(e-n,2)+Math.pow(t-r,2),c=Math.sqrt(l),s=1;s=c<200?1:c>500?.4:-.0016668*c+1.233334;var u=o.maxRandomnessOffset||0;u*u*100>l&&(u=c/10);var d=u/2,f=.2+.2*R(o),p=o.bowing*o.maxRandomnessOffset*(r-t)/200,h=o.bowing*o.maxRandomnessOffset*(e-n)/200;p=B(p,o,s),h=B(h,o,s);var v=[],m=function(){return B(d,o,s)},g=function(){return B(u,o,s)},b=o.preserveVertices;return i&&(a?v.push({op:"move",data:[e+(b?0:m()),t+(b?0:m())]}):v.push({op:"move",data:[e+(b?0:B(u,o,s)),t+(b?0:B(u,o,s))]})),a?v.push({op:"bcurveTo",data:[p+e+(n-e)*f+m(),h+t+(r-t)*f+m(),p+e+2*(n-e)*f+m(),h+t+2*(r-t)*f+m(),n+(b?0:m()),r+(b?0:m())]}):v.push({op:"bcurveTo",data:[p+e+(n-e)*f+g(),h+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),h+t+2*(r-t)*f+g(),n+(b?0:g()),r+(b?0:g())]}),v}function F(e,t,n){var r=[];r.push([e[0][0]+B(t,n),e[0][1]+B(t,n)]),r.push([e[0][0]+B(t,n),e[0][1]+B(t,n)]);for(var o=1;o3){var i=[],a=1-n.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(var c=1;c+26&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0,c=this._o(l),s=[],u=A(e,t,n,r,o,i,a,!0,c);if(a&&c.fill)if("solid"===c.fillStyle){var d=Object.assign({},c);d.disableMultiStroke=!0;var f=A(e,t,n,r,o,i,!0,!1,d);f.type="fillPath",s.push(f)}else s.push(function(e,t,n,r,o,i,a){var l=e,c=t,s=Math.abs(n/2),u=Math.abs(r/2);s+=B(.01*s,a),u+=B(.01*u,a);for(var d=o,f=i;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);for(var p=(f-d)/a.curveStepCount,h=[],v=d;v<=f;v+=p)h.push([l+s*Math.cos(v),c+u*Math.sin(v)]);return h.push([l+s*Math.cos(f),c+u*Math.sin(f)]),h.push([l,c]),Z([h],a)}(e,t,n,r,o,i,c));return c.stroke!==q&&s.push(u),this._d("arc",s,c)}},{key:"curve",value:function(e,t){var n=this._o(t),r=[],o=I(e,n);if(n.fill&&n.fill!==q&&e.length>=3){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length;if(n<3)throw new Error("A curve must have at least three points.");var r=[];if(3===n)r.push(G(e[0]),G(e[1]),G(e[2]),G(e[2]));else{var o=[];o.push(e[0],e[0]);for(var i=1;i=4&&(e=a).push.apply(e,l((0,X.s)(s,t))),s=[]},d=function(){u(),a.length&&(i.push(a),a=[])},p=f(o);try{for(p.s();!(r=p.n()).done;){var h=r.value,v=h.key,m=h.data;switch(v){case"M":d(),c=[m[0],m[1]],a.push(c);break;case"L":u(),a.push([m[0],m[1]]);break;case"C":if(!s.length){var g=a.length?a[a.length-1]:c;s.push([g[0],g[1]])}s.push([m[0],m[1]]),s.push([m[2],m[3]]),s.push([m[4],m[5]]);break;case"Z":u(),a.push([c[0],c[1]])}}}catch(j){p.e(j)}finally{p.f()}if(d(),!n)return i;for(var b=[],y=0,x=i;y=0?i.data.map((function(e){return+e.toFixed(t)})):i.data;switch(i.op){case"move":r+="M".concat(a[0]," ").concat(a[1]," ");break;case"bcurveTo":r+="C".concat(a[0]," ").concat(a[1],", ").concat(a[2]," ").concat(a[3],", ").concat(a[4]," ").concat(a[5]," ");break;case"lineTo":r+="L".concat(a[0]," ").concat(a[1]," ")}}}catch(l){o.e(l)}finally{o.f()}return r.trim()}},{key:"toPaths",value:function(e){var t,n=e.sets||[],r=e.options||this.defaultOptions,o=[],i=f(n);try{for(i.s();!(t=i.n()).done;){var a=t.value,l=null;switch(a.type){case"path":l={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:q};break;case"fillPath":l={d:this.opsToPath(a),stroke:q,strokeWidth:0,fill:r.fill||q};break;case"fillSketch":l=this.fillSketch(a,r)}l&&o.push(l)}}catch(c){i.e(c)}finally{i.f()}return o}},{key:"fillSketch",value:function(e,t){var n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||q,strokeWidth:n,fill:q}}}],[{key:"newSeed",value:function(){return(0,x.W)()}}]),e}(),Q=function(){function e(t,n){c(this,e),this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $(n)}return s(e,[{key:"draw",value:function(e){var t,n=e.sets||[],r=e.options||this.getDefaultOptions(),o=this.ctx,i=e.options.fixedDecimalPlaceDigits,a=f(n);try{for(a.s();!(t=a.n()).done;){var l=t.value;switch(l.type){case"path":o.save(),o.strokeStyle="none"===r.stroke?"transparent":r.stroke,o.lineWidth=r.strokeWidth,r.strokeLineDash&&o.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(o.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(o,l,i),o.restore();break;case"fillPath":o.save(),o.fillStyle=r.fill||"";var c="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(o,l,i,c),o.restore();break;case"fillSketch":this.fillSketch(o,l,r)}}}catch(s){a.e(s)}finally{a.f()}}},{key:"fillSketch",value: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,n.fixedDecimalPlaceDigits),e.restore()}},{key:"_drawToContext",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nonzero";e.beginPath();var o,i=f(t.ops);try{for(i.s();!(o=i.n()).done;){var a=o.value,l="number"==typeof n&&n>=0?a.data.map((function(e){return+e.toFixed(n)})):a.data;switch(a.op){case"move":e.moveTo(l[0],l[1]);break;case"bcurveTo":e.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case"lineTo":e.lineTo(l[0],l[1])}}}catch(c){i.e(c)}finally{i.f()}"fillPath"===t.type?e.fill(r):e.stroke()}},{key:"generator",get:function(){return this.gen}},{key:"getDefaultOptions",value:function(){return this.gen.defaultOptions}},{key:"line",value:function(e,t,n,r,o){var i=this.gen.line(e,t,n,r,o);return this.draw(i),i}},{key:"rectangle",value:function(e,t,n,r,o){var i=this.gen.rectangle(e,t,n,r,o);return this.draw(i),i}},{key:"ellipse",value:function(e,t,n,r,o){var i=this.gen.ellipse(e,t,n,r,o);return this.draw(i),i}},{key:"circle",value:function(e,t,n,r){var o=this.gen.circle(e,t,n,r);return this.draw(o),o}},{key:"linearPath",value:function(e,t){var n=this.gen.linearPath(e,t);return this.draw(n),n}},{key:"polygon",value:function(e,t){var n=this.gen.polygon(e,t);return this.draw(n),n}},{key:"arc",value:function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0,c=this.gen.arc(e,t,n,r,o,i,a,l);return this.draw(c),c}},{key:"curve",value:function(e,t){var n=this.gen.curve(e,t);return this.draw(n),n}},{key:"path",value:function(e,t){var n=this.gen.path(e,t);return this.draw(n),n}}]),e}(),J="http://www.w3.org/2000/svg",ee=function(){function e(t,n){c(this,e),this.svg=t,this.gen=new $(n)}return s(e,[{key:"draw",value:function(e){var t,n=e.sets||[],r=e.options||this.getDefaultOptions(),o=this.svg.ownerDocument||window.document,i=o.createElementNS(J,"g"),a=e.options.fixedDecimalPlaceDigits,l=f(n);try{for(l.s();!(t=l.n()).done;){var c=t.value,s=null;switch(c.type){case"path":(s=o.createElementNS(J,"path")).setAttribute("d",this.opsToPath(c,a)),s.setAttribute("stroke",r.stroke),s.setAttribute("stroke-width",r.strokeWidth+""),s.setAttribute("fill","none"),r.strokeLineDash&&s.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&s.setAttribute("stroke-dashoffset","".concat(r.strokeLineDashOffset));break;case"fillPath":(s=o.createElementNS(J,"path")).setAttribute("d",this.opsToPath(c,a)),s.setAttribute("stroke","none"),s.setAttribute("stroke-width","0"),s.setAttribute("fill",r.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||s.setAttribute("fill-rule","evenodd");break;case"fillSketch":s=this.fillSketch(o,c,r)}s&&i.appendChild(s)}}catch(u){l.e(u)}finally{l.f()}return i}},{key:"fillSketch",value:function(e,t,n){var r=n.fillWeight;r<0&&(r=n.strokeWidth/2);var o=e.createElementNS(J,"path");return o.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),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}},{key:"generator",get:function(){return this.gen}},{key:"getDefaultOptions",value:function(){return this.gen.defaultOptions}},{key:"opsToPath",value:function(e,t){return this.gen.opsToPath(e,t)}},{key:"line",value:function(e,t,n,r,o){var i=this.gen.line(e,t,n,r,o);return this.draw(i)}},{key:"rectangle",value:function(e,t,n,r,o){var i=this.gen.rectangle(e,t,n,r,o);return this.draw(i)}},{key:"ellipse",value:function(e,t,n,r,o){var i=this.gen.ellipse(e,t,n,r,o);return this.draw(i)}},{key:"circle",value:function(e,t,n,r){var o=this.gen.circle(e,t,n,r);return this.draw(o)}},{key:"linearPath",value:function(e,t){var n=this.gen.linearPath(e,t);return this.draw(n)}},{key:"polygon",value:function(e,t){var n=this.gen.polygon(e,t);return this.draw(n)}},{key:"arc",value:function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0,c=this.gen.arc(e,t,n,r,o,i,a,l);return this.draw(c)}},{key:"curve",value:function(e,t){var n=this.gen.curve(e,t);return this.draw(n)}},{key:"path",value:function(e,t){var n=this.gen.path(e,t);return this.draw(n)}}]),e}(),te={canvas:function(e,t){return new Q(e,t)},svg:function(e,t){return new ee(e,t)},generator:function(e){return new $(e)},newSeed:function(){return $.newSeed()}}},5714:function(e){e.exports=function(e,t,n){var r=[],o=e.length;if(0===o)return r;var i=t<0?Math.max(0,t+o):t||0;for(void 0!==n&&(o=n<0?n+o:n);o-- >i;)r[o-i]=e[o];return r}},5422:function(e,t,n){"use strict";var r=n(487),o=n.n(r),i=n(631),a=n.n(i),l=n(2052),c=n.n(l),s=n(4010),u=n.n(s),d=n(1469),f=n.n(d),p=n(9329),h=n.n(p),v=n(2044),m={};m.styleTagTransform=h(),m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),o()(v.Z,m),v.Z&&v.Z.locals&&v.Z.locals},487:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2173:function(e,t,n){"use strict";var r=n(9787),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&u({inst:o})}),[e,n,t]),a((function(){return s(o)&&u({inst:o}),e((function(){s(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},5917:function(e,t,n){"use strict";var r=n(9787),o=n(1374),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},1374:function(e,t,n){"use strict";e.exports=n(2173)},5668:function(e,t,n){"use strict";e.exports=n(5917)},940:function(e,t,n){var r={"./ar-SA.json":[7822,2091],"./bg-BG.json":[1203,1628],"./bn-BD.json":[8525,7429],"./ca-ES.json":[510,5130],"./cs-CZ.json":[7605,6265],"./da-DK.json":[2392,1790],"./de-DE.json":[2853,3082],"./el-GR.json":[9876,1513],"./en.json":[1463],"./es-ES.json":[9952,8759],"./eu-ES.json":[5658,8081],"./fa-IR.json":[3747,5330],"./fi-FI.json":[9490,3512],"./fr-FR.json":[7830,3682],"./gl-ES.json":[5199,2943],"./he-IL.json":[1994,2312],"./hi-IN.json":[4646,9828],"./hu-HU.json":[6373,7368],"./id-ID.json":[3247,3808],"./it-IT.json":[3257,6239],"./ja-JP.json":[198,1204],"./kab-KAB.json":[228,9551],"./kk-KZ.json":[8972,22],"./ko-KR.json":[7596,6844],"./ku-TR.json":[2508,3031],"./lt-LT.json":[3755,8340],"./lv-LV.json":[2327,6768],"./mr-IN.json":[5297,3397],"./my-MM.json":[7704,1477],"./nb-NO.json":[1167,2359],"./nl-NL.json":[290,3024],"./nn-NO.json":[4481,3885],"./oc-FR.json":[2284,1690],"./pa-IN.json":[5383,3162],"./percentages.json":[4451],"./pl-PL.json":[3661,3674],"./pt-BR.json":[8881,3721],"./pt-PT.json":[5622,5395],"./ro-RO.json":[2013,5089],"./ru-RU.json":[2253,8124],"./si-LK.json":[5497,1302],"./sk-SK.json":[4570,8750],"./sl-SI.json":[1984,6071],"./sv-SE.json":[6006,8534],"./ta-IN.json":[3952,2404],"./th-TH.json":[2596,537],"./tr-TR.json":[7315,4977],"./uk-UA.json":[334,7759],"./vi-VN.json":[456,4e3],"./zh-CN.json":[1037,4680],"./zh-HK.json":[5334,7920],"./zh-TW.json":[931,3421]};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(1).map(n.e)).then((function(){return n.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=940,e.exports=o},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},6479:function(e,t,n){var r=n(7316);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},7316:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}},4295:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),l=n(1667),c=n.n(l),s=new URL(n(3940),n.b),u=new URL(n(3147),n.b),d=new URL(n(8303),n.b),f=new URL(n(1273),n.b),p=new URL(n(9577),n.b),h=new URL(n(9729),n.b),v=a()(o()),m=c()(s),g=c()(u),b=c()(d),y=c()(f),x=c()(p),w=c()(h);v.push([e.id,'@font-face{font-family:"Virgil";src:url('+m+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+g+');font-display:swap}@font-face{font-family:"Assistant";src:url('+b+');font-display:swap;font-weight:400}@font-face{font-family:"Assistant";src:url('+y+');font-display:swap;font-weight:500}@font-face{font-family:"Assistant";src:url('+x+');font-display:swap;font-weight:600}@font-face{font-family:"Assistant";src:url('+w+");font-display:swap;font-weight:700}",""]),t.Z=v},6086:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".zoom-actions,.undo-redo-buttons{background-color:var(--island-bg-color);border-radius:var(--border-radius-lg)}.zoom-button,.undo-redo-buttons button{border:1px solid var(--default-border-color) !important;border-radius:0 !important;background-color:rgba(0,0,0,0) !important;font-size:.875rem !important;width:var(--lg-button-size);height:var(--lg-button-size)}.zoom-button svg,.undo-redo-buttons button svg{width:var(--lg-icon-size) !important;height:var(--lg-icon-size) !important}.zoom-button .ToolIcon__icon,.undo-redo-buttons button .ToolIcon__icon{width:100%;height:100%}.reset-zoom-button{border-left:0 !important;border-right:0 !important;padding:0 .625rem !important;width:3.75rem !important;justify-content:center;color:var(--text-primary-color)}.zoom-out-button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-out-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-out-button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.zoom-in-button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-in-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-in-button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.undo-redo-buttons .undo-button-container button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important;border-right:0 !important}:root[dir=rtl] .undo-redo-buttons .undo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .undo-button-container button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.undo-redo-buttons .redo-button-container button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .undo-redo-buttons .redo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .redo-button-container button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}",""]),t.Z=a},3729:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Avatar{width:1.25rem;height:1.25rem;position:relative;border-radius:100%;outline-offset:2px;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;font-size:.625rem;font-weight:500;line-height:1}.excalidraw .Avatar-img{width:100%;height:100%;border-radius:100%}.excalidraw .Avatar::before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid var(--avatar-border-color);border-radius:100%}',""]),t.Z=a},3137:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),l=n(1667),c=n.n(l),s=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(o()),f=c()(s),p=c()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+f+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-gray-80);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: rgba(255, 255, 255, 0.96);--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: #ffffff;--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top);--select-highlight-color: #339af0;--shadow-island: 0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702);--button-hover-bg: var(--color-gray-10);--default-border-color: var(--color-gray-30);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-gray-20);--sidebar-bg-color: #fff;--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-gray-80);--color-selection: #6965db;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-promo: #e70078;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+p+");--focus-highlight-color: #228be6;--icon-fill-color: var(--color-gray-40);--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #262627;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-bg-color: #2c2c2c;--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--text-primary-color: var(--color-gray-40);--button-hover-bg: var(--color-gray-80);--default-border-color: var(--color-gray-80);--shadow-island: 0px 13px 33px rgba(0, 0, 0, 0.07), 0px 4.13px 9.94853px rgba(0, 0, 0, 0.0456112), 0px 1.13px 4.13211px rgba(0, 0, 0, 0.035), 0px 0.769896px 1.4945px rgba(0, 0, 0, 0.0243888);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--sidebar-border-color: var(--color-gray-85);--sidebar-bg-color: #191919;--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-promo: #d297ff}.excalidraw .excalidraw-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color))}.excalidraw .excalidraw-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .excalidraw-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .excalidraw-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .excalidraw-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .excalidraw-button.active:hover{background-color:var(--color-primary-light)}.excalidraw .excalidraw-button.active svg{color:var(--button-color, var(--color-primary-darker))}",""]),t.Z=d},4241:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Card{display:flex;flex-direction:column;align-items:center;max-width:290px;margin:1em;text-align:center}.excalidraw .Card .Card-icon{font-size:2.6em;display:flex;flex:0 0 auto;padding:1.4rem;border-radius:50%;background:var(--card-color);color:#fff}.excalidraw .Card .Card-icon svg{width:2.8rem;height:2.8rem}.excalidraw .Card .Card-details{font-size:.96em;min-height:90px;padding:0 1em;margin-bottom:auto}.excalidraw .Card .Card-button.ToolIcon_type_button{height:2.5rem;margin-top:1em;margin-bottom:.3em;background-color:var(--card-color)}.excalidraw .Card .Card-button.ToolIcon_type_button:hover{background-color:var(--card-color-darker)}.excalidraw .Card .Card-button.ToolIcon_type_button:active{background-color:var(--card-color-darkest)}.excalidraw .Card .Card-button.ToolIcon_type_button .ToolIcon__label{color:#fff}.excalidraw .Card .Card-button.ToolIcon_type_button .Spinner{--spinner-color: #fff}",""]),t.Z=a},6029:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus){box-shadow:0 0 0 2px #4dabf7}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) svg{display:block;opacity:.3}.excalidraw .Checkbox:active .Checkbox-box{box-shadow:0 0 2px 1px inset #1c7ed6 !important}.excalidraw .Checkbox:hover .Checkbox-box{background-color:rgba(208,235,255,.2)}.excalidraw .Checkbox.is-checked .Checkbox-box{background-color:#d0ebff}.excalidraw .Checkbox.is-checked .Checkbox-box svg{display:block}.excalidraw .Checkbox.is-checked:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .Checkbox .Checkbox-box{width:22px;height:22px;padding:0;flex:0 0 auto;margin:0 1em;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #1c7ed6;background-color:rgba(0,0,0,0);border-radius:4px;color:#1c7ed6;border:0}.excalidraw .Checkbox .Checkbox-box:focus{box-shadow:0 0 0 3px #1c7ed6}.excalidraw .Checkbox .Checkbox-box svg{display:none;width:16px;height:16px;stroke-width:3px}.excalidraw .Checkbox .Checkbox-label{display:flex;align-items:center}.excalidraw .Checkbox .excalidraw-tooltip-icon{width:1em;height:1em}",""]),t.Z=a},2345:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),l=n(1667),c=n.n(l),s=new URL(n(9669),n.b),u=a()(o()),d=c()(s);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .color-picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 0 1px 4px;border-radius:4px;position:absolute}:root[dir=ltr] .excalidraw .color-picker{left:-5.5px}:root[dir=rtl] .excalidraw .color-picker{right:-5.5px}.excalidraw .color-picker-control-container{display:grid;grid-template-columns:auto 1fr;align-items:center;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .color-picker-control-container+.popover{position:static}.excalidraw .color-picker-popover-container{margin-top:-0.25rem}:root[dir=ltr] .excalidraw .color-picker-popover-container{margin-left:.5rem}:root[dir=rtl] .excalidraw .color-picker-popover-container{margin-left:-3rem}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color);position:absolute;top:10px}:root[dir=ltr] .excalidraw .color-picker-triangle{-webkit-transform:rotate(270deg);transform:rotate(270deg);left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle{-webkit-transform:rotate(90deg);transform:rotate(90deg);right:-14px}.excalidraw .color-picker-triangle-shadow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1)}:root[dir=ltr] .excalidraw .color-picker-triangle-shadow{left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle-shadow{right:-16px}.excalidraw .color-picker-content--default{padding:.5rem;display:grid;grid-template-columns:repeat(5, auto);grid-gap:.5rem;border-radius:4px}.excalidraw .color-picker-content--default:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-picker-content--canvas{display:flex;flex-direction:column;padding:.25rem}.excalidraw .color-picker-content--canvas-title{color:#868e96;font-size:12px;padding:0 .25rem}.excalidraw .color-picker-content--canvas-colors{padding:.5rem 0}.excalidraw .color-picker-content--canvas-colors .color-picker-swatch{margin:0 .25rem}.excalidraw .color-picker-content .color-input-container{grid-column:1/span 5}.excalidraw .color-picker-swatch{position:relative;height:1.875rem;width:1.875rem;cursor:pointer;border-radius:4px;margin:0;box-sizing:border-box;border:1px solid #ddd;background-color:currentColor !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker-swatch:focus{box-shadow:0 0 4px 1px currentColor;border-color:var(--select-highlight-color)}.excalidraw .color-picker-transparent{border-radius:4px;box-shadow:rgba(0,0,0,.1) 0 0 0 1px inset;position:absolute;top:0;right:0;bottom:0;left:0}.excalidraw .color-picker-transparent,.excalidraw .color-picker-label-swatch{background:url("+d+') left center}.excalidraw .color-picker-hash{height:var(--default-button-size);flex-shrink:0;padding:.5rem .5rem .5rem .75rem;border:1px solid var(--default-border-color);border-right:0;box-sizing:border-box;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg)}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .color-input-container{display:flex}.excalidraw .color-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:var(--default-button-size);border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .color-picker-input:focus-visible{box-shadow:none}.excalidraw .color-picker-label-swatch-container{border:1px solid var(--default-border-color);border-radius:var(--border-radius-lg);width:var(--default-button-size);height:var(--default-button-size);box-sizing:border-box;overflow:hidden}.excalidraw .color-picker-label-swatch{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--swatch-color) !important;overflow:hidden;position:relative;-webkit-filter:var(--theme-filter);filter:var(--theme-filter);border:0 !important}.excalidraw .color-picker-label-swatch svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .color-picker-label-swatch:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .color-picker-label-swatch:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .color-picker-label-swatch.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .color-picker-label-swatch.active:hover{background-color:var(--color-primary-light)}.excalidraw .color-picker-label-swatch.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .color-picker-label-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--swatch-color)}.excalidraw .color-picker-keybinding{position:absolute;bottom:2px;font-size:.7em}:root[dir=ltr] .excalidraw .color-picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .color-picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .color-picker-keybinding{display:none}.excalidraw .color-picker-type-canvasBackground .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementBackground .color-picker-keybinding{color:#fff}.excalidraw .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementStroke .color-picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .color-picker-type-elementBackground .color-picker-keybinding{color:#000}.excalidraw.theme--dark .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#000}',""]),t.Z=u},9393:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .confirm-dialog-buttons{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;justify-content:flex-end}",""]),t.Z=a},6578:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style:none;-webkit-user-select:none;user-select:none;margin:-0.25rem 0 0 .125rem;padding:.5rem 0;background-color:var(--popup-secondary-bg-color);border:1px solid var(--button-gray-3);cursor:default}.excalidraw .context-menu button{color:var(--popup-text-color)}.excalidraw .context-menu-item{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:rgba(0,0,0,0);border:none;white-space:nowrap;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-item.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"\u2713"}.excalidraw .context-menu-item.dangerous .context-menu-item__label{color:#f03e3e}.excalidraw .context-menu-item .context-menu-item__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-item .context-menu-item__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-item:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-item:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-item:hover.dangerous .context-menu-item__label{color:var(--popup-bg-color)}.excalidraw .context-menu-item:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-item{display:block}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__shortcut{display:none}.excalidraw .context-menu-item-separator{border:none;border-top:1px solid #adb5bd}',""]),t.Z=a},9482:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{margin:0;text-align:left;font-size:1.25rem;border-bottom:1px solid var(--dialog-border-color);padding:0 0 .75rem;margin-bottom:1.5rem}",""]),t.Z=a},6148:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Dialog__action-button{position:relative;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;padding:.5rem 1.5rem;border:1px solid var(--default-border-color);background-color:rgba(0,0,0,0);height:3rem;border-radius:var(--border-radius-lg);letter-spacing:.4px;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;-webkit-user-select:none;user-select:none}.excalidraw .Dialog__action-button svg{display:block;width:1rem;height:1rem}.excalidraw .Dialog__action-button--danger{background-color:var(--color-danger);border-color:var(--color-danger);color:#fff}.excalidraw .Dialog__action-button--primary{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.excalidraw.theme--dark .Dialog__action-button--danger{color:var(--color-gray-100)}.excalidraw.theme--dark .Dialog__action-button--primary{color:var(--color-gray-100)}",""]),t.Z=a},7955:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),l=n(1667),c=n.n(l),s=new URL(n(9669),n.b),u=a()(o()),d=c()(s);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+d+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3);display:flex;justify-content:center;align-items:center}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{-webkit-filter:none;filter:none}.excalidraw .ExportDialog__actions{width:100%;display:flex;grid-gap:calc(var(--space-factor)*2);align-items:top;justify-content:space-between}.excalidraw--mobile.excalidraw .ExportDialog{display:flex;flex-direction:column}.excalidraw--mobile.excalidraw .ExportDialog__actions{flex-direction:column;align-items:center}.excalidraw--mobile.excalidraw .ExportDialog__actions>*{margin-bottom:calc(var(--space-factor)*3)}.excalidraw--mobile.excalidraw .ExportDialog__preview canvas{max-height:30vh}.excalidraw--mobile.excalidraw .ExportDialog__dialog,.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{height:100%;box-sizing:border-box}.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{overflow-y:auto}.excalidraw .ExportDialog--json .ExportDialog-cards{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));justify-items:center;row-gap:2em}@media(max-width: 460px){.excalidraw .ExportDialog--json .ExportDialog-cards{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}.excalidraw .ExportDialog--json .ExportDialog-cards .Card-details{min-height:40px}}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:1em auto;align-items:flex-start;flex-direction:column}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName .TextInput{width:auto}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName-label{margin:.625em 0;font-weight:bold}.excalidraw button.ExportDialog-imageExportButton{border:0;width:5rem;height:5rem;margin:0 .2em;padding:0;display:flex;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--button-color);box-shadow:0 3px 5px -1px rgba(0,0,0,.28),0 6px 10px 0 rgba(0,0,0,.14);font-family:Cascadia;font-size:1.8em;color:#fff}.excalidraw button.ExportDialog-imageExportButton:hover{background-color:var(--button-color-darker)}.excalidraw button.ExportDialog-imageExportButton:active{background-color:var(--button-color-darkest);box-shadow:none}.excalidraw button.ExportDialog-imageExportButton svg{width:.9em}",""]),t.Z=u},3195:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:all}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),t.Z=a},2978:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:bold;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;border:1px solid var(--default-border-color);padding:.625rem 1rem;border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw .HelpDialog__btn:hover{text-decoration:none}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:bold;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;-webkit-column-gap:.25rem;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}",""]),t.Z=a},1587:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--color-gray-40);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}",""]),t.Z=a},9478:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .picker-container{display:inline-block;box-sizing:border-box;margin-right:.25rem}.excalidraw .picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 2px 2px 4px 2px;border-radius:4px;position:absolute}.excalidraw .picker-container button,.excalidraw .picker button{position:relative;display:flex;align-items:center;justify-content:center}.excalidraw .picker-container button:focus-visible,.excalidraw .picker button:focus-visible{outline:rgba(0,0,0,0);background-color:var(--button-gray-2)}.excalidraw .picker-container button:focus-visible svg,.excalidraw .picker button:focus-visible svg{opacity:1}.excalidraw .picker-container button:hover,.excalidraw .picker button:hover{background-color:var(--button-gray-2)}.excalidraw .picker-container button:active,.excalidraw .picker button:active{background-color:var(--button-gray-3)}.excalidraw .picker-container button:disabled,.excalidraw .picker button:disabled{cursor:not-allowed}.excalidraw .picker-container button svg,.excalidraw .picker button svg{margin:0;width:36px;height:18px;pointer-events:none}.excalidraw .picker button{padding:.25rem .28rem .35rem .25rem}.excalidraw .picker-triangle{width:0;height:0;position:relative;top:-10px;z-index:10}:root[dir=ltr] .excalidraw .picker-triangle{left:12px}:root[dir=rtl] .excalidraw .picker-triangle{right:12px}.excalidraw .picker-triangle:before{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color)}.excalidraw .picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(3, auto);grid-gap:.5rem;border-radius:4px}:root[dir=rtl] .excalidraw .picker-content{padding:.4rem}.excalidraw .picker-keybinding{position:absolute;bottom:2px;font-size:.7em;color:var(--keybinding-color)}:root[dir=ltr] .excalidraw .picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .picker-keybinding{display:none}.excalidraw .picker-type-canvasBackground .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementBackground .picker-keybinding{color:#fff}.excalidraw .picker-swatch[aria-label=transparent] .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementStroke .picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding{color:#000}.excalidraw.theme--dark .picker-swatch[aria-label=transparent] .picker-keybinding{color:#000}',""]),t.Z=a},7369:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Island{--padding: 0;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .Island.zen-mode{box-shadow:none}",""]),t.Z=a},1434:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;gap:.75rem}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out, -webkit-transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{-webkit-transform:translate(0, 92px);transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{height:30px;position:absolute;bottom:10px;font-size:10px;padding:10px;font-weight:500;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:15px}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:15px}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right,.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{pointer-events:all}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}",""]),t.Z=a},2316:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.library-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:auto;height:var(--lg-button-size);display:flex;align-items:center;gap:.5rem;line-height:0;font-size:.75rem;letter-spacing:.4px}.library-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.library-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.library-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.library-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.library-button.active:hover{background-color:var(--color-primary-light)}.library-button.active svg{color:var(--button-color, var(--color-primary-darker))}.library-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.library-button__label{display:none}@media screen and (min-width: 1024px){.library-button__label{display:block}}",""]),t.Z=a},8923:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .layer-ui__library-sidebar{display:flex;flex-direction:column}.excalidraw .layer-ui__library{display:flex;flex-direction:column;flex:1 1 auto}.excalidraw .layer-ui__library .layer-ui__library-header{display:flex;align-items:center;width:100%;margin:2px 0 15px 0}.excalidraw .layer-ui__library .layer-ui__library-header .Spinner{margin-right:1rem}.excalidraw .layer-ui__library .layer-ui__library-header button{margin:0 2px}.excalidraw .layer-ui__sidebar .library-menu-items-container{height:100%;width:100%}.excalidraw .library-actions-counter{background-color:var(--color-primary);color:var(--color-primary-light);font-weight:bold;display:flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;position:absolute;bottom:-0.25rem;right:-0.25rem;font-size:.625rem;pointer-events:none}.excalidraw .layer-ui__library-message{padding:2rem;min-width:200px;display:flex;flex-direction:column;align-items:center;flex-grow:1;justify-content:center}.excalidraw .layer-ui__library-message span{font-size:.8em}.excalidraw .publish-library-success .Dialog__content{display:flex;flex-direction:column}.excalidraw .publish-library-success-close.ToolIcon_type_button{background-color:#228be6;align-self:flex-end}.excalidraw .publish-library-success-close.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon{width:auto;font-size:1rem;color:#fff;padding:0 .5rem}.excalidraw .library-menu-browse-button{margin:1rem auto;padding:.875rem 1rem;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:var(--border-radius-lg);background-color:var(--color-primary);color:#fff;text-align:center;white-space:nowrap;text-decoration:none !important;font-weight:600;font-size:.75rem}.excalidraw .library-menu-browse-button:hover{background-color:var(--color-primary-darker)}.excalidraw .library-menu-browse-button:active{background-color:var(--color-primary-darkest)}.excalidraw.theme--dark .library-menu-browse-button{color:var(--color-gray-100)}.excalidraw .library-menu-browse-button--mobile{min-height:22px;margin-left:auto}.excalidraw .library-menu-browse-button--mobile a{padding-right:0}.excalidraw .layer-ui__sidebar__header .dropdown-menu.dropdown-menu--mobile{top:100%}.excalidraw .layer-ui__sidebar__header .dropdown-menu .dropdown-menu-container{--gap: 0;z-index:1;position:absolute;top:100%;left:0;width:196px;box-shadow:var(--library-dropdown-shadow);border-radius:var(--border-radius-lg);padding:.25rem .5rem}:root[dir=rtl] .excalidraw .layer-ui__sidebar__header .dropdown-menu .dropdown-menu-container{right:0;left:auto}",""]),t.Z=a},6440:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw{--container-padding-y: 1.5rem;--container-padding-x: 0.75rem}.excalidraw .library-menu-items__no-items{text-align:center;color:var(--color-gray-70);line-height:1.5;font-size:.875rem;width:100%}.excalidraw .library-menu-items__no-items__label{color:var(--color-primary);font-weight:bold;font-size:1.125rem;margin-bottom:.75rem}.excalidraw.theme--dark .library-menu-items__no-items{color:var(--color-gray-40)}.excalidraw .library-menu-items-container{display:flex;flex-grow:1;flex-shrink:1;flex-basis:0;overflow-y:auto;flex-direction:column;height:100%;justify-content:center;margin:0;border-bottom:1px solid var(--sidebar-border-color);position:relative}.excalidraw .library-menu-items-container__row{display:grid;grid-template-columns:repeat(4, 1fr);gap:1rem}.excalidraw .library-menu-items-container__items{row-gap:.5rem;padding:var(--container-padding-y) var(--container-padding-x);flex:1;overflow-y:auto;overflow-x:hidden;margin-bottom:1rem}.excalidraw .library-menu-items-container__header{color:var(--color-primary);font-size:1.125rem;font-weight:bold;margin-bottom:.75rem}.excalidraw .library-menu-items-container__header--excal{margin-top:2.5rem}.excalidraw .library-menu-items-container .separator{width:100%;display:flex;align-items:center;font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}",""]),t.Z=a},2701:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .library-unit{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;justify-content:center;position:relative;width:55px;height:55px;box-sizing:border-box;border-radius:var(--border-radius-lg)}.excalidraw .library-unit--hover{border-color:var(--color-primary)}.excalidraw .library-unit--selected{border-color:var(--color-primary);border-width:1px}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{-webkit-filter:var(--theme-filter);filter:var(--theme-filter);flex-grow:1;max-height:100%;max-width:100%}.excalidraw .library-unit__checkbox-container,.excalidraw .library-unit__checkbox-container:hover,.excalidraw .library-unit__checkbox-container:active{align-items:center;background:none;border:none;color:var(--icon-fill-color);display:flex;justify-content:center;margin:0;padding:.5rem;position:absolute;left:2rem;bottom:2rem;cursor:pointer}.excalidraw .library-unit__checkbox-container input,.excalidraw .library-unit__checkbox-container:hover input,.excalidraw .library-unit__checkbox-container:active input{cursor:pointer}.excalidraw .library-unit__checkbox{position:absolute;top:.125rem;right:.125rem;margin:0}.excalidraw .library-unit__checkbox .Checkbox-box{margin:0;width:1rem;height:1rem;border-radius:4px;background-color:var(--color-primary-light);border:1px solid var(--color-primary);box-shadow:none !important;padding:2px}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:var(--color-primary-light)}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box{background-color:var(--color-primary) !important}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box svg{color:var(--color-primary-light)}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{-webkit-transform:scale(1);transform:scale(1);-webkit-animation:library-unit__adder-animation 1s ease-in infinite;animation:library-unit__adder-animation 1s ease-in infinite;position:absolute;width:1.5rem;height:1.5rem;background-color:var(--color-primary);border-radius:var(--border-radius-md);display:flex;justify-content:center;align-items:center;pointer-events:none}.excalidraw .library-unit__adder svg{color:var(--color-primary-light);width:1rem;height:1rem}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8)}.excalidraw .library-unit__active{cursor:pointer}@-webkit-keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}",""]),t.Z=a},6843:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw.excalidraw-modal-container{position:absolute;z-index:10}.excalidraw .Modal{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(var(--space-factor)*10)}.excalidraw .Modal .Island{padding:2.5rem !important}.excalidraw .Modal__background{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(18,18,18,.2)}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-animation:Modal__content_fade-in .1s ease-out .05s forwards;animation:Modal__content_fade-in .1s ease-out .05s forwards;position:relative;overflow-y:auto;background:var(--island-bg-color);border:1px solid var(--dialog-border-color);box-shadow:var(--modal-shadow);border-radius:6px;box-sizing:border-box}.excalidraw .Modal__content:focus{outline:none}.excalidraw--mobile.excalidraw .Modal__content{max-width:100%;border:0;border-radius:0}@-webkit-keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.excalidraw .Modal__close{color:var(--icon-fill-color);margin:0;padding:.375rem;position:absolute;top:1rem;right:1rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Modal__close svg{width:1.5rem;height:1.5rem}.excalidraw--mobile.excalidraw .Modal{padding:0}.excalidraw--mobile.excalidraw .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.Z=a},8461:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}",""]),t.Z=a},9935:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .popover{position:absolute;z-index:10;padding:5px 0 5px;outline:none}",""]),t.Z=a},532:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".ProjectName{margin:auto;display:flex;align-items:center}.ProjectName .TextInput{height:calc(1rem - 3px);width:200px;overflow:hidden;text-align:center;margin-left:8px;text-overflow:ellipsis}.ProjectName .TextInput--readonly{background:none;border:none;width:auto;max-width:200px;padding-left:2px}.ProjectName .TextInput--readonly:hover{background:none}",""]),t.Z=a},7589:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em 0;display:flex;justify-content:space-between;align-items:center}.excalidraw .publish-library__fields label span{font-weight:500;font-size:1rem;color:#868e96}.excalidraw .publish-library__fields label input,.excalidraw .publish-library__fields label textarea{width:70%;padding:.6em;font-family:var(--ui-font)}.excalidraw .publish-library__fields label .required{color:#e03131;margin:.2rem}.excalidraw .publish-library__buttons{display:flex;padding:.2rem 0;justify-content:flex-end;gap:.5rem}.excalidraw .publish-library__buttons .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .publish-library__buttons .ToolIcon_type_button{margin-left:1rem;padding:0 .5rem}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button{background-color:#228be6}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button{background-color:#adb5bd}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button:hover{background-color:#868e96}.excalidraw .publish-library__buttons .ToolIcon__icon{color:#fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner{--spinner-color: #fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner svg{padding:.5rem}.excalidraw .publish-library .selected-library-items{display:flex;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-warning{color:#fa5252}.excalidraw .publish-library-note{padding:1em 0;font-style:italic;font-size:14px;display:block}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item-status{position:absolute;top:.3rem;left:.3rem;font-size:.7rem;color:#f03e3e;background:rgba(255,255,255,.9);padding:.1rem .2rem;border-radius:.2rem}.excalidraw .single-library-item__svg{background-color:#fff;padding:.3rem;width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2)}.excalidraw .single-library-item__svg svg{width:100%;height:100%}.excalidraw .single-library-item .ToolIcon__icon{background-color:#fff;width:auto;height:auto;margin:0 .5rem}.excalidraw .single-library-item .ToolIcon,.excalidraw .single-library-item .ToolIcon_type_button:hover{background-color:#fff}.excalidraw .single-library-item .required,.excalidraw .single-library-item .error{color:#e03131;font-weight:bold;font-size:1rem;margin:.2rem}.excalidraw .single-library-item .error{font-weight:500;margin:0;padding:.3em 0}.excalidraw .single-library-item--remove{position:absolute;top:.2rem;right:1rem}.excalidraw .single-library-item--remove .ToolIcon__icon{margin:0}.excalidraw .single-library-item--remove .ToolIcon__icon{background-color:#fa5252}.excalidraw .single-library-item--remove .ToolIcon__icon:hover{background-color:#f03e3e}.excalidraw .single-library-item--remove .ToolIcon__icon:active{background-color:#e03131}.excalidraw .single-library-item--remove svg{color:#fff;padding:.26rem;border-radius:.3em;width:1rem;height:1rem}",""]),t.Z=a},8208:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Sidebar__close-btn,.excalidraw .Sidebar__pin-btn,.excalidraw .Sidebar__dropdown-btn{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .Sidebar__close-btn svg,.excalidraw .Sidebar__pin-btn svg,.excalidraw .Sidebar__dropdown-btn svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .Sidebar__close-btn:hover,.excalidraw .Sidebar__pin-btn:hover,.excalidraw .Sidebar__dropdown-btn:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .Sidebar__close-btn:active,.excalidraw .Sidebar__pin-btn:active,.excalidraw .Sidebar__dropdown-btn:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .Sidebar__close-btn.active,.excalidraw .Sidebar__pin-btn.active,.excalidraw .Sidebar__dropdown-btn.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .Sidebar__close-btn.active:hover,.excalidraw .Sidebar__pin-btn.active:hover,.excalidraw .Sidebar__dropdown-btn.active:hover{background-color:var(--color-primary-light)}.excalidraw .Sidebar__close-btn.active svg,.excalidraw .Sidebar__pin-btn.active svg,.excalidraw .Sidebar__dropdown-btn.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .Sidebar__close-btn svg,.excalidraw .Sidebar__pin-btn svg,.excalidraw .Sidebar__dropdown-btn svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .Sidebar__pin-btn--pinned{background-color:var(--color-primary);border-color:var(--color-primary)}.excalidraw .Sidebar__pin-btn--pinned svg{color:#fff}.excalidraw .Sidebar__pin-btn--pinned:hover,.excalidraw .Sidebar__pin-btn--pinned:active{background-color:var(--color-primary-darker)}.excalidraw.theme--dark .Sidebar__pin-btn--pinned svg{color:var(--color-gray-90)}.excalidraw .layer-ui__sidebar{position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color);padding:0;box-sizing:border-box}:root[dir=rtl] .excalidraw .layer-ui__sidebar{left:0;right:auto}.excalidraw .layer-ui__sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .layer-ui__sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .layer-ui__sidebar .Island{box-shadow:none}.excalidraw .layer-ui__sidebar .ToolIcon__icon{border-radius:var(--border-radius-md)}.excalidraw .layer-ui__sidebar .ToolIcon__icon__close .Modal__close{width:calc(var(--space-factor)*7);height:calc(var(--space-factor)*7);display:flex;justify-content:center;align-items:center;color:var(--color-text)}.excalidraw .layer-ui__sidebar .Island{--padding: 0;background-color:var(--island-bg-color);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .layer-ui__sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem;border-bottom:1px solid var(--sidebar-border-color)}.excalidraw .layer-ui__sidebar__header__buttons{display:flex;align-items:center;gap:.625rem}",""]),t.Z=a},5892:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{-webkit-animation:rotate 1.6s linear infinite;animation:rotate 1.6s linear infinite;-webkit-transform-origin:center center;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);-webkit-animation:dash 1.6s linear 0s infinite;animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}@keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}",""]),t.Z=a},3874:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Stack{--gap: 0;display:grid;gap:calc(var(--space-factor)*var(--gap))}.excalidraw .Stack_vertical{grid-template-columns:auto;grid-auto-flow:row;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content}",""]),t.Z=a},2681:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10;pointer-events:all}.excalidraw .Stats h3{margin:0 24px 8px 0;white-space:nowrap}.excalidraw .Stats .close{float:right;height:16px;width:16px;cursor:pointer}.excalidraw .Stats .close svg{width:100%;height:100%}.excalidraw .Stats table{width:100%}.excalidraw .Stats table th{border-bottom:1px solid var(--input-border-color);padding:4px}.excalidraw .Stats table tr td:nth-child(2){min-width:24px;text-align:right}:root[dir=rtl] .excalidraw .Stats{left:12px;right:initial}:root[dir=rtl] .excalidraw .Stats h3{margin:0 0 8px 24px}:root[dir=rtl] .excalidraw .Stats .close{float:left}",""]),t.Z=a},6759:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .TextInput{display:inline-block}",""]),t.Z=a},9650:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Toast{-webkit-animation:fade-in .5s;animation:fade-in .5s;background-color:var(--button-gray-1);border-radius:4px;bottom:10px;box-sizing:border-box;cursor:default;left:50%;margin-left:-150px;padding:4px 0;position:absolute;text-align:center;width:300px;z-index:999999}.excalidraw .Toast .Toast__message{padding:0 1.6rem;color:var(--popup-text-color);white-space:pre-wrap}.excalidraw .Toast .close{position:absolute;top:0;right:0;padding:.4rem}.excalidraw .Toast .close .ToolIcon__icon{width:1.2rem;height:1.2rem}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),t.Z=a},2044:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none !important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-primary-darker)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary-light);--keybinding-color: var(--color-gray-60)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-primary-darker)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--color-primary-darkest)}.excalidraw .ToolIcon--plain{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{-webkit-margin-start:0;margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible,.excalidraw .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,.excalidraw .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button.ToolIcon--selected:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{display:none !important}.excalidraw .ToolIcon_type_floating{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:hover{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:active{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}",""]),t.Z=a},9144:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .5rem}",""]),t.Z=a},6626:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-tooltip{position:fixed;z-index:1000;padding:8px;border-radius:6px;box-sizing:border-box;pointer-events:none;word-wrap:break-word;background:#000;line-height:1.5;text-align:center;font-size:13px;font-weight:500;color:#fff;display:none}.excalidraw-tooltip.excalidraw-tooltip--visible{display:block}.excalidraw-tooltip-wrapper{display:flex}.excalidraw-tooltip-icon{width:.9em;height:.9em;margin-left:5px;margin-top:1px;display:flex}.excalidraw--mobile.excalidraw-tooltip-icon{display:none}",""]),t.Z=a},6359:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .UserList{pointer-events:none;padding:var(--space-factor) var(--space-factor) var(--space-factor) var(--space-factor);display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.625rem;max-height:140px;max-width:290px;overflow:hidden}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:all}.excalidraw .UserList_mobile{padding:0;justify-content:normal;margin:.5rem 0}",""]),t.Z=a},7399:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dropdown-menu{position:absolute;top:100%;margin-top:.25rem}.excalidraw .dropdown-menu--mobile{bottom:55px;top:auto;left:0;width:100%;display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .dropdown-menu--mobile .dropdown-menu-container{padding:8px 8px;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode{box-shadow:none}.excalidraw .dropdown-menu .dropdown-menu-container{background-color:#fff !important;max-height:calc(100vh - 150px);overflow-y:auto;--gap: 2}.excalidraw .dropdown-menu .dropdown-menu-item-base{display:flex;padding:0 .625rem;-webkit-column-gap:.625rem;column-gap:.625rem;font-size:.875rem;color:var(--color-gray-100);width:100%;box-sizing:border-box;font-weight:normal;font-family:inherit}.excalidraw .dropdown-menu .dropdown-menu-item{background-color:rgba(0,0,0,0);border:0;align-items:center;height:2rem;cursor:pointer;border-radius:var(--border-radius-md)}@media screen and (min-width: 1921px){.excalidraw .dropdown-menu .dropdown-menu-item{height:2.25rem}}.excalidraw .dropdown-menu .dropdown-menu-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.excalidraw .dropdown-menu .dropdown-menu-item__shortcut{-webkit-margin-start:auto;margin-inline-start:auto;opacity:.5}.excalidraw .dropdown-menu .dropdown-menu-item:hover{background-color:var(--button-hover-bg);text-decoration:none}.excalidraw .dropdown-menu .dropdown-menu-item svg{width:1rem;height:1rem;display:block}.excalidraw .dropdown-menu .dropdown-menu-item-custom{margin-top:.5rem}.excalidraw .dropdown-menu .dropdown-menu-group-title{font-size:14px;text-align:left;margin:10px 0;font-weight:500}.excalidraw.theme--dark .dropdown-menu-item{color:var(--color-gray-40)}.excalidraw.theme--dark .dropdown-menu-container{background-color:var(--color-gray-90) !important}.excalidraw .dropdown-menu-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .dropdown-menu-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .dropdown-menu-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .dropdown-menu-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .dropdown-menu-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .dropdown-menu-button.active:hover{background-color:var(--color-primary-light)}.excalidraw .dropdown-menu-button.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .dropdown-menu-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .dropdown-menu-button--mobile{border:none;margin:0;padding:0;width:var(--default-button-size);height:var(--default-button-size)}",""]),t.Z=a},8793:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".footer-center{pointer-events:none;display:flex;width:100%;justify-content:flex-start}.footer-center>*{pointer-events:all}",""]),t.Z=a},3397:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .collab-button{--button-bg: var(--color-primary);--button-color: white;--button-border: var(--color-primary);--button-width: var(--lg-button-size);--button-height: var(--lg-button-size);--button-hover-bg: var(--color-primary-darker);--button-hover-border: var(--color-primary-darker);--button-active-bg: var(--color-primary-darker);flex-shrink:0}.excalidraw .collab-button.active.active{background-color:#0fb884;border-color:#0fb884}.excalidraw .collab-button.active.active svg{color:#fff}.excalidraw .collab-button.active.active:hover,.excalidraw .collab-button.active.active:active{background-color:#0fb884;border-color:#0fb884}.excalidraw.theme--dark .collab-button{color:var(--color-gray-90)}.excalidraw .CollabButton.is-collaborating{background-color:var(--button-special-active-bg-color)}.excalidraw .CollabButton.is-collaborating .ToolIcon__icon svg,.excalidraw .CollabButton.is-collaborating .ToolIcon__label{color:var(--icon-green-fill-color)}.excalidraw .CollabButton-collaborators{min-width:1em;min-height:1em;line-height:1;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#b2f2bb;color:#2b8a3e;font-size:.6rem;font-family:"Cascadia"}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}',""]),t.Z=a},4343:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;-webkit-margin-end:.3em;margin-inline-end:.3em;-webkit-transform:scaleY(0.9);transform:scaleY(0.9)}",""]),t.Z=a},1569:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,'.excalidraw .virgil{font-family:"Virgil"}.excalidraw .welcome-screen-decor{pointer-events:none;color:var(--color-gray-40)}.excalidraw.theme--dark .welcome-screen-decor{color:var(--color-gray-60)}@media(max-height: 599px){.excalidraw .welcome-screen-decor-hint{display:none !important}}@media(max-width: 1024px),(max-width: 800px){.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--help,.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--menu{display:none}}.excalidraw .welcome-screen-decor-hint--help{display:flex;position:absolute;right:0;bottom:100%}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help{left:0;right:auto}.excalidraw .welcome-screen-decor-hint--help svg{margin-top:.5rem;width:85px;height:71px;-webkit-transform:scaleX(-1) rotate(80deg);transform:scaleX(-1) rotate(80deg)}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help svg{-webkit-transform:rotate(80deg);transform:rotate(80deg)}.excalidraw .welcome-screen-decor-hint--toolbar{position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-top:2.5rem;display:flex;align-items:baseline}.excalidraw .welcome-screen-decor-hint--toolbar .welcome-screen-decor-hint__label{width:120px;position:relative;top:-0.5rem}.excalidraw .welcome-screen-decor-hint--toolbar svg{width:38px;height:78px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--toolbar svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .welcome-screen-decor-hint--menu{position:absolute;width:320px;font-size:1rem;top:100%;margin-top:.25rem;-webkit-margin-start:.6rem;margin-inline-start:.6rem;display:flex;align-items:flex-end;gap:.5rem}.excalidraw .welcome-screen-decor-hint--menu svg{width:41px;height:94px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--menu svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@media(max-width: 860px){.excalidraw .welcome-screen-decor-hint--menu .welcome-screen-decor-hint__label{max-width:160px}}.excalidraw .welcome-screen-center{display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;position:absolute;pointer-events:none;left:1rem;top:1rem;right:1rem;bottom:1rem}.excalidraw .welcome-screen-center__logo{display:flex;align-items:center;-webkit-column-gap:.75rem;column-gap:.75rem;font-size:2.25rem}.excalidraw .welcome-screen-center__logo svg{width:1.625rem;height:auto}.excalidraw .welcome-screen-center__heading{font-size:1.125rem;text-align:center}.excalidraw .welcome-screen-menu{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center}.excalidraw .welcome-screen-menu-item{box-sizing:border-box;pointer-events:all;color:var(--color-gray-50);font-size:.875rem;width:100%;min-width:300px;max-width:400px;display:grid;align-items:center;justify-content:space-between;background:none;border:none;padding:.75rem;border-radius:var(--border-radius-md);grid-template-columns:calc(var(--default-icon-size) + .5rem) 1fr 3rem}.excalidraw .welcome-screen-menu-item__text{display:flex;align-items:center;margin-right:auto;text-align:left;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .welcome-screen-menu-item__icon{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .welcome-screen-menu-item__shortcut{margin-left:auto;color:var(--color-gray-40);font-size:.75rem}.excalidraw:not(:active) .welcome-screen-menu-item:hover{text-decoration:none;background:var(--color-gray-10)}.excalidraw:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active{background:var(--color-gray-20)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active--promo{color:var(--color-promo) !important}.excalidraw .welcome-screen-menu-item:active--promo:hover .welcome-screen-menu-item__text{color:var(--color-promo) !important}.excalidraw.theme--dark .welcome-screen-menu-item{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item__shortcut{color:var(--color-gray-60)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover{background:var(--color-gray-85)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-10)}.excalidraw.theme--dark .welcome-screen-menu-item:active{background-color:var(--color-gray-90)}.excalidraw.theme--dark .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-10)}@media(max-height: 599px){.excalidraw .welcome-screen-center{margin-top:4rem}}@media(min-height: 600px)and (max-height: 900px){.excalidraw .welcome-screen-center{margin-top:8rem}}@media(max-height: 500px),(max-width: 320px){.excalidraw .welcome-screen-center{display:none}}',""]),t.Z=a},9915:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);white-space:nowrap;-webkit-user-select:none;user-select:none}.LoadingMessage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage .Spinner{font-size:2.8em}.LoadingMessage .LoadingMessage-text{margin-top:1em;font-size:.8em}.LoadingMessage--dark{background-color:#121212;color:#ced4da}",""]),t.Z=a},9310:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),l=n(1667),c=n.n(l),s=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(o()),f=c()(s),p=c()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+f+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-gray-80);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: rgba(255, 255, 255, 0.96);--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: #ffffff;--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top);--select-highlight-color: #339af0;--shadow-island: 0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702);--button-hover-bg: var(--color-gray-10);--default-border-color: var(--color-gray-30);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-gray-20);--sidebar-bg-color: #fff;--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-gray-80);--color-selection: #6965db;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-promo: #e70078;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+p+');--focus-highlight-color: #228be6;--icon-fill-color: var(--color-gray-40);--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #262627;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-bg-color: #2c2c2c;--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--text-primary-color: var(--color-gray-40);--button-hover-bg: var(--color-gray-80);--default-border-color: var(--color-gray-80);--shadow-island: 0px 13px 33px rgba(0, 0, 0, 0.07), 0px 4.13px 9.94853px rgba(0, 0, 0, 0.0456112), 0px 1.13px 4.13211px rgba(0, 0, 0, 0.035), 0px 0.769896px 1.4945px rgba(0, 0, 0, 0.0243888);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--sidebar-border-color: var(--color-gray-85);--sidebar-bg-color: #191919;--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-promo: #d297ff}:root{--zIndex-canvas: 1;--zIndex-wysiwyg: 2;--zIndex-layerUI: 3}.excalidraw{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:relative;overflow:hidden;color:var(--text-primary-color);display:flex;top:0;bottom:0;left:0;right:0;height:100%;width:100%;-webkit-user-select:none;user-select:none}.excalidraw button{cursor:pointer}.excalidraw:focus{outline:none}.excalidraw a{font-weight:500;text-decoration:none;color:var(--link-color)}.excalidraw a:hover{text-decoration:underline}.excalidraw canvas{touch-action:none;image-rendering:pixelated;image-rendering:-moz-crisp-edges;z-index:var(--zIndex-canvas)}.excalidraw__canvas{position:absolute}.excalidraw.theme--dark canvas{-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .FixedSideContainer{padding-top:var(--sat, 0);padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0)}.excalidraw .panelRow{display:flex;justify-content:space-between}.excalidraw .panelColumn{display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin:0;margin-bottom:.25rem;font-size:.75rem;color:var(--text-primary-color);font-weight:normal;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}.excalidraw .panelColumn .buttonList label{font-size:.75rem}.excalidraw .panelColumn .buttonList input[type=radio],.excalidraw .panelColumn .buttonList input[type=button]{opacity:0;position:absolute;pointer-events:none}.excalidraw .panelColumn .buttonList .iconRow{margin-top:8px}.excalidraw .panelColumn fieldset{margin:0;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .welcome-screen-menu-item:focus-visible,.excalidraw .dropdown-menu-item:focus-visible,.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:rgba(0,0,0,0);box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .buttonList .ToolIcon__icon{all:unset !important;display:flex !important}.excalidraw .buttonList button{background-color:rgba(0,0,0,0)}.excalidraw .buttonList label,.excalidraw .buttonList button,.excalidraw .buttonList .zIndexButton{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));padding:0}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .buttonList label:hover,.excalidraw .buttonList button:hover,.excalidraw .buttonList .zIndexButton:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .buttonList label:active,.excalidraw .buttonList button:active,.excalidraw .buttonList .zIndexButton:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .buttonList label.active,.excalidraw .buttonList button.active,.excalidraw .buttonList .zIndexButton.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .buttonList label.active:hover,.excalidraw .buttonList button.active:hover,.excalidraw .buttonList .zIndexButton.active:hover{background-color:var(--color-primary-light)}.excalidraw .buttonList label.active svg,.excalidraw .buttonList button.active svg,.excalidraw .buttonList .zIndexButton.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .App-top-bar{z-index:var(--zIndex-layerUI);display:flex;flex-direction:column;align-items:center}.excalidraw .App-bottom-bar{position:absolute;top:0;bottom:0;left:0;right:0;--bar-padding: calc(4 * var(--space-factor));padding-top:max(var(--bar-padding), var(--sat,0));padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0);z-index:4;display:flex;align-items:flex-end;pointer-events:none}.excalidraw .App-bottom-bar>.Island{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;max-height:100%;display:flex;flex-direction:column;pointer-events:initial}.excalidraw .App-bottom-bar>.Island .panelColumn{padding:8px 8px 0 8px}.excalidraw .App-toolbar{width:100%}.excalidraw .App-toolbar .eraser.ToolIcon:hover{--icon-fill-color: #fff;--keybinding-color: #fff}.excalidraw .App-toolbar .eraser.active{background-color:var(--color-primary)}.excalidraw .App-toolbar-content{display:flex;align-items:center;justify-content:space-between;padding:8px}.excalidraw .App-mobile-menu{width:100%;overflow-x:visible;overflow-y:auto;box-sizing:border-box;margin-bottom:var(--bar-padding)}.excalidraw .App-menu{display:grid;color:var(--icon-fill-color)}.excalidraw .shapes-section{display:flex;justify-content:center;pointer-events:none !important}.excalidraw .shapes-section>*{pointer-events:all}.excalidraw .App-menu_top{grid-template-columns:1fr 2fr 1fr;grid-gap:2rem;align-items:flex-start;cursor:default;pointer-events:none !important}@media(min-width: 1536px){.excalidraw .App-menu_top{grid-template-columns:1fr 1fr 1fr;grid-gap:3rem}}.excalidraw .layer-ui__wrapper:not(.disable-pointerEvents) .App-menu_top>*{pointer-events:all}.excalidraw .App-menu_top>*:first-child{justify-self:flex-start}.excalidraw .App-menu_top>*:last-child{justify-self:flex-end}.excalidraw .App-menu_bottom{position:absolute;bottom:1rem;display:flex;justify-content:space-between;align-items:flex-start;cursor:default;pointer-events:none !important;box-sizing:border-box;padding:0 1rem}.excalidraw .App-menu_bottom--transition-left section{width:185px}.excalidraw .App-menu_bottom section{display:flex}.excalidraw .App-menu_bottom>*:first-child{justify-self:flex-start}.excalidraw .App-menu_bottom>*:last-child{justify-self:flex-end}.excalidraw .App-menu_left{grid-template-rows:1fr auto 1fr;height:100%}.excalidraw .App-menu_right{grid-template-rows:1fr;height:100%}.excalidraw .App-menu__left{overflow-y:auto;padding:.75rem;width:202px;box-sizing:border-box;position:absolute}.excalidraw .dropdown-select{height:1.5rem;padding:0;-webkit-padding-start:.5rem;padding-inline-start:.5rem;-webkit-padding-end:1.5rem;padding-inline-end:1.5rem;color:var(--icon-fill-color);background-color:var(--button-gray-1);border-radius:var(--space-factor);border:1px solid var(--button-gray-2);font-size:.8rem;outline:none;-webkit-appearance:none;appearance:none;background-image:var(--dropdown-icon);background-repeat:no-repeat;background-position:right .7rem top 50%,0 0;background-size:.65em auto,100%}:root[dir=rtl] .excalidraw .dropdown-select{background-position:left .7rem top 50%,0 0}.excalidraw .dropdown-select:focus{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .dropdown-select:hover{background-color:var(--button-gray-2)}.excalidraw .dropdown-select:active{background-color:var(--button-gray-2)}.excalidraw .dropdown-select__language{height:2rem;background-color:var(--island-bg-color);border-color:var(--default-border-color) !important;cursor:pointer}.excalidraw .dropdown-select__language:hover{background-color:var(--island-bg-color)}.excalidraw .disable-zen-mode{border-radius:var(--border-radius-lg);background-color:var(--color-gray-20);border:1px solid var(--color-gray-30);padding:10px 20px}.excalidraw .disable-zen-mode:hover{background-color:var(--color-gray-30)}.excalidraw .scroll-back-to-content{border-radius:var(--border-radius-lg);background-color:var(--island-bg-color);color:var(--icon-fill-color);border:1px solid var(--default-border-color);padding:10px 20px;position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);pointer-events:all}.excalidraw .scroll-back-to-content:hover{background-color:var(--button-hover-bg)}.excalidraw .scroll-back-to-content:active{border:1px solid var(--color-primary-darkest)}.excalidraw .help-icon{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .help-icon svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .help-icon:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .help-icon:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .help-icon.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .help-icon.active:hover{background-color:var(--color-primary-light)}.excalidraw .help-icon.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .help-icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .reset-zoom-button{font-family:var(--ui-font)}.excalidraw .finalize-button{display:grid;grid-auto-flow:column;gap:.4em;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw .undo-redo-buttons,.excalidraw .eraser-buttons{display:grid;grid-auto-flow:column;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw--mobile.excalidraw aside{display:none}.excalidraw--mobile.excalidraw .scroll-back-to-content{bottom:calc(80px + var(--sab, 0));z-index:-1}:root[dir=rtl] .excalidraw .rtl-mirror{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .zen-mode-visibility{visibility:visible;opacity:1;height:auto;width:auto;transition:opacity .5s}.excalidraw .zen-mode-visibility.zen-mode-visibility--hidden{visibility:hidden;opacity:0;height:0;width:0;transition:opacity .5s}.excalidraw .disable-pointerEvents{pointer-events:none !important}.excalidraw.excalidraw--view-mode .App-menu{display:flex;justify-content:space-between}.excalidraw input[type=text],.excalidraw textarea:not(.excalidraw-wysiwyg){color:var(--text-primary-color);border:1.5px solid var(--input-border-color);padding:.75rem;white-space:nowrap;border-radius:var(--space-factor);background-color:var(--input-bg-color)}.excalidraw input[type=text]:not(:focus):hover,.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover{background-color:var(--input-hover-bg-color)}.excalidraw input[type=text]:focus,.excalidraw textarea:not(.excalidraw-wysiwyg):focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}@media print{.excalidraw .App-bottom-bar,.excalidraw .FixedSideContainer,.excalidraw .layer-ui__wrapper{display:none}}.excalidraw ::-webkit-scrollbar{width:3px;height:3px}.excalidraw ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:10px}.excalidraw ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.excalidraw ::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb)}.excalidraw .mobile-misc-tools-container{position:absolute;top:calc(5rem - var(--editor-container-padding));right:calc(var(--editor-container-padding)*-1);display:flex;flex-direction:column;border:1px solid var(--sidebar-border-color);border-top-left-radius:var(--border-radius-lg);border-bottom-left-radius:var(--border-radius-lg);border-right:0;overflow:hidden;background-color:var(--island-bg-color)}.excalidraw .mobile-misc-tools-container .ToolIcon__icon{border-radius:0}.excalidraw .mobile-misc-tools-container .library-button{border:0}.excalidraw .App-toolbar--mobile{overflow-x:auto;max-width:90vw}.excalidraw .App-toolbar--mobile .ToolIcon__keybinding{display:none}.excalidraw .UserList-Wrapper{margin:0;padding:0;border:none;text-align:left}.excalidraw .UserList-Wrapper legend{display:block;font-size:.75rem;font-weight:400;margin:0 0 .25rem;padding:0}.ErrorSplash.excalidraw{min-height:100vh;padding:20px 0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-user-select:text;user-select:text}.ErrorSplash.excalidraw .ErrorSplash-messageContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background-color:#ffe3e3;border:3px solid #c92a2a}.ErrorSplash.excalidraw .ErrorSplash-paragraph{margin:15px 0;max-width:600px}.ErrorSplash.excalidraw .ErrorSplash-paragraph.align-center{text-align:center}.ErrorSplash.excalidraw .bigger,.ErrorSplash.excalidraw .bigger button{font-size:1.1em}.ErrorSplash.excalidraw .smaller,.ErrorSplash.excalidraw .smaller button{font-size:.9em}.ErrorSplash.excalidraw .ErrorSplash-details{display:flex;flex-direction:column;align-items:flex-start}.ErrorSplash.excalidraw .ErrorSplash-details textarea{width:100%;margin:10px 0;font-family:"Cascadia";font-size:.8em}',""]),t.Z=d},6464:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,"",""]),a.locals={themeFilter:"invert(93%) hue-rotate(180deg)",rightSidebarWidth:"302px"},t.Z=a},5260:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-hyperlinkContainer{display:flex;align-items:center;justify-content:space-between;position:absolute;box-shadow:0px 2px 4px 0 rgba(0,0,0,.3);z-index:100;background:var(--island-bg-color);border-radius:var(--border-radius-md);box-sizing:border-box;min-height:42px}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer button{z-index:100}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer-link{height:24px;padding:0 8px;line-height:24px;font-size:.9rem;font-weight:500;font-family:var(--ui-font)}.excalidraw-hyperlinkContainer-input{width:18rem;border:none;background-color:rgba(0,0,0,0);color:var(--text-primary-color);outline:none;border:none;box-shadow:none !important}.excalidraw-hyperlinkContainer-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15rem}.excalidraw-hyperlinkContainer button{color:#228be6;background-color:rgba(0,0,0,0) !important;font-weight:500}.excalidraw-hyperlinkContainer button.excalidraw-hyperlinkContainer--remove{color:#c92a2a}.excalidraw-hyperlinkContainer .d-none{display:none}.excalidraw-hyperlinkContainer--remove .ToolIcon__icon svg{color:#fa5252}.excalidraw-hyperlinkContainer .ToolIcon__icon{width:2rem;height:2rem}.excalidraw-hyperlinkContainer__buttons{flex:0 0 auto}",""]),t.Z=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},202:function(e,t,n){"use strict";n.d(t,{JQ:function(){return w},vD:function(){return y},y7:function(){return b}});var r=n(1930),o=n(7169),i=n(2335),a=n(1047),l=n(1935),c=n(5710),s=n(6906),u=n(1974),d=n(75),f=n(6340),p=n(7901);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r},perform:function(e,t){var n,o=(0,d.eD)((0,a.Lm)(e),t),s=e.slice(),f={},p=h(o);try{var v=function(){var e=n.value;if((0,a.iB)(e)){var o,d=(0,a.Up)({type:"rectangle",backgroundColor:t.currentItemBackgroundColor,boundElements:[].concat((0,r.Z)(e.boundElements||[]),[{id:e.id,type:"text"}]),angle:e.angle,fillStyle:t.currentItemFillStyle,strokeColor:t.currentItemStrokeColor,roughness:t.currentItemRoughness,strokeWidth:t.currentItemStrokeWidth,strokeStyle:t.currentItemStrokeStyle,roundness:"round"===t.currentItemRoundness?{type:(0,u.QI)("rectangle")?i.a6.ADAPTIVE_RADIUS:i.a6.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:e.x-i.gK,y:e.y-i.gK,width:(0,c.NS)(e.width,"rectangle"),height:(0,c.NS)(e.height,"rectangle"),groupIds:e.groupIds});if(null!==(o=e.boundElements)&&void 0!==o&&o.length){var p=e.boundElements.filter((function(e){return"arrow"===e.type})).map((function(e){return e.id}));s.filter((function(e){return p.includes(e.id)})).forEach((function(t){var n,r,o=t.startBinding,i=t.endBinding;(null===(n=o)||void 0===n?void 0:n.elementId)===e.id&&(o=g(g({},o),{},{elementId:d.id})),(null===(r=i)||void 0===r?void 0:r.elementId)===e.id&&(i=g(g({},i),{},{elementId:d.id})),(o||i)&&(0,l.DR)(t,{startBinding:o,endBinding:i},!1)}))}(0,l.DR)(e,{containerId:d.id,verticalAlign:i.oX.MIDDLE,boundElements:null,textAlign:i.I8.CENTER},!1),(0,c.oN)(e,d),s=function(e,t,n){var r=e.slice(),o=r.findIndex((function(e){return e.id===t.id}));r.splice(o,1);var i=r.findIndex((function(e){return e.id===n.id}));return r.splice(i,0,t),r}([].concat((0,r.Z)(s),[d]),d,e),f[d.id]=!0}};for(p.s();!(n=p.n()).done;)v()}catch(e){p.e(e)}finally{p.f()}return{elements:s,appState:g(g({},t),{},{selectedElementIds:f}),commitToHistory:!0}}})},2416:function(e,t,n){"use strict";n.d(t,{CZ:function(){return S},Lo:function(){return E},Zp:function(){return C},eF:function(){return M},md:function(){return O},mo:function(){return _}});var r=n(2577),o=n(7169),i=n(4499),a=n(3646),l=n(1319),c=n(2335),s=n(1047),u=n(8211),d=n(6066),f=n(75),p=n(2264),h=n(746),v=n(6340),m=n(7901),g=n(1894),b=n(1935),y=n(8897),x=n(4512);function w(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 k(e){for(var t=1;t0?(0,s.KP)(i):(0,s.KP)(o),l={value:j(a,{width:t.width,height:t.height})},c=(0,r.Z)(a,4),u=c[0],d=c[1],h=(u+c[2])/2,v=(d+c[3])/2;return{appState:k(k(k({},t),(0,p.s)({scenePoint:{x:h,y:v},viewportDimensions:{width:t.width,height:t.height},zoom:l})),{},{zoom:l}),commitToHistory:!1}},C=((0,m.z)({name:"zoomToSelection",trackEvent:{category:"canvas"},perform:function(e,t){return O(e,t,!0)},keyTest:function(e){return e.code===d.aU.TWO&&e.shiftKey&&!e.altKey&&!e[d.tW.CTRL_OR_CMD]}}),(0,m.z)({name:"zoomToFit",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t){return O(e,t,!1)},keyTest:function(e){return e.code===d.aU.ONE&&e.shiftKey&&!e.altKey&&!e[d.tW.CTRL_OR_CMD]}}),(0,m.z)({name:"toggleTheme",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t,n){return{appState:k(k({},t),{},{theme:n||(t.theme===c.C6.LIGHT?c.C6.DARK:c.C6.LIGHT)}),commitToHistory:!1}},keyTest:function(e){return e.altKey&&e.shiftKey&&e.code===d.aU.D},predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.toggleTheme}})),M=((0,m.z)({name:"toggleEraserTool",trackEvent:{category:"toolbar"},perform:function(e,t){var n;return n=(0,y.EN)(t)?(0,v.Om)(t,k(k({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,v.Om)(t,{type:"eraser",lastActiveToolBeforeEraser:t.activeTool}),{appState:k(k({},t),{},{selectedElementIds:{},selectedGroupIds:{},activeTool:n}),commitToHistory:!0}},keyTest:function(e){return e.key===d.tW.E}}),(0,m.z)({name:"toggleHandTool",trackEvent:{category:"toolbar"},perform:function(e,t,n,r){var o;return(0,y.l$)(t)?o=(0,v.Om)(t,k(k({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(o=(0,v.Om)(t,{type:"hand",lastActiveToolBeforeEraser:t.activeTool}),(0,v.KJ)(r.canvas,c.oc.GRAB)),{appState:k(k({},t),{},{selectedElementIds:{},selectedGroupIds:{},activeTool:o}),commitToHistory:!0}},keyTest:function(e){return e.key===d.tW.H}}))},4688:function(e,t,n){"use strict";n.d(t,{FA:function(){return k},ZM:function(){return w},jK:function(){return _},uN:function(){return y},yQ:function(){return x},zp:function(){return E}});var r=n(7169),o=n(8950),i=n(2975),a=n.n(i),l=n(6066),c=n(7901),s=n(6665),u=n(533),d=n(1868),f=n(9485),p=n(1047),h=n(8211);function v(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 m(e){for(var t=1;t0},contextItemLabel:"labels.copyAsSvg"}),_=(0,c.z)({name:"copyAsPng",trackEvent:{category:"element"},perform:(b=(0,o.Z)(a().mark((function e(t,n,r,o){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.canvas){e.next=2;break}return e.abrupt("return",{commitToHistory:!1});case 2:return i=(0,d.eD)((0,p.Lm)(t),n,!0),e.prev=3,e.next=6,(0,f.p1)("clipboard",i.length?i:(0,p.Lm)(t),n,o.files,n);case 6:return e.abrupt("return",{appState:m(m({},n),{},{toast:{message:(0,h.t)("toast.copyToClipboardAsPng",{exportSelection:i.length?(0,h.t)("toast.selection"):(0,h.t)("toast.canvas"),exportColorScheme:n.exportWithDarkMode?(0,h.t)("buttons.darkMode"):(0,h.t)("buttons.lightMode")})}}),commitToHistory:!1});case 9:return e.prev=9,e.t0=e.catch(3),console.error(e.t0),e.abrupt("return",{appState:m(m({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 13:case"end":return e.stop()}}),e,null,[[3,9]])}))),function(e,t,n,r){return b.apply(this,arguments)}),predicate:function(e){return s.vt&&e.length>0},contextItemLabel:"labels.copyAsPng",keyTest:function(e){return e.code===l.aU.C&&e.altKey&&e.shiftKey}}),E=(0,c.z)({name:"copyText",trackEvent:{category:"element"},perform:function(e,t){var n=(0,d.eD)((0,p.Lm)(e),t,!0).reduce((function(e,t){return(0,p.iB)(t)&&e.push(t.text),e}),[]).join("\n\n");return(0,s.dd)(n),{commitToHistory:!1}},predicate:function(e,t){return s.wx&&(0,d.eD)(e,t,!0).some(p.iB)},contextItemLabel:"labels.copyText"})},533:function(e,t,n){"use strict";n.d(t,{X:function(){return w}});var r=n(7169),o=n(75),i=n(6066),a=n(1319),l=n(8211),c=n(7901),s=n(1047),u=n(1935),d=n(242),f=n(6938),p=n(8290),h=n(1974),v=n(6340),m=n(3646),g=n(4512);function b(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 y(e){for(var t=1;t0?[i[0]-1]:[0]})}),commitToHistory:!0}}var g=function(e,t){return{elements:e.map((function(e){return t.selectedElementIds[e.id]||(0,h.Xh)(e)&&t.selectedElementIds[e.containerId]?(0,u.BE)(e,{isDeleted:!0}):e})),appState:y(y({},t),{},{selectedElementIds:{}})}}(e,t),b=g.elements,w=g.appState;return(0,p.$q)(b,e.filter((function(e){var n=e.id;return t.selectedElementIds[n]}))),{elements:b,appState:y(y({},w=x(w,b)),{},{activeTool:(0,v.Om)(t,{type:"selection"}),multiElement:null}),commitToHistory:(0,o.N)((0,s.Lm)(e),t)}},contextItemLabel:"labels.delete",keyTest:function(e,t,n){return(e.key===i.tW.BACKSPACE||e.key===i.tW.DELETE)&&!e[i.tW.CTRL_OR_CMD]},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,g.jsx)(a.V,{type:"button",icon:m.XH,title:(0,l.t)("labels.delete"),"aria-label":(0,l.t)("labels.delete"),onClick:function(){return r(null)},visible:(0,o.N)((0,s.Lm)(t),n)})}})},8671:function(e,t,n){"use strict";n.d(t,{_d:function(){return te},mM:function(){return ee},ns:function(){return J}});var r=n(8950),o=n(2577),i=n(7169),a=n(2975),l=n.n(a),c=n(3646),s=n(487),u=n.n(s),d=n(631),f=n.n(d),p=n(2052),h=n.n(p),v=n(4010),m=n.n(v),g=n(1469),b=n.n(g),y=n(9329),x=n.n(y),w=n(6759),k={};k.styleTagTransform=x(),k.setAttributes=m(),k.insert=h().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=b(),u()(w.Z,k),w.Z&&w.Z.locals&&w.Z.locals;var _=n(9787),E=n(6340),S=n(532),j={};j.styleTagTransform=x(),j.setAttributes=m(),j.insert=h().bind(null,"head"),j.domAPI=f(),j.insertStyleElement=b(),u()(S.Z,j),S.Z&&S.Z.locals&&S.Z.locals;var O=n(2134),C=n(4512),M=function(e){var t=(0,O.J0)().id,n=(0,_.useState)(e.value),r=(0,o.Z)(n,2),i=r[0],a=r[1];return(0,C.jsxs)("div",{className:"ProjectName",children:[(0,C.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(e.label).concat(e.isNameEditable?"":":")}),e.isNameEditable?(0,C.jsx)("input",{type:"text",className:"TextInput",onBlur:function(t){(0,E.qz)(t.target);var n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:function(e){if("Enter"===e.key){if(e.preventDefault(),e.nativeEvent.isComposing||229===e.keyCode)return;e.currentTarget.blur()}},id:"".concat(t,"-filename"),value:i,onChange:function(e){return a(e.target.value)}}):(0,C.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(t,"-filename"),children:e.value})]})},P=n(1319),T=n(1894),I=(n(5422),n(8211)),L=n(2335),D=function(e){var t=e.title||("dark"===e.value?(0,I.t)("buttons.lightMode"):(0,I.t)("buttons.darkMode"));return(0,C.jsx)(P.V,{type:"icon",icon:e.value===L.C6.LIGHT?A.MOON:A.SUN,title:t,"aria-label":t,onClick:function(){return e.onChange(e.value===L.C6.DARK?L.C6.LIGHT:L.C6.DARK)},"data-testid":"toggle-dark-mode"})},A={SUN:(0,C.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,C.jsx)("path",{fill:"currentColor",d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"})}),MOON:(0,C.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,C.jsx)("path",{fill:"currentColor",d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"})})},z=n(9485),Z=n(1047),R=n(434);function N(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 B(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],o=(0,F.xn)((0,H.eD)(e,t,r));return e.map((function(e){var r;return o.get(e.id)||e.id===(null===(r=t.editingElement)||void 0===r?void 0:r.id)?n(e):e}))},G=function(e,t,n,r){var o,i,a=t.editingElement,l=(0,z.Lm)(e);return null!==(o=null!==(i=a&&n(a))&&void 0!==i?i:(0,H.N)(l,t)?(0,H.PR)(l,t,n):r)&&void 0!==o?o:null},X=function(e,t,n,o){var i=new Set;return{elements:Y(e,t,(function(e){if((0,z.iB)(e)){var t=n(e);i.add(t);var r=(0,Z.BE)(e,{fontSize:t});return(0,z.oN)(r,(0,R.tl)(e)),o=e,a=r,(0,N.Xh)(a)?a:(0,Z.DR)(a,{x:"left"===o.textAlign?o.x:o.x+(o.width-a.width)/("center"===o.textAlign?2:1),y:o.y+(o.height-a.height)/2},!1)}var o,a;return e}),!0),appState:V(V({},t),{},{currentItemFontSize:1===i.size?(0,r.Z)(i)[0]:null!=o?o:t.currentItemFontSize}),commitToHistory:!0}},q=((0,U.z)({name:"changeStrokeColor",trackEvent:!1,perform:function(e,t,n){return V(V({},n.currentItemStrokeColor&&{elements:Y(e,t,(function(e){return(0,W.PD)(e.type)?(0,Z.BE)(e,{strokeColor:n.currentItemStrokeColor}):e}),!0)}),{},{appState:V(V({},t),n),commitToHistory:!!n.currentItemStrokeColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{"aria-hidden":"true",children:(0,M.t)("labels.stroke")}),(0,l.jsx)(s.z,{type:"elementStroke",label:(0,M.t)("labels.stroke"),color:G(t,n,(function(e){return e.strokeColor}),n.currentItemStrokeColor),onChange:function(e){return r({currentItemStrokeColor:e})},isActive:"strokeColorPicker"===n.openPopup,setActive:function(e){return r({openPopup:e?"strokeColorPicker":null})},elements:t,appState:n})]})}}),(0,U.z)({name:"changeBackgroundColor",trackEvent:!1,perform:function(e,t,n){return V(V({},n.currentItemBackgroundColor&&{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{backgroundColor:n.currentItemBackgroundColor})}))}),{},{appState:V(V({},t),n),commitToHistory:!!n.currentItemBackgroundColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{"aria-hidden":"true",children:(0,M.t)("labels.background")}),(0,l.jsx)(s.z,{type:"elementBackground",label:(0,M.t)("labels.background"),color:G(t,n,(function(e){return e.backgroundColor}),n.currentItemBackgroundColor),onChange:function(e){return r({currentItemBackgroundColor:e})},isActive:"backgroundColorPicker"===n.openPopup,setActive:function(e){return r({openPopup:e?"backgroundColorPicker":null})},elements:t,appState:n})]})}}),(0,U.z)({name:"changeFillStyle",trackEvent:!1,perform:function(e,t,n,r){return(0,i.L)("element","changeFillStyle","".concat(n," (").concat(r.device.isMobile?"mobile":"desktop",")")),{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{fillStyle:n})})),appState:V(V({},t),{},{currentItemFillStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,H.eD)(t,n),i=o.length>0&&o.every((function(e){return"zigzag"===e.fillStyle}));return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.fill")}),(0,l.jsx)(c,{type:"button",options:[{value:"hachure",text:"".concat(i?(0,M.t)("labels.zigzag"):(0,M.t)("labels.hachure")," (").concat((0,F.uY)("Alt-Click"),")"),icon:i?D.lF:D.a0,active:!!i||void 0},{value:"cross-hatch",text:(0,M.t)("labels.crossHatch"),icon:D.np},{value:"solid",text:(0,M.t)("labels.solid"),icon:D.X7}],value:G(t,n,(function(e){return e.fillStyle}),n.currentItemFillStyle),onClick:function(e,t){var n=t.altKey&&"hachure"===e&&o.every((function(e){return"hachure"===e.fillStyle}))?"zigzag":e;r(n)}})]})}}),(0,U.z)({name:"changeStrokeWidth",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{strokeWidth:n})})),appState:V(V({},t),{},{currentItemStrokeWidth:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.strokeWidth")}),(0,l.jsx)(c,{group:"stroke-width",options:[{value:1,text:(0,M.t)("labels.thin"),icon:D.ZA},{value:2,text:(0,M.t)("labels.bold"),icon:D.Wl},{value:4,text:(0,M.t)("labels.extraBold"),icon:D.m9}],value:G(t,n,(function(e){return e.strokeWidth}),n.currentItemStrokeWidth),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeSloppiness",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{seed:(0,B.LU)(),roughness:n})})),appState:V(V({},t),{},{currentItemRoughness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.sloppiness")}),(0,l.jsx)(c,{group:"sloppiness",options:[{value:0,text:(0,M.t)("labels.architect"),icon:D.bf},{value:1,text:(0,M.t)("labels.artist"),icon:D.kM},{value:2,text:(0,M.t)("labels.cartoonist"),icon:D.W2}],value:G(t,n,(function(e){return e.roughness}),n.currentItemRoughness),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeStrokeStyle",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{strokeStyle:n})})),appState:V(V({},t),{},{currentItemStrokeStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.strokeStyle")}),(0,l.jsx)(c,{group:"strokeStyle",options:[{value:"solid",text:(0,M.t)("labels.strokeStyle_solid"),icon:D.ZA},{value:"dashed",text:(0,M.t)("labels.strokeStyle_dashed"),icon:D.a5},{value:"dotted",text:(0,M.t)("labels.strokeStyle_dotted"),icon:D.aT}],value:G(t,n,(function(e){return e.strokeStyle}),n.currentItemStrokeStyle),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeOpacity",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{opacity:n})}),!0),appState:V(V({},t),{},{currentItemOpacity:n}),commitToHistory:!0}},PanelComponent:function(e){var t,n=e.elements,r=e.appState,o=e.updateData;return(0,l.jsxs)("label",{className:"control-label",children:[(0,M.t)("labels.opacity"),(0,l.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(e){return o(+e.target.value)},value:null!==(t=G(n,r,(function(e){return e.opacity}),r.currentItemOpacity))&&void 0!==t?t:void 0})]})}}),(0,U.z)({name:"changeFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(){return n}),n)},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.fontSize")}),(0,l.jsx)(c,{group:"font-size",options:[{value:16,text:(0,M.t)("labels.small"),icon:D.q0,testId:"fontSize-small"},{value:20,text:(0,M.t)("labels.medium"),icon:D.nq,testId:"fontSize-medium"},{value:28,text:(0,M.t)("labels.large"),icon:D.tW,testId:"fontSize-large"},{value:36,text:(0,M.t)("labels.veryLarge"),icon:D.OA,testId:"fontSize-veryLarge"}],value:G(t,n,(function(e){if((0,z.iB)(e))return e.fontSize;var t=(0,R.WJ)(e);return t?t.fontSize:null}),n.currentItemFontSize||A.n5),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"decreaseFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(e){return Math.round(1/1.1*e.fontSize)}))},keyTest:function(e){return e[C.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===C.tW.CHEVRON_LEFT||e.key===C.tW.COMMA)}})),$=(0,U.z)({name:"increaseFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(e){return Math.round(1.1*e.fontSize)}))},keyTest:function(e){return e[C.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===C.tW.CHEVRON_RIGHT||e.key===C.tW.PERIOD)}});(0,U.z)({name:"changeFontFamily",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{fontFamily:n,lineHeight:(0,R.PT)(n)});return(0,z.oN)(t,(0,R.tl)(e)),t}return e}),!0),appState:V(V({},t),{},{currentItemFontFamily:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=[{value:A.ut.Virgil,text:(0,M.t)("labels.handDrawn"),icon:D.Pm},{value:A.ut.Helvetica,text:(0,M.t)("labels.normal"),icon:D.vo},{value:A.ut.Cascadia,text:(0,M.t)("labels.code"),icon:D.z6}];return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.fontFamily")}),(0,l.jsx)(c,{group:"font-family",options:o,value:G(t,n,(function(e){if((0,z.iB)(e))return e.fontFamily;var t=(0,R.WJ)(e);return t?t.fontFamily:null}),n.currentItemFontFamily||A.rk),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeTextAlign",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{textAlign:n});return(0,z.oN)(t,(0,R.tl)(e)),t}return e}),!0),appState:V(V({},t),{},{currentItemTextAlign:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.textAlign")}),(0,l.jsx)(c,{group:"text-align",options:[{value:"left",text:(0,M.t)("labels.left"),icon:D.rr,testId:"align-left"},{value:"center",text:(0,M.t)("labels.center"),icon:D.o3,testId:"align-horizontal-center"},{value:"right",text:(0,M.t)("labels.right"),icon:D.oT,testId:"align-right"}],value:G(t,n,(function(e){if((0,z.iB)(e))return e.textAlign;var t=(0,R.WJ)(e);return t?t.textAlign:null}),n.currentItemTextAlign),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeVerticalAlign",trackEvent:{category:"element"},perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{verticalAlign:n});return(0,z.oN)(t,(0,R.tl)(e)),t}return e}),!0),appState:V({},t),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsx)("fieldset",{children:(0,l.jsx)(c,{group:"text-align",options:[{value:A.oX.TOP,text:(0,M.t)("labels.alignTop"),icon:(0,l.jsx)(D.EO,{theme:n.theme}),testId:"align-top"},{value:A.oX.MIDDLE,text:(0,M.t)("labels.centerVertically"),icon:(0,l.jsx)(D.P7,{theme:n.theme}),testId:"align-middle"},{value:A.oX.BOTTOM,text:(0,M.t)("labels.alignBottom"),icon:(0,l.jsx)(D.aA,{theme:n.theme}),testId:"align-bottom"}],value:G(t,n,(function(e){if((0,z.iB)(e)&&e.containerId)return e.verticalAlign;var t=(0,R.WJ)(e);return t?t.verticalAlign:null})),onChange:function(e){return r(e)}})})}}),(0,U.z)({name:"changeRoundness",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,Z.BE)(e,{roundness:"round"===n?{type:(0,N.QI)(e.type)?A.a6.ADAPTIVE_RADIUS:A.a6.PROPORTIONAL_RADIUS}:null})})),appState:V(V({},t),{},{currentItemRoundness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,H.Zs)((0,z.Lm)(t),n).some((function(e){var t;return(null===(t=e.roundness)||void 0===t?void 0:t.type)===A.a6.LEGACY}));return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.edges")}),(0,l.jsx)(c,{group:"edges",options:[{value:"sharp",text:(0,M.t)("labels.sharp"),icon:D.wr},{value:"round",text:(0,M.t)("labels.round"),icon:D.DS}],value:G(t,n,(function(e){return o?null:e.roundness?"round":"sharp"}),(0,H.sh)(n.activeTool.type)&&n.currentItemRoundness||null),onChange:function(e){return r(e)}})]})}}),(0,U.z)({name:"changeArrowhead",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,N.bt)(e)){var t=n.position,r=n.type;if("start"===t)return(0,Z.BE)(e,{startArrowhead:r});if("end"===t)return(0,Z.BE)(e,{endArrowhead:r})}return e})),appState:V(V({},t),{},(0,o.Z)({},"start"===n.position?"currentItemStartArrowhead":"currentItemEndArrowhead",n.type)),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,M.G3)().rtl;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,M.t)("labels.arrowheads")}),(0,l.jsxs)("div",{className:"iconSelectList buttonList",children:[(0,l.jsx)(L,{label:"arrowhead_start",options:[{value:null,text:(0,M.t)("labels.arrowhead_none"),icon:D.fr,keyBinding:"q"},{value:"arrow",text:(0,M.t)("labels.arrowhead_arrow"),icon:(0,l.jsx)(D.il,{flip:!o}),keyBinding:"w"},{value:"bar",text:(0,M.t)("labels.arrowhead_bar"),icon:(0,l.jsx)(D.m,{flip:!o}),keyBinding:"e"},{value:"dot",text:(0,M.t)("labels.arrowhead_dot"),icon:(0,l.jsx)(D.tn,{flip:!o}),keyBinding:"r"},{value:"triangle",text:(0,M.t)("labels.arrowhead_triangle"),icon:(0,l.jsx)(D.j8,{flip:!o}),keyBinding:"t"}],value:G(t,n,(function(e){return(0,N.bt)(e)&&(0,H.Un)(e.type)?e.startArrowhead:n.currentItemStartArrowhead}),n.currentItemStartArrowhead),onChange:function(e){return r({position:"start",type:e})}}),(0,l.jsx)(L,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:(0,M.t)("labels.arrowhead_none"),keyBinding:"q",icon:D.fr},{value:"arrow",text:(0,M.t)("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,l.jsx)(D.il,{flip:o})},{value:"bar",text:(0,M.t)("labels.arrowhead_bar"),keyBinding:"e",icon:(0,l.jsx)(D.m,{flip:o})},{value:"dot",text:(0,M.t)("labels.arrowhead_dot"),keyBinding:"r",icon:(0,l.jsx)(D.tn,{flip:o})},{value:"triangle",text:(0,M.t)("labels.arrowhead_triangle"),icon:(0,l.jsx)(D.j8,{flip:o}),keyBinding:"t"}],value:G(t,n,(function(e){return(0,N.bt)(e)&&(0,H.Un)(e.type)?e.endArrowhead:n.currentItemEndArrowhead}),n.currentItemEndArrowhead),onChange:function(e){return r({position:"end",type:e})}})]})]})}})},4958:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(7169),o=n(7901),i=n(6066);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 l(e){for(var t=1;t0&&r[n-1]!==t-1&&(l=++l),(e[l]||(e[l]=[])).push(t),e}),[]));return"right"===n&&(h=h.reverse()),h.forEach((function(r,i){var l=r[0],c=r[r.length-1],u="left"===n?l:c,f=function(e,t,n,r){var o,i=t[n],l=function(t){return!t.isDeleted&&(!e.editingGroupId||t.groupIds.includes(e.editingGroupId))},c="left"===r?(0,s.qr)(t,l,Math.max(0,n-1)):(0,s.cx)(t,l,n+1),u=t[c];if(!u)return-1;if(e.editingGroupId){var f;if((null==i?void 0:i.groupIds.join(""))===(null==u?void 0:u.groupIds.join("")))return null!==(f=d(u,t,r))&&void 0!==f?f:c;if(null==u||!u.groupIds.includes(e.editingGroupId))return-1}if(!u.groupIds.length)return null!==(o=d(u,t,r))&&void 0!==o?o:c;var p=e.editingGroupId?u.groupIds[u.groupIds.indexOf(e.editingGroupId)-1]:u.groupIds[u.groupIds.length-1],h=(0,a.Fb)(t,p);return h.length?"left"===r?t.indexOf(h[0]):t.indexOf(h[h.length-1]):c}(e,t,u,n);if(-1!==f&&u!==f){var p="left"===n?t.slice(0,f):t.slice(0,l),h=t.slice(l,c+1),v="left"===n?t.slice(f,l):t.slice(c+1,f+1),m="left"===n?t.slice(c+1):t.slice(f+1);t="left"===n?[].concat((0,o.Z)(p),(0,o.Z)(h),(0,o.Z)(v),(0,o.Z)(m)):[].concat((0,o.Z)(p),(0,o.Z)(v),(0,o.Z)(h),(0,o.Z)(m))}})),t.map((function(e){return p[e.id]?(0,i.ZP)(e):e}))},h=function(e,t,n){var r,l,c=u(e,t),s=f(e,c),d=[];if("left"===n){if(t.editingGroupId){var p=(0,a.Fb)(e,t.editingGroupId);if(!p.length)return e;r=e.indexOf(p[0])}else r=0;l=c[c.length-1]}else{if(t.editingGroupId){var h=(0,a.Fb)(e,t.editingGroupId);if(!h.length)return e;l=e.indexOf(h[h.length-1])}else l=e.length-1;r=c[0]}for(var v=r;v=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;){var E=v[m];k.get(E.id)||(k.set(E.id,!0),w.push(E))}var S=w.reverse();return(0,R.P7)(v,c,u),(0,Z.ek)(v,c,u),{elements:S,appState:(0,a.bO)(V(V({},t),{},{selectedGroupIds:{},selectedElementIds:i.reduce((function(e,t){return(0,T.Xh)(t)||(e[t.id]=!0),e}),{})}),(0,P.Lm)(S))}},X=(n(6208),n(2416)),q=n(2577),$=n(6552);function Q(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 J(e){for(var t=1;t1){var S=I._.getPointAtIndexGlobalCoordinates(y,-1),j=(0,q.Z)(S,2),O=j[0],C=j[1];(0,Z.R)(y,t,c.Z.getScene(y),{x:O,y:C})}t.activeTool.locked||"freedraw"===t.activeTool.type||(t.selectedElementIds[y.id]=!0)}return(t.activeTool.locked||"freedraw"===t.activeTool.type)&&y||(0,s.z8)(a),b="eraser"===t.activeTool.type?(0,s.Om)(t,J(J({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,s.Om)(t,{type:"selection"}),{elements:m,appState:J(J({},t),{},{cursorButton:"up",activeTool:(t.activeTool.locked||"freedraw"===t.activeTool.type)&&y?t.activeTool:b,draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:y&&!t.activeTool.locked&&"freedraw"!==t.activeTool.type?J(J({},t.selectedElementIds),{},(0,M.Z)({},y.id,!0)):t.selectedElementIds,selectedLinearElement:y&&(0,T.bt)(y)?new I._(y,u):t.selectedLinearElement,pendingImageElementId:null}),commitToHistory:"freedraw"===t.activeTool.type}},keyTest:function(e,t){return e.key===y.tW.ESCAPE&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===y.tW.ESCAPE||e.key===y.tW.ENTER)&&null!==t.multiElement},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.data;return(0,E.jsx)(z.V,{type:"button",icon:k.$c,title:(0,x.t)("buttons.done"),"aria-label":(0,x.t)("buttons.done"),onClick:n,visible:null!=t.multiElement,size:(null==r?void 0:r.size)||"medium"})}}),te=n(8671);function ne(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 re(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&!function(e){if(e.length>=2){var t,n=he(e[0].groupIds);try{var r=function(){var n=t.value;if(e.reduce((function(e,t){return e&&(0,a.Nd)(t,n)}),!0))return{v:!0}};for(n.s();!(t=n.n()).done;){var o=r();if("object"===(0,ue.Z)(o))return o.v}}catch(e){n.e(e)}finally{n.f()}}return!1}(n)},ge=(0,w.z)({name:"group",trackEvent:{category:"element"},perform:function(e,t){var n=(0,l.eD)((0,P.Lm)(e),t,!0);if(n.length<2)return{appState:t,elements:e,commitToHistory:!1};var r=(0,a.iJ)(t);if(1===r.length){var c=r[0],u=new Set((0,a.Fb)(e,c).map((function(e){return e.id}))),d=new Set(n.map((function(e){return e.id})));if(new Set([].concat((0,o.Z)(Array.from(u)),(0,o.Z)(Array.from(d)))).size===u.size)return{appState:t,elements:e,commitToHistory:!1}}var f=(0,de.kb)(),p=(0,s.xn)(n),h=e.map((function(e){return p.get(e.id)?(0,i.BE)(e,{groupIds:(0,a.S_)(e.groupIds,f,t.editingGroupId)}):e})),v=(0,a.Fb)(h,f),m=v[v.length-1],g=h.lastIndexOf(m),b=h.slice(g+1),y=h.slice(0,g).filter((function(e){return!(0,a.Nd)(e,f)})),x=[].concat((0,o.Z)(y),(0,o.Z)(v),(0,o.Z)(b));return{appState:(0,a.F$)(f,pe(pe({},t),{},{selectedGroupIds:{}}),(0,P.Lm)(x)),elements:x,commitToHistory:!0}},contextItemLabel:"labels.group",predicate:function(e,t){return me(e,t)},keyTest:function(e){return!e.shiftKey&&e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.G},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,E.jsx)(z.V,{hidden:!me(t,n),type:"button",icon:(0,E.jsx)(k.BF,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,x.t)("labels.group")," \u2014 ").concat((0,s.uY)("CtrlOrCmd+G")),"aria-label":(0,x.t)("labels.group"),visible:(0,l.N)((0,P.Lm)(t),n)})}}),be=(0,w.z)({name:"ungroup",trackEvent:{category:"element"},perform:function(e,t){if(0===(0,a.iJ)(t).length)return{appState:t,elements:e,commitToHistory:!1};var n=[],r=e.map((function(e){(0,T.Xh)(e)&&n.push(e.id);var r=(0,a.h6)(e.groupIds,t.selectedGroupIds);return r.length===e.groupIds.length?e:(0,i.BE)(e,{groupIds:r})})),o=(0,a.bO)(pe(pe({},t),{},{selectedGroupIds:{}}),(0,P.Lm)(r));return n.forEach((function(e){return o.selectedElementIds[e]=!1})),{appState:o,elements:r,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.G.toUpperCase()},contextItemLabel:"labels.ungroup",predicate:function(e,t){return(0,a.iJ)(t).length>0},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,E.jsx)(z.V,{type:"button",hidden:0===(0,a.iJ)(n).length,icon:(0,E.jsx)(k.RJ,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,x.t)("labels.ungroup")," \u2014 ").concat((0,s.uY)("CtrlOrCmd+Shift+G")),"aria-label":(0,x.t)("labels.ungroup"),visible:(0,l.N)((0,P.Lm)(t),n)})}}),ye=n(8982),xe=n(487),we=n.n(xe),ke=n(631),_e=n.n(ke),Ee=n(2052),Se=n.n(Ee),je=n(4010),Oe=n.n(je),Ce=n(1469),Me=n.n(Ce),Pe=n(9329),Te=n.n(Pe),Ie=n(3729),Le={};Le.styleTagTransform=Te(),Le.setAttributes=Oe(),Le.insert=Se().bind(null,"head"),Le.domAPI=_e(),Le.insertStyleElement=Me(),we()(Ie.Z,Le),Ie.Z&&Ie.Z.locals&&Ie.Z.locals;var De=n(9787),Ae=function(e){var t=e.color,n=e.onClick,r=e.name,o=e.src,i=(0,ye.f)(r),a=(0,De.useState)(!1),l=(0,q.Z)(a,2),c=l[0],s=l[1],u=!c&&o,d=u?void 0:{background:t};return(0,E.jsx)("div",{className:"Avatar",style:d,onClick:n,children:u?(0,E.jsx)("img",{className:"Avatar-img",src:o,alt:i,referrerPolicy:"no-referrer",onError:function(){return s(!0)}}):i})},ze=n(2264);function Ze(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 Re(e){for(var t=1;t1},Ge=function(e,t,n){var r=function(e,t){var n=(0,a.AI)(e),r=(0,Fe.v2)(e);return n.flatMap((function(e){var n=Ve(e,r,t);return e.map((function(e){return(0,i.BE)(e,{x:e.x+n.x,y:e.y+n.y})}))}))}((0,l.eD)((0,P.Lm)(e),t),n),o=(0,s.xn)(r);return e.map((function(e){return o.get(e.id)||e}))};function Xe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1},Qe=function(e,t,n){var r=function(e,t){var n,r="x"===t.axis?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],o=(0,q.Z)(r,4),l=o[0],c=o[1],s=o[2],u=o[3],d=(0,Fe.v2)(e),f=(0,a.AI)(e).map((function(e){return[e,(0,Fe.v2)(e)]})).sort((function(e,t){return e[1][c]-t[1][c]})),p=0,h=Xe(f);try{for(h.s();!(n=h.n()).done;)p+=n.value[1][u]}catch(e){h.e(e)}finally{h.f()}var v=(d[u]-p)/(f.length-1);if(v<0){var m=f.findIndex((function(e){return e[1][l]===d[l]})),g=f.findIndex((function(e){return e[1][s]===d[s]})),b=(f[g][1][c]-f[m][1][c])/(f.length-1),y=f[m][1][c];return f.flatMap((function(e,n){var r=(0,q.Z)(e,2),o=r[0],a=r[1],l={x:0,y:0};return n!==m&&n!==g&&(y+=b,l[t.axis]=y-a[c]),o.map((function(e){return(0,i.BE)(e,{x:e.x+l.x,y:e.y+l.y})}))}))}var x=d[l];return f.flatMap((function(e){var n=(0,q.Z)(e,2),r=n[0],o=n[1],a={x:0,y:0};return a[t.axis]=x-o[l],x+=v,x+=o[u],r.map((function(e){return(0,i.BE)(e,{x:e.x+a.x,y:e.y+a.y})}))}))}((0,l.eD)((0,P.Lm)(e),t),n),o=(0,s.xn)(r);return e.map((function(e){return o.get(e.id)||e}))},Je=((0,w.z)({name:"distributeHorizontally",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:Qe(e,t,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return!e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.H},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,E.jsx)(z.V,{hidden:!$e(t,n),type:"button",icon:k.uD,onClick:function(){return r(null)},title:"".concat((0,x.t)("labels.distributeHorizontally")," \u2014 ").concat((0,s.uY)("Alt+H")),"aria-label":(0,x.t)("labels.distributeHorizontally"),visible:(0,l.N)((0,P.Lm)(t),n)})}}),(0,w.z)({name:"distributeVertically",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:Qe(e,t,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return!e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.V},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,E.jsx)(z.V,{hidden:!$e(t,n),type:"button",icon:k.W5,onClick:function(){return r(null)},title:"".concat((0,x.t)("labels.distributeVertically")," \u2014 ").concat((0,s.uY)("Alt+V")),"aria-label":(0,x.t)("labels.distributeVertically"),visible:(0,l.N)((0,P.Lm)(t),n)})}}),n(8634)),et=n(267),tt=(0,w.z)({name:"flipHorizontal",trackEvent:{category:"element"},perform:function(e,t){return{elements:rt(e,t,"horizontal"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyH"===e.code},contextItemLabel:"labels.flipHorizontal",predicate:function(e,t){return function(e,t){var n=(0,l.eD)((0,P.Lm)(e),t);return 1===n.length&&"text"!==n[0].type}(e,t)}}),nt=(0,w.z)({name:"flipVertical",trackEvent:{category:"element"},perform:function(e,t){return{elements:rt(e,t,"vertical"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyV"===e.code&&!e[y.tW.CTRL_OR_CMD]},contextItemLabel:"labels.flipVertical",predicate:function(e,t){return function(e,t){return 1===(0,l.eD)((0,P.Lm)(e),t).length}(e,t)}}),rt=function(e,t,n){var r=(0,l.eD)((0,P.Lm)(e),t);if(r.length>1)return e;var o=ot(r,t,n),i=(0,s.xn)(o);return e.map((function(e){return i.get(e.id)||e}))},ot=function(e,t,n){return e.forEach((function(e){it(e,t),"vertical"===n&&at(e,Math.PI)})),e},it=function(e,t){var n=e.x,r=e.y,o=e.width,a=e.height,l=(0,Je.LW)(e.angle);(0,i.DR)(e,{angle:(0,Je.LW)(0)});var c=(0,et.PC)(e,t.zoom),s=!0,u=c.nw;if(u||(s=!1,u=c.ne)){var d,f=0;(0,T.bt)(e)&&e.points.length<3&&(f=2*e.points.reduce((function(e,t){return Math.max(e,t[0])}),0)-e.width),(0,T.bt)(e)&&(d=(0,Fe.Ut)(e,e.points));var p=(0,Fe.qf)(e);if((0,T.bt)(e)&&e.points.length<3){for(var h=1;h0}}),xt=function(e){return e.some((function(e){return!e.locked}))?"lock":"unlock"};function wt(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 kt(e){for(var t=1;t0?t[0]:""}},7047:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(e,t,n,r){try{if("undefined"==typeof window||{REACT_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",REACT_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",REACT_APP_LIBRARY_URL:"https://libraries.excalidraw.com",REACT_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",REACT_APP_PORTAL_URL:"https://portal.excalidraw.com",REACT_APP_WS_SERVER_URL:"",REACT_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',REACT_APP_GOOGLE_ANALYTICS_ID:"UA-387204-13",REACT_APP_MATOMO_URL:"https://excalidraw.matomo.cloud/",REACT_APP_CDN_MATOMO_TRACKER_URL:"//cdn.matomo.cloud/excalidraw.matomo.cloud/matomo.js",REACT_APP_MATOMO_SITE_ID:"1",REACT_APP_PLUS_APP:"https://app.excalidraw.com",PKG_NAME:"@excalidraw/excalidraw",PKG_VERSION:"0.15.2",IS_EXCALIDRAW_NPM_PACKAGE:!0}.JEST_WORKER_ID)return;window.gtag&&window.gtag("event",t,{event_category:e,event_label:n,value:r}),window._paq&&window._paq.push(["trackEvent",e,t,n,r])}catch(e){console.error("error during analytics",e)}}},8897:function(e,t,n){"use strict";n.d(t,{EN:function(){return p},eS:function(){return f},im:function(){return c},l$:function(){return h},s:function(){return d}});var r=n(5284),o=n(2335),i=n(8211),a=n(6340),l=o.ZB.includes(devicePixelRatio)?devicePixelRatio:1,c=function(){return{showWelcomeScreen:!1,theme:o.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:o.HN.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:o.HN.fillStyle,currentItemFontFamily:o.rk,currentItemFontSize:o.n5,currentItemOpacity:o.HN.opacity,currentItemRoughness:o.HN.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:o.HN.strokeColor,currentItemRoundness:"round",currentItemStrokeStyle:o.HN.strokeStyle,currentItemStrokeWidth:o.HN.strokeWidth,currentItemTextAlign:o.Hg,cursorButton:"up",draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:o.HN.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:l,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,isSidebarDocked:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat((0,i.t)("labels.untitled"),"-").concat((0,a.Fc)()),contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectionElement:null,shouldCacheIgnoreZoom:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],toast:null,viewBackgroundColor:r.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null}},s={showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},draggingElement:{browser:!1,export:!1,server:!1},editingElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},isSidebarDocked:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},showStats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1}},u=function(e,t){for(var n={},r=0,o=Object.keys(e);r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2)return{type:g,reason:"More than 2 columns"};if(1===t){if(!x(e,0))return{type:g,reason:"Value is not numeric"};var n=null===y(e[0][0]),r=(n?e.slice(1):e).map((function(e){return y(e[0])}));return r.length<2?{type:g,reason:"Less than two rows"}:{type:b,spreadsheet:{title:n?e[0][0]:null,labels:null,values:r}}}var o=x(e,0),a=x(e,1);if(!o&&!a)return{type:g,reason:"Value is not numeric"};var l=a?[0,1]:[1,0],c=(0,i.Z)(l,2),s=c[0],u=c[1],d=null===y(e[0][u]),f=d?e.slice(1):e;return f.length<2?{type:g,reason:"Less than 2 rows"}:{type:b,spreadsheet:{title:d?e[0][u]:null,labels:f.map((function(e){return e[s]})),values:f.map((function(e){return y(e[u])}))}}},k=function(e){var t=e.trim().split("\n").map((function(e){return e.trim().split("\t")}));if(t.length&&2!==t[0].length&&(t=e.trim().split("\n").map((function(e){return e.trim().split(",")}))),0===t.length)return{type:g,reason:"No values"};var n=t[0].length;if(!t.every((function(e){return e.length===n})))return{type:g,reason:"All rows don't have same number of columns"};var r=w(t);if(r.type!==b){var o=w(function(e){for(var t=[],n=0;n8?"".concat(e.slice(0,5),"..."):e,x:t+44*i+24,y:n+6,width:h,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))})))||[]}(e,t,n,o,i)),(0,r.Z)(function(e,t,n,o,i){var a=(0,c.VL)(p(p({groupIds:[o],backgroundColor:i},E),{},{x:t-v,y:n-v,text:"0",textAlign:"right"}));return[a,(0,c.VL)(p(p({groupIds:[o],backgroundColor:i},E),{},{x:t-v,y:n-m-a.height/2,text:Math.max.apply(Math,(0,r.Z)(e.values)).toLocaleString(),textAlign:"right"}))]}(e,t,n,o,i)),(0,r.Z)(function(e,t,n,r,o){var i=S(e),a=i.chartWidth,l=i.chartHeight;return[(0,c.y8)(p(p({backgroundColor:o,groupIds:[r]},E),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,width:a,points:[[0,0],[a,0]]})),(0,c.y8)(p(p({backgroundColor:o,groupIds:[r]},E),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,height:l,points:[[0,0],[0,-l]]})),(0,c.y8)(p(p({backgroundColor:o,groupIds:[r]},E),{},{type:"line",x:t,y:n-m-v,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:a,opacity:50,points:[[0,0],[a,0]]}))]}(e,t,n,o,i)))},O=function(e,t,n,o){return"line"===e?function(e,t,n){var o,i=Math.max.apply(Math,(0,r.Z)(e.values)),a=(0,s.kb)(),d=_[Math.floor(Math.random()*_.length)],f=0,h=[],g=u(e.values);try{for(g.s();!(o=g.n()).done;){var b=o.value,y=44*f,x=-b/i*m;h.push([y,x]),f++}}catch(e){g.e(e)}finally{g.f()}var w=Math.max.apply(Math,(0,r.Z)(h.map((function(e){return e[0]})))),k=Math.max.apply(Math,(0,r.Z)(h.map((function(e){return e[1]})))),S=Math.min.apply(Math,(0,r.Z)(h.map((function(e){return e[0]})))),O=Math.min.apply(Math,(0,r.Z)(h.map((function(e){return e[1]})))),C=(0,c.y8)(p(p({backgroundColor:d,groupIds:[a]},E),{},{type:"line",x:t+v+16,y:n-v,startArrowhead:null,endArrowhead:null,height:k-O,width:w-S,strokeWidth:2,points:h})),M=e.values.map((function(e,r){var o=44*r+6,l=-e/i*m+6;return(0,c.Up)(p(p({backgroundColor:d,groupIds:[a]},E),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+o+16,y:n+l-24,width:v,height:v}))})),P=e.values.map((function(e,r){var o=44*r+6,l=e/i*m+6+v;return(0,c.y8)(p(p({backgroundColor:d,groupIds:[a]},E),{},{type:"line",x:t+o+16+6,y:n-l,startArrowhead:null,endArrowhead:null,height:l,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,l]]}))}));return[].concat((0,r.Z)(j(e,t,n,a,d,"production"===l.Vi.DEVELOPMENT)),[C],(0,r.Z)(P),(0,r.Z)(M))}(t,n,o):function(e,t,n){var o=Math.max.apply(Math,(0,r.Z)(e.values)),i=(0,s.kb)(),a=_[Math.floor(Math.random()*_.length)],u=e.values.map((function(e,r){var l=e/o*m;return(0,c.Up)(p(p({backgroundColor:a,groupIds:[i]},E),{},{type:"rectangle",x:t+44*r+v,y:n-l-v,width:h,height:l}))}));return[].concat((0,r.Z)(u),(0,r.Z)(j(e,t,n,i,a,"production"===l.Vi.DEVELOPMENT)))}(t,n,o)}},8982:function(e,t,n){"use strict";n.d(t,{X:function(){return o},f:function(){return i}});var r=n(56),o=function(e,t){if(null!=t&&t.collaborators){var n=t.collaborators.get(e);if(null!=n&&n.color)return n.color}var o=e.split("").reduce((function(e,t){return e+t.charCodeAt(0)}),0),i=r.Z.elementBackground.slice(3),a=r.Z.elementStroke.slice(3);return{background:i[o%i.length],stroke:a[o%a.length]}},i=function(e){return null!=e&&e.trim()?e.trim()[0].toUpperCase():"?"}},6665:function(e,t,n){"use strict";n.d(t,{dd:function(){return j},mQ:function(){return E},uR:function(){return S},vQ:function(){return x},vt:function(){return b},wx:function(){return g}});var r=n(7169),o=n(8950),i=n(2975),a=n.n(i),l=n(4162),c=n(5674),s=n(2335),u=n(1974),d=n(6340);function f(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 p(e){for(var t=1;t1&&void 0!==s[1]&&s[1],e.next=3,_(t);case 3:if((r=e.sent)&&(n||!r.includes(l.oj))){e.next=6;break}return e.abrupt("return",w());case 6:if(!(o=!n&&k(r))){e.next=9;break}return e.abrupt("return",o);case 9:if(i=w(),e.prev=10,c=JSON.parse(r),!y(c)){e.next=14;break}return e.abrupt("return",{elements:c.elements,files:c.files,text:n?JSON.stringify(c.elements,null,2):void 0});case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(10);case 18:return e.abrupt("return",v&&i.elements?p(p({},i),{},{text:n?JSON.stringify(i.elements,null,2):void 0}):{text:r});case 19:case"end":return e.stop()}}),e,null,[[10,16]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,o.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.write([new window.ClipboardItem((0,r.Z)({},s.LO.png,t))]);case 3:case 21:e.next=24;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(0,d.y8)(t)){e.next=23;break}return e.t1=navigator.clipboard,e.t2=window.ClipboardItem,e.t3=r.Z,e.t4={},e.t5=s.LO.png,e.next=15,t;case 15:return e.t6=e.sent,e.t7=(0,e.t3)(e.t4,e.t5,e.t6),e.t8=new e.t2(e.t7),e.t9=[e.t8],e.next=21,e.t1.write.call(e.t1,e.t9);case 23:throw e.t0;case 24:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=(0,o.Z)(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,!g){e.next=11;break}return e.prev=2,e.next=5,navigator.clipboard.writeText(t||"");case 5:n=!0,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0);case 11:if(n||O(t||" ")){e.next=13;break}throw new Error("couldn't copy");case 13:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),O=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}},56:function(e,t,n){"use strict";var r=n(1930),o=n(5284),i=function(e){return[o.red[e],o.pink[e],o.grape[e],o.violet[e],o.indigo[e],o.blue[e],o.cyan[e],o.teal[e],o.green[e],o.lime[e],o.yellow[e],o.orange[e]]};t.Z={canvasBackground:[o.white,o.gray[0],o.gray[1]].concat((0,r.Z)(i(0))),elementBackground:["transparent",o.gray[4],o.gray[6]].concat((0,r.Z)(i(6))),elementStroke:[o.black,o.gray[8],o.gray[7]].concat((0,r.Z)(i(9)))}},6798:function(e,t,n){"use strict";n.d(t,{o:function(){return f},w:function(){return d}});var r=n(2577),o=n(4739),i=n(6710),a=n(8211),l=n(9487),c=n(2134),s=n(7046),u=n(4512),d=(0,o.cn)(null),f=function(){var e=(0,o.KO)(d,l.yE),t=(0,r.Z)(e,2),n=t[0],f=t[1],p=(0,c.eh)();return n&&"clearCanvas"===n?(0,u.jsx)(s.Z,{onConfirm:function(){p.executeAction(i.mo),f(null)},onCancel:function(){return f(null)},title:(0,a.t)("clearCanvasDialog.title"),children:(0,u.jsxs)("p",{className:"clear-canvas__content",children:[" ",(0,a.t)("alerts.clearReset")]})}):null}},2134:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ur},Fy:function(){return xr},eh:function(){return Sr},gF:function(){return _r},J0:function(){return wr},bd:function(){return kr},n9:function(){return Er}});var r=n(6655),o=n(2577),i=n(1930),a=n(8950),l=n(8821),c=n(5169),s=n(3173),u=n(2248),d=n(7245),f=n(2312),p=n(7169),h=n(2975),v=n.n(h),m=n(9787),g=n.n(m),b=n(5156),y=n(8234),x=n(45),w=n(5605),k=n(6710),_=n(3646),E=n(1319),S=n(8211),j=n(6066),O=n(1935),C=n(8290),M=n(6340),P=n(2335),T=n(4512);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t1&&console.warn("Canceling as multiple actions match this shortcut",r),!1;var o=r[0];if(this.getAppState().viewModeEnabled&&!0!==o.viewMode)return!1;var i=this.getElementsIncludingDeleted(),a=this.getAppState();return z(o,"keyboard",a,i,this.app,null),e.preventDefault(),e.stopPropagation(),this.updater(r[0].perform(i,a,null,this.app)),!0}},{key:"executeAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",n=this.getElementsIncludingDeleted(),r=this.getAppState(),o=null;z(e,t,r,n,this.app,o),this.updater(e.perform(n,r,o,this.app))}}]),e}(),R=n(7901),N=n(8897),B=n(6665),H=n(9485),W=n(7053),F=n(679),U=n(1047),K=n(6938),V=n(2791),Y=n(1974),G=function(e){var t=Array.from(e.values());return{x:q(t,(function(e){return e.x}))/t.length,y:q(t,(function(e){return e.y}))/t.length}},X=function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return Math.hypot(n.x-r.x,n.y-r.y)},q=function(e,t){return e.reduce((function(e,n){return e+t(n)}),0)},$=n(242);function Q(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 J(e){for(var t=1;t-1;r--){var o=e.elements[r],i=n.elements[r];if(!o||!i||o.id!==i.id||o.versionNonce!==i.versionNonce)return!0}for(t in e.appState){var a,l;if(("editingLinearElement"!==t||(null===(a=e.appState[t])||void 0===a?void 0:a.elementId)!==(null===(l=n.appState[t])||void 0===l?void 0:l.elementId))&&"selectedElementIds"!==t&&"selectedGroupIds"!==t&&e.appState[t]!==n.appState[t])return!0}return!1}},{key:"pushEntry",value: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()}}},{key:"clearRedoStack",value:function(){this.redoStack.splice(0,this.redoStack.length)}},{key:"redoOnce",value: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}},{key:"undoOnce",value: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}},{key:"setCurrentState",value:function(e,t){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(e,t))}},{key:"resumeRecording",value:function(){this.recording=!0}},{key:"record",value:function(e,t){this.recording&&(this.pushEntry(e,t),this.recording=!1)}}]),e}(),ne=n(6552),re=n(3547),oe=n(3063),ie=n(75),ae=n(1564),le=n(746),ce=[{icon:_.zu,value:"selection",key:j.tW.V,numericKey:j.tW[1],fillable:!0},{icon:_.OW,value:"rectangle",key:j.tW.R,numericKey:j.tW[2],fillable:!0},{icon:_.nb,value:"diamond",key:j.tW.D,numericKey:j.tW[3],fillable:!0},{icon:_.Re,value:"ellipse",key:j.tW.O,numericKey:j.tW[4],fillable:!0},{icon:_.e0,value:"arrow",key:j.tW.A,numericKey:j.tW[5],fillable:!0},{icon:_.zb,value:"line",key:j.tW.L,numericKey:j.tW[6],fillable:!0},{icon:_.Pm,value:"freedraw",key:[j.tW.P,j.tW.X],numericKey:j.tW[7],fillable:!1},{icon:_.VL,value:"text",key:j.tW.T,numericKey:j.tW[8],fillable:!1},{icon:_.XB,value:"image",key:null,numericKey:j.tW[9],fillable:!1},{icon:_.$q,value:"eraser",key:j.tW.E,numericKey:j.tW[0],fillable:!1}],se=n(2891),ue=n(487),de=n.n(ue),fe=n(631),pe=n.n(fe),he=n(2052),ve=n.n(he),me=n(4010),ge=n.n(me),be=n(1469),ye=n.n(be),xe=n(9329),we=n.n(xe),ke=n(6578),_e={};_e.styleTagTransform=we(),_e.setAttributes=ge(),_e.insert=ve().bind(null,"head"),_e.domAPI=pe(),_e.insertStyleElement=ye(),de()(ke.Z,_e),ke.Z&&ke.Z.locals&&ke.Z.locals;var Ee=n(785),Se="separator",je=g().memo((function(e){var t=e.actionManager,n=e.items,r=e.top,o=e.left,i=_r(),a=Er(),l=kr(),c=n.reduce((function(e,n){return!n||n!==Se&&n.predicate&&!n.predicate(l,i,t.app.props,t.app)||e.push(n),e}),[]);return(0,T.jsx)(se.J,{onCloseRequest:function(){return a({contextMenu:null})},top:r,left:o,fitInViewport:!0,offsetLeft:i.offsetLeft,offsetTop:i.offsetTop,viewportWidth:i.width,viewportHeight:i.height,children:(0,T.jsx)("ul",{className:"context-menu",onContextMenu:function(e){return e.preventDefault()},children:c.map((function(e,n){var r;if(e===Se)return c[n-1]&&c[n-1]!==Se?(0,T.jsx)("hr",{className:"context-menu-item-separator"},n):null;var o=e.name,s="";return e.contextItemLabel&&(s="function"==typeof e.contextItemLabel?(0,S.t)(e.contextItemLabel(l,i)):(0,S.t)(e.contextItemLabel)),(0,T.jsx)("li",{"data-testid":o,onClick:function(){a({contextMenu:null},(function(){t.executeAction(e,"contextMenu")}))},children:(0,T.jsxs)("button",{className:(0,x.Z)("context-menu-item",{dangerous:"deleteSelectedElements"===o,checkmark:null===(r=e.checked)||void 0===r?void 0:r.call(e,i)}),children:[(0,T.jsx)("div",{className:"context-menu-item__label",children:s}),(0,T.jsx)("kbd",{className:"context-menu-item__shortcut",children:o?(0,Ee.C)(o):""})]})},n)}))})})})),Oe=n(2726),Ce=n(7239),Me=n(8120),Pe=n(6086),Te={};Te.styleTagTransform=we(),Te.setAttributes=ge(),Te.insert=ve().bind(null,"head"),Te.domAPI=pe(),Te.insertStyleElement=ye(),de()(Pe.Z,Te),Pe.Z&&Pe.Z.locals&&Pe.Z.locals;var Ie=n(1894),Le=n(5710);function De(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 Ae(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&!a&&(0,T.jsxs)("fieldset",{children:[(0,T.jsx)("legend",{children:(0,S.t)("labels.align")}),(0,T.jsxs)("div",{className:"buttonList",children:[u?(0,T.jsxs)(T.Fragment,{children:[o("alignRight"),o("alignHorizontallyCentered"),o("alignLeft")]}):(0,T.jsxs)(T.Fragment,{children:[o("alignLeft"),o("alignHorizontallyCentered"),o("alignRight")]}),i.length>2&&o("distributeHorizontally"),(0,T.jsx)("div",{style:{flexBasis:"100%",height:0}}),(0,T.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:".5rem",marginTop:"-0.5rem"},children:[o("alignTop"),o("alignVerticallyCentered"),o("alignBottom"),i.length>2&&o("distributeVertically")]})]})]}),!c&&i.length>0&&(0,T.jsxs)("fieldset",{children:[(0,T.jsx)("legend",{children:(0,S.t)("labels.actions")}),(0,T.jsxs)("div",{className:"buttonList",children:[!s.isMobile&&o("duplicateSelection"),!s.isMobile&&o("deleteSelectedElements"),o("group"),o("ungroup"),p&&o("hyperlink")]})]})]})},Ne=function(e){var t=e.canvas,n=e.activeTool,r=e.setAppState,o=e.onImageAction,i=e.appState;return(0,T.jsx)(T.Fragment,{children:ce.map((function(e,a){var l=e.value,c=e.icon,s=e.key,u=e.numericKey,d=e.fillable,f=(0,S.t)("toolBar.".concat(l)),p=s&&(0,M.Oo)("string"==typeof s?s:s[0]),h=p?"".concat(p," ").concat((0,S.t)("helpDialog.or")," ").concat(u):"".concat(u);return(0,T.jsx)(E.V,{className:(0,x.Z)("Shape",{fillable:d}),type:"radio",icon:c,checked:n.type===l,name:"editor-current-shape",title:"".concat((0,M.Oo)(f)," \u2014 ").concat(h),keyBindingLabel:u||p,"aria-label":(0,M.Oo)(f),"aria-keyshortcuts":h,"data-testid":"toolbar-".concat(l),onPointerDown:function(e){var t=e.pointerType;i.penDetected||"pen"!==t||r({penDetected:!0,penMode:!0})},onChange:function(e){var n=e.pointerType;i.activeTool.type!==l&&(0,A.L)("toolbar",l,"ui");var a=(0,M.Om)(i,{type:l});r({activeTool:a,multiElement:null,selectedElementIds:{}}),(0,M.Uk)(t,Ae(Ae({},i),{},{activeTool:a})),"image"===l&&o({pointerType:n})}},l)}))})},Be=function(e){var t=e.renderAction;return e.zoom,(0,T.jsx)(Ce.Z.Col,{gap:1,className:"zoom-actions",children:(0,T.jsxs)(Ce.Z.Row,{align:"center",children:[t("zoomOut"),t("resetZoom"),t("zoomIn")]})})},He=function(e){var t=e.renderAction,n=e.className;return(0,T.jsxs)("div",{className:"undo-redo-buttons ".concat(n),children:[(0,T.jsx)("div",{className:"undo-button-container",children:(0,T.jsx)(Ie.u,{label:(0,S.t)("buttons.undo"),children:t("undo")})}),(0,T.jsx)("div",{className:"redo-button-container",children:(0,T.jsxs)(Ie.u,{label:(0,S.t)("buttons.redo"),children:[" ",t("redo")]})})]})},We=function(e){var t=e.actionManager,n=e.showExitZenModeBtn;return(0,T.jsx)("button",{className:(0,x.Z)("disable-zen-mode",{"disable-zen-mode--visible":n}),onClick:function(){return t.executeAction(k.JN)},children:(0,S.t)("buttons.exitZenMode")})},Fe=function(e){var t=e.renderAction,n=e.className;return(0,T.jsx)("div",{className:"finalize-button ".concat(n),children:t("finalize",{size:"small"})})},Ue=n(8396),Ke=function(e){var t=e.children,n=e.onClose,r=(0,m.useState)(!!t),i=(0,o.Z)(r,2),a=i[0],l=i[1],c=wr().container,s=g().useCallback((function(){l(!1),n&&n(),null==c||c.focus()}),[n,c]);return(0,T.jsx)(T.Fragment,{children:a&&(0,T.jsx)(Ue.V,{small:!0,onCloseRequest:s,title:(0,S.t)("errorDialog.title"),children:(0,T.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})})})},Ve=n(434),Ye=n(7955),Ge={};Ge.styleTagTransform=we(),Ge.setAttributes=ge(),Ge.insert=ve().bind(null,"head"),Ge.domAPI=pe(),Ge.insertStyleElement=ye(),de()(Ye.Z,Ge),Ye.Z&&Ye.Z.locals&&Ye.Z.locals;var Xe=n(5284),qe=n(3807),$e=n(1393),Qe=n(3024),Je="filter"in document.createElement("canvas").getContext("2d"),et=function(){return(0,T.jsxs)("div",{children:[(0,T.jsx)("h3",{children:(0,S.t)("canvasError.cannotShowPreview")}),(0,T.jsx)("p",{children:(0,T.jsx)("span",{children:(0,S.t)("canvasError.canvasTooBig")})}),(0,T.jsxs)("em",{children:["(",(0,S.t)("canvasError.canvasTooBigTip"),")"]})]})},tt=function(e){var t,n=e.children,r=e.title,o=e.onClick,i=e.color,a=e.shade,l=void 0===a?6:a;return(0,T.jsx)("button",{className:"ExportDialog-imageExportButton",style:(t={},(0,p.Z)(t,"--button-color",Xe[i][l]),(0,p.Z)(t,"--button-color-darker",Xe[i][l+1]),(0,p.Z)(t,"--button-color-darkest",Xe[i][l+2]),t),title:r,"aria-label":r,onClick:o,children:n})},nt=function(e){var t=e.elements,n=e.appState,r=e.files,i=e.exportPadding,a=void 0===i?P.qy:i,l=e.actionManager,c=e.onExportToPng,s=e.onExportToSvg,u=e.onExportToClipboard,d=(0,ie.N)(t,n),f=(0,m.useState)(d),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=(0,m.useRef)(null),b=(0,m.useState)(null),y=(0,o.Z)(b,2),x=y[0],w=y[1],k=h?(0,ie.eD)(t,n,!0):t;return(0,m.useEffect)((function(){v(d)}),[d]),(0,m.useEffect)((function(){var e=g.current;if(e){var t=e.offsetWidth;t&&(0,Qe.NL)({elements:k,appState:n,files:r,exportPadding:a,maxWidthOrHeight:t}).then((function(t){return w(null),(0,Ve._c)(t).then((function(){e.replaceChildren(t)}))})).catch((function(e){console.error(e),w(e)}))}}),[n,r,k,a]),(0,T.jsxs)("div",{className:"ExportDialog",children:[(0,T.jsx)("div",{className:"ExportDialog__preview",ref:g,children:x&&(0,T.jsx)(et,{})}),Je&&l.renderAction("exportWithDarkMode"),(0,T.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr"},children:(0,T.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(190px, 1fr))",overflow:"hidden"},children:[l.renderAction("changeExportBackground"),d&&(0,T.jsx)(qe.o,{checked:h,onChange:function(e){return v(e)},children:(0,S.t)("labels.onlySelected")}),l.renderAction("changeExportEmbedScene")]})}),(0,T.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:".6em"},children:[(0,T.jsx)(Ce.Z.Row,{gap:2,children:l.renderAction("changeExportScale")}),(0,T.jsx)("p",{style:{marginLeft:"1em",userSelect:"none"},children:(0,S.t)("buttons.scale")})]}),(0,T.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",margin:".6em 0"},children:!$e.kr&&l.renderAction("changeProjectName")}),(0,T.jsxs)(Ce.Z.Row,{gap:2,justifyContent:"center",style:{margin:"2em 0"},children:[(0,T.jsx)(tt,{color:"indigo",title:(0,S.t)("buttons.exportToPng"),"aria-label":(0,S.t)("buttons.exportToPng"),onClick:function(){return c(k)},children:"PNG"}),(0,T.jsx)(tt,{color:"red",title:(0,S.t)("buttons.exportToSvg"),"aria-label":(0,S.t)("buttons.exportToSvg"),onClick:function(){return s(k)},children:"SVG"}),(B.vt||P.vU)&&(0,T.jsx)(tt,{title:(0,S.t)("buttons.copyPngToClipboard"),onClick:function(){return u(k)},color:"gray",shade:7,children:_.BR})]})]})},rt=function(e){var t=e.elements,n=e.appState,r=e.setAppState,o=e.files,i=e.exportPadding,a=void 0===i?P.qy:i,l=e.actionManager,c=e.onExportToPng,s=e.onExportToSvg,u=e.onExportToClipboard,d=g().useCallback((function(){r({openDialog:null})}),[r]);return(0,T.jsx)(T.Fragment,{children:"imageExport"===n.openDialog&&(0,T.jsx)(Ue.V,{onCloseRequest:d,title:(0,S.t)("buttons.exportImage"),children:(0,T.jsx)(nt,{elements:t,appState:n,files:o,exportPadding:a,actionManager:l,onExportToPng:c,onExportToSvg:s,onExportToClipboard:u,onCloseRequest:d})})})},ot=n(3195),it={};it.styleTagTransform=we(),it.setAttributes=ge(),it.insert=ve().bind(null,"head"),it.domAPI=pe(),it.insertStyleElement=ye(),de()(ot.Z,it),ot.Z&&ot.Z.locals&&ot.Z.locals;var at=function(e){var t=e.children,n=e.side,r=e.className;return(0,T.jsx)("div",{className:(0,x.Z)("FixedSideContainer","FixedSideContainer_side_".concat(n),r),children:t})},lt=n(1587),ct={};ct.styleTagTransform=we(),ct.setAttributes=ge(),ct.insert=ve().bind(null,"head"),ct.domAPI=pe(),ct.insertStyleElement=ye(),de()(lt.Z,ct),lt.Z&<.Z.locals&<.Z.locals;var st=function(e){var t=function(e){var t=e.appState,n=e.elements,r=e.isMobile,o=e.device,i=t.activeTool,a=t.isResizing,l=t.isRotating,c=t.lastPointerDownWith,s=null!==t.multiElement;if("library"===t.openSidebar&&!o.canDeviceFitSidebar)return null;if((0,N.EN)(t))return(0,S.t)("hints.eraserRevert");if("arrow"===i.type||"line"===i.type)return s?(0,S.t)("hints.linearElementMulti"):(0,S.t)("hints.linearElement");if("freedraw"===i.type)return(0,S.t)("hints.freeDraw");if("text"===i.type)return(0,S.t)("hints.text");if("image"===t.activeTool.type&&t.pendingImageElementId)return(0,S.t)("hints.placeImage");var u=(0,ie.eD)(n,t);if(a&&"mouse"===c&&1===u.length){var d=u[0];return(0,Y.bt)(d)&&2===d.points.length?(0,S.t)("hints.lockAngle"):(0,Y.pC)(d)?(0,S.t)("hints.resizeImage"):(0,S.t)("hints.resize")}if(l&&"mouse"===c)return(0,S.t)("hints.rotate");if(1===u.length&&(0,Y.iB)(u[0]))return(0,S.t)("hints.text_selected");if(t.editingElement&&(0,Y.iB)(t.editingElement))return(0,S.t)("hints.text_editing");if("selection"===i.type){var f;if("selection"===(null===(f=t.draggingElement)||void 0===f?void 0:f.type)&&!t.editingElement&&!t.editingLinearElement)return(0,S.t)("hints.deepBoxSelect");if(!u.length&&!r)return(0,S.t)("hints.canvasPanning")}if(1===u.length){if((0,Y.bt)(u[0]))return t.editingLinearElement?t.editingLinearElement.selectedPointsIndices?(0,S.t)("hints.lineEditor_pointSelected"):(0,S.t)("hints.lineEditor_nothingSelected"):(0,S.t)("hints.lineEditor_info");if((0,Y.mG)(u[0]))return(0,S.t)("hints.bindTextToElement")}return null}({appState:e.appState,elements:e.elements,isMobile:e.isMobile,device:e.device});return t?(t=(0,M.uY)(t),(0,T.jsx)("div",{className:"HintViewer",children:(0,T.jsx)("span",{children:t})})):null},ut=n(1881),dt=n(5440),ft=(n(5422),{CHECKED:_.FC,UNCHECKED:_._C}),pt=function(e){return(0,T.jsxs)("label",{className:(0,x.Z)("ToolIcon ToolIcon__lock","ToolIcon_size_".concat("medium"),{"is-mobile":e.isMobile}),title:"".concat(e.title," \u2014 Q"),children:[(0,T.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title,"data-testid":"toolbar-lock"}),(0,T.jsx)("div",{className:"ToolIcon__icon",children:e.checked?ft.CHECKED:ft.UNCHECKED})]})},ht=["heading","children"];function vt(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 mt(e){for(var t=1;t1&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("tr",{children:(0,T.jsx)("th",{colSpan:2,children:(0,S.t)("stats.selected")})}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,S.t)("stats.elements")}),(0,T.jsx)("td",{children:r.length})]})]}),r.length>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:"x"}),(0,T.jsx)("td",{children:Math.round(o[0])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:"y"}),(0,T.jsx)("td",{children:Math.round(o[1])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,S.t)("stats.width")}),(0,T.jsx)("td",{children:Math.round(o[2]-o[0])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,S.t)("stats.height")}),(0,T.jsx)("td",{children:Math.round(o[3]-o[1])})]})]}),1===r.length&&(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,S.t)("stats.angle")}),(0,T.jsx)("td",{children:"".concat(Math.round(180*r[0].angle/Math.PI),"\xb0")})]}),null===(t=e.renderCustomStats)||void 0===t?void 0:t.call(e,e.elements,e.appState)]})})]})})},Ot=function(e){return(0,T.jsx)(E.V,{className:(0,x.Z)("Shape",{fillable:!1}),type:"radio",icon:_.Hk,name:"editor-current-shape",checked:e.checked,title:"".concat(e.title," \u2014 H"),keyBindingLabel:e.isMobile?void 0:j.tW.H.toLocaleUpperCase(),"aria-label":"".concat(e.title," \u2014 H"),"aria-keyshortcuts":j.tW.H,"data-testid":"toolbar-hand",onChange:function(){var t;return null===(t=e.onChange)||void 0===t?void 0:t.call(e)}})},Ct=n(8888);function Mt(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}var Pt=function(e){var t=e.appState,n=e.elements,r=e.actionManager,o=e.setAppState,i=e.onLockToggle,a=e.onHandToolToggle,l=e.onPenModeToggle,c=e.canvas,s=e.onImageAction,u=e.renderTopRightUI,d=e.renderCustomStats,f=e.renderSidebars,h=e.device,v=e.renderWelcomeScreen,m=(0,Ct.R6)(),g=m.welcomeScreenCenterTunnel,b=m.mainMenuTunnel;return(0,T.jsxs)(T.Fragment,{children:[f(),!t.viewModeEnabled&&(0,T.jsxs)(at,{side:"top",className:"App-top-bar",children:[v&&(0,T.jsx)(g.Out,{}),(0,T.jsx)(gt,{heading:"shapes",children:function(e){return(0,T.jsx)(Ce.Z.Col,{gap:4,align:"center",children:(0,T.jsxs)(Ce.Z.Row,{gap:1,className:"App-toolbar-container",children:[(0,T.jsxs)(ut.W,{padding:1,className:"App-toolbar App-toolbar--mobile",children:[e,(0,T.jsx)(Ce.Z.Row,{gap:1,children:(0,T.jsx)(Ne,{appState:t,canvas:c,activeTool:t.activeTool,setAppState:o,onImageAction:function(e){var t=e.pointerType;s({insertOnCanvasDirectly:"mouse"!==t})}})})]}),u&&u(!0,t),(0,T.jsxs)("div",{className:"mobile-misc-tools-container",children:[!t.viewModeEnabled&&(0,T.jsx)(wt,{appState:t,setAppState:o,isMobile:!0}),(0,T.jsx)(kt,{checked:t.penMode,onChange:l,title:(0,S.t)("toolBar.penMode"),isMobile:!0,penDetected:t.penDetected}),(0,T.jsx)(pt,{checked:t.activeTool.locked,onChange:i,title:(0,S.t)("toolBar.lock"),isMobile:!0}),(0,T.jsx)(Ot,{checked:(0,N.l$)(t),onChange:function(){return a()},title:(0,S.t)("toolBar.hand"),isMobile:!0})]})]})})}}),(0,T.jsx)(st,{appState:t,elements:n,isMobile:!0,device:h})]}),!t.openMenu&&t.showStats&&(0,T.jsx)(jt,{appState:t,setAppState:o,elements:n,onClose:function(){r.executeAction(k.u0)},renderCustomStats:d}),(0,T.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:bt.nn+2*bt.WM,marginLeft:bt.nn+2*bt.WM,marginRight:bt.nn+2*bt.WM},children:(0,T.jsxs)(ut.W,{padding:0,children:["shape"===t.openMenu&&!t.viewModeEnabled&&(0,U.RT)(t,n)?(0,T.jsx)(gt,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,T.jsx)(Re,{appState:t,elements:n,renderAction:r.renderAction})}):null,(0,T.jsxs)("footer",{className:"App-toolbar",children:[t.viewModeEnabled?(0,T.jsx)("div",{className:"App-toolbar-content",children:(0,T.jsx)(b.Out,{})}):(0,T.jsxs)("div",{className:"App-toolbar-content",children:[(0,T.jsx)(b.Out,{}),r.renderAction("toggleEditMenu"),r.renderAction("undo"),r.renderAction("redo"),r.renderAction(t.multiElement?"finalize":"duplicateSelection"),r.renderAction("deleteSelectedElements")]}),t.scrolledOutside&&!t.openMenu&&"library"!==t.openSidebar&&(0,T.jsx)("button",{className:"scroll-back-to-content",onClick:function(){o(function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n")]})]})]})]})})},qt=n(6773),$t=n(8671),Qt=n(4241),Jt={};Jt.styleTagTransform=we(),Jt.setAttributes=ge(),Jt.insert=ve().bind(null,"head"),Jt.domAPI=pe(),Jt.insertStyleElement=ye(),de()(Qt.Z,Jt),Qt.Z&&Qt.Z.locals&&Qt.Z.locals;var en=function(e){var t,n=e.children,r=e.color;return(0,T.jsx)("div",{className:"Card",style:(t={},(0,p.Z)(t,"--card-color","primary"===r?"var(--color-primary)":Xe[r][7]),(0,p.Z)(t,"--card-color-darker","primary"===r?"var(--color-primary-darker)":Xe[r][8]),(0,p.Z)(t,"--card-color-darkest","primary"===r?"var(--color-primary-darkest)":Xe[r][9]),t),children:n})},tn=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.actionManager,i=e.exportOpts,a=e.canvas,l=i.onExportToBackend;return(0,T.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,T.jsxs)("div",{className:"ExportDialog-cards",children:[i.saveFileToDisk&&(0,T.jsxs)(en,{color:"lime",children:[(0,T.jsx)("div",{className:"Card-icon",children:_.TP}),(0,T.jsx)("h2",{children:(0,S.t)("exportDialog.disk_title")}),(0,T.jsxs)("div",{className:"Card-details",children:[(0,S.t)("exportDialog.disk_details"),!$e.kr&&o.renderAction("changeProjectName")]}),(0,T.jsx)(E.V,{className:"Card-button",type:"button",title:(0,S.t)("exportDialog.disk_button"),"aria-label":(0,S.t)("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){o.executeAction($t.mM,"ui")}})]}),l&&(0,T.jsxs)(en,{color:"pink",children:[(0,T.jsx)("div",{className:"Card-icon",children:_.xP}),(0,T.jsx)("h2",{children:(0,S.t)("exportDialog.link_title")}),(0,T.jsx)("div",{className:"Card-details",children:(0,S.t)("exportDialog.link_details")}),(0,T.jsx)(E.V,{className:"Card-button",type:"button",title:(0,S.t)("exportDialog.link_button"),"aria-label":(0,S.t)("exportDialog.link_button"),showAriaLabel:!0,onClick:function(){l(t,n,r,a),(0,A.L)("export","link","ui (".concat((0,M.$h)(),")"))}})]}),i.renderCustomUI&&i.renderCustomUI(t,n,r,a)]})})},nn=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.actionManager,i=e.exportOpts,a=e.canvas,l=e.setAppState,c=g().useCallback((function(){l({openDialog:null})}),[l]);return(0,T.jsx)(T.Fragment,{children:"jsonExport"===n.openDialog&&(0,T.jsx)(Ue.V,{onCloseRequest:c,title:(0,S.t)("buttons.export"),children:(0,T.jsx)(tn,{elements:t,appState:n,files:r,actionManager:o,onCloseRequest:c,exportOpts:i,canvas:a})})})},rn=n(6954),on=n(8923),an={};an.styleTagTransform=we(),an.setAttributes=ge(),an.insert=ve().bind(null,"head"),an.domAPI=pe(),an.insertStyleElement=ye(),de()(on.Z,an),on.Z&&on.Z.locals&&on.Z.locals;var ln=n(5523),cn=n(2701),sn={};sn.styleTagTransform=we(),sn.setAttributes=ge(),sn.insert=ve().bind(null,"head"),sn.domAPI=pe(),sn.insertStyleElement=ye(),de()(cn.Z,sn),cn.Z&&cn.Z.locals&&cn.Z.locals;var un=function(e){var t=e.id,n=e.elements,r=e.isPending,i=e.onClick,l=e.selected,c=e.onToggle,s=e.onDrag,u=(0,m.useRef)(null);(0,m.useEffect)((function(){var e=u.current;if(e)return(0,a.Z)(v().mark((function t(){var r,o;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,Qe.$D)({elements:n,appState:{exportBackground:!1,viewBackgroundColor:Xe.white},files:null});case 4:o=t.sent,null===(r=o.querySelector(".style-fonts"))||void 0===r||r.remove(),e.innerHTML=o.outerHTML;case 7:case"end":return t.stop()}}),t)})))(),function(){e.innerHTML=""}}),[n]);var d=(0,m.useState)(!1),f=(0,o.Z)(d,2),p=f[0],h=f[1],g=xr().isMobile,b=r&&(0,T.jsx)("div",{className:"library-unit__adder",children:_.pO});return(0,T.jsxs)("div",{className:(0,x.Z)("library-unit",{"library-unit__active":n,"library-unit--hover":n&&p,"library-unit--selected":l}),onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)},children:[(0,T.jsx)("div",{className:(0,x.Z)("library-unit__dragger",{"library-unit__pulse":!!r}),ref:u,draggable:!!n,onClick:n||r?function(e){t&&e.shiftKey?c(t,e):i()}:void 0,onDragStart:function(e){t?(h(!1),s(t,e)):e.preventDefault()}}),b,t&&n&&(p||g||l)&&(0,T.jsx)(qe.o,{checked:l,onChange:function(e,n){return c(t,n)},className:"library-unit__checkbox"})]})},dn=n(6440),fn={};fn.styleTagTransform=we(),fn.setAttributes=ge(),fn.insert=ve().bind(null,"head"),fn.domAPI=pe(),fn.insertStyleElement=ye(),de()(dn.Z,fn),dn.Z&&dn.Z.locals&&dn.Z.locals;var pn=n(5644),hn=function(e){var t=e.theme,n=e.id,r=e.libraryReturnUrl||window.location.origin+window.location.pathname;return(0,T.jsx)("a",{className:"library-menu-browse-button",href:"".concat("https://libraries.excalidraw.com","?target=").concat(window.name||"_blank","&referrer=").concat(r,"&useHash=true&token=").concat(n,"&theme=").concat(t,"&version=").concat(P.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:(0,S.t)("labels.libraries")})};function vn(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 mn(e){for(var t=1;t=o&&n<=a||l.has(t.id))&&e.push(t.id),e}),[]);s(u)}else s([].concat((0,i.Z)(c),[e]));g(e)}else g(null),s(c.filter((function(t){return t!==e})))},y=function(e){return(c.includes(e)?n.filter((function(e){return c.includes(e.id)})):n.filter((function(t){return t.id===e}))).map((function(e){return mn(mn({},e),{},{elements:(0,V._N)(e.elements)})}))},w=function(e){var t,n,r,o,i;return(0,T.jsx)(Ce.Z.Col,{children:(0,T.jsx)(un,{elements:null===(t=e.item)||void 0===t?void 0:t.elements,isPending:!(null!==(n=e.item)&&void 0!==n&&n.id||null===(r=e.item)||void 0===r||!r.elements),onClick:e.onClick||function(){},id:(null===(o=e.item)||void 0===o?void 0:o.id)||null,selected:!(null===(i=e.item)||void 0===i||!i.id)&&c.includes(e.item.id),onToggle:b,onDrag:function(e,t){t.dataTransfer.setData(P.LO.excalidrawlib,(0,ln.NI)(y(e)))}})},e.key)},k=function(e){var t=e.map((function(e){return e.id?w({item:e,onClick:function(){return a(y(e.id))},key:e.id}):w({key:"__pending__item__",item:e,onClick:function(){return r(l)}})})),n=(0,M.yo)(t,4);return n.length||(n=[[]]),n.map((function(e,t,n){return t===n.length-1&&(e=e.concat(new Array(4-e.length).fill(null).map((function(e,t){return w({key:"empty_".concat(t),item:null})})))),(0,T.jsx)(Ce.Z.Row,{align:"center",className:"library-menu-items-container__row",children:e},t)}))},_=n.filter((function(e){return"published"!==e.status})),E=n.filter((function(e){return"published"===e.status})),j=!(n.length||_.length||E.length||l.length);return(0,T.jsx)("div",{className:"library-menu-items-container",style:l.length||_.length||E.length?{justifyContent:"flex-start"}:{},children:(0,T.jsxs)(Ce.Z.Col,{className:"library-menu-items-container__items",align:"start",gap:1,style:{flex:E.length>0?1:"0 1 auto",marginBottom:0},children:[(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{children:[(l.length>0||_.length>0||E.length>0)&&(0,T.jsx)("div",{className:"library-menu-items-container__header",children:(0,S.t)("labels.personalLib")}),t&&(0,T.jsx)("div",{style:{position:"absolute",top:"var(--container-padding-y)",right:"var(--container-padding-x)",transform:"translateY(50%)"},children:(0,T.jsx)(pn.Z,{})})]}),l.length||_.length?k([].concat((0,i.Z)(l.length?[{id:null,elements:l}]:[]),(0,i.Z)(_))):(0,T.jsxs)("div",{className:"library-menu-items__no-items",children:[(0,T.jsx)("div",{className:(0,x.Z)({"library-menu-items__no-items__label":j}),children:(0,S.t)("library.noItems")}),(0,T.jsx)("div",{className:"library-menu-items__no-items__hint",children:E.length>0?(0,S.t)("library.hint_emptyPrivateLibrary"):(0,S.t)("library.hint_emptyLibrary")})]})]}),(0,T.jsxs)(T.Fragment,{children:[(E.length>0||l.length>0||_.length>0)&&(0,T.jsx)("div",{className:"library-menu-items-container__header library-menu-items-container__header--excal",children:(0,S.t)("labels.excalidrawLib")}),E.length>0?k(E):_.length>0?(0,T.jsx)("div",{style:{margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",fontSize:".9rem"},children:(0,S.t)("library.noItems")}):null]}),j&&(0,T.jsx)(hn,{id:d,libraryReturnUrl:f,theme:u})]})})},bn=n(4739),yn=n(9487),xn=n(9430),wn=n(9206),kn=(0,m.forwardRef)((function(e,t){var n=e.children;return(0,T.jsx)("div",{ref:t,className:"layer-ui__library",children:n})})),_n=function(e){var t=e.onInsertLibraryItems,n=e.pendingElements,r=e.onAddToLibrary,l=e.setAppState,c=e.libraryReturnUrl,s=e.library,u=e.id,d=e.appState,f=e.selectedItems,p=e.onSelectItems,h=(0,bn.KO)(W.rF,yn.yE),g=(0,o.Z)(h,1)[0],b=(0,m.useCallback)(function(){var e=(0,a.Z)(v().mark((function e(t,n){var o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,A.L)("element","addToLibrary","ui"),!t.some((function(e){return"image"===e.type}))){e.next=3;break}return e.abrupt("return",l({errorMessage:"Support for adding images to the library coming soon!"}));case 3:o=[{status:"unpublished",elements:t,id:(0,rn.kb)(),created:Date.now()}].concat((0,i.Z)(n)),r(),s.setLibrary(o).catch((function(){l({errorMessage:(0,S.t)("alerts.errorAddingToLibrary")})}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[r,s,l]);if("loading"===g.status&&!g.isInitialized)return(0,T.jsx)(kn,{children:(0,T.jsx)("div",{className:"layer-ui__library-message",children:(0,T.jsxs)("div",{children:[(0,T.jsx)(pn.Z,{size:"2em"}),(0,T.jsx)("span",{children:(0,S.t)("labels.libraryLoadingMessage")})]})})});var y=g.libraryItems.length>0||n.length>0;return(0,T.jsxs)(kn,{children:[(0,T.jsx)(gn,{isLoading:"loading"===g.status,libraryItems:g.libraryItems,onAddToLibrary:function(e){return b(e,g.libraryItems)},onInsertLibraryItems:t,pendingElements:n,selectedItems:f,onSelectItems:p,id:u,libraryReturnUrl:c,theme:d.theme}),y&&(0,T.jsx)(hn,{id:u,libraryReturnUrl:c,theme:d.theme})]})},En=function(e){var t=e.appState,n=e.onInsertElements,r=e.libraryReturnUrl,i=e.focusContainer,l=e.library,c=e.id,s=Er(),u=kr(),d=xr(),f=(0,m.useState)([]),p=(0,o.Z)(f,2),h=p[0],g=p[1],b=(0,bn.KO)(W.rF,yn.yE),y=(0,o.Z)(b,1)[0],x=(0,m.useRef)(null),w=(0,m.useCallback)((function(){document.querySelector(".Dialog")||s({openSidebar:null})}),[s]);!function(e,t){(0,m.useEffect)((function(){var n=function(n){e.current&&(n.target instanceof Element&&(e.current.contains(n.target)||!document.body.contains(n.target))||t(n))};return document.addEventListener("pointerdown",n,!1),function(){document.removeEventListener("pointerdown",n)}}),[e,t])}(x,(0,m.useCallback)((function(e){e.target.closest(".ToolIcon__library")||t.isSidebarDocked&&d.canDeviceFitSidebar||w()}),[w,t.isSidebarDocked,d.canDeviceFitSidebar])),(0,m.useEffect)((function(){var e=function(e){e.key!==j.tW.ESCAPE||t.isSidebarDocked&&d.canDeviceFitSidebar||w()};return document.addEventListener(P.Ks.KEYDOWN,e),function(){document.removeEventListener(P.Ks.KEYDOWN,e)}}),[w,t.isSidebarDocked,d.canDeviceFitSidebar]);var k=(0,m.useCallback)((function(){s({selectedElementIds:{},selectedGroupIds:{}})}),[s]),_=(0,m.useCallback)(function(){var e=(0,a.Z)(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.filter((function(e){return!h.includes(e.id)})),l.setLibrary(n).catch((function(){s({errorMessage:(0,S.t)("alerts.errorRemovingFromLibrary")})})),g([]);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[l,s,h,g]),E=(0,m.useCallback)((function(){l.resetLibrary(),i()}),[l,i]);return(0,T.jsxs)(xn.Y,{__isInternal:!0,className:"layer-ui__library-sidebar",initialDockedState:t.isSidebarDocked,onDock:function(e){(0,A.L)("library","toggleLibraryDock (".concat(e?"dock":"undock",")"),"sidebar (".concat(d.isMobile?"mobile":"desktop",")"))},ref:x,children:[(0,T.jsx)(xn.Y.Header,{className:"layer-ui__library-header",children:(0,T.jsx)(wn.W,{appState:t,setAppState:s,selectedItems:h,onSelectItems:g,library:l,onRemoveFromLibrary:function(){return _(y.libraryItems)},resetLibrary:E})}),(0,T.jsx)(_n,{pendingElements:(0,ie.eD)(u,t,!0),onInsertLibraryItems:function(e){n((0,W.WV)(e))},onAddToLibrary:k,setAppState:s,libraryReturnUrl:r,library:l,id:c,appState:t,selectedItems:h,onSelectItems:g})]},"library")},Sn=n(1434),jn={};jn.styleTagTransform=we(),jn.setAttributes=ge(),jn.insert=ve().bind(null,"head"),jn.domAPI=pe(),jn.insertStyleElement=ye(),de()(Sn.Z,jn),Sn.Z&&Sn.Z.locals&&Sn.Z.locals;var On=n(9144),Cn={};Cn.styleTagTransform=we(),Cn.setAttributes=ge(),Cn.insert=ve().bind(null,"head"),Cn.domAPI=pe(),Cn.insertStyleElement=ye(),de()(On.Z,Cn),On.Z&&On.Z.locals&&On.Z.locals;var Mn=n(4958),Pn=function(e){return(0,T.jsx)("button",{className:"help-icon",onClick:e.onClick,type:"button",title:"".concat((0,S.t)("helpDialog.title")," \u2014 ?"),"aria-label":(0,S.t)("helpDialog.title"),children:_.by})},Tn=function(e){var t=e.appState,n=e.actionManager,r=e.showExitZenModeBtn,o=e.renderWelcomeScreen,i=(0,Ct.R6)(),a=i.footerCenterTunnel,l=i.welcomeScreenHelpHintTunnel,c=xr(),s=!t.viewModeEnabled&&t.multiElement&&c.isTouchScreen;return(0,T.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,T.jsx)("div",{className:(0,x.Z)("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled}),children:(0,T.jsx)(Ce.Z.Col,{gap:2,children:(0,T.jsxs)(gt,{heading:"canvasActions",children:[(0,T.jsx)(Be,{renderAction:n.renderAction,zoom:t.zoom}),!t.viewModeEnabled&&(0,T.jsx)(He,{renderAction:n.renderAction,className:(0,x.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":t.zenModeEnabled})}),s&&(0,T.jsx)(Fe,{renderAction:n.renderAction,className:(0,x.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled})})]})})}),(0,T.jsx)(a.Out,{}),(0,T.jsx)("div",{className:(0,x.Z)("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right disable-pointerEvents":t.zenModeEnabled}),children:(0,T.jsxs)("div",{style:{position:"relative"},children:[o&&(0,T.jsx)(l.Out,{}),(0,T.jsx)(Pn,{onClick:function(){return n.executeAction(k.jY)}})]})}),(0,T.jsx)(We,{actionManager:n,showExitZenModeBtn:r})]})},In=Tn;Tn.displayName="Footer";var Ln=n(4709),Dn=n(6798),An=["suggestedBindings","startBoundElement","cursorButton"],zn=["canvas","onInsertElements","appState"],Zn=["canvas","onInsertElements","appState"];function Rn(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}var Nn=function(e){var t=e.UIOptions;return(0,T.jsxs)(Ln.Z,{__fallback:!0,children:[(0,T.jsx)(Ln.Z.DefaultItems.LoadScene,{}),(0,T.jsx)(Ln.Z.DefaultItems.SaveToActiveFile,{}),t.canvasActions.export&&(0,T.jsx)(Ln.Z.DefaultItems.Export,{}),t.canvasActions.saveAsImage&&(0,T.jsx)(Ln.Z.DefaultItems.SaveAsImage,{}),(0,T.jsx)(Ln.Z.DefaultItems.Help,{}),(0,T.jsx)(Ln.Z.DefaultItems.ClearCanvas,{}),(0,T.jsx)(Ln.Z.Separator,{}),(0,T.jsx)(Ln.Z.Group,{title:"Excalidraw links",children:(0,T.jsx)(Ln.Z.DefaultItems.Socials,{})}),(0,T.jsx)(Ln.Z.Separator,{}),(0,T.jsx)(Ln.Z.DefaultItems.ToggleTheme,{}),(0,T.jsx)(Ln.Z.DefaultItems.ChangeCanvasBackground,{})]})},Bn=function(e){var t,n=e.actionManager,r=e.appState,i=e.files,l=e.setAppState,c=e.elements,s=e.canvas,u=e.onLockToggle,d=e.onHandToolToggle,f=e.onPenModeToggle,h=e.onInsertElements,m=e.showExitZenModeBtn,g=e.renderTopRightUI,b=e.renderCustomStats,y=e.renderCustomSidebar,w=e.libraryReturnUrl,k=e.UIOptions,_=e.focusContainer,E=e.library,j=e.id,O=e.onImageAction,C=e.renderWelcomeScreen,I=e.children,L=xr(),D=(0,Ct.ZC)(),z=function(){return k.canvasActions.export?(0,T.jsx)(nn,{elements:c,appState:r,files:i,actionManager:n,exportOpts:k.canvasActions.export,canvas:s,setAppState:l}):null},Z=function(){if(!k.canvasActions.saveAsImage)return null;var e=function(e){return function(){var t=(0,a.Z)(v().mark((function t(n){var o;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,A.L)("export",e,"ui"),t.next=3,(0,H.p1)(e,n,r,i,{exportBackground:r.exportBackground,name:r.name,viewBackgroundColor:r.viewBackgroundColor}).catch(M.FG).catch((function(e){console.error(e),l({errorMessage:e.message})}));case 3:o=t.sent,r.exportEmbedScene&&o&&(0,Ve.g8)(o)&&l({fileHandle:o});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};return(0,T.jsx)(rt,{elements:c,appState:r,setAppState:l,files:i,actionManager:n,onExportToPng:e("png"),onExportToSvg:e("svg"),onExportToClipboard:e("clipboard")})},R=function(){return"customSidebar"===r.openSidebar?(null==y?void 0:y())||null:"library"===r.openSidebar?(0,T.jsx)(En,{appState:r,onInsertElements:h,libraryReturnUrl:w,focusContainer:_,library:E,id:j}):null},B=(0,bn.KO)(xn.b,yn.yE),W=(0,o.Z)(B,1)[0],F=(0,T.jsxs)(T.Fragment,{children:[I,(0,T.jsx)(Nn,{UIOptions:k}),r.isLoading&&(0,T.jsx)(dt.z,{delay:250}),r.errorMessage&&(0,T.jsx)(Ke,{onClose:function(){return l({errorMessage:null})},children:r.errorMessage}),"help"===r.openDialog&&(0,T.jsx)(Xt,{onClose:function(){l({openDialog:null})}}),(0,T.jsx)(Dn.o,{}),Z(),z(),r.pasteDialog.shown&&(0,T.jsx)(zt,{setAppState:l,appState:r,onInsertChart:h,onClose:function(){return l({pasteDialog:{shown:!1,data:null}})}}),L.isMobile&&(0,T.jsx)(Pt,{appState:r,elements:c,actionManager:n,renderJSONExportDialog:z,renderImageExportDialog:Z,setAppState:l,onLockToggle:u,onHandToolToggle:d,onPenModeToggle:f,canvas:s,onImageAction:O,renderTopRightUI:g,renderCustomStats:b,renderSidebars:R,device:L,renderWelcomeScreen:C}),!L.isMobile&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:(0,x.Z)("layer-ui__wrapper",{"disable-pointerEvents":r.draggingElement||r.resizingElement||r.editingElement&&!(0,U.iB)(r.editingElement)}),style:("library"===r.openSidebar&&r.isSidebarDocked||W.docked)&&L.canDeviceFitSidebar?{width:"calc(100% - ".concat(P.EE,"px)")}:{},children:[C&&(0,T.jsx)(D.welcomeScreenCenterTunnel.Out,{}),(t=(0,U.RT)(r,c),(0,T.jsx)(at,{side:"top",children:(0,T.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,T.jsxs)(Ce.Z.Col,{gap:6,className:(0,x.Z)("App-menu_top__left",{"disable-pointerEvents":r.zenModeEnabled}),children:[(0,T.jsxs)("div",{style:{position:"relative"},children:[(0,T.jsx)(D.mainMenuTunnel.Out,{}),C&&(0,T.jsx)(D.welcomeScreenMenuHintTunnel.Out,{})]}),t&&(0,T.jsx)(gt,{heading:"selectedShapeActions",className:(0,x.Z)("selected-shape-actions zen-mode-transition",{"transition-left":r.zenModeEnabled}),children:(0,T.jsx)(ut.W,{className:P.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(r.height-166,"px")},children:(0,T.jsx)(Re,{appState:r,elements:c,renderAction:n.renderAction})})})]}),!r.viewModeEnabled&&(0,T.jsx)(gt,{heading:"shapes",className:"shapes-section",children:function(e){return(0,T.jsxs)("div",{style:{position:"relative"},children:[C&&(0,T.jsx)(D.welcomeScreenToolbarHintTunnel.Out,{}),(0,T.jsx)(Ce.Z.Col,{gap:4,align:"start",children:(0,T.jsx)(Ce.Z.Row,{gap:1,className:(0,x.Z)("App-toolbar-container",{"zen-mode":r.zenModeEnabled}),children:(0,T.jsxs)(ut.W,{padding:1,className:(0,x.Z)("App-toolbar",{"zen-mode":r.zenModeEnabled}),children:[(0,T.jsx)(st,{appState:r,elements:c,isMobile:L.isMobile,device:L}),e,(0,T.jsxs)(Ce.Z.Row,{gap:1,children:[(0,T.jsx)(kt,{zenModeEnabled:r.zenModeEnabled,checked:r.penMode,onChange:f,title:(0,S.t)("toolBar.penMode"),penDetected:r.penDetected}),(0,T.jsx)(pt,{checked:r.activeTool.locked,onChange:u,title:(0,S.t)("toolBar.lock")}),(0,T.jsx)("div",{className:"App-toolbar__divider"}),(0,T.jsx)(Ot,{checked:(0,N.l$)(r),onChange:function(){return d()},title:(0,S.t)("toolBar.hand"),isMobile:!0}),(0,T.jsx)(Ne,{appState:r,canvas:s,activeTool:r.activeTool,setAppState:l,onImageAction:function(e){var t=e.pointerType;O({insertOnCanvasDirectly:"mouse"!==t})}})]})]})})})]})}}),(0,T.jsxs)("div",{className:(0,x.Z)("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":r.zenModeEnabled}),children:[(0,T.jsx)(qt.Z,{collaborators:r.collaborators}),null==g?void 0:g(L.isMobile,r),!r.viewModeEnabled&&(0,T.jsx)(wt,{appState:r,setAppState:l})]})]})})),(0,T.jsx)(In,{appState:r,actionManager:n,showExitZenModeBtn:m,renderWelcomeScreen:C}),r.showStats&&(0,T.jsx)(jt,{appState:r,setAppState:l,elements:c,onClose:function(){n.executeAction(Mn.u)},renderCustomStats:b}),r.scrolledOutside&&(0,T.jsx)("button",{className:"scroll-back-to-content",onClick:function(){l(function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],n=(0,M.dE)({clientX:Cr,clientY:Mr},this.state),r=n.x,o=n.y,a={x:r,y:o,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:P.hs,locked:!1},l=10,c=o,s=t?[e]:e.split("\n"),u=s.reduce((function(e,t,n){var o=t.trim(),i=(0,Le.PT)(a.fontFamily);if(o.length){var u=(0,U.VL)(fr(fr({},a),{},{x:r,y:c,text:o,lineHeight:i}));e.push(u),c+=u.height+l}else{var d;(null===(d=s[n-1])||void 0===d?void 0:d.trim())&&(c+=(0,Le.Rg)(a.fontSize,i)+l)}return e}),[]);0!==u.length&&(this.scene.replaceAllElements([].concat((0,i.Z)(this.scene.getElementsIncludingDeleted()),(0,i.Z)(u))),this.setState({selectedElementIds:Object.fromEntries(u.map((function(e){return[e.id,!0]})))}),!t&&u.length>1&&!1===Nr&&!this.device.isMobile&&(this.setToast({message:(0,S.t)("toast.pasteAsSingleElement",{shortcut:(0,M.uY)("CtrlOrCmd+Shift+V")}),duration:5e3}),Nr=!0),this.history.resumeRecording())}},{key:"handleTextWysiwyg",value:function(e,t){var n=this,r=t.isExistingElement,o=void 0!==r&&r,a=function(t,r,o){n.scene.replaceAllElements((0,i.Z)(n.scene.getElementsIncludingDeleted().map((function(n){return n.id===e.id&&(0,U.iB)(n)?(0,U.N_)(n,{text:t,isDeleted:o,originalText:r}):n}))))};(0,U.b_)({id:e.id,canvas:this.canvas,getViewportCoords:function(e,t){var r=(0,M._i)({sceneX:e,sceneY:t},n.state),o=r.x,i=r.y;return[o-n.state.offsetLeft,i-n.state.offsetTop]},onChange:(0,M.tH)((function(t){a(t,t,!1),(0,U.qP)(e)&&(0,C.Ww)(e)})),onSubmit:(0,M.tH)((function(t){var r=t.text,i=t.viaKeyboard,l=t.originalText,c=!r.trim();if(a(r,l,c),!c&&i){var s=e.containerId?e.containerId:e.id;n.setState((function(e){return{selectedElementIds:fr(fr({},e.selectedElementIds),{},(0,p.Z)({},s,!0))}}))}c&&(0,C.$q)(n.scene.getNonDeletedElements(),[e]),c&&!o||n.history.resumeRecording(),n.setState({draggingElement:null,editingElement:null}),n.state.activeTool.locked&&(0,M.Uk)(n.canvas,n.state),n.focusContainer()})),element:e,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),a(e.text,e.originalText,!1)}},{key:"deselectElements",value:function(){this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}},{key:"getTextElementAtPosition",value:function(e,t){var n=this.getElementAtPosition(e,t,{includeBoundTextElement:!0});return n&&(0,U.iB)(n)&&!n.isDeleted?n:null}},{key:"getElementAtPosition",value:function(e,t,n){var r=this.getElementsAtPosition(e,t,null==n?void 0:n.includeBoundTextElement,null==n?void 0:n.includeLockedElements);if(r.length>1){if(null!=n&&n.preferSelected)for(var o=r.length-1;o>-1;o--)if(this.state.selectedElementIds[r[o].id])return r[o];var i=r[r.length-1];return(0,U.wB)(i,this.state,e,t)?r[r.length-2]:i}return 1===r.length?r[0]:null}},{key:"getElementsAtPosition",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=r&&o?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter((function(e){return(o||!e.locked)&&(r||!((0,U.iB)(e)&&e.containerId))}));return(0,ie.CJ)(i,(function(r){return(0,U.wX)(r,n.state,e,t)}))}},{key:"handleHoverSelectedLinearElement",value:function(e,t,n){var r=K._.getElement(e.elementId),o=(0,Le.WJ)(r);if(r)if(this.state.selectedLinearElement){var i=-1,a=null;(0,Jn.Qu)(r,this.state,[t,n])?(i=K._.getPointIndexUnderCursor(r,this.state.zoom,t,n),a=K._.getSegmentMidpointHitCoords(e,{x:t,y:n},this.state),i>=0||a?(0,M.KJ)(this.canvas,P.oc.POINTER):(0,M.KJ)(this.canvas,P.oc.MOVE)):((0,tr.oY)([r],this.state)&&(0,U.wB)(r,this.state,t,n)||o&&(0,U.wX)(o,this.state,t,n))&&(0,M.KJ)(this.canvas,P.oc.MOVE),this.state.selectedLinearElement.hoverPointIndex!==i&&this.setState({selectedLinearElement:fr(fr({},this.state.selectedLinearElement),{},{hoverPointIndex:i})}),K._.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,a)||this.setState({selectedLinearElement:fr(fr({},this.state.selectedLinearElement),{},{segmentMidPointHoveredCoords:a})})}else(0,M.KJ)(this.canvas,P.oc.AUTO)}},{key:"maybeCleanupAfterMissingPointerUp",value:function(e){null!==Br&&Br(e)}},{key:"updateGestureOnPointerDown",value:function(e){Hr.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===Hr.pointers.size&&(Hr.lastCenter=G(Hr.pointers),Hr.initialScale=this.state.zoom.value,Hr.initialDistance=X(Array.from(Hr.pointers.values())))}},{key:"initialPointerDownState",value:function(e){var t=(0,M.dE)(e,this.state),n=(0,ie.eD)(this.scene.getNonDeletedElements(),this.state),r=(0,U.KP)(n),i=(0,o.Z)(r,4),a=i[0],l=i[1],c=i[2],s=i[3];return{origin:t,withCmdOrCtrl:e[j.tW.CTRL_OR_CMD],originInGrid:(0,M.AK)((0,ne.wC)(t.x,t.y,this.state.gridSize)),scrollbars:(0,ie._4)(Lr,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop),lastCoords:fr({},t),originalElements:this.scene.getNonDeletedElements().reduce((function(e,t){return e.set(t.id,(0,V.OL)(t)),e}),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(c+a)/2,y:(s+l)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(t,n)},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1},elementIdsToErase:{}}}},{key:"handleDraggingScrollBar",value:function(e,t){var n=this;if(!t.scrollbars.isOverEither||this.state.multiElement)return!1;Ir=!0,t.lastCoords.x=e.clientX,t.lastCoords.y=e.clientY;var r=(0,M.$9)((function(e){e.target instanceof HTMLElement&&n.handlePointerMoveOverScrollbars(e,t)})),o=(0,M.tH)((function(){Ir=!1,(0,M.Uk)(n.canvas,n.state),Br=null,n.setState({cursorButton:"up"}),n.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(P.Ks.POINTER_MOVE,r),window.removeEventListener(P.Ks.POINTER_UP,o),r.flush()}));return Br=o,window.addEventListener(P.Ks.POINTER_MOVE,r),window.addEventListener(P.Ks.POINTER_UP,o),!0}},{key:"isASelectedElement",value:function(e){return null!=e&&this.state.selectedElementIds[e.id]}},{key:"isHittingCommonBoundingBoxOfSelectedElements",value:function(e,t){if(t.length<2)return!1;var n=10/this.state.zoom.value,r=(0,U.KP)(t),i=(0,o.Z)(r,4),a=i[0],l=i[1],c=i[2],s=i[3];return e.x>a-n&&e.xl-n&&e.y0&&!e.withCmdOrCtrl){var y=(0,ne.wC)(a.x-e.drag.offset.x,a.y-e.drag.offset.y,t.state.gridSize),x=(0,o.Z)(y,2),w=x[0],k=x[1],_=[Math.abs(a.x-e.origin.x),Math.abs(a.y-e.origin.y)],E=_[0],S=_[1],T=n.shiftKey;if((0,U.o8)(e,g,w,k,T,E,S,t.state),t.maybeSuggestBindingForAll(g),n.altKey&&!e.hit.hasBeenDuplicated){e.hit.hasBeenDuplicated=!0;var I,L=[],D=[],A=new Map,z=new Map,Z=e.hit.element,R=t.scene.getElementsIncludingDeleted(),B=(0,ie.eD)(R,t.state,!0).map((function(e){return e.id})),H=cr(R);try{for(H.s();!(I=H.n()).done;){var W=I.value;if(B.includes(W.id)||W.id===(null==Z?void 0:Z.id)&&e.hit.wasAddedToSelection){var F=(0,U.Sy)(t.state.editingGroupId,A,W),V=(0,ne.wC)(e.origin.x-e.drag.offset.x,e.origin.y-e.drag.offset.y,t.state.gridSize),G=(0,o.Z)(V,2),X=G[0],q=G[1];(0,O.DR)(F,{x:F.x+(X-w),y:F.y+(q-k)}),L.push(F),D.push(W),z.set(W.id,F.id)}else L.push(W)}}catch(e){H.e(e)}finally{H.f()}var Q=[].concat(L,D);(0,Le.P7)(L,D,z),(0,C.ek)(Q,D,z,"duplicatesServeAsOld"),t.scene.replaceAllElements(Q)}return}}var J=t.state.draggingElement;if(J){if("freedraw"===J.type){var ee=J.points,te=a.x-J.x,re=a.y-J.y,oe=ee.length>0&&ee[ee.length-1];if(!oe||oe[0]!==te||oe[1]!==re){var ae=J.simulatePressure?J.pressures:[].concat((0,i.Z)(J.pressures),[n.pressure]);(0,O.DR)(J,{points:[].concat((0,i.Z)(ee),[[te,re]]),pressures:ae})}}else if((0,Y.bt)(J)){e.drag.hasOccurred=!0;var le=J.points,ce=s-J.x,se=u-J.y;if((0,j.Ge)(n)&&2===le.length){var ue=(0,U.o4)(J.x,J.y,a.x,a.y);ce=ue.width,se=ue.height}1===le.length?(0,O.DR)(J,{points:[].concat((0,i.Z)(le),[[ce,se]])}):2===le.length&&(0,O.DR)(J,{points:[].concat((0,i.Z)(le.slice(0,-1)),[[ce,se]])}),(0,Y.Mn)(J,!1)&&t.maybeSuggestBindingsForLinearElementAtCoords(J,[a],t.state.startBoundElement)}else e.lastCoords.x=a.x,e.lastCoords.y=a.y,t.maybeDragNewGenericElement(e,n);if("selection"===t.state.activeTool.type){e.boxSelection.hasOccurred=!0;var de=t.scene.getNonDeletedElements();if(n.shiftKey||t.state.editingLinearElement||!(0,ie.N)(de,t.state)||(e.withCmdOrCtrl&&e.hit.element?t.setState((function(n){return(0,$.bO)(fr(fr({},n),{},{selectedElementIds:(0,p.Z)({},e.hit.element.id,!0)}),t.scene.getNonDeletedElements())})):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),t.state.editingLinearElement)K._.handleBoxSelection(n,t.state,t.setState.bind(t));else{var fe=(0,ie.Yp)(de,J);t.setState((function(n){return(0,$.bO)(fr(fr({},n),{},{selectedElementIds:fr(fr(fr({},n.selectedElementIds),fe.reduce((function(e,t){return e[t.id]=!0,e}),{})),e.hit.element?(0,p.Z)({},e.hit.element.id,!fe.length):null),showHyperlinkPopup:!(1!==fe.length||!fe[0].link)&&"info",selectedLinearElement:1===fe.length&&(0,Y.bt)(fe[0])?new K._(fe[0],t.scene):null}),t.scene.getNonDeletedElements())}))}}}}}}}))}},{key:"handlePointerMoveOverScrollbars",value:function(e,t){if(t.scrollbars.isOverHorizontal){var n=e.clientX,r=n-t.lastCoords.x;return this.translateCanvas({scrollX:this.state.scrollX-r/this.state.zoom.value}),t.lastCoords.x=n,!0}if(t.scrollbars.isOverVertical){var o=e.clientY,i=o-t.lastCoords.y;return this.translateCanvas({scrollY:this.state.scrollY-i/this.state.zoom.value}),t.lastCoords.y=o,!0}return!1}},{key:"onPointerUpFromPointerDownHandler",value:function(e){var t=this;return(0,M.tH)((function(n){var r,o,a,l=t.state,c=l.draggingElement,s=l.resizingElement,u=l.multiElement,d=l.activeTool,f=l.isResizing,h=l.isRotating;if(t.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,cursorButton:"up",editingElement:u||(0,U.iB)(t.state.editingElement)?t.state.editingElement:null}),t.savePointer(n.clientX,n.clientY,"up"),t.state.editingLinearElement)if(e.boxSelection.hasOccurred||(null===(o=e.hit)||void 0===o||null===(a=o.element)||void 0===a?void 0:a.id)===t.state.editingLinearElement.elementId){var v=K._.handlePointerUp(n,t.state.editingLinearElement,t.state);v!==t.state.editingLinearElement&&t.setState({editingLinearElement:v,suggestedBindings:[]})}else t.actionManager.executeAction(k.pL);else if(t.state.selectedLinearElement){var m,g;if((null===(m=e.hit)||void 0===m||null===(g=m.element)||void 0===g?void 0:g.id)!==t.state.selectedLinearElement.elementId)(0,ie.eD)(t.scene.getNonDeletedElements(),t.state).length>1&&t.setState({selectedLinearElement:null});else{var b=K._.handlePointerUp(n,t.state.selectedLinearElement,t.state),y=b.startBindingElement,x=b.endBindingElement,w=t.scene.getElement(b.elementId);(0,Y.Mn)(w)&&(0,C.HG)(w,y,x),b!==t.state.selectedLinearElement&&t.setState({selectedLinearElement:fr(fr({},b),{},{selectedPointsIndices:null}),suggestedBindings:[]})}}if(Br=null,e.eventListeners.onMove&&e.eventListeners.onMove.flush(),window.removeEventListener(P.Ks.POINTER_MOVE,e.eventListeners.onMove),window.removeEventListener(P.Ks.POINTER_UP,e.eventListeners.onUp),window.removeEventListener(P.Ks.KEYDOWN,e.eventListeners.onKeyDown),window.removeEventListener(P.Ks.KEYUP,e.eventListeners.onKeyUp),t.state.pendingImageElementId&&t.setState({pendingImageElementId:null}),"freedraw"===(null==c?void 0:c.type)){var _=(0,M.dE)(n,t.state),E=c.points,S=_.x-c.x,j=_.y-c.y;S===E[0][0]&&j===E[0][1]&&(j+=1e-4,S+=1e-4);var T=c.simulatePressure?[]:[].concat((0,i.Z)(c.pressures),[n.pressure]);return(0,O.DR)(c,{points:[].concat((0,i.Z)(E),[[S,j]]),pressures:T,lastCommittedPoint:[S,j]}),void t.actionManager.executeAction(k.pL)}if((0,Y.pC)(c)){var I=c;try{t.initializeImageDimensions(I),t.setState({selectedElementIds:(0,p.Z)({},I.id,!0)},(function(){t.actionManager.executeAction(k.pL)}))}catch(e){console.error(e),t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==I.id}))),t.actionManager.executeAction(k.pL)}}else if((0,Y.bt)(c)){c.points.length>1&&t.history.resumeRecording();var L=(0,M.dE)(n,t.state);e.drag.hasOccurred||!c||u?e.drag.hasOccurred&&!u&&((0,C.N1)(t.state)&&(0,Y.Mn)(c,!1)&&(0,C.R)(c,t.state,t.scene,L),t.setState({suggestedBindings:[],startBoundElement:null}),d.locked?t.setState((function(e){return{draggingElement:null}})):((0,M.z8)(t.canvas),t.setState((function(e){return{draggingElement:null,activeTool:(0,M.Om)(t.state,{type:"selection"}),selectedElementIds:fr(fr({},e.selectedElementIds),{},(0,p.Z)({},c.id,!0)),selectedLinearElement:new K._(c,t.scene)}})))):((0,O.DR)(c,{points:[].concat((0,i.Z)(c.points),[[L.x-c.x,L.y-c.y]])}),t.setState({multiElement:c,editingElement:t.state.draggingElement}))}else{if("selection"!==d.type&&c&&(0,U.QD)(c))return t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().slice(0,-1)),void t.setState({draggingElement:null});c&&(0,O.DR)(c,(0,U.Qp)(c)),s&&t.history.resumeRecording(),s&&(0,U.QD)(s)&&t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==s.id})));var D=e.hit.element;if((null===(r=t.state.selectedLinearElement)||void 0===r?void 0:r.elementId)!==(null==D?void 0:D.id)&&(0,Y.bt)(D)&&1===(0,ie.eD)(t.scene.getNonDeletedElements(),t.state).length&&t.setState({selectedLinearElement:new K._(D,t.scene)}),(0,N.EN)(t.state)){if(0===(0,ne.LW)(t.lastPointerDown.clientX,t.lastPointerDown.clientY,t.lastPointerUp.clientX,t.lastPointerUp.clientY)){var A=(0,M.dE)({clientX:t.lastPointerUp.clientX,clientY:t.lastPointerUp.clientY},t.state);t.getElementsAtPosition(A.x,A.y).forEach((function(t){return e.elementIdsToErase[t.id]={erase:!0,opacity:t.opacity}}))}t.eraseElements(e)}else{var z;if(Object.keys(e.elementIdsToErase).length&&t.restoreReadyToEraseElements(e),D&&!e.drag.hasOccurred&&!e.hit.wasAddedToSelection&&(!t.state.editingLinearElement||!e.boxSelection.hasOccurred))if(n.shiftKey&&!t.state.editingLinearElement)if(t.state.selectedElementIds[D.id])if((0,$.zq)(t.state,D)){var Z=D.groupIds.flatMap((function(e){return(0,$.Fb)(t.scene.getNonDeletedElements(),e)})).map((function(e){return(0,p.Z)({},e.id,!1)})).reduce((function(e,t){return fr(fr({},e),t)}),{});t.setState((function(e){return{selectedGroupIds:fr(fr({},e.selectedElementIds),D.groupIds.map((function(e){return(0,p.Z)({},e,!1)})).reduce((function(e,t){return fr(fr({},e),t)}),{})),selectedElementIds:fr(fr({},e.selectedElementIds),Z)}}))}else null!==(z=t.state.selectedLinearElement)&&void 0!==z&&z.isDragging||t.setState((function(e){var n=fr(fr({},e.selectedElementIds),{},(0,p.Z)({},D.id,!1)),r=(0,ie.eD)(t.scene.getNonDeletedElements(),fr(fr({},e),{},{selectedElementIds:n}));return(0,$.bO)(fr(fr({},e),{},{selectedElementIds:n,selectedLinearElement:1===r.length&&(0,Y.bt)(r[0])?new K._(r[0],t.scene):e.selectedLinearElement}),t.scene.getNonDeletedElements())}));else t.setState((function(e){return{selectedElementIds:fr(fr({},e.selectedElementIds),{},(0,p.Z)({},D.id,!0))}}));else t.setState((function(e){var n;return fr({},(0,$.bO)(fr(fr({},e),{},{selectedElementIds:(0,p.Z)({},D.id,!0),selectedLinearElement:(0,Y.bt)(D)&&(null===(n=e.selectedLinearElement)||void 0===n?void 0:n.elementId)!==D.id?new K._(D,t.scene):e.selectedLinearElement}),t.scene.getNonDeletedElements()))}));e.drag.hasOccurred||t.state.isResizing||!(D&&(0,U.wB)(D,t.state,e.origin.x,e.origin.y)||!D&&e.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!d.locked&&"freedraw"!==d.type&&c&&t.setState((function(e){return{selectedElementIds:fr(fr({},e.selectedElementIds),{},(0,p.Z)({},c.id,!0))}})),("selection"!==d.type||(0,ie.N)(t.scene.getNonDeletedElements(),t.state))&&t.history.resumeRecording(),(e.drag.hasOccurred||f||h)&&((0,C.N1)(t.state)?C.el:C.H)((0,ie.eD)(t.scene.getNonDeletedElements(),t.state)),d.locked||"freedraw"===d.type?t.setState({draggingElement:null,suggestedBindings:[]}):((0,M.z8)(t.canvas),t.setState({draggingElement:null,suggestedBindings:[],activeTool:(0,M.Om)(t.state,{type:"selection"})}))):t.state.editingLinearElement?t.setState({editingLinearElement:null}):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}}}))}},{key:"maybeSuggestBindingForAll",value:function(e){var t=(0,C.ZB)(e);this.setState({suggestedBindings:t})}},{key:"clearSelection",value:function(e){this.setState((function(t){return{selectedElementIds:{},selectedGroupIds:{},editingGroupId:t.editingGroupId&&null!=e&&(0,$.Nd)(e,t.editingGroupId)?t.editingGroupId:null}})),this.setState({selectedElementIds:{},previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(e,t,n,r){if(r){var o=r.x+r.width/2,i=r.y+r.height/2,a=(0,Le.TP)(r,n);if(a&&(o=a.x,i=a.y),Math.hypot(e-o,t-i)i})},this.onResize=(0,M.tH)((function(){e.scene.getElementsIncludingDeleted().forEach((function(e){return(0,oe.bI)(e)})),e.setState({})})),this.renderScene=function(){var t={},n={},r={},o={},i={};e.state.collaborators.forEach((function(a,l){if(a.selectedElementIds)for(var c=0,s=Object.keys(a.selectedElementIds);c0;e.state.scrolledOutside!==o&&e.setState({scrolledOutside:o}),e.scheduleImageRefresh()}},zr&&!0===window.EXCALIDRAW_THROTTLE_RENDER),zr||(zr=!0)},this.onScroll=(0,M.Ds)((function(){var t=e.getCanvasOffsets(),n=t.offsetTop,r=t.offsetLeft;e.setState((function(e){return e.offsetLeft===r&&e.offsetTop===n?null:{offsetTop:n,offsetLeft:r}}))}),P.HM),this.onCut=(0,M.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,M.s)(t.target)&&(e.cutAll(),t.preventDefault(),t.stopPropagation())})),this.onCopy=(0,M.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,M.s)(t.target)&&(e.copyAll(),t.preventDefault(),t.stopPropagation())})),this.cutAll=function(){e.actionManager.executeAction(k.ZM,"keyboard")},this.copyAll=function(){e.actionManager.executeAction(k.uN,"keyboard")},this.onTapStart=function(t){if(P.Dt||t.preventDefault(),!jr)return jr=!0,clearTimeout(Or),void(Or=window.setTimeout(Wr.resetTapTwice,P.Gj));if(jr&&1===t.touches.length){var n=(0,o.Z)(t.touches,1)[0];e.handleCanvasDoubleClick({clientX:n.clientX,clientY:n.clientY}),jr=!1,clearTimeout(Or)}P.Dt&&t.preventDefault(),2===t.touches.length&&e.setState({selectedElementIds:{}})},this.onTapEnd=function(t){e.resetContextMenuTimer(),t.touches.length>0?e.setState({previousSelectedElementIds:{},selectedElementIds:e.state.previousSelectedElementIds}):Hr.pointers.clear()},this.pasteFromClipboard=(0,M.tH)(function(){var t=(0,a.Z)(v().mark((function t(n){var r,o,i,a,l,c,s,u,d,f,h,m,g;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=!(!Zr||!n),a=document.activeElement,l=null===(r=e.excalidrawContainerRef.current)||void 0===r?void 0:r.contains(a),!n||l){t.next=5;break}return t.abrupt("return");case 5:if(c=document.elementFromPoint(Cr,Mr),!n||c instanceof HTMLCanvasElement&&!(0,M.s)(a)){t.next=8;break}return t.abrupt("return");case 8:return s=null==n||null===(o=n.clipboardData)||void 0===o?void 0:o.files[0],t.next=11,(0,B.mQ)(n,i);case 11:if(u=t.sent,s||!u.text||i||(d=u.text.trim()).startsWith("")&&(s=(0,Ve.Pn)(d)),!(0,Ve.Wr)(s)||u.spreadsheet){t.next=20;break}return f=(0,M.dE)({clientX:Cr,clientY:Mr},e.state),h=f.x,m=f.y,g=e.createImageElement({sceneX:h,sceneY:m}),e.insertImageElement(g,s),e.initializeImageDimensions(g),e.setState({selectedElementIds:(0,p.Z)({},g.id,!0)}),t.abrupt("return");case 20:if(!e.props.onPaste){t.next=32;break}return t.prev=21,t.next=24,e.props.onPaste(u,n);case 24:if(t.t0=t.sent,!1!==t.t0){t.next=27;break}return t.abrupt("return");case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(21),console.error(t.t1);case 32:u.errorMessage?e.setState({errorMessage:u.errorMessage}):u.spreadsheet&&!i?e.setState({pasteDialog:{data:u.spreadsheet,shown:!0}}):u.elements?e.addElementsFromPasteOrLibrary({elements:u.elements,files:u.files||null,position:"cursor"}):u.text&&e.addTextFromPaste(u.text,i),e.setActiveTool({type:"selection"}),null==n||n.preventDefault();case 35:case"end":return t.stop()}}),t,null,[[21,29]])})));return function(e){return t.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(t){var n=(0,F.ET)(t.elements,null),a=(0,U.KP)(n),l=(0,o.Z)(a,4),c=l[0],s=l[1],u=l[2],d=l[3],f=(0,M.TE)(c,u)/2,p=(0,M.TE)(s,d)/2,h="object"===(0,r.Z)(t.position)?t.position.clientX:"cursor"===t.position?Cr:e.state.width/2+e.state.offsetLeft,v="object"===(0,r.Z)(t.position)?t.position.clientY:"cursor"===t.position?Mr:e.state.height/2+e.state.offsetTop,m=(0,M.dE)({clientX:h,clientY:v},e.state),g=m.x-f,b=m.y-p,y=(0,ne.wC)(g,b,e.state.gridSize),x=(0,o.Z)(y,2),w=x[0],k=x[1],_=(0,V._N)(n.map((function(e){return(0,O.BE)(e,{x:e.x+w-c,y:e.y+k-s})}))),E=[].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),(0,i.Z)(_));e.scene.replaceAllElements(E),_.forEach((function(e){if((0,U.iB)(e)&&(0,Y.Xh)(e)){var t=(0,Le.tl)(e);(0,U.oN)(e,t)}})),t.files&&(e.files=fr(fr({},e.files),t.files)),e.history.resumeRecording(),e.setState((0,$.bO)(fr(fr({},e.state),{},{openSidebar:e.state.openSidebar&&e.device.canDeviceFitSidebar&&e.state.isSidebarDocked?e.state.openSidebar:null,selectedElementIds:_.reduce((function(e,t){return(0,Y.Xh)(t)||(e[t.id]=!0),e}),{}),selectedGroupIds:{}}),e.scene.getNonDeletedElements()),(function(){t.files&&e.addNewImagesToImageCache()})),e.setActiveTool({type:"selection"})},this.setAppState=function(t,n){e.setState(t,n)},this.removePointer=function(t){Dr&&e.resetContextMenuTimer(),Hr.pointers.delete(t.pointerId)},this.toggleLock=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ui";e.state.activeTool.locked||(0,A.L)("toolbar","toggleLock","".concat(t," (").concat(e.device.isMobile?"mobile":"desktop",")")),e.setState((function(t){return{activeTool:fr(fr(fr({},t.activeTool),(0,M.Om)(e.state,t.activeTool.locked?{type:"selection"}:t.activeTool)),{},{locked:!t.activeTool.locked})}}))},this.togglePenMode=function(){e.setState((function(e){return{penMode:!e.penMode}}))},this.onHandToolToggle=function(){e.actionManager.executeAction(ir.eF)},this.zoomCanvas=function(t){e.setState(fr({},(0,le.E)({viewportX:e.state.width/2+e.state.offsetLeft,viewportY:e.state.height/2+e.state.offsetTop,nextZoom:(0,ie.j)(t)},e.state)))},this.cancelInProgresAnimation=null,this.scrollToContent=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.scene.getNonDeletedElements(),r=arguments.length>1?arguments[1]:void 0;null===(t=e.cancelInProgresAnimation)||void 0===t||t.call(e);var o=Array.isArray(n)?n:[n],i=e.state.zoom,a=e.state.scrollX,l=e.state.scrollY;if(null!=r&&r.fitToContent){var c=(0,ir.md)(o,e.state,!1).appState;i=c.zoom,a=c.scrollX,l=c.scrollY}else{var s=(0,ie.W)(o,e.state,e.canvas);a=s.scrollX,l=s.scrollY}if(null!=r&&r.animate){var u,d=e.state.scrollX,f=e.state.scrollY;e.zoomCanvas(i.value);var p=(0,M.B4)([d,f],[a,l],(function(t,n){return e.setState({scrollX:t,scrollY:n})}),{duration:null!==(u=null==r?void 0:r.duration)&&void 0!==u?u:500});e.cancelInProgresAnimation=function(){p(),e.cancelInProgresAnimation=null}}else e.setState({scrollX:a,scrollY:l,zoom:i})},this.translateCanvas=function(t){var n;null===(n=e.cancelInProgresAnimation)||void 0===n||n.call(e),e.setState(t)},this.setToast=function(t){e.setState({toast:t})},this.restoreFileFromShare=(0,a.Z)(v().mark((function t(){var n,r,o,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,caches.open("web-share-target");case 3:return n=t.sent,t.next=6,n.match("shared-file");case 6:if(!(r=t.sent)){t.next=16;break}return t.next=10,r.blob();case 10:return o=t.sent,i=new File([o],o.name||"",{type:o.type}),e.loadFileToCanvas(i,null),t.next=15,n.delete("shared-file");case 15:window.history.replaceState(null,P.iC,window.location.pathname);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),e.setState({errorMessage:t.t0.message});case 21:case"end":return t.stop()}}),t,null,[[0,18]])}))),this.addFiles=(0,M.tH)((function(t){var n=t.reduce((function(e,t){return e.set(t.id,t),e}),new Map);e.files=fr(fr({},e.files),Object.fromEntries(n)),e.scene.getNonDeletedElements().forEach((function(t){(0,Y.wi)(t)&&n.has(t.fileId)&&(e.imageCache.delete(t.fileId),(0,oe.bI)(t))})),e.scene.informMutation(),e.addNewImagesToImageCache()})),this.updateScene=(0,M.tH)((function(t){t.commitToHistory&&e.history.resumeRecording(),t.appState&&e.setState(t.appState),t.elements&&e.scene.replaceAllElements(t.elements),t.collaborators&&e.setState({collaborators:t.collaborators})})),this.onSceneUpdated=function(){e.setState({})},this.toggleMenu=function(t,n){return"customSidebar"!==t||e.props.renderSidebar?("library"===t||"customSidebar"===t)&&(r=void 0===n?e.state.openSidebar===t?null:t:n?t:null,e.setState({openSidebar:r}),!!r):(console.warn('attempting to toggle "customSidebar", but no "props.renderSidebar" is defined'),!1);var r},this.updateCurrentCursorPosition=(0,M.tH)((function(e){Cr=e.clientX,Mr=e.clientY})),this.onKeyDown=(0,M.tH)((function(t){if("Proxy"in window&&(!t.shiftKey&&/^[A-Z]$/.test(t.key)||t.shiftKey&&/^[a-z]$/.test(t.key))&&(t=new Proxy(t,{get:function(e,n){var r=e[n];return"function"==typeof r?r.bind(e):"key"===n?t.shiftKey?e.key.toUpperCase():e.key.toLowerCase():r}})),t[j.tW.CTRL_OR_CMD]&&t.key.toLowerCase()===j.tW.V&&(Zr=t.shiftKey,clearTimeout(Rr),Rr=window.setTimeout((function(){Zr=!1}),100)),!t[j.tW.CTRL_OR_CMD]||!(0,M.s)(t.target)||t.code!==j.aU.MINUS&&t.code!==j.aU.EQUAL){if(!((0,M.s)(t.target)&&t.key!==j.tW.ESCAPE||(0,j.Wl)(t.key)&&(0,M._Z)(t.target)))if(t.key!==j.tW.QUESTION_MARK)if(t.key.toLowerCase()===j.tW.E&&t.shiftKey&&t[j.tW.CTRL_OR_CMD])e.setState({openDialog:"imageExport"});else{if(t.key===j.tW.PAGE_UP||t.key===j.tW.PAGE_DOWN){var n=(t.shiftKey?e.state.width:e.state.height)/e.state.zoom.value;t.key===j.tW.PAGE_DOWN&&(n=-n),t.shiftKey?e.translateCanvas((function(e){return{scrollX:e.scrollX+n}})):e.translateCanvas((function(e){return{scrollY:e.scrollY+n}}))}if(!e.actionManager.handleKeyDown(t)&&!e.state.viewModeEnabled){if(t[j.tW.CTRL_OR_CMD]&&e.state.isBindingEnabled&&e.setState({isBindingEnabled:!1}),(0,j.Wl)(t.key)){var r=e.state.gridSize&&(t.shiftKey?P.$e:e.state.gridSize)||(t.shiftKey?P.Iw:P.$e),o=0,i=0;t.key===j.tW.ARROW_LEFT?o=-r:t.key===j.tW.ARROW_RIGHT?o=r:t.key===j.tW.ARROW_UP?i=-r:t.key===j.tW.ARROW_DOWN&&(i=r);var a=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state,!0);a.forEach((function(e){(0,O.DR)(e,{x:e.x+o,y:e.y+i}),(0,C.Ww)(e,{simultaneouslyUpdated:a})})),e.maybeSuggestBindingForAll(a),t.preventDefault()}else if(t.key===j.tW.ENTER){var l=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if(1===l.length){var c=l[0];if(t[j.tW.CTRL_OR_CMD])(0,Y.bt)(c)&&(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===l[0].id||(e.history.resumeRecording(),e.setState({editingLinearElement:new K._(c,e.scene)})));else if((0,U.iB)(c)||(0,Le.Zr)(c)){var s;(0,U.iB)(c)||(s=c);var u=(0,Le.TP)(c,e.state),d=u.x,f=u.y;return e.startTextEditing({sceneX:d,sceneY:f,container:s}),void t.preventDefault()}}}else if(!t.ctrlKey&&!t.altKey&&!t.metaKey&&null===e.state.draggingElement){var p=function(e){var t=ce.find((function(t,n){return null!=t.numericKey&&e===t.numericKey.toString()||t.key&&("string"==typeof t.key?t.key===e:t.key.includes(e))}));return(null==t?void 0:t.value)||null}(t.key);p?(e.state.activeTool.type!==p&&(0,A.L)("toolbar",p,"keyboard (".concat(e.device.isMobile?"mobile":"desktop",")")),e.setActiveTool({type:p}),t.stopPropagation()):t.key===j.tW.Q&&(e.toggleLock("keyboard"),t.stopPropagation())}if(t.key===j.tW.SPACE&&0===Hr.pointers.size&&(Pr=!0,(0,M.KJ)(e.canvas,P.oc.GRAB),t.preventDefault()),!(t.key!==j.tW.G&&t.key!==j.tW.S||t.altKey||t[j.tW.CTRL_OR_CMD])){var h=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if("selection"===e.state.activeTool.type&&!h.length)return;t.key===j.tW.G&&((0,ie.$b)(e.state.activeTool.type)||h.some((function(e){return(0,ie.$b)(e.type)})))&&(e.setState({openPopup:"backgroundColorPicker"}),t.stopPropagation()),t.key===j.tW.S&&(e.setState({openPopup:"strokeColorPicker"}),t.stopPropagation())}!t[j.tW.CTRL_OR_CMD]||t.key!==j.tW.BACKSPACE&&t.key!==j.tW.DELETE||yn.e_.set(Dn.w,"clearCanvas")}}else e.setState({openDialog:"help"})}else t.preventDefault()})),this.onWheel=(0,M.tH)((function(e){e.target instanceof HTMLCanvasElement||!e.ctrlKey||e.preventDefault()})),this.onKeyUp=(0,M.tH)((function(t){if(t.key===j.tW.SPACE&&(e.state.viewModeEnabled?(0,M.KJ)(e.canvas,P.oc.GRAB):"selection"===e.state.activeTool.type?(0,M.z8)(e.canvas):((0,M.Uk)(e.canvas,e.state),e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),Pr=!1),t[j.tW.CTRL_OR_CMD]||e.state.isBindingEnabled||e.setState({isBindingEnabled:!0}),(0,j.Wl)(t.key)){var n=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);(0,C.N1)(e.state)?(0,C.el)(n):(0,C.H)(n),e.setState({suggestedBindings:[]})}})),this.setActiveTool=function(t){var n=(0,M.Om)(e.state,t);"hand"===n.type?(0,M.KJ)(e.canvas,P.oc.GRAB):Pr||(0,M.Uk)(e.canvas,e.state),(0,M.wO)(document.activeElement)&&e.focusContainer(),(0,Y.dt)(n.type)||e.setState({suggestedBindings:[]}),"image"===n.type&&e.onImageAction(),"selection"!==n.type?e.setState({activeTool:n,selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}):e.setState({activeTool:n})},this.setCursor=function(t){(0,M.KJ)(e.canvas,t)},this.resetCursor=function(){(0,M.z8)(e.canvas)},this.isTouchScreenMultiTouchGesture=function(){return Hr.pointers.size>=2},this.onGestureStart=(0,M.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({selectedElementIds:{}}),Hr.initialScale=e.state.zoom.value})),this.onGestureChange=(0,M.tH)((function(t){if(t.preventDefault(),!e.isTouchScreenMultiTouchGesture()){var n=Hr.initialScale;n&&e.setState((function(e){return fr({},(0,le.E)({viewportX:Cr,viewportY:Mr,nextZoom:(0,ie.j)(n*t.scale)},e))}))}})),this.onGestureEnd=(0,M.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({previousSelectedElementIds:{},selectedElementIds:e.state.previousSelectedElementIds}),Hr.initialScale=null})),this.startTextEditing=function(t){var n,r,o,a,l=t.sceneX,c=t.sceneY,s=t.insertAtParentCenter,u=void 0===s||s,d=t.container,f=!1,p=u&&e.getTextWysiwygSnappedToCenterPosition(l,c,e.state,d);d&&p&&(f=!0);var h=null,v=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),m=(null===(n=h=1===v.length?(0,U.iB)(v[0])?v[0]:d?(0,Le.WJ)(v[0]):e.getTextElementAtPosition(l,c):e.getTextElementAtPosition(l,c))||void 0===n?void 0:n.fontFamily)||e.state.currentItemFontFamily,g=(null===(r=h)||void 0===r?void 0:r.lineHeight)||(0,Le.PT)(m),b=e.state.currentItemFontSize;if(!h&&f&&d&&!(0,Y.Yv)(d)){var y={fontSize:b,fontFamily:m},x=(0,Le.AT)((0,M.mO)(y),g),w=(0,Le.w_)(b,g),k=(0,Le.HE)(d),_=Math.max(k.height,w),E=Math.max(k.width,x);(0,O.DR)(d,{height:_,width:E}),l=d.x+E/2,c=d.y+_/2,p&&(p=e.getTextWysiwygSnappedToCenterPosition(l,c,e.state,d))}var S=h||(0,U.VL)({x:p?p.elementCenterX:l,y:p?p.elementCenterY:c,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,text:"",fontSize:b,fontFamily:m,textAlign:p?"center":e.state.currentItemTextAlign,verticalAlign:p?P.oX.MIDDLE:P.hs,containerId:f?null==d?void 0:d.id:void 0,groupIds:null!==(o=null==d?void 0:d.groupIds)&&void 0!==o?o:[],lineHeight:g,angle:null!==(a=null==d?void 0:d.angle)&&void 0!==a?a:0});if(!h&&f&&d&&(0,O.DR)(d,{boundElements:(d.boundElements||[]).concat({type:"text",id:S.id})}),e.setState({editingElement:S}),!h)if(d&&f){var j=e.scene.getElementIndex(d.id);e.scene.insertElementAtIndex(S,j+1)}else e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[S]));e.setState({editingElement:S}),e.handleTextWysiwyg(S,{isExistingElement:!!h})},this.handleCanvasDoubleClick=function(t){if(!e.state.multiElement&&"selection"===e.state.activeTool.type){var n=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if(1===n.length&&(0,Y.bt)(n[0])){if(t[j.tW.CTRL_OR_CMD]&&(!e.state.editingLinearElement||e.state.editingLinearElement.elementId!==n[0].id))return e.history.resumeRecording(),void e.setState({editingLinearElement:new K._(n[0],e.scene)});if(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===n[0].id)return}(0,M.z8)(e.canvas);var r=(0,M.dE)(t,e.state),o=r.x,i=r.y;if((0,$.iJ)(e.state).length>0){var a=e.getElementAtPosition(o,i),l=a&&(0,$.YS)(a,e.state.selectedGroupIds);if(l)return void e.setState((function(t){return(0,$.bO)(fr(fr({},t),{},{editingGroupId:l,selectedElementIds:(0,p.Z)({},a.id,!0),selectedGroupIds:{}}),e.scene.getNonDeletedElements())}))}if((0,M.z8)(e.canvas),!t[j.tW.CTRL_OR_CMD]&&!e.state.viewModeEnabled){var c=(0,Le.OW)(e.scene.getNonDeletedElements(),e.state,o,i);if(c&&((0,Y.Xo)(c)||!(0,M.Qm)(c.backgroundColor)||(0,Jn.Qu)(c,e.state,[o,i]))){var s=(0,Le.TP)(c,e.state);o=s.x,i=s.y}e.startTextEditing({sceneX:o,sceneY:i,insertAtParentCenter:!t.altKey,container:c})}}},this.getElementLinkAtPosition=function(t,n){var r=e.scene.getNonDeletedElements().slice().reverse(),o=1/0;return r.find((function(r,i){return n&&r.id===n.id&&(o=i),r.link&&i<=o&&(0,er.wq)(r,e.state,[t.x,t.y],e.device.isMobile)}))},this.redirectToLink=function(t,n){var r=(0,ne.LW)(e.lastPointerDown.clientX,e.lastPointerDown.clientY,e.lastPointerUp.clientX,e.lastPointerUp.clientY);if(!(!e.hitLinkElement||n&&r>P.f||!n&&0!==r)){var o=(0,M.dE)(e.lastPointerDown,e.state),i=(0,er.wq)(e.hitLinkElement,e.state,[o.x,o.y],e.device.isMobile),a=(0,M.dE)(e.lastPointerUp,e.state),l=(0,er.wq)(e.hitLinkElement,e.state,[a.x,a.y],e.device.isMobile);if(i&&l){var c,s,u=e.hitLinkElement.link;if(u&&(e.props.onLinkOpen&&(s=(0,M.ag)(P.Ks.EXCALIDRAW_LINK,t.nativeEvent),e.props.onLinkOpen(e.hitLinkElement,s)),null===(c=s)||void 0===c||!c.defaultPrevented)){var d=(0,er.q$)(u)?"_self":"_blank",f=window.open(void 0,d);f&&(f.opener=null,f.location=(0,er.$u)(u))}}}},this.handleCanvasPointerMove=function(t){e.savePointer(t.clientX,t.clientY,e.state.cursorButton),Hr.pointers.has(t.pointerId)&&Hr.pointers.set(t.pointerId,{x:t.clientX,y:t.clientY});var n=Hr.initialScale;if(2===Hr.pointers.size&&Hr.lastCenter&&n&&Hr.initialDistance){var r=G(Hr.pointers),a=r.x-Hr.lastCenter.x,l=r.y-Hr.lastCenter.y;Hr.lastCenter=r;var c=X(Array.from(Hr.pointers.values())),s="freedraw"===e.state.activeTool.type&&e.state.penMode?1:c/Hr.initialDistance,u=s?(0,ie.j)(n*s):e.state.zoom.value;e.setState((function(t){var n=(0,le.E)({viewportX:r.x,viewportY:r.y,nextZoom:u},t);e.translateCanvas({zoom:n.zoom,scrollX:n.scrollX+a/u,scrollY:n.scrollY+l/u,shouldCacheIgnoreZoom:!0})})),e.resetShouldCacheIgnoreZoomDebounced()}else Hr.lastCenter=Hr.initialDistance=Hr.initialScale=null;if(!(Pr||Tr||Ir||(0,N.l$)(e.state))){var d=(0,ie._4)(Lr,t.clientX-e.state.offsetLeft,t.clientY-e.state.offsetTop).isOverEither;e.state.draggingElement||e.state.multiElement||(d?(0,M.z8)(e.canvas):(0,M.Uk)(e.canvas,e.state));var f=(0,M.dE)(t,e.state),p=f.x,h=f.y;if(e.state.editingLinearElement&&!e.state.editingLinearElement.isDragging){var v=K._.handlePointerMove(t,p,h,e.state);v&&v!==e.state.editingLinearElement&&(0,b.flushSync)((function(){e.setState({editingLinearElement:v})})),null!=(null==v?void 0:v.lastUncommittedPoint)?e.maybeSuggestBindingAtCursor(f):(0,b.flushSync)((function(){e.setState({suggestedBindings:[]})}))}if((0,Y.Lx)(e.state.activeTool.type)){var m=e.state.draggingElement;(0,Y.Mn)(m,!1)?e.maybeSuggestBindingsForLinearElementAtCoords(m,[f],e.state.startBoundElement):e.maybeSuggestBindingAtCursor(f)}if(e.state.multiElement){var g=e.state.multiElement,y=g.x,x=g.y,w=g.points,k=g.lastCommittedPoint,_=w[w.length-1];if((0,M.Uk)(e.canvas,e.state),_===k)(0,ne.LW)(p-y,h-x,_[0],_[1])>=P.qx?(0,O.DR)(g,{points:[].concat((0,i.Z)(w),[[p-y,h-x]])}):(0,M.KJ)(e.canvas,P.oc.POINTER);else if(w.length>2&&k&&(0,ne.LW)(p-y,h-x,k[0],k[1])1&&!d){var F=(0,U.n2)((0,U.KP)(W),p,h,e.state.zoom,t.pointerType);if(F)return void(0,M.KJ)(e.canvas,(0,U.Un)({transformHandleType:F}))}}else{var V=(0,U.jt)(H,e.state,p,h,e.state.zoom,t.pointerType);if(V&&V.transformHandleType)return void(0,M.KJ)(e.canvas,(0,U.Un)(V))}var q=e.getElementAtPosition(f.x,f.y);e.hitLinkElement=e.getElementLinkAtPosition(f,q),(0,N.EN)(e.state)||(e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]?((0,M.KJ)(e.canvas,P.oc.POINTER),(0,er.Pp)(e.hitLinkElement,e.state)):((0,er.lV)(),q&&q.link&&e.state.selectedElementIds[q.id]&&!e.state.contextMenu&&!e.state.showHyperlinkPopup?e.setState({showHyperlinkPopup:"info"}):"text"===e.state.activeTool.type?(0,M.KJ)(e.canvas,(0,U.iB)(q)?P.oc.TEXT:P.oc.CROSSHAIR):e.state.viewModeEnabled?(0,M.KJ)(e.canvas,P.oc.GRAB):d?(0,M.KJ)(e.canvas,P.oc.AUTO):e.state.selectedLinearElement?e.handleHoverSelectedLinearElement(e.state.selectedLinearElement,p,h):t[j.tW.CTRL_OR_CMD]?(0,M.KJ)(e.canvas,P.oc.AUTO):!q&&!e.isHittingCommonBoundingBoxOfSelectedElements(f,W)||null!=q&&q.locked||(0,M.KJ)(e.canvas,P.oc.MOVE)))}}},this.handleEraser=function(t,n,r){for(var o=function(e){e.forEach((function(e){e.locked||(i.push(e.id),t.altKey?n.elementIdsToErase[e.id]&&n.elementIdsToErase[e.id].erase&&(n.elementIdsToErase[e.id].erase=!1):n.elementIdsToErase[e.id]||(n.elementIdsToErase[e.id]={erase:!0,opacity:e.opacity}))}))},i=[],a=(0,ne.LW)(n.lastCoords.x,n.lastCoords.y,r.x,r.y),l=10/e.state.zoom.value,c=fr({},n.lastCoords),s=0;s<=a&&(o(e.getElementsAtPosition(c.x,c.y)),s!==a);){var u=(s=Math.min(s+l,a))/a,d=(1-u)*c.x+u*r.x,f=(1-u)*c.y+u*r.y;c.x=d,c.y=f}var p=e.scene.getElementsIncludingDeleted().map((function(e){var r=(0,Y.Xh)(e)&&i.includes(e.containerId)?e.containerId:e.id;if(i.includes(r)){if(!t.altKey)return(0,O.BE)(e,{opacity:P.xY});if(n.elementIdsToErase[r]&&!1===n.elementIdsToErase[r].erase)return(0,O.BE)(e,{opacity:n.elementIdsToErase[r].opacity})}return e}));e.scene.replaceAllElements(p),n.lastCoords.x=r.x,n.lastCoords.y=r.y},this.handleTouchMove=function(e){Ar=!0},this.handleCanvasPointerDown=function(t){var n,r;if(e.state.contextMenu&&e.setState({contextMenu:null}),e.updateGestureOnPointerDown(t),"touch"===t.pointerType&&e.state.draggingElement&&"freedraw"===e.state.draggingElement.type){var o=e.state.draggingElement;e.updateScene(fr(fr({},o.points.length<10?{elements:e.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==o.id}))}:{}),{},{appState:{draggingElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:Object.keys(e.state.selectedElementIds).filter((function(e){return e!==o.id})).reduce((function(t,n){return t[n]=e.state.selectedElementIds[n],t}),{})}}))}else{var i=document.getSelection();if(null!=i&&i.anchorNode&&i.removeAllRanges(),e.maybeOpenContextMenuAfterPointerDownOnTouchDevices(t),e.maybeCleanupAfterMissingPointerUp(t),e.state.penDetected||"pen"!==t.pointerType||e.setState((function(e){return{penMode:!0,penDetected:!0}})),!e.device.isTouchScreen&&["pen","touch"].includes(t.pointerType)&&(e.device=(0,M.v4)(e.device,{isTouchScreen:!0})),!Tr&&(e.lastPointerDown=t,e.setState({lastPointerDownWith:t.pointerType,cursorButton:"down"}),e.savePointer(t.clientX,t.clientY,"down"),!e.handleCanvasPanUsingWheelOrSpaceDrag(t)&&!(t.button!==P.Oh.MAIN&&t.button!==P.Oh.TOUCH||Hr.pointers.size>1))){var a=e.initialPointerDownState(t);if(!e.handleDraggingScrollBar(t,a)&&(e.clearSelectionIfNotUsingSelection(),e.updateBindingEnabledOnPointerMove(t),!e.handleSelectionOnPointerDown(t,a)&&(!e.state.penMode||"touch"!==t.pointerType||"selection"===e.state.activeTool.type||"text"===e.state.activeTool.type||"image"===e.state.activeTool.type)))if("text"!==e.state.activeTool.type){if("arrow"===e.state.activeTool.type||"line"===e.state.activeTool.type)e.handleLinearElementOnPointerDown(t,e.state.activeTool.type,a);else if("image"===e.state.activeTool.type){(0,M.KJ)(e.canvas,P.oc.CROSSHAIR);var l=e.state.pendingImageElementId&&e.scene.getElement(e.state.pendingImageElementId);if(!l)return;e.setState({draggingElement:l,editingElement:l,pendingImageElementId:null,multiElement:null});var c=(0,M.dE)(t,e.state),s=c.x,u=c.y;(0,O.DR)(l,{x:s,y:u})}else"freedraw"===e.state.activeTool.type?e.handleFreeDrawElementOnPointerDown(t,e.state.activeTool.type,a):"custom"===e.state.activeTool.type?(0,M.KJ)(e.canvas,P.oc.AUTO):"eraser"!==e.state.activeTool.type&&"hand"!==e.state.activeTool.type&&e.createGenericElementOnPointerDown(e.state.activeTool.type,a);null===(n=e.props)||void 0===n||null===(r=n.onPointerDown)||void 0===r||r.call(n,e.state.activeTool,a);var d=e.onPointerMoveFromPointerDownHandler(a),f=e.onPointerUpFromPointerDownHandler(a),p=e.onKeyDownFromPointerDownHandler(a),h=e.onKeyUpFromPointerDownHandler(a);Br=f,e.state.viewModeEnabled||(window.addEventListener(P.Ks.POINTER_MOVE,d),window.addEventListener(P.Ks.POINTER_UP,f),window.addEventListener(P.Ks.KEYDOWN,p),window.addEventListener(P.Ks.KEYUP,h),a.eventListeners.onMove=d,a.eventListeners.onUp=f,a.eventListeners.onKeyUp=h,a.eventListeners.onKeyDown=p)}else e.handleTextOnPointerDown(t,a)}}},this.handleCanvasPointerUp=function(t){if(e.lastPointerUp=t,e.device.isTouchScreen){var n=(0,M.dE)({clientX:t.clientX,clientY:t.clientY},e.state),r=e.getElementAtPosition(n.x,n.y);e.hitLinkElement=e.getElementLinkAtPosition(n,r)}e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]&&e.redirectToLink(t,e.device.isTouchScreen),e.removePointer(t)},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(t){"touch"===t.pointerType&&(Ar=!1,Dr?Ar=!0:Dr=window.setTimeout((function(){Dr=0,Ar||e.handleCanvasContextMenu(t)}),P.nM))},this.resetContextMenuTimer=function(){clearTimeout(Dr),Dr=0,Ar=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(t){if(!(Hr.pointers.size<=1&&(t.button===P.Oh.WHEEL||t.button===P.Oh.MAIN&&Pr||(0,N.l$)(e.state)||e.state.viewModeEnabled))||(0,U.iB)(e.state.editingElement))return!1;Tr=!0,t.preventDefault();var n=!1,r=/Linux/.test(window.navigator.platform);(0,M.KJ)(e.canvas,P.oc.GRABBING);var o=t.clientX,i=t.clientY,a=(0,M.$9)((function(t){var a=o-t.clientX,l=i-t.clientY;if(o=t.clientX,i=t.clientY,r&&!n&&(Math.abs(a)>1||Math.abs(l)>1)){n=!0;var c=function e(t){document.body.removeEventListener(P.Ks.PASTE,e),t.stopPropagation()};document.body.addEventListener(P.Ks.PASTE,c),window.addEventListener(P.Ks.POINTER_UP,(function e(){setTimeout((function(){document.body.removeEventListener(P.Ks.PASTE,c),window.removeEventListener(P.Ks.POINTER_UP,e)}),100)}))}e.translateCanvas({scrollX:e.state.scrollX-a/e.state.zoom.value,scrollY:e.state.scrollY-l/e.state.zoom.value})})),l=(0,M.tH)(Br=function(){Br=null,Tr=!1,Pr||(e.state.viewModeEnabled?(0,M.KJ)(e.canvas,P.oc.GRAB):(0,M.Uk)(e.canvas,e.state)),e.setState({cursorButton:"up"}),e.savePointer(t.clientX,t.clientY,"up"),window.removeEventListener(P.Ks.POINTER_MOVE,a),window.removeEventListener(P.Ks.POINTER_UP,l),window.removeEventListener(P.Ks.BLUR,l),a.flush()});return window.addEventListener(P.Ks.BLUR,l),window.addEventListener(P.Ks.POINTER_MOVE,a,{passive:!0}),window.addEventListener(P.Ks.POINTER_UP,l),!0},this.clearSelectionIfNotUsingSelection=function(){"selection"!==e.state.activeTool.type&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})},this.handleSelectionOnPointerDown=function(t,n){if("selection"===e.state.activeTool.type){var r=e.scene.getNonDeletedElements(),o=(0,ie.eD)(r,e.state);if(1!==o.length||e.state.editingLinearElement)o.length>1&&(n.resize.handleType=(0,U.n2)((0,U.KP)(o),n.origin.x,n.origin.y,e.state.zoom,t.pointerType));else{var i=(0,U.jt)(r,e.state,n.origin.x,n.origin.y,e.state.zoom,t.pointerType);null!=i&&(e.setState({resizingElement:i.element}),n.resize.handleType=i.transformHandleType)}if(n.resize.handleType)(0,M.KJ)(e.canvas,(0,U.Un)({transformHandleType:n.resize.handleType})),n.resize.isResizing=!0,n.resize.offset=(0,M.AK)((0,U.xx)(n.resize.handleType,o,n.origin.x,n.origin.y)),1===o.length&&(0,Y.bt)(o[0])&&2===o[0].points.length&&(n.resize.arrowDirection=(0,U.T)(n.resize.handleType,o[0]));else{var a;if(e.state.selectedLinearElement){var l=e.state.editingLinearElement||e.state.selectedLinearElement,c=K._.handlePointerDown(t,e.state,e.history,n.origin,l);if(c.hitElement&&(n.hit.element=c.hitElement),c.linearElementEditor&&(e.setState({selectedLinearElement:c.linearElementEditor}),e.state.editingLinearElement&&e.setState({editingLinearElement:c.linearElementEditor})),c.didAddPoint)return!0}if(n.hit.element=null!==(a=n.hit.element)&&void 0!==a?a:e.getElementAtPosition(n.origin.x,n.origin.y),n.hit.element&&e.getElementLinkAtPosition({x:n.origin.x,y:n.origin.y},n.hit.element))return!1;n.hit.allHitElements=e.getElementsAtPosition(n.origin.x,n.origin.y);var s=n.hit.element,u=n.hit.allHitElements.some((function(t){return e.isASelectedElement(t)}));if(null!==s&&u||t.shiftKey||n.hit.hasHitCommonBoundingBoxOfSelectedElements||e.clearSelection(s),e.state.editingLinearElement)e.setState({selectedElementIds:(0,p.Z)({},e.state.editingLinearElement.elementId,!0)});else if(null!=s){if(t[j.tW.CTRL_OR_CMD])return e.state.selectedElementIds[s.id]||(n.hit.wasAddedToSelection=!0),e.setState((function(t){return fr(fr({},(0,$.iE)(t,s)),{},{previousSelectedElementIds:e.state.selectedElementIds})})),!1;e.state.selectedElementIds[s.id]||(e.state.editingGroupId&&!(0,$.Nd)(s,e.state.editingGroupId)&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}),u||n.hit.hasHitCommonBoundingBoxOfSelectedElements||(e.setState((function(t){return(0,$.bO)(fr(fr({},t),{},{selectedElementIds:fr(fr({},t.selectedElementIds),{},(0,p.Z)({},s.id,!0)),showHyperlinkPopup:!!s.link&&"info"}),e.scene.getNonDeletedElements())})),n.hit.wasAddedToSelection=!0))}e.setState({previousSelectedElementIds:e.state.selectedElementIds})}}return!1},this.handleTextOnPointerDown=function(t,n){if(!(0,U.iB)(e.state.editingElement)){var r=n.origin.x,o=n.origin.y,i=e.getElementAtPosition(r,o,{includeBoundTextElement:!0}),a=(0,Le.OW)(e.scene.getNonDeletedElements(),e.state,r,o);(0,Y.Xo)(i)&&(a=i,r=i.x+i.width/2,o=i.y+i.height/2),e.startTextEditing({sceneX:r,sceneY:o,insertAtParentCenter:!t.altKey,container:a}),(0,M.z8)(e.canvas),e.state.activeTool.locked||e.setState({activeTool:(0,M.Om)(e.state,{type:"selection"})})}},this.handleFreeDrawElementOnPointerDown=function(t,n,r){var a=(0,ne.wC)(r.origin.x,r.origin.y,null),l=(0,o.Z)(a,2),c=l[0],s=l[1],u=(0,V.KE)({type:n,x:c,y:s,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,roundness:null,simulatePressure:.5===t.pressure,locked:!1});e.setState((function(e){return{selectedElementIds:fr(fr({},e.selectedElementIds),{},(0,p.Z)({},u.id,!1))}}));var d=u.simulatePressure?u.pressures:[].concat((0,i.Z)(u.pressures),[t.pressure]);(0,O.DR)(u,{points:[[0,0]],pressures:d});var f=(0,C.Y9)(r.origin,e.scene);e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[u])),e.setState({draggingElement:u,editingElement:u,startBoundElement:f,suggestedBindings:[]})},this.createImageElement=function(t){var n=t.sceneX,r=t.sceneY,i=(0,ne.wC)(n,r,e.state.gridSize),a=(0,o.Z)(i,2),l=a[0],c=a[1];return(0,U.vw)({type:"image",x:l,y:c,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,roundness:null,opacity:e.state.currentItemOpacity,locked:!1})},this.handleLinearElementOnPointerDown=function(t,n,r){if(e.state.multiElement){var a=e.state.multiElement;if("line"===a.type&&(0,ne.g6)(a.points,e.state.zoom.value))return(0,O.DR)(a,{lastCommittedPoint:a.points[a.points.length-1]}),void e.actionManager.executeAction(k.pL);var l=a.x,c=a.y,s=a.lastCommittedPoint;if(a.points.length>1&&s&&(0,ne.LW)(r.origin.x-l,r.origin.y-c,s[0],s[1])P.$n)){t.next=42;break}throw new Error((0,S.t)("errors.fileTooBig",{maxSize:"".concat(Math.trunc(P.$n/1024/1024),"MB")}));case 42:if(u&&(g=null===(m=e.files[f])||void 0===m?void 0:m.dataURL,b=g&&(0,Ve.KG)(g),e.setImagePreviewCursor(b||l)),t.t7=null===(i=e.files[f])||void 0===i?void 0:i.dataURL,t.t7){t.next=48;break}return t.next=47,(0,Ve.Sf)(l);case 47:t.t7=t.sent;case 48:return y=t.t7,x=(0,O.DR)(c,{fileId:f},!1),t.abrupt("return",new Promise(function(){var t=(0,a.Z)(v().mark((function t(n,r){var o,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.files=fr(fr({},e.files),{},(0,p.Z)({},f,{mimeType:d,id:f,dataURL:y,created:Date.now(),lastRetrieved:Date.now()})),i=e.imageCache.get(f)){t.next=7;break}return e.addNewImagesToImageCache(),t.next=7,e.updateImageCache([x]);case 7:if(!((null==i?void 0:i.image)instanceof Promise)){t.next=10;break}return t.next=10,i.image;case 10:e.state.pendingImageElementId!==x.id&&(null===(o=e.state.draggingElement)||void 0===o?void 0:o.id)!==x.id&&e.initializeImageDimensions(x,!0),n(x),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),console.error(t.t0),r(new Error((0,S.t)("errors.imageInsertError")));case 18:return t.prev=18,u||(0,M.z8)(e.canvas),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[0,14,18,21]])})));return function(e,n){return t.apply(this,arguments)}}()));case 51:case"end":return t.stop()}}),t,null,[[6,19],[31,37]])})));return function(e){return t.apply(this,arguments)}}(),this.insertImageElement=function(){var t=(0,a.Z)(v().mark((function t(n,r,o){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[n])),t.prev=1,t.next=4,e.initializeImage({imageFile:r,imageElement:n,showCursorImagePreview:o});case 4:t.next=11;break;case 6:t.prev=6,t.t0=t.catch(1),(0,O.DR)(n,{isDeleted:!0}),e.actionManager.executeAction(k.pL),e.setState({errorMessage:t.t0.message||(0,S.t)("errors.imageInsertError")});case 11:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e,n,r){return t.apply(this,arguments)}}(),this.setImagePreviewCursor=function(){var t=(0,a.Z)(v().mark((function t(n){var r,o,i,a,l,c,s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=96,t.next=3,(0,Ve.Tu)(n,{maxWidthOrHeight:r});case 3:return o=t.sent,t.next=6,(0,Ve.Sf)(o);case 6:if(i=t.sent,n.type!==P.LO.svg){t.next=20;break}return t.next=10,(0,qn.PK)(i);case 10:a=t.sent,l=Math.min(a.height,r),(c=l*(a.width/a.height))>r&&(l=(c=r)*(a.height/a.width)),(s=document.createElement("canvas")).height=l,s.width=c,s.getContext("2d").drawImage(a,0,0,c,l),i=s.toDataURL(P.LO.svg);case 20:e.state.pendingImageElementId&&(0,M.KJ)(e.canvas,"url(".concat(i,") 4 4, auto"));case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.onImageAction=(0,a.Z)(v().mark((function t(){var n,r,o,i,a,l,c,s,u,d=arguments;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>0&&void 0!==d[0]?d[0]:{insertOnCanvasDirectly:!1},r=n.insertOnCanvasDirectly,t.prev=1,o=e.state.width/2+e.state.offsetLeft,i=e.state.height/2+e.state.offsetTop,a=(0,M.dE)({clientX:o,clientY:i},e.state),l=a.x,c=a.y,t.next=7,(0,$e.I$)({description:"Image",extensions:["jpg","png","svg","gif"]});case 7:s=t.sent,u=e.createImageElement({sceneX:l,sceneY:c}),r?(e.insertImageElement(u,s),e.initializeImageDimensions(u),e.setState({selectedElementIds:(0,p.Z)({},u.id,!0)},(function(){e.actionManager.executeAction(k.pL)}))):e.setState({pendingImageElementId:u.id},(function(){e.insertImageElement(u,s,!0)})),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),"AbortError"!==t.t0.name?console.error(t.t0):console.warn(t.t0),e.setState({pendingImageElementId:null,editingElement:null,activeTool:(0,M.Om)(e.state,{type:"selection"})},(function(){e.actionManager.executeAction(k.pL)}));case 16:case"end":return t.stop()}}),t,null,[[1,12]])}))),this.initializeImageDimensions=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,Y.wi)(t)&&(null===(n=e.imageCache.get(t.fileId))||void 0===n?void 0:n.image);if(!o||o instanceof Promise){if(t.width1&&void 0!==u[1]?u[1]:e.files,t.next=3,(0,qn.Xx)({imageCache:e.imageCache,fileIds:n.map((function(e){return e.fileId})),files:r});case 3:if(o=t.sent,i=o.updatedFiles,a=o.erroredFiles,i.size||a.size){l=cr(n);try{for(l.s();!(c=l.n()).done;)s=c.value,i.has(s.fileId)&&(0,oe.bI)(s)}catch(e){l.e(e)}finally{l.f()}}return a.size&&e.scene.replaceAllElements(e.scene.getElementsIncludingDeleted().map((function(e){return(0,Y.wi)(e)&&a.has(e.fileId)?(0,O.BE)(e,{status:"error"}):e}))),t.abrupt("return",{updatedFiles:i,erroredFiles:a});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.addNewImagesToImageCache=(0,a.Z)(v().mark((function t(){var n,r,o,i=arguments;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.length>0&&void 0!==i[0]?i[0]:(0,qn.oA)(e.scene.getNonDeletedElements()),r=i.length>1&&void 0!==i[1]?i[1]:e.files,!(o=n.filter((function(t){return!t.isDeleted&&!e.imageCache.has(t.fileId)}))).length){t.next=9;break}return t.next=6,e.updateImageCache(o,r);case 6:t.sent.updatedFiles.size&&e.scene.informMutation();case 9:case"end":return t.stop()}}),t)}))),this.scheduleImageRefresh=Qn()((function(){e.addNewImagesToImageCache()}),P.LL),this.updateBindingEnabledOnPointerMove=function(t){var n=(0,C.cz)(t);e.state.isBindingEnabled!==n&&e.setState({isBindingEnabled:n})},this.maybeSuggestBindingAtCursor=function(t){var n=(0,C.Y9)(t,e.scene);e.setState({suggestedBindings:null!=n?[n]:[]})},this.maybeSuggestBindingsForLinearElementAtCoords=function(t,n,r){if(n.length){var o=n.reduce((function(n,o){var i=(0,C.Y9)(o,e.scene);return null==i||(0,C.DK)(t,null==r?void 0:r.id,i)||n.push(i),n}),[]);e.setState({suggestedBindings:o})}},this.handleCanvasRef=function(t){var n,r,o;null!==t?(e.canvas=t,e.rc=y.Z.canvas(e.canvas),e.canvas.addEventListener(P.Ks.WHEEL,e.handleWheel,{passive:!1}),e.canvas.addEventListener(P.Ks.TOUCH_START,e.onTapStart),e.canvas.addEventListener(P.Ks.TOUCH_END,e.onTapEnd)):(null===(n=e.canvas)||void 0===n||n.removeEventListener(P.Ks.WHEEL,e.handleWheel),null===(r=e.canvas)||void 0===r||r.removeEventListener(P.Ks.TOUCH_START,e.onTapStart),null===(o=e.canvas)||void 0===o||o.removeEventListener(P.Ks.TOUCH_END,e.onTapEnd))},this.handleAppOnDrop=function(){var t=(0,a.Z)(v().mark((function t(n){var r,o,i,a,l,c,s,u,d,f;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ve.bv)(n);case 2:if(r=t.sent,o=r.file,i=r.fileHandle,t.prev=5,!(0,Ve.Wr)(o)){t.next=26;break}if((null==o?void 0:o.type)!==P.LO.png&&(null==o?void 0:o.type)!==P.LO.svg){t.next=20;break}return t.prev=8,t.next=11,(0,H.cT)(o,e.state,e.scene.getElementsIncludingDeleted(),i);case 11:return a=t.sent,e.syncActionResult(fr(fr({},a),{},{appState:fr(fr({},a.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.abrupt("return");case 16:if(t.prev=16,t.t0=t.catch(8),"EncodingError"===t.t0.name){t.next=20;break}throw t.t0;case 20:return l=(0,M.dE)(n,e.state),c=l.x,s=l.y,u=e.createImageElement({sceneX:c,sceneY:s}),e.insertImageElement(u,o),e.initializeImageDimensions(u),e.setState({selectedElementIds:(0,p.Z)({},u.id,!0)}),t.abrupt("return");case 26:t.next=31;break;case 28:return t.prev=28,t.t1=t.catch(5),t.abrupt("return",e.setState({isLoading:!1,errorMessage:t.t1.message}));case 31:if(!(d=n.dataTransfer.getData(P.LO.excalidrawlib))||"string"!=typeof d){t.next=35;break}try{f=(0,Ve.wf)(d),e.addElementsFromPasteOrLibrary({elements:(0,W.WV)(f),position:n,files:null})}catch(t){e.setState({errorMessage:t.message})}return t.abrupt("return");case 35:if(!o){t.next=38;break}return t.next=38,e.loadFileToCanvas(o,i);case 38:case"end":return t.stop()}}),t,null,[[5,28],[8,16]])})));return function(e){return t.apply(this,arguments)}}(),this.loadFileToCanvas=function(){var t=(0,a.Z)(v().mark((function t(n,r){var o;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ve.gY)(n);case 2:return n=t.sent,t.prev=3,t.next=6,(0,Ve.ZY)(n,e.state,e.scene.getElementsIncludingDeleted(),r);case 6:if((o=t.sent).type!==P.LO.excalidraw){t.next=12;break}e.setState({isLoading:!0}),e.syncActionResult(fr(fr({},o.data),{},{appState:fr(fr({},o.data.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.next=15;break;case 12:if(o.type!==P.LO.excalidrawlib){t.next=15;break}return t.next=15,e.library.updateLibrary({libraryItems:n,merge:!0,openLibraryMenu:!0}).catch((function(t){console.error(t),e.setState({errorMessage:(0,S.t)("errors.importLibraryError")})}));case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(3),e.setState({isLoading:!1,errorMessage:t.t0.message});case 20:case"end":return t.stop()}}),t,null,[[3,17]])})));return function(e,n){return t.apply(this,arguments)}}(),this.handleCanvasContextMenu=function(t){if(t.preventDefault(),"touch"!==t.nativeEvent.pointerType&&("pen"!==t.nativeEvent.pointerType||t.button===P.Oh.SECONDARY)||"selection"===e.state.activeTool.type){var n=(0,M.dE)(t,e.state),r=n.x,o=n.y,i=e.getElementAtPosition(r,o,{preferSelected:!0,includeLockedElements:!0}),a=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),l=e.isHittingCommonBoundingBoxOfSelectedElements({x:r,y:o},a),c=i||l?"element":"canvas",s=e.excalidrawContainerRef.current.getBoundingClientRect(),u=s.top,d=s.left,f=t.clientX-d,h=t.clientY-u;(0,A.L)("contextMenu","openContextMenu",c),e.setState(fr(fr({},i&&!e.state.selectedElementIds[i.id]?(0,$.bO)(fr(fr({},e.state),{},{selectedElementIds:(0,p.Z)({},i.id,!0),selectedLinearElement:(0,Y.bt)(i)?new K._(i,e.scene):null}),e.scene.getNonDeletedElements()):e.state),{},{showHyperlinkPopup:!1}),(function(){e.setState({contextMenu:{top:h,left:f,items:e.getContextMenuItems(c)}})}))}},this.maybeDragNewGenericElement=function(t,n){var r=e.state.draggingElement,i=t.lastCoords;if(r)if("selection"===r.type&&"eraser"!==e.state.activeTool.type)(0,U.EJ)(r,e.state.activeTool.type,t.origin.x,t.origin.y,i.x,i.y,(0,M.TE)(t.origin.x,i.x),(0,M.TE)(t.origin.y,i.y),(0,j.E0)(n),(0,j.OA)(n));else{var a,l=(0,ne.wC)(i.x,i.y,e.state.gridSize),c=(0,o.Z)(l,2),s=c[0],u=c[1],d=(0,Y.wi)(r)&&(null===(a=e.imageCache.get(r.fileId))||void 0===a?void 0:a.image),f=!d||d instanceof Promise?null:d.width/d.height;(0,U.EJ)(r,e.state.activeTool.type,t.originInGrid.x,t.originInGrid.y,s,u,(0,M.TE)(t.originInGrid.x,s),(0,M.TE)(t.originInGrid.y,u),(0,Y.pC)(r)?!(0,j.E0)(n):(0,j.E0)(n),(0,j.OA)(n),f),e.maybeSuggestBindingForAll([r])}},this.maybeHandleResize=function(t,n){var r=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),i=t.resize.handleType;e.setState({isResizing:i&&"rotation"!==i,isRotating:"rotation"===i});var a=t.lastCoords,l=(0,ne.wC)(a.x-t.resize.offset.x,a.y-t.resize.offset.y,e.state.gridSize),c=(0,o.Z)(l,2),s=c[0],u=c[1];return!!(0,U.vY)(t,i,r,t.resize.arrowDirection,(0,j.Ge)(n),(0,j.OA)(n),1===r.length&&(0,Y.pC)(r[0])?!(0,j.E0)(n):(0,j.E0)(n),s,u,t.resize.center.x,t.resize.center.y)&&(e.maybeSuggestBindingForAll(r),!0)},this.getContextMenuItems=function(t){var n=[];return n.push(k.jK,k.FA),"canvas"===t?e.state.viewModeEnabled?[].concat(n,[k.Pb,k.JN,Xn,k.u0]):[or.yQ,Se,k.jK,k.FA,k.zp,Se,k.Yy,Se,k.Pb,k.JN,Xn,k.u0]:(n.push(k.zp),e.state.viewModeEnabled?[k.uN].concat(n):[k.ZM,k.uN,or.yQ,Se].concat(n,[Se,k.pw,k.W3,Se,k.EQ,k.y7,k.vD,ar.JQ,k.s,Se,k.FL,Se,k.V,k.yA,k.zi,k.BZ,Se,k.jl,k.kt,Se,k.Qs,k.nz,k.xF,k.iL,Se,k.X9]))},this.handleWheel=(0,M.tH)((function(t){if(t.preventDefault(),!Tr){var n=t.deltaX,r=t.deltaY;if(t.metaKey||t.ctrlKey){var o=Math.sign(r),i=100*P.V4,a=Math.abs(r),l=r;a>i&&(l=i*o);var c=e.state.zoom.value-l/100;return c+=Math.log10(Math.max(1,e.state.zoom.value))*-o*Math.min(1,a/20),e.translateCanvas((function(e){return fr(fr({},(0,le.E)({viewportX:Cr,viewportY:Mr,nextZoom:(0,ie.j)(c)},e)),{},{shouldCacheIgnoreZoom:!0})})),void e.resetShouldCacheIgnoreZoomDebounced()}t.shiftKey?e.translateCanvas((function(e){var t=e.zoom;return{scrollX:e.scrollX-(r||n)/t.value}})):e.translateCanvas((function(e){var t=e.zoom,o=e.scrollX,i=e.scrollY;return{scrollX:o-n/t.value,scrollY:i-r/t.value}}))}})),this.savePointer=function(t,n,r){var o,i;if(t&&n){var a=(0,M.dE)({clientX:t,clientY:n},e.state);isNaN(a.x)||isNaN(a.y),null===(o=(i=e.props).onPointerUpdate)||void 0===o||o.call(i,{pointer:a,button:r,pointersMap:Hr.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=(0,M.Ds)((function(){e.unmounted||e.setState({shouldCacheIgnoreZoom:!1})}),300),this.updateDOMRect=function(t){var n;if(null!==(n=e.excalidrawContainerRef)&&void 0!==n&&n.current){var r=e.excalidrawContainerRef.current.getBoundingClientRect(),o=r.width,i=r.height,a=r.left,l=r.top,c=e.state,s=c.width,u=c.height,d=c.offsetTop,f=c.offsetLeft;if(o===s&&i===u&&a===f&&l===d)return void(t&&t());e.setState({width:o,height:i,offsetLeft:a,offsetTop:l},(function(){t&&t()}))}},this.refresh=function(){e.setState(fr({},e.getCanvasOffsets()))}};"production"!==P.Vi.TEST&&"production"!==P.Vi.DEVELOPMENT||(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){var e;return null===(e=this.app)||void 0===e?void 0:e.scene.getElementsIncludingDeleted()},set:function(e){var t;return null===(t=this.app)||void 0===t?void 0:t.scene.replaceAllElements(e)}}}));var Ur=Wr},3807:function(e,t,n){"use strict";n.d(t,{o:function(){return x}});var r=n(45),o=n(3646),i=n(487),a=n.n(i),l=n(631),c=n.n(l),s=n(2052),u=n.n(s),d=n(4010),f=n.n(d),p=n(1469),h=n.n(p),v=n(9329),m=n.n(v),g=n(6029),b={};b.styleTagTransform=m(),b.setAttributes=f(),b.insert=u().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=h(),a()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals;var y=n(4512),x=function(e){var t=e.children,n=e.checked,i=e.onChange,a=e.className;return(0,y.jsxs)("div",{className:(0,r.Z)("Checkbox",a,{"is-checked":n}),onClick:function(e){i(!n,e),e.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,y.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":n,children:o.eQ}),(0,y.jsx)("div",{className:"Checkbox-label",children:t})]})}},4499:function(e,t,n){"use strict";n.d(t,{z:function(){return T}});var r=n(2577),o=n(9787),i=n.n(o),a=n(2891),l=n(6340),c=n(487),s=n.n(c),u=n(631),d=n.n(u),f=n(2052),p=n.n(f),h=n(4010),v=n.n(h),m=n(1469),g=n.n(m),b=n(9329),y=n.n(b),x=n(2345),w={};w.styleTagTransform=y(),w.setAttributes=v(),w.insert=p().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=g(),s()(x.Z,w),x.Z&&x.Z.locals&&x.Z.locals;var k=n(6066),_=n(8211),E=n(56),S=n(4512),j=function(e,t){return!E.Z[t].includes(e)},O=function(e){var t=(new Option).style;return t.color=e,!!t.color},C=[["1","2","3","4","5"],["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),M=function(e){var t=e.colors,n=e.color,o=e.onChange,a=e.onClose,c=e.label,s=e.showInput,u=void 0===s||s,d=e.type,f=e.elements,p=i().useRef(),h=i().useRef(),v=i().useRef(),m=i().useRef(),g=i().useState((function(){return"canvasBackground"===d?[]:function(e,t){for(var n=[],r=e.filter((function(e){return!e.isDeleted})).sort((function(e,t){return t.updated-e.updated})),o=0,i={elementBackground:"backgroundColor",elementStroke:"strokeColor"}[t];o1&&void 0!==arguments[1]&&arguments[1];return e.map((function(e,r){var i=e.replace("#",""),a=t?C[r+15]:C[r],c=t?i:(0,_.t)("colors.".concat(i));return(0,S.jsxs)("button",{className:"color-picker-swatch",onClick:function(t){t.currentTarget.focus(),o(e)},title:"".concat(c).concat((0,l.Qm)(e)?"":" (".concat(e,")")," \u2014 ").concat(a.toUpperCase()),"aria-label":c,"aria-keyshortcuts":C[r],style:{color:e},ref:function(o){!t&&o&&0===r&&(p.current=o),o&&e===n&&(h.current=o)},onFocus:function(){o(e)},children:[(0,l.Qm)(e)?(0,S.jsx)("div",{className:"color-picker-transparent"}):void 0,(0,S.jsx)("span",{className:"color-picker-keybinding",children:a})]},e)}))};return(0,S.jsxs)("div",{className:"color-picker color-picker-type-".concat(d),role:"dialog","aria-modal":"true","aria-label":(0,_.t)("labels.colorPicker"),onKeyDown:function(e){var t=!1;if((0,k.Wl)(e.key)){var n,r,o;t=!0;var i,c=document.activeElement,s=(0,_.G3)().rtl,d=!1,f=Array.prototype.indexOf.call(null===(n=v.current.querySelector(".color-picker-content--default"))||void 0===n?void 0:n.children,c);-1===f&&-1!==(f=Array.prototype.indexOf.call(null===(i=v.current.querySelector(".color-picker-content--canvas-colors"))||void 0===i?void 0:i.children,c))&&(d=!0);var p=d?null===(r=v.current)||void 0===r?void 0:r.querySelector(".color-picker-content--canvas-colors"):null===(o=v.current)||void 0===o?void 0:o.querySelector(".color-picker-content--default");if(p&&-1!==f){var h,m=p.children.length-(u?1:0),g=e.key===(s?k.tW.ARROW_LEFT:k.tW.ARROW_RIGHT)?(f+1)%m:e.key===(s?k.tW.ARROW_RIGHT:k.tW.ARROW_LEFT)?(m+f-1)%m:d||e.key!==k.tW.ARROW_DOWN?d||e.key!==k.tW.ARROW_UP?f:(m+f-5)%m:(f+5)%m;null===(h=p.children[g])||void 0===h||h.focus()}e.preventDefault()}else if(!C.includes(e.key.toLowerCase())||e[k.tW.CTRL_OR_CMD]||e.altKey||(0,l.s)(e.target))e.key!==k.tW.ESCAPE&&e.key!==k.tW.ENTER||(t=!0,e.preventDefault(),a());else{var b,y,x;t=!0;var w=C.indexOf(e.key.toLowerCase()),E=w>=15,S=E?null==v||null===(b=v.current)||void 0===b?void 0:b.querySelector(".color-picker-content--canvas-colors"):null==v||null===(y=v.current)||void 0===y?void 0:y.querySelector(".color-picker-content--default"),j=E?w-15:w;null==S||null===(x=S.children[j])||void 0===x||x.focus(),e.preventDefault()}t&&(e.nativeEvent.stopImmediatePropagation(),e.stopPropagation())},children:[(0,S.jsx)("div",{className:"color-picker-triangle color-picker-triangle-shadow"}),(0,S.jsx)("div",{className:"color-picker-triangle"}),(0,S.jsxs)("div",{className:"color-picker-content",ref:function(e){e&&(v.current=e)},tabIndex:-1,children:[(0,S.jsx)("div",{className:"color-picker-content--default",children:y(t)}),!!b.length&&(0,S.jsxs)("div",{className:"color-picker-content--canvas",children:[(0,S.jsx)("span",{className:"color-picker-content--canvas-title",children:(0,_.t)("labels.canvasColors")}),(0,S.jsx)("div",{className:"color-picker-content--canvas-colors",children:y(b,!0)})]}),u&&(0,S.jsx)(P,{color:n,label:c,onChange:function(e){o(e)},ref:m})]})]})},P=i().forwardRef((function(e,t){var n=e.color,o=e.onChange,a=e.label,c=i().useState(n),s=(0,r.Z)(c,2),u=s[0],d=s[1],f=i().useRef(null);i().useEffect((function(){d(n)}),[n]),i().useImperativeHandle(t,(function(){return f.current}));var p=i().useCallback((function(e){var t=e.toLowerCase(),n=function(e){return(0,l.Qm)(e)?e:O("#".concat(e))?"#".concat(e):O(e)?e:null}(t);n&&o(n),d(t)}),[o]);return(0,S.jsxs)("label",{className:"color-input-container",children:[(0,S.jsx)("div",{className:"color-picker-hash",children:"#"}),(0,S.jsx)("input",{spellCheck:!1,className:"color-picker-input","aria-label":a,onChange:function(e){return p(e.target.value)},value:(u||"").replace(/^#/,""),onBlur:function(){return d(n)},ref:f})]})}));P.displayName="ColorInput";var T=function(e){var t,n=e.type,r=e.color,o=e.onChange,l=e.label,c=e.isActive,s=e.setActive,u=e.elements,d=(e.appState,i().useRef(null)),f=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect();return(0,S.jsxs)("div",{children:[(0,S.jsxs)("div",{className:"color-picker-control-container",children:[(0,S.jsx)("div",{className:"color-picker-label-swatch-container",children:(0,S.jsx)("button",{className:"color-picker-label-swatch","aria-label":l,style:r?{"--swatch-color":r}:void 0,onClick:function(){return s(!c)},ref:d})}),(0,S.jsx)(P,{color:r,label:l,onChange:function(e){o(e)}})]}),(0,S.jsx)(i().Suspense,{fallback:"",children:c?(0,S.jsx)("div",{className:"color-picker-popover-container",style:{position:"fixed",top:null==f?void 0:f.top,left:null==f?void 0:f.right,zIndex:1},children:(0,S.jsx)(a.J,{onCloseRequest:function(e){return e.target!==d.current&&s(!1)},children:(0,S.jsx)(M,{colors:E.Z[n],color:r||null,onChange:function(e){o(e)},onClose:function(){var e;s(!1),null===(e=d.current)||void 0===e||e.focus()},label:l,showInput:!1,type:n,elements:u})})}):null})]})}},7046:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(7169),o=n(2726),i=n(8211),a=n(8396),l=n(487),c=n.n(l),s=n(631),u=n.n(s),d=n(2052),f=n.n(d),p=n(4010),h=n.n(p),v=n(1469),m=n.n(v),g=n(9329),b=n.n(g),y=n(9393),x={};x.styleTagTransform=b(),x.setAttributes=h(),x.insert=f().bind(null,"head"),x.domAPI=u(),x.insertStyleElement=m(),c()(y.Z,x),y.Z&&y.Z.locals&&y.Z.locals;var w=n(6428),k=n(4739),_=n(9206),E=n(2134),S=n(9487),j=n(4512),O=["onConfirm","onCancel","children","confirmText","cancelText","className"];function C(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 M(e){for(var t=1;t0&&!1!==e.autofocus&&(t[1]||t[0]).focus();var n=function(e){if(e.key===c.tW.TAB){var t=(0,I.xp)(s),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())}};return s.addEventListener("keydown",n),function(){return s.removeEventListener("keydown",n)}}}),[s,e.autofocus]);var h=(0,l.n9)(),v=(0,L.b9)(D.u,A.yE),m=function(){h({openMenu:null}),v(!1),f.focus(),e.onCloseRequest()};return(0,M.jsx)(P,{className:(0,o.Z)("Dialog",e.className),labelledBy:"dialog-title",maxWidth:e.small?550:800,onCloseRequest:m,theme:e.theme,closeOnClickOutside:e.closeOnClickOutside,children:(0,M.jsxs)(E.W,{ref:u,children:[(0,M.jsxs)("h2",{id:"".concat(p,"-dialog-title"),className:"Dialog__title",children:[(0,M.jsx)("span",{className:"Dialog__titleContent",children:e.title}),(0,M.jsx)("button",{className:"Modal__close",onClick:m,title:(0,a.t)("buttons.close"),"aria-label":(0,a.t)("buttons.close"),children:(0,l.Fy)().isMobile?_.op:_.Tw})]}),(0,M.jsx)("div",{className:"Dialog__content",children:e.children})]})})}},6428:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(7169),o=n(2726),i=n(45),a=n(487),l=n.n(a),c=n(631),s=n.n(c),u=n(2052),d=n.n(u),f=n(4010),p=n.n(f),h=n(1469),v=n.n(h),m=n(9329),g=n.n(m),b=n(6148),y={};y.styleTagTransform=g(),y.setAttributes=p(),y.insert=d().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=v(),l()(b.Z,y),b.Z&&b.Z.locals&&b.Z.locals;var x=n(5644),w=n(4512),k=["label","onClick","className","children","actionType","type","isLoading"];function _(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 E(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(0,N.jsx)("div",{className:"library-actions-counter",children:n.length}),I&&M(),B&&(0,N.jsx)(Y,{onClose:function(){return H(!1)},libraryItems:q(E.libraryItems,n),appState:k,onSuccess:function(e){return $(e,E.libraryItems)},onError:function(e){return window.alert(e)},updateItemsInStorage:function(){return i.setLibrary(E.libraryItems)},onRemove:function(e){return w(n.filter((function(t){return t!==e})))}}),U&&V()]})}},5440:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(2577),o=n(8211),i=n(9787),a=n(5644),l=n(45),c=n(2335),s=n(4512),u=function(e){var t=e.delay,n=e.theme,u=(0,i.useState)(!!t),d=(0,r.Z)(u,2),f=d[0],p=d[1];return(0,i.useEffect)((function(){if(t){var e=setTimeout((function(){p(!1)}),t);return function(){return clearTimeout(e)}}}),[t]),f?null:(0,s.jsxs)("div",{className:(0,l.Z)("LoadingMessage",{"LoadingMessage--dark":n===c.C6.DARK}),children:[(0,s.jsx)("div",{children:(0,s.jsx)(a.Z,{})}),(0,s.jsx)("div",{className:"LoadingMessage-text",children:(0,o.t)("labels.loadingScene")})]})}},2891:function(e,t,n){"use strict";n.d(t,{J:function(){return k}});var r=n(9787),o=n(487),i=n.n(o),a=n(631),l=n.n(a),c=n(2052),s=n.n(c),u=n(4010),d=n.n(u),f=n(1469),p=n.n(f),h=n(9329),v=n.n(h),m=n(9935),g={};g.styleTagTransform=v(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p(),i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var b=n(5156),y=n(6340),x=n(6066),w=n(4512),k=function(e){var t=e.children,n=e.left,o=e.top,i=e.onCloseRequest,a=e.fitInViewport,l=void 0!==a&&a,c=e.offsetLeft,s=void 0===c?0:c,u=e.offsetTop,d=void 0===u?0:u,f=e.viewportWidth,p=void 0===f?window.innerWidth:f,h=e.viewportHeight,v=void 0===h?window.innerHeight:h,m=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=m.current;if(e){e.contains(document.activeElement)||e.focus();var t=function(t){if(t.key===x.tW.TAB){var n,r=(0,y.xp)(e),o=document.activeElement,i=r.findIndex((function(e){return e===o}));if(o===e)t.shiftKey?null===(n=r[r.length-1])||void 0===n||n.focus():r[0].focus(),t.preventDefault(),t.stopImmediatePropagation();else if(0===i&&t.shiftKey){var a;null===(a=r[r.length-1])||void 0===a||a.focus(),t.preventDefault(),t.stopImmediatePropagation()}else if(i===r.length-1&&!t.shiftKey){var l;null===(l=r[0])||void 0===l||l.focus(),t.preventDefault(),t.stopImmediatePropagation()}}};return e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}}),[]);var g=(0,r.useRef)(null);return(0,r.useLayoutEffect)((function(){if(l&&m.current&&null!=o&&null!=n){var e,t,r=m.current,i=r.getBoundingClientRect(),a=i.width,c=i.height;if((null===(e=g.current)||void 0===e?void 0:e.top)===o&&(null===(t=g.current)||void 0===t?void 0:t.left)===n)return;g.current={top:o,left:n},a>=p?(r.style.width="".concat(p,"px"),r.style.left="0px",r.style.overflowX="scroll"):r.style.left="".concat(n+a-s>p?p-a-10:n,"px"),c>=v?(r.style.height="".concat(v-20,"px"),r.style.top="10px",r.style.overflowY="scroll"):r.style.top="".concat(o+c-d>v?v-c:o,"px")}}),[o,n,l,p,v,s,d]),(0,r.useEffect)((function(){if(i){var e=function(e){var t;null!==(t=m.current)&&void 0!==t&&t.contains(e.target)||(0,b.unstable_batchedUpdates)((function(){return i(e)}))};return document.addEventListener("pointerdown",e,!1),function(){return document.removeEventListener("pointerdown",e,!1)}}}),[i]),(0,w.jsx)("div",{className:"popover",ref:m,tabIndex:-1,children:t})}},9430:function(e,t,n){"use strict";n.d(t,{Y:function(){return R},b:function(){return Z}});var r=n(2577),o=n(9787),i=n.n(o),a=n(1881),l=n(4739),c=n(9487),s=i().createContext({}),u=n(45),d=n(8211),f=n(2134),p=n(3646),h=n(7169),v=n(4512);function m(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}var g=n(1894),b=function(e){return(0,v.jsx)("div",{className:"layer-ui__sidebar-dock-button","data-testid":"sidebar-dock",children:(0,v.jsxs)(g.u,{label:(0,d.t)("labels.sidebarLock"),children:[(0,v.jsxs)("label",{className:(0,u.Z)("ToolIcon ToolIcon__lock ToolIcon_type_floating","ToolIcon_size_medium"),children:[(0,v.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",onChange:e.onChange,checked:e.checked,"aria-label":(0,d.t)("labels.sidebarLock")})," ",(0,v.jsx)("div",{className:(0,u.Z)("Sidebar__pin-btn",{"Sidebar__pin-btn--pinned":e.checked}),tabIndex:0,children:p.qQ})," "]})," "]})})},y=function(e){var t=(0,o.createContext)([!1,function(){}]),n=function(e){var n=e.children,i=(0,o.useState)(!1),a=(0,r.Z)(i,2),l=a[0],c=a[1],s=(0,o.useMemo)((function(){return[l,c]}),[l]);return(0,v.jsx)(t.Provider,{value:s,children:n})},i=function(n){var i=(0,o.useContext)(t),a=(0,r.Z)(i,2),l=a[0],c=a[1];return(0,o.useLayoutEffect)((function(){if(!n.__isFallback)return c(!0),function(){return c(!1)}}),[n.__isFallback,c]),n.__isFallback&&l?null:(0,v.jsx)(e,function(e){for(var t=1;t0&&k?null:(0,v.jsx)(a.W,{className:(0,u.Z)("layer-ui__sidebar",{"layer-ui__sidebar--docked":P},x),ref:t,children:(0,v.jsx)(s.Provider,{value:L.current,children:(0,v.jsxs)(w.Context,{children:[(0,v.jsx)(w.Component,{__isFallback:!0}),i]})})})})),{Header:w.Component})},5644:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(487),o=n.n(r),i=n(631),a=n.n(i),l=n(2052),c=n.n(l),s=n(4010),u=n.n(s),d=n(1469),f=n.n(d),p=n(9329),h=n.n(p),v=n(5892),m={};m.styleTagTransform=h(),m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),o()(v.Z,m),v.Z&&v.Z.locals&&v.Z.locals;var g=n(4512),b=function(e){var t=e.size,n=void 0===t?"1em":t,r=e.circleWidth,o=void 0===r?8:r;return(0,g.jsx)("div",{className:"Spinner",children:(0,g.jsx)("svg",{viewBox:"0 0 100 100",style:{width:n,height:n},children:(0,g.jsx)("circle",{cx:"50",cy:"50",r:50-o/2,strokeWidth:o,fill:"none",strokeMiterlimit:"10"})})})}},7239:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(7169),o=n(487),i=n.n(o),a=n(631),l=n.n(a),c=n(2052),s=n.n(c),u=n(4010),d=n.n(u),f=n(1469),p=n.n(f),h=n(9329),v=n.n(h),m=n(3874),g={};g.styleTagTransform=v(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p(),i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var b=n(45),y=n(4512);function x(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 w(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"bottom",o=e.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,l=5,c=t.left+t.width/2-o.width/2;c<0?c=l:c+o.width>=i&&(c=i-o.width-l),"bottom"===r?(n=t.top+t.height+l)+o.height>=a&&(n=t.top-o.height-l):(n=t.top-o.height-l)<0&&(n=t.top+t.height+l),Object.assign(e.style,{top:"".concat(n,"px"),left:"".concat(c,"px")})},w=function(e){var t=e.children,n=e.label,r=e.long,o=void 0!==r&&r,i=e.style;return(0,g.useEffect)((function(){return function(){return y().classList.remove("excalidraw-tooltip--visible")}}),[]),(0,b.jsx)("div",{className:"excalidraw-tooltip-wrapper",onPointerEnter:function(e){return function(e,t,n,r){t.classList.add("excalidraw-tooltip--visible"),t.style.minWidth=r?"50ch":"10ch",t.style.maxWidth=r?"50ch":"15ch",t.textContent=n;var o=e.getBoundingClientRect();x(t,o)}(e.currentTarget,y(),n,o)},onPointerLeave:function(){return y().classList.remove("excalidraw-tooltip--visible")},style:i,children:t})}},6773:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(2577),o=n(487),i=n.n(o),a=n(631),l=n.n(a),c=n(2052),s=n.n(c),u=n(4010),d=n.n(u),f=n(1469),p=n.n(f),h=n(9329),v=n.n(h),m=n(6359),g={};g.styleTagTransform=v(),g.setAttributes=d(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p(),i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var b=n(9787),y=n.n(b),x=n(45),w=n(1894),k=n(2134),_=n(4512),E=function(e){var t=e.className,n=e.mobile,o=e.collaborators,i=(0,k.eh)(),a=new Map;o.forEach((function(e,t){a.set(e.id||t,e)}));var l=a.size>0&&Array.from(a).filter((function(e){var t=(0,r.Z)(e,2),n=(t[0],t[1]);return 0!==Object.keys(n).length})).map((function(e){var t=(0,r.Z)(e,2),o=t[0],a=t[1],l=i.renderAction("goToCollaborator",[o,a]);return n?(0,_.jsx)(w.u,{label:a.username||"Unknown user",children:l},o):(0,_.jsx)(y().Fragment,{children:l},o)}));return(0,_.jsx)("div",{className:(0,x.Z)("UserList",t,{UserList_mobile:n}),children:l})}},8888:function(e,t,n){"use strict";n.d(t,{A3:function(){return f},ZC:function(){return h},R6:function(){return p}});var r=n(9787),o=n.n(r),i=function(e){var t,n=new Set,r=function(e,r){var o="function"==typeof e?e(t):e;if(!Object.is(o,t)){var i=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e){return n.add(e),function(){return n.delete(e)}},destroy:function(){console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),n.clear()}};return t=e(r,o,i),i},a=function(e){return e?i(e):i},c=n(5668).useSyncExternalStoreWithSelector,s=function(e){"function"!=typeof e&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');var t="function"==typeof e?a(e):e,n=function(e,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getState,n=arguments.length>2?arguments[2]:void 0,o=c(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n)};return Object.assign(n,t),n},u=function(e){return e?s(e):s};function d(){var e=u((function(e){return{current:new Array,version:0,set:e}}));return{In:function(t){var n=t.children,o=e((function(e){return e.set})),i=e((function(e){return e.version}));return(0,r.useLayoutEffect)((function(){o((function(e){return{version:e.version+1}}))}),[]),(0,r.useLayoutEffect)((function(){return o((function(e){var t=e.current;return{current:[].concat(l(t),[n])}})),function(){return o((function(e){return{current:e.current.filter((function(e){return e!==n}))}}))}}),[n,i]),null},Out:function(){var t=e((function(e){return e.current}));return o().createElement(o().Fragment,null,t)}}}var f=o().createContext(null),p=function(){return o().useContext(f)},h=function(){return o().useMemo((function(){return{mainMenuTunnel:d(),welcomeScreenMenuHintTunnel:d(),welcomeScreenToolbarHintTunnel:d(),welcomeScreenHelpHintTunnel:d(),welcomeScreenCenterTunnel:d(),footerCenterTunnel:d(),jotaiScope:Symbol()}}),[])}},9127:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(45),o=n(2134),i=n(4512),a=function(e){var t=e.className,n=void 0===t?"":t,a=e.children,l=e.onToggle,c=(0,o.gF)(),s=(0,o.Fy)(),u=(0,r.Z)("dropdown-menu-button ".concat(n),"zen-mode-transition",{"transition-left":c.zenModeEnabled,"dropdown-menu-button--mobile":s.isMobile}).trim();return(0,i.jsx)("button",{"data-prevent-outside-click":!0,className:u,onClick:l,type:"button","data-testid":"dropdown-menu-button",children:a})},l=a;a.displayName="DropdownMenuTrigger";var c=n(2739),s=function(){return(0,i.jsx)("div",{style:{height:"1px",backgroundColor:"var(--default-border-color)",margin:".5rem 0"}})},u=s;s.displayName="DropdownMenuSeparator";var d=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.style,a=e.title;return(0,i.jsxs)("div",{className:"dropdown-menu-group ".concat(r),style:o,children:[a&&(0,i.jsx)("p",{className:"dropdown-menu-group-title",children:a}),t]})},f=d;d.displayName="DropdownMenuGroup";var p=n(1930),h=n(9787),v=n.n(h),m=n(1881),g=n(7239),b=n(6772),y=function(e){var t,n,a=e.children,l=e.onClickOutside,c=e.className,s=void 0===c?"":c,u=e.onSelect,d=e.style,f=(0,o.Fy)(),v=(t=function(){null==l||l()},n=(0,h.useRef)(null),(0,h.useEffect)((function(){var e=function(e){var r=n.current;!r||r.contains(e.target)||(0,p.Z)(document.querySelectorAll("[data-prevent-outside-click]")).some((function(t){return t.contains(e.target)}))||t(e)};return document.addEventListener("pointerdown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("pointerdown",e),document.removeEventListener("touchstart",e)}}),[n,t]),n),y=(0,r.Z)("dropdown-menu ".concat(s),{"dropdown-menu--mobile":f.isMobile}).trim();return(0,i.jsx)(b.N7.Provider,{value:{onSelect:u},children:(0,i.jsx)("div",{ref:v,className:y,style:d,"data-testid":"dropdown-menu",children:f.isMobile?(0,i.jsx)(g.Z.Col,{className:"dropdown-menu-container",children:a}):(0,i.jsx)(m.W,{className:"dropdown-menu-container",padding:2,style:{zIndex:1},children:a})})})};y.displayName="DropdownMenuContent";var x=y,w=n(4215),k=n(7169),_=n(2726),E=["children","className"];function S(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 j(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"").trim()},s=function(e,t){var n=(0,r.useContext)(l);return(0,a.Mj)(e,(function(e){var r,o=new CustomEvent(i.Ks.MENU_ITEM_SELECT,{bubbles:!0,cancelable:!0});null==t||t(o),o.defaultPrevented||null===(r=n.onSelect)||void 0===r||r.call(n,o)}))}},3646:function(e,t,n){"use strict";n.d(t,{$c:function(){return le},$q:function(){return R},BF:function(){return je},BR:function(){return re},Ct:function(){return ve},D7:function(){return q},DG:function(){return oe},DJ:function(){return j},DS:function(){return He},EO:function(){return nt},ET:function(){return X},FC:function(){return _},Gc:function(){return fe},HL:function(){return me},Hk:function(){return at},Hy:function(){return V},IN:function(){return pe},J8:function(){return ie},Mw:function(){return O},NA:function(){return W},NW:function(){return U},Nw:function(){return it},OA:function(){return qe},OW:function(){return M},P7:function(){return ot},Pm:function(){return A},RJ:function(){return Oe},RY:function(){return K},Re:function(){return T},ST:function(){return we},Sd:function(){return N},TP:function(){return ae},Tl:function(){return ne},Tw:function(){return Ee},UE:function(){return ce},VL:function(){return z},Vl:function(){return ue},Vq:function(){return b},W2:function(){return Ne},W5:function(){return xe},Wl:function(){return Le},X7:function(){return Te},XB:function(){return Z},XH:function(){return H},YA:function(){return x},ZA:function(){return Ie},Zm:function(){return $},_C:function(){return k},_U:function(){return S},a0:function(){return Me},a1:function(){return ee},a5:function(){return Ae},aA:function(){return rt},aT:function(){return ze},bf:function(){return Ze},by:function(){return Y},e0:function(){return I},eQ:function(){return Q},fr:function(){return We},gK:function(){return ke},h0:function(){return G},il:function(){return Fe},j8:function(){return Ve},jn:function(){return _e},kL:function(){return F},kM:function(){return Re},lF:function(){return Ce},m:function(){return Ke},m9:function(){return De},mh:function(){return be},nb:function(){return P},np:function(){return Pe},nq:function(){return Ge},o3:function(){return et},oQ:function(){return E},oT:function(){return tt},op:function(){return Se},pO:function(){return y},po:function(){return te},pw:function(){return he},q0:function(){return Ye},qQ:function(){return w},rr:function(){return Je},t5:function(){return de},tW:function(){return Xe},tb:function(){return D},tn:function(){return Ue},uD:function(){return ye},vo:function(){return $e},wr:function(){return Be},xL:function(){return B},xP:function(){return J},xs:function(){return ge},z6:function(){return Qe},zG:function(){return se},zb:function(){return L},zu:function(){return C}});var r=n(7169),o=n(2726),i=n(9787),a=n.n(i),l=n(5284),c=n(45),s=n(2335),u=n(4512),d=["width","height","mirror","style"];function f(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 p(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:512,n="number"==typeof t?{width:t}:t,r=n.width,i=void 0===r?512:r,a=n.height,l=void 0===a?i:a,s=n.mirror,f=n.style,h=(0,o.Z)(n,d);return(0,u.jsx)("svg",p(p({"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(i," ").concat(l),className:(0,c.Z)({"rtl-mirror":s}),style:f},h),{},{children:"string"==typeof e?(0,u.jsx)("path",{fill:"currentColor",d:e}):e}))},m={width:24,height:24,fill:"none",strokeWidth:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},g={width:20,height:20,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b=(v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("rect",{x:3,y:8,width:18,height:4,rx:1}),(0,u.jsx)("line",{x1:12,y1:8,x2:12,y2:21}),(0,u.jsx)("path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7"}),(0,u.jsx)("path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5"})]}),m),v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,u.jsx)("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,u.jsx)("line",{x1:"3",y1:"6",x2:"3",y2:"19"}),(0,u.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"19"}),(0,u.jsx)("line",{x1:"21",y1:"6",x2:"21",y2:"19"})]}),m)),y=v((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,u.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),m),x=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,u.jsx)("circle",{cx:"12",cy:"19",r:"1"}),(0,u.jsx)("circle",{cx:"12",cy:"5",r:"1"})]}),m),w=v((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6"}),(0,u.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),(0,u.jsx)("line",{x1:"8",y1:"4",x2:"16",y2:"4"})]}),m),k=v((0,u.jsxs)("g",{children:[(0,u.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"UnlockedIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:1,width:9,height:9,children:(0,u.jsx)("path",{stroke:"none",d:"M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481",fill:"#fff"})}),(0,u.jsx)("g",{mask:"url(#UnlockedIcon)",children:(0,u.jsx)("path",{stroke:"none",d:"M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z",fill:"currentColor"})})]}),g),_=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,u.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z"}),(0,u.jsx)("path",{d:"M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916"})]}),g),E=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:41,height:94,fill:"none"}),S=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:85,height:71,fill:"none"}),j=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:38,height:78,fill:"none"}),O=v((0,u.jsxs)("g",{fill:"currentColor",children:[(0,u.jsx)("path",{d:"M24.296 12.214c0 .112-.134.224-.291.224-.135 0-.516.629-.808 1.392-.897 2.335-9.867 20.096-9.89 19.534 0-.292-.134-.494-.359-.494-.313 0-.358.18-.224 1.055.135 1.01.045 1.236-3.14 7.432-1.793 3.525-3.722 7.208-4.282 8.196-.584 1.032-1.032 2.155-1.077 2.626-.067.809.022.92 1.973 2.605 1.122.988 2.557 2.223 3.185 2.784 2.826 2.582 4.149 3.615 4.508 3.547.538-.09 8.858-8.823 8.88-9.317 0-.225-.403-3.638-.897-7.59-.852-6.735-1.66-14.616-1.57-15.38.068-.47-.269-2.85-.516-3.884-.201-.808-.112-1.145 1.503-4.827.942-2.178 2.176-4.85 2.714-5.928.515-1.077.964-2.02.964-2.088 0-.067-.157-.112-.336-.112-.18 0-.337.09-.337.225Zm-5.158 16.772c.247 1.572.74 5.344 1.099 8.375.695 5.568 1.503 11.742 1.727 13.314.135.786.045.943-1.413 2.56-2.534 2.851-5.225 5.658-6.145 6.376l-.852.674-4.373-4.086c-4.037-3.728-4.373-4.11-4.127-4.558a5154.2 5154.2 0 0 1 2.535-4.626 727.864 727.864 0 0 0 3.678-6.78c.784-1.46 1.502-2.717 1.637-2.785.156-.09.201 2.178.156 7.006-.09 7.207-.067 7.23.651 7.072.09 0 .157-3.637.157-8.06V35.43l2.355-4.715c1.3-2.605 2.377-4.693 2.422-4.67.045.022.27 1.347.493 2.94ZM9.562 1.818C7.903 3.143 5.346 5.388 3.328 7.32L1.735 8.823l.292 1.976c.157 1.078.449 3.188.628 4.67.202 1.482.404 2.874.47 3.077.09.269 0 .404-.246.404-.426 0-.449-.113.718 3.592.286.952.577 1.903.875 2.851.044.158.224.225.425.158.202-.09.314-.27.247-.427-.067-.18.045-.36.224-.427.247-.09.225-.269-.157-.92-.605-1.01-2.152-9.633-2.242-12.416-.067-1.976-.067-1.999.762-3.121.808-1.1 2.67-2.762 5.54-4.873.807-.605 1.614-1.28 1.839-1.504.336-.404.493-.292 3.319 2.717 1.637 1.729 3.453 3.502 4.037 3.952l1.076.808-.83 1.75c-.448.944-2.265 4.581-4.059 8.04-3.745 7.274-2.983 6.578-7.333 6.645l-2.826.023-.942 1.077c-.987 1.146-1.121 1.572-.65 2.29.18.248.313.652.313.898 0 .405.157.472 1.055.517.56.023 1.076.09 1.144.157.067.068.156 1.46.224 3.098l.09 2.965-1.503 3.232C1.735 45.422.749 47.891.749 48.7c0 .427.09.786.18.786.224 0 .224-.022 9.35-19.085a4398.495 4398.495 0 0 1 8.927-18.546c.672-1.369 1.278-2.626 1.323-2.806.045-.202-1.503-1.751-3.97-3.93-2.22-1.975-4.171-3.772-4.35-3.974-.516-.628-1.279-.426-2.647.674ZM8.441 31.231c-.18.472-.65 1.46-1.031 2.2-.629 1.258-.696 1.303-.853.786-.09-.314-.157-1.235-.18-2.066-.022-1.639-.067-1.616 1.817-1.728L8.8 30.4l-.358.831Zm1.884-3.592c-1.032 1.998-1.077 2.02-3.903 2.155-2.489.135-2.533.112-2.533-.36 0-.269-.09-.628-.203-.808-.134-.202-.044-.56.27-1.055l.493-.763H6.69c1.234-.023 2.647-.113 3.14-.202.494-.09.92-.135.965-.113.045.023-.18.54-.471 1.146Zm-.09-20.477c-.404.292-.516.584-.516 1.325 0 .875.067 1.01.673 1.257.605.247.763.224 1.458-.247.92-.629.941-.786.269-1.796-.583-.876-1.166-1.033-1.884-.54Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.703 11.793c.166-.291.501-.514.93-.514.38 0 .698.161.82.283.161.162.225.35.225.54a.822.822 0 0 1-.056.289c-.08.218-.5 1.106-.983 2.116-.535 1.071-1.76 3.727-2.699 5.895-.79 1.802-1.209 2.784-1.404 3.416-.142.461-.132.665-.058.961.264 1.103.6 3.647.53 4.132-.088.756.727 8.547 1.57 15.21.5 3.997.903 7.45.903 7.676l-.001.033c-.004.087-.041.288-.211.54-.24.354-.914 1.143-1.8 2.119-2.004 2.21-5.107 5.423-6.463 6.653-.322.292-.566.485-.696.56a.884.884 0 0 1-.289.111c-.194.037-.579-.007-1.11-.349-.707-.453-1.981-1.522-4-3.366-.627-.561-2.061-1.794-3.176-2.776-.81-.699-1.308-1.138-1.612-1.466-.32-.343-.47-.61-.549-.87-.078-.257-.085-.515-.055-.874.05-.52.521-1.769 1.166-2.91.559-.985 2.48-4.654 4.269-8.17 1.579-3.071 2.392-4.663 2.792-5.612.32-.759.329-1 .277-1.387-.085-.553-.092-.891-.052-1.092a.942.942 0 0 1 .274-.52c.164-.157.384-.261.704-.261.094 0 .184.011.27.033 1.924-3.44 8.554-16.632 9.316-18.616.276-.724.64-1.336.848-1.556a.965.965 0 0 1 .32-.228Zm-5.399 16.402c-.49.942-.971 1.888-1.446 2.837l-2.28 4.565v7.871c0 4.023-.06 7.404-.136 8.04-.067.552-.474.691-.654.722l.075-.008c-.317.07-.574.063-.778-.023-.234-.098-.5-.297-.63-.857-.156-.681-.158-2.462-.103-6.893.019-2.022.022-3.592.008-4.725-.156.276-.315.562-.467.843a737.624 737.624 0 0 1-3.682 6.79 3618.972 3618.972 0 0 0-2.462 4.493c.062.088.169.231.289.364.55.61 1.631 1.623 3.624 3.462l3.931 3.674.377-.298c.907-.709 3.554-3.479 6.055-6.293.425-.47.73-.814.946-1.084.175-.22.28-.36.319-.501.031-.117.002-.227-.024-.379l-.004-.02c-.224-1.572-1.032-7.753-1.728-13.33-.358-3.022-.85-6.782-1.096-8.349l-.002-.01c-.042-.301-.087-.603-.132-.891ZM9.118 1.264C9.91.628 10.537.27 11.028.144c.727-.186 1.27.003 1.713.53.186.209 2.107 1.972 4.287 3.912 2.02 1.783 3.434 3.16 3.897 3.743.326.41.322.756.296.873a1.046 1.046 0 0 1-.005.018c-.047.188-.669 1.512-1.374 2.947a4348.55 4348.55 0 0 0-8.923 18.54c-7.335 15.32-8.808 18.396-9.217 19.015-.235.355-.419.404-.525.437a.815.815 0 0 1-.249.036.745.745 0 0 1-.647-.363C.176 49.67.04 49.222.04 48.7c0-.286.09-.754.316-1.434.452-1.356 1.466-3.722 3.225-7.53l1.432-3.083-.084-2.787a72.902 72.902 0 0 0-.156-2.53 7.307 7.307 0 0 0-.539-.046c-.463-.024-.764-.062-.96-.124-.304-.096-.48-.252-.598-.438-.105-.165-.17-.374-.17-.663 0-.134-.081-.348-.178-.481l-.019-.028c-.293-.448-.406-.831-.373-1.234.04-.484.34-1.052 1.08-1.91l.759-.869c-.103-.325-.471-1.513-.854-2.787-.737-2.339-1.004-3.238-1.018-3.578-.016-.393.134-.59.27-.715a.721.721 0 0 1 .192-.125 89.87 89.87 0 0 1-.414-2.782 231.651 231.651 0 0 0-.625-4.652l-.292-1.976a.71.71 0 0 1 .215-.62l1.589-1.501C4.87 4.86 7.446 2.599 9.118 1.264Zm-1.833 33.75a.819.819 0 0 1-.406.208.73.73 0 0 1-.491-.063l.048 1.618v.009l.849-1.773Zm5.874.697c-.035.087-.07.175-.107.261a20.92 20.92 0 0 1-.36.798.688.688 0 0 1 .457.007l.01.004v-1.07Zm.72-1.892-.015.018a.745.745 0 0 1-.407.236c.02.195.027.378 0 .592l.422-.846ZM7.7 31.175c-.268.027-.489.055-.6.07-.006.056-.013.13-.016.194-.005.19 0 .42.004.694.003.111.006.225.011.338.232-.471.459-.956.6-1.296Zm2.12-1.456a2.04 2.04 0 0 1-.415.31c.064.104.099.222.104.341l.132-.277.18-.374Zm-.14-2.374c-.654.079-1.882.153-2.974.173h-1.87l-.281.435c-.09.141-.17.331-.203.414.102.21.189.508.226.788h.007c.364.006.928-.023 1.805-.07 1.243-.06 1.88-.052 2.315-.291.154-.086.266-.215.387-.393.176-.261.354-.605.587-1.056Zm2.136-1.784c-.157.16-.331.3-.52.422a.631.631 0 0 1 .182.281l.337-.703Zm7.205-1.478c-.222.442-.445.883-.667 1.32a.787.787 0 0 1 .61.007c.036.018.145.07.243.2-.032-.165-.067-.33-.105-.493-.088-.351-.137-.633-.08-1.034h-.001ZM11.415 2.546c-.358.319-1.039.879-1.725 1.394C6.903 5.989 5.087 7.59 4.301 8.662c-.28.38-.458.605-.556.852-.15.38-.103.798-.068 1.824.063 1.923.833 6.669 1.493 9.686.262 1.199.483 2.11.654 2.394.25.426.364.71.398.894a.923.923 0 0 1-.184.764l1.27-.01c.863-.014 1.523.003 2.056-.019.424-.017.75-.052 1.034-.187.336-.159.596-.458.921-.955.62-.948 1.373-2.515 2.705-5.103 1.789-3.448 3.6-7.076 4.047-8.015l.582-1.227-.62-.466c-.595-.458-2.45-2.263-4.12-4.027a59.654 59.654 0 0 0-2.498-2.52ZM5.81 24.876v-.001l-.013-.03.013.031Zm-.71-.835.027-.011a.55.55 0 0 0-.028.011Zm19.904-11.777v.01-.01Zm.002-.016v-.034.034ZM9.82 6.587c-.587.424-.81.823-.81 1.9 0 .787.12 1.157.344 1.42.158.186.388.339.77.494.352.144.603.207.838.209.347.002.688-.12 1.285-.525.707-.483.98-.864 1.036-1.238.052-.352-.09-.812-.574-1.54-.412-.619-.853-.95-1.29-1.072-.489-.139-1.016-.05-1.586.342l-.013.01Zm2.015 2.028a6.288 6.288 0 0 0-.306-.52c-.19-.284-.326-.488-.531-.5-.113-.007-.224.058-.352.146-.218.159-.218.34-.218.745 0 .198.02.419.028.504.047.025.133.068.204.097.133.054.222.102.312.103.04 0 .071-.027.12-.054a4.29 4.29 0 0 0 .358-.225c.147-.1.299-.223.385-.296ZM9.12 1.263l-.002.002.002-.002Z"})]}),{width:26,height:62,fill:"none"}),C=v((0,u.jsxs)("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z"}),(0,u.jsx)("path",{d:"M13.5 13.5l4.5 4.5"})]}),{fill:"none",width:22,height:22,strokeWidth:1.25}),M=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})]}),m),P=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z"})]}),m),T=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"9"})]}),m),I=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"16",x2:"19",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"8",x2:"19",y2:"12"})]}),m),L=v((0,u.jsx)("path",{d:"M4.167 10h11.666",strokeWidth:"1.5"}),g),D=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),(0,u.jsx)("path",{d:"M16 7h4"}),(0,u.jsx)("path",{d:"M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3"})]}),m),A=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{clipRule:"evenodd",d:"m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z"}),(0,u.jsx)("path",{d:"m11.25 5.417 3.333 3.333"})]}),g),z=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"7",y2:"20"}),(0,u.jsx)("line",{x1:"14",y1:"20",x2:"21",y2:"20"}),(0,u.jsx)("line",{x1:"6.9",y1:"15",x2:"13.8",y2:"15"}),(0,u.jsx)("line",{x1:"10.2",y1:"6.3",x2:"16",y2:"20"}),(0,u.jsx)("polyline",{points:"5 20 11 4 13 4 20 20"})]}),m),Z=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M12.5 6.667h.01"}),(0,u.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z"}),(0,u.jsx)("path",{d:"m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166"}),(0,u.jsx)("path",{d:"m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667"})]}),g),R=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"}),(0,u.jsx)("path",{d:"M18 13.3l-6.3 -6.3"})]}),m),N=v((0,u.jsx)("path",{strokeWidth:"1.25",d:"M10 4.167v11.666M4.167 10h11.666"}),g),B=v((0,u.jsx)("path",{d:"M5 10h10",strokeWidth:"1.25"}),g),H=v((0,u.jsx)("path",{strokeWidth:"1.25",d:"M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5"}),g),W=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,u.jsx)("path",{clipRule:"evenodd",d:"M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z"})]}),g),F=v((0,u.jsx)("path",{clipRule:"evenodd",d:"M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z",stroke:"currentColor"}),g),U=v((0,u.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667"})}),g),K=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]}),m),V=v((0,u.jsx)("path",{strokeWidth:"1.25",d:"M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10"}),g),Y=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,u.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"17.01"}),(0,u.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),m),G=v((0,u.jsx)("path",{strokeWidth:"1.25",d:"M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5"}),g),X=v((0,u.jsx)("path",{d:"M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5",strokeWidth:"1.25"}),g),q=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0"}),(0,u.jsx)("path",{d:"M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084"})]}),g),$=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"})]}),m),Q=v((0,u.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),J=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416"}),(0,u.jsx)("path",{d:"M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416"})]}),g),ee=v("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}),te=v("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}),ne=v((0,u.jsx)("path",{d:"m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z",strokeWidth:"1.25"}),g),re=v("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}),oe=v("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"),ie=v((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M15 8h.01"}),(0,u.jsx)("path",{d:"M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"}),(0,u.jsx)("path",{d:"M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"}),(0,u.jsx)("path",{d:"M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"}),(0,u.jsx)("path",{d:"M19 16v6"}),(0,u.jsx)("path",{d:"M22 19l-3 3l-3 -3"})]}),m),ae=v("M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z",{width:512,height:512}),le=(v("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}),v("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}),v("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")),ce=(v("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"),v((0,u.jsx)("path",{d:"M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5",strokeWidth:"1.25"}),g)),se=v((0,u.jsx)("path",{d:"M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5",strokeWidth:"1.25"}),g),ue=v("M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z",{mirror:!0}),de=(v((0,u.jsx)("path",{d:"M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834",strokeWidth:"1.5"}),g),v("M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z",{width:24,height:24}),v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{fill:"currentColor",d:"M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z"}),(0,u.jsx)("path",{stroke:"currentColor",fill:"currentColor",d:"M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z"})]}),{width:64,height:64}),v((0,u.jsx)("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}),v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.622-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.767-.622-1.39-1.39-1.39Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M12.5 12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g)),fe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.944 12.5H12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388",fill:"currentColor"}),(0,u.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.621-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.768-.622-1.39-1.39-1.39Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),pe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M8.775 6.458h2.45a2.316 2.316 0 0 1 2.317 2.316v2.452a2.316 2.316 0 0 1-2.316 2.316H8.774a2.316 2.316 0 0 1-2.317-2.316V8.774a2.316 2.316 0 0 1 2.317-2.316Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316ZM12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),he=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",children:[(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"SendToBackIcon",fill:"#fff",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z"})}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M9.167 5.833h1.25v-1.25h-1.25v1.25Zm5 5h1.25v-1.25h-1.25v1.25Zm-3.334 3.334h-1.25v1.25h1.25v-1.25Zm-5-5h-1.25v1.25h1.25v-1.25Zm2.084-3.334v2.06h2.5v-2.06h-2.5Zm0 2.06a4.191 4.191 0 0 0 4.19 4.19v-2.5a1.691 1.691 0 0 1-1.69-1.69h-2.5Zm4.19 4.19h2.06v-2.5h-2.06v2.5Zm.81-1.25v.393h2.5v-.393h-2.5Zm0 .393c0 .933-.758 1.69-1.691 1.69v2.5a4.191 4.191 0 0 0 4.19-4.19h-2.5Zm-1.691 1.69h-.393v2.5h.393v-2.5Zm.857 1.25v-2.058h-2.5v2.059h2.5Zm0-2.058a4.191 4.191 0 0 0-4.19-4.191v2.5c.933 0 1.69.757 1.69 1.69h2.5Zm-4.19-4.191h-2.06v2.5h2.06v-2.5Zm-.81 1.25v-.393h-2.5v.393h2.5Zm0-.393c0-.934.758-1.69 1.692-1.69v-2.5a4.191 4.191 0 0 0-4.192 4.19h2.5Zm1.692-1.69h.392v-2.5h-.392v2.5Z",fill:"currentColor",mask:"url(#SendToBackIcon)"}),(0,u.jsx)("path",{d:"M12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z",stroke:"currentColor",strokeWidth:"1.25"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),ve=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),me=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),ge=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),be=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M16.667 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),ye=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M16.667 3.333v13.334M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),xe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333h13.334M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),we=v((0,u.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M1.667 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M8.333 10h3.334",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M15.417 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z"})]}),g),ke=v((0,u.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M10 18.333v-2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10 11.667V8.333",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10 4.583V1.667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z"})]}),g),_e=v((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,u.jsx)("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),(0,u.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),(0,u.jsx)("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]}),m),Ee=(v("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"),v("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"),v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M15 5 5 15M5 5l10 10"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g)),Se=v("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}),je=(v("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}),v("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}),v("M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",{width:384,height:512}),a().memo((function(e){var t=e.theme;return v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsxs)("g",{fill:h(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,u.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})}))),Oe=a().memo((function(e){var t=e.theme;return v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsxs)("g",{fill:h(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,u.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Ce=v((0,u.jsx)("g",{strokeWidth:1.25,children:(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793"})}),g),Me=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"FillHachureIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:16,height:16,children:(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.25"})}),(0,u.jsx)("g",{mask:"url(#FillHachureIcon)",children:(0,u.jsx)("path",{d:"M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})]}),g),Pe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",children:[(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"FillCrossHatchIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:-1,y:-1,width:22,height:22,children:(0,u.jsx)("path",{d:"M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("g",{mask:"url(#FillCrossHatchIcon)",children:(0,u.jsx)("path",{d:"M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z",fill:"currentColor"})})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),Te=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z",stroke:"currentColor",strokeWidth:"1.25"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),p(p({},g),{},{fill:"currentColor"})),Ie=v((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("path",{d:"M4.167 10h11.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),g),Le=v((0,u.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),g),De=v((0,u.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"3.75",strokeLinecap:"round",strokeLinejoin:"round"}),g),Ae=v((0,u.jsxs)("g",{strokeWidth:"2",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M5 12h2"}),(0,u.jsx)("path",{d:"M17 12h2"}),(0,u.jsx)("path",{d:"M11 12h2"})]}),m),ze=v((0,u.jsxs)("g",{strokeWidth:"2",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M4 12v.01"}),(0,u.jsx)("path",{d:"M8 12v.01"}),(0,u.jsx)("path",{d:"M12 12v.01"}),(0,u.jsx)("path",{d:"M16 12v.01"}),(0,u.jsx)("path",{d:"M20 12v.01"})]}),m),Ze=v((0,u.jsx)("path",{d:"M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814",strokeWidth:"1.25"}),g),Re=v((0,u.jsx)("path",{d:"M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43",strokeWidth:"1.25"}),g),Ne=v((0,u.jsx)("path",{d:"M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42",strokeWidth:"1.25"}),g),Be=v((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{d:"M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10"}),(0,u.jsx)("path",{d:"M13.3333 3.33331V3.34331"}),(0,u.jsx)("path",{d:"M16.6667 3.33331V3.34331"}),(0,u.jsx)("path",{d:"M16.6667 6.66669V6.67669"}),(0,u.jsx)("path",{d:"M16.6667 10V10.01"}),(0,u.jsx)("path",{d:"M3.33334 13.3333V13.3433"}),(0,u.jsx)("path",{d:"M16.6667 13.3333V13.3433"}),(0,u.jsx)("path",{d:"M3.33334 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M6.66666 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M10 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M13.3333 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M16.6667 16.6667V16.6767"})]}),g),He=v((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M4 12v-4a4 4 0 0 1 4 -4h4"}),(0,u.jsx)("line",{x1:"16",y1:"4",x2:"16",y2:"4.01"}),(0,u.jsx)("line",{x1:"20",y1:"4",x2:"20",y2:"4.01"}),(0,u.jsx)("line",{x1:"20",y1:"8",x2:"20",y2:"8.01"}),(0,u.jsx)("line",{x1:"20",y1:"12",x2:"20",y2:"12.01"}),(0,u.jsx)("line",{x1:"4",y1:"16",x2:"4",y2:"16.01"}),(0,u.jsx)("line",{x1:"20",y1:"16",x2:"20",y2:"16.01"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"20.01"}),(0,u.jsx)("line",{x1:"8",y1:"20",x2:"8",y2:"20.01"}),(0,u.jsx)("line",{x1:"12",y1:"20",x2:"12",y2:"20.01"}),(0,u.jsx)("line",{x1:"16",y1:"20",x2:"16",y2:"20.01"}),(0,u.jsx)("line",{x1:"20",y1:"20",x2:"20",y2:"20.01"})]}),m),We=v((0,u.jsx)("path",{d:"M6 10H34",stroke:"currentColor",strokeWidth:2,fill:"none"}),{width:40,height:20}),Fe=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return v((0,u.jsxs)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",stroke:"currentColor",strokeWidth:2,fill:"none",children:[(0,u.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,u.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})})),Ue=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return v((0,u.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,u.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,u.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})})),Ke=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return v((0,u.jsx)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",children:(0,u.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"currentColor",strokeWidth:2,fill:"none"})}),{width:40,height:20})})),Ve=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return v((0,u.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,u.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,u.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})})),Ye=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),Ge=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M5 16.667V3.333L10 15l5-11.667v13.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),Xe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M5.833 3.333v13.334h8.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),qe=v((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("path",{d:"m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),g),$e=v((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334"})})}),g),Qe=v((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M5.833 6.667 2.5 10l3.333 3.333M14.167 6.667 17.5 10l-3.333 3.333M11.667 3.333 8.333 16.667"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),g),Je=v((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,u.jsx)("line",{x1:"4",y1:"16",x2:"16",y2:"16"})]}),m),et=v((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,u.jsx)("line",{x1:"6",y1:"16",x2:"18",y2:"16"})]}),m),tt=v((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"8",y1:"16",x2:"20",y2:"16"})]}),m),nt=a().memo((function(e){return e.theme,v((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"4",x2:"20",y2:"4"}),(0,u.jsx)("rect",{x:"9",y:"8",width:"6",height:"12",rx:"2"})]}),m)})),rt=a().memo((function(e){return e.theme,v((0,u.jsxs)("g",{strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20"}),(0,u.jsx)("rect",{x:"9",y:"4",width:"6",height:"12",rx:"2"})]}),m)})),ot=a().memo((function(e){return e.theme,v((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"9",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("rect",{x:"9",y:"6",width:"6",height:"12",rx:"2"})]}),m)})),it=v((0,u.jsx)("path",{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z",fill:"currentColor"}),{width:640,height:512}),at=(v((0,u.jsx)("path",{d:"M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z"})),v((0,u.jsxs)("g",{strokeWidth:1.25,children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,u.jsx)("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),(0,u.jsx)("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,u.jsx)("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"})]}),m))},4709:function(e,t,n){"use strict";n.d(t,{Z:function(){return ee}});var r={};n.r(r),n.d(r,{ChangeCanvasBackground:function(){return Z},ClearCanvas:function(){return A},Export:function(){return R},Help:function(){return D},LiveCollaborationTrigger:function(){return B},LoadScene:function(){return T},SaveAsImage:function(){return L},SaveToActiveFile:function(){return I},Socials:function(){return N},ToggleTheme:function(){return z}});var o=n(2134),i=n(9127),a=n(785),l=n(8211),c=n(3646),s=n(2739),u=n(4215),d=n(6710),f=n(487),p=n.n(f),h=n(631),v=n.n(h),m=n(2052),g=n.n(m),b=n(4010),y=n.n(b),x=n(1469),w=n.n(x),k=n(9329),_=n.n(k),E=n(4343),S={};S.styleTagTransform=_(),S.setAttributes=y(),S.insert=g().bind(null,"head"),S.domAPI=v(),S.insertStyleElement=w(),p()(E.Z,S),E.Z&&E.Z.locals&&E.Z.locals;var j=n(45),O=n(4739),C=n(6798),M=n(9487),P=n(4512),T=function(){var e=(0,l.QT)().t,t=(0,o.eh)();return t.isActionEnabled(d._d)?(0,P.jsx)(s.Z,{icon:c.Tl,onSelect:function(){return t.executeAction(d._d)},"data-testid":"load-button",shortcut:(0,a.C)("loadScene"),"aria-label":e("buttons.load"),children:e("buttons.load")}):null};T.displayName="LoadScene";var I=function(){var e=(0,l.QT)().t,t=(0,o.eh)();return t.isActionEnabled(d.ns)?(0,P.jsx)(s.Z,{shortcut:(0,a.C)("saveScene"),"data-testid":"save-button",onSelect:function(){return t.executeAction(d.ns)},icon:c.a1,"aria-label":"".concat(e("buttons.save")),children:"".concat(e("buttons.save"))}):null};I.displayName="SaveToActiveFile";var L=function(){var e=(0,o.n9)(),t=(0,l.QT)().t;return(0,P.jsx)(s.Z,{icon:c.J8,"data-testid":"image-export-button",onSelect:function(){return e({openDialog:"imageExport"})},shortcut:(0,a.C)("imageExport"),"aria-label":t("buttons.exportImage"),children:t("buttons.exportImage")})};L.displayName="SaveAsImage";var D=function(){var e=(0,l.QT)().t,t=(0,o.eh)();return(0,P.jsx)(s.Z,{"data-testid":"help-menu-item",icon:c.by,onSelect:function(){return t.executeAction(d.jY)},shortcut:"?","aria-label":e("helpDialog.title"),children:e("helpDialog.title")})};D.displayName="Help";var A=function(){var e=(0,l.QT)().t,t=(0,O.b9)(C.w,M.yE);return(0,o.eh)().isActionEnabled(d.mo)?(0,P.jsx)(s.Z,{icon:c.XH,onSelect:function(){return t("clearCanvas")},"data-testid":"clear-canvas-button","aria-label":e("buttons.clearReset"),children:e("buttons.clearReset")}):null};A.displayName="ClearCanvas";var z=function(){var e=(0,l.QT)().t,t=(0,o.gF)(),n=(0,o.eh)();return n.isActionEnabled(d.Zp)?(0,P.jsx)(s.Z,{onSelect:function(e){return e.preventDefault(),n.executeAction(d.Zp)},icon:"dark"===t.theme?c.NW:c.kL,"data-testid":"toggle-dark-mode",shortcut:(0,a.C)("toggleTheme"),"aria-label":"dark"===t.theme?e("buttons.lightMode"):e("buttons.darkMode"),children:"dark"===t.theme?e("buttons.lightMode"):e("buttons.darkMode")}):null};z.displayName="ToggleTheme";var Z=function(){var e=(0,l.QT)().t,t=(0,o.gF)(),n=(0,o.eh)();return t.viewModeEnabled?null:(0,P.jsxs)("div",{style:{marginTop:"0.5rem"},children:[(0,P.jsx)("div",{style:{fontSize:".75rem",marginBottom:".5rem"},children:e("labels.canvasBackground")}),(0,P.jsx)("div",{style:{padding:"0 0.625rem"},children:n.renderAction("changeViewBackgroundColor")})]})};Z.displayName="ChangeCanvasBackground";var R=function(){var e=(0,l.QT)().t,t=(0,o.n9)();return(0,P.jsx)(s.Z,{icon:c.Hy,onSelect:function(){t({openDialog:"jsonExport"})},"data-testid":"json-export-button","aria-label":e("buttons.export"),children:e("buttons.export")})};R.displayName="Export";var N=function(){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(u.Z,{icon:c.ET,href:"https://github.com/excalidraw/excalidraw","aria-label":"GitHub",children:"GitHub"}),(0,P.jsx)(u.Z,{icon:c.D7,href:"https://discord.gg/UexuTaE","aria-label":"Discord",children:"Discord"}),(0,P.jsx)(u.Z,{icon:c.Zm,href:"https://twitter.com/excalidraw","aria-label":"Twitter",children:"Twitter"})]})};N.displayName="Socials";var B=function(e){var t=e.onSelect,n=e.isCollaborating,r=(0,l.QT)().t;return(0,P.jsx)(s.Z,{"data-testid":"collab-button",icon:c.jn,className:(0,j.Z)({"active-collab":n}),onSelect:t,children:r("labels.liveCollaboration")})};B.displayName="LiveCollaborationTrigger";var H=n(6773),W=n(7169),F=n(2577),U=n(9787),K=n(8888);function V(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}var Y,G,X,q,$,Q=n(6340),J=Object.assign((Y="MainMenu",G=function(e){var t=e.children,n=e.onSelect,r=(0,K.R6)().mainMenuTunnel,a=(0,o.Fy)(),s=(0,o.gF)(),u=(0,o.n9)(),d=a.isMobile?void 0:function(){return u({openMenu:null})};return(0,P.jsx)(r.In,{children:(0,P.jsxs)(i.Z,{open:"canvas"===s.openMenu,children:[(0,P.jsx)(i.Z.Trigger,{onToggle:function(){u({openMenu:"canvas"===s.openMenu?null:"canvas"})},children:c.RY}),(0,P.jsxs)(i.Z.Content,{onClickOutside:d,onSelect:(0,Q.Mj)(n,(function(){u({openMenu:null})})),children:[t,a.isMobile&&s.collaborators.size>0&&(0,P.jsxs)("fieldset",{className:"UserList-Wrapper",children:[(0,P.jsx)("legend",{children:(0,l.t)("labels.collaborators")}),(0,P.jsx)(H.Z,{mobile:!0,collaborators:s.collaborators})]})]})]})})},X=(0,O.cn)(0),q=!1,$=function(e){var t=(0,K.R6)().jotaiScope,n=(0,O.KO)(X,t),r=(0,F.Z)(n,2),o=r[0],i=r[1];return(0,U.useLayoutEffect)((function(){return i((function(e){return e+1})),function(){i((function(e){return e-1}))}}),[i]),e.__fallback||(q=!0),!o&&e.__fallback&&q||o>1&&e.__fallback?null:(0,P.jsx)(G,function(e){for(var t=1;t1&&navigator.userAgent.indexOf("Gecko")>1,E=!(-1!==navigator.userAgent.indexOf("Chrome"))&&-1!==navigator.userAgent.indexOf("Safari"),S=function(){var e,t;return"isBrave"===(null===(e=navigator.brave)||void 0===e||null===(t=e.isBrave)||void 0===t?void 0:t.name)},j="Excalidraw",O=10,C=8,M=5,P=1,T=30,I=Math.PI/12,L={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},D={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1};!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.FOCUS="focus",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",e.HASHCHANGE="hashchange",e.VISIBILITY_CHANGE="visibilitychange",e.SCROLL="scroll",e.EXCALIDRAW_LINK="excalidraw-link",e.MENU_ITEM_SELECT="menu.itemSelect"}(g||(g={}));var A={TEST:"test",DEVELOPMENT:"development"},z={SHAPE_ACTIONS_MENU:"App-menu__left"},Z={Virgil:1,Helvetica:2,Cascadia:3},R={LIGHT:"light",DARK:"dark"},N="Segoe UI Emoji",B=20,H=Z.Virgil,W="left",F="top",U=20,K={excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json",json:"application/json",svg:"image/svg+xml","excalidraw.svg":"image/svg+xml",png:"image/png","excalidraw.png":"image/png",jpg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",binary:"application/octet-stream"},V={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib"},Y=window.EXCALIDRAW_EXPORT_SOURCE||window.location.origin,G=500,X=300,q=500,$=100,Q=.1,J=.1,ee=300,te=b.themeFilter,ne={addLibrary:"addLibrary"},re={addLibrary:"addLibrary"},oe={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,toggleTheme:null,saveAsImage:!0}},ie=640,ae=730,le=1e3,ce=500,se=1229,ue=parseInt(b.rightSidebarWidth),de=2,fe=[1,2,3],pe=10,he=1440,ve=[K.png,K.jpg,K.svg,K.gif,K.webp,K.bmp,K.ico],me=2097152,ge="http://www.w3.org/2000/svg",be={excalidraw:2,excalidrawLibrary:2},ye=5,xe={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},we={LEFT:"left",CENTER:"center",RIGHT:"right"},ke=20,_e=.25,Ee=32,Se={LEGACY:1,PROPORTIONAL_RADIUS:2,ADAPTIVE_RADIUS:3},je="__precedingElement__",Oe={strokeColor:y.black,backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,locked:!1}},434:function(e,t,n){"use strict";n.d(t,{DQ:function(){return E},KG:function(){return D},Pn:function(){return z},Qk:function(){return _},Sf:function(){return L},Tu:function(){return A},Wr:function(){return j},ZY:function(){return O},_c:function(){return T},bv:function(){return Z},cT:function(){return C},g8:function(){return S},gY:function(){return H},lV:function(){return P},tW:function(){return I},vZ:function(){return W},wf:function(){return M}});var r=n(1930),o=n(2577),i=n(7169),a=n(8950),l=n(2975),c=n.n(l),s=n(5605),u=n(8897),d=n(2335),f=n(1047),p=n(6797),h=n(8211),v=n(75),m=n(6340),g=n(1393),b=n(5523),y=n(679);function x(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 w(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"unpublished",n=JSON.parse(e);if(!(0,b.HT)(n))throw new Error("Invalid library");var r=n.libraryItems||n.library;return(0,y.wJ)(r,t)},P=function(){var e=(0,a.Z)(c().mark((function e(t){var n,r=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"unpublished",e.t0=M,e.next=4,k(t);case 4:return e.t1=e.sent,e.t2=n,e.abrupt("return",(0,e.t0)(e.t1,e.t2));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=(0,a.Z)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{t.toBlob((function(t){if(!t)return n(new p.l((0,h.t)("canvasError.canvasTooBig"),"CANVAS_POSSIBLY_TOO_BIG"));e(t)}))}catch(e){n(e)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=(0,a.Z)(c().mark((function e(t){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=window.crypto.subtle,e.next=4,W(t);case 4:return e.t1=e.sent,e.next=7,e.t0.digest.call(e.t0,"SHA-1",e.t1);case 7:return n=e.sent,e.abrupt("return",(0,m.G3)(new Uint8Array(n)));case 11:return e.prev=11,e.t2=e.catch(0),console.error(e.t2),e.abrupt("return",(0,s.x0)(40));case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=(0,a.Z)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=new FileReader;r.onload=function(){var t=r.result;e(t)},r.onerror=function(e){return n(e)},r.readAsDataURL(t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.indexOf(","),r=atob(e.slice(n+1)),o=e.slice(0,n).split(":")[1].split(";")[0],i=new ArrayBuffer(r.length),a=new Uint8Array(i),l=0;l1&&void 0!==arguments[1]?arguments[1]:"";return new File([(new TextEncoder).encode(e)],t,{type:d.LO.svg})},Z=function(){var e=(0,a.Z)(c().mark((function e(t){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dataTransfer.files.item(0),e.next=3,R(t);case 3:if(r=e.sent,!n){e.next=10;break}return e.next=7,H(n);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=null;case 11:return e.t1=e.t0,e.t2=r,e.abrupt("return",{file:e.t1,fileHandle:e.t2});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=(0,a.Z)(c().mark((function e(t){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.kr){e.next=16;break}return e.prev=1,n=t.dataTransfer.items[0],e.next=5,n.getAsFileSystemHandle();case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0=null;case 8:return r=e.t0,e.abrupt("return",r);case 12:return e.prev=12,e.t1=e.catch(1),console.warn(e.t1.name,e.t1.message),e.abrupt("return",null);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),N=function(e){var t=null,n="".concat((0,r.Z)(new Uint8Array(e).slice(0,8)).join(" ")," "),o="255 216 255 ",i="71 73 70 56 57 97 ";return"137 80 78 71 13 10 26 10 "===n?t=d.LO.png:n.startsWith(o)?t=d.LO.jpg:n.startsWith(i)&&(t=d.LO.gif),t},B=function(e,t,n){return new File([e],n||"",{type:t})},H=function(){var e=(0,a.Z)(c().mark((function e(t){var n,r,o,i,a,l,s,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type){e.next=28;break}if(null===(n=t)||void 0===n||null===(r=n.name)||void 0===r||!r.endsWith(".excalidrawlib")){e.next=11;break}return e.t0=B,e.next=5,W(t);case 5:e.t1=e.sent,e.t2=d.LO.excalidrawlib,e.t3=t.name,t=(0,e.t0)(e.t1,e.t2,e.t3),e.next=26;break;case 11:if(null===(o=t)||void 0===o||null===(i=o.name)||void 0===i||!i.endsWith(".excalidraw")){e.next=21;break}return e.t4=B,e.next=15,W(t);case 15:e.t5=e.sent,e.t6=d.LO.excalidraw,e.t7=t.name,t=(0,e.t4)(e.t5,e.t6,e.t7),e.next=26;break;case 21:return e.next=23,W(t);case 23:a=e.sent,(l=N(a))&&(t=B(a,l,t.name));case 26:e.next=34;break;case 28:if(!j(t)){e.next=34;break}return e.next=31,W(t);case 31:s=e.sent,(u=N(s))&&u!==t.type&&(t=B(s,u,t.name));case 34:return e.abrupt("return",t);case 35:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(e){return"arrayBuffer"in e?e.arrayBuffer():new Promise((function(t,n){var r=new FileReader;r.onload=function(e){var r;if(null===(r=e.target)||void 0===r||!r.result)return n(new Error("Couldn't convert blob to ArrayBuffer"));t(e.target.result)},r.readAsArrayBuffer(e)}))}},1393:function(e,t,n){"use strict";n.d(t,{I$:function(){return h},NL:function(){return v},kr:function(){return a}});var r=n(1930),o=n(8950),i=n(2975),a=function(){if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top}catch(e){return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1}(),l=a?n.e(4736).then(n.bind(n,2254)):n.e(4736).then(n.bind(n,3499));function c(){return c=(0,o.Z)(i.mark((function e(){var t,n=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l;case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}a?n.e(4736).then(n.bind(n,6474)):n.e(4736).then(n.bind(n,9521));var s=a?n.e(4736).then(n.bind(n,9475)):n.e(4736).then(n.bind(n,6281));function u(){return u=(0,o.Z)(i.mark((function e(){var t,n=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s;case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}var d=n(2335),f=n(6797),p=n(6340),h=function(e){var t,n,o,i=null===(t=e.extensions)||void 0===t?void 0:t.reduce((function(e,t){return e.push(d.LO[t]),e}),[]),a=null===(n=e.extensions)||void 0===n?void 0:n.reduce((function(e,t){return"jpg"===t?e.concat(".jpg",".jpeg"):e.concat(".".concat(t))}),[]);return function(){return c.apply(this,arguments)}({description:e.description,extensions:a,mimeTypes:i,multiple:null!==(o=e.multiple)&&void 0!==o&&o,legacySetup:function(t,n,o){var i=(0,p.Ds)(n,500),a=function(){l(),document.addEventListener(d.Ks.KEYUP,i),document.addEventListener(d.Ks.POINTER_UP,i),i()},l=function(){var n;if(null!==(n=o.files)&&void 0!==n&&n.length){var i=e.multiple?(0,r.Z)(o.files):o.files[0];t(i)}};requestAnimationFrame((function(){window.addEventListener(d.Ks.FOCUS,a)}));var c=window.setInterval((function(){l()}),500);return function(e){clearInterval(c),i.cancel(),window.removeEventListener(d.Ks.FOCUS,a),document.removeEventListener(d.Ks.KEYUP,i),document.removeEventListener(d.Ks.POINTER_UP,i),e&&(console.warn("Opening the file was canceled (legacy-fs)."),e(new f._))}}})},v=function(e,t){return function(){return u.apply(this,arguments)}(e,{fileName:"".concat(t.name,".").concat(t.extension),description:t.description,extensions:[".".concat(t.extension)]},t.fileHandle)}},673:function(e,t,n){"use strict";n.r(t),n.d(t,{decodePngMetadata:function(){return _},decodeSvgMetadata:function(){return S},encodePngMetadata:function(){return k},encodeSvgMetadata:function(){return E},getTEXtChunk:function(){return w}});var r=n(8950),o=n(2975),i=n.n(o),a=n(2983),l=n.n(a),c=n(1194),s=n(3434),u=n.n(s),d=n(2744),f=n(2335),p=n(434),h=function(e){return new Promise((function(t,n){var r="string"==typeof e?new Blob([(new TextEncoder).encode(e)]):new Blob([e instanceof Uint8Array?e:new Uint8Array(e)]),o=new FileReader;o.onload=function(e){if(!e.target||"string"!=typeof e.target.result)return n(new Error("couldn't convert to byte string"));t(e.target.result)},o.readAsBinaryString(r)}))},v=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,o=e.length;r1&&void 0!==n[1]&&n[1])){e.next=5;break}e.t0=window.btoa(t),e.next=10;break;case 5:return e.t1=window,e.next=8,h(t);case 8:e.t2=e.sent,e.t0=e.t1.btoa.call(e.t1,e.t2);case 10:return e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",n?window.atob(t):m(window.atob(t)));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.text,!1===t.compress){e.next=11;break}return e.prev=2,e.next=5,h((0,d.deflate)(n));case 5:r=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.error("encode: cannot deflate",e.t0);case 11:if(e.t1=!!r,e.t2=r,e.t2){e.next=17;break}return e.next=16,h(n);case 16:e.t2=e.sent;case 17:return e.t3=e.t2,e.abrupt("return",{version:"1",encoding:"bstring",compressed:e.t1,encoded:e.t3});case 19:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=(0,r.Z)(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.encoding,e.next="bstring"===e.t0?3:12;break;case 3:if(!t.compressed){e.next=7;break}e.t1=t.encoded,e.next=10;break;case 7:return e.next=9,m(t.encoded);case 9:e.t1=e.sent;case 10:return n=e.t1,e.abrupt("break",13);case 12:throw new Error('decode: unknown encoding "'.concat(t.encoding,'"'));case 13:if(!t.compressed){e.next=15;break}return e.abrupt("return",(0,d.inflate)(new Uint8Array(v(n)),{to:"string"}));case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=l(),e.t1=Uint8Array,e.next=4,(0,p.vZ)(t);case 4:if(e.t2=e.sent,e.t3=new e.t1(e.t2),n=(0,e.t0)(e.t3),!(r=n.find((function(e){return"tEXt"===e.name})))){e.next=10;break}return e.abrupt("return",c.decode(r.data));case 10:return e.abrupt("return",null);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.blob,r=t.metadata,e.t0=l(),e.t1=Uint8Array,e.next=5,(0,p.vZ)(n);case 5:return e.t2=e.sent,e.t3=new e.t1(e.t2),o=(0,e.t0)(e.t3),e.t4=c,e.t5=f.LO.excalidraw,e.t6=JSON,e.next=13,y({text:r,compress:!0});case 13:return e.t7=e.sent,e.t8=e.t6.stringify.call(e.t6,e.t7),a=e.t4.encode.call(e.t4,e.t5,e.t8),o.splice(-1,0,a),e.abrupt("return",new Blob([u()(o)],{type:f.LO.png}));case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(t);case 2:if((null==(n=e.sent)?void 0:n.keyword)!==f.LO.excalidraw){e.next=19;break}if(e.prev=4,"encoded"in(r=JSON.parse(n.text))){e.next=10;break}if(!("type"in r)||r.type!==f.r8.excalidraw){e.next=9;break}return e.abrupt("return",n.text);case 9:throw new Error("FAILED");case 10:return e.next=12,x(r);case 12:return e.abrupt("return",e.sent);case 15:throw e.prev=15,e.t0=e.catch(4),console.error(e.t0),new Error("FAILED");case 19:throw new Error("INVALID");case 20:case"end":return e.stop()}}),e,null,[[4,15]])})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.text,e.t0=g,e.t1=JSON,e.next=5,y({text:n});case 5:return e.t2=e.sent,e.t3=e.t1.stringify.call(e.t1,e.t2),e.next=9,(0,e.t0)(e.t3,!0);case 9:return r=e.sent,o="",o+="\x3c!-- payload-type:".concat(f.LO.excalidraw," --\x3e"),o+="\x3c!-- payload-version:2 --\x3e",o+="\x3c!-- payload-start --\x3e",o+=r,o+="\x3c!-- payload-end --\x3e",e.abrupt("return",o);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o,a,l,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.svg).includes("payload-type:".concat(f.LO.excalidraw))){e.next=26;break}if(r=n.match(/\s*(.+?)\s*/)){e.next=5;break}throw new Error("INVALID");case 5:return o=n.match(//),a=(null==o?void 0:o[1])||"1",l="1"!==a,e.prev=8,e.next=11,b(r[1],l);case 11:if(c=e.sent,"encoded"in(s=JSON.parse(c))){e.next=17;break}if(!("type"in s)||s.type!==f.r8.excalidraw){e.next=16;break}return e.abrupt("return",c);case 16:throw new Error("FAILED");case 17:return e.next=19,x(s);case 19:return e.abrupt("return",e.sent);case 22:throw e.prev=22,e.t0=e.catch(8),console.error(e.t0),new Error("FAILED");case 26:throw new Error("INVALID");case 27:case"end":return e.stop()}}),e,null,[[8,22]])})));return function(t){return e.apply(this,arguments)}}()},9485:function(e,t,n){"use strict";n.d(t,{Um:function(){return f.Um},cT:function(){return u.cT},n8:function(){return f.n8},p1:function(){return p}});var r=n(8950),o=n(2975),i=n.n(o),a=n(6665),l=n(2335),c=n(8211),s=n(4162),u=n(434),d=n(1393),f=n(5523),p=function(){var e=(0,r.Z)(i().mark((function e(t,r,o,p,h){var v,m,g,b,y,x,w,k,_,E,S;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=h.exportBackground,m=h.exportPadding,g=void 0===m?l.qy:m,b=h.viewBackgroundColor,y=h.name,x=h.fileHandle,w=void 0===x?null:x,0!==r.length){e.next=3;break}throw new Error((0,c.t)("alerts.cannotExportEmptyCanvas"));case 3:if("svg"!==t&&"clipboard-svg"!==t){e.next=17;break}return e.next=6,(0,s.$D)(r,{exportBackground:v,exportWithDarkMode:o.exportWithDarkMode,viewBackgroundColor:b,exportPadding:g,exportScale:o.exportScale,exportEmbedScene:o.exportEmbedScene&&"svg"===t},p);case 6:if(k=e.sent,"svg"!==t){e.next=13;break}return e.next=10,(0,d.NL)(new Blob([k.outerHTML],{type:l.LO.svg}),{description:"Export to SVG",name:y,extension:o.exportEmbedScene?"excalidraw.svg":"svg",fileHandle:w});case 10:return e.abrupt("return",e.sent);case 13:if("clipboard-svg"!==t){e.next=17;break}return e.next=16,(0,a.dd)(k.outerHTML);case 16:return e.abrupt("return");case 17:return e.next=19,(0,s.NL)(r,o,p,{exportBackground:v,viewBackgroundColor:b,exportPadding:g});case 19:if((_=e.sent).style.display="none",document.body.appendChild(_),"png"!==t){e.next=38;break}return e.next=25,(0,u._c)(_);case 25:if(E=e.sent,_.remove(),!o.exportEmbedScene){e.next=33;break}return e.next=30,Promise.resolve().then(n.bind(n,673));case 30:return e.next=32,e.sent.encodePngMetadata({blob:E,metadata:(0,f.I_)(r,o,p,"local")});case 32:E=e.sent;case 33:return e.next=35,(0,d.NL)(E,{description:"Export to PNG",name:y,extension:"png",fileHandle:w});case 35:return e.abrupt("return",e.sent);case 38:if("clipboard"!==t){e.next=60;break}return e.prev=39,S=(0,u._c)(_),e.next=43,(0,a.uR)(S);case 43:e.next=55;break;case 45:if(e.prev=45,e.t0=e.catch(39),console.warn(e.t0),"CANVAS_POSSIBLY_TOO_BIG"!==e.t0.name){e.next=50;break}throw e.t0;case 50:if(!l.vU||"TypeError"!==e.t0.name){e.next=54;break}throw new Error("".concat((0,c.t)("alerts.couldNotCopyToClipboard"),"\n\n").concat((0,c.t)("hints.firefox_clipboard_write")));case 54:throw new Error((0,c.t)("alerts.couldNotCopyToClipboard"));case 55:return e.prev=55,_.remove(),e.finish(55);case 58:e.next=62;break;case 60:throw _.remove(),new Error("Unsupported export type");case 62:case"end":return e.stop()}}),e,null,[[39,45,55,58]])})));return function(t,n,r,o,i){return e.apply(this,arguments)}}()},5523:function(e,t,n){"use strict";n.d(t,{HT:function(){return y},I_:function(){return v},NI:function(){return x},Um:function(){return m},dS:function(){return b},n8:function(){return g},t1:function(){return w}});var r=n(6655),o=n(8950),i=n(2975),a=n.n(i),l=n(1393),c=n(8897),s=n(2335),u=n(1047),d=n(434);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)p.e_.set(_,{status:"loading",libraryItems:n.lastLibraryItems,isInitialized:n.isInitialized});else{n.isInitialized=!0,p.e_.set(_,{status:"loaded",libraryItems:n.lastLibraryItems,isInitialized:n.isInitialized});try{var e,t;null===(e=(t=n.app.props).onLibraryChange)||void 0===e||e.call(t,E(n.lastLibraryItems))}catch(e){console.error(e)}}},this.resetLibrary=function(){return n.setLibrary([])},this.getLatestLibrary=function(){return new Promise(function(){var e=(0,o.Z)(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getLastUpdateTask()||n.lastLibraryItems;case 3:r=e.sent,n.updateQueue.length>0?t(n.getLatestLibrary()):t(E(r)),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",t(n.lastLibraryItems));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())},this.updateLibrary=function(){var e=(0,o.Z)(s().mark((function e(t){var r,i,a,l,c,f,p,h,g;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryItems,i=t.prompt,a=void 0!==i&&i,l=t.merge,c=void 0!==l&&l,f=t.openLibraryMenu,p=void 0!==f&&f,h=t.defaultStatus,g=void 0===h?"unpublished":h,p&&n.app.setState({openSidebar:"library"}),e.abrupt("return",n.setLibrary((function(){return new Promise(function(){var e=(0,o.Z)(s().mark((function e(t,o){var i,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,"function"!=typeof r||r instanceof Blob?r:r(n.lastLibraryItems);case 3:if(!((i=e.sent)instanceof Blob)){e.next=10;break}return e.next=7,(0,u.lV)(i,g);case 7:l=e.sent,e.next=11;break;case 10:l=(0,d.wJ)(i,g);case 11:!a||window.confirm((0,m.t)("alerts.confirmAddLibrary",{numShapes:l.length}))?t(c?j(n.lastLibraryItems,l):l):o(new v._),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),o(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}())})).finally((function(){n.app.focusContainer()})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.setLibrary=function(e){var t=new Promise(function(){var t=(0,o.Z)(s().mark((function t(r,o){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.getLastUpdateTask();case 3:return"function"==typeof e&&(e=e(n.lastLibraryItems)),t.t0=E,t.next=7,e;case 7:t.t1=t.sent,n.lastLibraryItems=(0,t.t0)(t.t1),r(n.lastLibraryItems),t.next=15;break;case 12:t.prev=12,t.t2=t.catch(0),o(t.t2);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e,n){return t.apply(this,arguments)}}()).catch((function(e){if("AbortError"===e.name)return console.warn("Library update aborted by user"),n.lastLibraryItems;throw e})).finally((function(){n.updateQueue=n.updateQueue.filter((function(e){return e!==t})),n.notifyListeners()}));return n.updateQueue.push(t),n.notifyListeners(),t},this.app=t}));t.ZP=O;var C=function(e){var t,n=Math.ceil(Math.sqrt(e.length)),r=[],o=0,i=0,a=0,c=0,s=0,u=0,d=0,f=w(e);try{var p=function(){var f=t.value;s&&s%n==0&&(i+=a+50,o=0,u=0,d++),0===u&&(a=function(t){return e.slice(t*n,t*n+n).reduce((function(e,t){var n=(0,h.v2)(t.elements).height;return Math.max(e,n)}),0)}(d)),c=function(t){var r,o=0,i=0,a=0,l=w(e);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(o%n==0&&(i=0),i===t){var s=(0,h.v2)(c.elements).width;a=Math.max(a,s)}o++,i++}}catch(e){l.e(e)}finally{l.f()}return a}(u);var p=(0,h.v2)(f.elements),v=p.minX,m=p.minY,g=p.width,b=p.height,y=(c-g)/2,k=(a-b)/2;r.push.apply(r,(0,l.Z)(f.elements.map((function(e){return x(x({},e),{},{x:e.x+o+y-v,y:e.y+i+k-m})})))),o+=c+50,s++,u++};for(f.s();!(t=f.n()).done;)p()}catch(e){f.e(e)}finally{f.f()}return r},M=function(){var e=new URLSearchParams(window.location.hash.slice(1)).get(b.ah.addLibrary)||new URLSearchParams(window.location.search).get(b.UO.addLibrary),t=e?new URLSearchParams(window.location.hash.slice(1)).get("token"):null;return e?{libraryUrl:e,idToken:t}:null},P=function(e){var t=e.excalidrawAPI,n=e.getInitialLibraryItems,r=(0,g.useRef)(n);(0,g.useEffect)((function(){if(t){var e=function(){var e=(0,o.Z)(s().mark((function e(n){var r,i,a,l,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.libraryUrl,i=n.idToken,a=new Promise(function(){var e=(0,o.Z)(s().mark((function e(t,n){var o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(decodeURIComponent(r));case 3:return o=e.sent,e.next=6,o.blob();case 6:i=e.sent,t(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}()),l=i!==t.id,e.next=5,l&&document.hidden?new Promise((function(e){window.addEventListener("focus",(function(){return e()}),{once:!0})})):null;case 5:return e.prev=5,e.next=8,t.updateLibrary({libraryItems:a,prompt:l,merge:!0,defaultStatus:"published",openLibraryMenu:!0});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),e.t0;case 13:return e.prev=13,window.location.hash.includes(b.ah.addLibrary)?((c=new URLSearchParams(window.location.hash.slice(1))).delete(b.ah.addLibrary),window.history.replaceState({},b.iC,"#".concat(c.toString()))):window.location.search.includes(b.UO.addLibrary)&&((u=new URLSearchParams(window.location.search)).delete(b.UO.addLibrary),window.history.replaceState({},b.iC,"?".concat(u.toString()))),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(t){return e.apply(this,arguments)}}(),n=function(t){t.preventDefault();var n=M();n&&(t.stopImmediatePropagation(),window.history.replaceState({},"",t.oldURL),e(n))};r.current&&t.updateLibrary({libraryItems:r.current()});var i=M();return i&&e(i),window.addEventListener(b.Ks.HASHCHANGE,n),function(){window.removeEventListener(b.Ks.HASHCHANGE,n)}}}),[t])}},679:function(e,t,n){"use strict";n.d(t,{ET:function(){return E},lY:function(){return O},nu:function(){return C},wJ:function(){return P}});var r=n(2577),o=n(7169),i=n(1047),a=n(1974),l=n(6954),c=n(2335),s=n(8897),u=n(6938),d=n(1935),f=n(6340),p=n(5284),h=n(5710);function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"text":var a=e.fontSize,l=e.fontFamily;if("font"in e){var s=e.font.split(" "),d=(0,r.Z)(s,2),p=d[0],v=d[1];a=parseFloat(p),l=x(v)}var m=null!==(t=e.text)&&void 0!==t?t:"",g=e.lineHeight||(e.height?(0,h.$2)(e):(0,h.PT)(e.fontFamily)),y=(0,h.R8)(e.text,(0,f.mO)(e),g);return e=w(e,{fontSize:a,fontFamily:l,text:m,textAlign:e.textAlign||c.Hg,verticalAlign:e.verticalAlign||c.hs,containerId:null!==(n=e.containerId)&&void 0!==n?n:null,originalText:e.originalText||m,lineHeight:g,baseline:y}),o&&(e=b(b({},e),(0,i.JZ)(e))),e;case"freedraw":return w(e,{points:e.points,lastCommittedPoint:null,simulatePressure:e.simulatePressure,pressures:e.pressures});case"image":return w(e,{status:e.status||"pending",fileId:e.fileId,scale:e.scale||[1,1]});case"line":case"draw":case"arrow":var k=e,_=k.startArrowhead,E=void 0===_?null:_,S=k.endArrowhead,j=void 0===S?"arrow"===e.type?"arrow":null:S,O=e.x,C=e.y,M=!Array.isArray(e.points)||e.points.length<2?[[0,0],[e.width,e.height]]:e.points;if(0!==M[0][0]||0!==M[0][1]){var P=u._.getNormalizedPoints(e);M=P.points,O=P.x,C=P.y}return w(e,{type:"draw"===e.type?"line":e.type,startBinding:e.startBinding,endBinding:e.endBinding,lastCommittedPoint:null,startArrowhead:E,endArrowhead:j,points:M,x:O,y:C});case"ellipse":case"rectangle":case"diamond":return w(e,{})}}(t,null==n?void 0:n.refreshDimensions);if(a){var p=null==s?void 0:s.get(t.id);p&&p.version>a.version&&(a=(0,d.ZP)(a,p.version)),o.has(a.id)&&(a=b(b({},a),{},{id:(0,l.kb)()})),o.add(a.id),e.push(a)}}return e}),[]);if(null==n||!n.repairBindings)return p;var m,g=(0,f.xn)(p),y=v(p);try{for(y.s();!(m=y.n()).done;){var E=m.value;(0,a.iB)(E)&&E.containerId?_(E,g):E.boundElements&&k(E,g)}}catch(e){y.e(e)}finally{y.f()}return p},S=function(e,t,n){var r=t[e];return void 0!==r?r:n[e]},j={isLibraryOpen:function(e,t){return["openSidebar","isLibraryOpen"in e?e.isLibraryOpen?"library":null:S("openSidebar",e,t)]},isLibraryMenuDocked:function(e,t){var n;return["isSidebarDocked",null!==(n=e.isLibraryMenuDocked)&&void 0!==n?n:S("isSidebarDocked",e,t)]}},O=function(e,t){var n,o,i,a;e=e||{};for(var l=(0,s.im)(),c={},u=0,d=Object.keys(j);u1?arguments[1]:void 0,n=[],r=v(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(Array.isArray(o)){var i=M({status:t,elements:o,id:(0,l.kb)(),created:Date.now()});i&&n.push(i)}else{var a=o,c=M(b(b({},a),{},{id:a.id||(0,l.kb)(),status:a.status||t,created:a.created||Date.now()}));c&&n.push(c)}}}catch(e){r.e(e)}finally{r.f()}return n}},4929:function(e,t,n){"use strict";n.d(t,{rj:function(){return B},nW:function(){return W},nz:function(){return V},sw:function(){return G},lV:function(){return J},q$:function(){return K},wq:function(){return X},$u:function(){return U},Pp:function(){return $}});var r=n(7169),o=n(2577),i=n(6340),a=n(1935),l=n(7901),c=n(1319),s=n(3646),u=n(8211),d=n(9787),f=n(45),p=n(6066),h=n(3063),v=n(6552),m=n(2335),g=n(1894),b=n(75),y=n(2325),x=n(1047),w=n(487),k=n.n(w),_=n(631),E=n.n(_),S=n(2052),j=n.n(S),O=n(4010),C=n.n(O),M=n(1469),P=n.n(M),T=n(9329),I=n.n(T),L=n(5260),D={};D.styleTagTransform=I(),D.setAttributes=C(),D.insert=j().bind(null,"head"),D.domAPI=E(),D.insertStyleElement=P(),k()(L.Z,D),L.Z&&L.Z.locals&&L.Z.locals;var A=n(7047),z=n(2134),Z=n(4512);function R(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 N(e){for(var t=1;t'));var H=!1,W=function(e){var t=e.element,n=e.setAppState,r=e.onLinkOpen,l=(0,z.gF)(),h=t.link||"",v=(0,d.useState)(h),g=(0,o.Z)(v,2),b=g[0],y=g[1],x=(0,d.useRef)(null),w="editor"===l.showHyperlinkPopup||!h,k=(0,d.useCallback)((function(){if(x.current){var e=U(x.current.value);!t.link&&e&&(0,A.L)("hyperlink","create"),(0,a.DR)(t,{link:e}),n({showHyperlinkPopup:"info"})}}),[t,n]);(0,d.useLayoutEffect)((function(){return function(){k()}}),[k]),(0,d.useEffect)((function(){var e=null,r=function(r){w||(e&&clearTimeout(e),ee(t,l,[r.clientX,r.clientY])&&(e=window.setTimeout((function(){n({showHyperlinkPopup:!1})}),500)))};return window.addEventListener(m.Ks.POINTER_MOVE,r,!1),function(){window.removeEventListener(m.Ks.POINTER_MOVE,r,!1),e&&clearTimeout(e)}}),[l,t,w,n]);var _=(0,d.useCallback)((function(){(0,A.L)("hyperlink","delete"),(0,a.DR)(t,{link:null}),w&&(x.current.value=""),n({showHyperlinkPopup:!1})}),[n,t,w]),E=F(t,l),S=E.x,j=E.y;return l.draggingElement||l.resizingElement||l.isRotating||l.openMenu?null:(0,Z.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(j,"px"),left:"".concat(S,"px"),width:320,padding:5},children:[w?(0,Z.jsx)("input",{className:(0,f.Z)("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:x,value:b,onChange:function(e){return y(e.target.value)},autoFocus:!0,onKeyDown:function(e){e.stopPropagation(),e[p.tW.CTRL_OR_CMD]&&e.key===p.tW.K&&e.preventDefault(),e.key!==p.tW.ENTER&&e.key!==p.tW.ESCAPE||k()}}):(0,Z.jsx)("a",{href:t.link||"",className:(0,f.Z)("excalidraw-hyperlinkContainer-link",{"d-none":w}),target:K(t.link)?"_self":"_blank",onClick:function(e){if(t.link&&r){var n=(0,i.ag)(m.Ks.EXCALIDRAW_LINK,e.nativeEvent);r(t,n),n.defaultPrevented&&e.preventDefault()}},rel:"noopener noreferrer",children:t.link}),(0,Z.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!w&&(0,Z.jsx)(c.V,{type:"button",title:(0,u.t)("buttons.edit"),"aria-label":(0,u.t)("buttons.edit"),label:(0,u.t)("buttons.edit"),onClick:function(){(0,A.L)("hyperlink","edit","popup-ui"),n({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:s.Pm}),h&&(0,Z.jsx)(c.V,{type:"button",title:(0,u.t)("buttons.remove"),"aria-label":(0,u.t)("buttons.remove"),label:(0,u.t)("buttons.remove"),onClick:_,className:"excalidraw-hyperlinkContainer--remove",icon:s.XH})]})]})},F=function(e,t){var n=(0,x.qf)(e),r=(0,o.Z)(n,2),a=r[0],l=r[1],c=(0,i._i)({sceneX:a+e.width/2,sceneY:l},t),s=c.x,u=c.y;return{x:s-t.offsetLeft-160,y:u-t.offsetTop-85}},U=function(e){return(e=e.trim())&&(e.includes("://")||/^[[\\/]/.test(e)||(e="https://".concat(e))),e},K=function(e){return!!(null!=e&&e.includes(location.origin)||null!=e&&e.startsWith("/"))},V=(0,l.z)({name:"hyperlink",perform:function(e,t){return"editor"!==t.showHyperlinkPopup&&{elements:e,appState:N(N({},t),{},{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0}},trackEvent:{category:"hyperlink",action:"click"},keyTest:function(e){return e[p.tW.CTRL_OR_CMD]&&e.key===p.tW.K},contextItemLabel:function(e,t){return Y(e,t)},predicate:function(e,t){return 1===(0,b.eD)(e,t).length},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,b.eD)(t,n);return(0,Z.jsx)(c.V,{type:"button",icon:s.xP,"aria-label":(0,u.t)(Y(t,n)),title:"".concat((0,u.t)("labels.link.label")," - ").concat((0,i.uY)("CtrlOrCmd+K")),onClick:function(){return r(null)},selected:1===o.length&&!!o[0].link})}}),Y=function(e,t){return(0,b.eD)(e,t)[0].link?"labels.link.edit":"labels.link.create"},G=function(e,t,n){var r=(0,o.Z)(e,4),i=r[0],a=r[1],l=r[2],c=r[3],s=h.Dn,u=s/n.zoom.value,d=s/n.zoom.value,f=s/n.zoom.value,p=(i+l)/2,m=(a+c)/2,g=(s-8)/(2*n.zoom.value),b=4/n.zoom.value,y=l+b-g,x=a-b-f+g,w=(0,v.U1)(y+u/2,x+d/2,p,m,t),k=(0,o.Z)(w,2);return[k[0]-u/2,k[1]-d/2,u,d]},X=function(e,t,n,r){var i=(0,o.Z)(n,2),a=i[0],l=i[1];if(!e.link||t.selectedElementIds[e.id])return!1;var c=4/t.zoom.value;if(!r&&t.viewModeEnabled&&(0,y.pX)(e,[a,l],c))return!0;var s=(0,x.qf)(e),u=(0,o.Z)(s,4),d=u[0],f=u[1],p=u[2],h=u[3],v=G([d,f,p,h],e.angle,t),m=(0,o.Z)(v,4),g=m[0],b=m[1],w=m[2],k=m[3];return a>g-c&&ab-c&&l=h&&s<=m&&u>=v-85&&u<=v)return!1;var g=F(e,t),b=g.x,w=g.y;return!(a>=b-d&&a<=b+320+10+d&&l>=w-d&&l<=w+d+10+42)}},8290:function(e,t,n){"use strict";n.d(t,{$q:function(){return F},DK:function(){return S},H:function(){return j},HG:function(){return b},N1:function(){return m},R:function(){return k},Ww:function(){return P},Y9:function(){return C},ZB:function(){return A},cz:function(){return v},ek:function(){return H},el:function(){return x}});var r=n(7169),o=n(2577),i=n(75),a=n(1974),l=n(2325),c=n(1935),s=n(1564),u=n(6938),d=n(6340),f=n(6066),p=n(5710);function h(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}var v=function(e){return!e[f.tW.CTRL_OR_CMD]},m=function(e){return e.isBindingEnabled},g=function(e,t){var n=[];return t.forEach((function(t){var r=e.getNonDeletedElement(t);null!=r&&n.push(r)})),n},b=function(e,t,n){var r=new Set,o=new Set;y(e,t,n,"start",r,o),y(e,n,t,"end",r,o);var i=Array.from(o).filter((function(e){return!r.has(e)}));g(s.Z.getScene(e),i).forEach((function(t){var n;(0,c.DR)(t,{boundElements:null===(n=t.boundElements)||void 0===n?void 0:n.filter((function(t){return"arrow"!==t.type||t.id!==e.id}))})}))},y=function(e,t,n,r,o,i){if("keep"!==t)if(null!=t)null!=n&&("keep"===n?E(e,t,r):"start"!==r&&n.id===t.id)||(_(e,t,r),o.add(t.id));else{var a=O(e,r);null!=a&&i.add(a)}},x=function(e){e.forEach((function(e){(0,a.Mn)(e)?b(e,Z(e,"start"),Z(e,"end")):(0,a.f0)(e)&&w(e)}))},w=function(e){N(e).forEach((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return b(r,"end"===i?"keep":e,"start"===i?"keep":e)}))},k=function(e,t,n,r){null!=t.startBoundElement&&_(e,t.startBoundElement,"start");var o=C(r,n);null==o||E(e,o,"end")||_(e,o,"end")},_=function(e,t,n){(0,c.DR)(e,(0,r.Z)({},"start"===n?"startBinding":"endBinding",function(e){for(var t=1;t2)){var i=s.Z.getScene(e).getElement(n.elementId);if(null!=i){var a,c="start"===t?-1:1,d=-1===c?0:e.points.length-1,f=d-c,p=u._.getPointAtIndexGlobalCoordinates(e,f),h=(0,l.j_)(i,n.focus,p);if(0===n.gap)a=h;else{var v=(0,l.MZ)(i,p,h,n.gap);a=0===v.length?h:v[0]}u._.movePoints(e,[{index:d,point:u._.pointFromAbsoluteCoords(e,a)}],(0,r.Z)({},"start"===t?"startBinding":"endBinding",n))}}},D=function(e,t,n){if(null==t||null==n)return t;var r=t.gap,o=t.focus,i=t.elementId,a=n.width,c=n.height,s=e.width,u=e.height;return{elementId:i,gap:Math.max(1,Math.min((0,l.fb)(e,a,c),r*(a0&&(t.forEach((function(e){l&&!n.has(e.id)&&o.add(e.id)})),i.add(n.get(e.id))),(0,a.Mn)(e)){if(null!=e.startBinding){var r=e.startBinding.elementId;l&&!n.has(r)&&i.add(r)}if(null!=e.endBinding){var c=e.endBinding.elementId;l&&!n.has(c)&&i.add(c)}null==e.startBinding&&null==e.endBinding||o.add(n.get(e.id))}})),e.filter((function(e){var t=e.id;return o.has(t)})).forEach((function(e){var t=e.startBinding,r=e.endBinding;(0,c.DR)(e,{startBinding:W(t,n),endBinding:W(r,n)})})),e.filter((function(e){var t=e.id;return i.has(t)})).forEach((function(e){var t=e.boundElements;null!=t&&t.length>0&&(0,c.DR)(e,{boundElements:t.map((function(e){return n.has(e.id)?{id:n.get(e.id),type:e.type}:e}))})}))},W=function(e,t){var n;if(null==e)return null;var r=e.elementId;return{focus:e.focus,gap:e.gap,elementId:null!==(n=t.get(r))&&void 0!==n?n:r}},F=function(e,t){var n=new Set(t.map((function(e){return e.id}))),r=new Set;t.forEach((function(e){var t;(0,a.f0)(e)?null===(t=e.boundElements)||void 0===t||t.forEach((function(e){n.has(e.id)||r.add(e.id)})):(0,a.Mn)(e)&&(e.startBinding&&r.add(e.startBinding.elementId),e.endBinding&&r.add(e.endBinding.elementId))})),e.filter((function(e){var t=e.id;return r.has(t)})).forEach((function(e){(0,a.f0)(e)?(0,c.DR)(e,{boundElements:K(e.boundElements,n)}):(0,a.Mn)(e)&&(0,c.DR)(e,{startBinding:U(e.startBinding,n),endBinding:U(e.endBinding,n)})}))},U=function(e,t){return null==e||t.has(e.elementId)?null:e},K=function(e,t){return e?e.filter((function(e){return!t.has(e.id)})):null}},8925:function(e,t,n){"use strict";n.d(t,{CM:function(){return m},IX:function(){return y},KP:function(){return S},Pi:function(){return E},UC:function(){return v},Ut:function(){return O},Y5:function(){return k},os:function(){return C},qf:function(){return h},v2:function(){return M},wC:function(){return j}});var r=n(2577),o=n(1930),i=n(6552),a=n(8234),l=n(3063),c=n(1974),s=n(5001),u=n(5710),d=n(6938);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1];if((0,c.F9)(e))return w(e);if((0,c.bt)(e))return d._.getElementAbsoluteCoords(e,t);if((0,c.iB)(e)){var n=(0,u.tl)(e);if((0,c.Yv)(n)){var r=d._.getBoundTextElementPosition(n,e);return[r.x,r.y,r.x+e.width,r.y+e.height,r.x+e.width/2,r.y+e.height/2]}}return[e.x,e.y,e.x+e.width,e.y+e.height,e.x+e.width/2,e.y+e.height/2]},v=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]},m=function(e){var t,n=f(e.sets);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("path"===r.type)return r.ops}}catch(e){n.e(e)}finally{n.f()}return e.sets[0].ops},g=function(e,t,n,r,o){var i=1-e;return Math.pow(i,3)*t+3*Math.pow(i,2)*e*n+3*i*Math.pow(e,2)*r+Math.pow(e,3)*o},b=function(e,t,n,r){var o=t-e,i=n-t,a=3*o-6*i+3*(r-n),l=6*i-6*o,c=3*o,s=l*l-4*a*c;if(!(s>=0))return!1;var u=null,d=null,f=1/0,p=1/0;return 0===a?f=p=-c/l:(f=(-l+Math.sqrt(s))/(2*a),p=(-l-Math.sqrt(s))/(2*a)),f>=0&&f<=1&&(u=g(f,e,t,n,r)),p>=0&&p<=1&&(d=g(p,e,t,n,r)),[u,d]},y=function(e,t){var n=[0,0],i=e.reduce((function(e,i){var a=i.op,l=i.data;if("move"===a)n=l;else if("bcurveTo"===a){var c=[l[0],l[1]],s=[l[2],l[3]],u=[l[4],l[5]],d=t?t.apply(void 0,c):c,f=t?t.apply(void 0,s):s,p=t?t.apply(void 0,u):u,h=t?t.apply(void 0,(0,o.Z)(n)):n;n=u;var v=function(e,t,n,r){var i=b(e[0],t[0],n[0],r[0]),a=b(e[1],t[1],n[1],r[1]),l=Math.min(e[0],r[0]),c=Math.max(e[0],r[0]);if(i){var s=i.filter((function(e){return null!==e}));l=Math.min.apply(Math,[l].concat((0,o.Z)(s))),c=Math.max.apply(Math,[c].concat((0,o.Z)(s)))}var u=Math.min(e[1],r[1]),d=Math.max(e[1],r[1]);if(a){var f=a.filter((function(e){return null!==e}));u=Math.min.apply(Math,[u].concat((0,o.Z)(f))),d=Math.max.apply(Math,[d].concat((0,o.Z)(f)))}return[l,u,c,d]}(h,d,f,p),m=(0,r.Z)(v,4),g=m[0],y=m[1],x=m[2],w=m[3];e.minX=Math.min(e.minX,g),e.minY=Math.min(e.minY,y),e.maxX=Math.max(e.maxX,x),e.maxY=Math.max(e.maxY,w)}return e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[i.minX,i.minY,i.maxX,i.maxY]},x=function(e){var t,n=1/0,o=1/0,i=-1/0,a=-1/0,l=f(e);try{for(l.s();!(t=l.n()).done;){var c=(0,r.Z)(t.value,2),s=c[0],u=c[1];n=Math.min(n,s),o=Math.min(o,u),i=Math.max(i,s),a=Math.max(a,u)}}catch(e){l.e(e)}finally{l.f()}return[n,o,i,a]},w=function(e){var t=x(e.points),n=(0,r.Z)(t,4),o=n[0],i=n[1],a=n[2],l=n[3],c=o+e.x,s=i+e.y,u=a+e.x,d=l+e.y;return[c,s,u,d,(c+u)/2,(s+d)/2]},k=function(e,t,n,o){var a=m(t[0]);if(a.length<1)return null;var l="start"===n?1:a.length-1,c=a[l].data,s=[c[4],c[5]],u=[c[2],c[3]],d=[c[0],c[1]],f=a[l-1],p=[0,0];"move"===f.op?p=f.data:"bcurveTo"===f.op&&(p=[f.data[4],f.data[5]]);var h=function(e,t){return Math.pow(1-e,3)*s[t]+3*e*Math.pow(1-e,2)*u[t]+3*Math.pow(e,2)*(1-e)*d[t]+p[t]*Math.pow(e,3)},v="start"===n?p:s,g=(0,r.Z)(v,2),b=g[0],y=g[1],x=[h(.3,0),h(.3,1)],w=x[0],k=x[1],_=Math.hypot(b-w,y-k),E=(b-w)/_,S=(y-k)/_,j={arrow:30,bar:15,dot:15,triangle:15}[o],O=0;if("arrow"===o){var C=(0,r.Z)(e.points[e.points.length-1],2),M=C[0],P=C[1],T=e.points.length>1?e.points[e.points.length-2]:[0,0],I=(0,r.Z)(T,2),L=I[0],D=I[1];O=Math.hypot(M-L,P-D)}else for(var A=0;A0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[0,0,0,0,0,0,0,0];if(t<0||t>7)throw new Error("Expected `index` between 0 and 7, got `".concat(t,"`"));return 0!==e&&(n[t]=e),n},a=function(e){return[e[0],e[1],e[2],e[3],-e[4],-e[5],-e[6],-e[7]]},l=function(e,t){return v(t)?[e[0]-t,e[1],e[2],e[3],e[4],e[5],e[6],e[7]]:[e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3],e[4]-t[4],e[5]-t[5],e[6]-t[6],e[7]-t[7]]},c=function(e,t){return v(t)?[e[0]*t,e[1]*t,e[2]*t,e[3]*t,e[4]*t,e[5]*t,e[6]*t,e[7]*t]:[s(e,t),t[1]*e[0]+t[0]*e[1]-t[4]*e[2]+t[5]*e[3]+t[2]*e[4]-t[3]*e[5]-t[7]*e[6]-t[6]*e[7],t[2]*e[0]+t[0]*e[2]-t[6]*e[3]+t[3]*e[6],t[3]*e[0]+t[6]*e[2]+t[0]*e[3]-t[2]*e[6],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[7]*e[3]+t[0]*e[4]+t[6]*e[5]-t[5]*e[6]+t[3]*e[7],t[5]*e[0]-t[3]*e[1]+t[7]*e[2]+t[1]*e[3]-t[6]*e[4]+t[0]*e[5]+t[4]*e[6]+t[2]*e[7],t[6]*e[0]+t[3]*e[2]-t[2]*e[3]+t[0]*e[6],t[7]*e[0]+t[6]*e[1]+t[5]*e[2]+t[4]*e[3]+t[3]*e[4]+t[2]*e[5]+t[1]*e[6]+t[0]*e[7]]},s=function(e,t){return t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6]},u=function(e,t){return[d(e,t),e[1]*t[7]+e[4]*t[5]-e[5]*t[4]+e[7]*t[1],e[2]*t[7]-e[4]*t[6]+e[6]*t[4]+e[7]*t[2],e[3]*t[7]+e[5]*t[6]-e[6]*t[5]+e[7]*t[3],e[4]*t[7]+e[7]*t[4],e[5]*t[7]+e[7]*t[5],e[6]*t[7]+e[7]*t[6],e[7]*t[7]]},d=function(e,t){return e[0]*t[7]+e[1]*t[6]+e[2]*t[5]+e[3]*t[4]+e[4]*t[3]+e[5]*t[2]+e[6]*t[1]+e[7]*t[0]},f=function(e){return Math.sqrt(Math.abs(e[0]*e[0]-e[2]*e[2]-e[3]*e[3]+e[6]*e[6]))},p=function(e){var t=f(e);if(0===t||1===t)return e;var n=e[6]<0?-1:1;return c(e,n/t)},h=function(e){var t=function(e){return Math.sqrt(Math.abs(e[7]*e[7]-e[5]*e[5]-e[4]*e[4]+e[1]*e[1]))}(e);return 0===t||1===t?e:c(e,1/t)},v=function(e){return"number"==typeof e},m=(i(1,1),i(1,2),i(1,3),i(1,4),i(1,5),i(1,6),i(1,7),function(e,t,n){return p([0,n,e,t,0,0,0,0])}),g=function(e,t){return p(u(t,e))},b=function(e,t){return n=e,[(r=t)[0]*n[0]+r[2]*n[2]+r[3]*n[3]-r[6]*n[6],r[1]*n[0]+r[0]*n[1]-r[4]*n[2]+r[5]*n[3]+r[2]*n[4]-r[3]*n[5]-r[7]*n[6]-r[6]*n[7],r[2]*n[0]+r[0]*n[2]-r[6]*n[3]+r[3]*n[6],r[3]*n[0]+r[6]*n[2]+r[0]*n[3]-r[2]*n[6],r[4]*n[0]+r[7]*n[3]+r[0]*n[4]+r[3]*n[7],r[5]*n[0]+r[7]*n[2]+r[0]*n[5]+r[2]*n[7],r[6]*n[0]+r[0]*n[6],r[7]*n[0]+r[0]*n[7]];var n,r},y=function(e){var t=(0,r.Z)(e,2),n=t[0];return[0,0,0,0,t[1],n,1,0]},x=function(e){return[e[5],e[4]]},w=function(e,t){return p((n=e,[(r=t)[0]*n[0],r[1]*n[0]+r[0]*n[1],r[2]*n[0]+r[0]*n[2],r[3]*n[0]+r[0]*n[3],r[4]*n[0]+r[2]*n[1]-r[1]*n[2]+r[0]*n[4],r[5]*n[0]-r[3]*n[1]+r[1]*n[3]+r[0]*n[5],r[6]*n[0]+r[3]*n[2]-r[2]*n[3]+r[0]*n[6],r[7]*n[0]+r[6]*n[1]+r[5]*n[2]+r[4]*n[3]+r[3]*n[4]+r[2]*n[5]+r[1]*n[6]]));var n,r},k=function(e,t){return f(u(e,t))},_=function(e,t){return d(e,t)},E=function(e){return[0,0,0,0,e[4],e[5],0,0]},S=function(e,t){return n=c(e,Math.sin(t/2)),r=Math.cos(t/2),v(r)?[n[0]+r,n[1],n[2],n[3],n[4],n[5],n[6],n[7]]:[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3],n[4]+r[4],n[5]+r[5],n[6]+r[6],n[7]+r[7]];var n,r},j=function(e,t){return p(c(c(e,t),a(e)))},O=n(6552),C=n(1493),M=n(8925),P=n(3063),T=n(1974),I=n(1047),L=n(6340),D=n(267),A=n(5710);function z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns-n&&gu-n&&by?m:_y?v:p,Math.hypot(i-p[1],o-p[0])3&&void 0!==arguments[3]?arguments[3]:0,o=oe(e),i=j(o,y(t)),l=j(o,y(n)),c=g(i,l),s=a(o);return se(e,c,i,r).map((function(e){return x(j(s,e))}))},se=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;switch(e.type){case"rectangle":case"image":case"text":case"diamond":var i=ue(e);r=i.flatMap((function(e,n){var r=[e,i[(n+1)%4]];return de(t,fe(r,o))})).concat(i.flatMap((function(e){return he(e,o,t)})));break;case"ellipse":r=pe(e,o,t)}if(r.length<2)return[];var a=r.sort((function(e,t){return k(e,n)-k(t,n)}));return[a[0],a[a.length-1]]},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t*e.width/2,r=t*e.height/2;switch(e.type){case"rectangle":case"image":case"text":return[o(n,r),o(n,-r),o(-n,-r),o(-n,r)];case"diamond":return[o(0,r),o(n,0),o(0,-r),o(-n,0)]}},de=function(e,t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];return _(o,e)*_(i,e)>=0?[]:[w(e,g(o,i))]},fe=function(e,t){var n=(0,r.Z)(e,2),o=n[0],i=n[1],a=function(e,t){var n=.5*t;return[1,0,0,0,n*e[4],n*e[5],0,0]}(function(e,t){return h([0,0,0,0,t[4]-e[4],t[5]-e[5],0,0])}(o,i),t);return[j(a,o),j(a,i)]},pe=function(e,t,n){var r=e.width/2+t,i=e.height/2+t,a=n[2],l=n[3],c=n[1],s=r*r*a*a+i*i*l*l,u=s-c*c;if(0===s||u<=0)return[];var d=Math.sqrt(u),f=-r*r*a*c,p=-i*i*l*c;return[o((f+r*i*l*d)/s,(p-r*i*a*d)/s),o((f-r*i*l*d)/s,(p+r*i*a*d)/s)]},he=function(e,t,n){if(0===t)return 0===_(n,e)?[e]:[];var i=n[2],a=n[3],l=n[1],c=x(e),s=(0,r.Z)(c,2),u=s[0],d=s[1],f=i*i+a*a,p=t*t*f-Math.pow(i*u+a*d+l,2);if(0===f||p<=0)return[];var h=Math.sqrt(p),v=u*a*a-d*i*a-i*l,m=d*i*i-u*i*a-a*l;return[o((v+a*h)/f,(m-i*h)/f),o((v-a*h)/f,(m+i*h)/f)]},ve=function(e,t,n){var i=Math.abs(t),a=e.width*i/2,l=e.height*i/2,c=Math.sign(t),s=x(n),u=(0,r.Z)(s,2),d=u[0],f=u[1],p=0===f?1e-4:f,h=Math.pow(d,2)*Math.pow(l,2)+Math.pow(p,2)*Math.pow(a,2),v=(-d*Math.pow(l,2)+c*p*Math.sqrt(Math.max(0,h-Math.pow(a,2)*Math.pow(l,2))))/h,m=(-v*d-1)/p;0===m&&(m=.01*(Object.is(m,-0)?-1:1));var g=-Math.pow(a,2)*v/(Math.pow(m,2)*Math.pow(l,2)+Math.pow(v,2)*Math.pow(a,2));return o(g,(-v*g-1)/m)},me=function(e,t,n){var r=Math.abs(t),o=Math.sign(t),i=ue(e,r),a=0,l=null;return i.forEach((function(e){var t=o*g(n,e)[1];t>a&&(a=t,l=e)})),l},ge=function(e,t,n,r){var o,i=[],a=!1,l=z((0,M.CM)(e));try{for(l.s();!(o=l.n()).done;){var c=o.value;"move"===c.op?(a=!a)&&i.push([c.data[0],c.data[1]]):"bcurveTo"===c.op?a&&(i.push([c.data[0],c.data[1]]),i.push([c.data[2],c.data[3]]),i.push([c.data[4],c.data[5]])):"lineTo"===c.op&&a&&i.push([c.data[0],c.data[1]])}}catch(e){l.e(e)}finally{l.f()}if(i.length>=4){if("sharp"===r)return(0,O.c9)(i,t,n);var s=(0,C.s)(i,10,5);return(0,O.c9)(s,t,n)}return!1},be=function(e,t,n,o){var i=(0,M.CM)(e),a=[0,0];return i.some((function(i,l){var c=i.op,s=i.data;if("move"===c)a=s;else{if("bcurveTo"===c){var u=[s[0],s[1]],d=[s[2],s[3]],f=[s[4],s[5]],p=a;a=f;var h=function(e,t,n,o,i,a){for(var l=(0,r.Z)(i,2),c=l[0],s=l[1],u=function(r,i){return Math.pow(1-r,3)*o[i]+3*r*Math.pow(1-r,2)*n[i]+3*Math.pow(r,2)*(1-r)*t[i]+e[i]*Math.pow(r,3)},d=0;d<=1;){var f=u(d,0),p=u(d,1);if(Math.sqrt(Math.pow(f-c,2)+Math.pow(p-s,2))=e[0]&&t<=e[0]+e[2]&&n>=e[1]&&n<=e[1]+e[3]},y=function(e,t,n,r,o,i){return e.reduce((function(e,a){if(e)return e;var l=function(e,t,n,r,o,i){if(!t.selectedElementIds[e.id])return!1;var a=(0,p.PC)(e,o,i),l=a.rotation,c=(0,m.Z)(a,g);if(l&&b(l,n,r))return"rotation";var s=Object.keys(c).filter((function(e){var t=c[e];return!!t&&b(t,n,r)}));return s.length>0&&s[0]}(a,t,n,r,o,i);return l?{element:a,transformHandleType:l}:null}),null)},x=function(e,t,n,r,o){var i=(0,v.Z)(e,4),a=i[0],l=i[1],c=i[2],s=i[3],u=(0,p.kK)([a,l,c,s,(a+c)/2,(l+s)/2],0,r,o,p.ox);return Object.keys(u).find((function(e){var r=u[e];return r&&b(r,t,n)}))||!1},w=["ns","nesw","ew","nwse"],k=function(e){var t=e.element,n=e.transformHandleType,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=w.indexOf(e);if(n>=0){var r=Math.round(t/(Math.PI/4));e=w[(n+r)%w.length]}return e}(o,t.angle)),o?"".concat(o,"-resize"):""},_=n(8634),E=n(8290),S=n(5710),j=n(242),O=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=arguments.length>7?arguments[7]:void 0,c=(0,f.KP)(t),s=(0,v.Z)(c,2),u={x:n-s[0],y:r-s[1]};t.forEach((function(n){if(C(o,i,a,e,n,u),!n.groupIds.length||l.editingGroupId&&!(0,j.zq)(l,n)){var r=(0,S.WJ)(n);r&&C(o,i,a,e,r,u)}(0,E.Ww)(n,{simultaneouslyUpdated:t})}))},C=function(e,t,n,r,i,a){var l,c;if(e){var s=e&&tn,d=r.originalElements.get(i.id);l=s&&d?d.x:i.x+a.x,c=u&&d?d.y:i.y+a.y}else l=i.x+a.x,c=i.y+a.y;(0,o.DR)(i,{x:l,y:c})},M=function(e,t,n){var r=(0,f.KP)(e),o=(0,v.Z)(r,2);return[t-o[0],n-o[1]]},P=function(e,t,n,r,i,a,l,s,u,d,f){if(u&&"selection"!==e.type)if(f)s=l/f;else{if(Math.abs(a-r)>Math.abs(i-n)){var p=c(t,s,i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=p&&n[0]<=v&&n[1]>=h&&n[1]<=m||t.shiftKey&&null!=l&&l.includes(r))&&e.push(r),e}),[]);r({editingLinearElement:_(_({},a),{},{selectedPointsIndices:g.length?g:null})})}},{key:"handlePointDragging",value:function(t,n,r,o,a,l){if(!l)return!1;var c=l.selectedPointsIndices,s=l.elementId,u=e.getElement(s);if(!u)return!1;var d=u.points[l.pointerDownState.lastClickedPoint];if(c&&d){if((0,m.Ge)(t)&&1===c.length&&u.points.length>1){var f=c[0],p=u.points[0===f?1:f-1],b=e._getShiftLockedDelta(u,p,[r,o],n.gridSize),y=(0,i.Z)(b,2),x=y[0],w=y[1];e.movePoints(u,[{index:f,point:[x+p[0],w+p[1]],isDragging:f===l.pointerDownState.lastClickedPoint}])}else{var k=e.createPointAt(u,r-l.pointerOffset.x,o-l.pointerOffset.y,n.gridSize),_=k[0]-d[0],E=k[1]-d[1];e.movePoints(u,c.map((function(t){return{index:t,point:t===l.pointerDownState.lastClickedPoint?e.createPointAt(u,r-l.pointerOffset.x,o-l.pointerOffset.y,n.gridSize):[u.points[t][0]+_,u.points[t][1]+E],isDragging:t===l.pointerDownState.lastClickedPoint}}))),(0,g.WJ)(u)&&(0,g.RB)(u,!1)}if((0,v.Mn)(u,!1)){var S=[];0===c[0]&&S.push((0,h.AK)(e.getPointGlobalCoordinates(u,u.points[0])));var j=c[c.length-1];j===u.points.length-1&&S.push((0,h.AK)(e.getPointGlobalCoordinates(u,u.points[j]))),S.length&&a(u,S)}return!0}return!1}},{key:"handlePointerUp",value:function(t,n,r){var o,i=n.elementId,a=n.selectedPointsIndices,l=n.isDragging,s=n.pointerDownState,u=e.getElement(i);if(!u)return n;var d={};if(l&&a){var v,m=x(a);try{for(m.s();!(v=m.n()).done;){var g=v.value;if(0===g||g===u.points.length-1){(0,c.g6)(u.points,r.zoom.value)&&e.movePoints(u,[{index:g,point:0===g?u.points[u.points.length-1]:u.points[0]}]);var b=(0,p.N1)(r)?(0,p.Y9)((0,h.AK)(e.getPointAtIndexGlobalCoordinates(u,g)),f.Z.getScene(u)):null;d[0===g?"startBindingElement":"endBindingElement"]=b}}}catch(e){m.e(e)}finally{m.f()}}return _(_(_({},n),d),{},{selectedPointsIndices:l||t.shiftKey?!l&&t.shiftKey&&null!==(o=s.prevSelectedPointsIndices)&&void 0!==o&&o.includes(s.lastClickedPoint)?a&&a.filter((function(e){return e!==s.lastClickedPoint})):a:null!=a&&a.includes(s.lastClickedPoint)?[s.lastClickedPoint]:a,isDragging:!1,pointerOffset:{x:0,y:0}})}},{key:"isSegmentTooShort",value:function(t,n,r,o){var i=(0,c.LW)(n[0],n[1],r[0],r[1]);return t.points.length>2&&t.roundness&&(i=(0,c.eH)(t,r)),i*o.value<4*e.POINT_HANDLE_SIZE}},{key:"getSegmentMidPoint",value:function(t,n,r,o){var a=(0,c.H5)(n,r);if(t.points.length>2&&t.roundness){var l=(0,c.yB)(t,t.points[o]);if(l){var s=(0,c.lk)(t,t.points[o],.5),u=(0,c.N_)(l[0],l[1],l[2],l[3],s),d=(0,i.Z)(u,2),f=d[0],p=d[1];a=e.getPointGlobalCoordinates(t,[f,p])}}return a}},{key:"getSegmentMidPointIndex",value:function(t,n,r){var o=e.getElement(t.elementId);if(!o)return-1;for(var i=e.getEditorMidPoints(o,n),a=0;a=0||b)h.hitElement=g;else{var w=l.startBindingElement,k=l.endBindingElement;(0,p.N1)(n)&&(0,v.Mn)(g)&&(0,p.HG)(g,w,k)}var E=(0,s.qf)(g),S=(0,i.Z)(E,4),O=S[0],C=S[1],M=(O+S[2])/2,P=(C+S[3])/2,T=x>-1&&(0,c.U1)(g.x+g.points[x][0],g.y+g.points[x][1],M,P,g.angle),I=x>-1||t.shiftKey?t.shiftKey||null!==(u=l.selectedPointsIndices)&&void 0!==u&&u.includes(x)?j([].concat((0,r.Z)(l.selectedPointsIndices||[]),[x])):[x]:null;return h.linearElementEditor=_(_({},l),{},{pointerDownState:{prevSelectedPointsIndices:l.selectedPointsIndices,lastClickedPoint:x,origin:{x:a.x,y:a.y},segmentMidpoint:{value:b,index:y,added:!1}},selectedPointsIndices:I,pointerOffset:T?{x:a.x-T[0],y:a.y-T[1]}:{x:0,y:0}}),h}},{key:"arePointsEqual",value:function(e,t){return!e&&!t||!(!e||!t)&&(0,c.Jj)(e,t)}},{key:"handlePointerMove",value:function(t,n,r,o){if(!o.editingLinearElement)return null;var a=o.editingLinearElement,l=a.elementId,c=a.lastUncommittedPoint,s=e.getElement(l);if(!s)return o.editingLinearElement;var u,d=s.points,f=d[d.length-1];if(!t.altKey)return f===c&&e.deletePoints(s,[d.length-1]),_(_({},o.editingLinearElement),{},{lastUncommittedPoint:null});if((0,m.Ge)(t)&&d.length>=2){var p=d[d.length-2],h=e._getShiftLockedDelta(s,p,[n,r],o.gridSize),v=(0,i.Z)(h,2),g=v[0],b=v[1];u=[g+p[0],b+p[1]]}else u=e.createPointAt(s,n-o.editingLinearElement.pointerOffset.x,r-o.editingLinearElement.pointerOffset.y,o.gridSize);return f===c?e.movePoints(s,[{index:s.points.length-1,point:u}]):e.addPoints(s,o,[{point:u}]),_(_({},o.editingLinearElement),{},{lastUncommittedPoint:s.points[s.points.length-1]})}},{key:"getPointGlobalCoordinates",value:function(e,t){var n=(0,s.qf)(e),r=(0,i.Z)(n,4),o=r[0],a=r[1],l=(o+r[2])/2,u=(a+r[3])/2,d=e.x,f=e.y,p=(0,c.U1)(d+t[0],f+t[1],l,u,e.angle),h=(0,i.Z)(p,2);return[d=h[0],f=h[1]]}},{key:"getPointsGlobalCoordinates",value:function(e){var t=(0,s.qf)(e),n=(0,i.Z)(t,4),r=n[0],o=n[1],a=n[2],l=n[3],u=(r+a)/2,d=(o+l)/2;return e.points.map((function(t){var n=e.x,r=e.y,o=(0,c.U1)(n+t[0],r+t[1],u,d,e.angle),a=(0,i.Z)(o,2);return[n=a[0],r=a[1]]}))}},{key:"getPointAtIndexGlobalCoordinates",value:function(e,t){var n=t<0?e.points.length+t:t,r=(0,s.qf)(e),o=(0,i.Z)(r,4),a=o[0],l=o[1],u=(a+o[2])/2,d=(l+o[3])/2,f=e.points[n],p=e.x,h=e.y;return f?(0,c.U1)(p+f[0],h+f[1],u,d,e.angle):(0,c.U1)(p,h,u,d,e.angle)}},{key:"pointFromAbsoluteCoords",value:function(e,t){var n=(0,s.qf)(e),r=(0,i.Z)(n,4),o=r[0],a=r[1],l=(o+r[2])/2,u=(a+r[3])/2,d=(0,c.U1)(t[0],t[1],l,u,-e.angle),f=(0,i.Z)(d,2),p=f[0],h=f[1];return[p-e.x,h-e.y]}},{key:"getPointIndexUnderCursor",value:function(t,n,r,o){for(var i=e.getPointsGlobalCoordinates(t),a=i.length;--a>-1;){var l=i[a];if((0,c.LW)(r,o,l[0],l[1])*n.value2&&!n?[]:(E.version===e.version&&E.zoom===t.zoom.value||S.updateEditorMidPointsCache(e,t),E.points)},S.updateEditorMidPointsCache=function(e,t){for(var n=S.getPointsGlobalCoordinates(e),r=0,o=[];r=0)return null;if(S.getPointsGlobalCoordinates(o).length>=3&&!n.editingLinearElement)return null;var i=S.POINT_HANDLE_SIZE/n.zoom.value,a=e.segmentMidPointHoveredCoords;if(a&&(0,c.LW)(a[0],a[1],t.x,t.y)<=i)return a;for(var l=0,s=S.getEditorMidPoints(o,n);l=b[1]?(o=Math.min(o,w[0]),l=Math.max(l,Math.max(x[0],k[0])),a=Math.min(a,y[1]),s=Math.max(s,k[1])):g[0]>=b[0]&&g[1]>b[1]?(o=Math.min(o,k[0]),l=Math.max(l,Math.max(y[0],x[0])),a=Math.min(a,w[1]),s=Math.max(s,x[1])):g[0]>=b[0]?(o=Math.min(o,x[0]),l=Math.max(l,w[0]),a=Math.min(a,k[1]),s=Math.max(s,y[1])):g[1]<=b[1]&&(o=Math.min(o,Math.min(x[0],y[0])),l=Math.max(l,k[0]),a=Math.min(a,x[1]),s=Math.max(s,w[1])),[o,a,l,s,u,d]},S.getElementAbsoluteCoords=function(e){var t,n,r,o,a,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.points.length<2||!(0,b.R2)(e)){var c=e.points.reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e.minY=Math.min(e.minY,o),e.minX=Math.min(e.minX,r),e.maxX=Math.max(e.maxX,r),e.maxY=Math.max(e.maxY,o),e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),s=c.minX,d=c.minY,f=c.maxX,p=c.maxY;n=s+e.x,r=d+e.y,o=f+e.x,a=p+e.y}else{var h=(0,b.R2)(e),v=(0,u.CM)(h[0]),m=(0,u.IX)(v),y=(0,i.Z)(m,4),x=y[0],w=y[1],k=y[2],_=y[3];n=x+e.x,r=w+e.y,o=k+e.x,a=_+e.y}if(t=[n,r,o,a,(n+o)/2,(r+a)/2],!l)return t;var E=(0,g.WJ)(e);return E&&(t=S.getMinMaxXYWithBoundText(e,[n,r,o,a],E)),t};var j=function(e){var t=(0,r.Z)(new Set(e.filter((function(e){return null!==e&&-1!==e}))));return(t=t.sort((function(e,t){return e-t}))).length?t:null}},1935:function(e,t,n){"use strict";n.d(t,{BE:function(){return p},DR:function(){return f},ZP:function(){return h}});var r=n(6655),o=n(7169),i=n(3063),a=n(1564),l=n(5001),c=n(6954),s=n(6340);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2],u=!1,f=t,p=f.points,h=f.fileId;for(var v in void 0!==p&&(t=d(d({},(0,l.k)(p)),t)),t){var m=t[v];if(void 0!==m){if(e[v]===m&&("object"!==(0,r.Z)(m)||null===m||"groupIds"===v||"scale"===v))continue;if("scale"===v){var g=e[v],b=m;if(g[0]===b[0]&&g[1]===b[1])continue}else if("points"===v){var y=e[v],x=m;if(y.length===x.length){for(var w=!1,k=y.length;--k;){var _=y[k],E=x[k];if(_[0]!==E[0]||_[1]!==E[1]){w=!0;break}}if(!w)continue}}e[v]=m,u=!0}}return u?(void 0===t.height&&void 0===t.width&&void 0===h&&void 0===p||(0,i.bI)(e),e.version++,e.versionNonce=(0,c.LU)(),e.updated=(0,s.C3)(),o&&(null===(n=a.Z.getScene(e))||void 0===n||n.informMutation()),e):e},p=function(e,t){var n=!1;for(var o in t){var i=t[o];if(void 0!==i){if(e[o]===i&&("object"!==(0,r.Z)(i)||null===i))continue;n=!0}}return n?d(d(d({},e),t),{},{updated:(0,s.C3)(),version:e.version+1,versionNonce:(0,c.LU)()}):e},h=function(e,t){return e.version=(null!=t?t:e.version)+1,e.versionNonce=(0,c.LU)(),e.updated=(0,s.C3)(),e}},2791:function(e,t,n){"use strict";n.d(t,{JZ:function(){return O},KE:function(){return M},N_:function(){return C},OL:function(){return L},Sy:function(){return A},Up:function(){return _},VL:function(){return S},_N:function(){return z},vw:function(){return T},y8:function(){return P}});var r=n(6655),o=n(2577),i=n(7169),a=n(2726),l=n(6340),c=n(6954),s=n(1935),u=n(242),d=n(1047),f=n(6552),p=n(8925),h=n(5710),v=n(2335),m=n(1974),g=["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","roundness","boundElements","link","locked"];function b(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nN-2*Z&&(N=u+2*Z),c>B-2*Z&&(B=c+2*Z),(0,m.Yv)(i)||N===R.height&&B===R.width||(0,s.DR)(i,{height:N,width:B})}return{width:c,height:u,baseline:g,x:Number.isFinite(n)?n:e.x,y:Number.isFinite(r)?r:e.y}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.text;if(!e.isDeleted){var n=(0,h.tl)(e);return n&&(t=(0,h.lD)(t,(0,l.mO)(e),(0,h.jd)(n))),w({text:t},j(e,t))}},C=function(e,t){t.text;var n=t.isDeleted,r=t.originalText;return(0,s.BE)(e,w({originalText:r,isDeleted:null!=n?n:e.isDeleted},O(e,r)))},M=function(e){return w(w({},k(e.type,e)),{},{points:e.points||[],pressures:[],simulatePressure:e.simulatePressure,lastCommittedPoint:null})},P=function(e){return w(w({},k(e.type,e)),{},{points:e.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:e.startArrowhead,endArrowhead:e.endArrowhead})},T=function(e){var t,n,r;return w(w({},k("image",e)),{},{strokeColor:"transparent",status:null!==(t=e.status)&&void 0!==t?t:"pending",fileId:null!==(n=e.fileId)&&void 0!==n?n:null,scale:null!==(r=e.scale)&&void 0!==r?r:[1,1]})},I=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null==t||"object"!==(0,r.Z)(t))return t;if("[object Object]"===Object.prototype.toString.call(t)){var o="function"==typeof t.constructor?Object.create(Object.getPrototypeOf(t)):{};for(var i in t)if(t.hasOwnProperty(i)){if(0===n&&("shape"===i||"canvas"===i))continue;o[i]=e(t[i],n+1)}return o}if(Array.isArray(t)){for(var a=t.length,l=new Array(a);a--;)l[a]=e(t[a],n+1);return l}return t},L=function(e){return I(e)},D=function(e){if((0,l.h2)()&&e){var t,n,r="".concat(e,"_copy");return null!==(t=window.h)&&void 0!==t&&null!==(n=t.app)&&void 0!==n&&n.getSceneElementsIncludingDeleted().find((function(e){return e.id===r}))&&(r+="_copy"),r}return(0,c.kb)()},A=function(e,t,n,r){var o=L(n);return o.id=D(o.id),o.boundElements=null,o.updated=(0,l.C3)(),o.seed=(0,c.LU)(),o.groupIds=(0,u.Qy)(o.groupIds,e,(function(e){return t.has(e)||t.set(e,D(e)),t.get(e)})),r&&(o=Object.assign(o,r)),o},z=function(e){var t,n=[],r=(0,l.xn)(e),o=new Map,i=function(e){if(o.has(e))return o.get(e);if(r.has(e)){var t=D(e);return o.set(e,t),t}return null},a=new Map,c=b(e);try{for(c.s();!(t=c.n()).done;){var s=t.value,u=I(s);if(u.id=i(s.id),u.groupIds&&(u.groupIds=u.groupIds.map((function(e){return a.has(e)||a.set(e,D(e)),a.get(e)}))),"containerId"in u&&u.containerId){var d=i(u.containerId);u.containerId=d}if("boundElements"in u&&u.boundElements&&(u.boundElements=u.boundElements.reduce((function(e,t){var n=i(t.id);return n&&e.push(w(w({},t),{},{id:n})),e}),[])),"endBinding"in u&&u.endBinding){var f=i(u.endBinding.elementId);u.endBinding=f?w(w({},u.endBinding),{},{elementId:f}):null}if("startBinding"in u&&u.startBinding){var p=i(u.startBinding.elementId);u.startBinding=p?w(w({},u.startBinding),{},{elementId:p}):null}n.push(u)}}catch(e){c.e(e)}finally{c.f()}return n}},8634:function(e,t,n){"use strict";n.d(t,{LW:function(){return b},T:function(){return O},l2:function(){return _},vY:function(){return y},xx:function(){return j}});var r=n(1930),o=n(7169),i=n(2577),a=n(2335),l=n(5001),c=n(6552),s=n(8925),u=n(1974),d=n(1935),f=n(6340),p=n(8290),h=n(1564),v=n(5710);function m(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 g(e){for(var t=1;t=2*Math.PI?e-2*Math.PI:e},y=function(e,t,n,r,o,a,l,c,s,d,f){if(1===n.length){var h=(0,i.Z)(n,1)[0];return"rotation"===t?(x(h,c,s,o,e.originalElements),(0,p.Ww)(h)):!(0,u.iB)(h)||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?t&&_(e.originalElements,l,h,t,a,c,s):(k(h,t,a,c,s),(0,p.Ww)(h)),!0}if(n.length>1){if("rotation"===t)return S(e,n,c,s,o,d,f),!0;if("nw"===t||"ne"===t||"sw"===t||"se"===t)return E(e,n,t,a,c,s),!0}return!1},x=function(e,t,n,r,o){var l=(0,s.qf)(e),c=(0,i.Z)(l,4),f=c[0],p=c[1],m=(f+c[2])/2,g=(p+c[3])/2,y=5*Math.PI/2+Math.atan2(n-g,t-m);r&&(y+=a.ay/2,y-=y%a.ay),y=b(y);var x=(0,v.xB)(e);if((0,d.DR)(e,{angle:y}),x){var w,k=null===(w=h.Z.getScene(e))||void 0===w?void 0:w.getElement(x);k&&!(0,u.Yv)(e)&&(0,d.DR)(k,{angle:y})}},w=function(e,t,n){var r=e.width;if((0,u.Xh)(e)){var o=(0,v.tl)(e);o&&(r=(0,v.jd)(o))}var i=e.fontSize*(t/r);if(i<1)return null;var a=(0,v.X1)(e.text,(0,f.mO)({fontSize:i,fontFamily:e.fontFamily}),e.lineHeight);return{size:i,baseline:a.baseline+(n-a.height)}},k=function(e,t,n,r,o){var a,l=(0,s.qf)(e),u=(0,i.Z)(l,4),f=u[0],p=u[1],h=u[2],v=u[3],m=(f+h)/2,g=(p+v)/2,b=(0,c.U1)(r,o,m,g,-e.angle),y=(0,i.Z)(b,2),x=y[0],k=y[1];switch(t){case"se":a=Math.max((x-f)/(h-f),(k-p)/(v-p));break;case"nw":a=Math.max((h-x)/(h-f),(v-k)/(v-p));break;case"ne":a=Math.max((x-f)/(h-f),(v-k)/(v-p));break;case"sw":a=Math.max((h-x)/(h-f),(k-p)/(v-p))}if(a>0){var _=e.width*a,E=e.height*a,S=w(e,_,E);if(null===S)return;var j=(0,s.wC)(e,_,E,!1),O=(0,i.Z)(j,4),C=(f-O[0])/2,M=(p-O[1])/2,P=(h-O[2])/2,T=(v-O[3])/2,I=(0,c.yq)(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)}}(t,n),e.x,e.y,e.angle,C,M,P,T),L=(0,i.Z)(I,2),D=L[0],A=L[1];(0,d.DR)(e,{fontSize:S.size,width:_,height:E,baseline:S.baseline,x:D,y:A})}},_=function(e,t,n,o,a,h,m){var b=e.get(n.id),y=(0,s.wC)(b,b.width,b.height,!0),x=(0,i.Z)(y,4),k=[x[0],x[1]],_=[x[2],x[3]],E=(0,c.H5)(k,_),S=(0,c.xj)([h,m],E,-b.angle),j=(0,s.wC)(n,n.width,n.height,!0),O=(0,i.Z)(j,4),C=O[0],M=O[1],P=O[2]-C,T=O[3]-M,I=(_[0]-k[0])/P,L=(_[1]-k[1])/T,D={},A=(0,v.WJ)(n);o.includes("e")&&(I=(S[0]-k[0])/P),o.includes("s")&&(L=(S[1]-k[1])/T),o.includes("w")&&(I=(_[0]-S[0])/P),o.includes("n")&&(L=(_[1]-S[1])/T);var z=b.width,Z=b.height,R=n.width*I,N=n.height*L;if(a&&(R=2*R-z,N=2*N-Z),t){var B=Math.abs(R)/z,H=Math.abs(N)/Z;if(1===o.length&&(N*=B,R*=H),2===o.length){var W=Math.max(B,H);R=z*W*Math.sign(R),N=Z*W*Math.sign(N)}}if(A){var F=e.get(A.id);if(F&&(D={fontSize:F.fontSize,baseline:F.baseline}),t){var U=g(g({},n),{},{width:R,height:N}),K=w(A,(0,v.jd)(U),(0,v.N2)(U));if(null===K)return;D={fontSize:K.size,baseline:K.baseline}}else{var V=(0,v.AT)((0,f.mO)(A),A.lineHeight),Y=(0,v.w_)(A.fontSize,A.lineHeight);R=Math.ceil(Math.max(R,V)),N=Math.ceil(Math.max(N,Y))}}var G=(0,s.wC)(b,R,N,!0),X=(0,i.Z)(G,4),q=X[0],$=X[1],Q=X[2],J=X[3],ee=Q-q,te=J-$,ne=[].concat(k);if(["n","w","nw"].includes(o)&&(ne=[_[0]-Math.abs(ee),_[1]-Math.abs(te)]),"ne"===o){var re=[k[0],_[1]];ne=[re[0],re[1]-Math.abs(te)]}if("sw"===o){var oe=[_[0],k[1]];ne=[oe[0]-Math.abs(ee),oe[1]]}t&&(["s","n"].includes(o)&&(ne[0]=E[0]-ee/2),["e","w"].includes(o)&&(ne[1]=E[1]-te/2)),R<0&&(o.includes("e")&&(ne[0]-=Math.abs(ee)),o.includes("w")&&(ne[0]+=Math.abs(ee))),N<0&&(o.includes("s")&&(ne[1]-=Math.abs(te)),o.includes("n")&&(ne[1]+=Math.abs(te))),a&&(ne[0]=E[0]-Math.abs(ee)/2,ne[1]=E[1]-Math.abs(te)/2);var ie,ae,le=b.angle,ce=(0,c.xj)(ne,E,le),se=[ne[0]+Math.abs(ee)/2,ne[1]+Math.abs(te)/2],ue=(0,c.xj)(se,E,le);ne=(0,c.xj)(ce,ue,-le),((0,u.bt)(n)||(0,u.F9)(n))&&(ie=(0,l.z)(1,N,b.points,!0),ae=(0,l.z)(0,R,ie,!0));var de=(0,r.Z)(ne);de[0]+=b.x-q,de[1]+=b.y-$;var fe={width:Math.abs(R),height:Math.abs(N),x:de[0],y:de[1],points:ae};"scale"in n&&"scale"in b&&(0,d.DR)(n,{scale:[(Math.sign(Q-b.x)||b.scale[0])*b.scale[0],(Math.sign(J-b.y)||b.scale[1])*b.scale[1]]}),0!==fe.width&&0!==fe.height&&Number.isFinite(fe.x)&&Number.isFinite(fe.y)&&((0,p.Ww)(n,{newSize:{width:fe.width,height:fe.height}}),(0,d.DR)(n,fe),A&&null!=D&&(0,d.DR)(A,{fontSize:D.fontSize,baseline:D.baseline}),(0,v.RB)(n,o))},E=function(e,t,n,r,o,a){var c=t.reduce((function(t,n){var r=e.originalElements.get(n.id);return r&&t.push({orig:r,latest:n}),t}),[]),f=(0,s.v2)(c.map((function(e){return e.orig}))),h=f.minX,m=f.minY,b=f.maxX,y=f.maxY,x=f.midX,k=f.midY,_=n,E=r?[x,k]:{ne:[h,y],se:[h,m],sw:[b,m],nw:[b,y]}[_],S=(0,i.Z)(E,2),j=S[0],O=S[1],C={ne:[o>=j,a<=O],se:[o>=j,a>=O],sw:[o<=j,a>=O],nw:[o<=j,a<=O]}[_].map((function(e){return e?1:-1})),M=(0,i.Z)(C,2),P=M[0],T=M[1];if(!(P<0&&T<0)){var I=Math.max(P*Math.abs(o-j)/(b-h),T*Math.abs(a-O)/(y-m))*(r?2:1);0!==I&&c.forEach((function(e){var t=e.orig.width*I,r=e.orig.height*I,o=j+(e.orig.x-j)*I,i=O+(e.orig.y-O)*I,a=function(e,t,n,r){return(0,u.bt)(e)||(0,u.F9)(e)?{points:(0,l.z)(0,t,(0,l.z)(1,n,e.points,r),r)}:{}}(e.orig,t,r,!1),c=g({width:t,height:r,x:o,y:i},a),s=null,f=(0,v.WJ)(e.latest);if(f||(0,u.iB)(e.orig)){var h=g(g({},e.latest),{},{width:t,height:r}),m=w(null!=f?f:e.orig,f?(0,v.jd)(h):h.width,f?(0,v.N2)(h):h.height);if(!m)return;(0,u.iB)(e.orig)&&(c.fontSize=m.size,c.baseline=m.baseline),f&&(s={fontSize:m.size,baseline:m.baseline})}(0,p.Ww)(e.latest,{newSize:{width:t,height:r}}),(0,d.DR)(e.latest,c),f&&s&&((0,d.DR)(f,s),(0,v.RB)(e.latest,n))}))}},S=function(e,t,n,r,o,l,f){var p=5*Math.PI/2+Math.atan2(r-f,n-l);o&&(p+=a.ay/2,p-=p%a.ay),t.forEach((function(t){var n,r,o=(0,s.qf)(t),a=(0,i.Z)(o,4),m=a[0],g=a[1],y=(m+a[2])/2,x=(g+a[3])/2,w=null!==(n=null===(r=e.originalElements.get(t.id))||void 0===r?void 0:r.angle)&&void 0!==n?n:t.angle,k=(0,c.U1)(y,x,l,f,p+w-t.angle),_=(0,i.Z)(k,2),E=_[0],S=_[1];(0,d.DR)(t,{x:t.x+(E-y),y:t.y+(S-x),angle:b(p+w)});var j=(0,v.xB)(t);if(j){var O,C=null===(O=h.Z.getScene(t))||void 0===O?void 0:O.getElement(j);C&&!(0,u.Yv)(t)&&(0,d.DR)(C,{x:C.x+(E-y),y:C.y+(S-x),angle:b(p+w)})}}))},j=function(e,t,n,r){var o=1===t.length?(0,s.qf)(t[0]):(0,s.KP)(t),a=(0,i.Z)(o,4),l=a[0],u=a[1],d=a[2],f=a[3],p=(l+d)/2,h=(u+f)/2,v=1===t.length?t[0].angle:0,m=(0,c.U1)(n,r,p,h,-v),g=(0,i.Z)(m,2);switch(n=g[0],r=g[1],e){case"n":return(0,c.U1)(n-(l+d)/2,r-u,0,0,v);case"s":return(0,c.U1)(n-(l+d)/2,r-f,0,0,v);case"w":return(0,c.U1)(n-l,r-(u+f)/2,0,0,v);case"e":return(0,c.U1)(n-d,r-(u+f)/2,0,0,v);case"nw":return(0,c.U1)(n-l,r-u,0,0,v);case"ne":return(0,c.U1)(n-d,r-u,0,0,v);case"sw":return(0,c.U1)(n-l,r-f,0,0,v);case"se":return(0,c.U1)(n-d,r-f,0,0,v);default:return[0,0]}},O=function(e,t){var n=(0,i.Z)(t.points,2),r=(0,i.Z)(n[1],2),o=r[0],a=r[1];return"nw"===e&&(o<0||a<0)||"ne"===e&&o>=0||"sw"===e&&o<=0||"se"===e&&(o>0||a>0)?"end":"origin"}},5710:function(e,t,n){"use strict";n.d(t,{$2:function(){return M},AT:function(){return R},FE:function(){return j},HE:function(){return F},H_:function(){return V},N2:function(){return te},NS:function(){return J},OW:function(){return q},P7:function(){return E},PT:function(){return oe},R8:function(){return C},RB:function(){return S},Rg:function(){return P},S:function(){return Y},TP:function(){return U},WJ:function(){return H},X1:function(){return O},Zr:function(){return Q},aV:function(){return X},bG:function(){return w},cn:function(){return G},cw:function(){return K},eB:function(){return ne},jd:function(){return ee},lD:function(){return A},mY:function(){return L},oN:function(){return _},tl:function(){return W},w_:function(){return T},xB:function(){return B}});var r,o=n(2577),i=n(1930),a=n(7169),l=n(6340),c=n(1935),s=n(2335),u=n(1564),d=n(1047),f=n(1974),p=n(6938),h=n(75),v=n(2325),m=n(6906);function g(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 b(e){for(var t=1;tp&&(h=J(o.height,t.type),(0,c.DR)(t,{height:h}),p=te(t),(0,m.h_)(t.id,h));var v=b(b({},e),r),g=j(t,v),y=g.x,x=g.y;r.x=y,r.y=x}(0,c.DR)(e,r)},E=function(e,t,n){var r=(0,l.xn)(e);t.forEach((function(e){var t=n.get(e.id),o=B(e);if(o){var i=n.get(o);if(i){var a=r.get(t);a&&(0,c.DR)(a,{boundElements:(e.boundElements||[]).filter((function(e){return e.id!==i&&e.id!==o})).concat({type:"text",id:i})});var l=r.get(i);l&&(0,d.iB)(l)&&(0,c.DR)(l,{containerId:a?t:null})}}}))},S=function(e,t){var n=B(e);if(n){(0,m.kT)(e.id);var r=u.Z.getScene(e).getElement(n);if(r&&r.text){if(!e)return;var o=(r=u.Z.getScene(e).getElement(n)).text,i=r.height,a=r.width,s=F(e),d=ee(e),p=te(e),h=s.height,v=r.baseline;if("n"!==t&&"s"!==t){o&&(o=A(r.originalText,(0,l.mO)(r),d));var g=O(o,(0,l.mO)(r),r.lineHeight);i=g.height,a=g.width,v=g.baseline}if(i>p){var b=(h=J(i,e.type))-s.height,y=(0,f.Yv)(e)||"ne"!==t&&"nw"!==t&&"n"!==t?e.y:e.y-b;(0,c.DR)(e,{height:h,y:y})}(0,c.DR)(r,{text:o,width:a,height:i,baseline:v}),(0,f.Yv)(e)||(0,c.DR)(r,j(e,r))}}},j=function(e,t){if((0,f.Yv)(e))return p._.getBoundTextElementPosition(e,t);var n,r=K(e),o=te(e),i=ee(e);return n=t.verticalAlign===s.oX.TOP?r.y:t.verticalAlign===s.oX.BOTTOM?r.y+(o-t.height):r.y+(o/2-t.height/2),{x:t.textAlign===s.I8.LEFT?r.x:t.textAlign===s.I8.RIGHT?r.x+(i-t.width):r.x+(i/2-t.width/2),y:n}},O=function(e,t,n){e=e.split("\n").map((function(e){return e||" "})).join("\n");var r=parseFloat(t),o=D(e,r,n);return{width:L(e,t),height:o,baseline:C(e,t,n)}},C=function(e,t,n,r){var o=document.createElement("div");o.style.position="absolute",o.style.whiteSpace="pre",o.style.font=t,o.style.minHeight="1em",r&&(o.style.overflow="hidden",o.style.wordBreak="break-word",o.style.whiteSpace="pre-wrap"),o.style.lineHeight=String(n),o.innerText=e,document.body.appendChild(o);var i=document.createElement("span");i.style.display="inline-block",i.style.overflow="hidden",i.style.width="1px",i.style.height="1px",o.appendChild(i);var a=i.offsetTop+i.offsetHeight,l=o.offsetHeight;if(s.G6){var c=D(e,parseFloat(t),n),u=parseFloat(t),d=D(e,Math.round(u),n);c>l&&(a+=c-d),l>c&&(a-=d-c)}return document.body.removeChild(o),a},M=function(e){var t=k(e.text).length;return e.height/t/e.fontSize},P=function(e,t){return e*t},T=function(e,t){return P(e,t)+2*s.gK},I=function(e,t){y||(y=document.createElement("canvas"));var n=y.getContext("2d");n.font=t;var r=n.measureText(e).width;return(0,l.h2)()?10*r:r},L=function(e,t){var n=k(e),r=0;return n.forEach((function(e){r=Math.max(r,I(e,t))})),r},D=function(e,t,n){var r=k(e).length;return P(t,n)*r},A=function(e,t,n){if(!Number.isFinite(n)||n<0)return e;var r=[],o=e.split("\n"),i=I(" ",t),a="",l=0,c=function(e){e.trim()&&r.push(e)},s=function(){a="",l=0};return o.forEach((function(e){if(L(e,t)<=n)r.push(e);else{var o=function(e){var t=e.split("-");return t.length>1&&t.forEach((function(e,n){n!==t.length-1&&(t[n]=e+="-")})),t.join(" ").split(" ")}(e);s();for(var u=0;un){for(c(a),s();o[u].length>0;){var f=String.fromCodePoint(o[u].codePointAt(0)),p=z.calculate(f,t);l+=p,o[u]=o[u].slice(f.length),l>=n?(c(a),a=f,l=p):a+=f}l+i>=n?(c(a),s()):a.endsWith("-")||(a+=" ",l+=i),u++}else for(;ln){c(a),s();break}u++;var v=!h.endsWith("-");if(a+=h,v&&(a+=" "),l+i>=n){v?r.push(a.slice(0,-1)):r.push(a),s();break}}}" "===a.slice(-1)&&(a=a.slice(0,-1),c(a))}})),r.join("\n")},z=(x={},{calculate:function(e,t){var n=e.charCodeAt(0);if(x[t]||(x[t]=[]),!x[t][n]){var r=I(e,t);x[t][n]=r}return x[t][n]},getCache:function(e){return x[e]}}),Z="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),R=function(e,t){var n=N(e);return 0===n?O(Z.split("").join("\n"),e,t).width+2*s.gK:n+2*s.gK},N=function(e){var t=z.getCache(e);if(!t)return 0;var n=t.filter((function(e){return void 0!==e}));return Math.max.apply(Math,(0,i.Z)(n))},B=function(e){var t,n,r;return null!=e&&null!==(t=e.boundElements)&&void 0!==t&&t.length&&(null==e||null===(n=e.boundElements)||void 0===n||null===(r=n.filter((function(e){return"text"===e.type}))[0])||void 0===r?void 0:r.id)||null},H=function(e){if(!e)return null;var t,n=B(e);return n&&(null===(t=u.Z.getScene(e))||void 0===t?void 0:t.getElement(n))||null},W=function(e){return e&&e.containerId&&(null===(t=u.Z.getScene(e))||void 0===t?void 0:t.getElement(e.containerId))||null;var t},F=function(e){return(0,f.Yv)(e)?{width:Math.max(e.width,300),height:e.height}:{width:e.width,height:e.height}},U=function(e,t){if(!(0,f.Yv)(e))return{x:e.x+e.width/2,y:e.y+e.height/2};var n=p._.getPointsGlobalCoordinates(e);if(n.length%2==1){var r=Math.floor(e.points.length/2),o=p._.getPointGlobalCoordinates(e,e.points[r]);return{x:o[0],y:o[1]}}var i=e.points.length/2-1,a=p._.getEditorMidPoints(e,t)[i];return a||(a=p._.getSegmentMidPoint(e,n[i],n[i+1],i+1)),{x:a[0],y:a[1]}},K=function(e){var t=s.gK,n=s.gK;return"ellipse"===e.type&&(t+=e.width/2*(1-Math.sqrt(2)/2),n+=e.height/2*(1-Math.sqrt(2)/2)),"diamond"===e.type&&(t+=e.width/4,n+=e.height/4),{x:e.x+t,y:e.y+n}},V=function(e){var t=W(e);return!t||(0,f.Yv)(t)?e.angle:t.angle},Y=function(e){var t=W(e);return t&&e?(0,f.Yv)(t)?8*s.gK:s.gK:0},G=function(e){return e.some((function(e){if((0,f.Xh)(e)){var t=W(e);return!(0,d.iB)(e)||!(0,f.Yv)(t)}return!1}))},X=function(e){return e.some((function(e){if((0,f.Xh)(e)){var t=W(e);return!(0,d.iB)(e)||!(0,f.Yv)(t)}return(0,d.iB)(e)}))},q=function(e,t,n,r){var i=(0,h.eD)(e,t);if(1===i.length)return(0,f.mG)(i[0],!1)?i[0]:null;for(var a=null,l=e.length-1;l>=0;--l)if(!e[l].isDeleted){var c=(0,d.qf)(e[l]),s=(0,o.Z)(c,4),u=s[0],p=s[1],m=s[2],g=s[3];if((0,f.Yv)(e[l])&&(0,v.Qu)(e[l],t,[n,r])){a=e[l];break}if(u0},re=(r={},(0,a.Z)(r,s.ut.Virgil,1.25),(0,a.Z)(r,s.ut.Helvetica,1.15),(0,a.Z)(r,s.ut.Cascadia,1.2),r),oe=function(e){return e in re?re[e]:re[s.rk]}},6906:function(e,t,n){"use strict";n.d(t,{b_:function(){return j},eR:function(){return S},h_:function(){return _},kT:function(){return E}});var r=n(8950),o=n(7169),i=n(2577),a=n(2975),l=n.n(a),c=n(6066),s=n(6340),u=n(1564),d=n(1974),f=n(2335),p=n(1935),h=n(5710),v=n(6208),m=n(2416),g=n(6938),b=n(6665);function y(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 x(e){for(var t=1;to&&1!==a.value&&(c=o*(a.value-1)/2),t>i&&1!==a.value&&(s=i*(a.value-1)/2),"translate(".concat(c,"px, ").concat(s,"px) scale(").concat(a.value,") rotate(").concat(l,"deg)")},k={},_=function(e,t){var n=k[e]||(k[e]={height:t});return n.height=t,n},E=function(e){k[e]&&delete k[e]},S=function(e){var t,n;return null!==(t=null===(n=k[e])||void 0===n?void 0:n.height)&&void 0!==t?t:null},j=function(e){var t=e.id,n=e.onChange,o=e.onSubmit,a=e.getViewportCoords,y=e.element,E=e.canvas,S=e.excalidrawContainer,j=e.app,O=function(){var e,n=j.state,r=null===(e=u.Z.getScene(y))||void 0===e?void 0:e.getElement(t);if(r){var o=r.textAlign,l=r.verticalAlign;if(r&&(0,d.iB)(r)){var c=r.x,v=r.y,m=(0,h.tl)(r),b=r.width,E=r.height,S=r.width,O=r.height;if(m&&r.containerId){if((0,d.Yv)(m)){var M=g._.getBoundTextElementPosition(m,r);c=M.x,v=M.y}var P,T=function(e,t){if(!t.style.fontFamily||!t.style.fontSize)return!1;var n=t.style.fontFamily.replace(/"/g,"");return(0,s.$g)({fontFamily:e.fontFamily})!==n||"".concat(e.fontSize,"px")!==t.style.fontSize}(r,C),I=(0,h.HE)(m),L=Number(C.style.height.slice(0,-2));if(L>0&&(O=L),T&&(O=r.height),T?P=_(m.id,I.height):(P=k[m.id])||(P=_(m.id,I.height)),b=(0,h.jd)(m),E=(0,h.N2)(m),!(0,d.Yv)(m)&&O>E){var D=(0,h.NS)(O,m.type);return void(0,p.DR)(m,{height:D})}if(!(0,d.Yv)(m)&&I.height>P.height&&Or[r.length-1]?C.selectionStart=Math.max(e-4,r[r.length-1]):C.selectionStart=e,C.selectionEnd=Math.max(C.selectionStart,t-4*r.length))},A=function(){var e=C.selectionStart,t=C.selectionEnd,n=C.value,r=n.slice(0,e).match(/[^\n]*$/)[0].length;return e-=r,n.slice(e,t).split("\n").reduce((function(t,n,r,o){return t.concat(r?t[r-1]+o[r-1].length+1:e)}),[]).reverse()},z=function(e){e.preventDefault(),e.stopPropagation()},Z=!1,R=function(){var e;N();var t=null===(e=u.Z.getScene(y))||void 0===e?void 0:e.getElement(y.id);if(t){var n=C.value,r=(0,h.tl)(t);if(r){if(n=t.text,C.value.trim()){var i=(0,h.xB)(r);i&&i===y.id||(0,p.DR)(r,{boundElements:(r.boundElements||[]).concat({type:"text",id:y.id})})}else{var a;(0,p.DR)(r,{boundElements:null===(a=r.boundElements)||void 0===a?void 0:a.filter((function(e){return!(0,d.iB)(e)}))})}(0,h.oN)(t,r)}o({text:n,viaKeyboard:Z,originalText:C.value})}},N=function(){F||(F=!0,C.onblur=null,C.oninput=null,C.onkeydown=null,U&&U.disconnect(),window.removeEventListener("resize",O),window.removeEventListener("wheel",z,!0),window.removeEventListener("pointerdown",H),window.removeEventListener("pointerup",B),window.removeEventListener("blur",R),W(),C.remove())},B=function e(t){window.removeEventListener("pointerup",e);var n=null==t?void 0:t.target,r=n instanceof HTMLInputElement&&n.closest(".color-picker-input")&&(0,s.s)(n);setTimeout((function(){C.onblur=R,n&&r&&(n.onblur=function(){C.focus()}),r||C.focus()}))},H=function(e){var t=e.target instanceof HTMLInputElement&&e.target.closest(".color-picker-input")&&(0,s.s)(e.target);((e.target instanceof HTMLElement||e.target instanceof SVGElement)&&e.target.closest(".".concat(f.$C.SHAPE_ACTIONS_MENU))&&!(0,s.s)(e.target)||t)&&(C.onblur=null,window.addEventListener("pointerup",B),window.addEventListener("blur",R))},W=u.Z.getScene(y).addCallback((function(){var e;O(),null!==(e=document.activeElement)&&void 0!==e&&e.closest(".color-picker-input")||C.focus()})),F=!1;C.select(),B();var U=null;E&&"ResizeObserver"in window?(U=new window.ResizeObserver((function(){O()}))).observe(E):window.addEventListener("resize",O),window.addEventListener("pointerdown",H),window.addEventListener("wheel",z,{passive:!1,capture:!0}),null==S||S.querySelector(".excalidraw-textEditorContainer").appendChild(C)}},267:function(e,t,n){"use strict";n.d(t,{PC:function(){return m},kK:function(){return v},oY:function(){return g},ox:function(){return u}});var r=n(2577),o=n(8925),i=n(6552),a=n(1047),l=n(1974),c=n(3547),s={mouse:8,pen:16,touch:28},u={e:!0,s:!0,n:!0,w:!0},d={e:!0,s:!0,n:!0,w:!0},f={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},p={e:!0,s:!0,n:!0,w:!0},h=function(e,t,n,o,a,l,c){var s=(0,i.U1)(e+n/2,t+o/2,a,l,c),u=(0,r.Z)(s,2);return[u[0]-n/2,u[1]-o/2,n,o]},v=function(e,t,n,o){var i=(0,r.Z)(e,6),a=i[0],l=i[1],u=i[2],d=i[3],f=i[4],p=i[5],v=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4,g=s[o],b=g/n.value,y=g/n.value,x=g/n.value,w=g/n.value,k=u-a,_=d-l,E=m/n.value,S=(g-2*c.Lu)/(2*n.value),j={nw:v.nw?void 0:h(a-E-x+S,l-E-w+S,b,y,f,p,t),ne:v.ne?void 0:h(u+E-S,l-E-w+S,b,y,f,p,t),sw:v.sw?void 0:h(a-E-x+S,d+E-S,b,y,f,p,t),se:v.se?void 0:h(u+E-S,d+E-S,b,y,f,p,t),rotation:v.rotation?void 0:h(a+k/2-b/2,l-E-w+S-16/n.value,b,y,f,p,t)},O=5*s.mouse/n.value;return Math.abs(k)>O&&(v.n||(j.n=h(a+k/2-b/2,l-E-w+S,b,y,f,p,t)),v.s||(j.s=h(a+k/2-b/2,d+E-S,b,y,f,p,t))),Math.abs(_)>O&&(v.w||(j.w=h(a-E-x+S,l+_/2-y/2,b,y,f,p,t)),v.e||(j.e=h(u+E-S,l+_/2-y/2,b,y,f,p,t))),j},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mouse";if(e.locked)return{};var i={};if("freedraw"===e.type||(0,l.bt)(e)){if(2===e.points.length){var s=(0,r.Z)(e.points,2)[1];0===s[0]||0===s[1]?i=p:s[0]>0&&s[1]<0?i=f:s[0]>0&&s[1]>0?i=p:s[0]<0&&s[1]>0?i=f:s[0]<0&&s[1]<0&&(i=p)}}else(0,a.iB)(e)&&(i=d);var u=(0,l.bt)(e)?c.Lu+8:c.Lu;return v((0,o.qf)(e,!0),e.angle,t,n,i,u)},g=function(e,t){if(t.editingLinearElement)return!1;if(e.length>1)return!0;var n=e[0];return!(0,l.bt)(n)||n.points.length>2}},1974:function(e,t,n){"use strict";n.d(t,{F9:function(){return l},Lx:function(){return p},Mn:function(){return f},QI:function(){return y},UQ:function(){return w},Xh:function(){return b},Xo:function(){return g},Yv:function(){return u},bt:function(){return s},dt:function(){return d},eK:function(){return x},f0:function(){return h},iB:function(){return a},mG:function(){return v},pC:function(){return i},r2:function(){return m},wi:function(){return o}});var r=n(2335),o=function(e){return!!e&&"image"===e.type&&!!e.fileId},i=function(e){return!!e&&"image"===e.type},a=function(e){return null!=e&&"text"===e.type},l=function(e){return null!=e&&c(e.type)},c=function(e){return"freedraw"===e},s=function(e){return null!=e&&d(e.type)},u=function(e){return null!=e&&"arrow"===e.type},d=function(e){return"arrow"===e||"line"===e},f=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!=e&&(!e.locked||!0===t)&&p(e.type)},p=function(e){return"arrow"===e},h=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(null==e||e.locked&&!0!==t||"rectangle"!==e.type&&"diamond"!==e.type&&"ellipse"!==e.type&&"image"!==e.type&&("text"!==e.type||e.containerId))},v=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!=e&&(!e.locked||!0===t)&&("rectangle"===e.type||"diamond"===e.type||"ellipse"===e.type||"image"===e.type||u(e))},m=function(e){return"text"===(null==e?void 0:e.type)||"diamond"===(null==e?void 0:e.type)||"rectangle"===(null==e?void 0:e.type)||"ellipse"===(null==e?void 0:e.type)||"arrow"===(null==e?void 0:e.type)||"freedraw"===(null==e?void 0:e.type)||"line"===(null==e?void 0:e.type)},g=function(e){var t;return v(e)&&!(null===(t=e.boundElements)||void 0===t||!t.some((function(e){return"text"===e.type})))},b=function(e){return null!==e&&"containerId"in e&&null!==e.containerId&&a(e)},y=function(e){return"rectangle"===e},x=function(e,t){return!(e!==r.a6.ADAPTIVE_RADIUS&&e!==r.a6.LEGACY||!y(t.type))||e===r.a6.PROPORTIONAL_RADIUS&&("line"===(n=t.type)||"arrow"===n||"diamond"===n);var n},w=function(e){return"arrow"===e.type||"line"===e.type||"diamond"===e.type?{type:r.a6.PROPORTIONAL_RADIUS}:"rectangle"===e.type?{type:r.a6.ADAPTIVE_RADIUS}:null}},6797:function(e,t,n){"use strict";n.d(t,{_:function(){return h},l:function(){return p}});var r=n(5169),o=n(8821),i=n(2248),a=n(7245),l=n(2312),c=n(5901);function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return u=s()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,c.Z)(o,n.prototype),o},u.apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,(0,l.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,c.Z)(r,e)},d(e)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var o=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.Z)(this,n)}}var p=function(e){(0,i.Z)(n,e);var t=f(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Couldn't export canvas.",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CANVAS_ERROR";return(0,o.Z)(this,n),(e=t.call(this)).name=i,e.message=r,e}return(0,r.Z)(n)}(d(Error)),h=function(e){(0,i.Z)(n,e);var t=f(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Request Aborted";return(0,o.Z)(this,n),t.call(this,e,"AbortError")}return(0,r.Z)(n)}(d(DOMException))},242:function(e,t,n){"use strict";n.d(t,{AI:function(){return E},F$:function(){return f},Fb:function(){return y},Nd:function(){return b},Qy:function(){return w},S_:function(){return k},YS:function(){return x},bO:function(){return m},h6:function(){return _},iE:function(){return g},iJ:function(){return v},yO:function(){return h},zq:function(){return p}});var r=n(1930),o=n(2577),i=n(7169),a=n(75),l=n(5710);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&(l=l.slice(0,s))}if(l.length>0){var u=l[l.length-1];n=f(u,n,t)}}}catch(e){i.e(e)}finally{i.f()}return n},g=function(e,t){return d(d({},e),{},{editingGroupId:t.groupIds.length?t.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:(0,i.Z)({},t.id,!0)})},b=function(e,t){return e.groupIds.includes(t)},y=function(e,t){return e.filter((function(e){return b(e,t)}))},x=function(e,t){return e.groupIds.find((function(e){return t[e]}))},w=function(e,t,n){for(var o=(0,r.Z)(e),i=t?e.indexOf(t):-1,a=i>-1?i:e.length,l=0;l-1?i:o.length;return o.splice(a,0,t),o},_=function(e,t){return e.filter((function(e){return!t[e]}))},E=function(e){var t=new Map;return e.forEach((function(e){var n=0===e.groupIds.length?e.id:e.groupIds[e.groupIds.length-1],o=t.get(n)||[],i=(0,l.WJ)(e);i&&o.push(i),t.set(n,[].concat((0,r.Z)(o),[e]))})),Array.from(t.values())}},8211:function(e,t,n){"use strict";n.d(t,{Fp:function(){return d},G3:function(){return g},Mj:function(){return f},QT:function(){return w},m0:function(){return m},t:function(){return y}});var r=n(8950),o=n(2975),i=n.n(o),a=n(1463),l=n(4451),c=n(2335),s=n(9487),u=n(4739),d={code:"en",label:"English"},f=[{code:"ar-SA",label:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",rtl:!0},{code:"bg-BG",label:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{code:"ca-ES",label:"Catal\xe0"},{code:"cs-CZ",label:"\u010cesky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},{code:"es-ES",label:"Espa\xf1ol"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06cc",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Fran\xe7ais"},{code:"gl-ES",label:"Galego"},{code:"he-IL",label:"\u05e2\u05d1\u05e8\u05d9\u05ea",rtl:!0},{code:"hi-IN",label:"\u0939\u093f\u0928\u094d\u0926\u0940"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"\u65e5\u672c\u8a9e"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},{code:"ko-KR",label:"\ud55c\uad6d\uc5b4"},{code:"ku-TR",label:"Kurd\xee"},{code:"lt-LT",label:"Lietuvi\u0173"},{code:"lv-LV",label:"Latvie\u0161u"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokm\xe5l"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Portugu\xeas Brasileiro"},{code:"pt-PT",label:"Portugu\xeas"},{code:"ro-RO",label:"Rom\xe2n\u0103"},{code:"ru-RU",label:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{code:"sk-SK",label:"Sloven\u010dina"},{code:"sv-SE",label:"Svenska"},{code:"sl-SI",label:"Sloven\u0161\u010dina"},{code:"tr-TR",label:"T\xfcrk\xe7e"},{code:"uk-UA",label:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},{code:"zh-CN",label:"\u7b80\u4f53\u4e2d\u6587"},{code:"zh-TW",label:"\u7e41\u9ad4\u4e2d\u6587"},{code:"vi-VN",label:"Ti\u1ebfng Vi\u1ec7t"},{code:"mr-IN",label:"\u092e\u0930\u093e\u0920\u0940"}].concat([d]).sort((function(e,t){return e.label>t.label?1:-1})).filter((function(e){return l[e.code]>=85})),p="__test__";"production"===c.Vi.DEVELOPMENT&&f.unshift({code:p,label:"test language"},{code:"".concat(p,".rtl"),label:"\u202atest language (rtl)\u202c",rtl:!0});var h=d,v={},m=function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h=t,document.documentElement.dir=h.rtl?"rtl":"ltr",document.documentElement.lang=h.code,!t.code.startsWith(p)){e.next=7;break}v={},e.next=17;break;case 7:return e.prev=7,e.next=10,n(940)("./".concat(h.code,".json"));case 10:v=e.sent,e.next=17;break;case 13:e.prev=13,e.t0=e.catch(7),console.error("Failed to load language ".concat(t.code,":"),e.t0.message),v=a;case 17:s.e_.set(x,t.code);case 18:case"end":return e.stop()}}),e,null,[[7,13]])})));return function(t){return e.apply(this,arguments)}}(),g=function(){return h},b=function(e,t){for(var n=0;n",PERIOD:".",COMMA:",",A:"a",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",L:"l",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",V:"v",X:"x",Y:"y",Z:"z",K:"k",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},a=function(e){return e===i.ARROW_LEFT||e===i.ARROW_RIGHT||e===i.ARROW_DOWN||e===i.ARROW_UP},l=function(e){return e.altKey},c=function(e){return e.shiftKey},s=function(e){return e.shiftKey}},6552:function(e,t,n){"use strict";n.d(t,{EK:function(){return E},H5:function(){return u},Jj:function(){return _},LW:function(){return s},N_:function(){return y},U1:function(){return a},c9:function(){return f},eH:function(){return w},g6:function(){return d},lk:function(){return k},wC:function(){return m},xj:function(){return l},yB:function(){return b},yW:function(){return g},yq:function(){return c}});var r=n(2335),o=n(3063),i=n(8925),a=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]},l=function(e,t,n){return a(e[0],e[1],t[0],t[1],n)},c=function(e,t,n,r,o,i,a,l){var c=Math.cos(r),s=Math.sin(r);return e.e&&e.w?t+=o+a:e.e?(t+=o*(1+c),n+=o*s,t+=a*(1-c),n+=a*-s):e.w&&(t+=o*(1-c),n+=o*-s,t+=a*(1+c),n+=a*s),e.n&&e.s?n+=i+l:e.n?(t+=i*s,n+=i*(1-c),t+=l*-s,n+=l*(1+c)):e.s&&(t+=i*-s,n+=i*(1+c),t+=l*s,n+=l*(1-c)),[t,n]},s=function(e,t,n,r){var o=n-e,i=r-t;return Math.hypot(o,i)},u=function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.length>=3){var n=[e[0],e[e.length-1]],o=n[0],i=n[1];return s(o[0],o[1],i[0],i[1])<=r.qx/t}return!1},f=function(e,t,n){var r=e.length;if(r<3)return!1;for(var o=[Number.MAX_SAFE_INTEGER,n],i=[t,n],a=0,l=0;l=Math.min(e[0],n[0])&&t[1]<=Math.max(e[1],n[1])&&t[1]>=Math.min(e[1],n[1])},h=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},v=function(e,t,n,r){var o=h(e,t,n),i=h(e,t,r),a=h(n,r,e),l=h(n,r,t);return o!==i&&a!==l||!(0!==o||!p(e,n,t))||!(0!==i||!p(e,r,t))||!(0!==a||!p(n,e,r))||!(0!==l||!p(n,t,r))},m=function(e,t,n){return n?[Math.round(e/n)*n,Math.round(t/n)*n]:[e,t]},g=function(e,t){var n,o,i;if((null===(n=t.roundness)||void 0===n?void 0:n.type)===r.a6.PROPORTIONAL_RADIUS||(null===(o=t.roundness)||void 0===o?void 0:o.type)===r.a6.LEGACY)return e*r.Rx;if((null===(i=t.roundness)||void 0===i?void 0:i.type)===r.a6.ADAPTIVE_RADIUS){var a,l,c=null!==(a=null===(l=t.roundness)||void 0===l?void 0:l.value)&&void 0!==a?a:r._9;return e<=c/r.Rx?e*r.Rx:c}return 0},b=function(e,t){var n=(0,o.R2)(e);if(!n)return null;for(var r=(0,i.CM)(n[0]),a=[0,0],l=0,c=1/0,u=null;l0;){var i=y(n[0],n[1],n[2],n[3],o);r.push([i[0],i[1]]),o-=.05}return r.length&&_(r.at(-1),t)&&r.push([t[0],t[1]]),r}(e,t),o=0,i=0;oi&&c--,r[c]===i?c/o:1-(c+(i-r[c])/(r[c+1]-r[c]))/o},_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},E=function(e){return Math.round(e/Math.PI*1e4)%5e3==0}},3024:function(e,t,n){"use strict";n.d(t,{$D:function(){return E},Fl:function(){return _},I_:function(){return f.I_},N7:function(){return g.N7},NI:function(){return f.NI},NL:function(){return k},ZY:function(){return m.ZY},cT:function(){return m.cT},i1:function(){return S},lV:function(){return m.lV},zh:function(){return b.zh}});var r=n(8950),o=n(7169),i=n(2975),a=n.n(i),l=n(4162),c=n(8897),s=n(679),u=n(2335),d=n(673),f=n(5523),p=n(6665),h=n(1564),v=n(2791),m=n(434),g=n(3063),b=n(7053);function y(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 x(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:function(e){return e};return e*r(.5-t*(.5-n))}function v(e,t){return[e[0]+t[0],e[1]+t[1]]}function m(e,t){return[e[0]-t[0],e[1]-t[1]]}function g(e,t){return[e[0]*t,e[1]*t]}function b(e){return[e[1],-e[0]]}function y(e,t){return e[0]*t[0]+e[1]*t[1]}function x(e,t){return e[0]===t[0]&&e[1]===t[1]}function w(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(m(e,t))}function k(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function _(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function E(e,t,n){var r=Math.sin(n),o=Math.cos(n),i=e[0]-t[0],a=e[1]-t[1],l=i*r+a*o;return[i*o-a*r+t[0],l+t[1]]}function S(e,t,n){return v(e,g(m(t,e),n))}function j(e,t,n){return v(e,g(t,n))}var O=Math.min,C=Math.PI+1e-4;function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.size,r=void 0===n?16:n,o=t.smoothing,i=void 0===o?.5:o,a=t.thinning,l=void 0===a?.5:a,c=t.simulatePressure,s=void 0===c||c,u=t.easing,d=void 0===u?function(e){return e}:u,f=t.start,p=void 0===f?{}:f,x=t.end,_=void 0===x?{}:x,M=t.last,P=void 0!==M&&M,T=p.cap,I=void 0===T||T,L=p.easing,D=void 0===L?function(e){return e*(2-e)}:L,A=_.cap,z=void 0===A||A,Z=_.easing,R=void 0===Z?function(e){return--e*e*e+1}:Z;if(0===e.length||r<=0)return[];for(var N,B=e[e.length-1].runningLength,H=!1===p.taper?0:!0===p.taper?Math.max(r,B):p.taper,W=!1===_.taper?0:!0===_.taper?Math.max(r,B):_.taper,F=Math.pow(r*i,2),U=[],K=[],V=e.slice(0,10).reduce((function(e,t){var n=t.pressure;if(s){var o=O(1,t.distance/r),i=O(1,1-o);n=O(1,e+.275*o*(i-e))}return(e+n)/2}),e[0].pressure),Y=h(r,l,e[e.length-1].pressure,d),G=e[0].vector,X=e[0].point,q=X,$=X,Q=q,J=!1,ee=0;eeF)&&(U.push($),X=$),Q=v(re,ge),(ee<=1||w(q,Q)>F)&&(K.push(Q),q=Q),V=te,G=oe}else{var be=g(b(oe),Y);U.push(m(re,be)),K.push(v(re,be))}}}var ye=e[0].point.slice(0,2),xe=e.length>1?e[e.length-1].point.slice(0,2):v(e[0].point,[1,1]),we=[],ke=[];if(1===e.length){if(!H&&!W||P){for(var _e=j(ye,k(b(m(ye,xe))),-(N||Y)),Ee=[],Se=1/13,je=Se;je<=1;je+=Se)Ee.push(E(_e,ye,2*C*je));return Ee}}else{if(!(H||W&&1===e.length))if(I)for(var Oe=1/13,Ce=Oe;Ce<=1;Ce+=Oe){var Me=E(K[0],ye,C*Ce);we.push(Me)}else{var Pe=m(U[0],K[0]),Te=g(Pe,.5),Ie=g(Pe,.51);we.push(m(ye,Te),m(ye,Ie),v(ye,Ie),v(ye,Te))}var Le=b(function(e){return[-e[0],-e[1]]}(e[e.length-1].vector));if(W||H&&1===e.length)ke.push(xe);else if(z)for(var De=j(xe,Le,Y),Ae=1/29,ze=Ae;ze<1;ze+=Ae)ke.push(E(De,xe,3*C*ze));else ke.push(v(xe,g(Le,Y)),v(xe,g(Le,.99*Y)),m(xe,g(Le,.99*Y)),m(xe,g(Le,Y)))}return U.concat(ke,K.reverse(),we)}(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.streamline,o=void 0===r?.5:r,i=n.size,a=void 0===i?16:i,c=n.last,s=void 0!==c&&c;if(0===e.length)return[];var u=.15+.85*(1-o),d=Array.isArray(e[0])?e:e.map((function(e){var t=e.x,n=e.y,r=e.pressure;return[t,n,void 0===r?.5:r]}));if(2===d.length){var f=d[1];d=d.slice(0,-1);for(var p=1;p<5;p++)d.push(S(d[0],f,p/4))}1===d.length&&(d=[].concat(l(d),[[].concat(l(v(d[0],[1,1])),l(d[0].slice(2)))]));for(var h=[{point:[d[0][0],d[0][1]],pressure:d[0][2]>=0?d[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,b=0,y=h[0],w=d.length-1,E=1;E=0?d[E][2]:.5,vector:k(m(y.point,j)),distance:O,runningLength:b},h.push(y)}}return h[0].vector=(null==(t=h[1])?void 0:t.vector)||[0,0],h}(e,t),t)}var P=n(5710),T=n(6938);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;tr||b*y>r)&&(y=Math.min(r/g,r/b)),g*b*y*y>n&&(y=Math.sqrt(n/(g*b))),{width:g=Math.floor(g*y),height:b=Math.floor(b*y),scale:y}}(e,t),p=f.width,h=f.height,v=f.scale;o.width=p,o.height=h;var m=0,g=0;if((0,a.bt)(e)||(0,a.F9)(e)){var b=(0,c.qf)(e),y=(0,i.Z)(b,2),x=y[0],w=y[1];m=e.x>x?(0,s.TE)(e.x,x)*window.devicePixelRatio*v:0,g=e.y>w?(0,s.TE)(e.y,w)*window.devicePixelRatio*v:0,l.translate(m,g)}l.save(),l.translate(u*v,u*v),l.scale(window.devicePixelRatio*v,window.devicePixelRatio*v);var k=d.Z.canvas(o);return Z(e,n)&&(l.filter=D),K(e,k,l,n),l.restore(),{element:e,canvas:o,theme:n.theme,scale:v,zoomValue:t.value,canvasOffsetX:m,canvasOffsetY:g,boundTextElementVersion:(null===(r=(0,P.WJ)(e))||void 0===r?void 0:r.version)||null}},W=14,F=document.createElement("img");F.src="data:".concat(p.LO.svg,",").concat(encodeURIComponent(''));var U=document.createElement("img");U.src="data:".concat(p.LO.svg,",").concat(encodeURIComponent(''));var K=function(e,t,n,r){switch(n.globalAlpha=e.opacity/100,e.type){case"rectangle":case"diamond":case"ellipse":n.lineJoin="round",n.lineCap="round",t.draw(G(e));break;case"arrow":case"line":n.lineJoin="round",n.lineCap="round",G(e).forEach((function(e){t.draw(e)}));break;case"freedraw":n.save(),n.fillStyle=e.strokeColor;var o=function(e){return oe.get(e)}(e),i=G(e);i&&t.draw(i),n.fillStyle=e.strokeColor,n.fill(o),n.restore();break;case"image":var l,c=(0,a.wi)(e)?null===(l=r.imageCache.get(e.fileId))||void 0===l?void 0:l.image:void 0;null==c||c instanceof Promise?function(e,t,n){t.fillStyle="#E7E7E7",t.fillRect(0,0,e.width,e.height);var r=Math.min(e.width,e.height),o=Math.min(r,Math.min(.4*r,100));t.drawImage("error"===e.status?U:F,e.width/2-o/2,e.height/2-o/2,o,o)}(e,n,r.zoom.value):n.drawImage(c,0,0,e.width,e.height);break;default:if(!(0,a.iB)(e))throw new Error("Unimplemented type ".concat(e.type));var u=(0,s.dZ)(e.text),d=u&&!n.canvas.isConnected;d&&document.body.appendChild(n.canvas),n.canvas.setAttribute("dir",u?"rtl":"ltr"),n.save(),n.font=(0,s.mO)(e),n.fillStyle=e.strokeColor,n.textAlign=e.textAlign;for(var f=e.text.replace(/\r\n?/g,"\n").split("\n"),p="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,h=(0,P.Rg)(e.fontSize,e.lineHeight),v=e.height-e.baseline,m=0;m1&&void 0!==arguments[1]&&arguments[1],n={seed:e.seed,strokeLineDash:"dashed"===e.strokeStyle?R(e.strokeWidth):"dotted"===e.strokeStyle?N(e.strokeWidth):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,preserveVertices:t};switch(e.type){case"rectangle":case"diamond":case"ellipse":return n.fillStyle=e.fillStyle,n.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor,"ellipse"===e.type&&(n.curveFitting=1),n;case"line":case"freedraw":return(0,u.g6)(e.points)&&(n.fillStyle=e.fillStyle,n.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor),n;case"arrow":return n;default:throw new Error("Unimplemented type ".concat(e.type))}},Q=function(e,t){var n=Y.get(e);if(void 0===n)switch(V.delete(e),e.type){case"rectangle":if(e.roundness){var o=e.width,a=e.height,l=(0,u.yW)(Math.min(o,a),e);n=t.path("M ".concat(l," 0 L ").concat(o-l," 0 Q ").concat(o," 0, ").concat(o," ").concat(l," L ").concat(o," ").concat(a-l," Q ").concat(o," ").concat(a,", ").concat(o-l," ").concat(a," L ").concat(l," ").concat(a," Q 0 ").concat(a,", 0 ").concat(a-l," L 0 ").concat(l," Q 0 0, ").concat(l," 0"),$(e,!0))}else n=t.rectangle(0,0,e.width,e.height,$(e));X(e,n);break;case"diamond":var s=(0,c.UC)(e),d=(0,i.Z)(s,8),f=d[0],p=d[1],h=d[2],v=d[3],m=d[4],g=d[5],b=d[6],y=d[7];if(e.roundness){var x=(0,u.yW)(Math.abs(f-b),e),w=(0,u.yW)(Math.abs(v-p),e);n=t.path("M ".concat(f+x," ").concat(p+w," L ").concat(h-x," ").concat(v-w,"\n C ").concat(h," ").concat(v,", ").concat(h," ").concat(v,", ").concat(h-x," ").concat(v+w,"\n L ").concat(m+x," ").concat(g-w,"\n C ").concat(m," ").concat(g,", ").concat(m," ").concat(g,", ").concat(m-x," ").concat(g-w,"\n L ").concat(b+x," ").concat(y+w,"\n C ").concat(b," ").concat(y,", ").concat(b," ").concat(y,", ").concat(b+x," ").concat(y-w,"\n L ").concat(f-x," ").concat(p+w,"\n C ").concat(f," ").concat(p,", ").concat(f," ").concat(p,", ").concat(f+x," ").concat(p+w),$(e,!0))}else n=t.polygon([[f,p],[h,v],[m,g],[b,y]],$(e));X(e,n);break;case"ellipse":n=t.ellipse(e.width/2,e.height/2,e.width,e.height,$(e)),X(e,n);break;case"line":case"arrow":var k=$(e),_=e.points.length?e.points:[[0,0]];if(n=e.roundness?[t.curve(_,k)]:k.fill?[t.polygon(_,k)]:[t.linearPath(_,k)],"arrow"===e.type){var E=e.startArrowhead,S=void 0===E?null:E,j=e.endArrowhead,O=void 0===j?"arrow":j,C=function(e,n,r,o){var a=(0,c.Y5)(e,n,r,o);if(null===a)return[];if("dot"===o){var l=(0,i.Z)(a,3),s=l[0],u=l[1],d=l[2];return[t.circle(s,u,d,L(L({},k),{},{fill:e.strokeColor,fillStyle:"solid",stroke:"none"}))]}if("triangle"===o){var f=(0,i.Z)(a,6),p=f[0],h=f[1],v=f[2],m=f[3],g=f[4],b=f[5];return delete k.strokeLineDash,[t.polygon([[p,h],[v,m],[g,b],[p,h]],L(L({},k),{},{fill:e.strokeColor,fillStyle:"solid"}))]}var y=(0,i.Z)(a,6),x=y[0],w=y[1],_=y[2],E=y[3],S=y[4],j=y[5];if("dotted"===e.strokeStyle){var O=N(e.strokeWidth-1);k.strokeLineDash=[O[0],O[1]-1]}else delete k.strokeLineDash;return[t.line(_,E,x,w,k),t.line(S,j,x,w,k)]};if(null!==S){var M,P=C(e,n,"start",S);(M=n).push.apply(M,(0,r.Z)(P))}if(null!==O){var T,I=C(e,n,"end",O);(T=n).push.apply(T,(0,r.Z)(I))}}X(e,n);break;case"freedraw":ie(e),n=(0,u.g6)(e.points)?t.polygon(e.points,L(L({},$(e)),{},{stroke:"none"})):null,X(e,n);break;case"text":case"image":X(e,null)}},J=function(e,t){var n,r=t?t.zoom:A.zoom,o=V.get(e),i=o&&o.zoomValue!==r.value&&!(null!=t&&t.shouldCacheIgnoreZoom),a=(null===(n=(0,P.WJ)(e))||void 0===n?void 0:n.version)||null;if(!o||i||o.theme!==t.theme||o.boundTextElementVersion!==a){var l=H(e,r,t);return V.set(e,l),l}return o},ee=function(e,t,n,r){var o=e.element,l=B(o),u=e.scale,d=(0,c.qf)(o),f=(0,i.Z)(d,4),h=f[0],v=f[1],m=f[2],g=f[3];(0,a.F9)(o)&&(h=Math.floor(h),m=Math.ceil(m),v=Math.floor(v),g=Math.ceil(g));var b=((h+m)/2+r.scrollX)*window.devicePixelRatio,y=((v+g)/2+r.scrollY)*window.devicePixelRatio;n.save(),n.scale(1/window.devicePixelRatio,1/window.devicePixelRatio);var x=(0,P.WJ)(o);if((0,a.Yv)(o)&&x){var w=document.createElement("canvas"),k=w.getContext("2d"),_=Math.max((0,s.TE)(h,m),(0,s.TE)(v,g));w.width=_*window.devicePixelRatio*u+l*e.scale*10,w.height=_*window.devicePixelRatio*u+l*e.scale*10;var E=(w.width-e.canvas.width)/2,S=(w.height-e.canvas.height)/2;k.translate(w.width/2,w.height/2),k.rotate(o.angle),k.drawImage(e.canvas,-e.canvas.width/2,-e.canvas.height/2,e.canvas.width,e.canvas.height);var j=(0,c.qf)(x),O=(0,i.Z)(j,6),C=O[4],M=O[5];k.rotate(-o.angle);var T=w.width/2-(C-h)*window.devicePixelRatio*u-E-l*u,I=w.height/2-(M-v)*window.devicePixelRatio*u-S-l*u;k.translate(-T,-I),k.clearRect(-(x.width/2+p.gK)*window.devicePixelRatio*u,-(x.height/2+p.gK)*window.devicePixelRatio*u,(x.width+2*p.gK)*window.devicePixelRatio*u,(x.height+2*p.gK)*window.devicePixelRatio*u),n.translate(b,y),n.drawImage(w,-(m-h)/2*window.devicePixelRatio-E/u-l,-(g-v)/2*window.devicePixelRatio-S/u-l,w.width/u,w.height/u)}else if(n.translate(b,y),n.rotate(o.angle),"scale"in e.element&&!z(o,r)&&n.scale(e.element.scale[0],e.element.scale[1]),n.translate(-b,-y),n.drawImage(e.canvas,(h+r.scrollX)*window.devicePixelRatio-l*e.scale/e.scale,(v+r.scrollY)*window.devicePixelRatio-l*e.scale/e.scale,e.canvas.width/e.scale,e.canvas.height/e.scale),"true"==={REACT_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",REACT_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",REACT_APP_LIBRARY_URL:"https://libraries.excalidraw.com",REACT_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",REACT_APP_PORTAL_URL:"https://portal.excalidraw.com",REACT_APP_WS_SERVER_URL:"",REACT_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',REACT_APP_GOOGLE_ANALYTICS_ID:"UA-387204-13",REACT_APP_MATOMO_URL:"https://excalidraw.matomo.cloud/",REACT_APP_CDN_MATOMO_TRACKER_URL:"//cdn.matomo.cloud/excalidraw.matomo.cloud/matomo.js",REACT_APP_MATOMO_SITE_ID:"1",REACT_APP_PLUS_APP:"https://app.excalidraw.com",PKG_NAME:"@excalidraw/excalidraw",PKG_VERSION:"0.15.2",IS_EXCALIDRAW_NPM_PACKAGE:!0}.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX&&(0,a.Xo)(o)){var L=(0,P.cw)(o);n.strokeStyle="#c92a2a",n.lineWidth=3,n.strokeRect((L.x+r.scrollX)*window.devicePixelRatio,(L.y+r.scrollY)*window.devicePixelRatio,(0,P.jd)(o)*window.devicePixelRatio,(0,P.N2)(o)*window.devicePixelRatio)}n.restore()},te=function(e,t,n,r,o){var l=t.generator;switch(e.type){case"selection":n.save(),n.translate(e.x+r.scrollX,e.y+r.scrollY),n.fillStyle="rgba(0, 0, 200, 0.04)";var f=.5/r.zoom.value;n.fillRect(f,f,e.width,e.height),n.lineWidth=1/r.zoom.value,n.strokeStyle="rgb(105, 101, 219)",n.strokeRect(f,f,e.width,e.height),n.restore();break;case"freedraw":if(Q(e,l),r.isExporting){var p=(0,c.qf)(e),h=(0,i.Z)(p,4),v=h[0],m=h[1],g=h[2],b=h[3],y=(v+g)/2+r.scrollX,x=(m+b)/2+r.scrollY,w=(g-v)/2-(e.x-v),k=(b-m)/2-(e.y-m);n.save(),n.translate(y,x),n.rotate(e.angle),n.translate(-w,-k),K(e,t,n,r),n.restore()}else{var _=J(e,r);ee(_,0,n,r)}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":if(Q(e,l),r.isExporting){var E=(0,c.qf)(e),S=(0,i.Z)(E,4),j=S[0],O=S[1],C=S[2],M=S[3],I=(j+C)/2+r.scrollX,L=(O+M)/2+r.scrollY,D=(C-j)/2-(e.x-j),A=(M-O)/2-(e.y-O);if((0,a.iB)(e)){var z=(0,P.tl)(e);if((0,a.Yv)(z)){var R=T._.getBoundTextElementPosition(z,e);D=(C-j)/2-(R.x-j),A=(M-O)/2-(R.y-O)}}n.save(),n.translate(I,L),Z(e,r)&&(n.filter="none");var N=(0,P.WJ)(e);if((0,a.Yv)(e)&&N){var H=document.createElement("canvas"),W=H.getContext("2d"),F=Math.max((0,s.TE)(j,C),(0,s.TE)(O,M)),U=B(e);H.width=F*o.exportScale+10*U*o.exportScale,H.height=F*o.exportScale+10*U*o.exportScale,W.translate(H.width/2,H.height/2),W.scale(o.exportScale,o.exportScale),D=e.width/2-(e.x-j),A=e.height/2-(e.y-O),W.rotate(e.angle);var V=d.Z.canvas(H);W.translate(-D,-A),K(e,V,W,r),W.translate(D,A),W.rotate(-e.angle);var Y=(0,c.qf)(N),G=(0,i.Z)(Y,6),X=(j+C)/2-G[4],q=(O+M)/2-G[5];W.translate(-X,-q),W.clearRect(-N.width/2,-N.height/2,N.width,N.height),n.scale(1/o.exportScale,1/o.exportScale),n.drawImage(H,-H.width/2,-H.height/2,H.width,H.height)}else n.rotate(e.angle),"image"===e.type&&n.scale(e.scale[0],e.scale[1]),n.translate(-D,-A),K(e,t,n,r);n.restore()}else{var $=J(e,r),te=n.imageSmoothingEnabled;null!=r&&r.shouldCacheIgnoreZoom||e.angle&&!(0,u.EK)(e.angle)||(n.imageSmoothingEnabled=!1),ee($,0,n,r),n.imageSmoothingEnabled=te}break;default:throw new Error("Unimplemented type ".concat(e.type))}},ne=function(e,t,n){if(void 0===n)return e.draw(t);var r={sets:t.sets,shape:t.shape,options:L(L({},t.options),{},{fixedDecimalPlaceDigits:n})};return e.draw(r)},re=function(e,t,n,r,o,l,d){var f=(0,c.qf)(e),h=(0,i.Z)(f,4),v=h[0],m=h[1],g=h[2],b=h[3],y=(g-v)/2-(e.x-v),x=(b-m)/2-(e.y-m);if((0,a.iB)(e)){var w=(0,P.tl)(e);if((0,a.Yv)(w)){var k=(0,c.qf)(w),_=(0,i.Z)(k,4),E=_[0],S=_[1],j=_[2],O=_[3],C=T._.getBoundTextElementPosition(w,e);y=(j-E)/2-(C.x-E),x=(O-S)/2-(C.y-S),o=o+C.x-e.x,l=l+C.y-e.y}}var M=180*e.angle/Math.PI,I=t.generator,L=n;if(e.link){var A=n.ownerDocument.createElementNS(p.hR,"a");A.setAttribute("href",e.link),L.appendChild(A),L=A}switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":Q(e,I);var z=ne(t,G(e),p.zK),Z=e.opacity/100;1!==Z&&(z.setAttribute("stroke-opacity","".concat(Z)),z.setAttribute("fill-opacity","".concat(Z))),z.setAttribute("stroke-linecap","round"),z.setAttribute("transform","translate(".concat(o||0," ").concat(l||0,") rotate(").concat(M," ").concat(y," ").concat(x,")")),L.appendChild(z);break;case"line":case"arrow":var R=(0,P.WJ)(e),N=n.ownerDocument.createElementNS(p.hR,"mask");if(R){N.setAttribute("id","mask-".concat(e.id));var B=n.ownerDocument.createElementNS(p.hR,"rect");o=o||0,l=l||0,B.setAttribute("x","0"),B.setAttribute("y","0"),B.setAttribute("fill","#fff"),B.setAttribute("width","".concat(e.width+100+o)),B.setAttribute("height","".concat(e.height+100+l)),N.appendChild(B);var H=n.ownerDocument.createElementNS(p.hR,"rect"),W=T._.getBoundTextElementPosition(e,R),F=o+W.x-e.x,U=l+W.y-e.y;H.setAttribute("x",F.toString()),H.setAttribute("y",U.toString()),H.setAttribute("fill","#000"),H.setAttribute("width","".concat(R.width)),H.setAttribute("height","".concat(R.height)),H.setAttribute("opacity","1"),N.appendChild(H)}Q(e,I);var K=n.ownerDocument.createElementNS(p.hR,"g");R&&K.setAttribute("mask","url(#mask-".concat(e.id,")"));var V=e.opacity/100;K.setAttribute("stroke-linecap","round"),G(e).forEach((function(n){var r=ne(t,n,p.zK);1!==V&&(r.setAttribute("stroke-opacity","".concat(V)),r.setAttribute("fill-opacity","".concat(V))),r.setAttribute("transform","translate(".concat(o||0," ").concat(l||0,") rotate(").concat(M," ").concat(y," ").concat(x,")")),"line"===e.type&&(0,u.g6)(e.points)&&"transparent"!==e.backgroundColor&&r.setAttribute("fill-rule","evenodd"),K.appendChild(r)})),L.appendChild(K),L.append(N);break;case"freedraw":Q(e,I),ie(e);var Y=e.opacity/100,X=G(e),q=X?ne(t,X,p.zK):n.ownerDocument.createElementNS(p.hR,"g");1!==Y&&(q.setAttribute("stroke-opacity","".concat(Y)),q.setAttribute("fill-opacity","".concat(Y))),q.setAttribute("transform","translate(".concat(o||0," ").concat(l||0,") rotate(").concat(M," ").concat(y," ").concat(x,")")),q.setAttribute("stroke","none");var $=n.ownerDocument.createElementNS(p.hR,"path");$.setAttribute("fill",e.strokeColor),$.setAttribute("d",ae(e)),q.appendChild($),L.appendChild(q);break;case"image":var J=Math.round(e.width),ee=Math.round(e.height),te=(0,a.wi)(e)&&r[e.fileId];if(te){var re="image-".concat(te.id),oe=n.querySelector("#".concat(re));if(!oe){(oe=n.ownerDocument.createElementNS(p.hR,"symbol")).id=re;var le=n.ownerDocument.createElementNS(p.hR,"image");le.setAttribute("width","100%"),le.setAttribute("height","100%"),le.setAttribute("href",te.dataURL),oe.appendChild(le),L.prepend(oe)}var ce=n.ownerDocument.createElementNS(p.hR,"use");if(ce.setAttribute("href","#".concat(re)),d&&te.mimeType!==p.LO.svg&&ce.setAttribute("filter",D),ce.setAttribute("width","".concat(J)),ce.setAttribute("height","".concat(ee)),1!==e.scale[0]||1!==e.scale[1]){var se=1!==e.scale[0]?-J:0,ue=1!==e.scale[1]?-ee:0;ce.setAttribute("transform","scale(".concat(e.scale[0],", ").concat(e.scale[1],") translate(").concat(se," ").concat(ue,")"))}var de=n.ownerDocument.createElementNS(p.hR,"g");de.appendChild(ce),de.setAttribute("transform","translate(".concat(o||0," ").concat(l||0,") rotate(").concat(M," ").concat(y," ").concat(x,")")),L.appendChild(de)}break;default:if(!(0,a.iB)(e))throw new Error("Unimplemented type ".concat(e.type));var fe=e.opacity/100,pe=n.ownerDocument.createElementNS(p.hR,"g");1!==fe&&(pe.setAttribute("stroke-opacity","".concat(fe)),pe.setAttribute("fill-opacity","".concat(fe))),pe.setAttribute("transform","translate(".concat(o||0," ").concat(l||0,") rotate(").concat(M," ").concat(y," ").concat(x,")"));for(var he=e.text.replace(/\r\n?/g,"\n").split("\n"),ve=(0,P.Rg)(e.fontSize,e.lineHeight),me="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,ge=(0,s.dZ)(e.text)?"rtl":"ltr",be="center"===e.textAlign?"middle":"right"===e.textAlign||"rtl"===ge?"end":"start",ye=0;ye=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n8&&void 0!==arguments[8]&&arguments[8];e.save(),e.translate(i,a),e.rotate(l),c&&e.fillRect(t-i,n-a,r,o),e.strokeRect(t-i,n-a,r,o),e.restore()},O=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fill(),o&&e.stroke()},C=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];e.strokeStyle="#5e5ad8",e.setLineDash([]),e.fillStyle="rgba(255, 255, 255, 0.9)",i?e.fillStyle="rgba(134, 131, 226, 0.9)":a&&(e.fillStyle="rgba(177, 151, 252, 0.7)"),O(e,r[0],r[1],o/n.zoom.value,!a)},M=function(e,t,n,r){if(t.selectedLinearElement){e.save(),e.translate(n.scrollX,n.scrollY),e.lineWidth=1/n.zoom.value;var o=f._.getPointsGlobalCoordinates(r),i=f._.POINT_HANDLE_SIZE,a=t.editingLinearElement?i:i/2;o.forEach((function(r,o){var i,l,c=!(null===(i=t.editingLinearElement)||void 0===i||null===(l=i.selectedPointsIndices)||void 0===l||!l.includes(o));C(e,t,n,r,a,c)})),f._.getEditorMidPoints(r,t).filter((function(e){return null!==e})).forEach((function(r){var l;null!=t&&null!==(l=t.selectedLinearElement)&&void 0!==l&&l.segmentMidPointHoveredCoords&&f._.arePointsEqual(r,t.selectedLinearElement.segmentMidPointHoveredCoords)?t.editingLinearElement?(C(e,t,n,r,a,!1),P(r,e,n)):(P(r,e,n),C(e,t,n,r,a,!1)):(t.editingLinearElement||2===o.length)&&C(e,t,n,r,i/2,!1,!0)})),e.restore()}},P=function(e,t,n){t.fillStyle="rgba(105, 101, 219, 0.4)",O(t,e[0],e[1],f._.POINT_HANDLE_SIZE/n.zoom.value,!1)},T=function(e){var t,n=e.elements,h=e.appState,g=e.scale,y=e.rc,k=e.canvas,_=e.renderConfig;if(null===k)return{atLeastOneVisibleElement:!1};var O=_.renderScrollbars,C=void 0===O||O,T=_.renderSelection,I=void 0===T||T,L=_.renderGrid,Z=void 0===L||L,R=_.isExporting,H=_.selectionColor||a.black,W=k.getContext("2d");W.setTransform(1,0,0,1,0,0),W.save(),W.scale(g,g);var F=k.width/g,U=k.height/g;R&&"dark"===_.theme&&(W.filter=b.ZF),"string"==typeof _.viewBackgroundColor?(("transparent"===_.viewBackgroundColor||5===_.viewBackgroundColor.length||9===_.viewBackgroundColor.length||/(hsla|rgba)\(/.test(_.viewBackgroundColor))&&W.clearRect(0,0,F,U),W.save(),W.fillStyle=_.viewBackgroundColor,W.fillRect(0,0,F,U),W.restore()):W.clearRect(0,0,F,U),W.save(),W.scale(_.zoom.value,_.zoom.value),Z&&h.gridSize&&function(e,t,n,r,o,i){e.save(),e.strokeStyle="rgba(0,0,0,0.1)",e.beginPath();for(var a=n;a=0&&function(e,t,n){var r,o,i=t.selectedLinearElement,a=i.elementId,l=i.hoverPointIndex;if(null===(r=t.editingLinearElement)||void 0===r||null===(o=r.selectedPointsIndices)||void 0===o||!o.includes(l)){var c=f._.getElement(a);if(c){var s=f._.getPointAtIndexGlobalCoordinates(c,l);e.save(),e.translate(n.scrollX,n.scrollY),P(s,e,n),e.restore()}}}(W,h,_),I&&!h.multiElement&&!h.editingLinearElement){var X,q=(0,m.oY)(G,h),$=G.map((function(e){return e.id}));if(1===G.length&&(0,x.bt)(G[0])&&(null===(X=h.selectedLinearElement)||void 0===X?void 0:X.elementId)===G[0].id&&!G[0].locked&&M(W,h,_,G[0]),q){var Q,J=n.reduce((function(e,t){var n=[];if($.includes(t.id)&&!(0,p.zq)(h,t)&&n.push(H),_.remoteSelectedElementIds[t.id]&&n.push.apply(n,(0,i.Z)(_.remoteSelectedElementIds[t.id].map((function(e){return(0,d.X)(e,h).background})))),n.length){var r=(0,l.qf)(t,!0),a=(0,o.Z)(r,6),c=a[0],s=a[1],u=a[2],f=a[3],v=a[4],m=a[5];e.push({angle:t.angle,elementX1:c,elementY1:s,elementX2:u,elementY2:f,selectionColors:n,dashed:!!_.remoteSelectedElementIds[t.id],cx:v,cy:m})}return e}),[]),ee=function(e){var t=(0,p.Fb)(n,e),r=(0,l.KP)(t),i=(0,o.Z)(r,4),c=i[0],s=i[1],u=i[2],d=i[3];J.push({angle:0,elementX1:c,elementX2:u,elementY1:s,elementY2:d,selectionColors:[a.black],dashed:!0,cx:c+(u-c)/2,cy:s+(d-s)/2})},te=w((0,p.iJ)(h));try{for(te.s();!(Q=te.n()).done;)ee(Q.value)}catch(e){te.e(e)}finally{te.f()}h.editingGroupId&&ee(h.editingGroupId),J.forEach((function(e){return A(W,_,e)}))}if(W.save(),W.translate(_.scrollX,_.scrollY),1===G.length){W.fillStyle=a.white;var ne=(0,l.PC)(G[0],_.zoom,"mouse");!h.viewModeEnabled&&q&&D(W,_,ne,G[0].angle)}else if(G.length>1&&!h.isRotating){var re=2*S/_.zoom.value;W.fillStyle=a.white;var oe=(0,l.KP)(G),ie=(0,o.Z)(oe,4),ae=ie[0],le=ie[1],ce=ie[2],se=ie[3],ue=W.getLineDash();W.setLineDash([2/_.zoom.value]);var de=W.lineWidth;W.lineWidth=1/_.zoom.value,W.strokeStyle=H,j(W,ae-re,le-re,ce-ae+2*re,se-le+2*re,(ae+ce)/2,(le+se)/2,0),W.lineWidth=de,W.setLineDash(ue);var fe=(0,l.kK)([ae,le,ce,se,(ae+ce)/2,(le+se)/2],0,_.zoom,"mouse",l.ox);G.some((function(e){return!e.locked}))&&D(W,_,fe,0)}W.restore()}for(var pe in W.restore(),_.remotePointerViewportCoords){var he=_.remotePointerViewportCoords[pe],ve=he.x,me=he.y;ve-=h.offsetLeft,me-=h.offsetTop;var ge=ve<0||ve>F-9||me<0||me>U-14;ve=Math.max(ve,0),ve=Math.min(ve,F-9),me=Math.max(me,0),me=Math.min(me,U-14);var be=(0,d.X)(pe,h),ye=be.background,xe=be.stroke;W.save(),W.strokeStyle=xe,W.fillStyle=ye;var we=_.remotePointerUserStates[pe];(ge||we===r.AWAY)&&(W.globalAlpha=.48),_.remotePointerButton&&"down"===_.remotePointerButton[pe]&&(W.beginPath(),W.arc(ve,me,15,0,2*Math.PI,!1),W.lineWidth=3,W.strokeStyle="#ffffff88",W.stroke(),W.closePath(),W.beginPath(),W.arc(ve,me,15,0,2*Math.PI,!1),W.lineWidth=1,W.strokeStyle=xe,W.stroke(),W.closePath()),W.beginPath(),W.moveTo(ve,me),W.lineTo(ve+1,me+14),W.lineTo(ve+4,me+9),W.lineTo(ve+9,me+10),W.lineTo(ve,me),W.fill(),W.stroke();var ke=_.remotePointerUsernames[pe],_e="";we===r.AWAY?_e=E?"\u26ab\ufe0f":" (".concat(r.AWAY,")"):we===r.IDLE&&(_e=E?"\ud83d\udca4":" (".concat(r.IDLE,")"));var Ee="".concat(ke||"").concat(_e?" ".concat(_e):"");if(!ge&&Ee){var Se=ve+9,je=me+14,Oe=W.measureText(Ee),Ce=Oe.actualBoundingBoxDescent+Oe.actualBoundingBoxAscent,Me=Se-1,Pe=je-1,Te=Oe.width+8+2,Ie=Ce+8+2;W.roundRect?(W.beginPath(),W.roundRect(Me,Pe,Te,Ie,4/_.zoom.value),W.fillStyle=ye,W.fill(),W.fillStyle=xe,W.stroke()):(W.fillStyle=xe,W.fillRect(Me,Pe,Te,Ie),W.fillStyle=ye,W.fillRect(Se,je,Te-2,Ie-2)),W.fillStyle=a.white,W.fillText(Ee,Se+4,je+4+Oe.actualBoundingBoxAscent)}W.restore(),W.closePath()}return C&&(Y=(0,c.tJ)(n,F,U,_),W.save(),W.fillStyle=c.w1,W.strokeStyle="rgba(255,255,255,0.8)",[Y.horizontal,Y.vertical].forEach((function(e){e&&function(e,t,n,r,o,i){e.beginPath(),e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.quadraticCurveTo(t+r,n,t+r,n+i),e.lineTo(t+r,n+o-i),e.quadraticCurveTo(t+r,n+o,t+r-i,n+o),e.lineTo(t+i,n+o),e.quadraticCurveTo(t,n+o,t,n+o-i),e.lineTo(t,n+i),e.quadraticCurveTo(t,n,t+i,n),e.closePath(),e.fill(),e.stroke()}(W,e.x,e.y,e.width,e.height,c.nn/2)})),W.restore()),W.restore(),{atLeastOneVisibleElement:K.length>0,scrollBars:Y}},I=(0,g.hR)((function(e){var t,n=T(e);null===(t=e.callback)||void 0===t||t.call(e,n)}),{trailing:!0}),L=function(e,t){var n;if(!t){var r=T(e);return null===(n=e.callback)||void 0===n||n.call(e,r),r}I(e)},D=function(e,t,n,r){Object.keys(n).forEach((function(i){var a=n[i];if(void 0!==a){var l=(0,o.Z)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];e.save(),e.lineWidth=1/t.zoom.value,t.selectionColor&&(e.strokeStyle=t.selectionColor),"rotation"===i?O(e,c+u/2,s+d/2,u/2):e.roundRect?(e.beginPath(),e.roundRect(c,s,u,d,2/t.zoom.value),e.fill(),e.stroke()):j(e,c,s,u,d,c+u/2,s+d/2,r,!0),e.restore()}}))},A=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*S,o=n.angle,i=n.elementX1,a=n.elementY1,l=n.elementX2,c=n.elementY2,s=n.selectionColors,u=n.cx,d=n.cy,f=n.dashed,p=l-i,h=c-a,v=r/t.zoom.value,m=8/t.zoom.value,g=4/t.zoom.value;e.save(),e.translate(t.scrollX,t.scrollY),e.lineWidth=1/t.zoom.value;for(var b=s.length,y=0;y=c&&p.y>=s},H=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.offsetX,a=void 0===i?0:i,l=o.offsetY,c=void 0===l?0:l,s=o.exportWithDarkMode,d=void 0!==s&&s;n&&e.forEach((function(e,o){if(!e.isDeleted)try{(0,u.Rg)(e,t,n,r,e.x+a,e.y+c,d)}catch(e){console.error(e)}}))}},1564:function(e,t,n){"use strict";var r=n(1930),o=n(8821),i=n(5169),a=n(1047),l=function(e){return"string"==typeof e},c=function(){function e(){(0,o.Z)(this,e),this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.elementsMap=new Map}return(0,i.Z)(e,[{key:"getElementsIncludingDeleted",value:function(){return this.elements}},{key:"getNonDeletedElements",value:function(){return this.nonDeletedElements}},{key:"getElement",value:function(e){return this.elementsMap.get(e)||null}},{key:"getNonDeletedElement",value:function(e){var t=this.getElement(e);return t&&(0,a.qP)(t)?t:null}},{key:"mapElements",value:function(e){var t=!1,n=this.elements.map((function(n){var r=e(n);return r!==n&&(t=!0),r}));return t&&this.replaceAllElements(n),t}},{key:"replaceAllElements",value:function(t){var n=this;this.elements=t,this.elementsMap.clear(),t.forEach((function(t){n.elementsMap.set(t.id,t),e.mapElementToScene(t,n)})),this.nonDeletedElements=(0,a.Lm)(this.elements),this.informMutation()}},{key:"informMutation",value:function(){for(var e=0,t=Array.from(this.callbacks);e= 0");var n=[].concat((0,r.Z)(this.elements.slice(0,t)),[e],(0,r.Z)(this.elements.slice(t)));this.replaceAllElements(n)}},{key:"getElementIndex",value:function(e){return this.elements.findIndex((function(t){return t.id===e}))}}],[{key:"mapElementToScene",value:function(e,t){l(e)?this.sceneMapById.set(e,t):(this.sceneMapByElement.set(e,t),this.sceneMapById.set(e.id,t))}},{key:"getScene",value:function(e){return l(e)?this.sceneMapById.get(e)||null:this.sceneMapByElement.get(e)||null}}]),e}();c.sceneMapByElement=new WeakMap,c.sceneMapById=new Map,t.Z=c},8120:function(e,t,n){"use strict";n.d(t,{$b:function(){return r},CJ:function(){return d},M9:function(){return a},PD:function(){return o},QG:function(){return u},Un:function(){return s},Zd:function(){return i},bZ:function(){return c},sh:function(){return l}});var r=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"line"===e||"freedraw"===e},o=function(e){return"image"!==e},i=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"freedraw"===e||"arrow"===e||"line"===e},a=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"arrow"===e||"line"===e},l=function(e){return"rectangle"===e||"arrow"===e||"line"===e||"diamond"===e},c=function(e){return"text"===e},s=function(e){return"arrow"===e},u=function(e,t){for(var n=null,r=e.length-1;r>=0;--r){var o=e[r];if(!o.isDeleted&&t(o)){n=o;break}}return n},d=function(e,t){return e.filter((function(e){return!e.isDeleted&&t(e)}))}},4162:function(e,t,n){"use strict";n.d(t,{$D:function(){return g},Cg:function(){return y},NL:function(){return m},oj:function(){return v}});var r=n(2577),o=n(8950),i=n(2975),a=n.n(i),l=n(8234),c=n(8925),s=n(3547),u=n(6340),d=n(2335),f=n(8897),p=n(5523),h=n(5637),v="\x3c!-- svg-source:excalidraw --\x3e",m=function(){var e=(0,o.Z)(a().mark((function e(t,n,o,i){var c,u,p,v,m,g,y,x,w,k,_,E,S,j,O,C,M,P,T=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=i.exportBackground,u=i.exportPadding,p=void 0===u?d.qy:u,v=i.viewBackgroundColor,m=T.length>4&&void 0!==T[4]?T[4]:function(e,t){var r=document.createElement("canvas");return r.width=e*n.exportScale,r.height=t*n.exportScale,{canvas:r,scale:n.exportScale}},g=b(t,p),y=(0,r.Z)(g,4),x=y[0],w=y[1],k=y[2],_=y[3],E=m(k,_),S=E.canvas,j=E.scale,O=void 0===j?1:j,C=(0,f.im)(),e.next=7,(0,h.Xx)({imageCache:new Map,fileIds:(0,h.oA)(t).map((function(e){return e.fileId})),files:o});case 7:return M=e.sent,P=M.imageCache,(0,s.Eu)({elements:t,appState:n,scale:O,rc:l.Z.canvas(S),canvas:S,renderConfig:{viewBackgroundColor:c?v:null,scrollX:-x+p,scrollY:-w+p,zoom:C.zoom,remotePointerViewportCoords:{},remoteSelectedElementIds:{},shouldCacheIgnoreZoom:!1,remotePointerUsernames:{},remotePointerUserStates:{},theme:n.exportWithDarkMode?"dark":"light",imageCache:P,renderScrollbars:!1,renderSelection:!1,renderGrid:!1,isExporting:!0}}),e.abrupt("return",S);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),g=function(){var e=(0,o.Z)(a().mark((function e(t,o,i,c){var u,f,h,m,g,y,x,w,k,_,E,S,j,O,C,M,P,T,I;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=o.exportPadding,f=void 0===u?d.qy:u,h=o.viewBackgroundColor,m=o.exportScale,g=void 0===m?1:m,y=o.exportEmbedScene,x="",!y){e.next=14;break}return e.prev=3,e.next=6,Promise.resolve().then(n.bind(n,673));case 6:return e.next=8,e.sent.encodeSvgMetadata({text:null!=c&&c.serializeAsJSON?null==c||null===(w=c.serializeAsJSON)||void 0===w?void 0:w.call(c):(0,p.I_)(t,o,i||{},"local")});case 8:x=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.error(e.t0);case 14:return k=b(t,f),_=(0,r.Z)(k,4),E=_[0],S=_[1],j=_[2],O=_[3],(C=document.createElementNS(d.hR,"svg")).setAttribute("version","1.1"),C.setAttribute("xmlns",d.hR),C.setAttribute("viewBox","0 0 ".concat(j," ").concat(O)),C.setAttribute("width","".concat(j*g)),C.setAttribute("height","".concat(O*g)),o.exportWithDarkMode&&C.setAttribute("filter",d.ZF),M="https://excalidraw.com/",M=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat("0.15.2"),null!==(P=M)&&void 0!==P&&P.startsWith("/")&&(M=M.replace("/","".concat(window.location.origin,"/"))),M="".concat(M,"/dist/excalidraw-assets/"),C.innerHTML="\n ".concat(v,"\n ").concat(x,'\n \n \n \n '),o.exportBackground&&h&&((T=C.ownerDocument.createElementNS(d.hR,"rect")).setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("width","".concat(j)),T.setAttribute("height","".concat(O)),T.setAttribute("fill",h),C.appendChild(T)),I=l.Z.svg(C),(0,s.M_)(t,I,C,i||{},{offsetX:-E+f,offsetY:-S+f,exportWithDarkMode:o.exportWithDarkMode}),e.abrupt("return",C);case 29:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),b=function(e,t){var n=(0,c.KP)(e),o=(0,r.Z)(n,4),i=o[0],a=o[1],l=o[2],s=o[3];return[i,a,(0,u.TE)(i,l)+2*t,(0,u.TE)(a,s)+t+t]},y=function(e,t,n){var o=b(e,t).map((function(e){return Math.trunc(e*n)})),i=(0,r.Z)(o,4);return[i[2],i[3]]}},75:function(e,t,n){"use strict";n.d(t,{$b:function(){return a.$b},CJ:function(){return a.CJ},M9:function(){return a.M9},N:function(){return o.N},PR:function(){return o.PR},QG:function(){return a.QG},Un:function(){return a.Un},W:function(){return i.W},Yp:function(){return o.Yp},Zd:function(){return a.Zd},Zs:function(){return o.Zs},_4:function(){return r._4},bZ:function(){return a.bZ},eD:function(){return o.eD},j:function(){return l.j},sh:function(){return a.sh}});var r=n(756),o=n(1868),i=n(2264),a=n(8120),l=n(746)},2264:function(e,t,n){"use strict";n.d(t,{W:function(){return l},s:function(){return a}});var r=n(2577),o=n(1047),i=n(6340),a=function(e){var t=e.scenePoint,n=e.viewportDimensions,r=e.zoom;return{scrollX:n.width/2/r.value-t.x,scrollY:n.height/2/r.value-t.y}},l=function(e,t,n){if(!(e=(0,o.n_)(e)).length)return{scrollX:0,scrollY:0};var l=(0,o.KP)(e),c=(0,r.Z)(l,4),s=c[0],u=c[1],d=c[2],f=c[3];if(function(e,t,n){var o=(0,r.Z)(n,4),a=o[0],l=o[1],c=o[2],s=o[3],u=(0,i._i)({sceneX:a,sceneY:l},e),d=u.x,f=u.y,p=(0,i._i)({sceneX:c,sceneY:s},e),h=p.x,v=p.y;return h-d>e.width||v-f>e.height}(t,0,[s,u,d,f])){var p=(0,o.os)(e,(0,i.dE)({clientX:t.scrollX,clientY:t.scrollY},t)),h=(0,r.Z)(p,4);s=h[0],u=h[1],d=h[2],f=h[3]}return a({scenePoint:{x:(s+d)/2,y:(u+f)/2},viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})}},756:function(e,t,n){"use strict";n.d(t,{WM:function(){return l},_4:function(){return d},nn:function(){return c},tJ:function(){return u},w1:function(){return s}});var r=n(2577),o=n(1047),i=n(6340),a=n(8211),l=4,c=6,s="rgba(0,0,0,0.3)",u=function(e,t,n,s){var u=s.scrollX,d=s.scrollY,f=s.zoom;if(0===e.length)return{horizontal:null,vertical:null};var p=(0,o.KP)(e),h=(0,r.Z)(p,4),v=h[0],m=h[1],g=h[2],b=h[3],y=t/f.value,x=n/f.value,w=t-y,k=n-x,_={top:parseInt((0,i.IH)("sat")),bottom:parseInt((0,i.IH)("sab")),left:parseInt((0,i.IH)("sal")),right:parseInt((0,i.IH)("sar"))},E=(0,a.G3)().rtl,S=w/2-u+_.left,j=k/2-d+_.top,O=S+y-_.right,C=j+x-_.bottom,M=Math.min(v,S),P=Math.min(m,j),T=Math.max(g,O),I=Math.max(b,C);return{horizontal:S===M&&O===T?null:{x:Math.max(_.left,l)+(S-M)/(T-M)*t,y:n-c-Math.max(l,_.bottom),width:(O-S)/(T-M)*t-Math.max(2*l,_.left+_.right),height:c},vertical:j===P&&C===I?null:{x:E?Math.max(_.left,l):t-c-Math.max(_.right,l),y:(j-P)/(I-P)*n+Math.max(_.top,l),width:c,height:(C-j)/(I-P)*n-Math.max(2*l,_.top+_.bottom)}}},d=function(e,t,n){var o=[e.horizontal,e.vertical].map((function(e){return null!=e&&e.x<=t&&t<=e.x+e.width&&e.y<=n&&n<=e.y+e.height})),i=(0,r.Z)(o,2),a=i[0],l=i[1];return{isOverEither:a||l,isOverHorizontal:a,isOverVertical:l}}},1868:function(e,t,n){"use strict";n.d(t,{N:function(){return l},PR:function(){return c},Yp:function(){return a},Zs:function(){return u},eD:function(){return s}});var r=n(2577),o=n(1047),i=n(1974),a=function(e,t){var n=(0,o.qf)(t),a=(0,r.Z)(n,4),l=a[0],c=a[1],s=a[2],u=a[3];return e.filter((function(e){var t=(0,o.Pi)(e),n=(0,r.Z)(t,4),a=n[0],d=n[1],f=n[2],p=n[3];return!1===e.locked&&"selection"!==e.type&&!(0,i.Xh)(e)&&l<=a&&c<=d&&s>=f&&u>=p}))},l=function(e,t){return e.some((function(e){return t.selectedElementIds[e.id]}))},c=function(e,t,n){var r=Array.from(new Set(s(e,t).map((function(e){return n(e)}))));return 1===r.length?r[0]:null},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((function(e){return t.selectedElementIds[e.id]||n&&(0,i.Xh)(e)&&t.selectedElementIds[null==e?void 0:e.containerId]?e:null}))},u=function(e,t){return t.editingElement?[t.editingElement]:s(e,t,!0)}},746:function(e,t,n){"use strict";n.d(t,{E:function(){return i},j:function(){return o}});var r=n(2335),o=function(e){return Math.max(r.Zj,Math.min(e,30))},i=function(e,t){var n=e.viewportX,r=e.viewportY,o=e.nextZoom,i=n-t.offsetLeft,a=r-t.offsetTop,l=t.zoom.value;return{scrollX:t.scrollX+(i-i/l)+-(i-i/o),scrollY:t.scrollY+(a-a/l)+-(a-a/o),zoom:{value:o}}}},6340:function(e,t,n){"use strict";n.d(t,{$9:function(){return $},$g:function(){return x},$h:function(){return ce},AK:function(){return U},B4:function(){return O},C3:function(){return ne},Ds:function(){return k},FG:function(){return K},Fc:function(){return v},G3:function(){return te},I4:function(){return oe},IH:function(){return H},Ip:function(){return J},KJ:function(){return I},Mj:function(){return fe},OF:function(){return L},Om:function(){return P},Oo:function(){return m},PI:function(){return X},Pr:function(){return Z},Q5:function(){return Q},Qm:function(){return G},TE:function(){return M},Uk:function(){return D},_Z:function(){return b},_i:function(){return B},ag:function(){return ae},cx:function(){return V},dE:function(){return N},dZ:function(){return F},h2:function(){return ie},hR:function(){return _},mO:function(){return w},qr:function(){return Y},qz:function(){return ee},rB:function(){return A},s:function(){return y},tH:function(){return q},uY:function(){return R},v4:function(){return le},w8:function(){return de},wO:function(){return g},wo:function(){return z},xn:function(){return re},xp:function(){return ue},y8:function(){return se},yo:function(){return C},z8:function(){return T}});var r=n(6655),o=n(7169),i=n(1930),a=n(2577),l=n(5284),c=n(56),s=n(2335),u=n(5156),d=n(8897);function f(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 p(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;n<0&&(n=e.length+n);for(var r=(n=Math.min(e.length,Math.max(n,0)))-1;++r2&&void 0!==arguments[2]?arguments[2]:e.length-1;n<0&&(n=e.length+n);for(var r=(n=Math.min(e.length-1,Math.max(n,0)))+1;--r>-1;)if(t(e[r],r,e))return r;return-1},G=function(e){var t=5===e.length&&"0"===e.substr(4,1),n=9===e.length&&"00"===e.substr(7,2);return t||n||e===c.Z.elementBackground[0]},X=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n},q=function(e){return function(t){(0,u.unstable_batchedUpdates)(e,t)}},$=function(e){return _((function(t){(0,u.unstable_batchedUpdates)(e,t)}))},Q=function(){var e=document.createElement("canvas").getContext("2d");return!!e&&(e.fillStyle="#f00",e.textBaseline="top",e.font="32px Arial",e.fillText("\ud83d\ude00",0,0),0!==e.getImageData(12,12,1,1).data[0])},J=function(e){for(var t=e.parentElement;t;){if(t===document.body)return document;var n=window.getComputedStyle(t).overflowY;if(t.scrollHeight>t.clientHeight&&("auto"===n||"scroll"===n||"overlay"===n))return t;t=t.parentElement}return document},ee=function(e){for(var t=e.parentElement;t;){if(t.tabIndex>-1)return void t.focus();t=t.parentElement}},te=function(e){return Array.from(e).map((function(e){return"0".concat(e.toString(16)).slice(-2)})).join("")},ne=function(){return ie()?1:Date.now()},re=function(e){return e.reduce((function(e,t){return e.set("string"==typeof t?t:t.id,t),e}),new Map)},oe=function(e){return e.reduce((function(e,t,n){return e.set(t.id,[t,n]),e}),new Map)},ie=function(){return!1},ae=function(e,t){return new CustomEvent(e,{detail:{nativeEvent:t},cancelable:!0})},le=function(e,t){var n=!1;for(var o in t){var i=t[o];if(void 0!==i){if(e[o]===i&&("object"!==(0,r.Z)(i)||null===i))continue;n=!0}}return n?p(p({},e),t):e},ce=function(){try{return window.self===window.top?"top":"iframe"}catch(e){return"iframe"}},se=function(e){return!!e&&"object"===(0,r.Z)(e)&&"then"in e&&"catch"in e&&"finally"in e},ue=function(e){var t=null==e?void 0:e.querySelectorAll("button, a, input, select, textarea, div[tabindex], label[tabindex]");return t?Array.from(t).filter((function(e){return e.tabIndex>-1&&!e.disabled})):[]},de=function(e,t){var n=Object.keys(e),r=Object.keys(e);return n.length===r.length&&n.every((function(n){return e[n]===t[n]}))},fe=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null==e||e(n),!r||!n.defaultPrevented)return null==t?void 0:t(n)}}},9669:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg=="},7984:function(e){"use strict";e.exports='data:image/svg+xml,'},1639:function(e){"use strict";e.exports='data:image/svg+xml,'},9729:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Bold.woff2"},1273:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Medium.woff2"},8303:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Regular.woff2"},9577:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-SemiBold.woff2"},3147:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Cascadia.woff2"},3940:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Virgil.woff2"},9787:function(e){"use strict";e.exports=r},5156:function(e){"use strict";e.exports=o},9649:function(e,t,n){var r=n(8114).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),l=new C(r||[]);return a(i,"_invoke",{value:E(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function v(){}function m(){}function g(){}var b={};d(b,c,(function(){return this}));var y=Object.getPrototypeOf,x=y&&y(y(M([])));x&&x!==n&&i.call(x,c)&&(b=x);var w=g.prototype=v.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,l,c){var s=p(e[o],e,a);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function M(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8114:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2975:function(e,t,n){var r=n(9649)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},7017:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})},7245:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6655),o=n(3173);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},5901:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},2577:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9139);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1930:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7017),o=n(9139);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},6655:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},9139:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7017);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},5605:function(e,t,n){"use strict";n.d(t,{x0:function(){return r}});var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")}),"")}},5284:function(e){"use strict";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"]}')},1463:function(e){"use strict";e.exports=JSON.parse('{"labels":{"paste":"Paste","pasteAsPlaintext":"Paste as plaintext","pasteCharts":"Paste charts","selectAll":"Select all","multiSelect":"Add element to selection","moveCanvas":"Move canvas","cut":"Cut","copy":"Copy","copyAsPng":"Copy to clipboard as PNG","copyAsSvg":"Copy to clipboard as SVG","copyText":"Copy to clipboard as text","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","edges":"Edges","sharp":"Sharp","round":"Round","arrowheads":"Arrowheads","arrowhead_none":"None","arrowhead_arrow":"Arrow","arrowhead_bar":"Bar","arrowhead_dot":"Dot","arrowhead_triangle":"Triangle","fontSize":"Font size","fontFamily":"Font family","onlySelected":"Only selected","withBackground":"Background","exportEmbedScene":"Embed scene","exportEmbedScene_details":"Scene data will be saved into the exported PNG/SVG file so that the scene can be restored from it.\\nWill increase exported file size.","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","zigzag":"Zigzag","crossHatch":"Cross-hatch","thin":"Thin","bold":"Bold","left":"Left","center":"Center","right":"Right","extraBold":"Extra bold","architect":"Architect","artist":"Artist","cartoonist":"Cartoonist","fileTitle":"File name","colorPicker":"Color picker","canvasColors":"Used on canvas","canvasBackground":"Canvas background","drawingCanvas":"Drawing canvas","layers":"Layers","actions":"Actions","language":"Language","liveCollaboration":"Live collaboration...","duplicateSelection":"Duplicate","untitled":"Untitled","name":"Name","yourName":"Your name","madeWithExcalidraw":"Made with Excalidraw","group":"Group selection","ungroup":"Ungroup selection","collaborators":"Collaborators","showGrid":"Show grid","addToLibrary":"Add to library","removeFromLibrary":"Remove from library","libraryLoadingMessage":"Loading library\u2026","libraries":"Browse libraries","loadingScene":"Loading scene\u2026","align":"Align","alignTop":"Align top","alignBottom":"Align bottom","alignLeft":"Align left","alignRight":"Align right","centerVertically":"Center vertically","centerHorizontally":"Center horizontally","distributeHorizontally":"Distribute horizontally","distributeVertically":"Distribute vertically","flipHorizontal":"Flip horizontal","flipVertical":"Flip vertical","viewMode":"View mode","toggleExportColorScheme":"Toggle export color scheme","share":"Share","showStroke":"Show stroke color picker","showBackground":"Show background color picker","toggleTheme":"Toggle theme","personalLib":"Personal Library","excalidrawLib":"Excalidraw Library","decreaseFontSize":"Decrease font size","increaseFontSize":"Increase font size","unbindText":"Unbind text","bindText":"Bind text to the container","createContainerFromText":"Wrap text in a container","link":{"edit":"Edit link","create":"Create link","label":"Link"},"lineEditor":{"edit":"Edit line","exit":"Exit line editor"},"elementLock":{"lock":"Lock","unlock":"Unlock","lockAll":"Lock all","unlockAll":"Unlock all"},"statusPublished":"Published","sidebarLock":"Keep sidebar open"},"library":{"noItems":"No items added yet...","hint_emptyLibrary":"Select an item on canvas to add it here, or install a library from the public repository, below.","hint_emptyPrivateLibrary":"Select an item on canvas to add it here."},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Export image...","export":"Save to...","exportToPng":"Export to PNG","exportToSvg":"Export to SVG","copyToClipboard":"Copy to clipboard","copyPngToClipboard":"Copy PNG to clipboard","scale":"Scale","save":"Save to current file","saveAs":"Save as","load":"Open","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","resetLibrary":"Reset library","createNewRoom":"Create new room","fullScreen":"Full screen","darkMode":"Dark mode","lightMode":"Light mode","zenMode":"Zen mode","exitZenMode":"Exit zen mode","cancel":"Cancel","clear":"Clear","remove":"Remove","publishLibrary":"Publish","submit":"Submit","confirm":"Confirm"},"alerts":{"clearReset":"This will clear the whole canvas. Are you sure?","couldNotCreateShareableLink":"Couldn\'t create shareable link.","couldNotCreateShareableLinkTooBig":"Couldn\'t create shareable link: the scene is too big","couldNotLoadInvalidFile":"Couldn\'t load invalid file","importBackendFailed":"Importing from backend failed.","cannotExportEmptyCanvas":"Cannot export empty canvas.","couldNotCopyToClipboard":"Couldn\'t copy to clipboard.","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.","loadSceneOverridePrompt":"Loading external drawing will replace your existing content. Do you wish to continue?","collabStopOverridePrompt":"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\\n\\n(If you want to keep your local drawing, simply close the browser tab instead.)","errorAddingToLibrary":"Couldn\'t add item to the library","errorRemovingFromLibrary":"Couldn\'t remove item from the library","confirmAddLibrary":"This will add {{numShapes}} shape(s) to your library. Are you sure?","imageDoesNotContainScene":"This image does not seem to contain any scene data. Have you enabled scene embedding during export?","cannotRestoreFromImage":"Scene couldn\'t be restored from this image file","invalidSceneUrl":"Couldn\'t import scene from the supplied URL. It\'s either malformed, or doesn\'t contain valid Excalidraw JSON data.","resetLibrary":"This will clear your library. Are you sure?","removeItemsFromsLibrary":"Delete {{count}} item(s) from library?","invalidEncryptionKey":"Encryption key must be of 22 characters. Live collaboration is disabled.","collabOfflineWarning":"No internet connection available.\\nYour changes will not be saved!"},"errors":{"unsupportedFileType":"Unsupported file type.","imageInsertError":"Couldn\'t insert image. Try again later...","fileTooBig":"File is too big. Maximum allowed size is {{maxSize}}.","svgImageInsertError":"Couldn\'t insert SVG image. The SVG markup looks invalid.","invalidSVGString":"Invalid SVG.","cannotResolveCollabServer":"Couldn\'t connect to the collab server. Please reload the page and try again.","importLibraryError":"Couldn\'t load library","collabSaveFailed":"Couldn\'t save to the backend database. If problems persist, you should save your file locally to ensure you don\'t lose your work.","collabSaveFailed_sizeExceeded":"Couldn\'t save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don\'t lose your work.","brave_measure_text_error":{"start":"Looks like you are using Brave browser with the","aggressive_block_fingerprint":"Aggressively Block Fingerprinting","setting_enabled":"setting enabled","break":"This could result in breaking the","text_elements":"Text Elements","in_your_drawings":"in your drawings","strongly_recommend":"We strongly recommend disabling this setting. You can follow","steps":"these steps","how":"on how to do so","disable_setting":" If disabling this setting doesn\'t fix the display of text elements, please open an","issue":"issue","write":"on our GitHub, or write us on","discord":"Discord"}},"toolBar":{"selection":"Selection","image":"Insert image","rectangle":"Rectangle","diamond":"Diamond","ellipse":"Ellipse","arrow":"Arrow","line":"Line","freedraw":"Draw","text":"Text","library":"Library","lock":"Keep selected tool active after drawing","penMode":"Pen mode - prevent touch","link":"Add/ Update link for a selected shape","eraser":"Eraser","hand":"Hand (panning tool)"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool","linearElement":"Click to start multiple points, drag for single line","freeDraw":"Click and drag, release when you\'re finished","text":"Tip: you can also add text by double-clicking anywhere with the selection tool","text_selected":"Double-click or press ENTER to edit text","text_editing":"Press Escape or CtrlOrCmd+ENTER to finish editing","linearElementMulti":"Click on last point or press Escape or Enter to finish","lockAngle":"You can constrain angle by holding SHIFT","resize":"You can constrain proportions by holding SHIFT while resizing,\\nhold ALT to resize from the center","resizeImage":"You can resize freely by holding SHIFT,\\nhold ALT to resize from the center","rotate":"You can constrain angles by holding SHIFT while rotating","lineEditor_info":"Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points","lineEditor_pointSelected":"Press Delete to remove point(s),\\nCtrlOrCmd+D to duplicate, or drag to move","lineEditor_nothingSelected":"Select a point to edit (hold SHIFT to select multiple),\\nor hold Alt and click to add new points","placeImage":"Click to place the image, or click and drag to set its size manually","publishLibrary":"Publish your own library","bindTextToElement":"Press enter to add text","deepBoxSelect":"Hold CtrlOrCmd to deep select, and to prevent dragging","eraserRevert":"Hold Alt to revert the elements marked for deletion","firefox_clipboard_write":"This feature can likely be enabled by setting the \\"dom.events.asyncClipboard.clipboardItem\\" flag to \\"true\\". To change the browser flags in Firefox, visit the \\"about:config\\" page."},"canvasError":{"cannotShowPreview":"Cannot show preview","canvasTooBig":"The canvas may be too big.","canvasTooBigTip":"Tip: try moving the farthest elements a bit closer together."},"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_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.","shareTitle":"Join a live collaboration session on Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Save to disk","disk_details":"Export the scene data to a file from which you can import later.","disk_button":"Save to file","link_title":"Shareable link","link_details":"Export as a read-only link.","link_button":"Export to Link","excalidrawplus_description":"Save the scene to your Excalidraw+ workspace.","excalidrawplus_button":"Export","excalidrawplus_exportError":"Couldn\'t export to Excalidraw+ at this moment..."},"helpDialog":{"blog":"Read our blog","click":"click","deepSelect":"Deep select","deepBoxSelect":"Deep select within box, and prevent dragging","curvedArrow":"Curved arrow","curvedLine":"Curved line","documentation":"Documentation","doubleClick":"double-click","drag":"drag","editor":"Editor","editLineArrowPoints":"Edit line/arrow points","editText":"Edit text / add label","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","tools":"Tools","shortcuts":"Keyboard shortcuts","textFinish":"Finish editing (text editor)","textNewLine":"Add new line (text editor)","title":"Help","view":"View","zoomToFit":"Zoom to fit all elements","zoomToSelection":"Zoom to selection","toggleElementLock":"Lock/unlock selection","movePageUpDown":"Move page up/down","movePageLeftRight":"Move page left/right"},"clearCanvasDialog":{"title":"Clear canvas"},"publishDialog":{"title":"Publish library","itemName":"Item name","authorName":"Author name","githubUsername":"GitHub username","twitterUsername":"Twitter username","libraryName":"Library name","libraryDesc":"Library description","website":"Website","placeholder":{"authorName":"Your name or username","libraryName":"Name of your library","libraryDesc":"Description of your library to help people understand its usage","githubHandle":"GitHub handle (optional), so you can edit the library once submitted for review","twitterHandle":"Twitter username (optional), so we know who to credit when promoting over Twitter","website":"Link to your personal website or elsewhere (optional)"},"errors":{"required":"Required","website":"Enter a valid URL"},"noteDescription":{"pre":"Submit your library to be included in the ","link":"public library repository","post":"for other people to use in their drawings."},"noteGuidelines":{"pre":"The library needs to be manually approved first. Please read the ","link":"guidelines","post":" before submitting. You will need a GitHub account to communicate and make changes if requested, but it is not strictly required."},"noteLicense":{"pre":"By submitting, you agree the library will be published under the ","link":"MIT License, ","post":"which in short means anyone can use them without restrictions."},"noteItems":"Each library item must have its own name so it\'s filterable. The following library items will be included:","atleastOneLibItem":"Please select at least one library item to get started","republishWarning":"Note: some of the selected items are marked as already published/submitted. You should only resubmit items when updating an existing library or submission."},"publishSuccessDialog":{"title":"Library submitted","content":"Thank you {{authorName}}. Your library has been submitted for review. You can track the status","link":"here"},"confirmDialog":{"resetLibrary":"Reset library","removeItemsFromLib":"Remove selected items from library"},"encrypted":{"tooltip":"Your drawings are end-to-end encrypted so Excalidraw\'s servers will never see them.","link":"Blog post on end-to-end encryption in Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Height","scene":"Scene","selected":"Selected","storage":"Storage","title":"Stats for nerds","total":"Total","version":"Version","versionCopy":"Click to copy","versionNotAvailable":"Version not available","width":"Width"},"toast":{"addedToLibrary":"Added to library","copyStyles":"Copied styles.","copyToClipboard":"Copied to clipboard.","copyToClipboardAsPng":"Copied {{exportSelection}} to clipboard as PNG\\n({{exportColorScheme}})","fileSaved":"File saved.","fileSavedToFilename":"Saved to {filename}","canvas":"canvas","selection":"selection","pasteAsSingleElement":"Use {{shortcut}} to paste as a single element,\\nor paste into an existing text editor"},"colors":{"495057":"Gray 7","ffffff":"White","f8f9fa":"Gray 0","f1f3f5":"Gray 1","fff5f5":"Red 0","fff0f6":"Pink 0","f8f0fc":"Grape 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Blue 0","e3fafc":"Cyan 0","e6fcf5":"Teal 0","ebfbee":"Green 0","f4fce3":"Lime 0","fff9db":"Yellow 0","fff4e6":"Orange 0","transparent":"Transparent","ced4da":"Gray 4","868e96":"Gray 6","fa5252":"Red 6","e64980":"Pink 6","be4bdb":"Grape 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Blue 6","15aabf":"Cyan 6","12b886":"Teal 6","40c057":"Green 6","82c91e":"Lime 6","fab005":"Yellow 6","fd7e14":"Orange 6","000000":"Black","343a40":"Gray 8","c92a2a":"Red 9","a61e4d":"Pink 9","862e9c":"Grape 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Blue 9","0b7285":"Cyan 9","087f5b":"Teal 9","2b8a3e":"Green 9","5c940d":"Lime 9","e67700":"Yellow 9","d9480f":"Orange 9"},"welcomeScreen":{"app":{"center_heading":"All your data is saved locally in your browser.","center_heading_plus":"Did you want to go to the Excalidraw+ instead?","menuHint":"Export, preferences, languages, ..."},"defaults":{"menuHint":"Export, preferences, and more...","center_heading":"Diagrams. Made. Simple.","toolbarHint":"Pick a tool & Start drawing!","helpHint":"Shortcuts & help"}}}')},4451:function(e){"use strict";e.exports=JSON.parse('{"ar-SA":89,"bg-BG":52,"bn-BD":57,"ca-ES":96,"cs-CZ":72,"da-DK":31,"de-DE":100,"el-GR":98,"en":100,"es-ES":99,"eu-ES":99,"fa-IR":91,"fi-FI":96,"fr-FR":99,"gl-ES":99,"he-IL":99,"hi-IN":73,"hu-HU":85,"id-ID":98,"it-IT":99,"ja-JP":97,"kab-KAB":93,"kk-KZ":19,"ko-KR":99,"ku-TR":91,"lt-LT":61,"lv-LV":93,"mr-IN":100,"my-MM":40,"nb-NO":100,"nl-NL":92,"nn-NO":86,"oc-FR":94,"pa-IN":79,"pl-PL":87,"pt-BR":96,"pt-PT":99,"ro-RO":100,"ru-RU":96,"si-LK":8,"sk-SK":99,"sl-SI":100,"sv-SE":99,"ta-IN":90,"th-TH":39,"tr-TR":98,"uk-UA":93,"vi-VN":52,"zh-CN":99,"zh-HK":25,"zh-TW":100}')}},v={};function m(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={id:e,exports:{}};return h[e](n,n.exports,m),n.exports}m.m=h,m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},m.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);m.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},m.d(o,i),o},m.d=function(e,t){for(var n in t)m.o(t,n)&&!m.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},m.f={},m.e=function(e){return Promise.all(Object.keys(m.f).reduce((function(t,n){return m.f[n](e,t),t}),[]))},m.u=function(e){return"excalidraw-assets/"+{22:"locales/kk-KZ-json",537:"locales/th-TH-json",1204:"locales/ja-JP-json",1302:"locales/si-LK-json",1477:"locales/my-MM-json",1513:"locales/el-GR-json",1628:"locales/bg-BG-json",1690:"locales/oc-FR-json",1790:"locales/da-DK-json",2091:"locales/ar-SA-json",2312:"locales/he-IL-json",2359:"locales/nb-NO-json",2404:"locales/ta-IN-json",2943:"locales/gl-ES-json",3024:"locales/nl-NL-json",3031:"locales/ku-TR-json",3082:"locales/de-DE-json",3162:"locales/pa-IN-json",3397:"locales/mr-IN-json",3421:"locales/zh-TW-json",3512:"locales/fi-FI-json",3674:"locales/pl-PL-json",3682:"locales/fr-FR-json",3721:"locales/pt-BR-json",3808:"locales/id-ID-json",3885:"locales/nn-NO-json",4e3:"locales/vi-VN-json",4680:"locales/zh-CN-json",4736:"vendor",4977:"locales/tr-TR-json",5089:"locales/ro-RO-json",5130:"locales/ca-ES-json",5330:"locales/fa-IR-json",5395:"locales/pt-PT-json",6071:"locales/sl-SI-json",6239:"locales/it-IT-json",6265:"locales/cs-CZ-json",6768:"locales/lv-LV-json",6844:"locales/ko-KR-json",7368:"locales/hu-HU-json",7429:"locales/bn-BD-json",7759:"locales/uk-UA-json",7920:"locales/zh-HK-json",8081:"locales/eu-ES-json",8124:"locales/ru-RU-json",8340:"locales/lt-LT-json",8534:"locales/sv-SE-json",8750:"locales/sk-SK-json",8759:"locales/es-ES-json",9551:"locales/kab-KAB-json",9828:"locales/hi-IN-json"}[e]+"-"+{22:"1f9df2b51e34996bad30",537:"3a152569bbebfec7c6c0",1204:"ef6ec5abb0c3c53c7a51",1302:"db1222db995d9425e281",1477:"1a05d5c242c822079dca",1513:"79f7d66730b39df84f8e",1628:"72ac7b7548d7fefdcd2a",1690:"e90ca79174b6e1eccb72",1790:"ed85a6f48e1df51b1b46",2091:"06d4bd2f3a164162f2b8",2312:"3280be0edae615c7685f",2359:"7ea7ab2356e76889af8d",2404:"4063d11b19f24794564a",2943:"2117445509ba7c479ee0",3024:"5805f36f33a3f8e53adc",3031:"d10a4bb9ede3c08a08e1",3082:"f70dfb7201a16dc3f9fc",3162:"1854ecccf3c6f8ea9c46",3397:"c922a007bb00d3e4f3b1",3421:"c39caba2da3f001066a8",3512:"d43636fb51002f55e2a4",3674:"b4be83b26070e4cf70ca",3682:"b5ea877625968f748b7f",3721:"2e7a1690edc8d46e8842",3808:"6031eb8be253b20c28e9",3885:"8209f0f674435b52293d",4e3:"2f5b95c0011820e16f4b",4680:"2cb13b38b6615ada3097",4736:"53d1c69ef585b6dd219b",4977:"9002b1505b0931924d42",5089:"3397acad1a98b5093c8b",5130:"6108f4ae0be3d1e369a6",5330:"586a1324f942d89620b6",5395:"aba1622a80e32e465a3d",6071:"68eba9ac00ae57bae3f4",6239:"446b14f993000d0f572f",6265:"1ae99f296c9febb99f72",6768:"1e3a5e87e39d2d90274c",6844:"cf33ecf52ab95055544b",7368:"6ccf0d8a164ecec52187",7429:"759924ef13bd9e602cb3",7759:"4e345c790342b7672248",7920:"4bcbf71743fda1544a84",8081:"1cc77079b354b962615f",8124:"8ab49e8d0473e92a8ab9",8340:"08c7fc343ef2f533ec5f",8534:"36b97455521e61312a47",8750:"50dcb09552f93c2de3a4",8759:"682b92427b8b27bb0aa8",9551:"69853849c71eff277ba0",9828:"dad8ce15f9b7a435a926"}[e]+".js"},m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},p="ExcalidrawLib:",m.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var i,a;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c=this.length))return this[e]},writable:!0,enumerable:!1,configurable:!0})},n=m(487),r=m.n(n),o=m(631),i=m.n(o),a=m(2052),l=m.n(a),c=m(4010),s=m.n(c),u=m(1469),d=m.n(u),f=m(9329),p=m.n(f),h=m(4295),v={};v.styleTagTransform=p(),v.setAttributes=s(),v.insert=l().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=d(),r()(h.Z,v),h.Z&&h.Z.locals&&h.Z.locals;var b=m(6479),y=m.n(b),x=m(9713),w=m.n(x),k=m(9787),_=m.n(k),E=m(8950),S=m(2577),j=m(2975),O=m.n(j),C=m(5440),M=m(8211),P=m(4512),T=function(e){var t=(0,k.useState)(!0),n=(0,S.Z)(t,2),r=n[0],o=n[1];return(0,k.useEffect)((function(){var t=function(){var e=(0,E.Z)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,M.m0)(n);case 2:o(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=M.Mj.find((function(t){return t.code===e.langCode}))||M.Fp;t()}),[e.langCode]),r?(0,P.jsx)(C.z,{theme:e.theme}):e.children},I=m(2134),L=m(6340),D=m(9915),A={};A.styleTagTransform=p(),A.setAttributes=s(),A.insert=l().bind(null,"head"),A.domAPI=i(),A.insertStyleElement=d(),r()(D.Z,A),D.Z&&D.Z.locals&&D.Z.locals;var z=m(9310),Z={};Z.styleTagTransform=p(),Z.setAttributes=s(),Z.insert=l().bind(null,"head"),Z.domAPI=i(),Z.insertStyleElement=d(),r()(z.Z,Z),z.Z&&z.Z.locals&&z.Z.locals;var R=m(4739),N=m(9487),B=m(45),H=m(8888),W=m(8793),F={};F.styleTagTransform=p(),F.setAttributes=s(),F.insert=l().bind(null,"head"),F.domAPI=i(),F.insertStyleElement=d(),r()(W.Z,F),W.Z&&W.Z.locals&&W.Z.locals;var U=function(e){var t=e.children,n=(0,H.R6)().footerCenterTunnel,r=(0,I.gF)();return(0,P.jsx)(n.In,{children:(0,P.jsx)("div",{className:(0,B.Z)("footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":r.zenModeEnabled}),children:t})})},K=U;U.displayName="FooterCenter";var V=m(4709),Y=m(7169),G=m(2726),X=m(6710),q=m(785),$=m(3646),Q=["onSelect","children","icon","shortcut","className"],J=["children","href","icon","shortcut","className"];function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t0&&(0,P.jsx)("div",{className:"CollabButton-collaborators",children:o.collaborators.size})]}))},Te=Pe;Pe.displayName="LiveCollaborationTrigger";var Ie=m(1047),Le=m(679),De=m(3024),Ae=m(1974),ze=m(1935),Ze=m(7053),Re=m(9430),Ne=["initialData","UIOptions"],Be=["initialData","UIOptions"];function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t"']/g,q=RegExp(G.source),$=RegExp(X.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['\u2019]",Ie="["+Ee+"]",Le="["+Pe+"]",De="["+Se+"]",Ae="\\d+",ze="["+je+"]",Ze="["+Oe+"]",Re="[^"+Ee+Pe+Ae+je+Oe+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ee+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",Ue="\\u200d",Ke="(?:"+Ze+"|"+Re+")",Ve="(?:"+Fe+"|"+Re+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+De+"|"+Ne+")"+"?",qe="["+Me+"]?",$e=qe+Xe+("(?:"+Ue+"(?:"+[Be,He,We].join("|")+")"+qe+Xe+")*"),Qe="(?:"+[ze,He,We].join("|")+")"+$e,Je="(?:"+[Be+De+"?",De,He,We,Ie].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(De,"g"),nt=RegExp(Ne+"(?="+Ne+")|"+Je+$e,"g"),rt=RegExp([Fe+"?"+Ze+"+"+Ye+"(?="+[Le,Fe,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[Le,Fe+Ke,"$"].join("|")+")",Fe+"?"+Ke+"+"+Ye,Fe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Qe].join("|"),"g"),ot=RegExp("["+Ue+Ee+Se+Me+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ct={};ct[z]=ct[Z]=ct[R]=ct[N]=ct[B]=ct[H]=ct[W]=ct[F]=ct[U]=!0,ct[b]=ct[y]=ct[D]=ct[x]=ct[A]=ct[w]=ct[k]=ct[_]=ct[S]=ct[j]=ct[O]=ct[M]=ct[P]=ct[T]=ct[L]=!1;var st={};st[b]=st[y]=st[D]=st[A]=st[x]=st[w]=st[z]=st[Z]=st[R]=st[N]=st[B]=st[S]=st[j]=st[O]=st[M]=st[P]=st[T]=st[I]=st[H]=st[W]=st[F]=st[U]=!0,st[k]=st[_]=st[L]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,bt=gt&>.exports===mt,yt=bt&&pt.process,xt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,kt=xt&&xt.isDate,_t=xt&&xt.isMap,Et=xt&&xt.isRegExp,St=xt&&xt.isSet,jt=xt&&xt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var on=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ln(e){return"\\"+ut[e]}function cn(e){return ot.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,at))).Array,r=t.Date,le=t.Error,Ee=t.Function,Se=t.Math,je=t.Object,Oe=t.RegExp,Ce=t.String,Me=t.TypeError,Pe=n.prototype,Te=Ee.prototype,Ie=je.prototype,Le=t["__core-js_shared__"],De=Te.toString,Ae=Ie.hasOwnProperty,ze=0,Ze=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Re=Ie.toString,Ne=De.call(je),Be=vt._,He=Oe("^"+De.call(Ae).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=bt?t.Buffer:o,Fe=t.Symbol,Ue=t.Uint8Array,Ke=We?We.allocUnsafe:o,Ve=un(je.getPrototypeOf,je),Ye=je.create,Ge=Ie.propertyIsEnumerable,Xe=Pe.splice,qe=Fe?Fe.isConcatSpreadable:o,$e=Fe?Fe.iterator:o,Qe=Fe?Fe.toStringTag:o,Je=function(){try{var e=fi(je,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==vt.Date.now&&r.now,ut=t.setTimeout!==vt.setTimeout&&t.setTimeout,pt=Se.ceil,ht=Se.floor,mt=je.getOwnPropertySymbols,gt=We?We.isBuffer:o,yt=t.isFinite,xt=Pe.join,Bt=un(je.keys,je),Gt=Se.max,yn=Se.min,xn=r.now,wn=t.parseInt,kn=Se.random,_n=Pe.reverse,En=fi(t,"DataView"),Sn=fi(t,"Map"),jn=fi(t,"Promise"),On=fi(t,"Set"),Cn=fi(t,"WeakMap"),Mn=fi(je,"create"),Pn=Cn&&new Cn,Tn={},In=Ri(En),Ln=Ri(Sn),Dn=Ri(jn),An=Ri(On),zn=Ri(Cn),Zn=Fe?Fe.prototype:o,Rn=Zn?Zn.valueOf:o,Nn=Zn?Zn.toString:o;function Bn(e){if(tl(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof Fn)return e;if(Ae.call(e,"__wrapped__"))return Ni(e)}return new Fn(e)}var Hn=function(){function e(){}return function(t){if(!el(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cr(e,t,n,r,i,a){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!el(e))return e;var d=Ua(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Po(e,l)}else{var f=vi(e),p=f==_||f==E;if(Ga(e))return Eo(e,c);if(f==O||f==b||p&&!i){if(l=s||p?{}:gi(e),!c)return s?function(e,t){return To(e,hi(e),t)}(e,function(e,t){return e&&To(t,Il(t),e)}(l,e)):function(e,t){return To(e,pi(e),t)}(e,or(l,e))}else{if(!st[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case D:return So(e);case x:case w:return new r(+e);case A:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case z:case Z:case R:case N:case B:case H:case W:case F:case U:return jo(e,n);case S:return new r;case j:case T:return new r(e);case M:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case I:return o=e,Rn?je(Rn.call(o)):{}}var o}(e,f,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,l),al(e)?e.forEach((function(r){l.add(cr(r,t,n,r,e,a))})):nl(e)&&e.forEach((function(r,o){l.set(o,cr(r,t,n,o,e,a))}));var v=d?o:(u?s?ii:oi:s?Il:Tl)(e);return Mt(v||e,(function(r,o){v&&(r=e[o=r]),tr(l,o,cr(r,t,n,o,e,a))})),l}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=je(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Me(i);return Ti((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,i=Lt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,Jt(n))),r?(i=Dt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Gn(t));e:for(;++o-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(Sn||Vn),string:new Kn}},Yn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ui(this,e).get(e)},Yn.prototype.has=function(e){return ui(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,a),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(xr),pr=Do(wr,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r0&&n(l)?t>1?gr(l,t-1,n,r,o):zt(o,l):r||(o[o.length]=l)}return o}var br=Ao(),yr=Ao(!0);function xr(e,t){return e&&br(e,t,Tl)}function wr(e,t){return e&&yr(e,t,Tl)}function kr(e,t){return It(t,(function(t){return $a(e[t])}))}function _r(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&nt}function Or(e,t){return null!=e&&Ae.call(e,t)}function Cr(e,t){return null!=e&&t in je(e)}function Mr(e,t,r){for(var i=r?Dt:Lt,a=e[0].length,l=e.length,c=l,s=n(l),u=1/0,d=[];c--;){var f=e[c];c&&t&&(f=At(f,Jt(t))),u=yn(f.length,u),s[c]=!r&&(t||a>=120&&f.length>=120)?new Gn(c&&f):o}f=e[0];var p=-1,h=s[0];e:for(;++p=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Kr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)l!==e&&Xe.call(l,c,1),Xe.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Xe.call(e,o,1):fo(e,o)}}return e}function Gr(e,t){return e+ht(kn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function qr(e,t){return Ii(Oi(e,t,rc),e+"")}function $r(e){return $n(Bl(e))}function Qr(e,t){var n=Bl(e);return Ai(n,lr(t,0,n.length))}function Jr(e,t,n,r){if(!el(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,c=e;null!=c&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!cl(a)&&(n?a<=t:a=200){var s=t?null:qo(e);if(s)return fn(s);a=!1,o=tn,c=new Gn}else c=t?[]:l;e:for(;++r=r?e:ro(e,t,n)}var _o=nt||function(e){return vt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function jo(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=cl(e),l=t!==o,c=null===t,s=t===t,u=cl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=je(t);++r-1?i[a?t[l]:l]:o}}function Bo(e){return ri((function(t){var n=t.length,r=n,a=Fn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Me(i);if(a&&!c&&"wrapper"==li(l))var c=new Fn([],!0)}for(r=c?r:n;++r1&&x.reverse(),p&&uc))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Gn:o;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(g,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ai(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ia(e,n)}));function fa(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ha=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Fn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var va=Io((function(e,t,n){Ae.call(e,n)?++e[n]:ir(e,n,1)}));var ma=No(Fi),ga=No(Ui);function ba(e,t){return(Ua(e)?Mt:fr)(e,si(t,3))}function ya(e,t){return(Ua(e)?Pt:pr)(e,si(t,3))}var xa=Io((function(e,t,n){Ae.call(e,n)?e[n].push(t):ir(e,n,[t])}));var wa=qr((function(e,t,r){var o=-1,i="function"==typeof t,a=Va(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?Ot(t,e,r):Pr(e,t,r)})),a})),ka=Io((function(e,t,n){ir(e,n,t)}));function _a(e,t){return(Ua(e)?At:Nr)(e,si(t,3))}var Ea=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Sa=qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),ja=ot||function(){return vt.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=hl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ma=qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Ma));r|=s}return Qo(e,r,t,n,o)})),Pa=qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Pa));r|=s}return Qo(t,r,e,n,o)}));function Ta(e,t,n){var r,a,l,c,s,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(i);function v(t){var n=r,i=a;return r=a=o,d=t,c=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||p&&e-d>=l}function g(){var e=ja();if(m(e))return b(e);s=Ti(g,function(e){var n=t-(e-u);return p?yn(n,l-(e-d)):n}(e))}function b(e){return s=o,h&&r?v(e):(r=a=o,c)}function y(){var e=ja(),n=m(e);if(r=arguments,a=this,u=e,n){if(s===o)return function(e){return d=e,s=Ti(g,t),f?v(e):c}(u);if(p)return _o(s),s=Ti(g,t),v(u)}return s===o&&(s=Ti(g,t)),c}return t=ml(t)||0,el(n)&&(f=!!n.leading,l=(p="maxWait"in n)?Gt(ml(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){s!==o&&_o(s),d=0,r=u=a=s=o},y.flush=function(){return s===o?c:b(ja())},y}var Ia=qr((function(e,t){return ur(e,1,t)})),La=qr((function(e,t,n){return ur(e,ml(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Yn),n}function Aa(e){if("function"!=typeof e)throw new Me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Yn;var za=wo((function(e,t){var n=(t=1==t.length&&Ua(t[0])?At(t[0],Jt(si())):At(gr(t,1),Jt(si()))).length;return qr((function(r){for(var o=-1,i=yn(r.length,n);++o=t})),Fa=Tr(function(){return arguments}())?Tr:function(e){return tl(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Ua=n.isArray,Ka=wt?Jt(wt):function(e){return tl(e)&&Sr(e)==D};function Va(e){return null!=e&&Ja(e.length)&&!$a(e)}function Ya(e){return tl(e)&&Va(e)}var Ga=gt||mc,Xa=kt?Jt(kt):function(e){return tl(e)&&Sr(e)==w};function qa(e){if(!tl(e))return!1;var t=Sr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function $a(e){if(!el(e))return!1;var t=Sr(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==hl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var nl=_t?Jt(_t):function(e){return tl(e)&&vi(e)==S};function rl(e){return"number"==typeof e||tl(e)&&Sr(e)==j}function ol(e){if(!tl(e)||Sr(e)!=O)return!1;var t=Ve(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ne}var il=Et?Jt(Et):function(e){return tl(e)&&Sr(e)==M};var al=St?Jt(St):function(e){return tl(e)&&vi(e)==P};function ll(e){return"string"==typeof e||!Ua(e)&&tl(e)&&Sr(e)==T}function cl(e){return"symbol"==typeof e||tl(e)&&Sr(e)==I}var sl=jt?Jt(jt):function(e){return tl(e)&&Ja(e.length)&&!!ct[Sr(e)]};var ul=Yo(Rr),dl=Yo((function(e,t){return e<=t}));function fl(e){if(!e)return[];if(Va(e))return ll(e)?vn(e):Po(e);if($e&&e[$e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$e]());var t=vi(e);return(t==S?sn:t==P?fn:Bl)(e)}function pl(e){return e?(e=ml(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hl(e){var t=pl(e),n=t%1;return t===t?n?t-n:t:0}function vl(e){return e?lr(hl(e),0,m):0}function ml(e){if("number"==typeof e)return e;if(cl(e))return v;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||ye.test(e)?ft(e.slice(2),n?2:8):me.test(e)?v:+e}function gl(e){return To(e,Il(e))}function bl(e){return null==e?"":so(e)}var yl=Lo((function(e,t){if(Ei(t)||Va(t))To(t,Tl(t),e);else for(var n in t)Ae.call(t,n)&&tr(e,n,t[n])})),xl=Lo((function(e,t){To(t,Il(t),e)})),wl=Lo((function(e,t,n,r){To(t,Il(t),e,r)})),kl=Lo((function(e,t,n,r){To(t,Tl(t),e,r)})),_l=ri(ar);var El=qr((function(e,t){e=je(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n1),t})),To(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n}));var zl=ri((function(e,t){return null==e?{}:function(e,t){return Kr(e,t,(function(t,n){return Ol(e,n)}))}(e,t)}));function Zl(e,t){if(null==e)return{};var n=At(ii(e),(function(e){return[e]}));return t=si(t),Kr(e,n,(function(e,n){return t(e,n[0])}))}var Rl=$o(Tl),Nl=$o(Il);function Bl(e){return null==e?[]:en(e,Tl(e))}var Hl=Zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Wl(t):t)}));function Wl(e){return ql(bl(e).toLowerCase())}function Fl(e){return(e=bl(e))&&e.replace(we,on).replace(tt,"")}var Ul=Zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Kl=Zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Vl=zo("toLowerCase");var Yl=Zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gl=Zo((function(e,t,n){return e+(n?" ":"")+ql(t)}));var Xl=Zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),ql=zo("toUpperCase");function $l(e,t,n){return e=bl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Ql=qr((function(e,t){try{return Ot(e,o,t)}catch(n){return qa(n)?n:new le(n)}})),Jl=ri((function(e,t){return Mt(t,(function(t){t=Zi(t),ir(e,t,Ma(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Bo(),nc=Bo(!0);function rc(e){return e}function oc(e){return Ar("function"==typeof e?e:cr(e,1))}var ic=qr((function(e,t){return function(n){return Pr(n,e,t)}})),ac=qr((function(e,t){return function(n){return Pr(e,n,t)}}));function lc(e,t,n){var r=Tl(t),o=kr(t,r);null!=n||el(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Tl(t)));var i=!(el(n)&&"chain"in n)||!!n.chain,a=$a(e);return Mt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Po(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,zt([this.value()],arguments))})})),e}function cc(){}var sc=Uo(At),uc=Uo(Tt),dc=Uo(Nt);function fc(e){return wi(e)?Yt(Zi(e)):function(e){return function(t){return _r(t,e)}}(e)}var pc=Vo(),hc=Vo(!0);function vc(){return[]}function mc(){return!1}var gc=Fo((function(e,t){return e+t}),0),bc=Xo("ceil"),yc=Fo((function(e,t){return e/t}),1),xc=Xo("floor");var wc=Fo((function(e,t){return e*t}),1),kc=Xo("round"),_c=Fo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=hl(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oa,Bn.assign=yl,Bn.assignIn=xl,Bn.assignInWith=wl,Bn.assignWith=kl,Bn.at=_l,Bn.before=Ca,Bn.bind=Ma,Bn.bindAll=Jl,Bn.bindKey=Pa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===o)?1:Gt(hl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=n(pt(i/t));ai?0:i+n),(r=r===o||r>i?i:hl(r))<0&&(r+=i),r=n>r?0:vl(r);n>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=so(t))&&cn(e)?ko(vn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:Gt(hl(t),0),qr((function(n){var r=n[t],o=ko(n,0,t);return r&&zt(o,r),Ot(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:hl(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:hl(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,si(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,si(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Me(i);return el(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ta(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=fl,Bn.toPairs=Rl,Bn.toPairsIn=Nl,Bn.toPath=function(e){return Ua(e)?At(e,Zi):cl(e)?[e]:Po(zi(bl(e)))},Bn.toPlainObject=gl,Bn.transform=function(e,t,n){var r=Ua(e),o=r||Ga(e)||sl(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:el(e)&&$a(i)?Hn(Ve(e)):{}}return(o?Mt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Oa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=oa,Bn.unzipWith=ia,Bn.update=function(e,t,n){return null==e?e:po(e,t,yo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:po(e,t,yo(n),r)},Bn.values=Bl,Bn.valuesIn=function(e){return null==e?[]:en(e,Il(e))},Bn.without=aa,Bn.words=$l,Bn.wrap=function(e,t){return Za(yo(t),e)},Bn.xor=la,Bn.xorBy=ca,Bn.xorWith=sa,Bn.zip=ua,Bn.zipObject=function(e,t){return go(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return go(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Rl,Bn.entriesIn=Nl,Bn.extend=xl,Bn.extendWith=wl,lc(Bn,Bn),Bn.add=gc,Bn.attempt=Ql,Bn.camelCase=Hl,Bn.capitalize=Wl,Bn.ceil=bc,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ml(n))===n?n:0),t!==o&&(t=(t=ml(t))===t?t:0),lr(ml(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||sr(e,t,Tl(t))},Bn.deburr=Fl,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=yc,Bn.endsWith=function(e,t,n){e=bl(e),t=so(t);var r=e.length,i=n=n===o?r:lr(hl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=bl(e))&&$.test(e)?e.replace(X,an):e},Bn.escapeRegExp=function(e){return(e=bl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Ua(e)?Tt:hr;return n&&xi(e,t,n)&&(t=o),r(e,si(t,3))},Bn.find=ma,Bn.findIndex=Fi,Bn.findKey=function(e,t){return Ht(e,si(t,3),xr)},Bn.findLast=ga,Bn.findLastIndex=Ui,Bn.findLastKey=function(e,t){return Ht(e,si(t,3),wr)},Bn.floor=xc,Bn.forEach=ba,Bn.forEachRight=ya,Bn.forIn=function(e,t){return null==e?e:br(e,si(t,3),Il)},Bn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Il)},Bn.forOwn=function(e,t){return e&&xr(e,si(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Bn.get=jl,Bn.gt=Ha,Bn.gte=Wa,Bn.has=function(e,t){return null!=e&&mi(e,t,Or)},Bn.hasIn=Ol,Bn.head=Vi,Bn.identity=rc,Bn.includes=function(e,t,n,r){e=Va(e)?e:Bl(e),n=n&&!r?hl(n):0;var o=e.length;return n<0&&(n=Gt(o+n,0)),ll(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hl(n);return o<0&&(o=Gt(r+o,0)),Ft(e,t,o)},Bn.inRange=function(e,t,n){return t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=h},Bn.isSet=al,Bn.isString=ll,Bn.isSymbol=cl,Bn.isTypedArray=sl,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return tl(e)&&vi(e)==L},Bn.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Sr(e)},Bn.join=function(e,t){return null==e?"":xt.call(e,t)},Bn.kebabCase=Ul,Bn.last=qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=hl(n))<0?Gt(r+i,0):yn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Wt(e,Kt,i,!0)},Bn.lowerCase=Kl,Bn.lowerFirst=Vl,Bn.lt=ul,Bn.lte=dl,Bn.max=function(e){return e&&e.length?vr(e,rc,jr):o},Bn.maxBy=function(e,t){return e&&e.length?vr(e,si(t,2),jr):o},Bn.mean=function(e){return Vt(e,rc)},Bn.meanBy=function(e,t){return Vt(e,si(t,2))},Bn.min=function(e){return e&&e.length?vr(e,rc,Rr):o},Bn.minBy=function(e,t){return e&&e.length?vr(e,si(t,2),Rr):o},Bn.stubArray=vc,Bn.stubFalse=mc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=wc,Bn.nth=function(e,t){return e&&e.length?Fr(e,hl(t)):o},Bn.noConflict=function(){return vt._===this&&(vt._=Be),this},Bn.noop=cc,Bn.now=ja,Bn.pad=function(e,t,n){e=bl(e);var r=(t=hl(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ko(ht(o),n)+e+Ko(pt(o),n)},Bn.padEnd=function(e,t,n){e=bl(e);var r=(t=hl(t))?hn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return yn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},Bn.reduce=function(e,t,n){var r=Ua(e)?Zt:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=Ua(e)?Rt:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Bn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:hl(t),Xr(bl(e),t)},Bn.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++rh)return[];var n=m,r=yn(e,m);t=si(t),e-=m;for(var o=$t(r,t);++n=a)return e;var c=n-hn(r);if(c<1)return r;var s=l?ko(l,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(l&&(c+=s.length-c),il(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=Oe(i.source,bl(ve.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,f===o?c:f)}}else if(e.indexOf(so(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Bn.unescape=function(e){return(e=bl(e))&&q.test(e)?e.replace(G,gn):e},Bn.uniqueId=function(e){var t=++ze;return bl(e)+t},Bn.upperCase=Xl,Bn.upperFirst=ql,Bn.each=ba,Bn.eachRight=ya,Bn.first=Vi,lc(Bn,function(){var e={};return xr(Bn,(function(t,n){Ae.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Mt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:Gt(hl(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(rc)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=qr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Aa(si(e)))},Un.prototype.slice=function(e,t){e=hl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(m)},xr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,c=t instanceof Un,s=l[0],u=c||Ua(t),d=function(e){var t=i.apply(Bn,zt([e],l));return r&&f?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,v=c&&!p;if(!a&&u){t=v?t:new Un(this);var m=e.apply(t,l);return m.__actions__.push({func:pa,args:[d],thisArg:o}),new Fn(m,f)}return h&&v?e.apply(this,l):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})})),Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ua(o)?o:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),xr(Un.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Ae.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Ho(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:o}),new Fn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,$e&&(Bn.prototype[$e]=function(){return this}),Bn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},463:function(e,t,n){"use strict";var r=n(791),o=n(296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n