Skip to content

Build your personal knowledge base with Trilium Notes

remove manually added, static libraries for excalidraw, react, etc.

Tom Freeee7aa3d3da03
diff --git a/libraries/excalidraw/excalidraw.production.min.js b/libraries/excalidraw/excalidraw.production.min.js
deleted file mode 100644
index 81be134e2f..0000000000
--- a/libraries/excalidraw/excalidraw.production.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see excalidraw.production.min.js.LICENSE.txt */
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.Excalidraw=t(require("react"),require("react-dom")):e.Excalidraw=t(e.React,e.ReactDOM)}(self,(function(e,t){return function(){var n,r,o,i,a={7945:function(e,t,n){e.exports=n(1602)},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,m=function(){return d.Date.now()};function g(e,t,n){var o,i,a,l,c,s,u=0,d=!1,f=!1,g=!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=m();if(w(e))return E(e);c=setTimeout(k,function(e){var n=t-(e-s);return f?h(n,a-(e-u)):n}(e))}function E(e){return c=void 0,g&&o?y(e):(o=i=void 0,l)}function _(){var e=m(),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,v(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(b(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),_.cancel=function(){void 0!==c&&clearTimeout(c),u=0,o=s=i=c=void 0},_.flush=function(){return void 0===c?l:E(m())},_}function v(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(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(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 v(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),g(e,t,{leading:o,maxWait:t,trailing:i})}},2891:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,s=32,u=64,d=128,f=256,p=1/0,h=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",u],["rearg",f]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",k="[object Error]",E="[object Function]",_="[object GeneratorFunction]",S="[object Map]",j="[object Number]",C="[object Object]",O="[object Promise]",I="[object RegExp]",M="[object Set]",T="[object String]",P="[object Symbol]",A="[object WeakMap]",L="[object ArrayBuffer]",D="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",N="[object Int8Array]",H="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",K="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,q=RegExp(Y.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,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^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=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Ie="\\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",Me="['’]",Te="[\\ud800-\\udfff]",Pe="["+Ie+"]",Ae="["+_e+"]",Le="\\d+",De="[\\u2700-\\u27bf]",Re="["+je+"]",ze="[^\\ud800-\\udfff"+Ie+Le+Se+je+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",He="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ce+"]",Ke="(?:"+Re+"|"+ze+")",We="(?:"+Ue+"|"+ze+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Ae+"|"+Ne+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Xe=Ye+Ze+("(?:\\u200d(?:"+[He,Be,Fe].join("|")+")"+Ye+Ze+")*"),qe="(?:"+[De,Be,Fe].join("|")+")"+Xe,$e="(?:"+[He+Ae+"?",Ae,Be,Fe,Te].join("|")+")",Qe=RegExp(Me,"g"),Je=RegExp(Ae,"g"),et=RegExp(Ne+"(?="+Ne+")|"+$e+Xe,"g"),tt=RegExp([Ue+"?"+Re+"+"+Ve+"(?="+[Pe,Ue,"$"].join("|")+")",We+"+"+Ge+"(?="+[Pe,Ue+Ke,"$"].join("|")+")",Ue+"?"+Ke+"+"+Ve,Ue+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,qe].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+_e+Oe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],it=-1,at={};at[R]=at[z]=at[N]=at[H]=at[B]=at[F]=at[U]=at[K]=at[W]=!0,at[b]=at[y]=at[L]=at[x]=at[D]=at[w]=at[k]=at[E]=at[S]=at[j]=at[C]=at[I]=at[M]=at[T]=at[A]=!1;var lt={};lt[b]=lt[y]=lt[L]=lt[D]=lt[x]=lt[w]=lt[R]=lt[z]=lt[N]=lt[H]=lt[B]=lt[S]=lt[j]=lt[C]=lt[I]=lt[M]=lt[T]=lt[P]=lt[F]=lt[U]=lt[K]=lt[W]=!0,lt[k]=lt[E]=lt[A]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ht,vt=gt&&dt.process,bt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),yt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,wt=bt&&bt.isMap,kt=bt&&bt.isRegExp,Et=bt&&bt.isSet,_t=bt&&bt.isTypedArray;function St(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 jt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Tt(e,t){return!!(null==e?0:e.length)&&Ft(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Dt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Rt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Vt("length");function Ht(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Kt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Kt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Vt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Zt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function $t(e){return function(t){return e(t)}}function Qt(e,t){return At(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ct[e]}function ln(e){return nt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Nt(e)}function hn(e){return ln(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var gn=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,r=(t=null==t?pt:vn.defaults(pt.Object(),t,vn.pick(pt,ot))).Array,le=t.Date,_e=t.Error,Se=t.Function,je=t.Math,Ce=t.Object,Oe=t.RegExp,Ie=t.String,Me=t.TypeError,Te=r.prototype,Pe=Se.prototype,Ae=Ce.prototype,Le=t["__core-js_shared__"],De=Pe.toString,Re=Ae.hasOwnProperty,ze=0,Ne=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",He=Ae.toString,Be=De.call(Ce),Fe=pt._,Ue=Oe("^"+De.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=gt?t.Buffer:o,We=t.Symbol,Ve=t.Uint8Array,Ge=Ke?Ke.allocUnsafe:o,Ze=sn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=Ae.propertyIsEnumerable,qe=Te.splice,$e=We?We.isConcatSpreadable:o,et=We?We.iterator:o,nt=We?We.toStringTag:o,ct=function(){try{var e=hi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ft=le&&le.now!==pt.Date.now&&le.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,mt=je.ceil,vt=je.floor,bt=Ce.getOwnPropertySymbols,Nt=Ke?Ke.isBuffer:o,Gt=t.isFinite,bn=Te.join,yn=sn(Ce.keys,Ce),xn=je.max,wn=je.min,kn=le.now,En=t.parseInt,_n=je.random,Sn=Te.reverse,jn=hi(t,"DataView"),Cn=hi(t,"Map"),On=hi(t,"Promise"),In=hi(t,"Set"),Mn=hi(t,"WeakMap"),Tn=hi(Ce,"create"),Pn=Mn&&new Mn,An={},Ln=Fi(jn),Dn=Fi(Cn),Rn=Fi(On),zn=Fi(In),Nn=Fi(Mn),Hn=We?We.prototype:o,Bn=Hn?Hn.valueOf:o,Fn=Hn?Hn.toString:o;function Un(e){if(ol(e)&&!Za(e)&&!(e instanceof Gn)){if(e instanceof Vn)return e;if(Re.call(e,"__wrapped__"))return Ui(e)}return new Vn(e)}var Kn=function(){function e(){}return function(t){if(!rl(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=Za(e),r=!n&&Ga(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&fl(e),a=n||r||o||i,l=a?Xt(e.length,Ie):[],c=l.length;for(var s in e)!t&&!Re.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wi(s,c))||l.push(s);return l}function Jn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function er(e,t){return Ni(Po(e),sr(t,0,e.length))}function tr(e){return Ni(Po(e))}function nr(e,t,n){(n!==o&&!Ka(e[t],n)||n===o&&!(t in e))&&lr(e,t,n)}function rr(e,t,n){var r=e[t];Re.call(e,t)&&Ka(r,n)&&(n!==o||t in e)||lr(e,t,n)}function or(e,t){for(var n=e.length;n--;)if(Ka(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Ao(t,Ll(t),e)}function lr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function cr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:Il(e,t[n]);return a}function sr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(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(!rl(e))return e;var d=Za(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.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==E||f==_;if($a(e))return jo(e,c);if(f==C||f==b||p&&!i){if(l=s||p?{}:yi(e),!c)return s?function(e,t){return Ao(e,gi(e),t)}(e,function(e,t){return e&&Ao(t,Dl(t),e)}(l,e)):function(e,t){return Ao(e,mi(e),t)}(e,ar(l,e))}else{if(!lt[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case L:return Co(e);case x:case w:return new r(+e);case D:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case z:case N:case H:case B:case F:case U:case K:case W:return Oo(e,n);case S:case M:return new r;case j:case T:return new r(e);case I:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return o=e,Bn?Ce(Bn.call(o)):{}}var o}(e,f,c)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,l),sl(e)?e.forEach((function(r){l.add(ur(r,t,n,r,e,a))})):il(e)&&e.forEach((function(r,o){l.set(o,ur(r,t,n,o,e,a))}));var m=d?o:(u?s?li:ai:s?Dl:Ll)(e);return Ct(m||e,(function(r,o){m&&(r=e[o=r]),rr(l,o,ur(r,t,n,o,e,a))})),l}function dr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(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 fr(e,t,n){if("function"!=typeof e)throw new Me(i);return Li((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,i=Tt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,$t(n))),r?(i=Pt,a=!1):t.length>=200&&(i=Jt,a=!1,t=new qn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=s;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,r)||c.push(u)}return c}Un.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Wn.prototype,Un.prototype.constructor=Un,Vn.prototype=Kn(Wn.prototype),Vn.prototype.constructor=Vn,Gn.prototype=Kn(Wn.prototype),Gn.prototype.constructor=Gn,Zn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return Re.call(t,e)?t[e]:o},Zn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:Re.call(t,e)},Zn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0)&&(n==t.length-1?t.pop():qe.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=or(t,e);return n<0?o:t[n][1]},Yn.prototype.has=function(e){return or(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(Cn||Yn),string:new Zn}},Xn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Xn.prototype.get=function(e){return fi(this,e).get(e)},Xn.prototype.has=function(e){return fi(this,e).has(e)},Xn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Yn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ro(kr),mr=Ro(Er,!0);function gr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(c===o?l==l&&!dl(l):n(l,c)))var c=l,s=a}return s}function br(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=xi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?yr(l,t-1,n,r,o):Lt(o,l):r||(o[o.length]=l)}return o}var xr=zo(),wr=zo(!0);function kr(e,t){return e&&xr(e,t,Ll)}function Er(e,t){return e&&wr(e,t,Ll)}function _r(e,t){return Mt(t,(function(t){return el(e[t])}))}function Sr(e,t){for(var n=0,r=(t=ko(t,e)).length;null!=e&&n<r;)e=e[Bi(t[n++])];return n&&n==r?e:o}function jr(e,t,n){var r=t(e);return Za(e)?r:Lt(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":nt&&nt in Ce(e)?function(e){var t=Re.call(e,nt),n=e[nt];try{e[nt]=o;var r=!0}catch(e){}var i=He.call(e);r&&(t?e[nt]=n:delete e[nt]);return i}(e):function(e){return He.call(e)}(e)}function Or(e,t){return e>t}function Ir(e,t){return null!=e&&Re.call(e,t)}function Mr(e,t){return null!=e&&t in Ce(e)}function Tr(e,t,n){for(var i=n?Pt:Tt,a=e[0].length,l=e.length,c=l,s=r(l),u=1/0,d=[];c--;){var f=e[c];c&&t&&(f=At(f,$t(t))),u=wn(f.length,u),s[c]=!n&&(t||a>=120&&f.length>=120)?new qn(c&&f):o}f=e[0];var p=-1,h=s[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Jt(h,g):i(d,g,n))){for(c=l;--c;){var v=s[c];if(!(v?Jt(v,g):i(e[c],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Pr(e,t,n){var r=null==(e=Mi(e,t=ko(t,e)))?e:e[Bi(Ji(t))];return null==r?o:St(r,e,n)}function Ar(e){return ol(e)&&Cr(e)==b}function Lr(e,t,n,r,i){return e===t||(null==e||null==t||!ol(e)&&!ol(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Za(e),c=Za(t),s=l?y:vi(e),u=c?y:vi(t),d=(s=s==b?C:s)==C,f=(u=u==b?C:u)==C,p=s==u;if(p&&$a(e)){if(!$a(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new $n),l||fl(e)?oi(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case x:case w:case j:return Ka(+e,+t);case k:return e.name==t.name&&e.message==t.message;case I:case T:return e==t+"";case S:var l=cn;case M:var c=1&r;if(l||(l=dn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=oi(l(e),l(t),r,o,i,a);return a.delete(e),u;case P:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=d&&Re.call(e,"__wrapped__"),m=f&&Re.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return a||(a=new $n),i(g,v,n,r,a)}}if(!p)return!1;return a||(a=new $n),function(e,t,n,r,i,a){var l=1&n,c=ai(e),s=c.length,u=ai(t).length;if(s!=u&&!l)return!1;var d=s;for(;d--;){var f=c[d];if(!(l?f in t:Re.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<s;){var v=e[f=c[d]],b=t[f];if(r)var y=l?r(b,v,f,t,e,a):r(v,b,f,e,t,a);if(!(y===o?v===b||i(v,b,n,r,a):y)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Lr,i))}function Dr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Ce(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],u=e[s],d=c[1];if(l&&c[2]){if(u===o&&!(s in e))return!1}else{var f=new $n;if(r)var p=r(u,d,s,e,t,f);if(!(p===o?Lr(d,u,3,r,f):p))return!1}}return!0}function Rr(e){return!(!rl(e)||(t=e,Ne&&Ne in t))&&(el(e)?Ue:be).test(Fi(e));var t}function zr(e){return"function"==typeof e?e:null==e?ac:"object"==typeof e?Za(e)?Kr(e[0],e[1]):Ur(e):mc(e)}function Nr(e){if(!ji(e))return yn(e);var t=[];for(var n in Ce(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Hr(e){if(!rl(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=ji(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Fr(e,t){var n=-1,o=Xa(e)?r(e.length):[];return hr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ur(e){var t=pi(e);return 1==t.length&&t[0][2]?Oi(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Kr(e,t){return Ei(e)&&Ci(t)?Oi(Bi(e),t):function(n){var r=Il(n,e);return r===o&&r===t?Ml(n,e):Lr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&xr(t,(function(a,l){if(i||(i=new $n),rl(a))!function(e,t,n,r,i,a,l){var c=Pi(e,n),s=Pi(t,n),u=l.get(s);if(u)return void nr(e,n,u);var d=a?a(c,s,n+"",e,t,l):o,f=d===o;if(f){var p=Za(s),h=!p&&$a(s),m=!p&&!h&&fl(s);d=s,p||h||m?Za(c)?d=c:qa(c)?d=Po(c):h?(f=!1,d=jo(s,!0)):m?(f=!1,d=Oo(s,!0)):d=[]:ll(s)||Ga(s)?(d=c,Ga(c)?d=xl(c):rl(c)&&!el(c)||(d=yi(s))):f=!1}f&&(l.set(s,d),i(d,s,r,a,l),l.delete(s));nr(e,n,d)}(e,t,l,n,Wr,r,i);else{var c=r?r(Pi(e,l),a,l+"",e,t,i):o;c===o&&(c=a),nr(e,l,c)}}),Dl)}function Vr(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Gr(e,t,n){t=t.length?At(t,(function(e){return Za(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ac];var r=-1;t=At(t,$t(di()));var o=Fr(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var c=Io(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Zr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Sr(e,a);n(l,a)&&to(i,ko(a,e),l)}return i}function Yr(e,t,n,r){var o=r?Ut:Ft,i=-1,a=t.length,l=e;for(e===t&&(t=Po(t)),n&&(l=At(e,$t(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&qe.call(l,c,1),qe.call(e,c,1);return e}function Xr(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;wi(o)?qe.call(e,o,1):ho(e,o)}}return e}function qr(e,t){return e+vt(_n()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Di(Ii(e,t,ac),e+"")}function Jr(e){return Jn(Kl(e))}function eo(e,t){var n=Kl(e);return Ni(n,sr(t,0,n.length))}function to(e,t,n,r){if(!rl(e))return e;for(var i=-1,a=(t=ko(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=Bi(t[i]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=c[s];(u=r?r(d,s,c):o)===o&&(u=rl(d)?d:wi(t[i+1])?[]:{})}rr(c,s,u),c=c[s]}return e}var no=Pn?function(e,t){return Pn.set(e,t),e}:ac,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rc(t),writable:!0})}:ac;function oo(e){return Ni(Kl(e))}function io(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function ao(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function lo(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!dl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return co(e,t,ac,n)}function co(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,c=null===t,s=dl(t),u=t===o;i<a;){var d=vt((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,m=f==f,g=dl(f);if(l)var v=r||m;else v=u?m&&(r||p):c?m&&p&&(r||!h):s?m&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?i=d+1:a=d}return wn(a,4294967294)}function so(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ka(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:dl(e)?m:+e}function fo(e){if("string"==typeof e)return e;if(Za(e))return At(e,fo)+"";if(dl(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=Pt;else if(i>=200){var s=t?null:Qo(e);if(s)return dn(s);a=!1,o=Jt,c=new qn}else c=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(u)}else o(c,d,n)||(c!==l&&c.push(d),l.push(u))}return l}function ho(e,t){return null==(e=Mi(e,t=ko(t,e)))||delete e[Bi(Ji(t))]}function mo(e,t,n,r){return to(e,t,n(Sr(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function bo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(a[i]=pr(a[i]||l,e[c],t,n));return po(yr(a,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var c=r<a?t[r]:o;n(l,e[r],c)}return l}function xo(e){return qa(e)?e:[]}function wo(e){return"function"==typeof e?e:ac}function ko(e,t){return Za(e)?e:Ei(e,t)?[e]:Hi(wl(e))}var Eo=Qr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:io(e,t,n)}var So=dt||function(e){return pt.clearTimeout(e)};function jo(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Oo(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Io(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=dl(e),l=t!==o,c=null===t,s=t==t,u=dl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||c&&n&&i||!l&&i||!s)return-1}return 0}function Mo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,c=-1,s=t.length,u=xn(a-l,0),d=r(s+u),f=!o;++c<s;)d[c]=t[c];for(;++i<l;)(f||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}function To(e,t,n,o){for(var i=-1,a=e.length,l=-1,c=n.length,s=-1,u=t.length,d=xn(a-c,0),f=r(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++s<u;)f[h+s]=t[s];for(;++l<c;)(p||i<a)&&(f[h+n[l]]=e[i++]);return f}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Ao(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?lr(n,c,s):rr(n,c,s)}return n}function Lo(e,t){return function(n,r){var o=Za(n)?jt:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Do(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&ki(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Xa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function zo(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function No(e){return function(t){var n=ln(t=wl(t))?hn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function Ho(e){return function(t){return Dt(ec(Gl(t).replace(Qe,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Kn(e.prototype),r=e.apply(n,t);return rl(r)?r:n}}function Fo(e){return function(t,n,r){var i=Ce(t);if(!Xa(t)){var a=di(n,3);t=Ll(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Uo(e){return ii((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Me(i);if(a&&!c&&"wrapper"==si(l))var c=new Vn([],!0)}for(r=c?r:n;++r<n;){var s=si(l=t[r]),u="wrapper"==s?ci(l):o;c=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[si(u[0])].apply(c,u[3]):1==l.length&&_i(l)?c[s]():c.thru(l)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Za(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ko(e,t,n,i,a,l,c,s,u,f){var p=t&d,h=1&t,m=2&t,g=24&t,v=512&t,b=m?o:Bo(e);return function o(){for(var d=arguments.length,y=r(d),x=d;x--;)y[x]=arguments[x];if(g)var w=ui(o),k=nn(y,w);if(i&&(y=Mo(y,i,a,g)),l&&(y=To(y,l,c,g)),d-=k,g&&d<f){var E=un(y,w);return qo(e,t,Ko,o.placeholder,n,y,E,s,u,f-d)}var _=h?n:this,S=m?_[e]:e;return d=y.length,s?y=Ti(y,s):v&&d>1&&y.reverse(),p&&u<d&&(y.length=u),this&&this!==pt&&this instanceof o&&(S=b||Bo(S)),S.apply(_,y)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return kr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=fo(n),r=fo(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Go(e){return ii((function(t){return t=At(t,$t(di())),Qr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}function Zo(e,t){var n=(t=t===o?" ":fo(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,mt(e/pn(t)));return ln(t)?_o(hn(r),0,e).join(""):r.slice(0,e)}function Yo(e){return function(t,n,i){return i&&"number"!=typeof i&&ki(t,n,i)&&(n=i=o),t=gl(t),n===o?(n=t,t=0):n=gl(n),function(e,t,n,o){for(var i=-1,a=xn(mt((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:gl(i),e)}}function Xo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yl(t),n=yl(n)),e(t,n)}}function qo(e,t,n,r,i,a,l,c,d,f){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,c,d,f],m=n.apply(o,h);return _i(e)&&Ai(m,h),m.placeholder=r,Ri(m,e,t)}function $o(e){var t=je[e];return function(e,n){if(e=yl(e),(n=null==n?0:wn(vl(n),292))&&Gt(e)){var r=(wl(e)+"e").split("e");return+((r=(wl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=In&&1/dn(new In([,-0]))[1]==p?function(e){return new In(e)}:dc;function Jo(e){return function(t){var n=vi(t);return n==S?cn(t):n==M?fn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,n,a,p,h,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(i);var b=a?a.length:0;if(b||(t&=-97,a=p=o),m=m===o?m:xn(vl(m),0),g=g===o?g:vl(g),b-=p?p.length:0,t&u){var y=a,x=p;a=p=o}var w=v?o:ci(e),k=[e,t,n,a,p,y,x,h,m,g];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?Mo(s,c,t[4]):c,e[4]=s?un(e[3],l):t[4]}(c=t[5])&&(s=e[5],e[5]=s?To(s,c,t[6]):c,e[6]=s?un(e[5],l):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(k,w),e=k[0],t=k[1],n=k[2],a=k[3],p=k[4],!(g=k[9]=k[9]===o?v?0:e.length:xn(k[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==c?function(e,t,n){var i=Bo(e);return function a(){for(var l=arguments.length,c=r(l),s=l,u=ui(a);s--;)c[s]=arguments[s];var d=l<3&&c[0]!==u&&c[l-1]!==u?[]:un(c,u);return(l-=d.length)<n?qo(e,t,Ko,a.placeholder,o,c,d,o,o,n-l):St(this&&this!==pt&&this instanceof a?i:e,this,c)}}(e,t,g):t!=s&&33!=t||p.length?Ko.apply(o,k):function(e,t,n,o){var i=1&t,a=Bo(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,d=r(u+c),f=this&&this!==pt&&this instanceof t?a:e;++s<u;)d[s]=o[s];for(;c--;)d[s++]=arguments[++l];return St(f,i?n:this,d)}}(e,t,n,a);else var E=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==pt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ri((w?no:Ai)(E,k),e,t)}function ti(e,t,n,r){return e===o||Ka(e,Ae[n])&&!Re.call(r,n)?t:e}function ni(e,t,n,r,i,a){return rl(e)&&rl(t)&&(a.set(t,e),Wr(e,t,o,ni,a),a.delete(t)),e}function ri(e){return ll(e)?o:e}function oi(e,t,n,r,i,a){var l=1&n,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))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 qn:o;for(a.set(e,t),a.set(t,e);++f<c;){var m=e[f],g=t[f];if(r)var v=l?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==o){if(v)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!Jt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Di(Ii(e,o,Yi),e+"")}function ai(e){return jr(e,Ll,mi)}function li(e){return jr(e,Dl,gi)}var ci=Pn?function(e){return Pn.get(e)}:dc;function si(e){for(var t=e.name+"",n=An[t],r=Re.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Re.call(Un,"placeholder")?Un:e).placeholder}function di(){var e=Un.iteratee||lc;return e=e===lc?zr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Ll(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function hi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var mi=bt?function(e){return null==e?[]:(e=Ce(e),Mt(bt(e),(function(t){return Xe.call(e,t)})))}:bc,gi=bt?function(e){for(var t=[];e;)Lt(t,mi(e)),e=Ze(e);return t}:bc,vi=Cr;function bi(e,t,n){for(var r=-1,o=(t=ko(t,e)).length,i=!1;++r<o;){var a=Bi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&nl(o)&&wi(a,o)&&(Za(e)||Ga(e))}function yi(e){return"function"!=typeof e.constructor||ji(e)?{}:Kn(Ze(e))}function xi(e){return Za(e)||Ga(e)||!!($e&&e&&e[$e])}function wi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function ki(e,t,n){if(!rl(n))return!1;var r=typeof t;return!!("number"==r?Xa(n)&&wi(t,n.length):"string"==r&&t in n)&&Ka(n[t],e)}function Ei(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!dl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function _i(e){var t=si(e),n=Un[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=ci(n);return!!r&&e===r[0]}(jn&&vi(new jn(new ArrayBuffer(1)))!=D||Cn&&vi(new Cn)!=S||On&&vi(On.resolve())!=O||In&&vi(new In)!=M||Mn&&vi(new Mn)!=A)&&(vi=function(e){var t=Cr(e),n=t==C?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Ln:return D;case Dn:return S;case Rn:return O;case zn:return M;case Nn:return A}return t});var Si=Le?el:yc;function ji(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Ci(e){return e==e&&!rl(e)}function Oi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ce(n)))}}function Ii(e,t,n){return t=xn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=xn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),St(e,this,c)}}function Mi(e,t){return t.length<2?e:Sr(e,io(t,0,-1))}function Ti(e,t){for(var n=e.length,r=wn(t.length,n),i=Po(e);r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=zi(no),Li=ht||function(e,t){return pt.setTimeout(e,t)},Di=zi(ro);function Ri(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function zi(e){var t=0,n=0;return function(){var r=kn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=qr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Hi=function(e){var t=za(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Bi(e){if("string"==typeof e||dl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof Gn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ki=Qr((function(e,t){return qa(e)?pr(e,yr(t,1,qa,!0)):[]})),Wi=Qr((function(e,t){var n=Ji(t);return qa(n)&&(n=o),qa(e)?pr(e,yr(t,1,qa,!0),di(n,2)):[]})),Vi=Qr((function(e,t){var n=Ji(t);return qa(n)&&(n=o),qa(e)?pr(e,yr(t,1,qa,!0),o,n):[]}));function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=xn(r+o,0)),Bt(e,di(t,3),o)}function Zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vl(n),i=n<0?xn(r+i,0):wn(i,r-1)),Bt(e,di(t,3),i,!0)}function Yi(e){return(null==e?0:e.length)?yr(e,1):[]}function Xi(e){return e&&e.length?e[0]:o}var qi=Qr((function(e){var t=At(e,xo);return t.length&&t[0]===e[0]?Tr(t):[]})),$i=Qr((function(e){var t=Ji(e),n=At(e,xo);return t===Ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,di(t,2)):[]})),Qi=Qr((function(e){var t=Ji(e),n=At(e,xo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var ea=Qr(ta);function ta(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var na=ii((function(e,t){var n=null==e?0:e.length,r=cr(e,t);return Xr(e,At(t,(function(e){return wi(e,n)?+e:e})).sort(Io)),r}));function ra(e){return null==e?e:Sn.call(e)}var oa=Qr((function(e){return po(yr(e,1,qa,!0))})),ia=Qr((function(e){var t=Ji(e);return qa(t)&&(t=o),po(yr(e,1,qa,!0),di(t,2))})),aa=Qr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,po(yr(e,1,qa,!0),o,t)}));function la(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(qa(e))return t=xn(e.length,t),!0})),Xt(t,(function(t){return At(e,Vt(t))}))}function ca(e,t){if(!e||!e.length)return[];var n=la(e);return null==t?n:At(n,(function(e){return St(t,o,e)}))}var sa=Qr((function(e,t){return qa(e)?pr(e,t):[]})),ua=Qr((function(e){return bo(Mt(e,qa))})),da=Qr((function(e){var t=Ji(e);return qa(t)&&(t=o),bo(Mt(e,qa),di(t,2))})),fa=Qr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,bo(Mt(e,qa),o,t)})),pa=Qr(la);var ha=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ca(e,n)}));function ma(e){var t=Un(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ii((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ba=Lo((function(e,t,n){Re.call(e,n)?++e[n]:lr(e,n,1)}));var ya=Fo(Gi),xa=Fo(Zi);function wa(e,t){return(Za(e)?Ct:hr)(e,di(t,3))}function ka(e,t){return(Za(e)?Ot:mr)(e,di(t,3))}var Ea=Lo((function(e,t,n){Re.call(e,n)?e[n].push(t):lr(e,n,[t])}));var _a=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Xa(e)?r(e.length):[];return hr(e,(function(e){a[++o]=i?St(t,e,n):Pr(e,t,n)})),a})),Sa=Lo((function(e,t,n){lr(e,n,t)}));function ja(e,t){return(Za(e)?At:Fr)(e,di(t,3))}var Ca=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ki(e,t[0],t[1])?t=[]:n>2&&ki(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,yr(t,1),[])})),Ia=ft||function(){return pt.Date.now()};function Ma(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ei(e,d,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=vl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pa=Qr((function(e,t,n){var r=1;if(n.length){var o=un(n,ui(Pa));r|=s}return ei(e,r,t,n,o)})),Aa=Qr((function(e,t,n){var r=3;if(n.length){var o=un(n,ui(Aa));r|=s}return ei(t,r,e,n,o)}));function La(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 m(t){var n=r,i=a;return r=a=o,d=t,c=e.apply(i,n)}function g(e){return d=e,s=Li(b,t),f?m(e):c}function v(e){var n=e-u;return u===o||n>=t||n<0||p&&e-d>=l}function b(){var e=Ia();if(v(e))return y(e);s=Li(b,function(e){var n=t-(e-u);return p?wn(n,l-(e-d)):n}(e))}function y(e){return s=o,h&&r?m(e):(r=a=o,c)}function x(){var e=Ia(),n=v(e);if(r=arguments,a=this,u=e,n){if(s===o)return g(u);if(p)return So(s),s=Li(b,t),m(u)}return s===o&&(s=Li(b,t)),c}return t=yl(t)||0,rl(n)&&(f=!!n.leading,l=(p="maxWait"in n)?xn(yl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),x.cancel=function(){s!==o&&So(s),d=0,r=u=a=s=o},x.flush=function(){return s===o?c:y(Ia())},x}var Da=Qr((function(e,t){return fr(e,1,t)})),Ra=Qr((function(e,t,n){return fr(e,yl(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);var n=function(){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(za.Cache||Xn),n}function Na(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)}}za.Cache=Xn;var Ha=Eo((function(e,t){var n=(t=1==t.length&&Za(t[0])?At(t[0],$t(di())):At(yr(t,1),$t(di()))).length;return Qr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return St(e,this,r)}))})),Ba=Qr((function(e,t){var n=un(t,ui(Ba));return ei(e,s,o,t,n)})),Fa=Qr((function(e,t){var n=un(t,ui(Fa));return ei(e,u,o,t,n)})),Ua=ii((function(e,t){return ei(e,f,o,o,o,t)}));function Ka(e,t){return e===t||e!=e&&t!=t}var Wa=Xo(Or),Va=Xo((function(e,t){return e>=t})),Ga=Ar(function(){return arguments}())?Ar:function(e){return ol(e)&&Re.call(e,"callee")&&!Xe.call(e,"callee")},Za=r.isArray,Ya=yt?$t(yt):function(e){return ol(e)&&Cr(e)==L};function Xa(e){return null!=e&&nl(e.length)&&!el(e)}function qa(e){return ol(e)&&Xa(e)}var $a=Nt||yc,Qa=xt?$t(xt):function(e){return ol(e)&&Cr(e)==w};function Ja(e){if(!ol(e))return!1;var t=Cr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ll(e)}function el(e){if(!rl(e))return!1;var t=Cr(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tl(e){return"number"==typeof e&&e==vl(e)}function nl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function rl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ol(e){return null!=e&&"object"==typeof e}var il=wt?$t(wt):function(e){return ol(e)&&vi(e)==S};function al(e){return"number"==typeof e||ol(e)&&Cr(e)==j}function ll(e){if(!ol(e)||Cr(e)!=C)return!1;var t=Ze(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var cl=kt?$t(kt):function(e){return ol(e)&&Cr(e)==I};var sl=Et?$t(Et):function(e){return ol(e)&&vi(e)==M};function ul(e){return"string"==typeof e||!Za(e)&&ol(e)&&Cr(e)==T}function dl(e){return"symbol"==typeof e||ol(e)&&Cr(e)==P}var fl=_t?$t(_t):function(e){return ol(e)&&nl(e.length)&&!!at[Cr(e)]};var pl=Xo(Br),hl=Xo((function(e,t){return e<=t}));function ml(e){if(!e)return[];if(Xa(e))return ul(e)?hn(e):Po(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==S?cn:t==M?dn:Kl)(e)}function gl(e){return e?(e=yl(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vl(e){var t=gl(e),n=t%1;return t==t?n?t-n:t:0}function bl(e){return e?sr(vl(e),0,g):0}function yl(e){if("number"==typeof e)return e;if(dl(e))return m;if(rl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=ve.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?m:+e}function xl(e){return Ao(e,Dl(e))}function wl(e){return null==e?"":fo(e)}var kl=Do((function(e,t){if(ji(t)||Xa(t))Ao(t,Ll(t),e);else for(var n in t)Re.call(t,n)&&rr(e,n,t[n])})),El=Do((function(e,t){Ao(t,Dl(t),e)})),_l=Do((function(e,t,n,r){Ao(t,Dl(t),e,r)})),Sl=Do((function(e,t,n,r){Ao(t,Ll(t),e,r)})),jl=ii(cr);var Cl=Qr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&ki(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Dl(a),c=-1,s=l.length;++c<s;){var u=l[c],d=e[u];(d===o||Ka(d,Ae[u])&&!Re.call(e,u))&&(e[u]=a[u])}return e})),Ol=Qr((function(e){return e.push(o,ni),St(zl,o,e)}));function Il(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Ml(e,t){return null!=e&&bi(e,t,Mr)}var Tl=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),e[t]=n}),rc(ac)),Pl=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=He.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),di),Al=Qr(Pr);function Ll(e){return Xa(e)?Qn(e):Nr(e)}function Dl(e){return Xa(e)?Qn(e,!0):Hr(e)}var Rl=Do((function(e,t,n){Wr(e,t,n)})),zl=Do((function(e,t,n,r){Wr(e,t,n,r)})),Nl=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=ko(t,e),r||(r=t.length>1),t})),Ao(e,li(e),n),r&&(n=ur(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Hl=ii((function(e,t){return null==e?{}:function(e,t){return Zr(e,t,(function(t,n){return Ml(e,n)}))}(e,t)}));function Bl(e,t){if(null==e)return{};var n=At(li(e),(function(e){return[e]}));return t=di(t),Zr(e,n,(function(e,n){return t(e,n[0])}))}var Fl=Jo(Ll),Ul=Jo(Dl);function Kl(e){return null==e?[]:Qt(e,Ll(e))}var Wl=Ho((function(e,t,n){return t=t.toLowerCase(),e+(n?Vl(t):t)}));function Vl(e){return Jl(wl(e).toLowerCase())}function Gl(e){return(e=wl(e))&&e.replace(we,rn).replace(Je,"")}var Zl=Ho((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Yl=Ho((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xl=No("toLowerCase");var ql=Ho((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $l=Ho((function(e,t,n){return e+(n?" ":"")+Jl(t)}));var Ql=Ho((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Jl=No("toUpperCase");function ec(e,t,n){return e=wl(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tc=Qr((function(e,t){try{return St(e,o,t)}catch(e){return Ja(e)?e:new _e(e)}})),nc=ii((function(e,t){return Ct(t,(function(t){t=Bi(t),lr(e,t,Pa(e[t],e))})),e}));function rc(e){return function(){return e}}var oc=Uo(),ic=Uo(!0);function ac(e){return e}function lc(e){return zr("function"==typeof e?e:ur(e,1))}var cc=Qr((function(e,t){return function(n){return Pr(n,e,t)}})),sc=Qr((function(e,t){return function(n){return Pr(e,n,t)}}));function uc(e,t,n){var r=Ll(t),o=_r(t,r);null!=n||rl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ll(t)));var i=!(rl(n)&&"chain"in n&&!n.chain),a=el(e);return Ct(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__),o=n.__actions__=Po(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function dc(){}var fc=Go(At),pc=Go(It),hc=Go(zt);function mc(e){return Ei(e)?Vt(Bi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var gc=Yo(),vc=Yo(!0);function bc(){return[]}function yc(){return!1}var xc=Vo((function(e,t){return e+t}),0),wc=$o("ceil"),kc=Vo((function(e,t){return e/t}),1),Ec=$o("floor");var _c,Sc=Vo((function(e,t){return e*t}),1),jc=$o("round"),Cc=Vo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=vl(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ma,Un.assign=kl,Un.assignIn=El,Un.assignInWith=_l,Un.assignWith=Sl,Un.at=jl,Un.before=Ta,Un.bind=Pa,Un.bindAll=nc,Un.bindKey=Aa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Za(e)?e:[e]},Un.chain=ma,Un.chunk=function(e,t,n){t=(n?ki(e,t,n):t===o)?1:xn(vl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=r(mt(i/t));a<i;)c[l++]=io(e,a,a+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(Za(n)?Po(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Me(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(St(o[0],this,n))return St(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Ll(e);return function(n){return dr(n,e,t)}}(ur(e,1))},Un.constant=rc,Un.countBy=ba,Un.create=function(e,t){var n=Kn(e);return null==t?n:ar(n,t)},Un.curry=function e(t,n,r){var i=ei(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=ei(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=La,Un.defaults=Cl,Un.defaultsDeep=Ol,Un.defer=Da,Un.delay=Ra,Un.difference=Ki,Un.differenceBy=Wi,Un.differenceWith=Vi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=n||t===o?1:vl(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,0,(t=r-(t=n||t===o?1:vl(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?go(e,di(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ki(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vl(r))<0&&(r+=i),r=n>r?0:bl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Za(e)?Mt:br)(e,di(t,3))},Un.flatMap=function(e,t){return yr(ja(e,t),1)},Un.flatMapDeep=function(e,t){return yr(ja(e,t),p)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:vl(n),yr(ja(e,t),n)},Un.flatten=Yi,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:vl(t)):[]},Un.flip=function(e){return ei(e,512)},Un.flow=oc,Un.flowRight=ic,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:_r(e,Ll(e))},Un.functionsIn=function(e){return null==e?[]:_r(e,Dl(e))},Un.groupBy=Ea,Un.initial=function(e){return(null==e?0:e.length)?io(e,0,-1):[]},Un.intersection=qi,Un.intersectionBy=$i,Un.intersectionWith=Qi,Un.invert=Tl,Un.invertBy=Pl,Un.invokeMap=_a,Un.iteratee=lc,Un.keyBy=Sa,Un.keys=Ll,Un.keysIn=Dl,Un.map=ja,Un.mapKeys=function(e,t){var n={};return t=di(t,3),kr(e,(function(e,r,o){lr(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=di(t,3),kr(e,(function(e,r,o){lr(n,r,t(e,r,o))})),n},Un.matches=function(e){return Ur(ur(e,1))},Un.matchesProperty=function(e,t){return Kr(e,ur(t,1))},Un.memoize=za,Un.merge=Rl,Un.mergeWith=zl,Un.method=cc,Un.methodOf=sc,Un.mixin=uc,Un.negate=Na,Un.nthArg=function(e){return e=vl(e),Qr((function(t){return Vr(t,e)}))},Un.omit=Nl,Un.omitBy=function(e,t){return Bl(e,Na(di(t)))},Un.once=function(e){return Ta(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Za(t)||(t=null==t?[]:[t]),Za(n=r?o:n)||(n=null==n?[]:[n]),Gr(e,t,n))},Un.over=fc,Un.overArgs=Ha,Un.overEvery=pc,Un.overSome=hc,Un.partial=Ba,Un.partialRight=Fa,Un.partition=Ca,Un.pick=Hl,Un.pickBy=Bl,Un.property=mc,Un.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Un.pull=ea,Un.pullAll=ta,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,di(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,o,n):e},Un.pullAt=na,Un.range=gc,Un.rangeRight=vc,Un.rearg=Ua,Un.reject=function(e,t){return(Za(e)?Mt:br)(e,Na(di(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Xr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Me(i);return Qr(e,t=t===o?t:vl(t))},Un.reverse=ra,Un.sampleSize=function(e,t,n){return t=(n?ki(e,t,n):t===o)?1:vl(t),(Za(e)?er:eo)(e,t)},Un.set=function(e,t,n){return null==e?e:to(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:to(e,t,n,r)},Un.shuffle=function(e){return(Za(e)?tr:oo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ki(e,t,n)?(t=0,n=r):(t=null==t?0:vl(t),n=n===o?r:vl(n)),io(e,t,n)):[]},Un.sortBy=Oa,Un.sortedUniq=function(e){return e&&e.length?so(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?so(e,di(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&ki(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=wl(e))&&("string"==typeof t||null!=t&&!cl(t))&&!(t=fo(t))&&ln(e)?_o(hn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:xn(vl(t),0),Qr((function(n){var r=n[t],o=_o(n,0,t);return r&&Lt(o,r),St(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?io(e,0,(t=n||t===o?1:vl(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?io(e,(t=r-(t=n||t===o?1:vl(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?go(e,di(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?go(e,di(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Me(i);return rl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ga,Un.toArray=ml,Un.toPairs=Fl,Un.toPairsIn=Ul,Un.toPath=function(e){return Za(e)?At(e,Bi):dl(e)?[e]:Po(Hi(wl(e)))},Un.toPlainObject=xl,Un.transform=function(e,t,n){var r=Za(e),o=r||$a(e)||fl(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:rl(e)&&el(i)?Kn(Ze(e)):{}}return(o?Ct:kr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Ma(e,1)},Un.union=oa,Un.unionBy=ia,Un.unionWith=aa,Un.uniq=function(e){return e&&e.length?po(e):[]},Un.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Un.unset=function(e,t){return null==e||ho(e,t)},Un.unzip=la,Un.unzipWith=ca,Un.update=function(e,t,n){return null==e?e:mo(e,t,wo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:mo(e,t,wo(n),r)},Un.values=Kl,Un.valuesIn=function(e){return null==e?[]:Qt(e,Dl(e))},Un.without=sa,Un.words=ec,Un.wrap=function(e,t){return Ba(wo(t),e)},Un.xor=ua,Un.xorBy=da,Un.xorWith=fa,Un.zip=pa,Un.zipObject=function(e,t){return yo(e||[],t||[],rr)},Un.zipObjectDeep=function(e,t){return yo(e||[],t||[],to)},Un.zipWith=ha,Un.entries=Fl,Un.entriesIn=Ul,Un.extend=El,Un.extendWith=_l,uc(Un,Un),Un.add=xc,Un.attempt=tc,Un.camelCase=Wl,Un.capitalize=Vl,Un.ceil=wc,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=yl(n))==n?n:0),t!==o&&(t=(t=yl(t))==t?t:0),sr(yl(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||dr(e,t,Ll(t))},Un.deburr=Gl,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=kc,Un.endsWith=function(e,t,n){e=wl(e),t=fo(t);var r=e.length,i=n=n===o?r:sr(vl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Ka,Un.escape=function(e){return(e=wl(e))&&$.test(e)?e.replace(X,on):e},Un.escapeRegExp=function(e){return(e=wl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Un.every=function(e,t,n){var r=Za(e)?It:gr;return n&&ki(e,t,n)&&(t=o),r(e,di(t,3))},Un.find=ya,Un.findIndex=Gi,Un.findKey=function(e,t){return Ht(e,di(t,3),kr)},Un.findLast=xa,Un.findLastIndex=Zi,Un.findLastKey=function(e,t){return Ht(e,di(t,3),Er)},Un.floor=Ec,Un.forEach=wa,Un.forEachRight=ka,Un.forIn=function(e,t){return null==e?e:xr(e,di(t,3),Dl)},Un.forInRight=function(e,t){return null==e?e:wr(e,di(t,3),Dl)},Un.forOwn=function(e,t){return e&&kr(e,di(t,3))},Un.forOwnRight=function(e,t){return e&&Er(e,di(t,3))},Un.get=Il,Un.gt=Wa,Un.gte=Va,Un.has=function(e,t){return null!=e&&bi(e,t,Ir)},Un.hasIn=Ml,Un.head=Xi,Un.identity=ac,Un.includes=function(e,t,n,r){e=Xa(e)?e:Kl(e),n=n&&!r?vl(n):0;var o=e.length;return n<0&&(n=xn(o+n,0)),ul(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=xn(r+o,0)),Ft(e,t,o)},Un.inRange=function(e,t,n){return t=gl(t),n===o?(n=t,t=0):n=gl(n),function(e,t,n){return e>=wn(t,n)&&e<xn(t,n)}(e=yl(e),t,n)},Un.invoke=Al,Un.isArguments=Ga,Un.isArray=Za,Un.isArrayBuffer=Ya,Un.isArrayLike=Xa,Un.isArrayLikeObject=qa,Un.isBoolean=function(e){return!0===e||!1===e||ol(e)&&Cr(e)==x},Un.isBuffer=$a,Un.isDate=Qa,Un.isElement=function(e){return ol(e)&&1===e.nodeType&&!ll(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Xa(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||fl(e)||Ga(e)))return!e.length;var t=vi(e);if(t==S||t==M)return!e.size;if(ji(e))return!Nr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Lr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Lr(e,t,o,n):!!r},Un.isError=Ja,Un.isFinite=function(e){return"number"==typeof e&&Gt(e)},Un.isFunction=el,Un.isInteger=tl,Un.isLength=nl,Un.isMap=il,Un.isMatch=function(e,t){return e===t||Dr(e,t,pi(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Dr(e,t,pi(t),n)},Un.isNaN=function(e){return al(e)&&e!=+e},Un.isNative=function(e){if(Si(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=al,Un.isObject=rl,Un.isObjectLike=ol,Un.isPlainObject=ll,Un.isRegExp=cl,Un.isSafeInteger=function(e){return tl(e)&&e>=-9007199254740991&&e<=h},Un.isSet=sl,Un.isString=ul,Un.isSymbol=dl,Un.isTypedArray=fl,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ol(e)&&vi(e)==A},Un.isWeakSet=function(e){return ol(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":bn.call(e,t)},Un.kebabCase=Zl,Un.last=Ji,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vl(n))<0?xn(r+i,0):wn(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):Bt(e,Kt,i,!0)},Un.lowerCase=Yl,Un.lowerFirst=Xl,Un.lt=pl,Un.lte=hl,Un.max=function(e){return e&&e.length?vr(e,ac,Or):o},Un.maxBy=function(e,t){return e&&e.length?vr(e,di(t,2),Or):o},Un.mean=function(e){return Wt(e,ac)},Un.meanBy=function(e,t){return Wt(e,di(t,2))},Un.min=function(e){return e&&e.length?vr(e,ac,Br):o},Un.minBy=function(e,t){return e&&e.length?vr(e,di(t,2),Br):o},Un.stubArray=bc,Un.stubFalse=yc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Sc,Un.nth=function(e,t){return e&&e.length?Vr(e,vl(t)):o},Un.noConflict=function(){return pt._===this&&(pt._=Fe),this},Un.noop=dc,Un.now=Ia,Un.pad=function(e,t,n){e=wl(e);var r=(t=vl(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(vt(o),n)+e+Zo(mt(o),n)},Un.padEnd=function(e,t,n){e=wl(e);var r=(t=vl(t))?pn(e):0;return t&&r<t?e+Zo(t-r,n):e},Un.padStart=function(e,t,n){e=wl(e);var r=(t=vl(t))?pn(e):0;return t&&r<t?Zo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(wl(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ki(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gl(e),t===o?(t=e,e=0):t=gl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return wn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=Za(e)?Dt:Zt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},Un.reduceRight=function(e,t,n){var r=Za(e)?Rt:Zt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Un.repeat=function(e,t,n){return t=(n?ki(e,t,n):t===o)?1:vl(t),$r(wl(e),t)},Un.replace=function(){var e=arguments,t=wl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=ko(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Bi(t[r])];a===o&&(r=i,a=n),e=el(a)?a.call(e):a}return e},Un.round=jc,Un.runInContext=e,Un.sample=function(e){return(Za(e)?Jn:Jr)(e)},Un.size=function(e){if(null==e)return 0;if(Xa(e))return ul(e)?pn(e):e.length;var t=vi(e);return t==S||t==M?e.size:Nr(e).length},Un.snakeCase=ql,Un.some=function(e,t,n){var r=Za(e)?zt:ao;return n&&ki(e,t,n)&&(t=o),r(e,di(t,3))},Un.sortedIndex=function(e,t){return lo(e,t)},Un.sortedIndexBy=function(e,t,n){return co(e,t,di(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=lo(e,t);if(r<n&&Ka(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return lo(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return co(e,t,di(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=lo(e,t,!0)-1;if(Ka(e[n],t))return n}return-1},Un.startCase=$l,Un.startsWith=function(e,t,n){return e=wl(e),n=null==n?0:sr(vl(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Un.subtract=Cc,Un.sum=function(e){return e&&e.length?Yt(e,ac):0},Un.sumBy=function(e,t){return e&&e.length?Yt(e,di(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&ki(e,t,n)&&(t=o),e=wl(e),t=_l({},t,r,ti);var i,a,l=_l({},t.imports,r.imports,ti),c=Ll(l),s=Qt(l,c),u=0,d=t.interpolate||ke,f="__p += '",p=Oe((t.escape||ke).source+"|"+d.source+"|"+(d===ee?he:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(Ee,an),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(V,""):f).replace(G,"$1").replace(Z,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=tc((function(){return Se(c,h+"return "+f).apply(o,s)}));if(g.source=f,Ja(g))throw g;return g},Un.times=function(e,t){if((e=vl(e))<1||e>h)return[];var n=g,r=wn(e,g);t=di(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},Un.toFinite=gl,Un.toInteger=vl,Un.toLength=bl,Un.toLower=function(e){return wl(e).toLowerCase()},Un.toNumber=yl,Un.toSafeInteger=function(e){return e?sr(vl(e),-9007199254740991,h):0===e?e:0},Un.toString=wl,Un.toUpper=function(e){return wl(e).toUpperCase()},Un.trim=function(e,t,n){if((e=wl(e))&&(n||t===o))return qt(e);if(!e||!(t=fo(t)))return e;var r=hn(e),i=hn(t);return _o(r,en(r,i),tn(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=wl(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=fo(t)))return e;var r=hn(e);return _o(r,0,tn(r,hn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=wl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var r=hn(e);return _o(r,en(r,hn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(rl(t)){var i="separator"in t?t.separator:i;n="length"in t?vl(t.length):n,r="omission"in t?fo(t.omission):r}var a=(e=wl(e)).length;if(ln(e)){var l=hn(e);a=l.length}if(n>=a)return e;var c=n-pn(r);if(c<1)return r;var s=l?_o(l,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(l&&(c+=s.length-c),cl(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=Oe(i.source,wl(me.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(fo(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Un.unescape=function(e){return(e=wl(e))&&q.test(e)?e.replace(Y,gn):e},Un.uniqueId=function(e){var t=++ze;return wl(e)+t},Un.upperCase=Ql,Un.upperFirst=Jl,Un.each=wa,Un.eachRight=ka,Un.first=Xi,uc(Un,(_c={},kr(Un,(function(e,t){Re.call(Un.prototype,t)||(_c[t]=e)})),_c),{chain:!1}),Un.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ct(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===o?1:xn(vl(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ac)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Pr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Na(di(e)))},Gn.prototype.slice=function(e,t){e=vl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(g)},kr(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,c=t instanceof Gn,s=l[0],u=c||Za(t),d=function(e){var t=i.apply(Un,Lt([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,m=c&&!p;if(!a&&u){t=m?t:new Gn(this);var g=e.apply(t,l);return g.__actions__.push({func:ga,args:[d],thisArg:o}),new Vn(g,f)}return h&&m?e.apply(this,l):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Za(o)?o:[],e)}return this[n]((function(n){return t.apply(Za(n)?n:[],e)}))}})),kr(Gn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Re.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Ko(o,2).name]=[{name:"wrapper",func:o}],Gn.prototype.clone=function(){var e=new Gn(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},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=xn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=wn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return vo(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var m=-1,g=e[s+=t];++m<d;){var v=u[m],b=v.iteratee,y=v.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}h[f++]=g}return h},Un.prototype.at=va,Un.prototype.chain=function(){return ma(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=ml(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Ui(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ra],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(ra)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,et&&(Un.prototype[et]=function(){return this}),Un}();pt._=vn,(r=function(){return vn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},4516:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,c=o(e),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))n.call(a,u)&&(c[u]=a[u]);if(t){l=t(a);for(var d=0;d<l.length;d++)r.call(a,l[d])&&(c[l[d]]=a[l[d]])}}return c}},6094:function(e,t,n){"use strict";n(4516);var r=n(9787),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,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)l.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:a.current}}t.jsx=s,t.jsxs=s},4512:function(e,t,n){"use strict";e.exports=n(6094)},1602:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function g(){}function v(){}function b(){}var y={};y[i]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(I([])));w&&w!==n&&r.call(w,i)&&(y=w);var k=b.prototype=g.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var c=u(e[o],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var o;this._invoke=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 S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:t,done:!0}}return v.prototype=k.constructor=b,b.constructor=v,v.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},E(_.prototype),_.prototype[a]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new _(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(k),c(k,l,"Generator"),k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},8336:function(e,t,n){var r=n(487),o=n(4295);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},554:function(e,t,n){var r=n(487),o=n(9135);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},2789:function(e,t,n){var r=n(487),o=n(3729);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},5080:function(e,t,n){var r=n(487),o=n(4241);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},7225:function(e,t,n){var r=n(487),o=n(6029);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},778:function(e,t,n){var r=n(487),o=n(9609);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4220:function(e,t,n){var r=n(487),o=n(2345);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4678:function(e,t,n){var r=n(487),o=n(9393);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},1292:function(e,t,n){var r=n(487),o=n(6578);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},196:function(e,t,n){var r=n(487),o=n(9482);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},2205:function(e,t,n){var r=n(487),o=n(7955);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},1310:function(e,t,n){var r=n(487),o=n(3195);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},3922:function(e,t,n){var r=n(487),o=n(2978);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},7096:function(e,t,n){var r=n(487),o=n(1587);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},7117:function(e,t,n){var r=n(487),o=n(9478);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},1106:function(e,t,n){var r=n(487),o=n(7369);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},3336:function(e,t,n){var r=n(487),o=n(1434);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4406:function(e,t,n){var r=n(487),o=n(8923);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},6043:function(e,t,n){var r=n(487),o=n(5605);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},694:function(e,t,n){var r=n(487),o=n(5644);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},8328:function(e,t,n){var r=n(487),o=n(6843);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},8051:function(e,t,n){var r=n(487),o=n(8461);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4301:function(e,t,n){var r=n(487),o=n(9935);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},9966:function(e,t,n){var r=n(487),o=n(532);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},9295:function(e,t,n){var r=n(487),o=n(7589);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},9781:function(e,t,n){var r=n(487),o=n(8465);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},371:function(e,t,n){var r=n(487),o=n(5892);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4623:function(e,t,n){var r=n(487),o=n(3874);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},1528:function(e,t,n){var r=n(487),o=n(2681);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},518:function(e,t,n){var r=n(487),o=n(6759);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},9757:function(e,t,n){var r=n(487),o=n(9650);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},5422:function(e,t,n){var r=n(487),o=n(2044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},276:function(e,t,n){var r=n(487),o=n(9144);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},6781:function(e,t,n){var r=n(487),o=n(6626);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},580:function(e,t,n){var r=n(487),o=n(6359);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4285:function(e,t,n){var r=n(487),o=n(9915);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},3313:function(e,t,n){var r=n(487),o=n(9310);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},8635:function(e,t,n){var r=n(487),o=n(6464);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},4404:function(e,t,n){var r=n(487),o=n(5260);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},487:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var d=l(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=s(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},788:function(e,t,n){var r={"./ar-SA.json":[7822,558],"./bg-BG.json":[1203,384],"./bn-BD.json":[8525,603],"./ca-ES.json":[510,351],"./cs-CZ.json":[7605,387],"./da-DK.json":[2392,617],"./de-DE.json":[2853,43],"./el-GR.json":[9876,526],"./en.json":[1463],"./es-ES.json":[2264,317],"./eu-ES.json":[5658,431],"./fa-IR.json":[3747,710],"./fi-FI.json":[9490,472],"./fr-FR.json":[7830,364],"./he-IL.json":[1994,262],"./hi-IN.json":[4646,933],"./hu-HU.json":[6373,661],"./id-ID.json":[3247,491],"./it-IT.json":[3257,465],"./ja-JP.json":[198,137],"./kab-KAB.json":[228,164],"./kk-KZ.json":[8972,649],"./ko-KR.json":[7596,60],"./lt-LT.json":[3755,58],"./lv-LV.json":[2327,899],"./my-MM.json":[7704,242],"./nb-NO.json":[1167,246],"./nl-NL.json":[290,196],"./nn-NO.json":[4481,920],"./oc-FR.json":[2284,565],"./pa-IN.json":[6773,280],"./percentages.json":[4451],"./pl-PL.json":[3661,852],"./pt-BR.json":[8881,381],"./pt-PT.json":[5622,149],"./ro-RO.json":[2013,752],"./ru-RU.json":[2253,869],"./si-LK.json":[5497,90],"./sk-SK.json":[4570,401],"./sv-SE.json":[6006,698],"./ta-IN.json":[3952,395],"./tr-TR.json":[7315,213],"./uk-UA.json":[334,583],"./zh-CN.json":[1037,304],"./zh-HK.json":[5334,9],"./zh-TW.json":[931,62]};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=788,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<a.length;o++)n=a[o],t.indexOf(n)>=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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},4295:function(e,t,n){"use strict";n.r(t);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=a()(o()),f=c()(s),p=c()(u);d.push([e.id,'@font-face{font-family:"Virgil";src:url('+f+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+p+");font-display:swap}",""]),t.default=d},9135:function(e,t,n){"use strict";n.r(t);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.default=a},3729:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .Avatar{width:2.5rem;height:2.5rem;border-radius:1.25rem;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;font-size:.8rem;font-weight:500}",""]),t.default=a},4241:function(e,t,n){"use strict";n.r(t);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)}.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.default=a},6029:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.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:transparent;border-radius:4px;color:#1c7ed6}.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.default=a},9609:function(e,t,n){"use strict";n.r(t);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)}.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;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#40c057;color:#fff;font-size:.7em;font-family:var(--ui-font)}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}",""]),t.default=a},2345:function(e,t,n){"use strict";n.r(t);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)}.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}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:transparent transparent var(--popup-bg-color);position:absolute;top:-10px}:root[dir=ltr] .excalidraw .color-picker-triangle{left:12px}:root[dir=rtl] .excalidraw .color-picker-triangle{right:12px}.excalidraw .color-picker-triangle-shadow{border-color:transparent transparent rgba(0,0,0,.1);top:-11px}.excalidraw .color-picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(5, auto);grid-gap:.5rem;border-radius:4px}.excalidraw .color-picker-content:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.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{background:var(--input-border-color);height:1.875rem;width:1.875rem;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:4px 0 0 4px}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 4px 4px 0}.excalidraw .color-input-container:focus-within .color-picker-hash{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-input-container:focus-within .color-picker-hash::before,.excalidraw .color-input-container:focus-within .color-picker-hash::after{content:"";width:1px;height:100%;position:absolute;top:0}.excalidraw .color-input-container:focus-within .color-picker-hash::before{background:var(--input-border-color)}:root[dir=ltr] .excalidraw .color-input-container:focus-within .color-picker-hash::before{right:-1px}:root[dir=rtl] .excalidraw .color-input-container:focus-within .color-picker-hash::before{left:-1px}.excalidraw .color-input-container:focus-within .color-picker-hash::after{background:var(--input-bg-color)}:root[dir=ltr] .excalidraw .color-input-container:focus-within .color-picker-hash::after{right:-2px}:root[dir=rtl] .excalidraw .color-input-container:focus-within .color-picker-hash::after{left:-2px}.excalidraw .color-input-container{display:flex}.excalidraw .color-picker-input{width:11ch;margin:0;font-size:1rem;background-color:var(--input-bg-color);color:var(--text-primary-color);border:0;outline:none;height:1.75em;box-shadow:var(--input-border-color) 0 0 0 1px inset;float:left;padding:1px;-webkit-padding-start:.5em;padding-inline-start:.5em;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 4px 4px 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:4px 0 0 4px}.excalidraw .color-picker-label-swatch{height:1.875rem;width:1.875rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem;border:1px solid #dee2e6;position:relative;overflow:hidden;background-color:transparent !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.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.default=u},9393:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .confirm-dialog-buttons{display:flex;padding:.2rem 0;justify-content:flex-end}.excalidraw .confirm-dialog .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .confirm-dialog .ToolIcon_type_button{margin-left:.8rem;padding:0 .5rem}.excalidraw .confirm-dialog__content{font-size:1rem}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button{background-color:#fa5252}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button:hover{background-color:#e03131}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button .ToolIcon__icon{color:#fff}",""]),t.default=a},6578:function(e,t,n){"use strict";n.r(t);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)}.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-option{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:transparent;border:none;white-space:nowrap;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-option.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-option.dangerous .context-menu-option__label{color:#f03e3e}.excalidraw .context-menu-option .context-menu-option__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-option .context-menu-option__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-option:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-option:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-option:hover.dangerous .context-menu-option__label{color:var(--popup-bg-color)}.excalidraw .context-menu-option:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-option{display:block}.excalidraw--mobile.excalidraw .context-menu-option .context-menu-option__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-option .context-menu-option__shortcut{display:none}.excalidraw .context-menu-option-separator{border:none;border-top:1px solid #adb5bd}',""]),t.default=a},9482:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{display:grid;align-items:center;margin-top:0;grid-template-columns:1fr calc(var(--space-factor)*7);grid-gap:var(--metric);padding:calc(var(--space-factor)*2);text-align:center;font-variant:small-caps;font-size:1.2em}.excalidraw .Dialog__titleContent{flex:1}.excalidraw .Dialog .Modal__close{color:var(--icon-fill-color);margin:0}.excalidraw .Dialog__content{padding:0 16px 16px}.excalidraw--mobile.excalidraw .Dialog{--metric: calc(var(--space-factor) * 4);--inset-left: max(var(--metric), var(--sal));--inset-right: max(var(--metric), var(--sar))}.excalidraw--mobile.excalidraw .Dialog__title{grid-template-columns:calc(var(--space-factor)*7) 1fr calc(var(--space-factor)*7);position:-webkit-sticky;position:sticky;top:0;padding:calc(var(--space-factor)*2);background:var(--island-bg-color);font-size:1.25em;box-sizing:border-box;border-bottom:1px solid var(--button-gray-2);z-index:1}.excalidraw--mobile.excalidraw .Dialog__titleContent{text-align:center}.excalidraw--mobile.excalidraw .Dialog .Island{width:100vw;height:100%;box-sizing:border-box;overflow-y:auto;padding-left:max(calc(var(--padding) * var(--space-factor)), var(--sal));padding-right:max(calc(var(--padding) * var(--space-factor)), var(--sar));padding-bottom:max(calc(var(--padding) * var(--space-factor)), var(--sab))}.excalidraw--mobile.excalidraw .Dialog .Modal__close{order:-1}",""]),t.default=a},7955:function(e,t,n){"use strict";n.r(t);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)}.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)}.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{width:5rem;height:5rem;margin:0 .2em;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.default=u},3195:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:all}.excalidraw .FixedSideContainer_side_top{left:var(--space-factor);top:var(--space-factor);right:var(--space-factor);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),t.default=a},2978:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .HelpDialog h3{border-bottom:1px solid var(--button-gray-2);padding-bottom:4px}.excalidraw .HelpDialog--island{border:1px solid var(--button-gray-2);margin-bottom:16px}.excalidraw .HelpDialog--island-title{margin:0;padding:4px;background-color:var(--button-gray-1);text-align:center}.excalidraw .HelpDialog--shortcut{border-top:1px solid var(--button-gray-2)}.excalidraw .HelpDialog--key{word-break:keep-all;border:1px solid var(--button-gray-2);padding:2px 8px;margin:auto 4px;background-color:var(--button-gray-1);border-radius:2px;font-size:.8em;min-height:26px;box-sizing:border-box;display:flex;align-items:center;font-family:inherit}.excalidraw .HelpDialog--header{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:32px;padding-bottom:16px}.excalidraw .HelpDialog--btn{border:1px solid var(--link-color);padding:8px 32px;border-radius:4px}.excalidraw .HelpDialog--btn:hover{text-decoration:none}",""]),t.default=a},1587:function(e,t,n){"use strict";n.r(t);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)}.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:6px;text-align:center;color:#868e96;font-size:.8rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2em}.excalidraw .HintViewer>span{padding:.2rem .4rem;background-color:var(--overlay-bg-color);border-radius:4px}",""]),t.default=a},9478:function(e,t,n){"use strict";n.r(t);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)}.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) 0 1px 4px;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:transparent;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;opacity:.6;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:transparent transparent rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:transparent transparent 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.default=a},7369:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Island{--padding: 0;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.default=a},1434:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .layer-ui__wrapper{z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex}.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)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-left{-webkit-transform:translate(-76px, 0);transform:translate(-76px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-left{-webkit-transform:translate(76px, 0);transform:translate(76px, 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-center{pointer-events:none}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-center>*{pointer-events:all}.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-left{margin-bottom:.2em}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto;-webkit-margin-end:1em;margin-inline-end:1em}",""]),t.default=a},8923:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .layer-ui__library{margin:auto;display:flex;align-items:center;justify-content:center}.excalidraw .layer-ui__library .layer-ui__library-header{display:flex;align-items:center;width:100%;margin:2px 0}.excalidraw .layer-ui__library .layer-ui__library-header button{margin:0 2px}.excalidraw .layer-ui__library .layer-ui__library-header a{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-end:18px;padding-inline-end:18px;white-space:nowrap}.excalidraw .layer-ui__library-message{padding:10px 20px;max-width:200px}.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}",""]),t.default=a},5605:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .library-menu-items-container .library-actions{display:flex}.excalidraw .library-menu-items-container .library-actions button .library-actions-counter{position:absolute;right:2px;bottom:2px;border-radius:50%;width:1em;height:1em;padding:1px;font-size:.7rem;background:#fff}.excalidraw .library-menu-items-container .library-actions--remove{background-color:#f03e3e}.excalidraw .library-menu-items-container .library-actions--remove:hover{background-color:#e03131}.excalidraw .library-menu-items-container .library-actions--remove:active{background-color:#c92a2a}.excalidraw .library-menu-items-container .library-actions--remove svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--remove .library-actions-counter{color:#f03e3e}.excalidraw .library-menu-items-container .library-actions--export{background-color:#94d82d}.excalidraw .library-menu-items-container .library-actions--export:hover{background-color:#74b816}.excalidraw .library-menu-items-container .library-actions--export:active{background-color:#66a80f}.excalidraw .library-menu-items-container .library-actions--export svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--export .library-actions-counter{color:#94d82d}.excalidraw .library-menu-items-container .library-actions--publish{background-color:#15aabf}.excalidraw .library-menu-items-container .library-actions--publish:hover{background-color:#1098ad}.excalidraw .library-menu-items-container .library-actions--publish:active{background-color:#0b7285}.excalidraw .library-menu-items-container .library-actions--publish svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--publish label{margin-left:-0.2em;margin-right:1.1em;color:#fff;font-size:.86em}.excalidraw .library-menu-items-container .library-actions--publish .library-actions-counter{color:#15aabf}.excalidraw .library-menu-items-container .library-actions--load{background-color:#228be6}.excalidraw .library-menu-items-container .library-actions--load:hover{background-color:#1c7ed6}.excalidraw .library-menu-items-container .library-actions--load:active{background-color:#1864ab}.excalidraw .library-menu-items-container .library-actions--load svg{color:#fff}.excalidraw .library-menu-items-container__items{max-height:50vh;overflow:auto;margin-top:.5rem}.excalidraw .library-menu-items-container .separator{font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}",""]),t.default=a},5644:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .library-unit{align-items:center;border:1px solid var(--button-gray-2);display:flex;justify-content:center;position:relative;width:63px;height:63px}.excalidraw .library-unit--hover{box-shadow:inset 0px 0px 0px 2px #339af0;border-color:#339af0}.excalidraw .library-unit--selected{box-shadow:inset 0px 0px 0px 2px #1971c2;border-color:#1971c2}.excalidraw.theme--dark .library-unit{border-color:#303030}.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;left:2.3rem;bottom:2.3rem}.excalidraw .library-unit__checkbox .Checkbox-box{width:13px;height:13px;border-radius:2px;margin:.5em .5em .2em .2em;background-color:#d0ebff}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:#a5d8ff}.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}.excalidraw .library-unit__adder{position:absolute;left:40%;top:40%;width:2rem;height:2rem;margin-left:-10px;margin-top:-10px;pointer-events:none}.excalidraw .library-unit:hover .library-unit__adder{fill:#1c7ed6}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8);fill:#000}.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.default=a},6843:function(e,t,n){"use strict";n.r(t);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)}.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__background{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(0,0,0,.7)}.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:0 2px 10px rgba(0,0,0,.25);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{width:calc(var(--space-factor)*7);height:calc(var(--space-factor)*7);display:flex;align-items:center;justify-content:center}.excalidraw .Modal__close svg{height:calc(var(--space-factor)*5)}.excalidraw--mobile.excalidraw .Modal{padding:0}.excalidraw--mobile.excalidraw .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.default=a},8461:function(e,t,n){"use strict";n.r(t);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)}.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:transparent}.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.default=a},9935:function(e,t,n){"use strict";n.r(t);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}",""]),t.default=a},532:function(e,t,n){"use strict";n.r(t);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.default=a},7589:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em;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}.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;padding:0 .8rem;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-note{padding:1em;font-style:italic;font-size:14px;display:block}",""]),t.default=a},8465:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item__svg{width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2);margin:.3rem}.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:1.3rem}.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.default=a},5892:function(e,t,n){"use strict";n.r(t);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.default=a},3874:function(e,t,n){"use strict";n.r(t);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.default=a},2681:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10}.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.default=a},6759:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .TextInput{display:inline-block}",""]),t.default=a},9650:function(e,t,n){"use strict";n.r(t);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)}.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__message{color:var(--popup-text-color);white-space:pre-wrap}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),t.default=a},2044:function(e,t,n){"use strict";n.r(t);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)}.excalidraw .ToolIcon{display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon--plain{background-color:transparent}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon{background-color:var(--button-gray-1)}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon:hover,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__icon{width:2.5rem;height:2.5rem;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;height:1em;fill:var(--icon-fill-color);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 .excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit}.excalidraw .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 .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 .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 .excalidraw .ToolIcon_type_button:hover,.excalidraw .Modal .ToolIcon_type_button:hover,.excalidraw .ToolIcon_type_button:hover{background-color:var(--button-gray-2)}.excalidraw .excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{visibility:hidden}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon_type_radio:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_radio:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon:active,.excalidraw .ToolIcon_type_checkbox:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_radio:focus-visible+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:focus-visible+.ToolIcon__icon{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_radio:active+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:active+.ToolIcon__icon{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_floating{background-color:transparent}.excalidraw .ToolIcon_type_floating:hover{background-color:transparent}.excalidraw .ToolIcon_type_floating:active{background-color:transparent}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2em}.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:.5em;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}@media(max-width: 425px){.excalidraw .Shape .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .Shape .ToolIcon__icon svg{height:.8em}}@media(max-width: 760px){.excalidraw .ToolIcon.ToolIcon_type_floating{display:inline-block;position:absolute;right:-8px;margin-left:0;border-radius:20px 0 0 20px;z-index:1;background-color:var(--button-gray-1)}.excalidraw .ToolIcon.ToolIcon_type_floating:hover{background-color:var(--button-gray-1)}.excalidraw .ToolIcon.ToolIcon_type_floating:active{background-color:var(--button-gray-2)}.excalidraw .ToolIcon.ToolIcon_type_floating .ToolIcon__icon{border-radius:inherit}.excalidraw .ToolIcon.ToolIcon_type_floating svg{position:static}.excalidraw .ToolIcon.ToolIcon__library{top:100px}.excalidraw .ToolIcon.ToolIcon__lock{-webkit-margin-end:0;margin-inline-end:0;top:60px}.excalidraw .ToolIcon.ToolIcon__penMode{-webkit-margin-end:0;margin-inline-end:0;top:140px}}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}",""]),t.default=a},9144:function(e,t,n){"use strict";n.r(t);var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox+.ToolIcon__icon:active{background:var(--color-primary-light)}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary);--icon-fill-color: #ffffff;--keybinding-color: #ffffff}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:checked+.ToolIcon__icon:active,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:checked+.ToolIcon__icon:active{background:var(--color-primary-darker)}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .App-toolbar-container .ToolIcon_type_floating:not(.is-mobile) .ToolIcon__icon{padding:1px;background-color:var(--island-bg-color);box-shadow:1px 3px 4px 0px rgba(0,0,0,.15);border-radius:50%;transition:box-shadow .5s ease,-webkit-transform .5s ease;transition:box-shadow .5s ease,transform .5s ease;transition:box-shadow .5s ease,transform .5s ease,-webkit-transform .5s ease}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:focus-within+.ToolIcon__icon,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:focus-within+.ToolIcon__icon{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .App-toolbar-container .ToolIcon__hidden{box-shadow:none !important;background-color:transparent !important;pointer-events:none !important}.excalidraw .App-toolbar-container .ToolIcon.ToolIcon__lock{-webkit-margin-end:var(--space-factor);margin-inline-end:var(--space-factor)}.excalidraw .App-toolbar-container .ToolIcon.ToolIcon__lock.ToolIcon_type_floating{margin-left:.1rem}.excalidraw .App-toolbar-container .ToolIcon__library{-webkit-margin-start:var(--space-factor);margin-inline-start:var(--space-factor)}.excalidraw .App-toolbar-container.zen-mode .ToolIcon_type_floating .ToolIcon__icon{box-shadow:none;-webkit-transform:scale(0.9);transform:scale(0.9)}.excalidraw .App-toolbar-container.zen-mode .ToolIcon_type_floating .ToolIcon_type_checkbox:not(:checked):not(:hover):not(:active)+.ToolIcon__icon svg{fill:#adb5bd;color:#adb5bd}.excalidraw .App-toolbar{border-radius:var(--border-radius-lg);box-shadow:0 0 0 1px rgba(0,0,0,.01),1px 1px 5px rgba(0,0,0,.15)}.excalidraw .App-toolbar .ToolIcon:hover{--icon-fill-color: var( --color-primary-contrast-offset, var(--color-primary) );--keybinding-color: var( --color-primary-contrast-offset, var(--color-primary) )}.excalidraw .App-toolbar .ToolIcon:active{--icon-fill-color: #212529;--keybinding-color: #212529}.excalidraw .App-toolbar .ToolIcon .ToolIcon__icon{background:transparent;border-radius:var(--border-radius-lg)}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox+.ToolIcon__icon:active{background:var(--color-primary-light)}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary);--icon-fill-color: #ffffff;--keybinding-color: #ffffff}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon:active,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon:active{background:var(--color-primary-darker)}.excalidraw .App-toolbar .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw.theme--dark .App-toolbar .ToolIcon:active{--icon-fill-color: #dee2e6;--keybinding-color: #dee2e6}",""]),t.default=a},6626:function(e,t,n){"use strict";n.r(t);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)}.excalidraw-tooltip{position:absolute;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.default=a},6359:function(e,t,n){"use strict";n.r(t);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}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:all;margin:0 0 var(--space-factor) var(--space-factor)}.excalidraw .UserList_mobile{padding:0;justify-content:normal}.excalidraw .UserList_mobile>*{margin:0 var(--space-factor) var(--space-factor) 0}",""]),t.default=a},9915:function(e,t,n){"use strict";n.r(t);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;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage span{background-color:var(--button-gray-1);border-radius:5px;padding:.8em 1.2em;color:var(--popup-text-color);font-size:1.3em}",""]),t.default=a},9310:function(e,t,n){"use strict";n.r(t);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)}:export{themeFilter:invert(93%) hue-rotate(180deg)}.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: #868e96;--dropdown-icon: url("+f+");--focus-highlight-color: #a5d8ff;--icon-fill-color: #212529;--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: #adb5bd;--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: 0 0 0 1px rgba(0, 0, 0, 0.01), 1px 1px 5px rgb(0 0 0 / 12%);--space-factor: 0.25rem;--text-primary-color: #343a40;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e2e1fc;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem}.excalidraw.theme--dark{background:#000}.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: #212529;--dropdown-icon: url("+p+');--focus-highlight-color: #228be6;--icon-fill-color: #ced4da;--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: rgba(30, 30, 30, 0.98);--keybinding-color: #868e96;--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;--shadow-island: 1px 1px 5px rgba(0, 0, 0, 0.3);--text-primary-color: #ced4da;--color-primary: #5650f0;--color-primary-darker: #4b46d8;--color-primary-darkest: #3e39be;--color-primary-light: #3f3d64}:root{--zIndex-canvas: 1;--zIndex-wysiwyg: 2;--zIndex-layerUI: 3}.excalidraw{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: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}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin-top:.333rem;margin-bottom:.333rem;font-size:.75rem;color:var(--text-primary-color);font-weight:bold;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn h3:first-child,.excalidraw .panelColumn legend:first-child,.excalidraw .panelColumn .control-label:first-child{margin-top:0}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap}.excalidraw .panelColumn .buttonList label{margin-right:.25rem;font-size:.75rem;display:inline-block}.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 .buttonList .ToolIcon{margin:0;-webkit-margin-end:8px;margin-inline-end:8px}.excalidraw .panelColumn .buttonList .ToolIcon:focus{outline:transparent;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .panelColumn .buttonList .ToolIcon:hover{background-color:var(--button-gray-2)}.excalidraw .panelColumn .buttonList .ToolIcon:active{background-color:var(--button-gray-3)}.excalidraw .panelColumn .buttonList .ToolIcon:disabled{cursor:not-allowed}.excalidraw .panelColumn .buttonList .ToolIcon__icon{width:28px;height:28px}.excalidraw .panelColumn fieldset{margin:0;margin-top:.333rem;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:transparent;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw button,.excalidraw .buttonList label{-webkit-user-select:none;user-select:none;background-color:var(--button-gray-1);border:0;border-radius:var(--border-radius-md);margin:.125rem 0;padding:.25rem;white-space:nowrap;cursor:pointer}.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-visible{outline:transparent;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw button:hover,.excalidraw .buttonList label:hover{background-color:var(--button-gray-2)}.excalidraw button:active,.excalidraw .buttonList label:active{background-color:var(--button-gray-3)}.excalidraw button:disabled,.excalidraw .buttonList label:disabled{cursor:not-allowed}.excalidraw .active,.excalidraw .buttonList label.active{background-color:var(--color-primary);--icon-fill-color: #ffffff}.excalidraw .active:hover,.excalidraw .buttonList label.active:hover{background-color:var(--color-primary-darker)}.excalidraw .active:active,.excalidraw .buttonList label.active:active{background-color:var(--color-primary-darkest)}.excalidraw .buttonList.buttonListIcon label{display:inline-flex;justify-content:center;align-items:center}.excalidraw .buttonList.buttonListIcon label svg{width:35px;height:14px;padding:2px;opacity:.6}.excalidraw .buttonList.buttonListIcon label.active svg{opacity:1}.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%;box-sizing:border-box}.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 .App-menu_top{grid-template-columns:auto -webkit-max-content auto;grid-template-columns:auto max-content auto;grid-gap:4px;align-items:flex-start;cursor:default;pointer-events:none !important}.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:0;grid-template-columns:-webkit-min-content auto -webkit-min-content;grid-template-columns:min-content auto min-content;grid-gap:15px;align-items:flex-start;cursor:default;pointer-events:none !important;z-index:100}:root[dir=ltr] .excalidraw .App-menu_bottom{left:.25rem}:root[dir=rtl] .excalidraw .App-menu_bottom{right:.25rem}.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}.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 .zIndexButton{margin:0;-webkit-margin-end:8px;margin-inline-end:8px;padding:5px;display:inline-flex;align-items:center;justify-content:center}.excalidraw .zIndexButton svg{width:18px;height:18px}.excalidraw .scroll-back-to-content{color:var(--popup-text-color);position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);padding:10px 20px}.excalidraw .help-icon{display:flex;cursor:pointer;fill:#868e96;padding:0;margin:0;background:none;color:var(--icon-fill-color)}.excalidraw .help-icon svg{width:1.5rem;height:1.5rem}.excalidraw .help-icon:hover{background:none}.excalidraw .reset-zoom-button{padding:.2em;background:transparent;color:var(--text-primary-color);font-family:var(--ui-font)}.excalidraw .undo-redo-buttons{display:grid;grid-auto-flow:column;gap:.4em;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}}.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.default=d},6464:function(e,t,n){"use strict";n.r(t);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)"},t.default=a},5260:function(e,t,n){"use strict";n.r(t);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)}.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:transparent;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:transparent !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.default=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;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".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]}},8288:function(e,t,n){"use strict";n.d(t,{iC:function(){return a},f:function(){return l},qx:function(){return c},Iw:function(){return s},$e:function(){return u},wZ:function(){return d},ay:function(){return f},oc:function(){return p},Oh:function(){return h},Ks:function(){return r},Vi:function(){return m},$C:function(){return g},ut:function(){return v},C6:function(){return b},_D:function(){return y},n5:function(){return x},rk:function(){return w},Hg:function(){return k},hs:function(){return E},k:function(){return _},LO:function(){return S},r8:function(){return j},pb:function(){return C},LL:function(){return O},Gj:function(){return I},nM:function(){return M},Lg:function(){return T},HM:function(){return P},V4:function(){return A},sA:function(){return L},EH:function(){return D},ZF:function(){return R},UO:function(){return z},ah:function(){return N},cW:function(){return H},kV:function(){return B},sS:function(){return F},Yx:function(){return U},zK:function(){return K},ZB:function(){return W},qy:function(){return V},h6:function(){return G},jo:function(){return Z},$n:function(){return Y},hR:function(){return X},Kr:function(){return q},gK:function(){return $}});var r,o=n(8635),i=n.n(o),a="Excalidraw",l=10,c=8,s=5,u=1,d=30,f=Math.PI/12,p={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},h={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"}(r||(r={}));var m={TEST:"test",DEVELOPMENT:"development"},g={SHAPE_ACTIONS_MENU:"App-menu__left"},v={Virgil:1,Helvetica:2,Cascadia:3},b={LIGHT:"light",DARK:"dark"},y="Segoe UI Emoji",x=20,w=v.Virgil,k="left",E="top",_=20,S={excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json",json:"application/json",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",binary:"application/octet-stream"},j={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib"},C=window.location.origin,O=500,I=300,M=500,T=5e3,P=100,A=.1,L=300,D={VIEW:"viewMode",ZEN:"zenMode",GRID:"gridMode"},R=i().themeFilter,z={addLibrary:"addLibrary"},N={addLibrary:"addLibrary"},H={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,theme:!0,saveAsImage:!0}},B=730,F=1e3,U=500,K=2,W=[1,2,3],V=10,G=1440,Z=[S.png,S.jpg,S.svg,S.gif],Y=2097152,X="http://www.w3.org/2000/svg",q={excalidraw:2,excalidrawLibrary:2},$=5},7314:function(e,t,n){"use strict";n.r(t),n.d(t,{FONT_FAMILY:function(){return s.ut},THEME:function(){return s.C6},bumpVersion:function(){return co},default:function(){return jg},defaultLang:function(){return y},exportToBlob:function(){return bm},exportToCanvas:function(){return vm},exportToSvg:function(){return ym},getFreeDrawSvgPath:function(){return $r},getNonDeletedElements:function(){return Cs},getSceneVersion:function(){return Ss},isInvisiblySmallElement:function(){return so},isLinearElement:function(){return Ye},languages:function(){return x},loadFromBlob:function(){return Nd},loadLibraryFromBlob:function(){return Hd},mutateElement:function(){return ao},newElementWith:function(){return lo},restore:function(){return Md},restoreAppState:function(){return Id},restoreElements:function(){return Od},serializeAsJSON:function(){return Xd}});var r=n(6479),o=n.n(r),i=n(9713),a=n.n(i),l=n(9787),c=n.n(l),s=n(8288),u=JSON.parse('{"u2":"@excalidraw/excalidraw","i8":"0.11.0"}');"production"!==s.Vi.TEST&&(n.p=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat(u.u2,"@").concat(u.i8,"/dist/"));var d=n(8950);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function h(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)||p(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.")}()}var m=n(7945),g=n.n(m),v=n(1463),b=n(4451),y={code:"en",label:"English"},x=[{code:"ar-SA",label:"العربية",rtl:!0},{code:"bg-BG",label:"Български"},{code:"ca-ES",label:"Català"},{code:"cs-CZ",label:"Česky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"Ελληνικά"},{code:"es-ES",label:"Español"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"فارسی",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Français"},{code:"he-IL",label:"עברית",rtl:!0},{code:"hi-IN",label:"हिन्दी"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"日本語"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"Қазақ тілі"},{code:"ko-KR",label:"한국어"},{code:"lt-LT",label:"Lietuvių"},{code:"lv-LV",label:"Latviešu"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokmål"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"ਪੰਜਾਬੀ"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Português Brasileiro"},{code:"pt-PT",label:"Português"},{code:"ro-RO",label:"Română"},{code:"ru-RU",label:"Русский"},{code:"sk-SK",label:"Slovenčina"},{code:"sv-SE",label:"Svenska"},{code:"tr-TR",label:"Türkçe"},{code:"uk-UA",label:"Українська"},{code:"zh-CN",label:"简体中文"},{code:"zh-TW",label:"繁體中文"}].concat([y]).sort((function(e,t){return e.label>t.label?1:-1})).filter((function(e){return b[e.code]>=85})),w="__test__";"production"===s.Vi.DEVELOPMENT&&x.unshift({code:w,label:"test language"},{code:"".concat(w,".rtl"),label:"‪test language (rtl)‬",rtl:!0});var k=y,E={},_=function(){var e=(0,d.Z)(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k=t,document.documentElement.dir=k.rtl?"rtl":"ltr",document.documentElement.lang=k.code,!t.code.startsWith(w)){e.next=7;break}E={},e.next=10;break;case 7:return e.next=9,n(788)("./".concat(k.code,".json"));case 9:E=e.sent;case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){return k},j=function(e,t){for(var n=0;n<t.length;++n){var r=t[n];if(void 0===e[r])return;e=e[r]}if("string"==typeof e)return e},C=function(e,t){if(k.code.startsWith(w)){var n=t?"".concat(e,"(").concat(JSON.stringify(t).slice(1,-1),")"):e;return"‪[[".concat(n,"]]‬")}var r=e.split("."),o=j(E,r)||j(v,r);if(void 0===o)throw new Error("Can't find translation for ".concat(e));if(t)for(var i in t)o=o.replace("{{".concat(i,"}}"),String(t[i]));return o},O=n(4512),I=function(){return(0,O.jsx)("div",{className:"LoadingMessage",children:(0,O.jsx)("span",{children:C("labels.loadingScene")})})},M=function(e){var t=h((0,l.useState)(!0),2),n=t[0],r=t[1];return(0,l.useEffect)((function(){var t=function(){var e=(0,d.Z)(g().mark((function e(){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(n);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=x.find((function(t){return t.code===e.langCode}))||y;t(),r(!1)}),[e.langCode]),n?(0,O.jsx)(I,{}):e.children};function T(e){return 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},T(e)}function P(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),e}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e,t){return N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},N(e,t)}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}function B(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function U(e,t,n){if(e&&e.length){const[r,o]=t,i=Math.PI/180*n,a=Math.cos(i),l=Math.sin(i);e.forEach((e=>{const[t,n]=e;e[0]=(t-r)*a-(n-o)*l+r,e[1]=(t-r)*l+(n-o)*a+o}))}}function K(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}function W(e,t){const n=t.hachureAngle+90;let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);const o=[0,0];if(n)for(const t of e)U(t,o,n);const i=function(e,t){const n=[];for(const t of e){const e=[...t];e[0].join(",")!==e[e.length-1].join(",")&&e.push([e[0][0],e[0][1]]),e.length>2&&n.push(e)}const r=[];t=Math.max(t,.1);const o=[];for(const e of n)for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if(n[1]!==r[1]){const e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return r;let i=[],a=o[0].ymin;for(;i.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>a);t++)e=t;o.splice(0,e+1).forEach((e=>{i.push({s:a,edge:e})}))}if(i=i.filter((e=>!(e.edge.ymax<=a))),i.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),i.length>1)for(let e=0;e<i.length;e+=2){const t=e+1;if(t>=i.length)break;const n=i[e].edge,o=i[t].edge;r.push([[Math.round(n.x),a],[Math.round(o.x),a]])}a+=t,i.forEach((e=>{e.edge.x=e.edge.x+t*e.edge.islope}))}return r}(e,r);if(n){for(const t of e)U(t,o,-n);!function(e,t,n){const r=[];e.forEach((e=>r.push(...e))),U(r,t,n)}(i,o,-n)}return i}class V{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=W(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}class G extends V{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=W(e,Object.assign({},t,{hachureGap:n})),o=Math.PI/180*t.hachureAngle,i=[],a=.5*n*Math.cos(o),l=.5*n*Math.sin(o);for(const[e,t]of r)K([e,t])&&i.push([[e[0]-a,e[1]+l],[...t]],[[e[0]+a,e[1]-l],[...t]]);return{type:"fillSketch",ops:this.renderLines(i,t)}}}class Z extends V{fillPolygons(e,t){const 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}}class Y{constructor(e){this.helper=e}fillPolygons(e,t){const n=W(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let o=t.fillWeight;o<0&&(o=t.strokeWidth/2);const i=r/4;for(const a of e){const e=K(a),l=e/r,c=Math.ceil(l)-1,s=e-c*r,u=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let e=0;e<c;e++){const a=d+s+e*r,l=u-i+2*Math.random()*i,c=a-i+2*Math.random()*i,f=this.helper.ellipse(l,c,o,o,t);n.push(...f.ops)}}return{type:"fillSketch",ops:n}}}class X{constructor(e){this.helper=e}fillPolygons(e,t){const n=W(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){const n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,o=[];return e.forEach((e=>{const i=K(e),a=Math.floor(i/(n+r)),l=(i+r-a*(n+r))/2;let c=e[0],s=e[1];c[0]>s[0]&&(c=e[1],s=e[0]);const u=Math.atan((s[1]-c[1])/(s[0]-c[0]));for(let e=0;e<a;e++){const i=e*(n+r),a=i+n,s=[c[0]+i*Math.cos(u)+l*Math.cos(u),c[1]+i*Math.sin(u)+l*Math.sin(u)],d=[c[0]+a*Math.cos(u)+l*Math.cos(u),c[1]+a*Math.sin(u)+l*Math.sin(u)];o.push(...this.helper.doubleLineOps(s[0],s[1],d[0],d[1],t))}})),o}}class q{constructor(e){this.helper=e}fillPolygons(e,t){const n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,o=W(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(o,r,t)}}zigzagLines(e,t,n){const r=[];return e.forEach((e=>{const o=K(e),i=Math.round(o/(2*t));let a=e[0],l=e[1];a[0]>l[0]&&(a=e[1],l=e[0]);const c=Math.atan((l[1]-a[1])/(l[0]-a[0]));for(let e=0;e<i;e++){const o=2*e*t,i=2*(e+1)*t,l=Math.sqrt(2*Math.pow(t,2)),s=[a[0]+o*Math.cos(c),a[1]+o*Math.sin(c)],u=[a[0]+i*Math.cos(c),a[1]+i*Math.sin(c)],d=[s[0]+l*Math.cos(c+Math.PI/4),s[1]+l*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(s[0],s[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}}const $={};class Q{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const J={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function ee(e,t){return e.type===t}function te(e){const t=[],n=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",o=0,i=n[o];for(;!ee(i,2);){let a=0;const l=[];if("BOD"===r){if("M"!==i.text&&"m"!==i.text)return te("M0,0"+e);o++,a=J[i.text],r=i.text}else ee(i,1)?a=J[r]:(o++,a=J[i.text],r=i.text);if(!(o+a<n.length))throw new Error("Path data ended short");for(let e=o;e<o+a;e++){const t=n[e];if(!ee(t,1))throw new Error("Param not a number: "+r+","+t.text);l[l.length]=+t.text}if("number"!=typeof J[r])throw new Error("Bad segment: "+r);{const e={key:r,data:l};t.push(e),o+=a,i=n[o],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function ne(e){let t=0,n=0,r=0,o=0;const i=[];for(const{key:a,data:l}of e)switch(a){case"M":i.push({key:"M",data:[...l]}),[t,n]=l,[r,o]=l;break;case"m":t+=l[0],n+=l[1],i.push({key:"M",data:[t,n]}),r=t,o=n;break;case"L":i.push({key:"L",data:[...l]}),[t,n]=l;break;case"l":t+=l[0],n+=l[1],i.push({key:"L",data:[t,n]});break;case"C":i.push({key:"C",data:[...l]}),t=l[4],n=l[5];break;case"c":{const e=l.map(((e,r)=>r%2?e+n:e+t));i.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":i.push({key:"Q",data:[...l]}),t=l[2],n=l[3];break;case"q":{const e=l.map(((e,r)=>r%2?e+n:e+t));i.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":i.push({key:"A",data:[...l]}),t=l[5],n=l[6];break;case"a":t+=l[5],n+=l[6],i.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,n]});break;case"H":i.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...l]}),n=l[0];break;case"v":n+=l[0],i.push({key:"V",data:[n]});break;case"S":i.push({key:"S",data:[...l]}),t=l[2],n=l[3];break;case"s":{const e=l.map(((e,r)=>r%2?e+n:e+t));i.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":i.push({key:"T",data:[...l]}),t=l[0],n=l[1];break;case"t":t+=l[0],n+=l[1],i.push({key:"T",data:[t,n]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=r,n=o}return i}function re(e){const t=[];let n="",r=0,o=0,i=0,a=0,l=0,c=0;for(const{key:s,data:u}of e){switch(s){case"M":t.push({key:"M",data:[...u]}),[r,o]=u,[i,a]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],o=u[5],l=u[2],c=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,o]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,o]});break;case"V":o=u[0],t.push({key:"L",data:[r,o]});break;case"S":{let e=0,i=0;"C"===n||"S"===n?(e=r+(r-l),i=o+(o-c)):(e=r,i=o),t.push({key:"C",data:[e,i,...u]}),l=u[0],c=u[1],r=u[2],o=u[3];break}case"T":{const[e,i]=u;let a=0,s=0;"Q"===n||"T"===n?(a=r+(r-l),s=o+(o-c)):(a=r,s=o);const d=r+2*(a-r)/3,f=o+2*(s-o)/3,p=e+2*(a-e)/3,h=i+2*(s-i)/3;t.push({key:"C",data:[d,f,p,h,e,i]}),l=a,c=s,r=e,o=i;break}case"Q":{const[e,n,i,a]=u,s=r+2*(e-r)/3,d=o+2*(n-o)/3,f=i+2*(e-i)/3,p=a+2*(n-a)/3;t.push({key:"C",data:[s,d,f,p,i,a]}),l=e,c=n,r=i,o=a;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),i=u[2],a=u[3],l=u[4],c=u[5],s=u[6];if(0===e||0===n)t.push({key:"C",data:[r,o,c,s,c,s]}),r=c,o=s;else if(r!==c||o!==s){ie(r,o,c,s,e,n,i,a,l).forEach((function(e){t.push({key:"C",data:e})})),r=c,o=s}break}case"Z":t.push({key:"Z",data:[]}),r=i,o=a}n=s}return t}function oe(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function ie(e,t,n,r,o,i,a,l,c,s){const u=(d=a,Math.PI*d/180);var d;let f=[],p=0,h=0,m=0,g=0;if(s)[p,h,m,g]=s;else{[e,t]=oe(e,t,-u),[n,r]=oe(n,r,-u);const a=(e-n)/2,s=(t-r)/2;let d=a*a/(o*o)+s*s/(i*i);d>1&&(d=Math.sqrt(d),o*=d,i*=d);const f=o*o,v=i*i,b=f*v-f*s*s-v*a*a,y=f*s*s+v*a*a,x=(l===c?-1:1)*Math.sqrt(Math.abs(b/y));m=x*o*s/i+(e+n)/2,g=x*-i*a/o+(t+r)/2,p=Math.asin(parseFloat(((t-g)/i).toFixed(9))),h=Math.asin(parseFloat(((r-g)/i).toFixed(9))),e<m&&(p=Math.PI-p),n<m&&(h=Math.PI-h),p<0&&(p=2*Math.PI+p),h<0&&(h=2*Math.PI+h),c&&p>h&&(p-=2*Math.PI),!c&&h>p&&(h-=2*Math.PI)}let v=h-p;if(Math.abs(v)>120*Math.PI/180){const e=h,t=n,l=r;h=c&&h>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=ie(n=m+o*Math.cos(h),r=g+i*Math.sin(h),t,l,o,i,a,0,c,[h,e,m,g])}v=h-p;const b=Math.cos(p),y=Math.sin(p),x=Math.cos(h),w=Math.sin(h),k=Math.tan(v/4),E=4/3*o*k,_=4/3*i*k,S=[e,t],j=[e+E*y,t-_*b],C=[n+E*w,r-_*x],O=[n,r];if(j[0]=2*S[0]-j[0],j[1]=2*S[1]-j[1],s)return[j,C,O].concat(f);{f=[j,C,O].concat(f);const e=[];for(let t=0;t<f.length;t+=3){const n=oe(f[t][0],f[t][1],u),r=oe(f[t+1][0],f[t+1][1],u),o=oe(f[t+2][0],f[t+2][1],u);e.push([n[0],n[1],r[0],r[1],o[0],o[1]])}return e}}const ae={randOffset:function(e,t){return be(e,t)},randOffsetWithRange:function(e,t,n){return ve(e,t,n)},ellipse:function(e,t,n,r,o){const i=de(n,r,o);return fe(e,t,o,i).opset},doubleLineOps:function(e,t,n,r,o){return ye(e,t,n,r,o,!0)}};function le(e,t,n,r,o){return{type:"path",ops:ye(e,t,n,r,o)}}function ce(e,t,n){const r=(e||[]).length;if(r>2){const o=[];for(let t=0;t<r-1;t++)o.push(...ye(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&o.push(...ye(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:o}}return 2===r?le(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function se(e,t,n,r,o){return function(e,t){return ce(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],o)}function ue(e,t){let n=we(e,1*(1+.2*t.roughness),t);if(!t.disableMultiStroke){const r=we(e,1.5*(1+.22*t.roughness),function(e){const t=Object.assign({},e);t.randomizer=void 0,e.seed&&(t.seed=e.seed+1);return t}(t));n=n.concat(r)}return{type:"path",ops:n}}function de(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),o=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),i=2*Math.PI/o;let a=Math.abs(e/2),l=Math.abs(t/2);const c=1-n.curveFitting;return a+=be(a*c,n),l+=be(l*c,n),{increment:i,rx:a,ry:l}}function fe(e,t,n,r){const[o,i]=Ee(r.increment,e,t,r.rx,r.ry,1,r.increment*ve(.1,ve(.4,1,n),n),n);let a=ke(o,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[o]=Ee(r.increment,e,t,r.rx,r.ry,1.5,0,n),i=ke(o,null,n);a=a.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:a}}}function pe(e,t,n,r,o,i,a,l,c){const s=e,u=t;let d=Math.abs(n/2),f=Math.abs(r/2);d+=be(.01*d,c),f+=be(.01*f,c);let p=o,h=i;for(;p<0;)p+=2*Math.PI,h+=2*Math.PI;h-p>2*Math.PI&&(p=0,h=2*Math.PI);const m=2*Math.PI/c.curveStepCount,g=Math.min(m/2,(h-p)/2),v=_e(g,s,u,d,f,p,h,1,c);if(!c.disableMultiStroke){const e=_e(g,s,u,d,f,p,h,1.5,c);v.push(...e)}return a&&(l?v.push(...ye(s,u,s+d*Math.cos(p),u+f*Math.sin(p),c),...ye(s,u,s+d*Math.cos(h),u+f*Math.sin(h),c)):v.push({op:"lineTo",data:[s,u]},{op:"lineTo",data:[s+d*Math.cos(p),u+f*Math.sin(p)]})),{type:"path",ops:v}}function he(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+be(e,t),r[0][1]+be(e,t)]});for(let i=1;i<o;i++)n.push({op:"lineTo",data:[r[i][0]+be(e,t),r[i][1]+be(e,t)]})}}return{type:"fillPath",ops:n}}function me(e,t){return function(e,t){let n=e.fillStyle||"hachure";if(!$[n])switch(n){case"zigzag":$[n]||($[n]=new G(t));break;case"cross-hatch":$[n]||($[n]=new Z(t));break;case"dots":$[n]||($[n]=new Y(t));break;case"dashed":$[n]||($[n]=new X(t));break;case"zigzag-line":$[n]||($[n]=new q(t));break;default:n="hachure",$[n]||($[n]=new V(t))}return $[n]}(t,ae).fillPolygons(e,t)}function ge(e){return e.randomizer||(e.randomizer=new Q(e.seed||0)),e.randomizer.next()}function ve(e,t,n,r=1){return n.roughness*r*(ge(n)*(t-e)+e)}function be(e,t,n=1){return ve(-e,e,t,n)}function ye(e,t,n,r,o,i=!1){const a=i?o.disableMultiStrokeFill:o.disableMultiStroke,l=xe(e,t,n,r,o,!0,!1);if(a)return l;const c=xe(e,t,n,r,o,!0,!0);return l.concat(c)}function xe(e,t,n,r,o,i,a){const l=Math.pow(e-n,2)+Math.pow(t-r,2),c=Math.sqrt(l);let s=1;s=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=o.maxRandomnessOffset||0;u*u*100>l&&(u=c/10);const d=u/2,f=.2+.2*ge(o);let p=o.bowing*o.maxRandomnessOffset*(r-t)/200,h=o.bowing*o.maxRandomnessOffset*(e-n)/200;p=be(p,o,s),h=be(h,o,s);const m=[],g=()=>be(d,o,s),v=()=>be(u,o,s),b=o.preserveVertices;return i&&(a?m.push({op:"move",data:[e+(b?0:g()),t+(b?0:g())]}):m.push({op:"move",data:[e+(b?0:be(u,o,s)),t+(b?0:be(u,o,s))]})),a?m.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())]}):m.push({op:"bcurveTo",data:[p+e+(n-e)*f+v(),h+t+(r-t)*f+v(),p+e+2*(n-e)*f+v(),h+t+2*(r-t)*f+v(),n+(b?0:v()),r+(b?0:v())]}),m}function we(e,t,n){const r=[];r.push([e[0][0]+be(t,n),e[0][1]+be(t,n)]),r.push([e[0][0]+be(t,n),e[0][1]+be(t,n)]);for(let o=1;o<e.length;o++)r.push([e[o][0]+be(t,n),e[o][1]+be(t,n)]),o===e.length-1&&r.push([e[o][0]+be(t,n),e[o][1]+be(t,n)]);return ke(r,null,n)}function ke(e,t,n){const r=e.length,o=[];if(r>3){const i=[],a=1-n.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){const n=e[t];i[0]=[n[0],n[1]],i[1]=[n[0]+(a*e[t+1][0]-a*e[t-1][0])/6,n[1]+(a*e[t+1][1]-a*e[t-1][1])/6],i[2]=[e[t+1][0]+(a*e[t][0]-a*e[t+2][0])/6,e[t+1][1]+(a*e[t][1]-a*e[t+2][1])/6],i[3]=[e[t+1][0],e[t+1][1]],o.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(t&&2===t.length){const e=n.maxRandomnessOffset;o.push({op:"lineTo",data:[t[0]+be(e,n),t[1]+be(e,n)]})}}else 3===r?(o.push({op:"move",data:[e[1][0],e[1][1]]}),o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&o.push(...ye(e[0][0],e[0][1],e[1][0],e[1][1],n));return o}function Ee(e,t,n,r,o,i,a,l){const c=[],s=[];if(0===l.roughness){e/=4,s.push([t+r*Math.cos(-e),n+o*Math.sin(-e)]);for(let i=0;i<=2*Math.PI;i+=e){const e=[t+r*Math.cos(i),n+o*Math.sin(i)];c.push(e),s.push(e)}s.push([t+r*Math.cos(0),n+o*Math.sin(0)]),s.push([t+r*Math.cos(e),n+o*Math.sin(e)])}else{const u=be(.5,l)-Math.PI/2;s.push([be(i,l)+t+.9*r*Math.cos(u-e),be(i,l)+n+.9*o*Math.sin(u-e)]);const d=2*Math.PI+u-.01;for(let a=u;a<d;a+=e){const e=[be(i,l)+t+r*Math.cos(a),be(i,l)+n+o*Math.sin(a)];c.push(e),s.push(e)}s.push([be(i,l)+t+r*Math.cos(u+2*Math.PI+.5*a),be(i,l)+n+o*Math.sin(u+2*Math.PI+.5*a)]),s.push([be(i,l)+t+.98*r*Math.cos(u+a),be(i,l)+n+.98*o*Math.sin(u+a)]),s.push([be(i,l)+t+.9*r*Math.cos(u+.5*a),be(i,l)+n+.9*o*Math.sin(u+.5*a)])}return[s,c]}function _e(e,t,n,r,o,i,a,l,c){const s=i+be(.1,c),u=[];u.push([be(l,c)+t+.9*r*Math.cos(s-e),be(l,c)+n+.9*o*Math.sin(s-e)]);for(let i=s;i<=a;i+=e)u.push([be(l,c)+t+r*Math.cos(i),be(l,c)+n+o*Math.sin(i)]);return u.push([t+r*Math.cos(a),n+o*Math.sin(a)]),u.push([t+r*Math.cos(a),n+o*Math.sin(a)]),ke(u,null,c)}function Se(e,t,n,r,o,i,a,l){const c=[],s=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let u=[0,0];const d=l.disableMultiStroke?1:2,f=l.preserveVertices;for(let p=0;p<d;p++)0===p?c.push({op:"move",data:[a[0],a[1]]}):c.push({op:"move",data:[a[0]+(f?0:be(s[0],l)),a[1]+(f?0:be(s[0],l))]}),u=f?[o,i]:[o+be(s[p],l),i+be(s[p],l)],c.push({op:"bcurveTo",data:[e+be(s[p],l),t+be(s[p],l),n+be(s[p],l),r+be(s[p],l),u[0],u[1]]});return c}function je(e){return[...e]}function Ce(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Oe(e,t,n){const r=Ce(t,n);if(0===r)return Ce(e,t);let o=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return o=Math.max(0,Math.min(1,o)),Ce(e,Ie(t,n,o))}function Ie(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function Me(e,t,n,r){const o=r||[];if(function(e,t){const n=e[t+0],r=e[t+1],o=e[t+2],i=e[t+3];let a=3*r[0]-2*n[0]-i[0];a*=a;let l=3*r[1]-2*n[1]-i[1];l*=l;let c=3*o[0]-2*i[0]-n[0];c*=c;let s=3*o[1]-2*i[1]-n[1];return s*=s,a<c&&(a=c),l<s&&(l=s),a+l}(e,t)<n){const n=e[t+0];if(o.length){(i=o[o.length-1],a=n,Math.sqrt(Ce(i,a)))>1&&o.push(n)}else o.push(n);o.push(e[t+3])}else{const r=.5,i=e[t+0],a=e[t+1],l=e[t+2],c=e[t+3],s=Ie(i,a,r),u=Ie(a,l,r),d=Ie(l,c,r),f=Ie(s,u,r),p=Ie(u,d,r),h=Ie(f,p,r);Me([i,s,f,h],0,n,o),Me([h,p,d,c],0,n,o)}var i,a;return o}function Te(e,t){return Pe(e,0,e.length,t)}function Pe(e,t,n,r,o){const i=o||[],a=e[t],l=e[n-1];let c=0,s=1;for(let r=t+1;r<n-1;++r){const t=Oe(e[r],a,l);t>c&&(c=t,s=r)}return Math.sqrt(c)>r?(Pe(e,t,s+1,r,i),Pe(e,s,n,r,i)):(i.length||i.push(a),i.push(l)),i}function Ae(e,t=.15,n){const r=[],o=(e.length-1)/3;for(let n=0;n<o;n++){Me(e,3*n,t,r)}return n&&n>0?Pe(r,0,r.length,n):r}const Le="none";class De{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,o){const i=this._o(o);return this._d("line",[le(e,t,n,r,i)],i)}rectangle(e,t,n,r,o){const i=this._o(o),a=[],l=se(e,t,n,r,i);if(i.fill){const o=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===i.fillStyle?a.push(he([o],i)):a.push(me([o],i))}return i.stroke!==Le&&a.push(l),this._d("rectangle",a,i)}ellipse(e,t,n,r,o){const i=this._o(o),a=[],l=de(n,r,i),c=fe(e,t,i,l);if(i.fill)if("solid"===i.fillStyle){const n=fe(e,t,i,l).opset;n.type="fillPath",a.push(n)}else a.push(me([c.estimatedPoints],i));return i.stroke!==Le&&a.push(c.opset),this._d("ellipse",a,i)}circle(e,t,n,r){const o=this.ellipse(e,t,n,n,r);return o.shape="circle",o}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[ce(e,!1,n)],n)}arc(e,t,n,r,o,i,a=!1,l){const c=this._o(l),s=[],u=pe(e,t,n,r,o,i,a,!0,c);if(a&&c.fill)if("solid"===c.fillStyle){const a=Object.assign({},c);a.disableMultiStroke=!0;const l=pe(e,t,n,r,o,i,!0,!1,a);l.type="fillPath",s.push(l)}else s.push(function(e,t,n,r,o,i,a){const l=e,c=t;let s=Math.abs(n/2),u=Math.abs(r/2);s+=be(.01*s,a),u+=be(.01*u,a);let d=o,f=i;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);const p=(f-d)/a.curveStepCount,h=[];for(let e=d;e<=f;e+=p)h.push([l+s*Math.cos(e),c+u*Math.sin(e)]);return h.push([l+s*Math.cos(f),c+u*Math.sin(f)]),h.push([l,c]),me([h],a)}(e,t,n,r,o,i,c));return c.stroke!==Le&&s.push(u),this._d("arc",s,c)}curve(e,t){const n=this._o(t),r=[],o=ue(e,n);if(n.fill&&n.fill!==Le&&e.length>=3){const t=function(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(je(e[0]),je(e[1]),je(e[2]),je(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);const o=[],i=1-t;r.push(je(n[0]));for(let e=1;e+2<n.length;e++){const t=n[e];o[0]=[t[0],t[1]],o[1]=[t[0]+(i*n[e+1][0]-i*n[e-1][0])/6,t[1]+(i*n[e+1][1]-i*n[e-1][1])/6],o[2]=[n[e+1][0]+(i*n[e][0]-i*n[e+2][0])/6,n[e+1][1]+(i*n[e][1]-i*n[e+2][1])/6],o[3]=[n[e+1][0],n[e+1][1]],r.push(o[1],o[2],o[3])}}return r}(e),o=Ae(t,10,(1+n.roughness)/2);"solid"===n.fillStyle?r.push(he([o],n)):r.push(me([o],n))}return n.stroke!==Le&&r.push(o),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],o=ce(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(he([e],n)):r.push(me([e],n))),n.stroke!==Le&&r.push(o),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=n.fill&&"transparent"!==n.fill&&n.fill!==Le,i=n.stroke!==Le,a=!!(n.simplification&&n.simplification<1),l=function(e,t,n){const r=re(ne(te(e))),o=[];let i=[],a=[0,0],l=[];const c=()=>{l.length>=4&&i.push(...Ae(l,t)),l=[]},s=()=>{c(),i.length&&(o.push(i),i=[])};for(const{key:e,data:t}of r)switch(e){case"M":s(),a=[t[0],t[1]],i.push(a);break;case"L":c(),i.push([t[0],t[1]]);break;case"C":if(!l.length){const e=i.length?i[i.length-1]:a;l.push([e[0],e[1]])}l.push([t[0],t[1]]),l.push([t[2],t[3]]),l.push([t[4],t[5]]);break;case"Z":c(),i.push([a[0],a[1]])}if(s(),!n)return o;const u=[];for(const e of o){const t=Te(e,n);t.length&&u.push(t)}return u}(e,1,a?4-4*n.simplification:(1+n.roughness)/2);return o&&("solid"===n.fillStyle?r.push(he(l,n)):r.push(me(l,n))),i&&(a?l.forEach((e=>{r.push(ce(e,!1,n))})):r.push(function(e,t){const n=re(ne(te(e))),r=[];let o=[0,0],i=[0,0];for(const{key:e,data:a}of n)switch(e){case"M":{const e=1*(t.maxRandomnessOffset||0),n=t.preserveVertices;r.push({op:"move",data:a.map((r=>r+(n?0:be(e,t))))}),i=[a[0],a[1]],o=[a[0],a[1]];break}case"L":r.push(...ye(i[0],i[1],a[0],a[1],t)),i=[a[0],a[1]];break;case"C":{const[e,n,o,l,c,s]=a;r.push(...Se(e,n,o,l,c,s,i,t)),i=[c,s];break}case"Z":r.push(...ye(i[0],i[1],o[0],o[1],t)),i=[o[0],o[1]]}return{type:"path",ops:r}}(e,n))),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Le};break;case"fillPath":t={d:this.opsToPath(e),stroke:Le,strokeWidth:0,fill:n.fill||Le};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Le,strokeWidth:n,fill:Le}}}class Re{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new De(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const i of t)switch(i.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,i,o),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,i,o,t),r.restore();break}case"fillSketch":this.fillSketch(r,i,n)}}fillSketch(e,t,n){let 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()}_drawToContext(e,t,n,r="nonzero"){e.beginPath();for(const r of t.ops){const t="number"==typeof n&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,o){const i=this.gen.line(e,t,n,r,o);return this.draw(i),i}rectangle(e,t,n,r,o){const i=this.gen.rectangle(e,t,n,r,o);return this.draw(i),i}ellipse(e,t,n,r,o){const i=this.gen.ellipse(e,t,n,r,o);return this.draw(i),i}circle(e,t,n,r){const o=this.gen.circle(e,t,n,r);return this.draw(o),o}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,o,i,a=!1,l){const c=this.gen.arc(e,t,n,r,o,i,a,l);return this.draw(c),c}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){const n=this.gen.path(e,t);return this.draw(n),n}}const ze="http://www.w3.org/2000/svg";class Ne{constructor(e,t){this.svg=e,this.gen=new De(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,o=r.createElementNS(ze,"g"),i=e.options.fixedDecimalPlaceDigits;for(const a of t){let t=null;switch(a.type){case"path":t=r.createElementNS(ze,"path"),t.setAttribute("d",this.opsToPath(a,i)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":t=r.createElementNS(ze,"path"),t.setAttribute("d",this.opsToPath(a,i)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,a,n)}t&&o.appendChild(t)}return o}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const o=e.createElementNS(ze,"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",`${n.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,o){const i=this.gen.line(e,t,n,r,o);return this.draw(i)}rectangle(e,t,n,r,o){const i=this.gen.rectangle(e,t,n,r,o);return this.draw(i)}ellipse(e,t,n,r,o){const i=this.gen.ellipse(e,t,n,r,o);return this.draw(i)}circle(e,t,n,r){const o=this.gen.circle(e,t,n,r);return this.draw(o)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,o,i,a=!1,l){const c=this.gen.arc(e,t,n,r,o,i,a,l);return this.draw(c)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}}var He={canvas:(e,t)=>new Re(e,t),svg:(e,t)=>new Ne(e,t),generator:e=>new De(e),newSeed:()=>De.newSeed()};function Be(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Be(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Fe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Be(e))&&(r&&(r+=" "),r+=t);return r}let Ue=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Ke=function(e){return!!e&&"image"===e.type&&!!e.fileId},We=function(e){return!!e&&"image"===e.type},Ve=function(e){return null!=e&&"text"===e.type},Ge=function(e){return null!=e&&Ze(e.type)},Ze=function(e){return"freedraw"===e},Ye=function(e){return null!=e&&Xe(e.type)},Xe=function(e){return"arrow"===e||"line"===e},qe=function(e){return null!=e&&$e(e.type)},$e=function(e){return"arrow"===e},Qe=function(e){return null!=e&&("rectangle"===e.type||"diamond"===e.type||"ellipse"===e.type||"image"===e.type||"text"===e.type&&!e.containerId)},Je=function(e){var t;return Qe(e)&&!(null===(t=e.boundElements)||void 0===t||!t.some((function(e){return"text"===e.type})))},et=function(e){return null!==e&&Ve(e)&&null!==e.containerId},tt=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]},nt=function(e,t,n){return tt(e[0],e[1],t[0],t[1],n)},rt=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]},ot=function(e,t,n,r){var o=n-e,i=r-t;return Math.hypot(o,i)},it=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]],r=n[0],o=n[1],i=ot(r[0],r[1],o[0],o[1]);return i<=s.qx/t}return!1},at=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<r;l++){var c=e[l],s=e[(l+1)%r];if(st(c,s,i,o)){if(0===ct(c,i,s))return lt(c,i,s);a++}}return a%2==1},lt=function(e,t,n){return t[0]<=Math.max(e[0],n[0])&&t[0]>=Math.min(e[0],n[0])&&t[1]<=Math.max(e[1],n[1])&&t[1]>=Math.min(e[1],n[1])},ct=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},st=function(e,t,n,r){var o=ct(e,t,n),i=ct(e,t,r),a=ct(n,r,e),l=ct(n,r,t);return o!==i&&a!==l||(!(0!==o||!lt(e,n,t))||(!(0!==i||!lt(e,r,t))||(!(0!==a||!lt(n,e,r))||!(0!==l||!lt(n,t,r)))))},ut=function(e,t,n){return n?[Math.round(e/n)*n,Math.round(t/n)*n]:[e,t]},dt=function(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{width:Math.max.apply(Math,P(t))-Math.min.apply(Math,P(t)),height:Math.max.apply(Math,P(n))-Math.min.apply(Math,P(n))}},ft=function(e,t,n){var r=n.map((function(t){return t[e]})),o=Math.max.apply(Math,P(r)),i=Math.min.apply(Math,P(r)),a=o-i,l=0===a?1:t/a,c=1/0,s=n.map((function(t){return t.map((function(t,n){if(n!==e)return t;var r=t*l;return c=Math.min(r,c),r}))}));if(2===s.length)return s;var u=i-c;return s.map((function(t){return t.map((function(t,n){return n===e?t+u:t}))}))};function pt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(e,t)}(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 ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mt=function(e){return Ge(e)?yt(e):Ye(e)?xt(e):[e.x,e.y,e.x+e.width,e.y+e.height]},gt=function(e){var t,n=pt(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},vt=function(e,t){var n=[0,0],r=e.reduce((function(e,r){var o=r.op,i=r.data;if("move"===o)n=i;else if("bcurveTo"===o){var a=[i[0],i[1]],l=[i[2],i[3]],c=[i[4],i[5]],s=n;n=c;for(var u=function(e,t){return Math.pow(1-e,3)*c[t]+3*e*Math.pow(1-e,2)*l[t]+3*Math.pow(e,2)*(1-e)*a[t]+s[t]*Math.pow(e,3)},d=0;d<=1;){var f=u(d,0),p=u(d,1);if(t){var m=h(t(f,p),2);f=m[0],p=m[1]}e.minY=Math.min(e.minY,p),e.minX=Math.min(e.minX,f),e.maxX=Math.max(e.maxX,f),e.maxY=Math.max(e.maxY,p),d+=.1}}return e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r.minX,r.minY,r.maxX,r.maxY]},bt=function(e){var t,n=1/0,r=1/0,o=-1/0,i=-1/0,a=pt(e);try{for(a.s();!(t=a.n()).done;){var l=h(t.value,2),c=l[0],s=l[1];n=Math.min(n,c),r=Math.min(r,s),o=Math.max(o,c),i=Math.max(i,s)}}catch(e){a.e(e)}finally{a.f()}return[n,r,o,i]},yt=function(e){var t=h(bt(e.points),4),n=t[0],r=t[1],o=t[2],i=t[3];return[n+e.x,r+e.y,o+e.x,i+e.y]},xt=function(e){var t;if(e.points.length<2||!Hr(e)){var n=e.points.reduce((function(e,t){var n=h(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}),r=n.minX,o=n.minY,i=n.maxX,a=n.maxY;t=[r+e.x,o+e.y,i+e.x,a+e.y]}else{var l=Hr(e),c=gt(l[0]),s=h(vt(c),4),u=s[0],d=s[1],f=s[2],p=s[3];t=[u+e.x,d+e.y,f+e.x,p+e.y]}return t},wt=function(e){var t,n=h(mt(e),4),r=n[0],o=n[1],i=n[2],a=n[3],l=(r+i)/2,c=(o+a)/2;if(Ge(e)){var s=bt(e.points.map((function(t){var n=h(t,2),r=n[0],o=n[1];return tt(r,o,l-e.x,c-e.y,e.angle)}))),u=h(s,4),d=u[0],f=u[1],p=u[2],m=u[3];return[d+e.x,f+e.y,p+e.x,m+e.y]}if(Ye(e))t=function(e,t,n){if(e.points.length<2||!Hr(e)){var r=e.points.reduce((function(r,o){var i=h(o,2),a=i[0],l=i[1],c=h(tt(e.x+a,e.y+l,t,n,e.angle),2);return a=c[0],l=c[1],r.minY=Math.min(r.minY,l),r.minX=Math.min(r.minX,a),r.maxX=Math.max(r.maxX,a),r.maxY=Math.max(r.maxY,l),r}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r.minX,r.minY,r.maxX,r.maxY]}var o=Hr(e),i=gt(o[0]);return vt(i,(function(r,o){return tt(e.x+r,e.y+o,t,n,e.angle)}))}(e,l,c);else if("diamond"===e.type){var g=h(tt(l,o,l,c,e.angle),2),v=g[0],b=g[1],y=h(tt(l,a,l,c,e.angle),2),x=y[0],w=y[1],k=h(tt(r,c,l,c,e.angle),2),E=k[0],_=k[1],S=h(tt(i,c,l,c,e.angle),2),j=S[0],C=S[1];t=[Math.min(v,x,E,j),Math.min(b,w,_,C),Math.max(v,x,E,j),Math.max(b,w,_,C)]}else if("ellipse"===e.type){var O=(i-r)/2,I=(a-o)/2,M=Math.cos(e.angle),T=Math.sin(e.angle),P=Math.hypot(O*M,I*T),A=Math.hypot(I*M,O*T);t=[l-P,c-A,l+P,c+A]}else{var L=h(tt(r,o,l,c,e.angle),2),D=L[0],R=L[1],z=h(tt(r,a,l,c,e.angle),2),N=z[0],H=z[1],B=h(tt(i,a,l,c,e.angle),2),F=B[0],U=B[1],K=h(tt(i,o,l,c,e.angle),2),W=K[0],V=K[1];t=[Math.min(D,N,F,W),Math.min(R,H,U,V),Math.max(D,N,F,W),Math.max(R,H,U,V)]}return t},kt=function(e){if(!e.length)return[0,0,0,0];var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEach((function(e){var i=h(wt(e),4),a=i[0],l=i[1],c=i[2],s=i[3];t=Math.min(t,a),r=Math.min(r,l),n=Math.max(n,c),o=Math.max(o,s)})),[t,r,n,o]},Et=function(e,t,n){if(!Ye(e)&&!Ge(e))return[e.x,e.y,e.x+t,e.y+n];var r,o=ft(0,t,ft(1,n,e.points));if(Ge(e))r=bt(o);else{var i=He.generator(),a="sharp"===e.strokeSharpness?i.linearPath(o,Ur(e)):i.curve(o,Ur(e)),l=gt(a);r=vt(l)}var c=h(r,4),s=c[0],u=c[1],d=c[2],f=c[3];return[s+e.x,u+e.y,d+e.x,f+e.y]},_t=function(e,t,n){var r=He.generator(),o="sharp"===n?r.linearPath(t,Ur(e)):r.curve(t,Ur(e)),i=gt(o),a=h(vt(i),4),l=a[0],c=a[1],s=a[2],u=a[3];return[l+e.x,c+e.y,s+e.x,u+e.y]},St=function(e){var t=h(kt(e),4),n=t[0],r=t[1],o=t[2],i=t[3];return{minX:n,minY:r,maxX:o,maxY:i,width:o-n,height:i-r,midX:(n+o)/2,midY:(r+i)/2}},jt=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"]}'),Ct=function(e){return[jt.red[e],jt.pink[e],jt.grape[e],jt.violet[e],jt.indigo[e],jt.blue[e],jt.cyan[e],jt.teal[e],jt.green[e],jt.lime[e],jt.yellow[e],jt.orange[e]]},Ot={canvasBackground:[jt.white,jt.gray[0],jt.gray[1]].concat(P(Ct(0))),elementBackground:["transparent",jt.gray[4],jt.gray[6]].concat(P(Ct(6))),elementStroke:[jt.black,jt.gray[8],jt.gray[7]].concat(P(Ct(9)))},It=n(5156),Mt=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Tt=/^Win/.test(window.navigator.platform),Pt=/\b(android)\b/i.test(navigator.userAgent),At="Equal",Lt="Minus",Dt="NumpadAdd",Rt="NumpadSubtract",zt="Numpad0",Nt="BracketRight",Ht="BracketLeft",Bt="Digit1",Ft="Digit2",Ut="Quote",Kt="Digit0",Wt="Slash",Vt="KeyC",Gt="KeyD",Zt="KeyG",Yt="KeyF",Xt="KeyH",qt="KeyV",$t="KeyX",Qt="KeyZ",Jt="KeyR",en={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",ALT:"Alt",CTRL_OR_CMD:Mt?"metaKey":"ctrlKey",DELETE:"Delete",ENTER:"Enter",ESCAPE:"Escape",QUESTION_MARK:"?",SPACE:" ",TAB:"Tab",CHEVRON_LEFT:"<",CHEVRON_RIGHT:">",PERIOD:".",COMMA:",",A:"a",D:"d",E:"e",G:"g",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"},tn=function(e){return e===en.ARROW_LEFT||e===en.ARROW_RIGHT||e===en.ARROW_DOWN||e===en.ARROW_UP},nn=function(e){return e.altKey},rn=function(e){return e.shiftKey},on=function(e){return e.shiftKey},an=null,ln=function(){if(an)return an;var e=new Date,t=e.getFullYear(),n="".concat(e.getMonth()+1).padStart(2,"0"),r="".concat(e.getDate()).padStart(2,"0"),o="".concat(e.getHours()).padStart(2,"0"),i="".concat(e.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o).concat(i)},cn=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},sn=function(e){return e instanceof HTMLElement&&"wysiwyg"===e.dataset.type||e instanceof HTMLBRElement||e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&("text"===e.type||"number"===e.type)},un=function(e){for(var t=e.fontFamily,n=0,r=Object.entries(s.ut);n<r.length;n++){var o=h(r[n],2),i=o[0];if(o[1]===t)return"".concat(i,", ").concat(s._D)}return s._D},dn=function(e){var t=e.fontSize,n=e.fontFamily;return"".concat(t,"px ").concat(un({fontFamily:n}))},fn=function(e,t){var n=0,r=null,o=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r=i,clearTimeout(n),n=window.setTimeout((function(){r=null,e.apply(void 0,i)}),t)};return o.flush=function(){if(clearTimeout(n),r){var t=r;r=null,e.apply(void 0,P(t))}},o.cancel=function(){r=null,clearTimeout(n)},o},pn=function(e,t){if(!e.length||t<1)return[];for(var n=0,r=0,o=Array(Math.ceil(e.length/t));n<e.length;)o[r++]=e.slice(n,n+=t);return o},hn=function(e,t){return Math.abs(e-t)},mn=function(e){e&&(e.style.cursor="")},gn=function(e,t){e&&(e.style.cursor=t)},vn=function(e,t){e&&("selection"===t?mn(e):"image"!==t&&(e.style.cursor=s.oc.CROSSHAIR))},bn=function(){var e;return"HTML"===(null===(e=document.fullscreenElement)||void 0===e?void 0:e.nodeName)},yn=function(e){return e=e.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter").replace(/\bDel\b/i,"Delete"),Mt?e.replace(/\bCtrlOrCmd\b/i,"Cmd").replace(/\bAlt\b/i,"Option"):e.replace(/\bCtrlOrCmd\b/i,"Ctrl")},xn=function(e,t){var n=e.clientX,r=e.clientY,o=t.zoom,i=t.offsetLeft,a=t.offsetTop,l=t.scrollX,c=t.scrollY,s=1/o.value;return{x:(n-i)*s-l,y:(r-a)*s-c}},wn=function(e,t){var n=e.sceneX,r=e.sceneY,o=t.zoom,i=t.offsetLeft,a=t.offsetTop,l=t.scrollX,c=t.scrollY;return{x:(n+l)*o.value+i,y:(r+c)*o.value+a}},kn=function(e){return getComputedStyle(document.documentElement).getPropertyValue("--".concat(e))},En=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),_n=function(e){return En.test(e)},Sn=function(e){var t=h(e,2);return{x:t[0],y:t[1]}},jn=function(e){if("AbortError"!==(null==e?void 0:e.name))throw e;console.warn(e)},Cn=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===Ot.elementBackground[0]},On=function(e){return function(t){(0,It.unstable_batchedUpdates)(e,t)}},In=function(e){return t=function(t){(0,It.unstable_batchedUpdates)(e,t)},n=null,r=null,o=null,i=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];r=i,o=t,null===n&&(n=window.requestAnimationFrame((function(){n=null,r=null,o=null,t.apply(void 0,i)})))},i.flush=function(){if(null!==n&&(cancelAnimationFrame(n),n=null),r){var e=r,t=o;r=null,o=null,null!==t&&t.apply(void 0,P(e))}},i.cancel=function(){r=null,o=null,null!==n&&(cancelAnimationFrame(n),n=null)},i;var t,n,r,o,i},Mn=function(){return Pn()?1:Date.now()},Tn=function(e){return e.reduce((function(e,t){return e.set("string"==typeof t?t:t.id,t),e}),new Map)},Pn=function(){var e;return"undefined"!=typeof process&&"test"===(null===(e={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_SOCKET_SERVER_URL:"https://oss-collab-us1.excalidraw.com",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"})||void 0===e?void 0:e.NODE_ENV)},An=function(e,t){return new CustomEvent(e,{detail:{nativeEvent:t},cancelable:!0})};function Ln(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dn(e,t)}(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 Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rn=s.ZB.includes(devicePixelRatio)?devicePixelRatio:1,zn=function(){return{theme:s.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:"transparent",currentItemEndArrowhead:"arrow",currentItemFillStyle:"hachure",currentItemFontFamily:s.rk,currentItemFontSize:s.n5,currentItemLinearStrokeSharpness:"round",currentItemOpacity:100,currentItemRoughness:1,currentItemStartArrowhead:null,currentItemStrokeColor:jt.black,currentItemStrokeSharpness:"sharp",currentItemStrokeStyle:"solid",currentItemStrokeWidth:1,currentItemTextAlign:s.Hg,cursorButton:"up",draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,elementLocked:!1,elementType:"selection",penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:Rn,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,isLibraryOpen:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat(C("labels.untitled"),"-").concat(ln()),openMenu:null,openPopup:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectionElement:null,shouldCacheIgnoreZoom:!1,showHelpDialog:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],toastMessage:null,viewBackgroundColor:jt.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElement:null,showHyperlinkPopup:!1}},Nn={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},currentItemLinearStrokeSharpness:{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},currentItemStrokeSharpness:{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},elementLocked:{browser:!0,export:!1,server:!1},elementType:{browser:!0,export:!1,server:!1},penMode:{browser:!1,export:!1,server:!1},penDetected:{browser:!1,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},isLibraryOpen:{browser:!1,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},openMenu:{browser:!0,export:!1,server:!1},openPopup:{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},showHelpDialog:{browser:!1,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},toastMessage:{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},pendingImageElement:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1}},Hn=function(e,t){var n,r={},o=Ln(Object.keys(e));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=Nn[i];if(null!=a&&a[t]){var l=e[i];r[i]=l}}}catch(e){o.e(e)}finally{o.f()}return r},Bn=function(e){return Hn(e,"export")},Fn=function(e){return Hn(e,"server")};function Un(e,t,n,r=(e=>e)){return e*r(.5-t*(.5-n))}function Kn(e,t){return[e[0]+t[0],e[1]+t[1]]}function Wn(e,t){return[e[0]-t[0],e[1]-t[1]]}function Vn(e,t){return[e[0]*t,e[1]*t]}function Gn(e){return[e[1],-e[0]]}function Zn(e,t){return e[0]*t[0]+e[1]*t[1]}function Yn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Xn(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(Wn(e,t))}function qn(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function $n(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Qn(e,t,n){let 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 Jn(e,t,n){return Kn(e,Vn(Wn(t,e),n))}function er(e,t,n){return Kn(e,Vn(t,n))}var{min:tr,PI:nr}=Math,rr=nr+1e-4;function or(e,t={}){return function(e,t={}){let{size:n=16,smoothing:r=.5,thinning:o=.5,simulatePressure:i=!0,easing:a=(e=>e),start:l={},end:c={},last:s=!1}=t,{cap:u=!0,taper:d=0,easing:f=(e=>e*(2-e))}=l,{cap:p=!0,taper:h=0,easing:m=(e=>--e*e*e+1)}=c;if(0===e.length||n<=0)return[];let g,v=e[e.length-1].runningLength,b=Math.pow(n*r,2),y=[],x=[],w=e.slice(0,10).reduce(((e,t)=>{let r=t.pressure;if(i){let o=tr(1,t.distance/n),i=tr(1,1-o);r=tr(1,e+.275*o*(i-e))}return(e+r)/2}),e[0].pressure),k=Un(n,o,e[e.length-1].pressure,a),E=e[0].vector,_=e[0].point,S=_,j=_,C=S;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:l,vector:c,distance:s,runningLength:u}=e[t];if(t<e.length-1&&v-u<3)continue;if(o){if(i){let e=tr(1,s/n),t=tr(1,1-e);r=tr(1,w+.275*e*(t-w))}k=Un(n,o,r,a)}else k=n/2;void 0===g&&(g=k);let p=u<d?f(u/d):1,O=v-u<h?m((v-u)/h):1;if(k=Math.max(.01,k*Math.min(p,O)),t===e.length-1){let e=Vn(Gn(c),k);y.push(Wn(l,e)),x.push(Kn(l,e));continue}let I=e[t+1].vector,M=Zn(c,I);if(M<0){let e=Vn(Gn(E),k);for(let t=1/13,n=0;n<=1;n+=t)j=Qn(Wn(l,e),l,rr*n),y.push(j),C=Qn(Kn(l,e),l,rr*-n),x.push(C);_=j,S=C;continue}let T=Vn(Gn(Jn(I,c,M)),k);j=Wn(l,T),(t<=1||Xn(_,j)>b)&&(y.push(j),_=j),C=Kn(l,T),(t<=1||Xn(S,C)>b)&&(x.push(C),S=C),w=r,E=c}let O=e[0].point.slice(0,2),I=e.length>1?e[e.length-1].point.slice(0,2):Kn(e[0].point,[1,1]),M=[],T=[];if(1===e.length){if(!d&&!h||s){let e=er(O,qn(Gn(Wn(O,I))),-(g||k)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(Qn(e,O,2*rr*r));return t}}else{if(!(d||h&&1===e.length))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=Qn(x[0],O,rr*t);M.push(e)}else{let e=Wn(y[0],x[0]),t=Vn(e,.5),n=Vn(e,.51);M.push(Wn(O,t),Wn(O,n),Kn(O,n),Kn(O,t))}let t=Gn(function(e){return[-e[0],-e[1]]}(e[e.length-1].vector));if(h||d&&1===e.length)T.push(I);else if(p){let e=er(I,t,k);for(let t=1/29,n=t;n<1;n+=t)T.push(Qn(e,I,3*rr*n))}else T.push(Kn(I,Vn(t,k)),Kn(I,Vn(t,.99*k)),Wn(I,Vn(t,.99*k)),Wn(I,Vn(t,k)))}return y.concat(T,x.reverse(),M)}(function(e,t={}){var n;let{streamline:r=.5,size:o=16,last:i=!1}=t;if(0===e.length)return[];let a=.15+.85*(1-r),l=Array.isArray(e[0])?e:e.map((({x:e,y:t,pressure:n=.5})=>[e,t,n]));if(2===l.length){let e=l[1];l=l.slice(0,-1);for(let t=1;t<5;t++)l.push(Jn(l[0],e,t/4))}1===l.length&&(l=[...l,[...Kn(l[0],[1,1]),...l[0].slice(2)]]);let c=[{point:[l[0][0],l[0][1]],pressure:l[0][2]>=0?l[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],s=!1,u=0,d=c[0],f=l.length-1;for(let e=1;e<l.length;e++){let t=i&&e===f?l[e].slice(0,2):Jn(d.point,l[e],a);if(Yn(d.point,t))continue;let n=$n(t,d.point);if(u+=n,e<f&&!s){if(u<o)continue;s=!0}d={point:t,pressure:l[e][2]>=0?l[e][2]:.5,vector:qn(Wn(d.point,t)),distance:n,runningLength:u},c.push(d)}return c[0].vector=(null==(n=c[1])?void 0:n.vector)||[0,0],c}(e,t),t)}var ir=function(e){return"string"==typeof e},ar=function(){function e(){L(this,e),this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.elementsMap=new Map}return R(e,[{key:"getElementsIncludingDeleted",value:function(){return this.elements}},{key:"getElements",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&&Os(t)?t:null}},{key:"getNonDeletedElements",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.getNonDeletedElement(e);null!=r&&n.push(r)})),n}},{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=Cs(this.elements),this.informMutation()}},{key:"informMutation",value:function(){for(var e=0,t=Array.from(this.callbacks);e<t.length;e++){(0,t[e])()}}},{key:"addCallback",value:function(e){var t=this;if(this.callbacks.has(e))throw new Error;return this.callbacks.add(e),function(){if(!t.callbacks.has(e))throw new Error;t.callbacks.delete(e)}}},{key:"destroy",value:function(){var t=this;e.sceneMapById.forEach((function(n,r){n===t&&e.sceneMapById.delete(r)})),this.callbacks.clear()}}],[{key:"mapElementToScene",value:function(e,t){ir(e)?this.sceneMapById.set(e,t):this.sceneMapByElement.set(e,t)}},{key:"getScene",value:function(e){return ir(e)?this.sceneMapById.get(e)||null:this.sceneMapByElement.get(e)||null}}]),e}();ar.sceneMapByElement=new WeakMap,ar.sceneMapById=new Map;var lr,cr,sr=ar,ur=function(e,t,n){var r=t?t.width-2*s.gK:void 0,o=e.text;t&&(o=br(e.originalText,dn(e),t.width));var i=pr(e.originalText,dn(e),r),a=e.y;if(t){a=t.y+t.height/2-i.height/2;var l=t.height;i.height>t.height-2*s.gK&&(l=i.height+2*s.gK,a=t.y+l/2-i.height/2),ao(t,{height:l})}ao(e,{width:i.width,height:i.height,baseline:i.baseline,y:a,text:o})},dr=function(e,t,n){var r=Tn(e);t.forEach((function(e){var t=n.get(e.id),o=kr(e);if(o){var i,a=n.get(o);ao(r.get(t),{boundElements:null===(i=e.boundElements)||void 0===i?void 0:i.concat({type:"text",id:a})}),ao(r.get(a),{containerId:t})}}))},fr=function(e,t){e.forEach((function(e){var n=kr(e);if(n){var r=sr.getScene(e).getElement(n);if(r&&r.text){if(!e)return;var o=r.text,i=r.height,a=e.height,l=r.baseline;if("n"!==t&&"s"!==t){o&&(o=br(r.originalText,dn(r),e.width));var c=pr(o,dn(r),e.width);i=c.height,l=c.baseline}if(i>e.height-2*s.gK){var u=(a=i+2*s.gK)-e.height,d="ne"===t||"nw"===t||"n"===t?e.y-u:e.y;ao(e,{height:a,y:d})}var f=e.y+a/2-i/2;ao(r,{text:o,width:e.width-2*s.gK,height:i,x:e.x+s.gK,y:f,baseline:l})}}}))},pr=function(e,t,n){e=e.split("\n").map((function(e){return e||" "})).join("\n");var r=document.createElement("div");if(r.style.position="absolute",r.style.whiteSpace="pre",r.style.font=t,r.style.minHeight="1em",n){var o=gr(t);r.style.width="".concat(String(n),"px"),r.style.maxWidth="".concat(String(n),"px"),r.style.overflow="hidden",r.style.wordBreak="break-word",r.style.lineHeight="".concat(String(o),"px"),r.style.whiteSpace="pre-wrap"}document.body.appendChild(r),r.innerText=e;var i=document.createElement("span");i.style.display="inline-block",i.style.overflow="hidden",i.style.width="1px",i.style.height="1px",r.appendChild(i);var a=i.offsetTop+i.offsetHeight,l=r.offsetWidth,c=r.offsetHeight;return document.body.removeChild(r),{width:l,height:c,baseline:a}},hr="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),mr={},gr=function(e){return mr[e]||(mr[e]=pr(hr,e,null).height),mr[e]},vr=function(e,t){lr||(lr=document.createElement("canvas"));var n=lr.getContext("2d");n.font=t;var r=n.measureText(e);return Pn()?10*r.width:r.width},br=function(e,t,n){var r=n-2*s.gK,o=[],i=e.split("\n"),a=vr(" ",t);return i.forEach((function(e){var n=e.split(" ");if(1===n.length&&""===n[0])o.push(n[0]);else{for(var i="",l=0,c=0;c<n.length;){if(vr(n[c],t)>=r){for(i&&o.push(i),i="",l=0;n[c].length>0;){var s=n[c][0],u=yr.calculate(s,t);l+=u,n[c]=n[c].slice(1),l>=r?(" "===i.slice(-1)&&(i=i.slice(0,-1)),o.push(i),i=s,(l=u)===r&&(i="",l=0)):i+=s}l+a>=r?(o.push(i),i="",l=0):(i+=" ",l+=a),c++}else{for(;l<r&&c<n.length;){var d=n[c];if((l=vr(i+d,t))>=r){o.push(i),l=0,i="";break}if(c++,i+="".concat(d," "),l+a>=r){o.push(i.slice(0,-1)),i="",l=0;break}}l===r&&(i="",l=0)}}i&&(" "===i.slice(-1)&&(i=i.slice(0,-1)),o.push(i))}})),o.join("\n")},yr=(cr={},{calculate:function(e,t){var n=e.charCodeAt(0);if(cr[t]||(cr[t]=[]),!cr[t][n]){var r=vr(e,t);cr[t][n]=r}return cr[t][n]},getCache:function(e){return cr[e]}}),xr=function(e){var t=wr(e);return 0===t?pr(hr.split("").join("\n"),e).width+2*s.gK:t+2*s.gK},wr=function(e){var t=yr.getCache(e);if(!t)return 0;var n=t.filter((function(e){return void 0!==e}));return Math.min.apply(Math,P(n))},kr=function(e){var t,n;return null==e||null===(t=e.boundElements)||void 0===t||null===(n=t.filter((function(e){return"text"===e.type}))[0])||void 0===n?void 0:n.id},Er=function(e){if(!e)return null;var t,n=kr(e);return n&&(null===(t=sr.getScene(e))||void 0===t?void 0:t.getElement(n))||null},_r=function(e){return e&&e.containerId&&(null===(t=sr.getScene(e))||void 0===t?void 0:t.getElement(e.containerId))||null;var t};function Sr(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 jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cr="invert(100%) hue-rotate(180deg) saturate(1.25)",Or=zn(),Ir=function(e,t){return Ke(e)&&!t.imageCache.has(e.fileId)},Mr=function(e,t){var n;return"dark"===t.theme&&Ke(e)&&!Ir(e,t)&&(null===(n=t.imageCache.get(e.fileId))||void 0===n?void 0:n.mimeType)!==s.LO.svg},Tr=function(e){return[8,8+e]},Pr=function(e){return[1.5,6+e]},Ar=function(e){return"freedraw"===e.type?12*e.strokeWidth:20},Lr=document.createElement("img");Lr.src="data:".concat(s.LO.svg,",").concat(encodeURIComponent('<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="image" class="svg-inline--fa fa-image fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"></path></svg>'));var Dr=document.createElement("img");Dr.src="data:".concat(s.LO.svg,",").concat(encodeURIComponent('<svg viewBox="0 0 668 668" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48ZM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56ZM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.81709 0 0 .81709 124.825 145.825)"/><path d="M256 8C119.034 8 8 119.033 8 256c0 136.967 111.034 248 248 248s248-111.034 248-248S392.967 8 256 8Zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676ZM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.30366 0 0 .30366 506.822 60.065)"/></svg>'));var Rr=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(Hr(e));break;case"arrow":case"line":n.lineJoin="round",n.lineCap="round",Hr(e).forEach((function(e){t.draw(e)}));break;case"freedraw":n.save(),n.fillStyle=e.strokeColor;var o=function(e){return Xr.get(e)}(e),i=Hr(e);i&&t.draw(i),n.fillStyle=e.strokeColor,n.fill(o),n.restore();break;case"image":var a,l=Ke(e)?null===(a=r.imageCache.get(e.fileId))||void 0===a?void 0:a.image:void 0;null==l||l 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?Dr:Lr,e.width/2-o/2,e.height/2-o/2,o,o)}(e,n,r.zoom.value):n.drawImage(l,0,0,e.width,e.height);break;default:if(!Ve(e))throw new Error("Unimplemented type ".concat(e.type));var c=_n(e.text),s=c&&!n.canvas.isConnected;s&&document.body.appendChild(n.canvas),n.canvas.setAttribute("dir",c?"rtl":"ltr"),n.save(),n.font=dn(e),n.fillStyle=e.strokeColor,n.textAlign=e.textAlign;for(var u=e.text.replace(/\r\n?/g,"\n").split("\n"),d=e.containerId?gr(dn(e)):e.height/u.length,f=e.height-e.baseline,p="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,h=0;h<u.length;h++)n.fillText(u[h],p,(h+1)*d-f);n.restore(),s&&n.canvas.remove()}n.globalAlpha=1},zr=new WeakMap,Nr=new WeakMap,Hr=function(e){return Nr.get(e)},Br=function(e,t){return Nr.set(e,t)},Fr=function(e){return Nr.delete(e)},Ur=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={seed:e.seed,strokeLineDash:"dashed"===e.strokeStyle?Tr(e.strokeWidth):"dotted"===e.strokeStyle?Pr(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 it(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))}},Kr=function(e,t){var n=Nr.get(e);if(void 0===n)switch(zr.delete(e),e.type){case"rectangle":if("round"===e.strokeSharpness){var r=e.width,o=e.height,i=.25*Math.min(r,o);n=t.path("M ".concat(i," 0 L ").concat(r-i," 0 Q ").concat(r," 0, ").concat(r," ").concat(i," L ").concat(r," ").concat(o-i," Q ").concat(r," ").concat(o,", ").concat(r-i," ").concat(o," L ").concat(i," ").concat(o," Q 0 ").concat(o,", 0 ").concat(o-i," L 0 ").concat(i," Q 0 0, ").concat(i," 0"),Ur(e,!0))}else n=t.rectangle(0,0,e.width,e.height,Ur(e));Br(e,n);break;case"diamond":var a=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]}(e),l=h(a,8),c=l[0],s=l[1],u=l[2],d=l[3],f=l[4],p=l[5],m=l[6],g=l[7];n="round"===e.strokeSharpness?t.path("M ".concat(c+.25*(u-c)," ").concat(s+.25*(d-s)," L ").concat(u-.25*(u-c)," ").concat(d-.25*(d-s),"\n C ").concat(u," ").concat(d,", ").concat(u," ").concat(d,", ").concat(u-.25*(u-f)," ").concat(d+.25*(p-d),"\n L ").concat(f+.25*(u-f)," ").concat(p-.25*(p-d),"\n C ").concat(f," ").concat(p,", ").concat(f," ").concat(p,", ").concat(f-.25*(f-m)," ").concat(p-.25*(p-g),"\n L ").concat(m+.25*(f-m)," ").concat(g+.25*(p-g),"\n C ").concat(m," ").concat(g,", ").concat(m," ").concat(g,", ").concat(m+.25*(c-m)," ").concat(g-.25*(g-s),"\n L ").concat(c-.25*(c-m)," ").concat(s+.25*(g-s),"\n C ").concat(c," ").concat(s,", ").concat(c," ").concat(s,", ").concat(c+.25*(u-c)," ").concat(s+.25*(d-s)),Ur(e,!0)):t.polygon([[c,s],[u,d],[f,p],[m,g]],Ur(e)),Br(e,n);break;case"ellipse":n=t.ellipse(e.width/2,e.height/2,e.width,e.height,Ur(e)),Br(e,n);break;case"line":case"arrow":var v=Ur(e),b=e.points.length?e.points:[[0,0]];if(n="sharp"===e.strokeSharpness?v.fill?[t.polygon(b,v)]:[t.linearPath(b,v)]:[t.curve(b,v)],"arrow"===e.type){var y=e.startArrowhead,x=void 0===y?null:y,w=e.endArrowhead,k=void 0===w?"arrow":w,E=function(e,n,r,o){var i=function(e,t,n,r){var o=gt(t[0]);if(o.length<1)return null;var i="start"===n?1:o.length-1,a=o[i].data,l=[a[4],a[5]],c=[a[2],a[3]],s=[a[0],a[1]],u=o[i-1],d=[0,0];"move"===u.op?d=u.data:"bcurveTo"===u.op&&(d=[u.data[4],u.data[5]]);var f=function(e,t){return Math.pow(1-e,3)*l[t]+3*e*Math.pow(1-e,2)*c[t]+3*Math.pow(e,2)*(1-e)*s[t]+d[t]*Math.pow(e,3)},p=h("start"===n?d:l,2),m=p[0],g=p[1],v=[f(.3,0),f(.3,1)],b=v[0],y=v[1],x=Math.hypot(m-b,g-y),w=(m-b)/x,k=(g-y)/x,E={arrow:30,bar:15,dot:15,triangle:15}[r],_=0;if("arrow"===r){var S=h(e.points[e.points.length-1],2),j=S[0],C=S[1],O=h(e.points.length>1?e.points[e.points.length-2]:[0,0],2),I=O[0],M=O[1];_=Math.hypot(j-I,C-M)}else for(var T=0;T<e.points.length;T++){var P=h(e.points[T-1]||[0,0],2),A=P[0],L=P[1],D=h(e.points[T],2),R=D[0],z=D[1];_+=Math.hypot(R-A,z-L)}var N=Math.min(E,_/2),H=m-w*N,B=g-k*N;if("dot"===r)return[m,g,Math.hypot(B-g,H-m)+e.strokeWidth];var F={arrow:20,bar:90,triangle:25}[r],U=h(tt(H,B,m,g,-F*Math.PI/180),2),K=U[0],W=U[1],V=h(tt(H,B,m,g,F*Math.PI/180),2);return[m,g,K,W,V[0],V[1]]}(e,n,r,o);if(null===i)return[];if("dot"===o){var a=h(i,3),l=a[0],c=a[1],s=a[2];return[t.circle(l,c,s,jr(jr({},v),{},{fill:e.strokeColor,fillStyle:"solid",stroke:"none"}))]}if("triangle"===o){var u=h(i,6),d=u[0],f=u[1],p=u[2],m=u[3],g=u[4],b=u[5];return delete v.strokeLineDash,[t.polygon([[d,f],[p,m],[g,b],[d,f]],jr(jr({},v),{},{fill:e.strokeColor,fillStyle:"solid"}))]}var y=h(i,6),x=y[0],w=y[1],k=y[2],E=y[3],_=y[4],S=y[5];if("dotted"===e.strokeStyle){var j=Pr(e.strokeWidth-1);v.strokeLineDash=[j[0],j[1]-1]}else delete v.strokeLineDash;return[t.line(k,E,x,w,v),t.line(_,S,x,w,v)]};if(null!==x){var _,S=E(e,n,"start",x);(_=n).push.apply(_,P(S))}if(null!==k){var j,C=E(e,n,"end",k);(j=n).push.apply(j,P(C))}}Br(e,n);break;case"freedraw":qr(e),n=it(e.points)?t.polygon(e.points,jr(jr({},Ur(e)),{},{stroke:"none"})):null,Br(e,n);break;case"text":case"image":Br(e,null)}},Wr=function(e,t){var n=t?t.zoom:Or.zoom,r=zr.get(e),o=r&&r.canvasZoom!==n.value&&!(null!=t&&t.shouldCacheIgnoreZoom);if(!r||o||r.theme!==t.theme){var i=function(e,t,n){var r=document.createElement("canvas"),o=r.getContext("2d"),i=Ar(e),a=0,l=0;if(Ye(e)||Ge(e)){var c=h(mt(e),4),s=c[0],u=c[1],d=c[2],f=c[3];r.width=hn(s,d)*window.devicePixelRatio*t.value+i*t.value*2,r.height=hn(u,f)*window.devicePixelRatio*t.value+i*t.value*2,a=e.x>s?hn(e.x,s)*window.devicePixelRatio*t.value:0,l=e.y>u?hn(e.y,u)*window.devicePixelRatio*t.value:0,o.translate(a,l)}else r.width=e.width*window.devicePixelRatio*t.value+i*t.value*2,r.height=e.height*window.devicePixelRatio*t.value+i*t.value*2;o.save(),o.translate(i*t.value,i*t.value),o.scale(window.devicePixelRatio*t.value,window.devicePixelRatio*t.value);var p=He.canvas(r);return Mr(e,n)&&(o.filter=Cr),Rr(e,p,o,n),o.restore(),{element:e,canvas:r,theme:n.theme,canvasZoom:t.value,canvasOffsetX:a,canvasOffsetY:l}}(e,n,t);return zr.set(e,i),i}return r},Vr=function(e,t,n,r){var o=e.element,i=Ar(o),a=h(mt(o),4),l=a[0],c=a[1],s=a[2],u=a[3];Ge(o)&&(l=Math.floor(l),s=Math.ceil(s),c=Math.floor(c),u=Math.ceil(u));var d=((l+s)/2+r.scrollX)*window.devicePixelRatio,f=((c+u)/2+r.scrollY)*window.devicePixelRatio,p=Ir(o,r),m="scale"in e.element&&!p?e.element.scale[0]:1,g="scale"in e.element&&!p?e.element.scale[1]:1;n.save(),n.scale(1/window.devicePixelRatio*m,1/window.devicePixelRatio*g),n.translate(d*m,f*g),n.rotate(o.angle*m*g),n.drawImage(e.canvas,-(s-l)/2*window.devicePixelRatio-i*e.canvasZoom/e.canvasZoom,-(u-c)/2*window.devicePixelRatio-i*e.canvasZoom/e.canvasZoom,e.canvas.width/e.canvasZoom,e.canvas.height/e.canvasZoom),n.restore()},Gr=function(e,t,n,r){var o=t.generator;switch(e.type){case"selection":n.save(),n.translate(e.x+r.scrollX,e.y+r.scrollY),n.fillStyle="rgba(0, 0, 255, 0.10)",n.fillRect(0,0,e.width,e.height),n.restore();break;case"freedraw":if(Kr(e,o),r.isExporting){var i=Wr(e,r);Vr(i,0,n,r)}else{var a=h(mt(e),4),l=a[0],c=a[1],s=a[2],u=a[3],d=(l+s)/2+r.scrollX,f=(c+u)/2+r.scrollY,p=(s-l)/2-(e.x-l),m=(u-c)/2-(e.y-c);n.save(),n.translate(d,f),n.rotate(e.angle),n.translate(-p,-m),Rr(e,t,n,r),n.restore()}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":if(Kr(e,o),r.isExporting){var g=h(mt(e),4),v=g[0],b=g[1],y=g[2],x=g[3],w=(v+y)/2+r.scrollX,k=(b+x)/2+r.scrollY,E=(y-v)/2-(e.x-v),_=(x-b)/2-(e.y-b);n.save(),n.translate(w,k),n.rotate(e.angle),n.translate(-E,-_),Mr(e,r)&&(n.filter="none"),Rr(e,t,n,r),n.restore()}else{var S=Wr(e,r);Vr(S,0,n,r)}break;default:throw new Error("Unimplemented type ".concat(e.type))}},Zr=function(e,t,n){if(void 0===n)return e.draw(t);var r={sets:t.sets,shape:t.shape,options:jr(jr({},t.options),{},{fixedDecimalPlaceDigits:n})};return e.draw(r)},Yr=function(e,t,n,r,o,i,a){var l=h(mt(e),4),c=l[0],u=l[1],d=l[2],f=l[3],p=(d-c)/2-(e.x-c),m=(f-u)/2-(e.y-u),g=180*e.angle/Math.PI,v=t.generator;switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":Kr(e,v);var b=Zr(t,Hr(e),s.zK),y=e.opacity/100;1!==y&&(b.setAttribute("stroke-opacity","".concat(y)),b.setAttribute("fill-opacity","".concat(y))),b.setAttribute("stroke-linecap","round"),b.setAttribute("transform","translate(".concat(o||0," ").concat(i||0,") rotate(").concat(g," ").concat(p," ").concat(m,")")),n.appendChild(b);break;case"line":case"arrow":Kr(e,v);var x=n.ownerDocument.createElementNS(s.hR,"g"),w=e.opacity/100;x.setAttribute("stroke-linecap","round"),Hr(e).forEach((function(n){var r=Zr(t,n,s.zK);1!==w&&(r.setAttribute("stroke-opacity","".concat(w)),r.setAttribute("fill-opacity","".concat(w))),r.setAttribute("transform","translate(".concat(o||0," ").concat(i||0,") rotate(").concat(g," ").concat(p," ").concat(m,")")),"line"===e.type&&it(e.points)&&"transparent"!==e.backgroundColor&&r.setAttribute("fill-rule","evenodd"),x.appendChild(r)})),n.appendChild(x);break;case"freedraw":qr(e);var k=e.opacity/100,E=Hr(e),_=E?Zr(t,E,s.zK):n.ownerDocument.createElementNS(s.hR,"g");1!==k&&(_.setAttribute("stroke-opacity","".concat(k)),_.setAttribute("fill-opacity","".concat(k))),_.setAttribute("transform","translate(".concat(o||0," ").concat(i||0,") rotate(").concat(g," ").concat(p," ").concat(m,")")),_.setAttribute("stroke","none");var S=n.ownerDocument.createElementNS(s.hR,"path");S.setAttribute("fill",e.strokeColor),S.setAttribute("d",$r(e)),_.appendChild(S),n.appendChild(_);break;case"image":var j=Ke(e)&&r[e.fileId];if(j){var C="image-".concat(j.id),O=n.querySelector("#".concat(C));if(!O){(O=n.ownerDocument.createElementNS(s.hR,"symbol")).id=C;var I=n.ownerDocument.createElementNS(s.hR,"image");I.setAttribute("width","100%"),I.setAttribute("height","100%"),I.setAttribute("href",j.dataURL),O.appendChild(I),n.prepend(O)}var M=n.ownerDocument.createElementNS(s.hR,"use");M.setAttribute("href","#".concat(C)),a&&j.mimeType!==s.LO.svg&&M.setAttribute("filter",Cr),M.setAttribute("width","".concat(Math.round(e.width))),M.setAttribute("height","".concat(Math.round(e.height))),M.setAttribute("transform","translate(".concat(o||0," ").concat(i||0,") rotate(").concat(g," ").concat(p," ").concat(m,")")),n.appendChild(M)}break;default:if(!Ve(e))throw new Error("Unimplemented type ".concat(e.type));var T=e.opacity/100,P=n.ownerDocument.createElementNS(s.hR,"g");1!==T&&(P.setAttribute("stroke-opacity","".concat(T)),P.setAttribute("fill-opacity","".concat(T))),P.setAttribute("transform","translate(".concat(o||0," ").concat(i||0,") rotate(").concat(g," ").concat(p," ").concat(m,")"));for(var A=e.text.replace(/\r\n?/g,"\n").split("\n"),L=e.height/A.length,D=e.height-e.baseline,R="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,z=_n(e.text)?"rtl":"ltr",N="center"===e.textAlign?"middle":"right"===e.textAlign||"rtl"===z?"end":"start",H=0;H<A.length;H++){var B=n.ownerDocument.createElementNS(s.hR,"text");B.textContent=A[H],B.setAttribute("x","".concat(R)),B.setAttribute("y","".concat((H+1)*L-D)),B.setAttribute("font-family",un(e)),B.setAttribute("font-size","".concat(e.fontSize,"px")),B.setAttribute("fill",e.strokeColor),B.setAttribute("text-anchor",N),B.setAttribute("style","white-space: pre;"),B.setAttribute("direction",z),P.appendChild(B)}n.appendChild(P)}},Xr=new WeakMap([]);function qr(e){var t=$r(e),n=new Path2D(t);return Xr.set(e,n),n}function $r(e){var t=e.simulatePressure?e.points:e.points.length?e.points.map((function(t,n){var r=h(t,2);return[r[0],r[1],e.pressures[n]]})):[[0,0,.5]],n={simulatePressure:e.simulatePressure,size:4.25*e.strokeWidth,thinning:.6,smoothing:.5,streamline:.5,easing:function(e){return Math.sin(e*Math.PI/2)},last:!!e.lastCommittedPoint};return function(e){if(!e.length)return"";var t=e.length-1;return e.reduce((function(e,n,r,o){return r===t?e.push(n,Qr(n,o[0]),"L",o[0],"Z"):e.push(n,Qr(n,o[r+1])),e}),["M",e[0],"Q"]).join(" ").replace(Jr,"$1")}(or(t,n))}function Qr(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}var Jr=/(\s?[A-Z]?,?-?[0-9]*\.[0-9]{0,2})(([0-9]|e|-)*)/g;var eo=new Q(Date.now()),to=0,no=function(){return Math.floor(eo.next()*Math.pow(2,31))},ro=function(){return Pn()?"id".concat(to++):Ue()};function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ao=function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!1,i=t,a=i.points,l=i.fileId;for(var c in void 0!==a&&(t=io(io({},dt(a)),t)),t){var s=t[c];if(void 0!==s){if(e[c]===s&&("object"!==T(s)||null===s||"groupIds"===c||"scale"===c))continue;if("scale"===c){var u=e[c],d=s;if(u[0]===d[0]&&u[1]===d[1])continue}else if("points"===c){var f=e[c],p=s;if(f.length===p.length){for(var h=!1,m=f.length;--m;){var g=f[m],v=p[m];if(g[0]!==v[0]||g[1]!==v[1]){h=!0;break}}if(!h)continue}}e[c]=s,o=!0}}if(!o)return e;(void 0===t.height&&void 0===t.width&&void 0===l&&void 0===a||Fr(e),e.version++,e.versionNonce=no(),e.updated=Mn(),r)&&(null===(n=sr.getScene(e))||void 0===n||n.informMutation());return e},lo=function(e,t){var n=!1;for(var r in t){var o=t[r];if(void 0!==o){if(e[r]===o&&("object"!==T(o)||null===o))continue;n=!0}}return n?io(io(io({},e),t),{},{updated:Mn(),version:e.version+1,versionNonce:no()}):e},co=function(e,t){return e.version=(null!=t?t:e.version)+1,e.versionNonce=no(),e.updated=Mn(),e},so=function(e){return Ye(e)||Ge(e)?e.points.length<2:0===e.width&&0===e.height},uo=function(e,t,n){var r=Math.abs(t),o=Math.abs(n);if("line"===e||"arrow"===e||"freedraw"===e){var i=Math.round(Math.atan(o/r)/s.ay)*s.ay;0===i?n=0:i===Math.PI/2?t=0:n=Math.round(r*Math.tan(i))*Math.sign(n)||n}else"selection"!==e&&(n=r*Math.sign(n));return{width:t,height:n}},fo=function(e){var t={width:e.width,height:e.height,x:e.x,y:e.y};if(e.width<0){var n=Math.abs(e.width);t.width=n,t.x=e.x-n}if(e.height<0){var r=Math.abs(e.height);t.height=r,t.y=e.y-r}return t};function po(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ho(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mo(e,t)}(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 mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(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 vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bo=function(e,t,n){var r=n.filter((function(t){return t.groupIds.includes(e)}));return r.length<2?t.selectedGroupIds[e]||t.editingGroupId===e?vo(vo({},t),{},{selectedGroupIds:vo(vo({},t.selectedGroupIds),{},A({},e,!1)),editingGroupId:null}):t:vo(vo({},t),{},{selectedGroupIds:vo(vo({},t.selectedGroupIds),{},A({},e,!0)),selectedElementIds:vo(vo({},t.selectedElementIds),Object.fromEntries(r.map((function(e){return[e.id,!0]}))))})},yo=function(e,t){return null!=xo(e,t)},xo=function(e,t){return t.groupIds.filter((function(t){return t!==e.editingGroupId})).find((function(t){return e.selectedGroupIds[t]}))},wo=function(e){return Object.entries(e.selectedGroupIds).filter((function(e){var t=h(e,2);t[0];return t[1]})).map((function(e){var t=h(e,2),n=t[0];t[1];return n}))},ko=function(e,t){var n=vo(vo({},e),{},{selectedGroupIds:{}}),r=Ds(t,e);if(!r.length)return vo(vo({},n),{},{editingGroupId:null});var o,i=ho(r);try{for(i.s();!(o=i.n()).done;){var a=o.value.groupIds;if(e.editingGroupId){var l=a.indexOf(e.editingGroupId);l>-1&&(a=a.slice(0,l))}if(a.length>0){var c=a[a.length-1];n=bo(c,n,t)}}}catch(e){i.e(e)}finally{i.f()}return n},Eo=function(e,t){return e.groupIds.includes(t)},_o=function(e,t){return e.filter((function(e){return Eo(e,t)}))},So=function(e,t,n){var r=P(e),o=n?r.indexOf(n):-1,i=o>-1?o:r.length;return r.splice(i,0,t),r},jo=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],r=t.get(n)||[],o=kr(e);if(o){var i=sr.getScene(e).getElement(o);r.push(i)}t.set(n,[].concat(P(r),[e]))})),Array.from(t.values())},Co=["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","strokeSharpness","boundElements","link"];function Oo(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mo=function(e,t){var n,r,o=t.x,i=t.y,a=t.strokeColor,l=t.backgroundColor,c=t.fillStyle,s=t.strokeWidth,u=t.strokeStyle,d=t.roughness,f=t.opacity,p=t.width,h=void 0===p?0:p,m=t.height,g=void 0===m?0:m,v=t.angle,b=void 0===v?0:v,y=t.groupIds,x=void 0===y?[]:y,w=t.strokeSharpness,k=t.boundElements,E=void 0===k?null:k,_=t.link,S=void 0===_?null:_,j=po(t,Co);return{id:j.id||ro(),type:e,x:o,y:i,width:h,height:g,angle:b,strokeColor:a,backgroundColor:l,fillStyle:c,strokeWidth:s,strokeStyle:u,roughness:d,opacity:f,groupIds:x,strokeSharpness:w,seed:null!==(n=j.seed)&&void 0!==n?n:no(),version:j.version||1,versionNonce:null!==(r=j.versionNonce)&&void 0!==r?r:0,isDeleted:!1,boundElements:E,updated:Mn(),link:S}},To=function(e){return Mo(e.type,e)},Po=function(e,t){return{x:"center"===e.textAlign?t.width/2:"right"===e.textAlign?t.width:0,y:"middle"===e.verticalAlign?t.height/2:0}},Ao=function(e){var t=pr(e.text,dn(e)),n=Po(e,t);return lo(Io(Io({},Mo("text",e)),{},{text:e.text,fontSize:e.fontSize,fontFamily:e.fontFamily,textAlign:e.textAlign,verticalAlign:e.verticalAlign,x:e.x-n.x,y:e.y-n.y,width:t.width,height:t.height,baseline:t.baseline,containerId:e.containerId||null,originalText:e.text}),{})},Lo=function(e,t){var n=t.text,r=t.isDeleted,o=t.originalText,i=_r(e);i&&(n=br(n,dn(e),i.width));var a=function(e,t){var n=null,r=_r(e);r&&(n=r.width-2*s.gK);var o,i,a=pr(t,dn(e),n),l=a.width,c=a.height,u=a.baseline,d=e.textAlign,f=e.verticalAlign;if("center"!==d||"middle"!==f||e.containerId){var p=h(mt(e),4),m=p[0],g=p[1],v=p[2],b=p[3],y=h(Et(e,l,c),4),x=(m-y[0])/2,w=(g-y[1])/2,k=(v-y[2])/2,E=(b-y[3])/2,_=h(rt({s:!0,e:"center"===d||"left"===d,w:"center"===d||"right"===d},e.x,e.y,e.angle,x,w,k,E),2);o=_[0],i=_[1]}else{var S=pr(e.text,dn(e),n),j=Po(e,{width:l-S.width,height:c-S.height});o=e.x-j.x,i=e.y-j.y}if(et(e)){var C=_r(e),O=C.height,I=C.width;c>O-2*s.gK&&(O=c+2*s.gK),l>I-2*s.gK&&(I=l+2*s.gK),O===C.height&&I===C.width||ao(C,{height:O,width:I})}return{width:l,height:c,x:Number.isFinite(o)?o:e.x,y:Number.isFinite(i)?i:e.y,baseline:u}}(e,n);return lo(e,Io({text:n,originalText:o,isDeleted:null!=r?r:e.isDeleted},a))},Do=function(e){return Io(Io({},Mo(e.type,e)),{},{points:e.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:e.startArrowhead,endArrowhead:e.endArrowhead})},Ro=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null==t||"object"!==T(t))return t;if("[object Object]"===Object.prototype.toString.call(t)){var r="function"==typeof t.constructor?Object.create(Object.getPrototypeOf(t)):{};for(var o in t)if(t.hasOwnProperty(o)){if(0===n&&("shape"===o||"canvas"===o))continue;r[o]=e(t[o],n+1)}return r}if(Array.isArray(t)){for(var i=t.length,a=new Array(i);i--;)a[i]=e(t[i],n+1);return a}return t},zo=function(e,t,n,r){var o,i,a=Ro(n);Pn()?(a.id="".concat(a.id,"_copy"),null!==(o=window.h)&&void 0!==o&&null!==(i=o.app)&&void 0!==i&&i.getSceneElementsIncludingDeleted().find((function(e){return e.id===a.id}))&&(a.id+="_copy")):a.id=ro();return a.updated=Mn(),a.seed=no(),a.groupIds=function(e,t,n){for(var r=P(e),o=t?e.indexOf(t):-1,i=o>-1?o:e.length,a=0;a<i;a++)r[a]=n(r[a]);return r}(a.groupIds,e,(function(e){return t.has(e)||t.set(e,ro()),t.get(e)})),r&&(a=Object.assign(a,r)),a},No={mouse:8,pen:16,touch:28},Ho={e:!0,s:!0,n:!0,w:!0},Bo={e:!0,s:!0,n:!0,w:!0},Fo={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},Uo={e:!0,s:!0,n:!0,w:!0,ne:!0,sw:!0},Ko=function(e,t,n,r,o,i,a){var l=h(tt(e+n/2,t+r/2,o,i,a),2);return[l[0]-n/2,l[1]-r/2,n,r]},Wo=function(e,t,n,r){var o=h(e,4),i=o[0],a=o[1],l=o[2],c=o[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=No[r],d=u/n.value,f=u/n.value,p=u/n.value,m=u/n.value,g=l-i,v=c-a,b=(i+l)/2,y=(a+c)/2,x=4/n.value,w=(u-8)/(2*n.value),k={nw:s.nw?void 0:Ko(i-x-p+w,a-x-m+w,d,f,b,y,t),ne:s.ne?void 0:Ko(l+x-w,a-x-m+w,d,f,b,y,t),sw:s.sw?void 0:Ko(i-x-p+w,c+x-w,d,f,b,y,t),se:s.se?void 0:Ko(l+x-w,c+x-w,d,f,b,y,t),rotation:s.rotation?void 0:Ko(i+g/2-d/2,a-x-m+w-16/n.value,d,f,b,y,t)},E=5*No.mouse/n.value;return Math.abs(g)>E&&(s.n||(k.n=Ko(i+g/2-d/2,a-x-m+w,d,f,b,y,t)),s.s||(k.s=Ko(i+g/2-d/2,c+x-w,d,f,b,y,t))),Math.abs(v)>E&&(s.w||(k.w=Ko(i-x-p+w,a+v/2-f/2,d,f,b,y,t)),s.e||(k.e=Ko(l+x-w,a+v/2-f/2,d,f,b,y,t))),k},Vo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mouse",r={};if("arrow"===e.type||"line"===e.type||"freedraw"===e.type){if(2===e.points.length){var o=h(e.points,2),i=o[1];0===i[0]||0===i[1]?r=Uo:i[0]>0&&i[1]<0?r=Fo:i[0]>0&&i[1]>0?r=Uo:i[0]<0&&i[1]>0?r=Fo:i[0]<0&&i[1]<0&&(r=Uo)}}else Ve(e)&&(r=Bo);return Wo(mt(e),e.angle,t,n,r)},Go=function(e,t){return[0,0,0,0,t,e,1,0]},Zo=function(){var e=arguments.length>0&&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` betwen 0 and 7, got `".concat(t,"`"));return 0!==e&&(n[t]=e),n},Yo=function(e){return[e[0],e[1],e[2],e[3],-e[4],-e[5],-e[6],-e[7]]},Xo=function(e,t){return ri(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]]},qo=function(e,t){return ri(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]:[$o(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]]},$o=function(e,t){return t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6]},Qo=function(e,t){return[Jo(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]]},Jo=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]},ei=function(e){return Math.sqrt(Math.abs(e[0]*e[0]-e[2]*e[2]-e[3]*e[3]+e[6]*e[6]))},ti=function(e){var t=ei(e);if(0===t||1===t)return e;var n=e[6]<0?-1:1;return qo(e,n/t)},ni=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:qo(e,1/t)},ri=function(e){return"number"==typeof e},oi=(Zo(1,1),Zo(1,2),Zo(1,3),Zo(1,4),Zo(1,5),Zo(1,6),Zo(1,7),function(e,t,n){return ti([0,n,e,t,0,0,0,0])}),ii=function(e,t){return ti(Qo(t,e))},ai=function(e,t){return function(e,t){return[t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6],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[7]*e[3]+t[0]*e[4]+t[3]*e[7],t[5]*e[0]+t[7]*e[2]+t[0]*e[5]+t[2]*e[7],t[6]*e[0]+t[0]*e[6],t[7]*e[0]+t[0]*e[7]]}(e,t)},li=function(e){var t=h(e,2),n=t[0];return[0,0,0,0,t[1],n,1,0]},ci=function(e){return[e[5],e[4]]},si=function(e,t){return ti(function(e,t){return[t[0]*e[0],t[1]*e[0]+t[0]*e[1],t[2]*e[0]+t[0]*e[2],t[3]*e[0]+t[0]*e[3],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[0]*e[4],t[5]*e[0]-t[3]*e[1]+t[1]*e[3]+t[0]*e[5],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]]}(e,t))},ui=function(e,t){return ei(Qo(e,t))},di=function(e,t){return Jo(e,t)},fi=function(e){return[0,0,0,0,e[4],e[5],0,0]},pi=function(e,t){return function(e,t){return ri(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]]}(qo(e,Math.sin(t/2)),Math.cos(t/2))},hi=function(e,t){return ti(qo(qo(e,t),Yo(e)))};function mi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(e,t)}(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 gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vi=function(e,t,n,r){var o=10/t.zoom.value,i=[n,r];return xi(t,e)?wi(e,i,o):yi(e,t,i)},bi=function(e,t,n,r){var o=10/t.zoom.value;return!yi(e,t,[n,r])&&wi(e,[n,r],o)},yi=function(e,t,n){var r=10/t.zoom.value,o=Ve(e)?ji:function(e){if("arrow"===e.type)return!1;if("freedraw"===e.type)return!0;var t=!Cn(e.backgroundColor)||Je(e);return"line"===e.type?t&&it(e.points):t||We(e)}(e)?Ci:Oi;return _i({element:e,point:n,threshold:r,check:o})},xi=function(e,t){return e.selectedElementIds[t.id]},wi=function(e,t,n){var r=h(t,2),o=r[0],i=r[1],a=h(mt(e),4),l=a[0],c=a[1],s=a[2],u=a[3],d=h(tt(o,i,(l+s)/2,(c+u)/2,-e.angle),2),f=d[0],p=d[1];return f>l-n&&f<s+n&&p>c-n&&p<u+n},ki=function(e,t){var n=t.x,r=t.y,o=Ei(e,e.width,e.height);return _i({element:e,point:[n,r],threshold:o,check:Ii})},Ei=function(e,t,n){var r=("diamond"===e.type?1/Math.sqrt(2):1)*Math.min(t,n);return Math.max(16,Math.min(.25*r,32))},_i=function(e){switch(e.element.type){case"rectangle":case"image":case"text":case"diamond":case"ellipse":var t=Si(e.element,e.point);return e.check(t,e.threshold);case"freedraw":return!!e.check(Mi(e.element,e.point),e.threshold)&&Li(e.element,e.point,e.threshold);case"arrow":case"line":return Di(e);case"selection":return console.warn("This should not happen, we need to investigate why it does."),!1}},Si=function(e,t){switch(e.type){case"rectangle":case"image":case"text":return Mi(e,t);case"diamond":return Ti(e,t);case"ellipse":return Pi(e,t)}},ji=function(e,t){return e<0},Ci=function(e,t){return e<t},Oi=function(e,t){return Math.abs(e)<t},Ii=function(e,t){return 0<=e&&e<t},Mi=function(e,t){var n=h(Ri(e,t),4),r=n[1],o=n[2],i=n[3];return Math.max(di(r,oi(0,1,-i)),di(r,oi(1,0,-o)))},Ti=function(e,t){var n=h(Ri(e,t),4),r=n[1],o=n[2],i=n[3],a=oi(i,o,-i*o);return di(r,a)},Pi=function(e,t){var n=h(Ai(e,t),2),r=n[0],o=n[1];return-function(e){return Math.sign(e[1])}(o)*di(r,o)},Ai=function(e,t){var n=h(Ri(e,t),4),r=n[1],o=n[2],i=n[3],a=h(ci(r),2),l=a[0],c=a[1],s=.707,u=.707,d=o,f=i;[0,1,2,3].forEach((function(e){var t=d*s,n=f*u,r=(d*d-f*f)*Math.pow(s,3)/d,o=(f*f-d*d)*Math.pow(u,3)/f,i=t-r,a=n-o,p=l-r,h=c-o,m=Math.hypot(a,i),g=Math.hypot(h,p);s=Math.min(1,Math.max(0,(p*m/g+r)/d)),u=Math.min(1,Math.max(0,(h*m/g+o)/f));var v=Math.hypot(u,s);s/=v,u/=v}));var p,m=Go(d*s,f*u);return[r,ai(ii(r,p=m),p)]},Li=function(e,t,n){var r,o;if(0===e.angle)r=t[0]-e.x,o=t[1]-e.y;else{var i=h(mt(e),4),a=i[0],l=i[1],c=i[2],s=i[3],u=nt(t,[a+(c-a)/2,l+(s-l)/2],-e.angle);r=u[0]-e.x,o=u[1]-e.y}var d,f=h(e.points,2),p=f[0],m=f[1];if(ot(p[0],p[1],r,o)<n||ot(m[0],m[1],r,o)<n)return!0;for(var g=0;g<e.points.length;g++){var v=[m[0]-p[0],m[1]-p[1]],b=Math.hypot(v[1],v[0]),y=[v[0]/b,v[1]/b],x=[r-p[0],o-p[1]],w=(x[0]*y[0]+x[1]*y[1])/Math.hypot(y[1],y[0]);d=[p[0]+y[0]*w,p[1]+y[1]*w];var k=ot(d[0],d[1],p[0],p[1]),E=ot(d[0],d[1],m[0],m[1]);if(d=E<k&&k>b?m:k<E&&E>b?p:d,Math.hypot(o-d[1],r-d[0])<n)return!0;p=m,m=e.points[g+1]}var _=Hr(e);return!(!_||!_.sets.length)&&Xi(_,r,o,n)},Di=function(e){var t=e.element,n=e.threshold;if(!Hr(t))return!1;var r=h(Ri(e.element,e.point),4),o=r[0],i=r[1],a=r[2],l=r[3],c=oi(0,1,-l),s=oi(1,0,-a);if(!Ci(di(i,c),n)||!Ci(di(i,s),n))return!1;var u=h(ci(o),2),d=u[0],f=u[1],p=Hr(t);if(!p)return!1;if(e.check===Ci&&p.some((function(e){return Yi(e,d,f,t.strokeSharpness)})))return!0;return p.some((function(e){return Xi(e,d,f,n)}))},Ri=function(e,t){var n=li(t),r=mt(e),o=Ni(r),i=pi(o,e.angle),a=hi(i,n),l=function(e){return[0,0,0,0,Math.abs(e[4]),Math.abs(e[5]),1,0]}(Xo(a,fi(o))),c=function(e,t){return[0,0,0,0,t,e,0,0]}(e.x,e.y),s=Xo(a,c),u=h(r,4),d=u[0],f=u[1];return[s,l,(u[2]-d)/2,(u[3]-f)/2]},zi=function(e){var t=mt(e),n=Ni(t),r=pi(n,e.angle),o=Yo(function(e){return[1,0,0,0,-.5*e[5],.5*e[4],0,0]}(fi(n)));return qo(o,r)},Ni=function(e){var t=h(e,4),n=t[0],r=t[1],o=t[2],i=t[3];return Go((n+o)/2,(r+i)/2)},Hi=function(e,t,n){var r=zi(e),o=hi(r,li(t)),i=hi(r,li(n)),a=ii(o,i),l=e.height/e.width,c=e.width/2,s=e.height/2,u=a[2],d=a[3],f=a[1],p=Math.abs(d),h=Math.abs(u);switch(e.type){case"rectangle":case"image":case"text":return f/(c*(h+l*p));case"diamond":return p<h?f/(h*c):f/(p*s);case"ellipse":return f/(c*Math.sqrt(Math.pow(u,2)+Math.pow(l,2)*Math.pow(d,2)))}},Bi=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=Fi(e);r=i.flatMap((function(e,n){var r=[e,i[(n+1)%4]];return Ui(t,Ki(r,o))})).concat(i.flatMap((function(e){return Vi(e,o,t)})));break;case"ellipse":r=Wi(e,o,t)}if(r.length<2)return[];var a=r.sort((function(e,t){return ui(e,n)-ui(t,n)}));return[a[0],a[a.length-1]]},Fi=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[Go(n,r),Go(n,-r),Go(-n,-r),Go(-n,r)];case"diamond":return[Go(0,r),Go(n,0),Go(0,-r),Go(-n,0)]}},Ui=function(e,t){var n=h(t,2),r=n[0],o=n[1];return di(r,e)*di(o,e)>=0?[]:[si(e,ii(r,o))]},Ki=function(e,t){var n=h(e,2),r=n[0],o=n[1],i=function(e,t){var n=.5*t;return[1,0,0,0,n*e[4],n*e[5],0,0]}(function(e,t){return ni([0,0,0,0,t[4]-e[4],t[5]-e[5],0,0])}(r,o),t);return[hi(i,r),hi(i,o)]},Wi=function(e,t,n){var r=e.width/2+t,o=e.height/2+t,i=n[2],a=n[3],l=n[1],c=r*r*i*i+o*o*a*a,s=c-l*l;if(0===c||s<=0)return[];var u=Math.sqrt(s),d=-r*r*i*l,f=-o*o*a*l;return[Go((d+r*o*a*u)/c,(f-r*o*i*u)/c),Go((d-r*o*a*u)/c,(f+r*o*i*u)/c)]},Vi=function(e,t,n){if(0===t)return 0===di(n,e)?[e]:[];var r=n[2],o=n[3],i=n[1],a=h(ci(e),2),l=a[0],c=a[1],s=r*r+o*o,u=t*t*s-Math.pow(r*l+o*c+i,2);if(0===s||u<=0)return[];var d=Math.sqrt(u),f=l*o*o-c*r*o-r*i,p=c*r*r-l*r*o-o*i;return[Go((f+o*d)/s,(p-r*d)/s),Go((f-o*d)/s,(p+r*d)/s)]},Gi=function(e,t,n){var r=Math.abs(t),o=e.width*r/2,i=e.height*r/2,a=Math.sign(t),l=h(ci(n),2),c=l[0],s=l[1],u=0===s?1e-4:s,d=Math.pow(c,2)*Math.pow(i,2)+Math.pow(u,2)*Math.pow(o,2),f=(-c*Math.pow(i,2)+a*u*Math.sqrt(Math.max(0,d-Math.pow(o,2)*Math.pow(i,2))))/d,p=(-f*c-1)/u,m=-Math.pow(o,2)*f/(Math.pow(p,2)*Math.pow(i,2)+Math.pow(f,2)*Math.pow(o,2));return Go(m,(-f*m-1)/p)},Zi=function(e,t,n){var r=Math.abs(t),o=Math.sign(t),i=Fi(e,r),a=0,l=null;return i.forEach((function(e){var t=o*ii(n,e)[1];t>a&&(a=t,l=e)})),l},Yi=function(e,t,n,r){var o,i=[],a=!1,l=mi(gt(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 at(i,t,n);var s=Ae(i,10,5);return at(s,t,n)}return!1},Xi=function(e,t,n,r){var o=gt(e),i=[0,0];return o.some((function(o,a){var l=o.op,c=o.data;if("move"===l)i=c;else{if("bcurveTo"===l){var s=[c[0],c[1]],u=[c[2],c[3]],d=[c[4],c[5]],f=i;i=d;var p=function(e,t,n,r,o,i){for(var a=h(o,2),l=a[0],c=a[1],s=function(o,i){return Math.pow(1-o,3)*r[i]+3*o*Math.pow(1-o,2)*n[i]+3*Math.pow(o,2)*(1-o)*t[i]+e[i]*Math.pow(o,3)},u=0;u<=1;){var d=s(u,0),f=s(u,1);if(Math.sqrt(Math.pow(d-l,2)+Math.pow(f-c,2))<i)return!0;u+=.01}return!1}(f,s,u,d,[t,n],r);return p}if("lineTo"===l)return Yi(e,t,n,"sharp");"qcurveTo"===l&&console.warn("qcurveTo is not implemented yet")}return!1}))},qi=["rotation"],$i=function(e,t,n){return t>=e[0]&&t<=e[0]+e[2]&&n>=e[1]&&n<=e[1]+e[3]},Qi=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=Vo(e,o,i),l=a.rotation,c=po(a,qi);if(l&&$i(l,n,r))return"rotation";var s=Object.keys(c).filter((function(e){var t=c[e];return!!t&&$i(t,n,r)}));return s.length>0&&s[0]}(a,t,n,r,o,i);return l?{element:a,transformHandleType:l}:null}),null)},Ji=function(e,t,n,r,o){var i=h(e,4),a=i[0],l=i[1],c=i[2],s=i[3],u=Wo([a,l,c,s],0,r,o,Ho);return Object.keys(u).find((function(e){var r=u[e];return r&&$i(r,t,n)}))||!1},ea=["ns","nesw","ew","nwse"],ta=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=ea.indexOf(e);if(n>=0){var r=Math.round(t/(Math.PI/4));e=ea[(n+r)%ea.length]}return e}(o,t.angle)),o?"".concat(o,"-resize"):""};function na(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ra(e,t)}(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 ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aa=function(){function e(t,n){L(this,e),this.elementId=t.id,sr.mapElementToScene(this.elementId,n),e.normalizePoints(t),this.selectedPointsIndices=null,this.lastUncommittedPoint=null,this.isDragging=!1,this.pointerOffset={x:0,y:0},this.startBindingElement="keep",this.endBindingElement="keep",this.pointerDownState={prevSelectedPointsIndices:null,lastClickedPoint:-1}}return R(e,null,[{key:"getElement",value:function(e){var t,n=null===(t=sr.getScene(e))||void 0===t?void 0:t.getNonDeletedElement(e);return n||null}},{key:"handleBoxSelection",value:function(t,n,r){var o;if(!n.editingLinearElement||"selection"!==(null===(o=n.draggingElement)||void 0===o?void 0:o.type))return!1;var i=n.editingLinearElement,a=i.selectedPointsIndices,l=i.elementId,c=e.getElement(l);if(!c)return!1;var s=h(mt(n.draggingElement),4),u=s[0],d=s[1],f=s[2],p=s[3],m=e.getPointsGlobalCoordinates(c).reduce((function(e,n,r){return(n[0]>=u&&n[0]<=f&&n[1]>=d&&n[1]<=p||t.shiftKey&&null!=a&&a.includes(r))&&e.push(r),e}),[]);r({editingLinearElement:ia(ia({},i),{},{selectedPointsIndices:m.length?m:null})})}},{key:"handlePointDragging",value:function(t,n,r,o,i){if(!t.editingLinearElement)return!1;var a=t.editingLinearElement,l=a.selectedPointsIndices,c=a.elementId,s=a.isDragging,u=e.getElement(c);if(!u)return!1;var d=u.points[a.pointerDownState.lastClickedPoint];if(l&&d){!1===s&&n({editingLinearElement:ia(ia({},a),{},{isDragging:!0})});var f=e.createPointAt(u,r-a.pointerOffset.x,o-a.pointerOffset.y,t.gridSize),p=f[0]-d[0],h=f[1]-d[1];if(e.movePoints(u,l.map((function(n){return{index:n,point:n===a.pointerDownState.lastClickedPoint?e.createPointAt(u,r-a.pointerOffset.x,o-a.pointerOffset.y,t.gridSize):[u.points[n][0]+p,u.points[n][1]+h],isDragging:n===a.pointerDownState.lastClickedPoint}}))),qe(u)){var m=[];0===l[0]&&m.push(Sn(e.getPointGlobalCoordinates(u,u.points[0])));var g=l[l.length-1];g===u.points.length-1&&m.push(Sn(e.getPointGlobalCoordinates(u,u.points[g]))),m.length&&i(u,m)}return!0}return!1}},{key:"handlePointerUp",value:function(t,n,r){var o,i=n.elementId,a=n.selectedPointsIndices,l=n.isDragging,c=n.pointerDownState,s=e.getElement(i);if(!s)return n;var u={};if(l&&a){var d,f=na(a);try{for(f.s();!(d=f.n()).done;){var p=d.value;if(0===p||p===s.points.length-1){it(s.points,r.zoom.value)&&e.movePoints(s,[{index:p,point:0===p?s.points[s.points.length-1]:s.points[0]}]);var h=sa(r)?xa(Sn(e.getPointAtIndexGlobalCoordinates(s,p)),sr.getScene(s)):null;u[0===p?"startBindingElement":"endBindingElement"]=h}}}catch(e){f.e(e)}finally{f.f()}}return ia(ia(ia({},n),u),{},{selectedPointsIndices:l||t.shiftKey?!l&&t.shiftKey&&null!==(o=c.prevSelectedPointsIndices)&&void 0!==o&&o.includes(c.lastClickedPoint)?a&&a.filter((function(e){return e!==c.lastClickedPoint})):a:null!=a&&a.includes(c.lastClickedPoint)?[c.lastClickedPoint]:a,isDragging:!1,pointerOffset:{x:0,y:0}})}},{key:"handlePointerDown",value:function(t,n,r,o,i){var a,l={didAddPoint:!1,hitElement:null};if(!n.editingLinearElement)return l;var c=n.editingLinearElement.elementId,s=e.getElement(c);if(!s)return l;if(t.altKey)return null==n.editingLinearElement.lastUncommittedPoint&&ao(s,{points:[].concat(P(s.points),[e.createPointAt(s,i.x,i.y,n.gridSize)])}),o.resumeRecording(),r({editingLinearElement:ia(ia({},n.editingLinearElement),{},{pointerDownState:{prevSelectedPointsIndices:n.editingLinearElement.selectedPointsIndices,lastClickedPoint:-1},selectedPointsIndices:[s.points.length-1],lastUncommittedPoint:null,endBindingElement:xa(i,sr.getScene(s))})}),l.didAddPoint=!0,l;var u=e.getPointIndexUnderCursor(s,n.zoom,i.x,i.y);if(u>-1)l.hitElement=s;else{var d=n.editingLinearElement,f=d.startBindingElement,p=d.endBindingElement;sa(n)&&qe(s)&&ua(s,f,p)}var m=h(mt(s),4),g=m[0],v=m[1],b=(g+m[2])/2,y=(v+m[3])/2,x=u>-1&&tt(s.x+s.points[u][0],s.y+s.points[u][1],b,y,s.angle),w=u>-1||t.shiftKey?t.shiftKey||null!==(a=n.editingLinearElement.selectedPointsIndices)&&void 0!==a&&a.includes(u)?la([].concat(P(n.editingLinearElement.selectedPointsIndices||[]),[u])):[u]:null;return r({editingLinearElement:ia(ia({},n.editingLinearElement),{},{pointerDownState:{prevSelectedPointsIndices:n.editingLinearElement.selectedPointsIndices,lastClickedPoint:u},selectedPointsIndices:w,pointerOffset:x?{x:i.x-x[0],y:i.y-x[1]}:{x:0,y:0}})}),l}},{key:"handlePointerMove",value:function(t,n,r,o,i){var a=o.elementId,l=o.lastUncommittedPoint,c=e.getElement(a);if(!c)return o;var s=c.points,u=s[s.length-1];if(!t.altKey)return u===l&&e.deletePoints(c,[s.length-1]),ia(ia({},o),{},{lastUncommittedPoint:null});var d=e.createPointAt(c,n-o.pointerOffset.x,r-o.pointerOffset.y,i);return u===l?e.movePoints(c,[{index:c.points.length-1,point:d}]):e.addPoints(c,[{point:d}]),ia(ia({},o),{},{lastUncommittedPoint:c.points[c.points.length-1]})}},{key:"getPointGlobalCoordinates",value:function(e,t){var n=h(mt(e),4),r=n[0],o=n[1],i=(r+n[2])/2,a=(o+n[3])/2,l=e.x,c=e.y,s=h(tt(l+t[0],c+t[1],i,a,e.angle),2);return[l=s[0],c=s[1]]}},{key:"getPointsGlobalCoordinates",value:function(e){var t=h(mt(e),4),n=t[0],r=t[1],o=t[2],i=t[3],a=(n+o)/2,l=(r+i)/2;return e.points.map((function(t){var n=e.x,r=e.y,o=h(tt(n+t[0],r+t[1],a,l,e.angle),2);return[n=o[0],r=o[1]]}))}},{key:"getPointAtIndexGlobalCoordinates",value:function(e,t){var n=t<0?e.points.length+t:t,r=h(mt(e),4),o=r[0],i=r[1],a=(o+r[2])/2,l=(i+r[3])/2,c=e.points[n],s=e.x,u=e.y;return tt(s+c[0],u+c[1],a,l,e.angle)}},{key:"pointFromAbsoluteCoords",value:function(e,t){var n=h(mt(e),4),r=n[0],o=n[1],i=(r+n[2])/2,a=(o+n[3])/2,l=h(tt(t[0],t[1],i,a,-e.angle),2),c=l[0],s=l[1];return[c-e.x,s-e.y]}},{key:"getPointIndexUnderCursor",value:function(e,t,n,r){for(var o=this.getPointsGlobalCoordinates(e),i=o.length;--i>-1;){var a=o[i];if(ot(n,r,a[0],a[1])*t.value<this.POINT_HANDLE_SIZE/2+1)return i}return-1}},{key:"createPointAt",value:function(e,t,n,r){var o=ut(t,n,r),i=h(mt(e),4),a=i[0],l=i[1],c=(a+i[2])/2,s=(l+i[3])/2,u=h(tt(o[0],o[1],c,s,-e.angle),2),d=u[0],f=u[1];return[d-e.x,f-e.y]}},{key:"getNormalizedPoints",value:function(e){var t=e.points,n=t[0][0],r=t[0][1];return{points:t.map((function(e,t){return[e[0]-n,e[1]-r]})),x:e.x+n,y:e.y+r}}},{key:"normalizePoints",value:function(t){ao(t,e.getNormalizedPoints(t))}},{key:"duplicateSelectedPoints",value:function(t){if(!t.editingLinearElement)return!1;var n=t.editingLinearElement,r=n.selectedPointsIndices,o=n.elementId,i=e.getElement(o);if(!i||null===r)return!1;var a=i.points,l=[],c=!1,s=-1,u=a.reduce((function(e,t,n){if(++s,e.push(t),r.includes(n)){var o=a[n+1];o||(c=!0),e.push(o?[(t[0]+o[0])/2,(t[1]+o[1])/2]:[t[0],t[1]]),l.push(s+1),++s}return e}),[]);if(ao(i,{points:u}),c){var d=i.points[i.points.length-1];e.movePoints(i,[{index:i.points.length-1,point:[d[0]+30,d[1]+30]}])}return{appState:ia(ia({},t),{},{editingLinearElement:ia(ia({},t.editingLinearElement),{},{selectedPointsIndices:l})})}}},{key:"deletePoints",value:function(t,n){var r=0,o=0;if(n.includes(0)){var i=t.points.find((function(e,t){return!n.includes(t)}));i&&(r=i[0],o=i[1])}var a=t.points.reduce((function(e,t,i){return n.includes(i)||e.push(e.length?[t[0]-r,t[1]-o]:[0,0]),e}),[]);e._updatePoints(t,a,r,o)}},{key:"addPoints",value:function(t,n){var r=[].concat(P(t.points),P(n.map((function(e){return e.point}))));e._updatePoints(t,r,0,0)}},{key:"movePoints",value:function(t,n,r){var o=t.points,i=0,a=0,l=n.find((function(e){return 0===e.index}));l&&(i=l.point[0]-o[l.index][0],a=l.point[1]-o[l.index][1]);var c=o.map((function(e,t){var r=n.find((function(e){return e.index===t}));if(r){if(l)return e;var c=r.point[0]-o[r.index][0],s=r.point[1]-o[r.index][1];return[e[0]+c,e[1]+s]}return i||a?[e[0]-i,e[1]-a]:e}));e._updatePoints(t,c,i,a,r)}},{key:"_updatePoints",value:function(e,t,n,r,o){var i=_t(e,t,e.strokeSharpness||"round"),a=_t(e,e.points,e.strokeSharpness||"round"),l=(i[0]+i[2])/2,c=(i[1]+i[3])/2,s=(a[0]+a[2])/2,u=(a[1]+a[3])/2,d=tt(n,r,s-l,u-c,e.angle);ao(e,ia(ia({},o),{},{points:t,x:e.x+d[0],y:e.y+d[1]}))}}]),e}();aa.POINT_HANDLE_SIZE=20;var la=function(e){var t=P(new Set(e.filter((function(e){return null!==e&&-1!==e}))));return t=t.sort((function(e,t){return e-t})),t.length?t:null};function ca(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 sa=function(e){return e.isBindingEnabled},ua=function(e,t,n){var r=new Set,o=new Set;da(e,t,n,"start",r,o),da(e,n,t,"end",r,o);var i=Array.from(o).filter((function(e){return!r.has(e)}));sr.getScene(e).getNonDeletedElements(i).forEach((function(t){var n;ao(t,{boundElements:null===(n=t.boundElements)||void 0===n?void 0:n.filter((function(t){return"arrow"!==t.type||t.id!==e.id}))})}))},da=function(e,t,n,r,o,i){if("keep"!==t)if(null!=t)null!=n&&("keep"===n?ga(e,t,r):"start"!==r&&n.id===t.id)||(ma(e,t,r),o.add(t.id));else{var a=ya(e,r);null!=a&&i.add(a)}},fa=function(e){e.forEach((function(e){qe(e)?ua(e,Oa(e,"start"),Oa(e,"end")):Qe(e)&&pa(e)}))},pa=function(e){Ma(e).forEach((function(t){var n=h(t,2),r=n[0],o=n[1];return ua(r,"end"===o?"keep":e,"start"===o?"keep":e)}))},ha=function(e,t,n,r){null!=t.startBoundElement&&ma(e,t.startBoundElement,"start");var o=xa(r,n);null==o||ga(e,o,"end")||ma(e,o,"end")},ma=function(e,t,n){ao(e,A({},"start"===n?"startBinding":"endBinding",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({elementId:t.id},wa(e,t,n)))),Tn(t.boundElements||[]).has(e.id)||ao(t,{boundElements:(t.boundElements||[]).concat({id:e.id,type:"arrow"})})},ga=function(e,t,n){var r=e["start"===n?"endBinding":"startBinding"];return va(e,null==r?void 0:r.elementId,t)},va=function(e,t,n){return t===n.id&&e.points.length<3},ba=function(e){e.forEach((function(e){qe(e)&&ua(e,null,null)}))},ya=function(e,t){var n="start"===t?"startBinding":"endBinding",r=e[n];return null==r?null:(ao(e,A({},n,null)),r.elementId)},xa=function(e,t){return Oc(t.getElements(),(function(t){return Qe(t)&&ki(t,e)}))},wa=function(e,t,n){var r="start"===n?-1:1,o=-1===r?0:e.points.length-1,i=o-r,a=aa.getPointAtIndexGlobalCoordinates(e,o),l=aa.getPointAtIndexGlobalCoordinates(e,i);return{focus:Hi(t,l,a),gap:Math.max(1,Si(t,a))}},ka=function(e,t){var n,r=(null!==(n=e.boundElements)&&void 0!==n?n:[]).filter((function(e){return"arrow"===e.type}));if(0!==r.length){var o=null!=t?t:{},i=o.newSize,a=o.simultaneouslyUpdated,l=_a(a);sr.getScene(e).getNonDeletedElements(r.map((function(e){return e.id}))).forEach((function(t){if(Ye(t)){var n=e;if(Ea(t,n)){var r=ja(n,t.startBinding,i),o=ja(n,t.endBinding,i);l.has(t.id)?ao(t,{startBinding:r,endBinding:o}):(Sa(t,"start",r,e),Sa(t,"end",o,e))}}}))}},Ea=function(e,t){var n,r;return(null===(n=e.startBinding)||void 0===n?void 0:n.elementId)===t.id||(null===(r=e.endBinding)||void 0===r?void 0:r.elementId)===t.id},_a=function(e){return new Set((e||[]).map((function(e){return e.id})))},Sa=function(e,t,n,r){if(!(null==n||n.elementId!==r.id&&e.points.length>2)){var o=sr.getScene(e).getElement(n.elementId);if(null!=o){var i,a="start"===t?-1:1,l=-1===a?0:e.points.length-1,c=l-a,s=aa.getPointAtIndexGlobalCoordinates(e,c),u=function(e,t,n){if(0===t){var r=mt(e),o=Ni(r);return ci(o)}var i,a=zi(e),l=hi(a,li(n)),c=Yo(a);switch(e.type){case"rectangle":case"image":case"text":case"diamond":i=Zi(e,t,l);break;case"ellipse":i=Gi(e,t,l)}return ci(hi(c,i))}(o,n.focus,s);if(0===n.gap)i=u;else{var d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=zi(e),i=hi(o,li(t)),a=hi(o,li(n)),l=ii(i,a),c=Yo(o);return Bi(e,l,i,r).map((function(e){return ci(hi(c,e))}))}(o,s,u,n.gap);i=0===d.length?u:d[0]}aa.movePoints(e,[{index:l,point:aa.pointFromAbsoluteCoords(e,i)}],A({},"start"===t?"startBinding":"endBinding",n))}}},ja=function(e,t,n){if(null==t||null==n)return t;var r=t.gap,o=t.focus,i=t.elementId,a=n.width,l=n.height,c=e.width,s=e.height;return{elementId:i,gap:Math.max(1,Math.min(Ei(e,a,l),r*(a<l?a/c:l/s))),focus:o}},Ca=function(e){return[Oa(e,"start"),Oa(e,"end")].filter((function(e){return null!=e}))},Oa=function(e,t){return xa(Ia(e,t),sr.getScene(e))},Ia=function(e,t){var n="start"===t?0:-1;return Sn(aa.getPointAtIndexGlobalCoordinates(e,n))},Ma=function(e){return sr.getScene(e).getElements().map((function(t){if(!qe(t))return null;var n=Ta(t,"start",e),r=Ta(t,"end",e);return n||r?[t,n&&r?"both":n?"start":"end",e]:null})).filter((function(e){return null!=e}))},Ta=function(e,t,n){return null==e["start"===t?"startBinding":"endBinding"]&&!ga(e,n,t)&&ki(n,Ia(e,t))},Pa=function(e,t,n,r){var o=new Set,i=new Set,a="duplicatesServeAsOld"===r;t.forEach((function(e){var t=e.boundElements;if(null!=t&&t.length>0&&(t.forEach((function(e){a&&!n.has(e.id)&&o.add(e.id)})),i.add(n.get(e.id))),qe(e)){if(null!=e.startBinding){var r=e.startBinding.elementId;a&&!n.has(r)&&i.add(r)}if(null!=e.endBinding){var l=e.endBinding.elementId;a&&!n.has(l)&&i.add(l)}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;ao(e,{startBinding:Aa(t,n),endBinding:Aa(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&&ao(e,{boundElements:t.map((function(e){return n.has(e.id)?{id:n.get(e.id),type:e.type}:e}))})}))},Aa=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}},La=function(e,t){var n=new Set(t.map((function(e){return e.id}))),r=new Set;t.forEach((function(e){var t;Qe(e)&&(null===(t=e.boundElements)||void 0===t||t.forEach((function(e){n.has(e.id)||r.add(e.id)})))})),e.filter((function(e){var t=e.id;return r.has(t)})).forEach((function(e){var t=e.startBinding,r=e.endBinding;ao(e,{startBinding:Da(t,n),endBinding:Da(r,n)})}))},Da=function(e,t){return null==e||t.has(e.elementId)?null:e};function Ra(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Na=function(e){return e>=2*Math.PI?e-2*Math.PI:e},Ha=function(e,t,n,r){var o=h(mt(e),4),i=o[0],a=o[1],l=(i+o[2])/2,c=(a+o[3])/2,u=5*Math.PI/2+Math.atan2(n-c,t-l);r&&(u+=s.ay/2,u-=u%s.ay),u=Na(u),ao(e,{angle:u});var d=kr(e);if(d){var f=sr.getScene(e).getElement(d);ao(f,{angle:u})}},Ba=function(e,t,n,r,o){var i=h(mt(e),4),a=i[0],l=i[1],c=i[2],s=i[3],u=h(tt(r,o,(a+c)/2,(l+s)/2,-e.angle),2),d=u[0],f=u[1],p=h("end"===t?[d-e.x,f-e.y]:[e.x+e.points[1][0]-d,e.y+e.points[1][1]-f],2),m=p[0],g=p[1];if(n){var v=function(e,t,n,r){var o=uo.apply(void 0,[e].concat(P(tt(t,n,0,0,r))));return tt(o.width,o.height,0,0,-r)}(e.type,m,g,e.angle),b=h(v,2);m=b[0],g=b[1]}var y=h(rt("end"===t?{s:!0,e:!0}:{n:!0,w:!0},e.x,e.y,e.angle,0,0,(e.points[1][0]-m)/2,(e.points[1][1]-g)/2),2),x=y[0],w=y[1];ao(e,{x:x,y:w,points:[[0,0],[m,g]]})},Fa=function(e,t,n){return Ye(e)||Ge(e)?{points:ft(0,t,ft(1,n,e.points))}:{}},Ua=function(e,t,n){var r=e.fontSize*(t/e.width);if(r<1)return null;var o=pr(e.text,dn({fontSize:r,fontFamily:e.fontFamily}),e.containerId?e.width:null);return{size:r,baseline:o.baseline+(n-o.height)}},Ka=function(e,t,n,r,o){var i,a=h(mt(e),4),l=a[0],c=a[1],s=a[2],u=a[3],d=h(tt(r,o,(l+s)/2,(c+u)/2,-e.angle),2),f=d[0],p=d[1];switch(t){case"se":i=Math.max((f-l)/(s-l),(p-c)/(u-c));break;case"nw":i=Math.max((s-f)/(s-l),(u-p)/(u-c));break;case"ne":i=Math.max((f-l)/(s-l),(u-p)/(u-c));break;case"sw":i=Math.max((s-f)/(s-l),(p-c)/(u-c))}if(i>0){var m=e.width*i,g=e.height*i,v=Ua(e,m,g);if(null===v)return;var b=h(Et(e,m,g),4),y=(l-b[0])/2,x=(c-b[1])/2,w=(s-b[2])/2,k=(u-b[3])/2,E=rt(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,y,x,w,k),_=h(E,2),S=_[0],j=_[1];ao(e,{fontSize:v.size,width:m,height:g,baseline:v.baseline,x:S,y:j})}},Wa=function(e,t,n,r,o,i,a){var l=h(Et(e,e.width,e.height),4),c=[l[0],l[1]],s=[l[2],l[3]],u=function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}(c,s),d=nt([i,a],u,-e.angle),f=h(Et(n,n.width,n.height),4),p=f[0],m=f[1],g=f[2],v=f[3],b=kr(n),y=g-p,x=v-m,w=(s[0]-c[0])/y,k=(s[1]-c[1])/x;r.includes("e")&&(w=(d[0]-c[0])/y),r.includes("s")&&(k=(d[1]-c[1])/x),r.includes("w")&&(w=(s[0]-d[0])/y),r.includes("n")&&(k=(s[1]-d[1])/x);var E=e.width,_=e.height,S=n.width*w,j=n.height*k;if(o&&(S=2*S-E,j=2*j-_),t){var C=Math.abs(S)/E,O=Math.abs(j)/_;if(1===r.length&&(j*=C,S*=O),2===r.length){var I=Math.max(C,O);S=E*I*Math.sign(S),j=_*I*Math.sign(j)}}var M=h(Et(e,S,j),4),T=M[0],A=M[1],L=M[2]-T,D=M[3]-A;if(!(L<0||D<0)||!b){var R=[].concat(c);if(["n","w","nw"].includes(r)&&(R=[s[0]-Math.abs(L),s[1]-Math.abs(D)]),"ne"===r){var z=[c[0],s[1]];R=[z[0],z[1]-Math.abs(D)]}if("sw"===r){var N=[s[0],c[1]];R=[N[0]-Math.abs(L),N[1]]}t&&(["s","n"].includes(r)&&(R[0]=u[0]-L/2),["e","w"].includes(r)&&(R[1]=u[1]-D/2)),S<0&&(r.includes("e")&&(R[0]-=Math.abs(L)),r.includes("w")&&(R[0]+=Math.abs(L))),j<0&&(r.includes("s")&&(R[1]-=Math.abs(D)),r.includes("n")&&(R[1]+=Math.abs(D))),o&&(R[0]=u[0]-Math.abs(L)/2,R[1]=u[1]-Math.abs(D)/2);var H=e.angle,B=nt(R,u,H),F=[R[0]+Math.abs(L)/2,R[1]+Math.abs(D)/2],U=nt(F,u,H);R=nt(B,U,-H);var K=Fa(e,S,j),W=P(R);W[0]+=e.x-T,W[1]+=e.y-A;var V=za({width:Math.abs(S),height:Math.abs(j),x:W[0],y:W[1]},K);"scale"in n&&"scale"in e&&ao(n,{scale:[(Math.sign(w)||e.scale[0])*e.scale[0],(Math.sign(k)||e.scale[1])*e.scale[1]]});var G=0,Z=Er(n);Z&&(G=xr(dn(Z))),V.width>=G&&0!==V.height&&Number.isFinite(V.x)&&Number.isFinite(V.y)&&(ka(n,{newSize:{width:V.width,height:V.height}}),ao(n,V),fr([n],r))}},Va=function(e,t,n,r){var o,i,a=h(kt(e),4),l=a[0],c=a[1],s=a[2],u=a[3];switch(t){case"se":o=Math.max((n-l)/(s-l),(r-c)/(u-c)),i=function(e,t,n){var r=h(t,2),i=r[0],a=r[1],s=h(n,2),u=s[0],d=s[1];return{x:e.x+(i-l)*(o-1)+i-u,y:e.y+(a-c)*(o-1)+a-d}};break;case"nw":o=Math.max((s-n)/(s-l),(u-r)/(u-c)),i=function(e,t,n){var r=h(t,4),i=r[2],a=r[3],l=h(n,4),c=l[2],d=l[3];return{x:e.x-(s-i)*(o-1)+i-c,y:e.y-(u-a)*(o-1)+a-d}};break;case"ne":o=Math.max((n-l)/(s-l),(u-r)/(u-c)),i=function(e,t,n){var r=h(t,4),i=r[0],a=r[3],c=h(n,4),s=c[0],d=c[3];return{x:e.x+(i-l)*(o-1)+i-s,y:e.y-(u-a)*(o-1)+a-d}};break;case"sw":o=Math.max((s-n)/(s-l),(r-c)/(u-c)),i=function(e,t,n){var r=h(t,3),i=r[1],a=r[2],l=h(n,3),u=l[1],d=l[2];return{x:e.x-(s-a)*(o-1)+a-d,y:e.y+(i-c)*(o-1)+i-u}}}if(o>0){var d=e.reduce((function(t,n){if(!t)return t;var r=n.width*o,a=n.height*o,l={};if(Ve(n)){var c=Ua(n,r,a);if(null===c)return null;l={fontSize:c.size,baseline:c.baseline}}var s=mt(n),u=Fa(n,r,a);ka(n,{newSize:{width:r,height:a},simultaneouslyUpdated:e});var d=Et(za(za({},n),u),r,a),f=i(n,s,d),p=f.x,h=f.y;return[].concat(P(t),[za(za({width:r,height:a,x:p,y:h},u),l)])}),[]);d&&e.forEach((function(e,t){ao(e,d[t])}))}},Ga=function(e,t,n,r,o,i,a){var l=5*Math.PI/2+Math.atan2(r-a,n-i);o&&(l+=s.ay/2,l-=l%s.ay),t.forEach((function(t,n){var r,o,c=h(mt(t),4),s=c[0],u=c[1],d=(s+c[2])/2,f=(u+c[3])/2,p=null!==(r=null===(o=e.originalElements.get(t.id))||void 0===o?void 0:o.angle)&&void 0!==r?r:t.angle,m=h(tt(d,f,i,a,l+p-t.angle),2),g=m[0],v=m[1];ao(t,{x:t.x+(g-d),y:t.y+(v-f),angle:Na(l+p)});var b=kr(t);if(b){var y=sr.getScene(t).getElement(b);ao(y,{x:y.x+(g-d),y:y.y+(v-f),angle:Na(l+p)})}}))},Za=function(e,t,n,r,o,i){var a,l;if(e){var c=e&&t<n,s=e&&t>n,u=r.originalElements.get(o.id);a=c&&u?u.x:o.x+i.x,l=s&&u?u.y:o.y+i.y}else a=o.x+i.x,l=o.y+i.y;ao(o,{x:a,y:l})},Ya=function(e,t,n,r,o,i,a,l,c,s,u){if(c)if(u)l=a/u;else{var d=uo(t,a,i<r?-l:l);a=d.width,(l=d.height)<0&&(l=-l)}var f=o<n?n-a:n,p=i<r?r-l:r;s&&(f=n-(a+=a)/2,p=r-(l+=l)/2),0!==a&&0!==l&&ao(e,{x:f,y:p,width:a,height:l})},Xa=function(e){var t=e.options,n=e.value,r=e.onChange,o=e.group;return(0,O.jsx)("div",{className:"buttonList buttonListIcon",children:t.map((function(e){return(0,O.jsxs)("label",{className:Fe({active:n===e.value}),title:e.text,children:[(0,O.jsx)("input",{type:"radio",name:o,onChange:function(){return r(e.value)},checked:n===e.value,"data-testid":e.testId}),e.icon]},e.text)}))})},qa=(n(4301),function(e){var t=e.children,n=e.left,r=e.top,o=e.onCloseRequest,i=e.fitInViewport,a=void 0!==i&&i,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,m=void 0===h?window.innerHeight:h,g=(0,l.useRef)(null);return(0,l.useLayoutEffect)((function(){if(a&&g.current){var e=g.current,t=e.getBoundingClientRect(),n=t.x,r=t.y,o=t.width,i=t.height;n+o-s>p&&(e.style.left="".concat(p-o,"px")),r+i-d>m&&(e.style.top="".concat(m-i,"px"))}}),[a,p,m,s,d]),(0,l.useEffect)((function(){if(o){var e=function(e){var t;null!==(t=g.current)&&void 0!==t&&t.contains(e.target)||(0,It.unstable_batchedUpdates)((function(){return o(e)}))};return document.addEventListener("pointerdown",e,!1),function(){return document.removeEventListener("pointerdown",e,!1)}}}),[o]),(0,O.jsx)("div",{className:"popover",style:{top:r,left:n},ref:g,children:t})}),$a=(n(4220),function(e){var t=(new Option).style;return t.color=e,!!t.color}),Qa=[["1","2","3","4","5"],["q","w","e","r","t"],["a","s","d","f","g"]].flat(),Ja=function(e){var t=e.colors,n=e.color,r=e.onChange,o=e.onClose,i=e.label,a=e.showInput,l=void 0===a||a,s=e.type,u=c().useRef(),d=c().useRef(),f=c().useRef(),p=c().useRef();c().useEffect((function(){d.current?d.current.focus():p.current?p.current.focus():f.current&&f.current.focus()}),[]);return(0,O.jsxs)("div",{className:"color-picker color-picker-type-".concat(s),role:"dialog","aria-modal":"true","aria-label":C("labels.colorPicker"),onKeyDown:function(e){if(e.key===en.TAB){var t,n=document.activeElement;if(e.shiftKey){if(n===u.current)null===(t=p.current)||void 0===t||t.focus(),e.preventDefault()}else if(n===p.current){var r;null===(r=u.current)||void 0===r||r.focus(),e.preventDefault()}}else if(tn(e.key)){var i=document.activeElement,a=S().rtl,c=Array.prototype.indexOf.call(f.current.children,i);if(-1!==c){var s=f.current.children.length-(l?1:0),d=e.key===(a?en.ARROW_LEFT:en.ARROW_RIGHT)?(c+1)%s:e.key===(a?en.ARROW_RIGHT:en.ARROW_LEFT)?(s+c-1)%s:e.key===en.ARROW_DOWN?(c+5)%s:e.key===en.ARROW_UP?(s+c-5)%s:c;f.current.children[d].focus()}e.preventDefault()}else if(Qa.includes(e.key.toLowerCase())&&!sn(e.target)){var h=Qa.indexOf(e.key.toLowerCase());f.current.children[h].focus(),e.preventDefault()}else e.key!==en.ESCAPE&&e.key!==en.ENTER||(e.preventDefault(),o());e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},children:[(0,O.jsx)("div",{className:"color-picker-triangle color-picker-triangle-shadow"}),(0,O.jsx)("div",{className:"color-picker-triangle"}),(0,O.jsxs)("div",{className:"color-picker-content",ref:function(e){e&&(f.current=e)},tabIndex:0,children:[t.map((function(e,t){var o=e.replace("#","");return(0,O.jsxs)("button",{className:"color-picker-swatch",onClick:function(t){t.currentTarget.focus(),r(e)},title:"".concat(C("colors.".concat(o))).concat(Cn(e)?"":" (".concat(e,")")," — ").concat(Qa[t].toUpperCase()),"aria-label":C("colors.".concat(o)),"aria-keyshortcuts":Qa[t],style:{color:e},ref:function(r){r&&0===t&&(u.current=r),r&&e===n&&(d.current=r)},onFocus:function(){r(e)},children:[Cn(e)?(0,O.jsx)("div",{className:"color-picker-transparent"}):void 0,(0,O.jsx)("span",{className:"color-picker-keybinding",children:Qa[t]})]},e)})),l&&(0,O.jsx)(el,{color:n,label:i,onChange:function(e){r(e)},ref:p})]})]})},el=c().forwardRef((function(e,t){var n=e.color,r=e.onChange,o=e.label,i=h(c().useState(n),2),a=i[0],l=i[1],s=c().useRef(null);c().useEffect((function(){l(n)}),[n]),c().useImperativeHandle(t,(function(){return s.current}));var u=c().useCallback((function(e){var t=e.toLowerCase(),n=function(e){return Cn(e)||$a(e)?e:$a("#".concat(e))?"#".concat(e):null}(t);n&&r(n),l(t)}),[r]);return(0,O.jsxs)("label",{className:"color-input-container",children:[(0,O.jsx)("div",{className:"color-picker-hash",children:"#"}),(0,O.jsx)("input",{spellCheck:!1,className:"color-picker-input","aria-label":o,onChange:function(e){return u(e.target.value)},value:(a||"").replace(/^#/,""),onBlur:function(){return l(n)},ref:s})]})})),tl=function(e){var t=e.type,n=e.color,r=e.onChange,o=e.label,i=e.isActive,a=e.setActive,l=c().useRef(null);return(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"color-picker-control-container",children:[(0,O.jsx)("button",{className:"color-picker-label-swatch","aria-label":o,style:n?{"--swatch-color":n}:void 0,onClick:function(){return a(!i)},ref:l}),(0,O.jsx)(el,{color:n,label:o,onChange:function(e){r(e)}})]}),(0,O.jsx)(c().Suspense,{fallback:"",children:i?(0,O.jsx)(qa,{onCloseRequest:function(e){return e.target!==l.current&&a(!1)},children:(0,O.jsx)(Ja,{colors:Ot[t],color:n||null,onChange:function(e){r(e)},onClose:function(){var e;a(!1),null===(e=l.current)||void 0===e||e.focus()},label:o,showInput:!1,type:t})}):null})]})};n(7117);function nl(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 rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ol(e){var t=e.options,n=e.value,r=e.label,o=e.onChange,i=e.onClose,a=c().useRef(),l=c().useRef(),s=c().useRef(null);c().useEffect((function(){l.current?l.current.focus():s.current&&s.current.focus()}),[]);return(0,O.jsx)("div",{className:"picker",role:"dialog","aria-modal":"true","aria-label":r,onKeyDown:function(e){var n=t.find((function(t){return t.keyBinding===e.key.toLowerCase()}));if(e.metaKey||e.altKey||e.ctrlKey||!n)if(e.key===en.TAB)setTimeout((function(){l.current!==document.activeElement&&i()}),0);else if(tn(e.key)){var r=document.activeElement,o=S().rtl,a=Array.prototype.indexOf.call(s.current.children,r);if(-1!==a){var c=t.length,u=a;switch(e.key){case o?en.ARROW_LEFT:en.ARROW_RIGHT:case en.ARROW_DOWN:u=(a+1)%c;break;case o?en.ARROW_RIGHT:en.ARROW_LEFT:case en.ARROW_UP:u=(c+a-1)%c}s.current.children[u].focus()}e.preventDefault()}else e.key!==en.ESCAPE&&e.key!==en.ENTER||(e.preventDefault(),i());else{var d=t.indexOf(n);s.current.children[d].focus(),e.preventDefault()}e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},children:(0,O.jsx)("div",{className:"picker-content",ref:s,children:t.map((function(e,t){return(0,O.jsxs)("button",{className:"picker-option",onClick:function(t){t.currentTarget.focus(),o(e.value)},title:"".concat(e.text," — ").concat(e.keyBinding.toUpperCase()),"aria-label":e.text||"none","aria-keyshortcuts":e.keyBinding,ref:function(r){r&&0===t&&(a.current=r),r&&e.value===n&&(l.current=r)},onFocus:function(){o(e.value)},children:[e.icon,(0,O.jsx)("span",{className:"picker-keybinding",children:e.keyBinding})]},e.text)}))})})}function il(e){var t,n=e.value,r=e.label,o=e.options,i=e.onChange,a=e.group,l=void 0===a?"":a,s=h(c().useState(!1),2),u=s[0],d=s[1],f=c().useRef(null),p=S().rtl;return(0,O.jsxs)("label",{className:"picker-container",children:[(0,O.jsx)("button",{name:l,className:u?"active":"","aria-label":r,onClick:function(){return d(!u)},ref:f,children:null===(t=o.find((function(e){return e.value===n})))||void 0===t?void 0:t.icon}),(0,O.jsx)(c().Suspense,{fallback:"",children:u?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(qa,rl(rl({onCloseRequest:function(e){return e.target!==f.current&&d(!1)}},p?{right:5.5}:{left:-5.5}),{},{children:(0,O.jsx)(ol,{options:o,value:n,label:r,onChange:i,onClose:function(){var e;d(!1),null===(e=f.current)||void 0===e||e.focus()}})})),(0,O.jsx)("div",{className:"picker-triangle"})]}):null})]})}var al=function(e){return e===s.C6.LIGHT?jt.orange[4]:jt.orange[9]},ll=function(e){return e===s.C6.LIGHT?jt.white:"#1e1e1e"},cl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512,n="number"==typeof t?{width:t}:t,r=n.width,o=void 0===r?512:r,i=n.height,a=void 0===i?o:i,l=n.mirror,c=n.style;return(0,O.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(o," ").concat(a),className:Fe({"rtl-mirror":l}),style:c,children:"string"==typeof e?(0,O.jsx)("path",{fill:"currentColor",d:e}):e})},sl=cl((0,O.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),ul=cl("M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z",{mirror:!0}),dl=cl("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}),fl=cl("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}),pl=cl("M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z",{width:576,height:512,mirror:!0}),hl=cl("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}),ml=cl("M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",{width:448,height:512}),gl=cl("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"),vl=cl("M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z",{width:576,height:512,mirror:!0}),bl=cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-187 44v-64 64z"}),(0,O.jsx)("path",{d:"M384 121.941V128H256V0h6.059c6.362 0 12.471 2.53 16.97 7.029l97.941 97.941a24.01 24.01 0 017.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"})]}),{width:576,height:512,mirror:!0}),yl=cl("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}),xl=cl("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}),wl=cl("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}),kl=cl("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"),El=cl("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"),_l=cl("M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z",{mirror:!0}),Sl=cl("M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z",{mirror:!0}),jl=cl("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}),Cl=(cl("M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",{width:24,height:24}),cl("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}),cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{stroke:"currentColor",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,O.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}),cl((0,O.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}),c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H16v8H8v4.444C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,O.jsx)("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24,mirror:!0})}))),Ol=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:al(t),stroke:al(t),strokeWidth:"2"}),(0,O.jsx)("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H9.556C8.696 8 8 8.697 8 9.556v10.888C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"})]}),{width:24,mirror:!0})})),Il=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M13 21a1 1 0 001 1h7a1 1 0 001-1v-7a1 1 0 00-1-1h-3v5h-5v3zM11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h3V6h5V3z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,O.jsx)("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),Ml=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:al(t),stroke:al(t),strokeWidth:"2"}),(0,O.jsx)("path",{d:"M11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h8V3zM22 14a1 1 0 00-1-1h-7a1 1 0 00-1 1v7a1 1 0 001 1h8v-8z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"})]}),{width:24,mirror:!0})})),Tl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M 2,5 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"M 6,7 C 5.446,7 5,7.446 5,8 v 9.999992 c 0,0.554 0.446,1 1,1 h 3.0000001 c 0.554,0 0.9999999,-0.446 0.9999999,-1 V 8 C 10,7.446 9.5540001,7 9.0000001,7 Z m 9,0 c -0.554,0 -1,0.446 -1,1 v 5.999992 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 V 8 C 19,7.446 18.554,7 18,7 Z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),Pl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M 2,19 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"m 6,16.999992 c -0.554,0 -1,-0.446 -1,-1 V 6 C 5,5.446 5.446,5 6,5 H 9.0000001 C 9.5540001,5 10,5.446 10,6 v 9.999992 c 0,0.554 -0.4459999,1 -0.9999999,1 z m 9,0 c -0.554,0 -1,-0.446 -1,-1 V 10 c 0,-0.554 0.446,-1 1,-1 h 3 c 0.554,0 1,0.446 1,1 v 5.999992 c 0,0.554 -0.446,1 -1,1 z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),Al=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M 5,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"m 7.000004,5.999996 c 0,-0.554 0.446,-1 1,-1 h 9.999992 c 0.554,0 1,0.446 1,1 v 3.0000001 c 0,0.554 -0.446,0.9999999 -1,0.9999999 H 8.000004 c -0.554,0 -1,-0.4459999 -1,-0.9999999 z m 0,9 c 0,-0.554 0.446,-1 1,-1 h 5.999992 c 0.554,0 1,0.446 1,1 v 3 c 0,0.554 -0.446,1 -1,1 H 8.000004 c -0.554,0 -1,-0.446 -1,-1 z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24})})),Ll=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M 19,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"m 16.999996,5.999996 c 0,-0.554 -0.446,-1 -1,-1 H 6.000004 c -0.554,0 -1,0.446 -1,1 v 3.0000001 c 0,0.554 0.446,0.9999999 1,0.9999999 h 9.999992 c 0.554,0 1,-0.4459999 1,-0.9999999 z m 0,9 c 0,-0.554 -0.446,-1 -1,-1 h -5.999992 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 5.999992 c 0.554,0 1,-0.446 1,-1 z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24})})),Dl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M19 5V19M5 5V19",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"M15 9C15.554 9 16 9.446 16 10V14C16 14.554 15.554 15 15 15H9C8.446 15 8 14.554 8 14V10C8 9.446 8.446 9 9 9H15Z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24})})),Rl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M5 5L19 5M5 19H19",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,O.jsx)("path",{d:"M15 9C15.554 9 16 9.446 16 10V14C16 14.554 15.554 15 15 15H9C8.446 15 8 14.554 8 14V10C8 9.446 8.446 9 9 9H15Z",fill:al(t),stroke:al(t),strokeWidth:"2"})]}),{width:24})})),zl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"m 5.000004,16.999996 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 v -10 c 0,-0.554 -0.446,-1 -1,-1 h -3 c -0.554,0 -1,0.446 -1,1 z m 9,-2 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 v -6 c 0,-0.554 -0.446,-1 -1,-1 h -3 c -0.554,0 -1,0.446 -1,1 z",fill:al(t),stroke:al(t),strokeWidth:"2"}),(0,O.jsx)("path",{d:"M 2,12 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeDasharray:"1, 2.8",strokeLinecap:"round"})]}),{width:24,mirror:!0})})),Nl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M 7 5 C 6.446 5 6 5.446 6 6 L 6 9 C 6 9.554 6.446 10 7 10 L 17 10 C 17.554 10 18 9.554 18 9 L 18 6 C 18 5.446 17.554 5 17 5 L 7 5 z M 9 14 C 8.446 14 8 14.446 8 15 L 8 18 C 8 18.554 8.446 19 9 19 L 15 19 C 15.554 19 16 18.554 16 18 L 16 15 C 16 14.446 15.554 14 15 14 L 9 14 z ",fill:al(t),stroke:al(t),strokeWidth:"2"}),(0,O.jsx)("path",{d:"M 12,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeDasharray:"1, 2.8",strokeLinecap:"round"})]}),{width:24})})),Hl=cl("M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z",{width:640,height:512,mirror:!0}),Bl=(cl("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"),cl("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"),cl("M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",{width:352,height:512})),Fl=cl("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}),Ul=cl("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}),Kl=(cl("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}),cl("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})),Wl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,O.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,O.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,O.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,O.jsxs)("g",{fill:ll(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,O.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Vl=c().memo((function(e){var t=e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,O.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,O.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,O.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,O.jsxs)("g",{fill:ll(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,O.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,O.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Gl=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.101 16H28.0934L36 8.95989V4H33.5779L20.101 16ZM30.5704 4L17.0935 16H9.10101L22.5779 4H30.5704ZM19.5704 4L6.09349 16H4V10.7475L11.5779 4H19.5704ZM8.57036 4H4V8.06952L8.57036 4ZM36 11.6378L31.101 16H36V11.6378ZM2 2V18H38V2H2Z",fill:"var(--icon-fill-color)"}),{width:40,height:20})})),Zl=c().memo((function(e){e.theme;return cl((0,O.jsxs)("g",{fill:"var(--icon-fill-color)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,O.jsx)("path",{d:"M20.101 16H28.0934L36 8.95989V4H33.5779L20.101 16ZM30.5704 4L17.0935 16H9.10101L22.5779 4H30.5704ZM19.5704 4L6.09349 16H4V10.7475L11.5779 4H19.5704ZM8.57036 4H4V8.06952L8.57036 4ZM36 11.6378L31.101 16H36V11.6378ZM2 2V18H38V2H2Z"}),(0,O.jsx)("path",{d:"M14.0001 18L3.00006 4.00002L4.5727 2.76438L15.5727 16.7644L14.0001 18ZM25.0001 18L14.0001 4.00002L15.5727 2.76438L26.5727 16.7644L25.0001 18ZM36.0001 18L25.0001 4.00002L26.5727 2.76438L37.5727 16.7644L36.0001 18Z"})]}),{width:40,height:20})})),Yl=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M2 2H38V18H2V2Z",fill:"var(--icon-fill-color)"}),{width:40,height:20})})),Xl=c().memo((function(e){e.theme;var t=e.strokeWidth;return cl((0,O.jsx)("path",{d:"M6 10H32",stroke:"var(--icon-fill-color)",strokeWidth:t,strokeLinecap:"round",fill:"none"}),{width:40,height:20})})),ql=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),$l=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2.5,strokeDasharray:"10, 8",fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),Ql=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M6 10H36",stroke:"var(--icon-fill-color)",strokeWidth:2.5,strokeDasharray:"2, 4.5",fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),Jl=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M3.00098 16.1691C6.28774 13.9744 19.6399 2.8905 22.7215 3.00082C25.8041 3.11113 19.1158 15.5488 21.4962 16.8309C23.8757 18.1131 34.4155 11.7148 37.0001 10.6919",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),ec=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M3 17C6.68158 14.8752 16.1296 9.09849 22.0648 6.54922C28 3.99995 22.2896 13.3209 25 14C27.7104 14.6791 36.3757 9.6471 36.3757 9.6471M6.40706 15C13 11.1918 20.0468 1.51045 23.0234 3.0052C26 4.49995 20.457 12.8659 22.7285 16.4329C25 20 36.3757 13 36.3757 13",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),tc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M3 15.6468C6.93692 13.5378 22.5544 2.81528 26.6206 3.00242C30.6877 3.18956 25.6708 15.3346 27.4009 16.7705C29.1309 18.2055 35.4001 12.4762 37 11.6177M3.97143 10.4917C6.61158 9.24563 16.3706 2.61886 19.8104 3.01724C23.2522 3.41472 22.0773 12.2013 24.6181 12.8783C27.1598 13.5536 33.3179 8.04068 35.0571 7.07244",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),nc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M10 17L10 5L35 5",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),rc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M10 17V15C10 8 13 5 21 5L33.5 5",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),oc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none"}),{width:40,height:20})})),ic=c().memo((function(e){e.theme;var t=e.flip,n=void 0!==t&&t;return cl((0,O.jsxs)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none",children:[(0,O.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,O.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})})),ac=c().memo((function(e){e.theme;var t=e.flip,n=void 0!==t&&t;return cl((0,O.jsxs)("g",{stroke:"var(--icon-fill-color)",fill:"var(--icon-fill-color)",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,O.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,O.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})})),lc=c().memo((function(e){e.theme;var t=e.flip,n=void 0!==t&&t;return cl((0,O.jsx)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",children:(0,O.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none"})}),{width:40,height:20})})),cc=c().memo((function(e){e.theme;var t=e.flip,n=void 0!==t&&t;return cl((0,O.jsxs)("g",{stroke:"var(--icon-fill-color)",fill:"var(--icon-fill-color)",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,O.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,O.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})})),sc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 0 69.092 L 0 55.03 A 124.24 124.24 0 0 0 4.706 57.02 Q 6.826 57.863 8.708 58.5 A 53.466 53.466 0 0 0 12.231 59.571 Q 17.236 60.889 21.387 60.889 A 20.909 20.909 0 0 0 24.265 60.704 Q 25.719 60.502 26.903 60.077 A 8.649 8.649 0 0 0 29.028 58.985 Q 31.689 57.08 31.689 53.321 Q 31.689 51.221 30.518 49.585 A 10.126 10.126 0 0 0 29.282 48.177 Q 28.352 47.287 27.075 46.436 A 23.719 23.719 0 0 0 25.752 45.627 Q 23.774 44.492 20.176 42.735 A 254.44 254.44 0 0 0 17.822 41.602 Q 11.503 38.631 8.236 35.888 A 19.742 19.742 0 0 1 8.008 35.694 A 22.18 22.18 0 0 1 2.783 29.102 Q 0.83 25.342 0.83 20.313 A 22.471 22.471 0 0 1 1.733 13.778 A 17.283 17.283 0 0 1 7.251 5.42 A 21.486 21.486 0 0 1 15.177 1.272 Q 18.361 0.338 22.166 0.09 A 43.573 43.573 0 0 1 25 0 A 42.399 42.399 0 0 1 34.349 1.01 A 39.075 39.075 0 0 1 35.62 1.319 A 67.407 67.407 0 0 1 42.108 3.382 A 83.357 83.357 0 0 1 46.191 5.03 L 41.309 16.797 Q 35.596 14.453 31.86 13.526 A 30.762 30.762 0 0 0 25.417 12.612 A 28.337 28.337 0 0 0 24.512 12.598 A 14.846 14.846 0 0 0 22.022 12.793 Q 19.498 13.224 17.92 14.6 Q 15.625 16.602 15.625 19.824 Q 15.625 21.826 16.553 23.316 Q 17.48 24.805 19.507 26.197 A 18.343 18.343 0 0 0 20.659 26.912 Q 22.596 28.035 26.516 29.953 A 299.99 299.99 0 0 0 29.102 31.201 Q 37.91 35.412 41.841 39.642 A 16.553 16.553 0 0 1 42.822 40.796 A 17.675 17.675 0 0 1 46.301 49.233 A 23.517 23.517 0 0 1 46.533 52.588 A 21.581 21.581 0 0 1 45.471 59.515 A 17.733 17.733 0 0 1 39.575 67.823 Q 33.745 72.486 24.094 73.243 A 49.683 49.683 0 0 1 20.215 73.389 A 51.712 51.712 0 0 1 9.448 72.315 A 40.672 40.672 0 0 1 0 69.092 Z"}),{width:47,height:77})})),uc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 44.092 71.387 L 30.225 71.387 L 13.037 15.381 L 12.598 15.381 A 1505.093 1505.093 0 0 1 12.959 22.313 Q 13.426 31.715 13.508 36.4 A 102.991 102.991 0 0 1 13.525 38.184 L 13.525 71.387 L 0 71.387 L 0 0 L 20.605 0 L 37.5 54.59 L 37.793 54.59 L 55.713 0 L 76.318 0 L 76.318 71.387 L 62.207 71.387 L 62.207 37.598 Q 62.207 35.205 62.28 32.08 A 160.703 160.703 0 0 1 62.326 30.544 Q 62.452 26.754 62.866 17.168 A 5390.536 5390.536 0 0 1 62.939 15.479 L 62.5 15.479 L 44.092 71.387 Z"}),{width:77,height:75})})),dc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 44.092 71.387 L 0 71.387 L 0 0 L 15.137 0 L 15.137 58.887 L 44.092 58.887 L 44.092 71.387 Z"}),{width:45,height:75})})),fc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 42.578 35.4 L 66.699 71.387 L 49.414 71.387 L 32.813 44.385 L 16.211 71.387 L 0 71.387 L 23.682 34.57 L 1.514 0 L 18.213 0 L 33.594 25.684 L 48.682 0 L 64.99 0 L 42.578 35.4 Z M 119.775 71.387 L 75.684 71.387 L 75.684 0 L 90.82 0 L 90.82 58.887 L 119.775 58.887 L 119.775 71.387 Z"}),{width:120,height:75})})),pc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"}),{width:448,height:512})})),hc=c().memo((function(e){e.theme;return cl((0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 63.818 71.68 L 54.492 71.68 L 45.898 49.561 L 17.578 49.561 L 9.082 71.68 L 0 71.68 L 27.881 0 L 35.986 0 L 63.818 71.68 Z M 20.605 41.602 L 43.213 41.602 L 35.205 19.971 L 31.787 9.277 Q 30.322 15.137 28.711 19.971 L 20.605 41.602 Z"}),(0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 68.994 71.68 L 52.686 71.68 L 47.51 54.688 L 21.484 54.688 L 16.309 71.68 L 0 71.68 L 25.195 0 L 43.701 0 L 68.994 71.68 Z M 25.293 41.992 L 43.896 41.992 A 27590.463 27590.463 0 0 1 42.2 36.532 Q 36.965 19.676 35.937 16.273 A 120.932 120.932 0 0 1 35.815 15.869 A 131.65 131.65 0 0 1 35.396 14.435 Q 34.951 12.879 34.675 11.741 A 34.866 34.866 0 0 1 34.521 11.084 A 141.762 141.762 0 0 1 33.706 14.075 Q 31.482 21.957 25.293 41.992 Z"})]}),{width:70,height:78})})),mc=c().memo((function(e){e.theme;return cl((0,O.jsx)(O.Fragment,{children:(0,O.jsx)("path",{fill:"var(--icon-fill-color)",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),{width:640,height:512})})),gc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M12.83 352h262.34A12.82 12.82 0 00288 339.17v-38.34A12.82 12.82 0 00275.17 288H12.83A12.82 12.82 0 000 300.83v38.34A12.82 12.82 0 0012.83 352zm0-256h262.34A12.82 12.82 0 00288 83.17V44.83A12.82 12.82 0 00275.17 32H12.83A12.82 12.82 0 000 44.83v38.34A12.82 12.82 0 0012.83 96zM432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),vc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zM108.1 96h231.81A12.09 12.09 0 00352 83.9V44.09A12.09 12.09 0 00339.91 32H108.1A12.09 12.09 0 0096 44.09V83.9A12.1 12.1 0 00108.1 96zm231.81 256A12.09 12.09 0 00352 339.9v-39.81A12.09 12.09 0 00339.91 288H108.1A12.09 12.09 0 0096 300.09v39.81a12.1 12.1 0 0012.1 12.1z",fill:"var(--icon-fill-color)"}),{width:448,height:512})})),bc=c().memo((function(e){e.theme;return cl((0,O.jsx)("path",{d:"M16 224h416a16 16 0 0016-16v-32a16 16 0 00-16-16H16a16 16 0 00-16 16v32a16 16 0 0016 16zm416 192H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm3.17-384H172.83A12.82 12.82 0 00160 44.83v38.34A12.82 12.82 0 00172.83 96h262.34A12.82 12.82 0 00448 83.17V44.83A12.82 12.82 0 00435.17 32zm0 256H172.83A12.82 12.82 0 00160 300.83v38.34A12.82 12.82 0 00172.83 352h262.34A12.82 12.82 0 00448 339.17v-38.34A12.82 12.82 0 00435.17 288z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),yc=cl((0,O.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}),xc=cl((0,O.jsx)("path",{fill:"currentColor",d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}),{width:640,height:512}),wc=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"line"===e||"freedraw"===e},kc=function(e){return"image"!==e},Ec=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"freedraw"===e||"arrow"===e||"line"===e},_c=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"arrow"===e||"line"===e},Sc=function(e){return"rectangle"===e||"arrow"===e||"line"===e||"diamond"===e},jc=function(e){return"text"===e},Cc=function(e){return"arrow"===e},Oc=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},Ic=function(e,t){return e.filter((function(e){return!e.isDeleted&&t(e)}))},Mc=function(e,t,n){for(var r=null,o=e.length-1;o>=0;--o)if(!e[o].isDeleted){var i=h(mt(e[o]),4),a=i[0],l=i[1],c=i[2],s=i[3];if(a<t&&t<c&&l<n&&n<s){r=e[o];break}}return r},Tc=[],Pc=function(e){return Tc=Tc.concat(e),e};function Ac(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 Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dc=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Tn(Ds(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}))},Rc=function(e,t,n,r){var o,i,a=t.editingElement,l=Cs(e);return null!==(o=null!==(i=a&&n(a))&&void 0!==i?i:As(l,t)?Ls(l,t,n):r)&&void 0!==o?o:null},zc=function(e,t,n,r){var o=new Set;return{elements:Dc(e,t,(function(e){if(Ve(e)){var t=n(e);o.add(t);var r=lo(e,{fontSize:t});return ur(r,_r(e)),i=e,r=et(a=r)?a:ao(a,{x:"left"===i.textAlign?i.x:i.x+(i.width-a.width)/("center"===i.textAlign?2:1),y:i.y+(i.height-a.height)/2},!1)}var i,a;return e}),!0),appState:Lc(Lc({},t),{},{currentItemFontSize:1===o.size?P(o)[0]:null!=r?r:t.currentItemFontSize}),commitToHistory:!0}},Nc=(Pc({name:"changeStrokeColor",perform:function(e,t,n){return Lc(Lc({},n.currentItemStrokeColor&&{elements:Dc(e,t,(function(e){return kc(e.type)?lo(e,{strokeColor:n.currentItemStrokeColor}):e}),!0)}),{},{appState:Lc(Lc({},t),n),commitToHistory:!!n.currentItemStrokeColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("h3",{"aria-hidden":"true",children:C("labels.stroke")}),(0,O.jsx)(tl,{type:"elementStroke",label:C("labels.stroke"),color:Rc(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})}})]})}}),Pc({name:"changeBackgroundColor",perform:function(e,t,n){return Lc(Lc({},n.currentItemBackgroundColor&&{elements:Dc(e,t,(function(e){return lo(e,{backgroundColor:n.currentItemBackgroundColor})}))}),{},{appState:Lc(Lc({},t),n),commitToHistory:!!n.currentItemBackgroundColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("h3",{"aria-hidden":"true",children:C("labels.background")}),(0,O.jsx)(tl,{type:"elementBackground",label:C("labels.background"),color:Rc(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})}})]})}}),Pc({name:"changeFillStyle",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){return lo(e,{fillStyle:n})})),appState:Lc(Lc({},t),{},{currentItemFillStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.fill")}),(0,O.jsx)(Xa,{options:[{value:"hachure",text:C("labels.hachure"),icon:(0,O.jsx)(Gl,{theme:n.theme})},{value:"cross-hatch",text:C("labels.crossHatch"),icon:(0,O.jsx)(Zl,{theme:n.theme})},{value:"solid",text:C("labels.solid"),icon:(0,O.jsx)(Yl,{theme:n.theme})}],group:"fill",value:Rc(t,n,(function(e){return e.fillStyle}),n.currentItemFillStyle),onChange:function(e){r(e)}})]})}}),Pc({name:"changeStrokeWidth",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){return lo(e,{strokeWidth:n})})),appState:Lc(Lc({},t),{},{currentItemStrokeWidth:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.strokeWidth")}),(0,O.jsx)(Xa,{group:"stroke-width",options:[{value:1,text:C("labels.thin"),icon:(0,O.jsx)(Xl,{theme:n.theme,strokeWidth:2})},{value:2,text:C("labels.bold"),icon:(0,O.jsx)(Xl,{theme:n.theme,strokeWidth:6})},{value:4,text:C("labels.extraBold"),icon:(0,O.jsx)(Xl,{theme:n.theme,strokeWidth:10})}],value:Rc(t,n,(function(e){return e.strokeWidth}),n.currentItemStrokeWidth),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeSloppiness",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){return lo(e,{seed:no(),roughness:n})})),appState:Lc(Lc({},t),{},{currentItemRoughness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.sloppiness")}),(0,O.jsx)(Xa,{group:"sloppiness",options:[{value:0,text:C("labels.architect"),icon:(0,O.jsx)(Jl,{theme:n.theme})},{value:1,text:C("labels.artist"),icon:(0,O.jsx)(ec,{theme:n.theme})},{value:2,text:C("labels.cartoonist"),icon:(0,O.jsx)(tc,{theme:n.theme})}],value:Rc(t,n,(function(e){return e.roughness}),n.currentItemRoughness),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeStrokeStyle",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){return lo(e,{strokeStyle:n})})),appState:Lc(Lc({},t),{},{currentItemStrokeStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.strokeStyle")}),(0,O.jsx)(Xa,{group:"strokeStyle",options:[{value:"solid",text:C("labels.strokeStyle_solid"),icon:(0,O.jsx)(ql,{theme:n.theme})},{value:"dashed",text:C("labels.strokeStyle_dashed"),icon:(0,O.jsx)($l,{theme:n.theme})},{value:"dotted",text:C("labels.strokeStyle_dotted"),icon:(0,O.jsx)(Ql,{theme:n.theme})}],value:Rc(t,n,(function(e){return e.strokeStyle}),n.currentItemStrokeStyle),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeOpacity",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){return lo(e,{opacity:n})})),appState:Lc(Lc({},t),{},{currentItemOpacity:n}),commitToHistory:!0}},PanelComponent:function(e){var t,n=e.elements,r=e.appState,o=e.updateData;return(0,O.jsxs)("label",{className:"control-label",children:[C("labels.opacity"),(0,O.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(e){return o(+e.target.value)},onWheel:function(e){e.stopPropagation();var t=+e.target.value;e.deltaY<0&&t<100?o(t+10):e.deltaY>0&&t>0&&o(t-10)},value:null!==(t=Rc(n,r,(function(e){return e.opacity}),r.currentItemOpacity))&&void 0!==t?t:void 0})]})}}),Pc({name:"changeFontSize",perform:function(e,t,n){return zc(e,t,(function(){return n}),n)},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.fontSize")}),(0,O.jsx)(Xa,{group:"font-size",options:[{value:16,text:C("labels.small"),icon:(0,O.jsx)(sc,{theme:n.theme}),testId:"fontSize-small"},{value:20,text:C("labels.medium"),icon:(0,O.jsx)(uc,{theme:n.theme}),testId:"fontSize-medium"},{value:28,text:C("labels.large"),icon:(0,O.jsx)(dc,{theme:n.theme}),testId:"fontSize-large"},{value:36,text:C("labels.veryLarge"),icon:(0,O.jsx)(fc,{theme:n.theme}),testId:"fontSize-veryLarge"}],value:Rc(t,n,(function(e){if(Ve(e))return e.fontSize;var t=Er(e);return t?t.fontSize:null}),n.currentItemFontSize||s.n5),onChange:function(e){return r(e)}})]})}}),Pc({name:"decreaseFontSize",perform:function(e,t,n){return zc(e,t,(function(e){return Math.round(1/1.1*e.fontSize)}))},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&(e.key===en.CHEVRON_LEFT||e.key===en.COMMA)}})),Hc=Pc({name:"increaseFontSize",perform:function(e,t,n){return zc(e,t,(function(e){return Math.round(1.1*e.fontSize)}))},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&(e.key===en.CHEVRON_RIGHT||e.key===en.PERIOD)}});Pc({name:"changeFontFamily",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){if(Ve(e)){var t=lo(e,{fontFamily:n});return ur(t,_r(e)),t}return e}),!0),appState:Lc(Lc({},t),{},{currentItemFontFamily:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=[{value:s.ut.Virgil,text:C("labels.handDrawn"),icon:(0,O.jsx)(pc,{theme:n.theme})},{value:s.ut.Helvetica,text:C("labels.normal"),icon:(0,O.jsx)(hc,{theme:n.theme})},{value:s.ut.Cascadia,text:C("labels.code"),icon:(0,O.jsx)(mc,{theme:n.theme})}];return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.fontFamily")}),(0,O.jsx)(Xa,{group:"font-family",options:o,value:Rc(t,n,(function(e){if(Ve(e))return e.fontFamily;var t=Er(e);return t?t.fontFamily:null}),n.currentItemFontFamily||s.rk),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeTextAlign",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){if(Ve(e)){var t=lo(e,{textAlign:n});return ur(t,_r(e)),t}return e}),!0),appState:Lc(Lc({},t),{},{currentItemTextAlign:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.textAlign")}),(0,O.jsx)(Xa,{group:"text-align",options:[{value:"left",text:C("labels.left"),icon:(0,O.jsx)(gc,{theme:n.theme})},{value:"center",text:C("labels.center"),icon:(0,O.jsx)(vc,{theme:n.theme})},{value:"right",text:C("labels.right"),icon:(0,O.jsx)(bc,{theme:n.theme})}],value:Rc(t,n,(function(e){if(Ve(e))return e.textAlign;var t=Er(e);return t?t.textAlign:null}),n.currentItemTextAlign),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeSharpness",perform:function(e,t,n){var r=Rs(Cs(e),t),o=r.length?r.every((function(e){return!Ye(e)})):!Xe(t.elementType),i=r.length?r.every(Ye):Xe(t.elementType);return{elements:Dc(e,t,(function(e){return lo(e,{strokeSharpness:n})})),appState:Lc(Lc({},t),{},{currentItemStrokeSharpness:o?n:t.currentItemStrokeSharpness,currentItemLinearStrokeSharpness:i?n:t.currentItemLinearStrokeSharpness}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.edges")}),(0,O.jsx)(Xa,{group:"edges",options:[{value:"sharp",text:C("labels.sharp"),icon:(0,O.jsx)(nc,{theme:n.theme})},{value:"round",text:C("labels.round"),icon:(0,O.jsx)(rc,{theme:n.theme})}],value:Rc(t,n,(function(e){return e.strokeSharpness}),Sc(n.elementType)&&(Xe(n.elementType)?n.currentItemLinearStrokeSharpness:n.currentItemStrokeSharpness)||null),onChange:function(e){return r(e)}})]})}}),Pc({name:"changeArrowhead",perform:function(e,t,n){return{elements:Dc(e,t,(function(e){if(Ye(e)){var t=n.position,r=n.type;if("start"===t)return lo(e,{startArrowhead:r});if("end"===t)return lo(e,{endArrowhead:r})}return e})),appState:Lc(Lc({},t),{},A({},"start"===n.position?"currentItemStartArrowhead":"currentItemEndArrowhead",n.type)),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=S().rtl;return(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.arrowheads")}),(0,O.jsxs)("div",{className:"iconSelectList",children:[(0,O.jsx)(il,{label:"arrowhead_start",options:[{value:null,text:C("labels.arrowhead_none"),icon:(0,O.jsx)(oc,{theme:n.theme}),keyBinding:"q"},{value:"arrow",text:C("labels.arrowhead_arrow"),icon:(0,O.jsx)(ic,{theme:n.theme,flip:!o}),keyBinding:"w"},{value:"bar",text:C("labels.arrowhead_bar"),icon:(0,O.jsx)(lc,{theme:n.theme,flip:!o}),keyBinding:"e"},{value:"dot",text:C("labels.arrowhead_dot"),icon:(0,O.jsx)(ac,{theme:n.theme,flip:!o}),keyBinding:"r"},{value:"triangle",text:C("labels.arrowhead_triangle"),icon:(0,O.jsx)(cc,{theme:n.theme,flip:!o}),keyBinding:"t"}],value:Rc(t,n,(function(e){return Ye(e)&&Cc(e.type)?e.startArrowhead:n.currentItemStartArrowhead}),n.currentItemStartArrowhead),onChange:function(e){return r({position:"start",type:e})}}),(0,O.jsx)(il,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:C("labels.arrowhead_none"),keyBinding:"q",icon:(0,O.jsx)(oc,{theme:n.theme})},{value:"arrow",text:C("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,O.jsx)(ic,{theme:n.theme,flip:o})},{value:"bar",text:C("labels.arrowhead_bar"),keyBinding:"e",icon:(0,O.jsx)(lc,{theme:n.theme,flip:o})},{value:"dot",text:C("labels.arrowhead_dot"),keyBinding:"r",icon:(0,O.jsx)(ac,{theme:n.theme,flip:o})},{value:"triangle",text:C("labels.arrowhead_triangle"),icon:(0,O.jsx)(cc,{theme:n.theme,flip:o}),keyBinding:"t"}],value:Rc(t,n,(function(e){return Ye(e)&&Cc(e.type)?e.endArrowhead:n.currentItemEndArrowhead}),n.currentItemEndArrowhead),onChange:function(e){return r({position:"end",type:e})}})]})]})}}),n(5422);function Bc(){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 Fc(e,t,n){return Fc=Bc()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&N(o,n.prototype),o},Fc.apply(null,arguments)}function Uc(e){var t="function"==typeof Map?new Map:void 0;return Uc=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 Fc(e,arguments,F(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N(r,e)},Uc(e)}function Kc(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=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}var Wc=function(e){H(n,e);var t=Kc(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Couldn't export canvas.",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CANVAS_ERROR";return L(this,n),(e=t.call(this)).name=o,e.message=r,e}return R(n)}(Uc(Error)),Vc=function(e){H(n,e);var t=Kc(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Request Aborted";return L(this,n),t.call(this,e,"AbortError")}return R(n)}(Uc(DOMException)),Gc=(n(371),function(e){var t=e.size,n=void 0===t?"1em":t,r=e.circleWidth,o=void 0===r?8:r;return(0,O.jsx)("div",{className:"Spinner",children:(0,O.jsx)("svg",{viewBox:"0 0 100 100",style:{width:n,height:n},children:(0,O.jsx)("circle",{cx:"50",cy:"50",r:50-o/2,strokeWidth:o,fill:"none",strokeMiterlimit:"10"})})})}),Zc=c().forwardRef((function(e,t){var n=ng().id,r=c().useRef(null);c().useImperativeHandle(t,(function(){return r.current}));var o="ToolIcon_size_".concat(e.size),i=h((0,l.useState)(!1),2),a=i[0],s=i[1],u=(0,l.useRef)(!0),f=function(){var t=(0,d.Z)(g().mark((function t(n){var r,o;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o="onClick"in e&&(null===(r=e.onClick)||void 0===r?void 0:r.call(e,n)))||!("then"in o)){t.next=18;break}return t.prev=2,s(!0),t.next=6,o;case 6:t.next=15;break;case 8:if(t.prev=8,t.t0=t.catch(2),t.t0 instanceof Vc){t.next=14;break}throw t.t0;case 14:console.warn(t.t0);case 15:return t.prev=15,u.current&&s(!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,8,15,18]])})));return function(e){return t.apply(this,arguments)}}();(0,l.useEffect)((function(){return function(){u.current=!1}}),[]);var p=(0,l.useRef)(null);if("button"===e.type||"icon"===e.type||"submit"===e.type){var m="icon"===e.type?"button":e.type;return(0,O.jsxs)("button",{className:Fe("ToolIcon_type_button",o,e.className,e.visible&&!e.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide",{ToolIcon:!e.hidden,"ToolIcon--selected":e.selected,"ToolIcon--plain":"icon"===e.type}),"data-testid":e["data-testid"],hidden:e.hidden,title:e.title,"aria-label":e["aria-label"],type:m,onClick:f,ref:r,disabled:a||e.isLoading,children:[(e.icon||e.label)&&(0,O.jsxs)("div",{className:"ToolIcon__icon","aria-hidden":"true",children:[e.icon||e.label,e.keyBindingLabel&&(0,O.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel}),e.isLoading&&(0,O.jsx)(Gc,{})]}),e.showAriaLabel&&(0,O.jsxs)("div",{className:"ToolIcon__label",children:[e["aria-label"]," ",a&&(0,O.jsx)(Gc,{})]}),e.children]})}return(0,O.jsxs)("label",{className:Fe("ToolIcon",e.className),title:e.title,onPointerDown:function(e){p.current=e.pointerType||null},onPointerUp:function(){requestAnimationFrame((function(){p.current=null}))},children:[(0,O.jsx)("input",{className:"ToolIcon_type_radio ".concat(o),type:"radio",name:e.name,"aria-label":e["aria-label"],"aria-keyshortcuts":e["aria-keyshortcuts"],"data-testid":e["data-testid"],id:"".concat(n,"-").concat(e.id),onChange:function(){var t;null===(t=e.onChange)||void 0===t||t.call(e,{pointerType:p.current})},checked:e.checked,ref:r}),(0,O.jsxs)("div",{className:"ToolIcon__icon",children:[e.icon,e.keyBindingLabel&&(0,O.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel})]})]})}));Zc.defaultProps={visible:!0,className:"",size:"medium"};var Yc=function(e){var t=e.title||("dark"===e.value?C("buttons.lightMode"):C("buttons.darkMode"));return(0,O.jsx)(Zc,{type:"icon",icon:e.value===s.C6.LIGHT?Xc.MOON:Xc.SUN,title:t,"aria-label":t,onClick:function(){return e.onChange(e.value===s.C6.DARK?s.C6.LIGHT:s.C6.DARK)},"data-testid":"toggle-dark-mode"})},Xc={SUN:(0,O.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,O.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,O.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,O.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"})})},qc=function(e){var t=e.scenePoint,n=e.viewportDimensions,r=e.zoom;return{scrollX:n.width/2*(1/r.value)-t.x,scrollY:n.height/2*(1/r.value)-t.y}},$c=function(e,t,n){if(!(e=js(e)).length)return{scrollX:0,scrollY:0};var r=h(kt(e),4),o=r[0],i=r[1],a=r[2],l=r[3];if(function(e,t,n){var r=h(n,4),o=r[0],i=r[1],a=r[2],l=r[3],c=wn({sceneX:o,sceneY:i},e),s=c.x,u=c.y,d=wn({sceneX:a,sceneY:l},e),f=d.x,p=d.y;return f-s>e.width||p-u>e.height}(t,0,[o,i,a,l])){var c=function(e,t){if(!e.length)return[0,0,0,0];var n=1/0,r=e[0];return e.forEach((function(e){var o=h(wt(e),4),i=o[0],a=o[1],l=o[2],c=o[3],s=ot((i+l)/2,(a+c)/2,t.x,t.y);s<n&&(n=s,r=e)})),wt(r)}(e,xn({clientX:t.scrollX,clientY:t.scrollY},t)),s=h(c,4);o=s[0],i=s[1],a=s[2],l=s[3]}return qc({scenePoint:{x:(o+a)/2,y:(i+l)/2},viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})},Qc=function(e){return Math.max(.1,Math.min(e,30))},Jc=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}}},es=(n(6781),function(){var e=document.querySelector(".excalidraw-tooltip");if(e)return e;var t=document.createElement("div");return document.body.appendChild(t),t.classList.add("excalidraw-tooltip"),t}),ts=function(e,t){var n,r=arguments.length>2&&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")})},ns=function(e){var t=e.children,n=e.label,r=e.long,o=void 0!==r&&r,i=e.style;return(0,l.useEffect)((function(){return function(){return es().classList.remove("excalidraw-tooltip--visible")}}),[]),(0,O.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();ts(t,o)}(e.currentTarget,es(),n,o)},onPointerLeave:function(){return es().classList.remove("excalidraw-tooltip--visible")},style:i,children:t})};n(196),n(1106);function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var is=c().forwardRef((function(e,t){var n=e.children,r=e.padding,o=e.className,i=e.style;return(0,O.jsx)("div",{className:Fe("Island",o),style:os({"--padding":r},i),ref:t,children:n})})),as=(n(8328),function(e){var t=e.theme,n=void 0===t?s.C6.LIGHT:t,r=e.closeOnClickOutside,o=void 0===r||r,i=ls(n);if(!i)return null;return(0,It.createPortal)((0,O.jsxs)("div",{className:Fe("Modal",e.className),role:"dialog","aria-modal":"true",onKeyDown:function(t){t.key===en.ESCAPE&&(t.nativeEvent.stopImmediatePropagation(),t.stopPropagation(),e.onCloseRequest())},"aria-labelledby":e.labelledBy,children:[(0,O.jsx)("div",{className:"Modal__background",onClick:o?e.onCloseRequest:void 0}),(0,O.jsx)("div",{className:"Modal__content",style:{"--max-width":"".concat(e.maxWidth,"px")},tabIndex:0,children:e.children})]}),i)}),ls=function(e){var t=h((0,l.useState)(null),2),n=t[0],r=t[1],o=eg(),i=(0,l.useRef)(o);i.current=o;var a=ng().container;return(0,l.useLayoutEffect)((function(){n&&n.classList.toggle("excalidraw--mobile",o)}),[n,o]),(0,l.useLayoutEffect)((function(){var t=!(null==a||!a.classList.contains("theme--dark"))||"dark"===e,n=document.createElement("div");return n.classList.add("excalidraw","excalidraw-modal-container"),n.classList.toggle("excalidraw--mobile",i.current),t&&(n.classList.add("theme--dark"),n.classList.add("theme--dark-background-none")),document.body.appendChild(n),r(n),function(){document.body.removeChild(n)}}),[a,e]),n},cs=function(e){var t=function(){var e=h((0,l.useState)(null),2),t=e[0],n=e[1];return[t,(0,l.useCallback)((function(e){return n(e)}),[])]}(),n=h(t,2),r=n[0],o=n[1],i=h((0,l.useState)(document.activeElement),1)[0],a=ng().id;(0,l.useEffect)((function(){if(r){var t=c(r);t.length>0&&!1!==e.autofocus&&(t[1]||t[0]).focus();var n=function(e){if(e.key===en.TAB){var t=c(r),n=document.activeElement,o=t.findIndex((function(e){return e===n}));0===o&&e.shiftKey?(t[t.length-1].focus(),e.preventDefault()):o!==t.length-1||e.shiftKey||(t[0].focus(),e.preventDefault())}};return r.addEventListener("keydown",n),function(){return r.removeEventListener("keydown",n)}}}),[r,e.autofocus]);var c=function(e){var t=e.querySelectorAll("button, a, input, select, textarea, div[tabindex]");return t?Array.from(t):[]},s=function(){i.focus(),e.onCloseRequest()};return(0,O.jsx)(as,{className:Fe("Dialog",e.className),labelledBy:"dialog-title",maxWidth:e.small?550:800,onCloseRequest:s,theme:e.theme,closeOnClickOutside:e.closeOnClickOutside,children:(0,O.jsxs)(is,{ref:o,children:[(0,O.jsxs)("h2",{id:"".concat(a,"-dialog-title"),className:"Dialog__title",children:[(0,O.jsx)("span",{className:"Dialog__titleContent",children:e.title}),(0,O.jsx)("button",{className:"Modal__close",onClick:s,"aria-label":C("buttons.close"),children:eg()?Fl:Bl})]}),(0,O.jsx)("div",{className:"Dialog__content",children:e.children})]})})},ss=(n(4678),["onConfirm","onCancel","children","confirmText","cancelText","className"]);function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fs=function(e){var t=e.onConfirm,n=e.onCancel,r=e.children,o=e.confirmText,i=void 0===o?C("buttons.confirm"):o,a=e.cancelText,l=void 0===a?C("buttons.cancel"):a,c=e.className,s=void 0===c?"":c,u=po(e,ss);return(0,O.jsxs)(cs,ds(ds({onCloseRequest:n,small:!0},u),{},{className:"confirm-dialog ".concat(s),children:[r,(0,O.jsxs)("div",{className:"confirm-dialog-buttons",children:[(0,O.jsx)(Zc,{type:"button",title:l,"aria-label":l,label:l,onClick:n,className:"confirm-dialog--cancel"}),(0,O.jsx)(Zc,{type:"button",title:i,"aria-label":i,label:i,onClick:t,className:"confirm-dialog--confirm"})]})]}))},ps=function(e){var t=e.onConfirm,n=h((0,l.useState)(!1),2),r=n[0],o=n[1],i=function(){o(!r)};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Zc,{type:"button",icon:ml,title:C("buttons.clearReset"),"aria-label":C("buttons.clearReset"),showAriaLabel:eg(),onClick:i,"data-testid":"clear-canvas-button"}),r&&(0,O.jsx)(fs,{onConfirm:function(){t(),i()},onCancel:i,title:C("clearCanvasDialog.title"),children:(0,O.jsxs)("p",{className:"clear-canvas__content",children:[" ",C("alerts.clearReset")]})})]})};function hs(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 ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Pc({name:"changeViewBackgroundColor",perform:function(e,t,n){return{appState:ms(ms({},t),n),commitToHistory:!!n.viewBackgroundColor}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)("div",{style:{position:"relative"},children:(0,O.jsx)(tl,{label:C("labels.canvasBackground"),type:"canvasBackground",color:t.viewBackgroundColor,onChange:function(e){return n({viewBackgroundColor:e})},isActive:"canvasColorPicker"===t.openPopup,setActive:function(e){return n({openPopup:e?"canvasColorPicker":null})},"data-testid":"canvas-background-picker"})})}}),Pc({name:"clearCanvas",perform:function(e,t,n,r){return r.imageCache.clear(),{elements:e.map((function(e){return lo(e,{isDeleted:!0})})),appState:ms(ms({},zn()),{},{files:{},theme:t.theme,elementLocked:t.elementLocked,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,showStats:t.showStats,pasteDialog:t.pasteDialog,elementType:"image"===t.elementType?"selection":t.elementType}),commitToHistory:!0}},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(ps,{onConfirm:t})}});var gs=Pc({name:"zoomIn",perform:function(e,t,n,r){return{appState:ms(ms({},t),Jc({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qc(t.zoom.value+s.V4)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:xl,title:"".concat(C("buttons.zoomIn")," — ").concat(yn("CtrlOrCmd++")),"aria-label":C("buttons.zoomIn"),onClick:function(){t(null)},size:"small"})},keyTest:function(e){return(e.code===At||e.code===Dt)&&(e[en.CTRL_OR_CMD]||e.shiftKey)}}),vs=Pc({name:"zoomOut",perform:function(e,t,n,r){return{appState:ms(ms({},t),Jc({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qc(t.zoom.value-s.V4)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:wl,title:"".concat(C("buttons.zoomOut")," — ").concat(yn("CtrlOrCmd+-")),"aria-label":C("buttons.zoomOut"),onClick:function(){t(null)},size:"small"})},keyTest:function(e){return(e.code===Lt||e.code===Rt)&&(e[en.CTRL_OR_CMD]||e.shiftKey)}}),bs=(Pc({name:"resetZoom",perform:function(e,t,n,r){return{appState:ms(ms({},t),Jc({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:Qc(1)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,O.jsx)(ns,{label:C("buttons.resetZoom"),style:{height:"100%"},children:(0,O.jsxs)(Zc,{type:"button",className:"reset-zoom-button",title:C("buttons.resetZoom"),"aria-label":C("buttons.resetZoom"),onClick:function(){t(null)},size:"small",children:[(100*n.zoom.value).toFixed(0),"%"]})})},keyTest:function(e){return(e.code===Kt||e.code===zt)&&(e[en.CTRL_OR_CMD]||e.shiftKey)}}),function(e,t){var n=h(e,4),r=n[0],o=n[1],i=n[2],a=n[3],l=i-r,c=t.width/l,u=a-o,d=t.height/u,f=Math.min(c,d),p=Math.floor(f/s.V4)*s.V4;return Math.min(Math.max(p,s.V4),1)}),ys=function(e,t,n){var r=Cs(e),o=Ds(r,t),i=n&&o.length>0?kt(o):kt(r),a={value:bs(i,{width:t.width,height:t.height})},l=h(i,4),c=l[0],s=l[1],u=(c+l[2])/2,d=(s+l[3])/2;return{appState:ms(ms(ms({},t),qc({scenePoint:{x:u,y:d},viewportDimensions:{width:t.width,height:t.height},zoom:a})),{},{zoom:a}),commitToHistory:!1}},xs=(Pc({name:"zoomToSelection",perform:function(e,t){return ys(e,t,!0)},keyTest:function(e){return e.code===Ft&&e.shiftKey&&!e.altKey&&!e[en.CTRL_OR_CMD]}}),Pc({name:"zoomToFit",perform:function(e,t){return ys(e,t,!1)},keyTest:function(e){return e.code===Bt&&e.shiftKey&&!e.altKey&&!e[en.CTRL_OR_CMD]}}),Pc({name:"toggleTheme",perform:function(e,t,n){return{appState:ms(ms({},t),{},{theme:n||(t.theme===s.C6.LIGHT?s.C6.DARK:s.C6.LIGHT)}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)("div",{style:{marginInlineStart:"0.25rem"},children:(0,O.jsx)(Yc,{value:t.theme,onChange:function(e){n(e)}})})},keyTest:function(e){return e.altKey&&e.shiftKey&&e.code===Gt}}),function(e,t,n,r,o,i){var a=r.zoom,l=180*n/Math.PI,c=e*(a.value-1)/2,s=t*(a.value-1)/2;return e>o&&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)")}),ws=function(e){var t,n=e.id,r=e.onChange,o=e.onSubmit,i=e.getViewportCoords,a=e.element,l=e.canvas,c=e.excalidrawContainer,u=e.app,d=function(){var e,r=u.state,o=null===(e=sr.getScene(a))||void 0===e?void 0:e.getElement(n),l=gr(dn(o));if(o&&Ve(o)){var c=o.x,d=o.y,p=_r(o),m=o.width,g=o.height,v=o.width,b=o.height;if(p&&o.containerId){var y=function(e,t){var n=t.style.fontFamily.replace(/"/g,"");return un({fontFamily:e.fontFamily})!==n||"".concat(e.fontSize,"px")!==t.style.fontSize}(o,f),x=Number(f.style.height.slice(0,-2));if(x>0&&(b=x),y&&(t=p.height,b=o.height),t||(t=p.height),m=p.width-2*s.gK,g=p.height-2*s.gK,v=m,c=p.x+s.gK,b>g){var w=Math.min(b-g,l);return void ao(p,{height:p.height+w})}if(p.height>t&&b<g){var k=Math.min(g-b,l);ao(p,{height:p.height-k})}else d=p.y+p.height/2-b/2}var E=h(i(c,d),2),_=E[0],S=E[1],j=o.textAlign;f.value=o.originalText;var C=o.originalText.split("\n"),O=o.containerId?l:o.height/C.length;p||(m=(r.width-8-_)/r.zoom.value);var I=(r.height-S)/r.zoom.value,M=p?p.angle:o.angle;Object.assign(f.style,{font:dn(o),lineHeight:"".concat(O,"px"),width:"".concat(v,"px"),height:"".concat(b,"px"),left:"".concat(_,"px"),top:"".concat(S,"px"),transform:xs(v,b,M,r,m,I),textAlign:j,color:o.strokeColor,opacity:o.opacity/100,filter:"var(--theme-filter)",maxWidth:"".concat(m,"px"),maxHeight:"".concat(I,"px")}),Pn()&&(f.style.fontFamily=un(o)),ao(o,{x:c,y:d})}},f=document.createElement("textarea");f.dir="auto",f.tabIndex=0,f.dataset.type="wysiwyg",f.wrap="off",f.classList.add("excalidraw-wysiwyg");var p="pre",m="normal";et(a)&&(p="pre-wrap",m="break-word"),Object.assign(f.style,{position:"absolute",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",zIndex:"var(--zIndex-wysiwyg)",wordBreak:m,whiteSpace:p,overflowWrap:"break-word"}),d(),r&&(f.oninput=function(){var e,t=null===(e=sr.getScene(a))||void 0===e?void 0:e.getElement(n),o=dn(t),i=f.scrollHeight/gr(o);if(et(a)&&i>1){var l="auto";if(2===i){var c=_r(a);1===br(f.value,o,c.width).split("\n").length&&(l="".concat(f.scrollHeight/2,"px"))}f.style.height=l,f.style.height="".concat(f.scrollHeight,"px")}r(f.value.replace(/\t/g," ").replace(/\r?\n|\r/g,"\n"))}),f.onkeydown=function(e){if(e.stopPropagation(),!e.shiftKey&&gs.keyTest(e))e.preventDefault(),u.actionManager.executeAction(gs),d();else if(!e.shiftKey&&vs.keyTest(e))e.preventDefault(),u.actionManager.executeAction(vs),d();else if(Nc.keyTest(e))u.actionManager.executeAction(Nc);else if(Hc.keyTest(e))u.actionManager.executeAction(Hc);else if(e.key===en.ESCAPE)e.preventDefault(),k=!0,E();else if(e.key===en.ENTER&&e[en.CTRL_OR_CMD]){if(e.preventDefault(),e.isComposing||229===e.keyCode)return;k=!0,E()}else(e.key===en.TAB||e[en.CTRL_OR_CMD]&&(e.code===Ht||e.code===Nt))&&(e.preventDefault(),e.shiftKey||e.code===Ht?y():b(),f.dispatchEvent(new Event("input")))};var g=" ".repeat(4),v=new RegExp("^ {1,".concat(4,"}")),b=function(){var e=f.selectionStart,t=f.selectionEnd,n=x(),r=f.value;n.forEach((function(e){var t=r.slice(0,e),n=r.slice(e);r="".concat(t).concat(g).concat(n)})),f.value=r,f.selectionStart=e+4,f.selectionEnd=t+4*n.length},y=function(){var e=f.selectionStart,t=f.selectionEnd,n=x(),r=[],o=f.value;n.forEach((function(e){var t=o.slice(e,e+4).match(v);if(t){var n=o.slice(0,e),i=o.slice(e+t[0].length);o="".concat(n).concat(i),r.push(e)}})),f.value=o,r.length&&(e>r[r.length-1]?f.selectionStart=Math.max(e-4,r[r.length-1]):f.selectionStart=e,f.selectionEnd=Math.max(f.selectionStart,t-4*r.length))},x=function(){var e=f.selectionStart,t=f.selectionEnd,n=f.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()},w=function(e){e.preventDefault(),e.stopPropagation()},k=!1,E=function(){var e;_();var t=null===(e=sr.getScene(a))||void 0===e?void 0:e.getElement(a.id);if(t){var n=f.value,r=_r(t);if(r)if(n=t.text,f.value){var i=kr(r);i&&i===a.id||ao(r,{boundElements:(r.boundElements||[]).concat({type:"text",id:a.id})})}else{var l;ao(r,{boundElements:null===(l=r.boundElements)||void 0===l?void 0:l.filter((function(e){return!Ve(e)}))})}o({text:n,viaKeyboard:k,originalText:f.value})}},_=function(){O||(O=!0,f.onblur=null,f.oninput=null,f.onkeydown=null,I&&I.disconnect(),window.removeEventListener("resize",d),window.removeEventListener("wheel",w,!0),window.removeEventListener("pointerdown",j),window.removeEventListener("pointerup",S),window.removeEventListener("blur",E),C(),f.remove())},S=function e(t){window.removeEventListener("pointerup",e);var n=null==t?void 0:t.target,r=n instanceof HTMLInputElement&&n.closest(".color-picker-input")&&sn(n);setTimeout((function(){f.onblur=E,n&&r&&(n.onblur=function(){f.focus()}),r||f.focus()}))},j=function(e){var t=e.target instanceof HTMLInputElement&&e.target.closest(".color-picker-input")&&sn(e.target);((e.target instanceof HTMLElement||e.target instanceof SVGElement)&&e.target.closest(".".concat(s.$C.SHAPE_ACTIONS_MENU))&&!sn(e.target)||t)&&(f.onblur=null,window.addEventListener("pointerup",S),window.addEventListener("blur",E))},C=sr.getScene(a).addCallback((function(){var e;d(),!(null===(e=document.activeElement)||void 0===e||!e.closest(".color-picker-input"))||f.focus()})),O=!1;f.select(),S();var I=null;l&&"ResizeObserver"in window?(I=new window.ResizeObserver((function(){d()}))).observe(l):window.addEventListener("resize",d),window.addEventListener("pointerdown",j),window.addEventListener("wheel",w,{passive:!1,capture:!0}),null==c||c.querySelector(".excalidraw-textEditorContainer").appendChild(f)},ks=function(e,t){return Boolean(!e.viewModeEnabled&&(e.editingElement||Ds(t,e).length||"selection"!==e.elementType))};function Es(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 _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ss=function(e){return e.reduce((function(e,t){return e+t.version}),0)},js=function(e){return e.filter((function(e){return!e.isDeleted&&!so(e)}))},Cs=function(e){return e.filter((function(e){return!e.isDeleted}))},Os=function(e){return!e.isDeleted},Is=function(e){return Cs(e).map((function(e){return Xe(e.type)?_s(_s({},e),{},{lastCommittedPoint:null}):e}))},Ms=function(e){return Is(e)},Ts=function(e){return Is(e)},Ps=function(e,t,n){var r=h([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})),2),o=r[0],i=r[1];return{isOverEither:o||i,isOverHorizontal:o,isOverVertical:i}},As=function(e,t){return e.some((function(e){return t.selectedElementIds[e.id]}))},Ls=function(e,t,n){var r=Array.from(new Set(Ds(e,t).map((function(e){return n(e)}))));return 1===r.length?r[0]:null},Ds=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&&et(e)&&t.selectedElementIds[null==e?void 0:e.containerId]?e:null}))},Rs=function(e,t){return t.editingElement?[t.editingElement]:Ds(e,t,!0)};function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hs=function(e,t){if(e.editingGroupId){var n=_o(Cs(t),e.editingGroupId);if(n.length)return Ns(Ns({},e),{},{selectedElementIds:A({},n[0].id,!0)})}return e},Bs=Pc({name:"deleteSelectedElements",perform:function(e,t){if(t.editingLinearElement){var n=t.editingLinearElement,r=n.elementId,o=n.selectedPointsIndices,i=n.startBindingElement,a=n.endBindingElement,l=aa.getElement(r);if(!l)return!1;if(null==o||l.points.length<2){var c=e.filter((function(e){return e.id!==l.id}));return{elements:c,appState:Ns(Ns({},Hs(t,c)),{},{editingLinearElement:null}),commitToHistory:!1}}var s={startBindingElement:null!=o&&o.includes(0)?null:i,endBindingElement:null!=o&&o.includes(l.points.length-1)?null:a};return aa.deletePoints(l,o),{elements:e,appState:Ns(Ns({},t),{},{editingLinearElement:Ns(Ns(Ns({},t.editingLinearElement),s),{},{selectedPointsIndices:(null==o?void 0:o[0])>0?[o[0]-1]:[0]})}),commitToHistory:!0}}var u=function(e,t){return{elements:e.map((function(e){return t.selectedElementIds[e.id]||et(e)&&t.selectedElementIds[e.containerId]?lo(e,{isDeleted:!0}):e})),appState:Ns(Ns({},t),{},{selectedElementIds:{}})}}(e,t),d=u.elements,f=u.appState;return La(d,e.filter((function(e){var n=e.id;return t.selectedElementIds[n]}))),{elements:d,appState:Ns(Ns({},f=Hs(f,d)),{},{elementType:"selection",multiElement:null}),commitToHistory:As(Cs(e),t)}},contextItemLabel:"labels.delete",keyTest:function(e){return e.key===en.BACKSPACE||e.key===en.DELETE},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:ml,title:C("labels.delete"),"aria-label":C("labels.delete"),onClick:function(){return r(null)},visible:As(Cs(t),n)})}}),Fs=function(e,t){for(var n=[],r=[],o=null,i=-1,a=Tn(Ds(e,t,!0));++i<e.length;)a.get(e[i].id)?(r.length&&(n=n.concat(r),r=[]),n.push(i),o=i+1):e[i].isDeleted&&o===i?(o=i+1,r.push(i)):r=[];return n},Us=function(e,t,n){if("containerId"in e&&e.containerId){if("left"!==n)return t.indexOf(e);var r=sr.getScene(e).getElement(e.containerId);if(r)return t.indexOf(r)}else{var o,i,a=null===(o=e.boundElements)||void 0===o||null===(i=o.find((function(e){return"arrow"!==e.type})))||void 0===i?void 0:i.id;if(a){if("left"===n)return t.indexOf(e);var l=sr.getScene(e).getElement(a);if(l)return t.indexOf(l)}}},Ks=function(e,t,n,r){var o,i=t[n],a=function(t){return!t.isDeleted&&(!e.editingGroupId||t.groupIds.includes(e.editingGroupId))},l="left"===r?function(e,t){var n=arguments.length>2&&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}(t,a,Math.max(0,n-1)):function(e,t){var n=arguments.length>2&&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;++r<e.length;)if(t(e[r],r,e))return r;return-1}(t,a,n+1),c=t[l];if(!c)return-1;if(e.editingGroupId){var s;if((null==i?void 0:i.groupIds.join(""))===(null==c?void 0:c.groupIds.join("")))return null!==(s=Us(c,t,r))&&void 0!==s?s:l;if(null==c||!c.groupIds.includes(e.editingGroupId))return-1}if(!c.groupIds.length)return null!==(o=Us(c,t,r))&&void 0!==o?o:l;var u=e.editingGroupId?c.groupIds[c.groupIds.indexOf(e.editingGroupId)-1]:c.groupIds[c.groupIds.length-1],d=_o(t,u);return d.length?"left"===r?t.indexOf(d[0]):t.indexOf(d[d.length-1]):l},Ws=function(e,t){return t.reduce((function(t,n){var r=e[n];return t[r.id]=r,t}),{})},Vs=function(e,t,n){var r,o,i=Fs(t,e),a=Ws(t,i),l=(o=0,(r=i).reduce((function(e,t,n){return n>0&&r[n-1]!==t-1&&(o=++o),(e[o]||(e[o]=[])).push(t),e}),[]));return"right"===n&&(l=l.reverse()),l.forEach((function(r,o){var i=r[0],a=r[r.length-1],l="left"===n?i:a,c=Ks(e,t,l,n);if(-1!==c&&l!==c){var s="left"===n?t.slice(0,c):t.slice(0,i),u=t.slice(i,a+1),d="left"===n?t.slice(c,i):t.slice(a+1,c+1),f="left"===n?t.slice(a+1):t.slice(c+1);t="left"===n?[].concat(P(s),P(u),P(d),P(f)):[].concat(P(s),P(d),P(u),P(f))}})),t.map((function(e){return a[e.id]?co(e):e}))},Gs=function(e,t,n){var r,o,i=Fs(e,t),a=Ws(e,i),l=[];if("left"===n){if(t.editingGroupId){var c=_o(e,t.editingGroupId);if(!c.length)return e;r=e.indexOf(c[0])}else r=0;o=i[i.length-1]}else{if(t.editingGroupId){var s=_o(e,t.editingGroupId);if(!s.length)return e;o=e.indexOf(s[s.length-1])}else o=e.length-1;r=i[0]}for(var u=r;u<o+1;u++)i.includes(u)||l.push(e[u]);var d=Object.values(a).map((function(e){return co(e)})),f=e.slice(0,r),p=e.slice(o+1);return"left"===n?[].concat(P(f),P(d),l,P(p)):[].concat(P(f),l,P(d),P(p))},Zs=function(e,t){return Vs(t,e,"left")},Ys=function(e,t){return Vs(t,e,"right")},Xs=function(e,t){return Gs(e,t,"left")},qs=function(e,t){return Gs(e,t,"right")},$s=Pc({name:"sendBackward",perform:function(e,t){return{elements:Zs(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:function(e){return e[en.CTRL_OR_CMD]&&!e.shiftKey&&e.code===Ht},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,O.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(C("labels.sendBackward")," — ").concat(yn("CtrlOrCmd+[")),children:(0,O.jsx)(Ol,{theme:n.theme})})}}),Qs=Pc({name:"bringForward",perform:function(e,t){return{elements:Ys(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:function(e){return e[en.CTRL_OR_CMD]&&!e.shiftKey&&e.code===Nt},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,O.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(C("labels.bringForward")," — ").concat(yn("CtrlOrCmd+]")),children:(0,O.jsx)(Cl,{theme:n.theme})})}}),Js=Pc({name:"sendToBack",perform:function(e,t){return{elements:Xs(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendToBack",keyTest:function(e){return Mt?e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Ht:e[en.CTRL_OR_CMD]&&e.shiftKey&&e.code===Ht},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,O.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat(C("labels.sendToBack")," — ").concat(yn(Mt?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")),children:(0,O.jsx)(Ml,{theme:n.theme})})}}),eu=Pc({name:"bringToFront",perform:function(e,t){return{elements:qs(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringToFront",keyTest:function(e){return Mt?e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Nt:e[en.CTRL_OR_CMD]&&e.shiftKey&&e.code===Nt},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,O.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(e){return t(null)},title:"".concat(C("labels.bringToFront")," — ").concat(yn(Mt?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")),children:(0,O.jsx)(Il,{theme:n.theme})})}});function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ru=Pc({name:"selectAll",perform:function(e,t){return!t.editingLinearElement&&{appState:ko(nu(nu({},t),{},{editingGroupId:null,selectedElementIds:e.reduce((function(e,t){return t.isDeleted||Ve(t)&&t.containerId||(e[t.id]=!0),e}),{})}),Cs(e)),commitToHistory:!0}},contextItemLabel:"labels.selectAll",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.key===en.A}});function ou(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 iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var au=Pc({name:"duplicateSelection",perform:function(e,t){if(t.editingLinearElement){var n=aa.duplicateSelectedPoints(t);return!!n&&{elements:e,appState:n.appState,commitToHistory:!0}}return iu(iu({},lu(e,t)),{},{commitToHistory:!0})},contextItemLabel:"labels.duplicateSelection",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.key===en.D},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:Ul,title:"".concat(C("labels.duplicateSelection")," — ").concat(yn("CtrlOrCmd+D")),"aria-label":C("labels.duplicateSelection"),onClick:function(){return r(null)},visible:As(Cs(t),n)})}}),lu=function(e,t){for(var n=new Map,r=[],o=[],i=new Map,a=function(e){var a=zo(t.editingGroupId,n,e,{x:e.x+s.k/2,y:e.y+s.k/2});return i.set(e.id,a.id),o.push(e),r.push(a),a},l=[],c=0,u=Tn(Ds(e,t,!0));c<e.length;){var d=e[c];if(u.get(d.id)){if(d.groupIds.length){var f=xo(t,d);if(f){var p=_o(e,f);l.push.apply(l,P(p).concat(P(p.map((function(e){return a(e)}))))),c+=p.length;continue}}l.push(d,a(d))}else l.push(d);c++}return dr(l,o,i),Pa(l,o,i),{elements:l,appState:ko(iu(iu({},t),{},{selectedGroupIds:{},selectedElementIds:r.reduce((function(e,t){return et(t)||(e[t.id]=!0),e}),{})}),Cs(l))}};function cu(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 su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cu(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uu,du,fu,pu=Pc({name:"finalize",perform:function(e,t,n,r){var o,i=r.canvas,a=r.focusContainer;if(t.editingLinearElement){var l=t.editingLinearElement,c=l.elementId,s=l.startBindingElement,u=l.endBindingElement,d=aa.getElement(c);if(d)return qe(d)&&ua(d,s,u),{elements:d.points.length<2||so(d)?e.filter((function(e){return e.id!==d.id})):void 0,appState:su(su({},t),{},{editingLinearElement:null}),commitToHistory:!0}}var f=e;t.pendingImageElement&&ao(t.pendingImageElement,{isDeleted:!0},!1),window.document.activeElement instanceof HTMLElement&&a();var p=t.multiElement?t.multiElement:"freedraw"===(null===(o=t.editingElement)||void 0===o?void 0:o.type)?t.editingElement:null;if(p){if("freedraw"!==p.type&&"touch"!==t.lastPointerDownWith){var m=p.points,g=p.lastCommittedPoint;g&&m[m.length-1]===g||ao(p,{points:p.points.slice(0,-1)})}so(p)&&(f=f.slice(0,-1));var v=it(p.points,t.zoom.value);if(("line"===p.type||"freedraw"===p.type)&&v){var b=p.points,y=b[0];ao(p,{points:b.map((function(e,t){return t===b.length-1?[y[0],y[1]]:e}))})}if(qe(p)&&!v&&p.points.length>1){var x=h(aa.getPointAtIndexGlobalCoordinates(p,-1),2),w=x[0],k=x[1];ha(p,t,sr.getScene(p),{x:w,y:k})}t.elementLocked||"freedraw"===t.elementType||(t.selectedElementIds[p.id]=!0)}return(t.elementLocked||"freedraw"===t.elementType)&&p||mn(i),{elements:f,appState:su(su({},t),{},{elementType:(t.elementLocked||"freedraw"===t.elementType)&&p?t.elementType:"selection",draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:p&&!t.elementLocked&&"freedraw"!==t.elementType?su(su({},t.selectedElementIds),{},A({},p.id,!0)):t.selectedElementIds,pendingImageElement:null}),commitToHistory:"freedraw"===t.elementType}},keyTest:function(e,t){return e.key===en.ESCAPE&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===en.ESCAPE||e.key===en.ENTER)&&null!==t.multiElement},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:kl,title:C("buttons.done"),"aria-label":C("buttons.done"),onClick:n,visible:null!=t.multiElement})}}),hu="undefined"!=typeof process&&null!==(uu={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_SOCKET_SERVER_URL:"https://oss-collab-us1.excalidraw.com",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"})&&void 0!==uu&&uu.REACT_APP_GOOGLE_ANALYTICS_ID&&"undefined"!=typeof window&&window.gtag?function(e,t,n,r){window.gtag("event",t,{event_category:e,event_label:n,value:r})}:("undefined"!=typeof process&&null!==(du={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_SOCKET_SERVER_URL:"https://oss-collab-us1.excalidraw.com",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"})&&void 0!==du&&du.JEST_WORKER_ID,function(e,t,n,r){}),mu=(n(518),n(9966),function(e){var t=ng().id,n=h((0,l.useState)(e.value),2),r=n[0],o=n[1];return(0,O.jsxs)("div",{className:"ProjectName",children:[(0,O.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(e.label).concat(e.isNameEditable?"":":")}),e.isNameEditable?(0,O.jsx)("input",{type:"text",className:"TextInput",onBlur:function(t){!function(e){for(var t=e.parentElement;t;){if(t.tabIndex>-1)return void t.focus();t=t.parentElement}}(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:r,onChange:function(e){return o(e.target.value)}}):(0,O.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(t,"-filename"),children:e.value})]})}),gu=function(e,t){if(null!=t&&t.collaborators){var n=t.collaborators.get(e);if(null!=n&&n.color)return n.color}var r=e.split("").reduce((function(e,t){return e+t.charCodeAt(0)}),0),o=Ot.elementBackground.slice(1),i=Ot.elementStroke.slice(1);return{background:o[r%o.length],stroke:i[r%i.length]}};!function(e){e.ACTIVE="active",e.AWAY="away",e.IDLE="idle"}(fu||(fu={}));n(4404);function vu(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 bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yu=document.createElement("img");yu.src="data:".concat(s.LO.svg,", ").concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1971c2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>'));var xu=!1,wu=function(e){var t=e.element,n=e.appState,r=e.setAppState,o=e.onLinkOpen,i=t.link||"",a=h((0,l.useState)(i),2),c=a[0],u=a[1],d=(0,l.useRef)(null),f="editor"===n.showHyperlinkPopup||!i,p=(0,l.useCallback)((function(){if(d.current){var e=Eu(d.current.value);ao(t,{link:e}),r({showHyperlinkPopup:"info"})}}),[t,r]);(0,l.useLayoutEffect)((function(){return function(){p()}}),[p]),(0,l.useEffect)((function(){var e=null,o=function(o){f||(e&&clearTimeout(e),Tu(t,n,[o.clientX,o.clientY])&&(e=window.setTimeout((function(){r({showHyperlinkPopup:!1})}),500)))};return window.addEventListener(s.Ks.POINTER_MOVE,o,!1),function(){window.removeEventListener(s.Ks.POINTER_MOVE,o,!1),e&&clearTimeout(e)}}),[n,t,f,r]);var m=(0,l.useCallback)((function(){ao(t,{link:null}),f&&(d.current.value=""),r({showHyperlinkPopup:!1})}),[r,t,f]),g=ku(t,n),v=g.x,b=g.y;return n.draggingElement||n.resizingElement||n.isRotating||n.openMenu?null:(0,O.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(b,"px"),left:"".concat(v,"px"),width:320,padding:5},children:[f?(0,O.jsx)("input",{className:Fe("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:d,value:c,onChange:function(e){return u(e.target.value)},autoFocus:!0,onKeyDown:function(e){e.stopPropagation(),e[en.CTRL_OR_CMD]&&e.key===en.K&&e.preventDefault(),e.key!==en.ENTER&&e.key!==en.ESCAPE||p()}}):(0,O.jsx)("a",{href:t.link||"",className:Fe("excalidraw-hyperlinkContainer-link",{"d-none":f}),target:_u(t.link)?"_self":"_blank",onClick:function(e){if(t.link&&o){var n=An(s.Ks.EXCALIDRAW_LINK,e.nativeEvent);o(t,n),n.defaultPrevented&&e.preventDefault()}},rel:"noopener noreferrer",children:t.link}),(0,O.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!f&&(0,O.jsx)(Zc,{type:"button",title:C("buttons.edit"),"aria-label":C("buttons.edit"),label:C("buttons.edit"),onClick:function(){r({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:xc}),i&&(0,O.jsx)(Zc,{type:"button",title:C("buttons.remove"),"aria-label":C("buttons.remove"),label:C("buttons.remove"),onClick:m,className:"excalidraw-hyperlinkContainer--remove",icon:ml})]})]})},ku=function(e,t){var n=h(mt(e),2),r=n[0],o=n[1],i=wn({sceneX:r+e.width/2,sceneY:o},t),a=i.x,l=i.y;return{x:a-t.offsetLeft-160,y:l-t.offsetTop-85}},Eu=function(e){return(e=e.trim())&&(e.includes("://")||/^[[\\/]/.test(e)||(e="https://".concat(e))),e},_u=function(e){return!!(null!=e&&e.includes(location.origin)||null!=e&&e.startsWith("/"))},Su=Pc({name:"link",perform:function(e,t){return"editor"!==t.showHyperlinkPopup&&{elements:e,appState:bu(bu({},t),{},{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0}},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.key===en.K},contextItemLabel:function(e,t){return ju(e,t)},contextItemPredicate:function(e,t){return 1===Ds(e,t).length},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=Ds(t,n);return(0,O.jsx)(Zc,{type:"button",icon:ul,"aria-label":C(ju(t,n)),title:"".concat(C("labels.link.label")," - ").concat(yn("CtrlOrCmd+K")),onClick:function(){return r(null)},selected:1===o.length&&!!o[0].link})}}),ju=function(e,t){return Ds(e,t)[0].link?"labels.link.edit":"labels.link.create"},Cu=function(e,t,n){var r=h(e,4),o=r[0],i=r[1],a=r[2],l=r[3],c=14/n.zoom.value,s=14/n.zoom.value,u=14/n.zoom.value,d=(o+a)/2,f=(i+l)/2,p=6/(2*n.zoom.value),m=4/n.zoom.value,g=h(tt(a+m-p+c/2,i-m-u+p+s/2,d,f,t),2);return[g[0]-c/2,g[1]-s/2,c,s]},Ou=function(e,t,n,r){var o=h(n,2),i=o[0],a=o[1],l=4/t.zoom.value;if(!r&&t.viewModeEnabled&&wi(e,[i,a],l))return!0;var c=h(mt(e),4),s=c[0],u=c[1],d=c[2],f=c[3],p=h(Cu([s,u,d,f],e.angle,t),4),m=p[0],g=p[1],v=p[2],b=p[3];return i>m-l&&i<m+l+v&&a>g-l&&a<g+b+l},Iu=null,Mu=function(e,t){if(e.link){var n=es();n.classList.add("excalidraw-tooltip--visible"),n.style.maxWidth="20rem",n.textContent=e.link;var r=h(mt(e),4),o=r[0],i=r[1],a=r[2],l=r[3],c=h(Cu([o,i,a,l],e.angle,t),4),s=c[0],u=c[1],d=c[2],f=c[3],p=wn({sceneX:s,sceneY:u},t);ts(n,{left:p.x,top:p.y,width:d,height:f},"top"),xu=!0}},Tu=function(e,t,n){var r=h(n,2),o=r[0],i=r[1],a=xn({clientX:o,clientY:i},t),l=a.x,c=a.y,s=15/t.zoom.value;if(wi(e,[l,c],s))return!1;var u=h(mt(e),3),d=u[0],f=u[1],p=u[2];if(l>=d&&l<=p&&c>=f-85&&c<=f)return!1;var m=ku(e,t),g=m.x,v=m.y;return!(o>=g-s&&o<=g+320+10+s&&i>=v-s&&i<=v+s+10+42)};function Pu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Au(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Au(e,t)}(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 Au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lu,Du=function(){var e=document.createElement("canvas").getContext("2d");if(!e)return!1;return e.fillStyle="#f00",e.textBaseline="top",e.font="32px Arial",e.fillText("😀",0,0),0!==e.getImageData(12,12,1,1).data[0]}(),Ru=function(e,t,n,r,o,i,a,l){var c=arguments.length>8&&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()},zu=function(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fill(),e.stroke()},Nu=function(e,t,n,r,o,i,a){if(null===i)return{atLeastOneVisibleElement:!1};var l=a.renderScrollbars,c=void 0===l||l,u=a.renderSelection,d=void 0===u||u,f=a.renderGrid,p=void 0===f||f,m=a.isExporting,g=i.getContext("2d");g.setTransform(1,0,0,1,0,0),g.save(),g.scale(r,r);var v=i.width/r,b=i.height/r;(m&&"dark"===a.theme&&(g.filter=s.ZF),"string"==typeof a.viewBackgroundColor)?(("transparent"===a.viewBackgroundColor||5===a.viewBackgroundColor.length||9===a.viewBackgroundColor.length||/(hsla|rgba)\(/.test(a.viewBackgroundColor))&&g.clearRect(0,0,v,b),g.save(),g.fillStyle=a.viewBackgroundColor,g.fillRect(0,0,v,b),g.restore()):g.clearRect(0,0,v,b);g.save(),g.scale(a.zoom.value,a.zoom.value),p&&t.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<n+o+2*t;a+=t)e.moveTo(a,r-t),e.lineTo(a,r+i+2*t);for(var l=r;l<r+i+2*t;l+=t)e.moveTo(n-t,l),e.lineTo(n+o+2*t,l);e.stroke(),e.restore()}(g,t.gridSize,-Math.ceil(a.zoom.value/t.gridSize)*t.gridSize+a.scrollX%t.gridSize,-Math.ceil(a.zoom.value/t.gridSize)*t.gridSize+a.scrollY%t.gridSize,v/a.zoom.value,b/a.zoom.value);var y,x=e.filter((function(e){return Vu(e,v,b,{zoom:a.zoom,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,scrollX:a.scrollX,scrollY:a.scrollY})}));if(x.forEach((function(e){try{Gr(e,o,g,a),m||Wu(e,g,t)}catch(e){console.error(e)}})),t.editingLinearElement){var w=aa.getElement(t.editingLinearElement.elementId);w&&function(e,t,n,r){e.save(),e.translate(n.scrollX,n.scrollY),e.lineWidth=1/n.zoom.value,aa.getPointsGlobalCoordinates(r).forEach((function(r,o){var i,a;e.strokeStyle="red",e.setLineDash([]),e.fillStyle=null!==(i=t.editingLinearElement)&&void 0!==i&&null!==(a=i.selectedPointsIndices)&&void 0!==a&&a.includes(o)?"rgba(255, 127, 127, 0.9)":"rgba(255, 255, 255, 0.9)";var l=aa.POINT_HANDLE_SIZE;zu(e,r[0],r[1],l/2/n.zoom.value)})),e.restore()}(g,t,a,w)}if(n)try{Gr(n,o,g,a)}catch(e){console.error(e)}if(sa(t)&&t.suggestedBindings.filter((function(e){return null!=e})).forEach((function(e){Fu(g,a,e)})),d&&!t.multiElement&&!t.editingLinearElement){var k,E=e.reduce((function(e,n){var r=[];if(t.selectedElementIds[n.id]&&!yo(t,n)&&r.push(jt.black),a.remoteSelectedElementIds[n.id]&&r.push.apply(r,P(a.remoteSelectedElementIds[n.id].map((function(e){return gu(e,t).background})))),r.length){var o=h(mt(n),4),i=o[0],l=o[1],c=o[2],s=o[3];e.push({angle:n.angle,elementX1:i,elementY1:l,elementX2:c,elementY2:s,selectionColors:r})}return e}),[]),_=function(t){var n=_o(e,t),r=h(kt(n),4),o=r[0],i=r[1],a=r[2],l=r[3];E.push({angle:0,elementX1:o,elementX2:a,elementY1:i,elementY2:l,selectionColors:[jt.black]})},j=Pu(wo(t));try{for(j.s();!(k=j.n()).done;){_(k.value)}}catch(e){j.e(e)}finally{j.f()}t.editingGroupId&&_(t.editingGroupId),E.forEach((function(e){return Bu(g,a,e)}));var C=Ds(e,t);if(g.save(),g.translate(a.scrollX,a.scrollY),1===C.length){g.fillStyle=jt.white;var O=Vo(C[0],a.zoom,"mouse");t.viewModeEnabled||Hu(g,a,O,C[0].angle)}else if(C.length>1&&!t.isRotating){var I=4/a.zoom.value;g.fillStyle=jt.white;var M=h(kt(C),4),T=M[0],A=M[1],L=M[2],D=M[3],R=g.getLineDash();g.setLineDash([2/a.zoom.value]);var z=g.lineWidth;g.lineWidth=1/a.zoom.value,Ru(g,T-I,A-I,L-T+2*I,D-A+2*I,(T+L)/2,(A+D)/2,0),g.lineWidth=z,g.setLineDash(R);var N=Wo([T,A,L,D],0,a.zoom,"mouse",Ho);Hu(g,a,N,0)}g.restore()}for(var H in g.restore(),a.remotePointerViewportCoords){var B=a.remotePointerViewportCoords[H],F=B.x,U=B.y;F-=t.offsetLeft,U-=t.offsetTop;var K=F<0||F>v-9||U<0||U>b-14;F=Math.max(F,0),F=Math.min(F,v-9),U=Math.max(U,0),U=Math.min(U,b-14);var W=gu(H,t),V=W.background,G=W.stroke;g.save(),g.strokeStyle=G,g.fillStyle=V;var Z=a.remotePointerUserStates[H];(K||Z===fu.AWAY)&&(g.globalAlpha=.48),a.remotePointerButton&&"down"===a.remotePointerButton[H]&&(g.beginPath(),g.arc(F,U,15,0,2*Math.PI,!1),g.lineWidth=3,g.strokeStyle="#ffffff88",g.stroke(),g.closePath(),g.beginPath(),g.arc(F,U,15,0,2*Math.PI,!1),g.lineWidth=1,g.strokeStyle=G,g.stroke(),g.closePath()),g.beginPath(),g.moveTo(F,U),g.lineTo(F+1,U+14),g.lineTo(F+4,U+9),g.lineTo(F+9,U+10),g.lineTo(F,U),g.fill(),g.stroke();var Y=a.remotePointerUsernames[H],X="";Z===fu.AWAY?X=Du?"⚫️":" (".concat(fu.AWAY,")"):Z===fu.IDLE?X=Du?"💤":" (".concat(fu.IDLE,")"):Z===fu.ACTIVE&&(X=Du?"🟢":"");var q="".concat(Y?"".concat(Y," "):"").concat(X);if(!K&&q){var $=F+9,Q=U+14,J=g.measureText(q),ee=J.actualBoundingBoxDescent+J.actualBoundingBoxAscent;g.fillStyle=G,g.fillRect($-1,Q-1,J.width+8+2,ee+8+2),g.fillStyle=V,g.fillRect($,Q,J.width+8,ee+8),g.fillStyle=jt.white,g.fillText(q,$+4,Q+4+J.actualBoundingBoxAscent)}g.restore(),g.closePath()}return c&&(y=function(e,t,n,r){var o=r.scrollX,i=r.scrollY,a=r.zoom;if(0===e.length)return{horizontal:null,vertical:null};var l=h(kt(e),4),c=l[0],s=l[1],u=l[2],d=l[3],f=t/a.value,p=n/a.value,m=t-f,g=n-p,v={top:parseInt(kn("sat")),bottom:parseInt(kn("sab")),left:parseInt(kn("sal")),right:parseInt(kn("sar"))},b=S().rtl,y=m/2-o+v.left,x=g/2-i+v.top,w=y+f-v.right,k=x+p-v.bottom,E=Math.min(c,y),_=Math.min(s,x),j=Math.max(u,w),C=Math.max(d,k);return{horizontal:y===E&&w===j?null:{x:Math.max(v.left,4)+(y-E)/(j-E)*t,y:n-6-Math.max(4,v.bottom),width:(w-y)/(j-E)*t-Math.max(8,v.left+v.right),height:6},vertical:x===_&&k===C?null:{x:b?Math.max(v.left,4):t-6-Math.max(v.right,4),y:(x-_)/(C-_)*n+Math.max(v.top,4),width:6,height:(k-x)/(C-_)*n-Math.max(8,v.top+v.bottom)}}}(e,v,b,a),g.save(),g.fillStyle="rgba(0,0,0,0.3)",g.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()}(g,e.x,e.y,e.width,e.height,3)})),g.restore()),g.restore(),{atLeastOneVisibleElement:x.length>0,scrollBars:y}},Hu=function(e,t,n,r){Object.keys(n).forEach((function(o){var i=n[o];void 0!==i&&(e.save(),e.lineWidth=1/t.zoom.value,"rotation"===o?zu(e,i[0]+i[2]/2,i[1]+i[3]/2,i[2]/2):Ru(e,i[0],i[1],i[2],i[3],i[0]+i[2]/2,i[1]+i[3]/2,r,!0),e.restore())}))},Bu=function(e,t,n){var r=n.angle,o=n.elementX1,i=n.elementY1,a=n.elementX2,l=n.elementY2,c=n.selectionColors,s=a-o,u=l-i,d=4/t.zoom.value,f=8/t.zoom.value,p=4/t.zoom.value;e.save(),e.translate(t.scrollX,t.scrollY),e.lineWidth=1/t.zoom.value;for(var h=c.length,m=0;m<h;++m)e.strokeStyle=c[m],e.setLineDash([f,p+(f+p)*(h-1)]),e.lineDashOffset=(f+p)*m,Ru(e,o-d,i-d,s+2*d,u+2*d,o+s/2,i+u/2,r);e.restore()},Fu=function(e,t,n){var r=Array.isArray(n)?Ku:Uu;e.save(),e.translate(t.scrollX,t.scrollY),r(e,n),e.restore()},Uu=function(e,t){var n=h(mt(t),4),r=n[0],o=n[1],i=n[2]-r,a=n[3]-o,l=Ei(t,i,a);e.strokeStyle="rgba(0,0,0,.05)",e.lineWidth=l-4;var c=2+l/2;switch(t.type){case"rectangle":case"text":case"image":Ru(e,r-c,o-c,i+2*c,a+2*c,r+i/2,o+a/2,t.angle);break;case"diamond":var s=Math.hypot(i,a);!function(e,t,n,r,o,i){e.save(),e.translate(r,o),e.rotate(i),e.beginPath(),e.moveTo(0,n/2),e.lineTo(t/2,0),e.lineTo(0,-n/2),e.lineTo(-t/2,0),e.closePath(),e.stroke(),e.restore()}(e,i+2*(c*s/a),a+2*(c*s/i),r+i/2,o+a/2,t.angle);break;case"ellipse":!function(e,t,n,r,o,i){e.beginPath(),e.ellipse(r,o,t/2,n/2,i,0,2*Math.PI),e.stroke()}(e,i+2*c,a+2*c,r+i/2,o+a/2,t.angle)}},Ku=function(e,t){var n=h(t,3),r=n[0],o=n[1],i=n[2],a=Ei(i,i.width,i.height);e.strokeStyle="rgba(0,0,0,0)",e.fillStyle="rgba(0,0,0,.05)",("both"===o?[0,-1]:"start"===o?[0]:[-1]).forEach((function(t){var n=h(aa.getPointAtIndexGlobalCoordinates(r,t),2),o=n[0],i=n[1];zu(e,o,i,a)}))},Wu=function(e,t,n){if(e.link&&!n.selectedElementIds[e.id]){var r=h(mt(e),4),o=r[0],i=r[1],a=r[2],l=r[3],c=h(Cu([o,i,a,l],e.angle,n),4),s=c[0],u=c[1],d=c[2],f=c[3],p=s+d/2,m=u+f/2;if(t.save(),t.translate(n.scrollX+p,n.scrollY+m),t.rotate(e.angle),Lu&&Lu.zoom===n.zoom.value)t.drawImage(Lu,s-p,u-m,d,f);else{(Lu=document.createElement("canvas")).zoom=n.zoom.value,Lu.width=d*window.devicePixelRatio*n.zoom.value,Lu.height=f*window.devicePixelRatio*n.zoom.value;var g=Lu.getContext("2d");g.scale(window.devicePixelRatio*n.zoom.value,window.devicePixelRatio*n.zoom.value),g.fillStyle="#fff",g.fillRect(0,0,d,f),g.drawImage(yu,0,0,d,f),g.restore(),t.drawImage(Lu,s-p,u-m,d,f)}t.restore()}},Vu=function(e,t,n,r){var o=h(wt(e),4),i=o[0],a=o[1],l=o[2],c=o[3],s=xn({clientX:r.offsetLeft,clientY:r.offsetTop},r),u=xn({clientX:r.offsetLeft+t,clientY:r.offsetTop+n},r);return s.x<=l&&s.y<=c&&u.x>=i&&u.y>=a},Gu=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,u=void 0!==s&&s;n&&e.forEach((function(e){if(!e.isDeleted)try{Yr(e,t,n,r,e.x+a,e.y+c,u)}catch(e){console.error(e)}}))},Zu=Object.defineProperty,Yu=(e,t)=>()=>(e&&(t=e(e=0)),t),Xu=(e,t)=>{for(var n in(e=>{Zu(e,"__esModule",{value:!0})})(e),t)Zu(e,n,{get:t[n],enumerable:!0})},qu={};Xu(qu,{default:()=>$u});var $u,Qu=Yu((()=>{$u=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise(((t,n)=>{let r=document.createElement("input");r.type="file";let o=[...e.map((e=>e.mimeTypes||[])).join(),e.map((e=>e.extensions||[])).join()].join();r.multiple=e[0].multiple||!1,r.accept=o||"";let i=e=>{"function"==typeof a&&a(),t(e)},a=e[0].legacySetup&&e[0].legacySetup(i,(()=>a(n)),r);r.addEventListener("change",(()=>{i(r.multiple?Array.from(r.files):r.files[0])})),r.click()})))})),Ju={};Xu(Ju,{default:()=>td});var ed,td,nd=Yu((()=>{ed=async e=>{let t=await e.getFile();return t.handle=e,t},td=async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach(((e,n)=>{t[n]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map((r=>{t[n].accept[r]=e.extensions||[]})):t[n].accept["*/*"]=e.extensions||[]}));let n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(n.map(ed));return e[0].multiple?r:r[0]}})),rd={};Xu(rd,{default:()=>od});var od,id=Yu((()=>{od=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise(((t,n)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let o=e=>{"function"==typeof i&&i(),t(e)},i=e[0].legacySetup&&e[0].legacySetup(o,(()=>i(n)),r);r.addEventListener("change",(()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter((t=>t.webkitRelativePath.split("/").every((t=>!e[0].skipDirectory({name:t,kind:"directory"})))))):t=t.filter((e=>2===e.webkitRelativePath.split("/").length)),o(t)})),r.click()})))})),ad={};Xu(ad,{default:()=>cd});var ld,cd,sd=Yu((()=>{ld=async(e,t,n=e.name,r)=>{let o=[],i=[];for await(let a of e.values()){let l=`${n}/${a.name}`;"file"===a.kind?i.push(a.getFile().then((t=>(t.directoryHandle=e,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>l}))))):"directory"===a.kind&&t&&(!r||!r(a))&&o.push(ld(a,t,l,r))}return[...(await Promise.all(o)).flat(),...await Promise.all(i)]},cd=async(e={})=>{e.recursive=e.recursive||!1;let t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return ld(t,e.recursive,void 0,e.skipDirectory)}})),ud={};Xu(ud,{default:()=>dd});var dd,fd=Yu((()=>{dd=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);let n=document.createElement("a"),r=e;"body"in e&&(r=await async function(e,t){let n=e.getReader(),r=new ReadableStream({start:e=>async function t(){return n.read().then((({done:n,value:r})=>{if(!n)return e.enqueue(r),t();e.close()}))}()}),o=new Response(r);return n.releaseLock(),new Blob([await o.blob()],{type:t})}(e.body,e.headers.get("content-type"))),n.download=t.fileName||"Untitled",n.href=URL.createObjectURL(r);let o=()=>{"function"==typeof i&&i()},i=t.legacySetup&&t.legacySetup(o,(()=>i(reject)),n);return n.addEventListener("click",(()=>{setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),o()})),n.click(),null}})),pd={};Xu(pd,{default:()=>hd});var hd,md=Yu((()=>{hd=async(e,t=[{}],n=null,r=!1)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let o=[];if(t.forEach(((t,n)=>{o[n]={description:t.description||"",accept:{}},t.mimeTypes?(0===n&&(e.type?t.mimeTypes.push(e.type):e.headers&&e.headers.get("content-type")&&t.mimeTypes.push(e.headers.get("content-type"))),t.mimeTypes.map((e=>{o[n].accept[e]=t.extensions||[]}))):e.type&&(o[n].accept[e.type]=t.extensions||[])})),n)try{await n.getFile()}catch(e){if(n=null,r)throw e}let i=n||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:o,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),a=await i.createWritable();return"stream"in e?(await e.stream().pipeTo(a),i):"body"in e?(await e.body.pipeTo(a),i):(await a.write(blob),await a.close(),i)}})),gd=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top.location}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),vd=gd?Promise.resolve().then((()=>(nd(),Ju))):Promise.resolve().then((()=>(Qu(),qu)));gd?Promise.resolve().then((()=>(sd(),ad))):Promise.resolve().then((()=>(id(),rd)));var bd=gd?Promise.resolve().then((()=>(md(),pd))):Promise.resolve().then((()=>(fd(),ud)));var yd=function(e){var t,n,r,o=null===(t=e.extensions)||void 0===t?void 0:t.reduce((function(e,t){return e.push(s.LO[t]),e}),[]),i=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 async function(...e){return(await vd).default(...e)}({description:e.description,extensions:i,mimeTypes:o,multiple:null!==(r=e.multiple)&&void 0!==r&&r,legacySetup:function(t,n,r){var o=fn(n,500),i=function(){a(),document.addEventListener(s.Ks.KEYUP,o),document.addEventListener(s.Ks.POINTER_UP,o),o()},a=function(){var n;if(null!==(n=r.files)&&void 0!==n&&n.length){var o=e.multiple?P(r.files):r.files[0];t(o)}};requestAnimationFrame((function(){window.addEventListener(s.Ks.FOCUS,i)}));var l=window.setInterval((function(){a()}),500);return function(e){clearInterval(l),o.cancel(),window.removeEventListener(s.Ks.FOCUS,i),document.removeEventListener(s.Ks.KEYUP,o),document.removeEventListener(s.Ks.POINTER_UP,o),e&&(console.warn("Opening the file was canceled (legacy-fs)."),e(new Vc))}}})},xd=function(e,t){return async function(...e){return(await bd).default(...e)}(e,{fileName:"".concat(t.name,".").concat(t.extension),description:t.description,extensions:[".".concat(t.extension)]},t.fileHandle)};function wd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return kd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kd(e,t)}(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 kd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ed(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sd={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0},jd=function(e,t){var n,r,o,i,a,l,c,s,u,d,f,p,h,m,g={type:t.type||e.type,version:e.version||1,versionNonce:null!==(n=e.versionNonce)&&void 0!==n?n:0,isDeleted:null!==(r=e.isDeleted)&&void 0!==r&&r,id:e.id||ro(),fillStyle:e.fillStyle||"hachure",strokeWidth:e.strokeWidth||1,strokeStyle:null!==(o=e.strokeStyle)&&void 0!==o?o:"solid",roughness:null!==(i=e.roughness)&&void 0!==i?i:1,opacity:null==e.opacity?100:e.opacity,angle:e.angle||0,x:null!==(a=null!==(l=t.x)&&void 0!==l?l:e.x)&&void 0!==a?a:0,y:null!==(c=null!==(s=t.y)&&void 0!==s?s:e.y)&&void 0!==c?c:0,strokeColor:e.strokeColor,backgroundColor:e.backgroundColor,width:e.width||0,height:e.height||0,seed:null!==(u=e.seed)&&void 0!==u?u:1,groupIds:null!==(d=e.groupIds)&&void 0!==d?d:[],strokeSharpness:null!==(f=e.strokeSharpness)&&void 0!==f?f:Xe(e.type)?"round":"sharp",boundElements:e.boundElementIds?e.boundElementIds.map((function(e){return{type:"arrow",id:e}})):null!==(p=e.boundElements)&&void 0!==p?p:[],updated:null!==(h=e.updated)&&void 0!==h?h:Mn(),link:null!==(m=e.link)&&void 0!==m?m:null};return _d(_d(_d({},g),fo(g)),t)},Cd=function(e){var t,n,r;switch(e.type){case"text":var o=e.fontSize,i=e.fontFamily;if("font"in e){var a=h(e.font.split(" "),2),l=a[0],c=a[1];o=parseInt(l,10),r=c,i=Object.keys(s.ut).includes(r)?s.ut[r]:s.rk}return jd(e,{fontSize:o,fontFamily:i,text:null!==(t=e.text)&&void 0!==t?t:"",baseline:e.baseline,textAlign:e.textAlign||s.Hg,verticalAlign:e.verticalAlign||s.hs,containerId:null!==(n=e.containerId)&&void 0!==n?n:null,originalText:e.originalText||e.text});case"freedraw":return jd(e,{points:e.points,lastCommittedPoint:null,simulatePressure:e.simulatePressure,pressures:e.pressures});case"image":return jd(e,{status:e.status||"pending",fileId:e.fileId,scale:e.scale||[1,1]});case"line":case"draw":case"arrow":var u=e.startArrowhead,d=void 0===u?null:u,f=e.endArrowhead,p=void 0===f?"arrow"===e.type?"arrow":null:f,m=e.x,g=e.y,v=!Array.isArray(e.points)||e.points.length<2?[[0,0],[e.width,e.height]]:e.points;if(0!==v[0][0]||0!==v[0][1]){var b=aa.getNormalizedPoints(e);v=b.points,m=b.x,g=b.y}return jd(e,{type:"draw"===e.type?"line":e.type,startBinding:e.startBinding,endBinding:e.endBinding,lastCommittedPoint:null,startArrowhead:d,endArrowhead:p,points:v,x:m,y:g});case"ellipse":case"rectangle":case"diamond":return jd(e,{})}},Od=function(e,t){var n=t?Tn(t):null;return(e||[]).reduce((function(e,t){if("selection"!==t.type&&!so(t)){var r=Cd(t);if(r){var o=null==n?void 0:n.get(t.id);o&&o.version>r.version&&(r=co(r,o.version)),e.push(r)}}return e}),[])},Id=function(e,t){e=e||{};var n,r=zn(),o={},i=wd(Object.entries(r));try{for(i.s();!(n=i.n()).done;){var a=h(n.value,2),l=a[0],c=a[1],s=e[l],u=t?t[l]:void 0;o[l]=void 0!==s?s:void 0!==u?u:c}}catch(e){i.e(e)}finally{i.f()}return _d(_d({},o),{},{elementType:Sd[o.elementType]?o.elementType:"selection",zoom:"number"==typeof e.zoom?{value:e.zoom}:e.zoom||r.zoom})},Md=function(e,t,n){return{elements:Od(null==e?void 0:e.elements,n),appState:Id(null==e?void 0:e.appState,t||null),files:(null==e?void 0:e.files)||{}}},Td=function(e,t){var n,r=[],o=wd(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(Array.isArray(i))r.push({status:t,elements:i,id:ro(),created:Date.now()});else{var a=i;r.push(_d(_d({},a),{},{id:a.id||ro(),status:a.status||t,created:a.created||Date.now()}))}}}catch(e){o.e(e)}finally{o.f()}return r};function Pd(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 Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ld=function(){var e=(0,d.Z)(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type!==s.LO.png){e.next=18;break}return e.prev=1,e.next=4,Promise.all([n.e(736),n.e(499)]).then(n.bind(n,673));case 4:return e.next=6,e.sent.decodePngMetadata(t);case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(1),"INVALID"!==e.t0.message){e.next=15;break}throw new DOMException(C("alerts.imageDoesNotContainScene"),"EncodingError");case 15:throw new DOMException(C("alerts.cannotRestoreFromImage"),"EncodingError");case 16:e.next=43;break;case 18:if(!("text"in Blob)){e.next=24;break}return e.next=21,t.text();case 21:r=e.sent,e.next=27;break;case 24:return e.next=26,new Promise((function(e){var n=new FileReader;n.readAsText(t,"utf8"),n.onloadend=function(){n.readyState===FileReader.DONE&&e(n.result)}}));case 26:r=e.sent;case 27:if(t.type!==s.LO.svg){e.next=43;break}return e.prev=28,e.next=31,Promise.all([n.e(736),n.e(499)]).then(n.bind(n,673));case 31:return e.next=33,e.sent.decodeSvgMetadata({svg:r});case 33:return e.abrupt("return",e.sent);case 36:if(e.prev=36,e.t1=e.catch(28),"INVALID"!==e.t1.message){e.next=42;break}throw new DOMException(C("alerts.imageDoesNotContainScene"),"EncodingError");case 42:throw new DOMException(C("alerts.cannotRestoreFromImage"),"EncodingError");case 43:return e.abrupt("return",r);case 44:case"end":return e.stop()}}),e,null,[[1,9],[28,36]])})));return function(t){return e.apply(this,arguments)}}(),Dd=function(e){var t;return e&&(null===(t=e.name.match(/\.(json|excalidraw|png|svg)$/))||void 0===t?void 0:t[1])||null},Rd=function(e){var t=Dd(e);return"png"===t||"svg"===t},zd=function(e){var t=(e||{}).type;return!!t&&s.jo.includes(t)},Nd=function(){var e=(0,d.Z)(g().mark((function e(t,n,r){var o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ld(t);case 2:if(o=e.sent,e.prev=3,i=JSON.parse(o),Qd(i)){e.next=7;break}throw new Error(C("alerts.couldNotLoadInvalidFile"));case 7:return a=Md({elements:Ts(i.elements||[]),appState:Ad(Ad({theme:null==n?void 0:n.theme,fileHandle:t.handle||null},Bn(i.appState||{})),n?$c(i.elements||[],n):{}),files:i.files},n,r),e.abrupt("return",a);case 11:throw e.prev=11,e.t0=e.catch(3),console.error(e.t0.message),new Error(C("alerts.couldNotLoadInvalidFile"));case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Hd=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ld(t);case 2:if(n=e.sent,(r=JSON.parse(n)).type===s.r8.excalidrawLibrary){e.next=6;break}throw new Error(C("alerts.couldNotLoadInvalidFile"));case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bd=function(){var e=(0,d.Z)(g().mark((function e(t){return g().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 Wc(C("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)}}(),Fd=function(){var e=(0,d.Z)(g().mark((function e(t){var n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=window.crypto.subtle,e.next=4,t.arrayBuffer();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",(r=new Uint8Array(n),Array.from(r).map((function(e){return"0".concat(e.toString(16)).slice(-2)})).join("")));case 11:return e.prev=11,e.t2=e.catch(0),console.error(e.t2),e.abrupt("return",Ue(40));case 15:case"end":return e.stop()}var r}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),Ud=function(){var e=(0,d.Z)(g().mark((function e(t){return g().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)}}(),Kd=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;l<r.length;l++)a[l]=r.charCodeAt(l);return new File([i],t,{type:o})},Wd=function(){var e=(0,d.Z)(g().mark((function e(t,r){var o,i,a,l,c,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type!==s.LO.svg){e.next=2;break}return e.abrupt("return",t);case 2:return e.next=4,Promise.all([n.e(736).then(n.t.bind(n,4881,23)).then((function(e){return e.default})),n.e(736).then(n.bind(n,100)).then((function(e){return e.default}))]);case 4:if(o=e.sent,i=h(o,2),a=i[0],l=i[1],c=l({pica:a({features:["js","wasm"]})}),r.outputType&&(u=r.outputType,c._create_blob=function(e){return this.pica.toBlob(e.out_canvas,u,.8).then((function(t){return e.out_blob=t,e}))}),zd(t)){e.next=12;break}throw new Error(C("errors.unsupportedFileType"));case 12:return e.t0=File,e.next=15,c.toBlob(t,{max:r.maxWidthOrHeight});case 15:return e.t1=e.sent,e.t2=[e.t1],e.t3=t.name,e.t4={type:r.outputType||t.type},e.abrupt("return",new e.t0(e.t2,e.t3,e.t4));case 20:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Vd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new File([(new TextEncoder).encode(e)],t,{type:s.LO.svg})};function Gd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zd(e,t)}(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 Zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yd=function(e,t){var n,r={},o=Gd(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;!i.isDeleted&&"fileId"in i&&i.fileId&&t[i.fileId]&&(r[i.fileId]=t[i.fileId])}}catch(e){o.e(e)}finally{o.f()}return r},Xd=function(e,t,n,r){var o={type:s.r8.excalidraw,version:s.Kr.excalidraw,source:s.pb,elements:"local"===r?Ts(e):Ms(e),appState:"local"===r?Bn(t):Fn(t),files:"local"===r?Yd(e,n):void 0};return JSON.stringify(o,null,2)},qd=function(){var e=(0,d.Z)(g().mark((function e(t,n,r){var o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Xd(t,n,r,"local"),i=new Blob([o],{type:s.LO.excalidraw}),e.next=4,xd(i,{name:n.name,extension:"excalidraw",description:"Excalidraw file",fileHandle:Rd(n.fileHandle)?null:n.fileHandle});case 4:return a=e.sent,e.abrupt("return",{fileHandle:a});case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),$d=function(){var e=(0,d.Z)(g().mark((function e(t,n){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yd({description:"Excalidraw files"});case 2:return r=e.sent,e.abrupt("return",Nd(r,t,n));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Qd=function(e){return(null==e?void 0:e.type)===s.r8.excalidraw&&(!e.elements||Array.isArray(e.elements)&&(!e.appState||"object"===T(e.appState)))},Jd=function(e){return"object"===T(e)&&e&&e.type===s.r8.excalidrawLibrary&&(1===e.version||2===e.version)},ef=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={type:s.r8.excalidrawLibrary,version:s.Kr.excalidrawLibrary,source:s.pb,libraryItems:t},r=JSON.stringify(n,null,2),e.next=4,xd(new Blob([r],{type:s.LO.excalidrawlib}),{name:"library",extension:"excalidrawlib",description:"Excalidraw library file"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),tf=function(){var e=(0,d.Z)(g().mark((function e(t){var n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yd({description:"Excalidraw library files"});case 2:return n=e.sent,e.next=5,t.importLibrary(n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function nf(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 rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var of=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},af=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fileIds,r=t.files,o=t.imageCache,i=new Map,a=new Map,e.next=5,Promise.all(n.reduce((function(e,t){var n=r[t];return n&&!i.has(t)?(i.set(t,!0),e.concat((0,d.Z)(g().mark((function e(){var r,i,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.mimeType!==s.LO.binary){e.next=3;break}throw new Error("Only images can be added to ImageCache");case 3:return r=of(n.dataURL),i={image:r,mimeType:n.mimeType},o.set(t,i),e.next=8,r;case 8:l=e.sent,o.set(t,rf(rf({},i),{},{image:l})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),a.set(t,!0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))())):e}),[]));case 5:return e.abrupt("return",{imageCache:o,updatedFiles:i,erroredFiles:a});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lf=function(e){return e.filter((function(e){return Ke(e)}))},cf=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(new DOMParser).parseFromString(t,s.LO.svg),r=n.querySelector("svg"),!n.querySelector("parsererror")&&"svg"===(null==(o=r)?void 0:o.nodeName.toLowerCase())){e.next=7;break}throw new Error(C("errors.invalidSVGString"));case 7:return r.hasAttribute("xmlns")||r.setAttribute("xmlns",s.hR),e.abrupt("return",r.outerHTML);case 9:case"end":return e.stop()}var o}),e)})));return function(t){return e.apply(this,arguments)}}(),sf="\x3c!-- svg-source:excalidraw --\x3e",uf=function(){var e=(0,d.Z)(g().mark((function e(t,n,r,o){var i,a,l,c,u,d,f,p,m,v,b,y,x,w,k,E,_,S,j=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.exportBackground,a=o.exportPadding,l=void 0===a?s.qy:a,c=o.viewBackgroundColor,u=j.length>4&&void 0!==j[4]?j[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}},d=ff(t,l),f=h(d,4),p=f[0],m=f[1],v=f[2],b=f[3],y=u(v,b),x=y.canvas,w=y.scale,k=void 0===w?1:w,E=zn(),e.next=7,af({imageCache:new Map,fileIds:lf(t).map((function(e){return e.fileId})),files:r});case 7:return _=e.sent,S=_.imageCache,Nu(t,n,null,k,He.canvas(x),x,{viewBackgroundColor:i?c:null,scrollX:-p+l,scrollY:-m+l,zoom:E.zoom,remotePointerViewportCoords:{},remoteSelectedElementIds:{},shouldCacheIgnoreZoom:!1,remotePointerUsernames:{},remotePointerUserStates:{},theme:n.exportWithDarkMode?"dark":"light",imageCache:S,renderScrollbars:!1,renderSelection:!1,renderGrid:!1,isExporting:!0}),e.abrupt("return",x);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),df=function(){var e=(0,d.Z)(g().mark((function e(t,r,o){var i,a,l,c,u,d,f,p,m,v,b,y,x,w,k,E;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.exportPadding,a=void 0===i?s.qy:i,l=r.viewBackgroundColor,c=r.exportScale,u=void 0===c?1:c,d=r.exportEmbedScene,f="",!d){e.next=14;break}return e.prev=3,e.next=6,Promise.all([n.e(736),n.e(499)]).then(n.bind(n,673));case 6:return e.next=8,e.sent.encodeSvgMetadata({text:Xd(t,r,o||{},"local")});case 8:f=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.error(e.t0);case 14:return p=ff(t,a),m=h(p,4),v=m[0],b=m[1],y=m[2],x=m[3],(w=document.createElementNS(s.hR,"svg")).setAttribute("version","1.1"),w.setAttribute("xmlns",s.hR),w.setAttribute("viewBox","0 0 ".concat(y," ").concat(x)),w.setAttribute("width","".concat(y*u)),w.setAttribute("height","".concat(x*u)),r.exportWithDarkMode&&w.setAttribute("filter",s.ZF),w.innerHTML="\n ".concat(sf,"\n ").concat(f,'\n <defs>\n <style>\n @font-face {\n font-family: "Virgil";\n src: url("https://excalidraw.com/Virgil.woff2");\n }\n @font-face {\n font-family: "Cascadia";\n src: url("https://excalidraw.com/Cascadia.woff2");\n }\n </style>\n </defs>\n '),r.exportBackground&&l&&((k=w.ownerDocument.createElementNS(s.hR,"rect")).setAttribute("x","0"),k.setAttribute("y","0"),k.setAttribute("width","".concat(y)),k.setAttribute("height","".concat(x)),k.setAttribute("fill",l),w.appendChild(k)),E=He.svg(w),Gu(t,E,w,o||{},{offsetX:-v+a,offsetY:-b+a,exportWithDarkMode:r.exportWithDarkMode}),e.abrupt("return",w);case 27:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r){return e.apply(this,arguments)}}(),ff=function(e,t){var n=h(kt(e),4),r=n[0],o=n[1],i=n[2],a=n[3];return[r,o,hn(r,i)+2*t,hn(o,a)+t+t]};function pf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return hf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hf(e,t)}(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 hf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mf(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 gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mf(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vf=32,bf=12,yf=256,xf="NOT_SPREADSHEET",wf="VALID_SPREADSHEET",kf=function(e){var t=/^[$€£¥₩]?([0-9,]+(\.[0-9]+)?)$/.exec(e);return t?parseFloat(t[1].replace(/,/g,"")):null},Ef=function(e,t){return e.slice(1).every((function(e){return null!==kf(e[t])}))},_f=function(e){var t=e[0].length;if(t>2)return{type:xf,reason:"More than 2 columns"};if(1===t){if(!Ef(e,0))return{type:xf,reason:"Value is not numeric"};var n=null===kf(e[0][0]),r=(n?e.slice(1):e).map((function(e){return kf(e[0])}));return r.length<2?{type:xf,reason:"Less than two rows"}:{type:wf,spreadsheet:{title:n?e[0][0]:null,labels:null,values:r}}}var o=Ef(e,0)?0:1;if(!Ef(e,o))return{type:xf,reason:"Value is not numeric"};var i=(o+1)%2,a=null===kf(e[0][o]),l=a?e.slice(1):e;return l.length<2?{type:xf,reason:"Less than 2 rows"}:{type:wf,spreadsheet:{title:a?e[0][o]:null,labels:l.map((function(e){return e[i]})),values:l.map((function(e){return kf(e[o])}))}}},Sf=Ot.elementBackground.slice(2,Ot.elementBackground.length),jf={fillStyle:"hachure",fontFamily:s.rk,fontSize:s.n5,opacity:100,roughness:1,strokeColor:Ot.elementStroke[0],strokeSharpness:"sharp",strokeStyle:"solid",strokeWidth:1,verticalAlign:"middle"},Cf=function(e){return{chartWidth:44*e.values.length+bf,chartHeight:280}},Of=function(e,t,n,r,o,i){var a=Cf(e),l=a.chartWidth,c=a.chartHeight,u=e.title?Ao(gf(gf({backgroundColor:o,groupIds:[r]},jf),{},{text:e.title,x:t+l/2,y:n-yf-24-s.n5,strokeSharpness:"sharp",strokeStyle:"solid",textAlign:"center"})):null,d=i?To(gf(gf({backgroundColor:o,groupIds:[r]},jf),{},{type:"rectangle",x:t,y:n-c,width:l,height:c,strokeColor:Ot.elementStroke[0],fillStyle:"solid",opacity:6})):null;return[].concat(P(d?[d]:[]),P(u?[u]:[]),P(function(e,t,n,r,o){var i;return(null===(i=e.labels)||void 0===i?void 0:i.map((function(e,i){return Ao(gf(gf({groupIds:[r],backgroundColor:o},jf),{},{text:e.length>8?"".concat(e.slice(0,5),"..."):e,x:t+44*i+24,y:n+6,width:vf,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))})))||[]}(e,t,n,r,o)),P(function(e,t,n,r,o){var i=Ao(gf(gf({groupIds:[r],backgroundColor:o},jf),{},{x:t-bf,y:n-bf,text:"0",textAlign:"right"}));return[i,Ao(gf(gf({groupIds:[r],backgroundColor:o},jf),{},{x:t-bf,y:n-yf-i.height/2,text:Math.max.apply(Math,P(e.values)).toLocaleString(),textAlign:"right"}))]}(e,t,n,r,o)),P(function(e,t,n,r,o){var i=Cf(e),a=i.chartWidth,l=i.chartHeight;return[Do(gf(gf({backgroundColor:o,groupIds:[r]},jf),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,width:a,points:[[0,0],[a,0]]})),Do(gf(gf({backgroundColor:o,groupIds:[r]},jf),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,height:l,points:[[0,0],[0,-l]]})),Do(gf(gf({backgroundColor:o,groupIds:[r]},jf),{},{type:"line",x:t,y:n-yf-bf,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:a,opacity:50,points:[[0,0],[a,0]]}))]}(e,t,n,r,o)))},If=function(e,t,n,r){return"line"===e?function(e,t,n){var r,o=Math.max.apply(Math,P(e.values)),i=ro(),a=Sf[Math.floor(Math.random()*Sf.length)],l=0,c=[],u=pf(e.values);try{for(u.s();!(r=u.n()).done;){var d=r.value,f=44*l,p=-d/o*yf;c.push([f,p]),l++}}catch(e){u.e(e)}finally{u.f()}var h=Math.max.apply(Math,P(c.map((function(e){return e[0]})))),m=Math.max.apply(Math,P(c.map((function(e){return e[1]})))),g=Math.min.apply(Math,P(c.map((function(e){return e[0]})))),v=Math.min.apply(Math,P(c.map((function(e){return e[1]})))),b=Do(gf(gf({backgroundColor:a,groupIds:[i]},jf),{},{type:"line",x:t+bf+16,y:n-bf,startArrowhead:null,endArrowhead:null,height:m-v,width:h-g,strokeWidth:2,points:c})),y=e.values.map((function(e,r){var l=44*r+6,c=-e/o*yf+6;return To(gf(gf({backgroundColor:a,groupIds:[i]},jf),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+l+16,y:n+c-24,width:bf,height:bf}))})),x=e.values.map((function(e,r){var l=44*r+6,c=e/o*yf+6+bf;return Do(gf(gf({backgroundColor:a,groupIds:[i]},jf),{},{type:"line",x:t+l+16+6,y:n-c,startArrowhead:null,endArrowhead:null,height:c,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,c]]}))}));return[].concat(P(Of(e,t,n,i,a,"production"===s.Vi.DEVELOPMENT)),[b],P(x),P(y))}(t,n,r):function(e,t,n){var r=Math.max.apply(Math,P(e.values)),o=ro(),i=Sf[Math.floor(Math.random()*Sf.length)],a=e.values.map((function(e,a){var l=e/r*yf;return To(gf(gf({backgroundColor:i,groupIds:[o]},jf),{},{type:"rectangle",x:t+44*a+bf,y:n-l-bf,width:vf,height:l}))}));return[].concat(P(a),P(Of(e,t,n,o,i,"production"===s.Vi.DEVELOPMENT)))}(t,n,r)},Mf="",Tf=!1,Pf="clipboard"in navigator&&"readText"in navigator.clipboard,Af="clipboard"in navigator&&"writeText"in navigator.clipboard,Lf="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,Df=function(){var e=(0,d.Z)(g().mark((function e(t,n,r){var o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Ds(t,n,!0),i={type:s.r8.excalidrawClipboard,elements:o,files:o.reduce((function(e,t){return Ke(t)&&r[t.fileId]&&(e[t.fileId]=r[t.fileId]),e}),{})},a=JSON.stringify(i),Mf=a,e.prev=4,Tf=!1,e.next=8,Ff(a);case 8:e.next=14;break;case 10:e.prev=10,e.t0=e.catch(4),Tf=!0,console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Rf=function(){if(!Mf)return{};try{return JSON.parse(Mf)}catch(e){return console.error(e),{}}},zf=function(e){var t=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:xf,reason:"No values"};var n=t[0].length,r=t.every((function(e){return e.length===n}));if(!r)return{type:xf,reason:"All rows don't have same number of columns"};var o=_f(t);if(o.type!==wf){var i=_f(function(e){for(var t=[],n=0;n<e[0].length;n++){for(var r=[],o=0;o<e.length;o++)r.push(e[o][n]);t.push(r)}return t}(t));if(i.type===wf)return i}return o}(e);return t.type===wf?{spreadsheet:t.spreadsheet}:null},Nf=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t){e.next=5;break}e.t0=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/plain").trim(),e.next=11;break;case 5:if(e.t1=Pf,!e.t1){e.next=10;break}return e.next=9,navigator.clipboard.readText();case 9:e.t1=e.sent;case 10:e.t0=e.t1;case 11:return r=e.t0,e.abrupt("return",r||"");case 15:return e.prev=15,e.t2=e.catch(0),e.abrupt("return","");case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t){return e.apply(this,arguments)}}(),Hf=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,o,i;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Nf(t);case 2:if((n=e.sent)&&!n.includes(sf)){e.next=5;break}return e.abrupt("return",Rf());case 5:if(!(r=zf(n))){e.next=8;break}return e.abrupt("return",r);case 8:if(o=Rf(),e.prev=9,i=JSON.parse(n),a=i,![s.r8.excalidraw,s.r8.excalidrawClipboard].includes(null==a?void 0:a.type)||!Array.isArray(a.elements)){e.next=13;break}return e.abrupt("return",{elements:i.elements,files:i.files});case 13:return e.abrupt("return",o);case 16:return e.prev=16,e.t0=e.catch(9),e.abrupt("return",Tf&&o.elements?o:{text:n});case 19:case"end":return e.stop()}var a}),e,null,[[9,16]])})));return function(t){return e.apply(this,arguments)}}(),Bf=function(){var e=(0,d.Z)(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.clipboard.write([new window.ClipboardItem(A({},s.LO.png,t))]);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ff=function(){var e=(0,d.Z)(g().mark((function e(t){var n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,!Af){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||Uf(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)}}(),Uf=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},Kf=function(){var e=(0,d.Z)(g().mark((function e(t,r,o,i,a){var l,c,u,d,f,p,h,m,v,b;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=a.exportBackground,c=a.exportPadding,u=void 0===c?s.qy:c,d=a.viewBackgroundColor,f=a.name,p=a.fileHandle,h=void 0===p?null:p,0!==r.length){e.next=3;break}throw new Error(C("alerts.cannotExportEmptyCanvas"));case 3:if("svg"!==t&&"clipboard-svg"!==t){e.next=17;break}return e.next=6,df(r,{exportBackground:l,exportWithDarkMode:o.exportWithDarkMode,viewBackgroundColor:d,exportPadding:u,exportScale:o.exportScale,exportEmbedScene:o.exportEmbedScene&&"svg"===t},i);case 6:if(m=e.sent,"svg"!==t){e.next=13;break}return e.next=10,xd(new Blob([m.outerHTML],{type:s.LO.svg}),{description:"Export to SVG",name:f,extension:"svg",fileHandle:h});case 10:return e.abrupt("return",e.sent);case 13:if("clipboard-svg"!==t){e.next=17;break}return e.next=16,Ff(m.outerHTML);case 16:return e.abrupt("return");case 17:return e.next=19,uf(r,o,i,{exportBackground:l,viewBackgroundColor:d,exportPadding:u});case 19:return(v=e.sent).style.display="none",document.body.appendChild(v),e.next=24,Bd(v);case 24:if(b=e.sent,v.remove(),"png"!==t){e.next=38;break}if(!o.exportEmbedScene){e.next=33;break}return e.next=30,Promise.all([n.e(736),n.e(499)]).then(n.bind(n,673));case 30:return e.next=32,e.sent.encodePngMetadata({blob:b,metadata:Xd(r,o,i,"local")});case 32:b=e.sent;case 33:return e.next=35,xd(b,{description:"Export to PNG",name:f,extension:"png",fileHandle:h});case 35:return e.abrupt("return",e.sent);case 38:if("clipboard"!==t){e.next=49;break}return e.prev=39,e.next=42,Bf(b);case 42:e.next=49;break;case 44:if(e.prev=44,e.t0=e.catch(39),"CANVAS_POSSIBLY_TOO_BIG"!==e.t0.name){e.next=48;break}throw e.t0;case 48:throw new Error(C("alerts.couldNotCopyToClipboard"));case 49:case"end":return e.stop()}}),e,null,[[39,44]])})));return function(t,n,r,o,i){return e.apply(this,arguments)}}();function Wf(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 Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gf=function(){var e=(0,d.Z)(g().mark((function e(t,n,r){var o,i,a,l,c,s;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(o=n).exportBackground,a=o.viewBackgroundColor,l=o.name,c=o.fileHandle,s=Dd(c),c&&("png"===(u=s)||"svg"===u)){e.next=4;break}throw new Error("fileHandle should exist and should be of type svg or png when resaving");case 4:return n=Vf(Vf({},n),{},{exportEmbedScene:!0}),e.next=7,Kf(s,Cs(t),n,r,{exportBackground:i,viewBackgroundColor:a,name:l,fileHandle:c});case 7:return e.abrupt("return",{fileHandle:c});case 8:case"end":return e.stop()}var u}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Zf=(n(7225),function(e){var t=e.children,n=e.checked,r=e.onChange,o=e.className;return(0,O.jsxs)("div",{className:Fe("Checkbox",o,{"is-checked":n}),onClick:function(e){r(!n,e),e.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,O.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":n,children:sl}),(0,O.jsx)("div",{className:"Checkbox-label",children:t})]})});n(4623);function Yf(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 Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf=function(e){var t=e.children,n=e.gap,r=e.align,o=e.justifyContent,i=e.className,a=e.style;return(0,O.jsx)("div",{className:Fe("Stack Stack_horizontal",i),style:Xf({"--gap":n,alignItems:r,justifyContent:o},a),children:t})},$f=function(e){var t=e.children,n=e.gap,r=e.align,o=e.justifyContent,i=e.className;return(0,O.jsx)("div",{className:Fe("Stack Stack_vertical",i),style:{"--gap":n,justifyItems:r,justifyContent:o},children:t})},Qf=(n(554),function(e){var t=e.fileName,n=e.onSave;return(0,O.jsxs)(qf,{className:"ActiveFile",gap:1,align:"center",children:[(0,O.jsxs)("span",{className:"ActiveFile__fileName",children:[Kl,(0,O.jsx)("span",{children:t})]}),(0,O.jsx)(Zc,{type:"icon",icon:dl,title:C("buttons.save"),"aria-label":C("buttons.save"),onClick:n,"data-testid":"save-button"})]})});function Jf(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 ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Pc({name:"changeProjectName",perform:function(e,t,n){return hu("change","title"),{appState:ep(ep({},t),{},{name:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.appProps;return(0,O.jsx)(mu,{label:C("labels.fileTitle"),value:t.name||"Unnamed",onChange:function(e){return n(e)},isNameEditable:void 0===r.name&&!t.viewModeEnabled})}}),Pc({name:"changeExportScale",perform:function(e,t,n){return{appState:ep(ep({},t),{},{exportScale:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=Cs(t),i=As(o,n)?Ds(o,n):o;return(0,O.jsx)(O.Fragment,{children:s.ZB.map((function(e){var t=function(e,t,n){var r=h(ff(e,t).map((function(e){return Math.trunc(e*n)})),4);return[r[2],r[3]]}(i,s.qy,e),o=h(t,2),a=o[0],l=o[1],c="".concat(C("buttons.scale")," ").concat(e,"x (").concat(a,"x").concat(l,")");return(0,O.jsx)(Zc,{size:"small",type:"radio",icon:"".concat(e,"x"),name:"export-canvas-scale",title:c,"aria-label":c,id:"export-canvas-scale",checked:e===n.exportScale,onChange:function(){return r(e)}},e)}))})}}),Pc({name:"changeExportBackground",perform:function(e,t,n){return{appState:ep(ep({},t),{},{exportBackground:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)(Zf,{checked:t.exportBackground,onChange:function(e){return n(e)},children:C("labels.withBackground")})}}),Pc({name:"changeExportEmbedScene",perform:function(e,t,n){return{appState:ep(ep({},t),{},{exportEmbedScene:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsxs)(Zf,{checked:t.exportEmbedScene,onChange:function(e){return n(e)},children:[C("labels.exportEmbedScene"),(0,O.jsx)(ns,{label:C("labels.exportEmbedScene_details"),long:!0,children:(0,O.jsx)("div",{className:"excalidraw-tooltip-icon",children:jl})})]})}}),Pc({name:"saveToActiveFile",perform:(tp=(0,d.Z)(g().mark((function e(t,n,r,o){var i,a,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!!n.fileHandle,e.prev=1,!Rd(n.fileHandle)){e.next=8;break}return e.next=5,Gf(t,n,o.files);case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,qd(t,n,o.files);case 10:e.t0=e.sent;case 11:return a=e.t0,l=a.fileHandle,e.abrupt("return",{commitToHistory:!1,appState:ep(ep({},n),{},{fileHandle:l,toastMessage:i?null!=l&&l.name?C("toast.fileSavedToFilename").replace("{filename}",'"'.concat(l.name,'"')):C("toast.fileSaved"):null})});case 16:return e.prev=16,e.t1=e.catch(1),"AbortError"!==(null===e.t1||void 0===e.t1?void 0:e.t1.name)?console.error(e.t1):console.warn(e.t1),e.abrupt("return",{commitToHistory:!1});case 20:case"end":return e.stop()}}),e,null,[[1,16]])}))),function(e,t,n,r){return tp.apply(this,arguments)}),keyTest:function(e){return e.key===en.S&&e[en.CTRL_OR_CMD]&&!e.shiftKey},PanelComponent:function(e){var t,n=e.updateData,r=e.appState;return(0,O.jsx)(Qf,{onSave:function(){return n(null)},fileName:null===(t=r.fileHandle)||void 0===t?void 0:t.name})}});var tp,np,rp,op=Pc({name:"saveFileToDisk",perform:(np=(0,d.Z)(g().mark((function e(t,n,r,o){var i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,qd(t,ep(ep({},n),{},{fileHandle:null}),o.files);case 3:return i=e.sent,a=i.fileHandle,e.abrupt("return",{commitToHistory:!1,appState:ep(ep({},n),{},{fileHandle:a})});case 8:return e.prev=8,e.t0=e.catch(0),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)?console.error(e.t0):console.warn(e.t0),e.abrupt("return",{commitToHistory:!1});case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t,n,r){return np.apply(this,arguments)}),keyTest:function(e){return e.key===en.S&&e.shiftKey&&e[en.CTRL_OR_CMD]},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:fl,title:C("buttons.saveAs"),"aria-label":C("buttons.saveAs"),showAriaLabel:eg(),hidden:!gd,onClick:function(){return t(null)},"data-testid":"save-as-button"})}});Pc({name:"loadScene",perform:(rp=(0,d.Z)(g().mark((function e(t,n,r,o){var i,a,l,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$d(n,t);case 3:return i=e.sent,a=i.elements,l=i.appState,c=i.files,e.abrupt("return",{elements:a,appState:l,files:c,commitToHistory:!0});case 10:if(e.prev=10,e.t0=e.catch(0),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)){e.next=15;break}return console.warn(e.t0),e.abrupt("return",!1);case 15:return e.abrupt("return",{elements:t,appState:ep(ep({},n),{},{errorMessage:e.t0.message}),files:o.files,commitToHistory:!1});case 16:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e,t,n,r){return rp.apply(this,arguments)}),keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.key===en.O},PanelComponent:function(e){var t=e.updateData;e.appState;return(0,O.jsx)(Zc,{type:"button",icon:pl,title:C("buttons.load"),"aria-label":C("buttons.load"),showAriaLabel:eg(),onClick:t,"data-testid":"load-button"})}}),Pc({name:"exportWithDarkMode",perform:function(e,t,n){return{appState:ep(ep({},t),{},{exportWithDarkMode:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:(0,O.jsx)(Yc,{value:t.exportWithDarkMode?s.C6.DARK:s.C6.LIGHT,onChange:function(e){n(e===s.C6.DARK)},title:C("labels.toggleExportColorScheme")})})}});function ip(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lp="{}",cp=Pc({name:"copyStyles",perform:function(e,t){var n=e.find((function(e){return t.selectedElementIds[e.id]}));return n&&(lp=JSON.stringify(n)),{appState:ap(ap({},t),{},{toastMessage:C("toast.copyStyles")}),commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Vt}}),sp=Pc({name:"pasteStyles",perform:function(e,t){var n,r=JSON.parse(lp);return"text"!==(null==(n=r)?void 0:n.type)&&"diamond"!==(null==n?void 0:n.type)&&"rectangle"!==(null==n?void 0:n.type)&&"ellipse"!==(null==n?void 0:n.type)&&"arrow"!==(null==n?void 0:n.type)&&"freedraw"!==(null==n?void 0:n.type)&&"line"!==(null==n?void 0:n.type)?{elements:e,commitToHistory:!1}:{elements:e.map((function(e){if(t.selectedElementIds[e.id]){var n=lo(e,{backgroundColor:null==r?void 0:r.backgroundColor,strokeWidth:null==r?void 0:r.strokeWidth,strokeColor:null==r?void 0:r.strokeColor,strokeStyle:null==r?void 0:r.strokeStyle,fillStyle:null==r?void 0:r.fillStyle,opacity:null==r?void 0:r.opacity,roughness:null==r?void 0:r.roughness});return Ve(n)&&Ve(e)&&(ao(n,{fontSize:(null==r?void 0:r.fontSize)||s.n5,fontFamily:(null==r?void 0:r.fontFamily)||s.rk,textAlign:(null==r?void 0:r.textAlign)||s.Hg}),ur(e,_r(e))),n}return e})),commitToHistory:!0}},contextItemLabel:"labels.pasteStyles",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.altKey&&e.code===qt}}),up=function(e){return(0,O.jsx)("button",{className:"help-icon",onClick:e.onClick,type:"button",title:"".concat(e.title," — ?"),"aria-label":e.title,children:jl})};function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Pc({name:"toggleCanvasMenu",perform:function(e,t){return{appState:fp(fp({},t),{},{openMenu:"canvas"===t.openMenu?null:"canvas"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)(Zc,{type:"button",icon:El,"aria-label":C("buttons.menu"),onClick:n,selected:"canvas"===t.openMenu})}}),Pc({name:"toggleEditMenu",perform:function(e,t){return{appState:fp(fp({},t),{},{openMenu:"shape"===t.openMenu?null:"shape"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{visible:ks(n,Cs(t)),type:"button",icon:gl,"aria-label":C("buttons.edit"),onClick:r,selected:"shape"===n.openMenu})}}),Pc({name:"toggleFullScreen",perform:function(){return bn()||document.documentElement.requestFullscreen(),bn()&&document.exitFullscreen(),{commitToHistory:!1}},keyTest:function(e){return e.code===Yt&&!e[en.CTRL_OR_CMD]}}),Pc({name:"toggleShortcuts",perform:function(e,t,n,r){var o=r.focusContainer;return t.showHelpDialog&&o(),{appState:fp(fp({},t),{},{showHelpDialog:!t.showHelpDialog}),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(up,{title:C("helpDialog.title"),onClick:t})},keyTest:function(e){return e.key===en.QUESTION_MARK}});function pp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gp(e,t)}(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 gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vp=function(e,t){var n=Ds(Cs(e),t,!0);return n.length>=2&&!function(e){if(e.length>=2){var t,n=mp(e[0].groupIds);try{var r=function(){var n=t.value;if(e.reduce((function(e,t){return e&&Eo(t,n)}),!0))return{v:!0}};for(n.s();!(t=n.n()).done;){var o=r();if("object"===T(o))return o.v}}catch(e){n.e(e)}finally{n.f()}}return!1}(n)},bp=Pc({name:"group",perform:function(e,t){var n=Ds(Cs(e),t,!0);if(n.length<2)return{appState:t,elements:e,commitToHistory:!1};var r=wo(t);if(1===r.length){var o=r[0],i=new Set(_o(e,o).map((function(e){return e.id}))),a=new Set(n.map((function(e){return e.id})));if(new Set([].concat(P(Array.from(i)),P(Array.from(a)))).size===i.size)return{appState:t,elements:e,commitToHistory:!1}}var l=ro(),c=Tn(n),s=e.map((function(e){return c.get(e.id)?lo(e,{groupIds:So(e.groupIds,l,t.editingGroupId)}):e})),u=_o(s,l),d=u[u.length-1],f=s.lastIndexOf(d),p=s.slice(f+1),h=s.slice(0,f).filter((function(e){return!Eo(e,l)})),m=[].concat(P(h),P(u),P(p));return{appState:bo(l,hp(hp({},t),{},{selectedGroupIds:{}}),Cs(m)),elements:m,commitToHistory:!0}},contextItemLabel:"labels.group",contextItemPredicate:function(e,t){return vp(e,t)},keyTest:function(e){return!e.shiftKey&&e[en.CTRL_OR_CMD]&&e.code===Zt},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!vp(t,n),type:"button",icon:(0,O.jsx)(Wl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.group")," — ").concat(yn("CtrlOrCmd+G")),"aria-label":C("labels.group"),visible:As(Cs(t),n)})}}),yp=Pc({name:"ungroup",perform:function(e,t){if(0===wo(t).length)return{appState:t,elements:e,commitToHistory:!1};var n=[],r=e.map((function(e){et(e)&&n.push(e.id);var r=function(e,t){return e.filter((function(e){return!t[e]}))}(e.groupIds,t.selectedGroupIds);return r.length===e.groupIds.length?e:lo(e,{groupIds:r})})),o=ko(hp(hp({},t),{},{selectedGroupIds:{}}),Cs(r));return n.forEach((function(e){return o.selectedElementIds[e]=!1})),{appState:o,elements:r,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e[en.CTRL_OR_CMD]&&e.code===Zt},contextItemLabel:"labels.ungroup",contextItemPredicate:function(e,t){return wo(t).length>0},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{type:"button",hidden:0===wo(n).length,icon:(0,O.jsx)(Vl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.ungroup")," — ").concat(yn("CtrlOrCmd+Shift+G")),"aria-label":C("labels.ungroup"),visible:As(Cs(t),n)})}}),xp=(n(2789),function(e){var t=e.children,n=e.color,r=e.border,o=e.onClick;return(0,O.jsx)("div",{className:"Avatar",style:{background:n,border:"1px solid ".concat(r)},onClick:o,children:t})});function wp(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 kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Pc({name:"goToCollaborator",perform:function(e,t,n){var r=n;return r?{appState:kp(kp(kp({},t),qc({scenePoint:r,viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})),{},{openMenu:"canvas"===t.openMenu?null:t.openMenu}),commitToHistory:!1}:{appState:t,commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.data,o=null==r?void 0:r.id;if(!o)return null;var i=t.collaborators.get(o);if(!i)return null;var a=gu(o,t),l=a.background,c=a.stroke,s=function(e){if(!e)return"?";var t=e.trim().split(" ");if(t.length<2)return t[0].substring(0,2).toUpperCase();var n=t[0],r=t[t.length-1];return(n[0]+r[0]).toUpperCase()}(i.username);return(0,O.jsx)(xp,{color:l,border:c,onClick:function(){return n(i.pointer)},children:s})}});function Ep(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sp=Pc({name:"addToLibrary",perform:function(e,t,n,r){var o=Ds(Cs(e),t,!0);return o.some((function(e){return"image"===e.type}))?{commitToHistory:!1,appState:_p(_p({},t),{},{errorMessage:"Support for adding images to the library coming soon!"})}:r.library.loadLibrary().then((function(e){return r.library.saveLibrary([{id:ro(),status:"unpublished",elements:o.map(Ro),created:Date.now()}].concat(P(e)))})).then((function(){return{commitToHistory:!1,appState:_p(_p({},t),{},{toastMessage:C("toast.addedToLibrary")})}})).catch((function(e){return{commitToHistory:!1,appState:_p(_p({},t),{},{errorMessage:e.message})}}))},contextItemLabel:"labels.addToLibrary"});function jp(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Op=function(e,t,n){var r=n.axis,o=n.position,i=St(e),a=h("x"===r?["minX","maxX"]:["minY","maxY"],2),l=a[0],c=a[1],s={x:0,y:0};return Cp(Cp({},s),{},A({},r,"start"===o?t[l]-i[l]:"end"===o?t[c]-i[c]:(t[l]+t[c])/2-(i[l]+i[c])/2))},Ip=function(e,t){return Ds(Cs(e),t).length>1},Mp=function(e,t,n){var r=function(e,t){var n=jo(e),r=St(e);return n.flatMap((function(e){var n=Op(e,r,t);return e.map((function(e){return lo(e,{x:e.x+n.x,y:e.y+n.y})}))}))}(Ds(Cs(e),t),n),o=Tn(r);return e.map((function(e){return o.get(e.id)||e}))};Pc({name:"alignTop",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"start",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&e.key===en.ARROW_UP},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(Tl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.alignTop")," — ").concat(yn("CtrlOrCmd+Shift+Up")),"aria-label":C("labels.alignTop"),visible:As(Cs(t),n)})}}),Pc({name:"alignBottom",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"end",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&e.key===en.ARROW_DOWN},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(Pl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.alignBottom")," — ").concat(yn("CtrlOrCmd+Shift+Down")),"aria-label":C("labels.alignBottom"),visible:As(Cs(t),n)})}}),Pc({name:"alignLeft",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"start",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&e.key===en.ARROW_LEFT},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(Al,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.alignLeft")," — ").concat(yn("CtrlOrCmd+Shift+Left")),"aria-label":C("labels.alignLeft"),visible:As(Cs(t),n)})}}),Pc({name:"alignRight",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"end",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&e.key===en.ARROW_RIGHT},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(Ll,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.alignRight")," — ").concat(yn("CtrlOrCmd+Shift+Right")),"aria-label":C("labels.alignRight"),visible:As(Cs(t),n)})}}),Pc({name:"alignVerticallyCentered",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"center",axis:"y"}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(zl,{theme:n.theme}),onClick:function(){return r(null)},title:C("labels.centerVertically"),"aria-label":C("labels.centerVertically"),visible:As(Cs(t),n)})}}),Pc({name:"alignHorizontallyCentered",perform:function(e,t){return{appState:t,elements:Mp(e,t,{position:"center",axis:"x"}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ip(t,n),type:"button",icon:(0,O.jsx)(Nl,{theme:n.theme}),onClick:function(){return r(null)},title:C("labels.centerHorizontally"),"aria-label":C("labels.centerHorizontally"),visible:As(Cs(t),n)})}});function Tp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pp(e,t)}(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 Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ap=function(e,t){return Ds(Cs(e),t).length>1},Lp=function(e,t,n){var r=function(e,t){var n,r=h("x"===t.axis?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],4),o=r[0],i=r[1],a=r[2],l=r[3],c=St(e),s=jo(e).map((function(e){return[e,St(e)]})).sort((function(e,t){return e[1][i]-t[1][i]})),u=0,d=Tp(s);try{for(d.s();!(n=d.n()).done;)u+=n.value[1][l]}catch(e){d.e(e)}finally{d.f()}var f=(c[l]-u)/(s.length-1);if(f<0){var p=s.findIndex((function(e){return e[1][o]===c[o]})),m=s.findIndex((function(e){return e[1][a]===c[a]})),g=(s[m][1][i]-s[p][1][i])/(s.length-1),v=s[p][1][i];return s.flatMap((function(e,n){var r=h(e,2),o=r[0],a=r[1],l={x:0,y:0};return n!==p&&n!==m&&(v+=g,l[t.axis]=v-a[i]),o.map((function(e){return lo(e,{x:e.x+l.x,y:e.y+l.y})}))}))}var b=c[o];return s.flatMap((function(e){var n=h(e,2),r=n[0],i=n[1],a={x:0,y:0};return a[t.axis]=b-i[o],b+=f,b+=i[l],r.map((function(e){return lo(e,{x:e.x+a.x,y:e.y+a.y})}))}))}(Ds(Cs(e),t),n),o=Tn(r);return e.map((function(e){return o.get(e.id)||e}))},Dp=(Pc({name:"distributeHorizontally",perform:function(e,t){return{appState:t,elements:Lp(e,t,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return e.altKey&&e.code===Xt},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ap(t,n),type:"button",icon:(0,O.jsx)(Dl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.distributeHorizontally")," — ").concat(yn("Alt+H")),"aria-label":C("labels.distributeHorizontally"),visible:As(Cs(t),n)})}}),Pc({name:"distributeVertically",perform:function(e,t){return{appState:t,elements:Lp(e,t,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return e.altKey&&e.code===qt},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,O.jsx)(Zc,{hidden:!Ap(t,n),type:"button",icon:(0,O.jsx)(Rl,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat(C("labels.distributeVertically")," — ").concat(yn("Alt+V")),"aria-label":C("labels.distributeVertically"),visible:As(Cs(t),n)})}}),Pc({name:"flipHorizontal",perform:function(e,t){return{elements:zp(e,t,"horizontal"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyH"===e.code},contextItemLabel:"labels.flipHorizontal",contextItemPredicate:function(e,t){return function(e,t){var n=Ds(Cs(e),t);return 1===n.length&&"text"!==n[0].type}(e,t)}})),Rp=Pc({name:"flipVertical",perform:function(e,t){return{elements:zp(e,t,"vertical"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyV"===e.code},contextItemLabel:"labels.flipVertical",contextItemPredicate:function(e,t){return function(e,t){return 1===Ds(Cs(e),t).length}(e,t)}}),zp=function(e,t,n){var r=Ds(Cs(e),t);if(r.length>1)return e;var o=Np(r,t,n),i=Tn(o);return e.map((function(e){return i.get(e.id)||e}))},Np=function(e,t,n){return e.forEach((function(e){Hp(e,t),"vertical"===n&&Bp(e,Math.PI)})),e},Hp=function(e,t){var n=e.x,r=e.y,o=e.width,i=e.height,a=Na(e.angle),l=0;(Ye(e)||Ge(e))&&(l=2*e.points.reduce((function(e,t){return Math.max(e,t[0])}),0)-e.width),ao(e,{angle:Na(0)});var c=Vo(e,t.zoom),s=!0,u=0,d=c.nw;if(d||(s=!1,d=c.ne)){if(Ye(e)){for(var f=1;f<e.points.length;f++)aa.movePoints(e,[{index:f,point:[-e.points[f][0],e.points[f][1]]}]);aa.normalizePoints(e)}else u=s?e.x+2*o:e.x-2*o,Wa(e,!0,e,s?"nw":"ne",!1,u,d[1]),ao(e,{width:o,height:i});var p=Na(2*Math.PI-a);p<0&&(p=Na(p+2*Math.PI)),ao(e,{angle:p}),ao(e,{x:n+l,y:r}),ka(e)}else ao(e,{angle:a})},Bp=function(e,t){var n=e.x,r=e.y,o=Na(e.angle+t);o<0&&(o=Na(2*Math.PI+o)),ao(e,{angle:o}),ao(e,{x:n,y:r})};function Fp(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 Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kp=Pc({name:"copy",perform:function(e,t,n,r){return Df(Cs(e),t,r.files),{commitToHistory:!1}},contextItemLabel:"labels.copy",keyTest:void 0}),Wp=Pc({name:"cut",perform:function(e,t,n,r){return Kp.perform(e,t,n,r),Bs.perform(e,t)},contextItemLabel:"labels.cut",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.code===$t}}),Vp=Pc({name:"copyAsSvg",perform:function(){var e=(0,d.Z)(g().mark((function e(t,n,r,o){var i;return g().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=Ds(Cs(t),n,!0),e.prev=3,e.next=6,Kf("clipboard-svg",i.length?i:Cs(t),n,o.files,n);case 6:return e.abrupt("return",{commitToHistory:!1});case 9:return e.prev=9,e.t0=e.catch(3),console.error(e.t0),e.abrupt("return",{appState:Up(Up({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 13:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),contextItemLabel:"labels.copyAsSvg"}),Gp=Pc({name:"copyAsPng",perform:function(){var e=(0,d.Z)(g().mark((function e(t,n,r,o){var i;return g().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=Ds(Cs(t),n,!0),e.prev=3,e.next=6,Kf("clipboard",i.length?i:Cs(t),n,o.files,n);case 6:return e.abrupt("return",{appState:Up(Up({},n),{},{toastMessage:C("toast.copyToClipboardAsPng",{exportSelection:i.length?C("toast.selection"):C("toast.canvas"),exportColorScheme:n.exportWithDarkMode?C("buttons.darkMode"):C("buttons.lightMode")})}),commitToHistory:!1});case 9:return e.prev=9,e.t0=e.catch(3),console.error(e.t0),e.abrupt("return",{appState:Up(Up({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 13:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),contextItemLabel:"labels.copyAsPng",keyTest:function(e){return e.code===Vt&&e.altKey&&e.shiftKey}});function Zp(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 Yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xp=Pc({name:"gridMode",perform:function(e,t){return hu("view","mode","grid"),{appState:Yp(Yp({},t),{},{gridSize:this.checked(t)?null:s.k}),commitToHistory:!1}},checked:function(e){return null!==e.gridSize},contextItemLabel:"labels.showGrid",keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.code===Ut}});function qp(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qp=Pc({name:"zenMode",perform:function(e,t){return hu("view","mode","zen"),{appState:$p($p({},t),{},{zenModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.zenModeEnabled},contextItemLabel:"buttons.zenMode",keyTest:function(e){return!e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Qt}});function Jp(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 eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var th=Pc({name:"stats",perform:function(e,t){return{appState:eh(eh({},t),{},{showStats:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.showStats},contextItemLabel:"stats.title",keyTest:function(e){return!e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Wt}}),nh=Pc({name:"unbindText",contextItemLabel:"labels.unbindText",perform:function(e,t){return Ds(Cs(e),t).forEach((function(e){var t=Er(e);if(t){var n,r=pr(t.originalText,dn(t)),o=r.width,i=r.height,a=r.baseline;ao(t,{containerId:null,width:o,height:i,baseline:a,text:t.originalText}),ao(e,{boundElements:null===(n=e.boundElements)||void 0===n?void 0:n.filter((function(e){return e.id!==t.id}))})}})),{elements:e,appState:t,commitToHistory:!0}}});function rh(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 oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rh(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ih=function(e,t,n){var r=!1;if(!(t.multiElement||t.resizingElement||t.editingElement||t.draggingElement)){var o=n();if(null===o)return{commitToHistory:r};var i=Tn(e),a=o.elements,l=Tn(a),c=e.filter((function(e){return!l.has(e.id)})),s=a.map((function(e){return lo(i.get(e.id)||e,e)})).concat(c.map((function(e){return lo(e,{isDeleted:!0})})));return La(s,c),{elements:s,appState:oh(oh({},t),o.appState),commitToHistory:r,syncHistory:!0}}return{commitToHistory:r}},ah=function(){function e(t,n,r,o){var i=this;L(this,e),this.actions={},this.renderAction=function(e,t){var n=i.app.props.UIOptions.canvasActions;if(i.actions[e]&&"PanelComponent"in i.actions[e]&&(!(e in n)||n[e])){var r=i.actions[e],o=r.PanelComponent;return(0,O.jsx)(o,{elements:i.getElementsIncludingDeleted(),appState:i.getAppState(),updateData:function(e){i.updater(r.perform(i.getElementsIncludingDeleted(),i.getAppState(),e,i.app))},appProps:i.app.props,data:t})}return null},this.updater=function(e){if(!e||!("then"in e))return t(e);e.then((function(e){return t(e)}))},this.getAppState=n,this.getElementsIncludingDeleted=r,this.app=o}return R(e,[{key:"registerAction",value:function(e){this.actions[e.name]=e}},{key:"registerAll",value:function(e){var t=this;e.forEach((function(e){return t.registerAction(e)}))}},{key:"handleKeyDown",value:function(e){var t=this,n=this.app.props.UIOptions.canvasActions,r=Object.values(this.actions).sort((function(e,t){return(t.keyPriority||0)-(e.keyPriority||0)})).filter((function(r){return(!(r.name in n)||n[r.name])&&r.keyTest&&r.keyTest(e,t.getAppState(),t.getElementsIncludingDeleted())}));return 0!==r.length&&(!(this.getAppState().viewModeEnabled&&!Object.values(s.EH).includes(r[0].name))&&(e.preventDefault(),this.updater(r[0].perform(this.getElementsIncludingDeleted(),this.getAppState(),null,this.app)),!0))}},{key:"executeAction",value:function(e){this.updater(e.perform(this.getElementsIncludingDeleted(),this.getAppState(),null,this.app))}}]),e}();function lh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ch(e,t)}(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 ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sh(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 uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sh(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dh=function(){function e(t){var n=this;L(this,e),this.libraryCache=null,this.resetLibrary=(0,d.Z)(g().mark((function e(){var t,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=(r=n.app.props).onLibraryChange)||void 0===t?void 0:t.call(r,[]);case 2:n.libraryCache=[];case 3:case"end":return e.stop()}}),e)}))),this.restoreLibraryItem=function(e){var t=Cs(Od(e.elements,null));return t.length?uh(uh({},e),{},{elements:t}):null},this.loadLibrary=function(){return new Promise(function(){var e=(0,d.Z)(g().mark((function e(t){var r,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.libraryCache){e.next=2;break}return e.abrupt("return",t(JSON.parse(JSON.stringify(n.libraryCache))));case 2:if(e.prev=2,r=n.app.libraryItemsFromStorage){e.next=6;break}return e.abrupt("return",t([]));case 6:o=r.reduce((function(e,t){return n.restoreLibraryItem(t)&&e.push(t),e}),[]),n.libraryCache=JSON.parse(JSON.stringify(o)),t(o),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(2),console.error(e.t0),t([]);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}())},this.saveLibrary=function(){var e=(0,d.Z)(g().mark((function e(t){var r,o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.libraryCache,e.prev=1,a=JSON.stringify(t),n.libraryCache=JSON.parse(a),e.next=6,null===(o=(i=n.app.props).onLibraryChange)||void 0===o?void 0:o.call(i,t);case 6:e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(1),n.libraryCache=r,e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),this.app=t}var t;return R(e,[{key:"importLibrary",value:(t=(0,d.Z)(g().mark((function e(t){var n,r,o,i,a,l,c,s,u,d,f,p=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:"unpublished",e.next=3,Hd(t);case 3:if((r=e.sent)&&(r.libraryItems||r.library)){e.next=6;break}return e.abrupt("return");case 6:return o=function(e,t){return!e.find((function(e){return e.elements.length===t.elements.length&&e.elements.every((function(e,n){return e.id===t.elements[n].id&&e.versionNonce===t.elements[n].versionNonce}))}))},e.next=9,this.loadLibrary();case 9:i=e.sent,a=r.libraryItems||r.library||[],l=Td(a,n),c=[],s=lh(l);try{for(s.s();!(u=s.n()).done;)d=u.value,(f=this.restoreLibraryItem(d))&&o(i,f)&&c.push(f)}catch(e){s.e(e)}finally{s.f()}return e.next=17,this.saveLibrary([].concat(c,P(i)));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),fh=dh,ph=function(e){var t=Array.from(e.values());return{x:mh(t,(function(e){return e.x}))/t.length,y:mh(t,(function(e){return e.y}))/t.length}},hh=function(e){var t=h(e,2),n=t[0],r=t[1];return Math.hypot(n.x-r.x,n.y-r.y)},mh=function(e,t){return e.reduce((function(e,n){return e+t(n)}),0)};function gh(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 vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bh=function(e){return{selectedElementIds:e.selectedElementIds,selectedGroupIds:e.selectedGroupIds,viewBackgroundColor:e.viewBackgroundColor,editingLinearElement:e.editingLinearElement,editingGroupId:e.editingGroupId,name:e.name}},yh=function(){function e(){var t=this;L(this,e),this.elementCache=new Map,this.recording=!0,this.stateHistory=[],this.redoStack=[],this.lastEntry=null,this.generateEntry=function(e,n){return t.dehydrateHistoryEntry({appState:bh(e),elements:n.reduce((function(t,n){if(Ye(n)&&e.multiElement&&e.multiElement.id===n.id){if(e.multiElement&&e.multiElement.id===n.id&&n.points.length<2)return t;t.push(vh(vh({},n),{},{points:n.lastCommittedPoint!==n.points[n.points.length-1]?n.points.slice(0,-1):n.points}))}else t.push(n);return t}),[])})}}return R(e,[{key:"hydrateHistoryEntry",value:function(e){var t=this,n=e.appState,r=e.elements;return{appState:JSON.parse(n),elements:r.map((function(e){var n,r=null===(n=t.elementCache.get(e.id))||void 0===n?void 0:n.get(e.versionNonce);if(!r)throw new Error("Element not found: ".concat(e.id,":").concat(e.versionNonce));return r}))}}},{key:"dehydrateHistoryEntry",value:function(e){var t=this,n=e.appState,r=e.elements;return{appState:JSON.stringify(n),elements:r.map((function(e){t.elementCache.has(e.id)||t.elementCache.set(e.id,new Map);var n=t.elementCache.get(e.id);return n.has(e.versionNonce)||n.set(e.versionNonce,Ro(e)),{id:e.id,versionNonce:e.versionNonce}}))}}},{key:"getSnapshotForTest",value:function(){var e=this;return{recording:this.recording,stateHistory:this.stateHistory.map((function(t){return e.hydrateHistoryEntry(t)})),redoStack:this.redoStack.map((function(t){return e.hydrateHistoryEntry(t)}))}}},{key:"clear",value:function(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()}},{key:"shouldCreateEntry",value:function(e){var t,n=this.lastEntry;if(!n)return!0;if(e.elements.length!==n.elements.length)return!0;for(var r=e.elements.length-1;r>-1;r--){var o=e.elements[r],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)if((null===(a=e.appState[t])||void 0===a?void 0:a.elementId)===(null===(l=n.appState[t])||void 0===l?void 0:l.elementId))continue;if("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}(),xh=[{icon:(0,O.jsx)("svg",{viewBox:"0 0 320 512",className:"",children:(0,O.jsx)("path",{d:"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"})}),value:"selection",key:en.V},{icon:(0,O.jsx)("svg",{viewBox:"0 0 448 512",children:(0,O.jsx)("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"})}),value:"rectangle",key:en.R},{icon:(0,O.jsx)("svg",{viewBox:"0 0 223.646 223.646",children:(0,O.jsx)("path",{d:"M111.823 0L16.622 111.823 111.823 223.646 207.025 111.823z"})}),value:"diamond",key:en.D},{icon:(0,O.jsx)("svg",{viewBox:"0 0 512 512",children:(0,O.jsx)("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"})}),value:"ellipse",key:en.E},{icon:(0,O.jsx)("svg",{viewBox:"0 0 448 512",className:"rtl-mirror",children:(0,O.jsx)("path",{d:"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"})}),value:"arrow",key:en.A},{icon:(0,O.jsx)("svg",{viewBox:"0 0 6 6",children:(0,O.jsx)("line",{x1:"0",y1:"3",x2:"6",y2:"3",stroke:"currentColor",strokeLinecap:"round"})}),value:"line",key:[en.P,en.L]},{icon:(0,O.jsx)("svg",{viewBox:"0 0 512 512",children:(0,O.jsx)("path",{fill:"currentColor",d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"})}),value:"freedraw",key:[en.X,en.P.toUpperCase()]},{icon:(0,O.jsx)("svg",{viewBox:"0 0 448 512",children:(0,O.jsx)("path",{d:"M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"})}),value:"text",key:en.T},{icon:(0,O.jsx)("svg",{viewBox:"0 0 512 512",children:(0,O.jsx)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"})}),value:"image",key:null}],wh=(n(1292),{cut:[yn("CtrlOrCmd+X")],copy:[yn("CtrlOrCmd+C")],paste:[yn("CtrlOrCmd+V")],copyStyles:[yn("CtrlOrCmd+Alt+C")],pasteStyles:[yn("CtrlOrCmd+Alt+V")],selectAll:[yn("CtrlOrCmd+A")],deleteSelectedElements:[yn("Del")],duplicateSelection:[yn("CtrlOrCmd+D"),yn("Alt+".concat(C("helpDialog.drag")))],sendBackward:[yn("CtrlOrCmd+[")],bringForward:[yn("CtrlOrCmd+]")],sendToBack:[yn(Mt?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")],bringToFront:[yn(Mt?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")],copyAsPng:[yn("Shift+Alt+C")],copyAsSvg:[],group:[yn("CtrlOrCmd+G")],ungroup:[yn("CtrlOrCmd+Shift+G")],gridMode:[yn("CtrlOrCmd+'")],zenMode:[yn("Alt+Z")],stats:[yn("Alt+/")],addToLibrary:[],flipHorizontal:[yn("Shift+H")],flipVertical:[yn("Shift+V")],viewMode:[yn("Alt+R")],link:[yn("CtrlOrCmd+K")]}),kh=function(e){var t=e.options,n=e.onCloseRequest,r=e.top,o=e.left,i=e.actionManager,a=e.appState,l=e.elements;return(0,O.jsx)(qa,{onCloseRequest:n,top:r,left:o,fitInViewport:!0,offsetLeft:a.offsetLeft,offsetTop:a.offsetTop,viewportWidth:a.width,viewportHeight:a.height,children:(0,O.jsx)("ul",{className:"context-menu",onContextMenu:function(e){return e.preventDefault()},children:t.map((function(e,t){var r;if("separator"===e)return(0,O.jsx)("hr",{className:"context-menu-option-separator"},t);var o,c,s=e.name,u="";return e.contextItemLabel&&(u="function"==typeof e.contextItemLabel?C(e.contextItemLabel(l,a)):C(e.contextItemLabel)),(0,O.jsx)("li",{"data-testid":s,onClick:n,children:(0,O.jsxs)("button",{className:Fe("context-menu-option",{dangerous:"deleteSelectedElements"===s,checkmark:null===(r=e.checked)||void 0===r?void 0:r.call(e,a)}),onClick:function(){return i.executeAction(e)},children:[(0,O.jsx)("div",{className:"context-menu-option__label",children:u}),(0,O.jsx)("kbd",{className:"context-menu-option__shortcut",children:s?(o=s,c=wh[o],c&&c.length>0?c[0]:""):""})]})},t)}))})})},Eh=new WeakMap,_h=function(e){var t,n,r=Array.of();e.options.forEach((function(e){e&&r.push(e)})),r.length&&(0,It.render)((0,O.jsx)(kh,{top:e.top,left:e.left,options:r,onCloseRequest:function(){return t=e.container,void((n=Eh.get(t))&&((0,It.unmountComponentAtNode)(n),n.remove(),Eh.delete(t)));var t,n},actionManager:e.actionManager,appState:e.appState,elements:e.elements}),(t=e.container,(n=Eh.get(t))||(n=document.createElement("div"),t.querySelector(".excalidraw-contextMenuContainer").appendChild(n),Eh.set(t,n),n)))};function Sh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jh(e,t)}(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 jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ch=function(e){var t,n,r=e.appState,o=e.elements,i=e.renderAction,a=e.elementType,l=Rs(Cs(o),r),c=Boolean(r.editingElement),s=eg(),u="rtl"===document.documentElement.getAttribute("dir"),d=wc(a)||l.some((function(e){return wc(e.type)&&!Cn(e.backgroundColor)})),f=wc(a)||l.some((function(e){return wc(e.type)})),p=(null===(t=l[0])||void 0===t?void 0:t.type)||null,h=Sh(l);try{for(h.s();!(n=h.n()).done;){if(n.value.type!==p){p=null;break}}}catch(e){h.e(e)}finally{h.f()}return(0,O.jsxs)("div",{className:"panelColumn",children:[(kc(a)&&"image"!==a&&"image"!==p||l.some((function(e){return kc(e.type)})))&&i("changeStrokeColor"),f&&i("changeBackgroundColor"),d&&i("changeFillStyle"),(Ec(a)||l.some((function(e){return Ec(e.type)})))&&i("changeStrokeWidth"),("freedraw"===a||l.some((function(e){return"freedraw"===e.type})))&&i("changeStrokeShape"),(_c(a)||l.some((function(e){return _c(e.type)})))&&(0,O.jsxs)(O.Fragment,{children:[i("changeStrokeStyle"),i("changeSloppiness")]}),(Sc(a)||l.some((function(e){return Sc(e.type)})))&&(0,O.jsx)(O.Fragment,{children:i("changeSharpness")}),(jc(a)||l.some((function(e){return jc(e.type)})))&&(0,O.jsxs)(O.Fragment,{children:[i("changeFontSize"),i("changeFontFamily"),i("changeTextAlign")]}),(Cc(a)||l.some((function(e){return Cc(e.type)})))&&(0,O.jsx)(O.Fragment,{children:i("changeArrowhead")}),i("changeOpacity"),(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.layers")}),(0,O.jsxs)("div",{className:"buttonList",children:[i("sendToBack"),i("sendBackward"),i("bringToFront"),i("bringForward")]})]}),l.length>1&&(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.align")}),(0,O.jsxs)("div",{className:"buttonList",children:[u?(0,O.jsxs)(O.Fragment,{children:[i("alignRight"),i("alignHorizontallyCentered"),i("alignLeft")]}):(0,O.jsxs)(O.Fragment,{children:[i("alignLeft"),i("alignHorizontallyCentered"),i("alignRight")]}),l.length>2&&i("distributeHorizontally"),(0,O.jsxs)("div",{className:"iconRow",children:[i("alignTop"),i("alignVerticallyCentered"),i("alignBottom"),l.length>2&&i("distributeVertically")]})]})]}),!c&&l.length>0&&(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.actions")}),(0,O.jsxs)("div",{className:"buttonList",children:[!s&&i("duplicateSelection"),!s&&i("deleteSelectedElements"),i("group"),i("ungroup"),1===l.length&&i("link")]})]})]})},Oh=function(e){var t=e.canvas,n=e.elementType,r=e.setAppState,o=e.onImageAction;return(0,O.jsx)(O.Fragment,{children:xh.map((function(e,i){var a=e.value,l=e.icon,c=e.key,s=C("toolBar.".concat(a)),u=c&&("string"==typeof c?c:c[0]),d=u?"".concat(cn(u)," ").concat(C("helpDialog.or")," ").concat(i+1):"".concat(i+1);return(0,O.jsx)(Zc,{className:"Shape",type:"radio",icon:l,checked:n===a,name:"editor-current-shape",title:"".concat(cn(s)," — ").concat(d),keyBindingLabel:"".concat(i+1),"aria-label":cn(s),"aria-keyshortcuts":d,"data-testid":a,onChange:function(e){var n=e.pointerType;r({elementType:a,multiElement:null,selectedElementIds:{}}),vn(t,a),"image"===a&&o({pointerType:n})}},a)}))})},Ih=function(e){var t=e.renderAction;e.zoom;return(0,O.jsx)($f,{gap:1,children:(0,O.jsxs)(qf,{gap:1,align:"center",children:[t("zoomOut"),t("zoomIn"),t("resetZoom")]})})},Mh=function(e){e.appState,e.setAppState;var t=e.actionManager,n=e.showThemeBtn;return(0,O.jsxs)("div",{style:{display:"flex"},children:[t.renderAction("changeViewBackgroundColor"),n&&t.renderAction("toggleTheme")]})},Th=(n(778),function(e){var t=e.isCollaborating,n=e.collaboratorCount,r=e.onClick;return(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(Zc,{className:Fe("CollabButton",{"is-collaborating":t}),onClick:r,icon:Hl,type:"button",title:C("labels.liveCollaboration"),"aria-label":C("labels.liveCollaboration"),showAriaLabel:eg(),children:n>0&&(0,O.jsx)("div",{className:"CollabButton-collaborators",children:n})})})}),Ph=function(e){var t=e.message,n=e.onClose,r=h((0,l.useState)(!!t),2),o=r[0],i=r[1],a=ng().container,s=c().useCallback((function(){i(!1),n&&n(),null==a||a.focus()}),[n,a]);return(0,O.jsx)(O.Fragment,{children:o&&(0,O.jsx)(cs,{small:!0,onCloseRequest:s,title:C("errorDialog.title"),children:(0,O.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})})})},Ah=(n(2205),"filter"in document.createElement("canvas").getContext("2d")),Lh=function(){return(0,O.jsxs)("div",{children:[(0,O.jsx)("h3",{children:C("canvasError.cannotShowPreview")}),(0,O.jsx)("p",{children:(0,O.jsx)("span",{children:C("canvasError.canvasTooBig")})}),(0,O.jsxs)("em",{children:["(",C("canvasError.canvasTooBigTip"),")"]})]})},Dh=function(e,t){(0,It.unmountComponentAtNode)(t),t.innerHTML="",e instanceof HTMLCanvasElement?t.appendChild(e):(0,It.render)((0,O.jsx)(Lh,{}),t)},Rh=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,O.jsx)("button",{className:"ExportDialog-imageExportButton",style:(t={},A(t,"--button-color",jt[i][l]),A(t,"--button-color-darker",jt[i][l+1]),A(t,"--button-color-darkest",jt[i][l+2]),t),title:r,"aria-label":r,onClick:o,children:n})},zh=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.exportPadding,i=void 0===o?s.qy:o,a=e.actionManager,c=e.onExportToPng,u=e.onExportToSvg,d=e.onExportToClipboard,f=As(t,n),p=h((0,l.useState)(f),2),m=p[0],g=p[1],v=(0,l.useRef)(null),b=n.exportBackground,y=n.viewBackgroundColor,x=m?Ds(t,n,!0):t;return(0,l.useEffect)((function(){g(f)}),[f]),(0,l.useEffect)((function(){var e=v.current;e&&uf(x,n,r,{exportBackground:b,viewBackgroundColor:y,exportPadding:i}).then((function(t){return Bd(t).then((function(){Dh(t,e)}))})).catch((function(t){console.error(t),Dh(new Wc,e)}))}),[n,r,x,b,i,y]),(0,O.jsxs)("div",{className:"ExportDialog",children:[(0,O.jsx)("div",{className:"ExportDialog__preview",ref:v}),Ah&&a.renderAction("exportWithDarkMode"),(0,O.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr"},children:(0,O.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(190px, 1fr))",overflow:"hidden"},children:[a.renderAction("changeExportBackground"),f&&(0,O.jsx)(Zf,{checked:m,onChange:function(e){return g(e)},children:C("labels.onlySelected")}),a.renderAction("changeExportEmbedScene")]})}),(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:".6em"},children:[(0,O.jsx)(qf,{gap:2,children:a.renderAction("changeExportScale")}),(0,O.jsx)("p",{style:{marginLeft:"1em",userSelect:"none"},children:"Scale"})]}),(0,O.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",margin:".6em 0"},children:!gd&&a.renderAction("changeProjectName")}),(0,O.jsxs)(qf,{gap:2,justifyContent:"center",style:{margin:"2em 0"},children:[(0,O.jsx)(Rh,{color:"indigo",title:C("buttons.exportToPng"),"aria-label":C("buttons.exportToPng"),onClick:function(){return c(x)},children:"PNG"}),(0,O.jsx)(Rh,{color:"red",title:C("buttons.exportToSvg"),"aria-label":C("buttons.exportToSvg"),onClick:function(){return u(x)},children:"SVG"}),Lf&&(0,O.jsx)(Rh,{title:C("buttons.copyPngToClipboard"),onClick:function(){return d(x)},color:"gray",shade:7,children:hl})]})]})},Nh=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.exportPadding,i=void 0===o?s.qy:o,a=e.actionManager,u=e.onExportToPng,d=e.onExportToSvg,f=e.onExportToClipboard,p=h((0,l.useState)(!1),2),m=p[0],g=p[1],v=c().useCallback((function(){g(!1)}),[]);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Zc,{onClick:function(){g(!0)},"data-testid":"image-export-button",icon:bl,type:"button","aria-label":C("buttons.exportImage"),showAriaLabel:eg(),title:C("buttons.exportImage")}),m&&(0,O.jsx)(cs,{onCloseRequest:v,title:C("buttons.exportImage"),children:(0,O.jsx)(zh,{elements:t,appState:n,files:r,exportPadding:i,actionManager:a,onExportToPng:u,onExportToSvg:d,onExportToClipboard:f,onCloseRequest:v})})]})},Hh=(n(1310),function(e){var t=e.children,n=e.side,r=e.className;return(0,O.jsx)("div",{className:Fe("FixedSideContainer","FixedSideContainer_side_".concat(n),r),children:t})}),Bh=(n(7096),function(e){var t=function(e){var t=e.appState,n=e.elements,r=e.isMobile,o=t.elementType,i=t.isResizing,a=t.isRotating,l=t.lastPointerDownWith,c=null!==t.multiElement;if("arrow"===o||"line"===o)return C(c?"hints.linearElementMulti":"hints.linearElement");if("freedraw"===o)return C("hints.freeDraw");if("text"===o)return C("hints.text");if("image"===t.elementType&&t.pendingImageElement)return C("hints.placeImage");var s,u=Ds(n,t);if(i&&"mouse"===l&&1===u.length){var d=u[0];return Ye(d)&&2===d.points.length?C("hints.lockAngle"):We(d)?C("hints.resizeImage"):C("hints.resize")}if(a&&"mouse"===l)return C("hints.rotate");if(1===u.length&&Ve(u[0]))return C("hints.text_selected");if(t.editingElement&&Ve(t.editingElement))return C("hints.text_editing");if("selection"===o){var f;if("selection"===(null===(f=t.draggingElement)||void 0===f?void 0:f.type)&&!t.editingElement&&!t.editingLinearElement)return C("hints.deepBoxSelect");if(!u.length&&!r)return C("hints.canvasPanning")}if(1===u.length){if(Ye(u[0]))return t.editingLinearElement?t.editingLinearElement.selectedPointsIndices?C("hints.lineEditor_pointSelected"):C("hints.lineEditor_nothingSelected"):C("hints.lineEditor_info");if(null!=(s=u[0])&&("rectangle"===s.type||"diamond"===s.type||"ellipse"===s.type||"image"===s.type))return C("hints.bindTextToElement")}return null}({appState:e.appState,elements:e.elements,isMobile:e.isMobile});return t?(t=yn(t),(0,O.jsx)("div",{className:"HintViewer",children:(0,O.jsx)("span",{children:t})})):null}),Fh={CHECKED:(0,O.jsx)("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",children:(0,O.jsx)("path",{d:"M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"})}),UNCHECKED:(0,O.jsx)("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",className:"unlocked-icon rtl-mirror",children:(0,O.jsx)("path",{d:"M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"})})},Uh=function(e){return(0,O.jsxs)("label",{className:Fe("ToolIcon ToolIcon__lock ToolIcon_type_floating","ToolIcon_size_".concat("medium"),{"is-mobile":e.isMobile}),title:"".concat(e.title," — Q"),children:[(0,O.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),(0,O.jsx)("div",{className:"ToolIcon__icon",children:e.checked?Fh.CHECKED:Fh.UNCHECKED})]})},Kh=["heading","children"];function Wh(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 Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gh=function(e){var t=e.heading,n=e.children,r=po(e,Kh),o=ng().id,i=(0,O.jsx)("h2",{className:"visually-hidden",id:"".concat(o,"-").concat(t,"-title"),children:C("headings.".concat(t))});return(0,O.jsx)("section",Vh(Vh({},r),{},{"aria-labelledby":"".concat(o,"-").concat(t,"-title"),children:"function"==typeof n?n(i):(0,O.jsxs)(O.Fragment,{children:[i,n]})}))},Zh=(n(580),function(e){var t=e.children,n=e.className,r=e.mobile;return(0,O.jsx)("div",{className:Fe("UserList",n,{UserList_mobile:r}),children:t})}),Yh=(0,O.jsx)("svg",{viewBox:"0 0 576 512",children:(0,O.jsx)("path",{fill:"currentColor",d:"M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"})}),Xh=function(e){var t=e.appState,n=e.setAppState,r=e.isMobile;return(0,O.jsxs)("label",{className:Fe("ToolIcon ToolIcon_type_floating ToolIcon__library","ToolIcon_size_medium",{"is-mobile":r}),title:"".concat(cn(C("toolBar.library"))," — 0"),children:[(0,O.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:"editor-library",onChange:function(e){n({isLibraryOpen:e.target.checked})},checked:t.isLibraryOpen,"aria-label":cn(C("toolBar.library")),"aria-keyshortcuts":"0"}),(0,O.jsx)("div",{className:"ToolIcon__icon",children:Yh})]})},qh="medium",$h={CHECKED:(0,O.jsxs)("svg",{width:"205",height:"205",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",children:[(0,O.jsx)("path",{d:"m35 195-25-29.17V50h50v115l-25 30"}),(0,O.jsx)("path",{d:"M10 40V10h50v30H10"}),(0,O.jsx)("path",{d:"M125 145h70v50h-70"}),(0,O.jsx)("path",{d:"M190 145v-30l-10-20h-40l-10 20v30h15v-30l5-5h20l5 5v30h15"})]}),UNCHECKED:(0,O.jsxs)("svg",{width:"205",height:"205",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",className:"unlocked-icon rtl-mirror",children:[(0,O.jsx)("path",{d:"m35 195-25-29.17V50h50v115l-25 30"}),(0,O.jsx)("path",{d:"M10 40V10h50v30H10"}),(0,O.jsx)("path",{d:"M125 145h70v50h-70"}),(0,O.jsx)("path",{d:"M145 145v-30l-10-20H95l-10 20v30h15v-30l5-5h20l5 5v30h15"})]})},Qh=function(e){return e.penDetected?(0,O.jsxs)("label",{className:Fe("ToolIcon ToolIcon__penMode ToolIcon_type_floating","ToolIcon_size_".concat(qh),{"is-mobile":e.isMobile}),title:"".concat(e.title),children:[(0,O.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),(0,O.jsx)("div",{className:"ToolIcon__icon",children:e.checked?$h.CHECKED:$h.UNCHECKED})]}):e.isMobile?null:(0,O.jsx)("label",{className:Fe("ToolIcon ToolIcon__penMode ToolIcon_type_floating","ToolIcon_size_".concat(qh),{"is-mobile":e.isMobile}),children:(0,O.jsx)("div",{className:"ToolIcon__icon ToolIcon__hidden"})})};function Jh(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 em=function(e){var t=e.appState,n=e.elements,r=e.libraryMenu,o=e.actionManager,i=e.renderJSONExportDialog,a=e.renderImageExportDialog,l=e.setAppState,s=e.onCollabButtonClick,u=e.onLockToggle,d=e.onPenModeToggle,f=e.canvas,p=e.isCollaborating,m=e.renderCustomFooter,g=e.viewModeEnabled,v=e.showThemeBtn,b=e.onImageAction,y=e.renderTopRightUI;return(0,O.jsxs)(O.Fragment,{children:[!g&&(0,O.jsxs)(Hh,{side:"top",className:"App-top-bar",children:[(0,O.jsx)(Gh,{heading:"shapes",children:function(e){return(0,O.jsxs)($f,{gap:4,align:"center",children:[(0,O.jsxs)(qf,{gap:1,className:"App-toolbar-container",children:[(0,O.jsxs)(is,{padding:1,className:"App-toolbar",children:[e,(0,O.jsx)(qf,{gap:1,children:(0,O.jsx)(Oh,{canvas:f,elementType:t.elementType,setAppState:l,onImageAction:function(e){var t=e.pointerType;b({insertOnCanvasDirectly:"mouse"!==t})}})})]}),y&&y(!0,t),(0,O.jsx)(Uh,{checked:t.elementLocked,onChange:u,title:C("toolBar.lock"),isMobile:!0}),(0,O.jsx)(Xh,{appState:t,setAppState:l,isMobile:!0}),(0,O.jsx)(Qh,{checked:t.penMode,onChange:d,title:C("toolBar.penMode"),isMobile:!0,penDetected:t.penDetected})]}),r]})}}),(0,O.jsx)(Bh,{appState:t,elements:n,isMobile:!0})]}),(0,O.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:14,marginLeft:14,marginRight:14},children:(0,O.jsxs)(is,{padding:0,children:["canvas"===t.openMenu?(0,O.jsx)(Gh,{className:"App-mobile-menu",heading:"canvasActions",children:(0,O.jsx)("div",{className:"panelColumn",children:(0,O.jsxs)($f,{gap:4,children:[g?(0,O.jsxs)(O.Fragment,{children:[i(),a()]}):(0,O.jsxs)(O.Fragment,{children:[o.renderAction("clearCanvas"),o.renderAction("loadScene"),i(),a(),s&&(0,O.jsx)(Th,{isCollaborating:p,collaboratorCount:t.collaborators.size,onClick:s}),(0,O.jsx)(Mh,{actionManager:o,appState:t,setAppState:l,showThemeBtn:v})]}),null==m?void 0:m(!0,t),t.collaborators.size>0&&(0,O.jsxs)("fieldset",{children:[(0,O.jsx)("legend",{children:C("labels.collaborators")}),(0,O.jsx)(Zh,{mobile:!0,children:Array.from(t.collaborators).filter((function(e){var t=h(e,2),n=(t[0],t[1]);return 0!==Object.keys(n).length})).map((function(e){var t=h(e,2),n=t[0];t[1];return(0,O.jsx)(c().Fragment,{children:o.renderAction("goToCollaborator",{id:n})},n)}))})]})]})})}):"shape"===t.openMenu&&!g&&ks(t,n)?(0,O.jsx)(Gh,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,O.jsx)(Ch,{appState:t,elements:n,renderAction:o.renderAction,elementType:t.elementType})}):null,(0,O.jsxs)("footer",{className:"App-toolbar",children:[g?(0,O.jsx)("div",{className:"App-toolbar-content",children:o.renderAction("toggleCanvasMenu")}):(0,O.jsxs)("div",{className:"App-toolbar-content",children:[o.renderAction("toggleCanvasMenu"),o.renderAction("toggleEditMenu"),o.renderAction("undo"),o.renderAction("redo"),o.renderAction(t.multiElement?"finalize":"duplicateSelection"),o.renderAction("deleteSelectedElements")]}),t.scrolledOutside&&!t.openMenu&&(0,O.jsx)("button",{className:"scroll-back-to-content",onClick:function(){l(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jh(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$c(n,t)))},children:C("buttons.scrollBackToContent")})]})]})})]})},tm=(n(8051),function(e){var t=(0,l.useRef)(null),n=h((0,l.useState)(null),2),r=n[0],o=n[1];return(0,l.useLayoutEffect)((function(){if(e.spreadsheet){var n,r=If(e.chartType,e.spreadsheet,0,0);o(r);var i=t.current;return(0,d.Z)(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,df(r,{exportBackground:!1,viewBackgroundColor:jt.white},null);case 2:n=t.sent,i.appendChild(n),e.selected&&i.parentNode.focus();case 5:case"end":return t.stop()}}),t)})))(),function(){i.removeChild(n)}}}),[e.spreadsheet,e.chartType,e.selected]),(0,O.jsx)("button",{className:"ChartPreview",onClick:function(){r&&e.onClick(e.chartType,r)},children:(0,O.jsx)("div",{ref:t})})}),nm=function(e){var t=e.setAppState,n=e.appState,r=e.onClose,o=e.onInsertChart,i=c().useCallback((function(){r&&r()}),[r]),a=function(e,n){o(n),hu("magic","chart",e),t({currentChartType:e,pasteDialog:{shown:!1,data:null}})};return(0,O.jsx)(cs,{small:!0,onCloseRequest:i,title:C("labels.pasteCharts"),className:"PasteChartDialog",autofocus:!1,children:(0,O.jsxs)("div",{className:"container",children:[(0,O.jsx)(tm,{chartType:"bar",spreadsheet:n.pasteDialog.data,selected:"bar"===n.currentChartType,onClick:a}),(0,O.jsx)(tm,{chartType:"line",spreadsheet:n.pasteDialog.data,selected:"line"===n.currentChartType,onClick:a})]})})};n(3922);function rm(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 om=function(){return(0,O.jsxs)("div",{className:"HelpDialog--header",children:[(0,O.jsx)("a",{className:"HelpDialog--btn",href:"https://github.com/excalidraw/excalidraw#documentation",target:"_blank",rel:"noopener noreferrer",children:C("helpDialog.documentation")}),(0,O.jsx)("a",{className:"HelpDialog--btn",href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:C("helpDialog.blog")}),(0,O.jsx)("a",{className:"HelpDialog--btn",href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer",children:C("helpDialog.github")})]})},im=function(e){return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("h3",{children:e.title}),e.children]})},am=function(e){return(0,O.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},children:e.children})},lm=function(e){return(0,O.jsx)("div",{style:{width:"49%"},children:e.children})},cm=function(e){return(0,O.jsxs)("div",{className:"HelpDialog--island",children:[(0,O.jsx)("h3",{className:"HelpDialog--island-title",children:e.caption}),e.children]})},sm=function(e){return(0,O.jsx)("div",{className:"HelpDialog--shortcut",children:(0,O.jsxs)("div",{style:{display:"flex",margin:"0",padding:"4px 8px",alignItems:"center"},children:[(0,O.jsx)("div",{style:{lineHeight:1.4},children:e.label}),(0,O.jsx)("div",{style:{display:"flex",flex:"0 0 auto",justifyContent:"flex-end",marginInlineStart:"auto",minWidth:"30%"},children:e.shortcuts.map((function(t,n){return(0,O.jsxs)(c().Fragment,{children:[(0,O.jsx)(um,{children:t}),e.isOr&&n!==e.shortcuts.length-1&&C("helpDialog.or")]},n)}))})]})})};sm.defaultProps={isOr:!0};var um=function(e){return(0,O.jsx)("kbd",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:"HelpDialog--key"},e))},dm=function(e){var t=e.onClose,n=c().useCallback((function(){t&&t()}),[t]);return(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)(cs,{onCloseRequest:n,title:C("helpDialog.title"),className:"HelpDialog",children:[(0,O.jsx)(om,{}),(0,O.jsx)(im,{title:C("helpDialog.shortcuts"),children:(0,O.jsxs)(am,{children:[(0,O.jsxs)(lm,{children:[(0,O.jsxs)(cm,{caption:C("helpDialog.shapes"),children:[(0,O.jsx)(sm,{label:C("toolBar.selection"),shortcuts:["V","1"]}),(0,O.jsx)(sm,{label:C("toolBar.rectangle"),shortcuts:["R","2"]}),(0,O.jsx)(sm,{label:C("toolBar.diamond"),shortcuts:["D","3"]}),(0,O.jsx)(sm,{label:C("toolBar.ellipse"),shortcuts:["E","4"]}),(0,O.jsx)(sm,{label:C("toolBar.arrow"),shortcuts:["A","5"]}),(0,O.jsx)(sm,{label:C("toolBar.line"),shortcuts:["P","6"]}),(0,O.jsx)(sm,{label:C("toolBar.freedraw"),shortcuts:["Shift + P","X","7"]}),(0,O.jsx)(sm,{label:C("toolBar.text"),shortcuts:["T","8"]}),(0,O.jsx)(sm,{label:C("toolBar.image"),shortcuts:["9"]}),(0,O.jsx)(sm,{label:C("toolBar.library"),shortcuts:["0"]}),(0,O.jsx)(sm,{label:C("helpDialog.editSelectedShape"),shortcuts:[yn("Enter"),C("helpDialog.doubleClick")]}),(0,O.jsx)(sm,{label:C("helpDialog.textNewLine"),shortcuts:[yn("Enter"),yn("Shift+Enter")]}),(0,O.jsx)(sm,{label:C("helpDialog.textFinish"),shortcuts:[yn("Esc"),yn("CtrlOrCmd+Enter")]}),(0,O.jsx)(sm,{label:C("helpDialog.curvedArrow"),shortcuts:["A",C("helpDialog.click"),C("helpDialog.click"),C("helpDialog.click")],isOr:!1}),(0,O.jsx)(sm,{label:C("helpDialog.curvedLine"),shortcuts:["L",C("helpDialog.click"),C("helpDialog.click"),C("helpDialog.click")],isOr:!1}),(0,O.jsx)(sm,{label:C("toolBar.lock"),shortcuts:["Q"]}),(0,O.jsx)(sm,{label:C("helpDialog.preventBinding"),shortcuts:[yn("CtrlOrCmd")]}),(0,O.jsx)(sm,{label:C("toolBar.link"),shortcuts:[yn("CtrlOrCmd+K")]})]}),(0,O.jsxs)(cm,{caption:C("helpDialog.view"),children:[(0,O.jsx)(sm,{label:C("buttons.zoomIn"),shortcuts:[yn("CtrlOrCmd++")]}),(0,O.jsx)(sm,{label:C("buttons.zoomOut"),shortcuts:[yn("CtrlOrCmd+-")]}),(0,O.jsx)(sm,{label:C("buttons.resetZoom"),shortcuts:[yn("CtrlOrCmd+0")]}),(0,O.jsx)(sm,{label:C("helpDialog.zoomToFit"),shortcuts:["Shift+1"]}),(0,O.jsx)(sm,{label:C("helpDialog.zoomToSelection"),shortcuts:["Shift+2"]}),(0,O.jsx)(sm,{label:C("buttons.fullScreen"),shortcuts:["F"]}),(0,O.jsx)(sm,{label:C("buttons.zenMode"),shortcuts:[yn("Alt+Z")]}),(0,O.jsx)(sm,{label:C("labels.showGrid"),shortcuts:[yn("CtrlOrCmd+'")]}),(0,O.jsx)(sm,{label:C("labels.viewMode"),shortcuts:[yn("Alt+R")]}),(0,O.jsx)(sm,{label:C("labels.toggleTheme"),shortcuts:[yn("Alt+Shift+D")]}),(0,O.jsx)(sm,{label:C("stats.title"),shortcuts:[yn("Alt+/")]})]})]}),(0,O.jsx)(lm,{children:(0,O.jsxs)(cm,{caption:C("helpDialog.editor"),children:[(0,O.jsx)(sm,{label:C("labels.selectAll"),shortcuts:[yn("CtrlOrCmd+A")]}),(0,O.jsx)(sm,{label:C("labels.multiSelect"),shortcuts:[yn("Shift+".concat(C("helpDialog.click")))]}),(0,O.jsx)(sm,{label:C("helpDialog.deepSelect"),shortcuts:[yn("CtrlOrCmd+".concat(C("helpDialog.click")))]}),(0,O.jsx)(sm,{label:C("helpDialog.deepBoxSelect"),shortcuts:[yn("CtrlOrCmd+".concat(C("helpDialog.drag")))]}),(0,O.jsx)(sm,{label:C("labels.moveCanvas"),shortcuts:[yn("Space+".concat(C("helpDialog.drag"))),yn("Wheel+".concat(C("helpDialog.drag")))],isOr:!0}),(0,O.jsx)(sm,{label:C("labels.cut"),shortcuts:[yn("CtrlOrCmd+X")]}),(0,O.jsx)(sm,{label:C("labels.copy"),shortcuts:[yn("CtrlOrCmd+C")]}),(0,O.jsx)(sm,{label:C("labels.paste"),shortcuts:[yn("CtrlOrCmd+V")]}),(0,O.jsx)(sm,{label:C("labels.copyAsPng"),shortcuts:[yn("Shift+Alt+C")]}),(0,O.jsx)(sm,{label:C("labels.copyStyles"),shortcuts:[yn("CtrlOrCmd+Alt+C")]}),(0,O.jsx)(sm,{label:C("labels.pasteStyles"),shortcuts:[yn("CtrlOrCmd+Alt+V")]}),(0,O.jsx)(sm,{label:C("labels.delete"),shortcuts:[yn("Del")]}),(0,O.jsx)(sm,{label:C("labels.sendToBack"),shortcuts:[yn(Mt?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")]}),(0,O.jsx)(sm,{label:C("labels.bringToFront"),shortcuts:[yn(Mt?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")]}),(0,O.jsx)(sm,{label:C("labels.sendBackward"),shortcuts:[yn("CtrlOrCmd+[")]}),(0,O.jsx)(sm,{label:C("labels.bringForward"),shortcuts:[yn("CtrlOrCmd+]")]}),(0,O.jsx)(sm,{label:C("labels.alignTop"),shortcuts:[yn("CtrlOrCmd+Shift+Up")]}),(0,O.jsx)(sm,{label:C("labels.alignBottom"),shortcuts:[yn("CtrlOrCmd+Shift+Down")]}),(0,O.jsx)(sm,{label:C("labels.alignLeft"),shortcuts:[yn("CtrlOrCmd+Shift+Left")]}),(0,O.jsx)(sm,{label:C("labels.alignRight"),shortcuts:[yn("CtrlOrCmd+Shift+Right")]}),(0,O.jsx)(sm,{label:C("labels.duplicateSelection"),shortcuts:[yn("CtrlOrCmd+D"),yn("Alt+".concat(C("helpDialog.drag")))]}),(0,O.jsx)(sm,{label:C("buttons.undo"),shortcuts:[yn("CtrlOrCmd+Z")]}),(0,O.jsx)(sm,{label:C("buttons.redo"),shortcuts:Tt?[yn("CtrlOrCmd+Y"),yn("CtrlOrCmd+Shift+Z")]:[yn("CtrlOrCmd+Shift+Z")]}),(0,O.jsx)(sm,{label:C("labels.group"),shortcuts:[yn("CtrlOrCmd+G")]}),(0,O.jsx)(sm,{label:C("labels.ungroup"),shortcuts:[yn("CtrlOrCmd+Shift+G")]}),(0,O.jsx)(sm,{label:C("labels.flipHorizontal"),shortcuts:[yn("Shift+H")]}),(0,O.jsx)(sm,{label:C("labels.flipVertical"),shortcuts:[yn("Shift+V")]}),(0,O.jsx)(sm,{label:C("labels.showStroke"),shortcuts:[yn("S")]}),(0,O.jsx)(sm,{label:C("labels.showBackground"),shortcuts:[yn("G")]}),(0,O.jsx)(sm,{label:C("labels.decreaseFontSize"),shortcuts:[yn("CtrlOrCmd+Shift+<")]}),(0,O.jsx)(sm,{label:C("labels.increaseFontSize"),shortcuts:[yn("CtrlOrCmd+Shift+>")]})]})})]})})]})})},fm=(n(5080),function(e){var t,n=e.children,r=e.color;return(0,O.jsx)("div",{className:"Card",style:(t={},A(t,"--card-color","primary"===r?"var(--color-primary)":jt[r][7]),A(t,"--card-color-darker","primary"===r?"var(--color-primary-darker)":jt[r][8]),A(t,"--card-color-darkest","primary"===r?"var(--color-primary-darkest)":jt[r][9]),t),children:n})}),pm=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,O.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,O.jsxs)("div",{className:"ExportDialog-cards",children:[i.saveFileToDisk&&(0,O.jsxs)(fm,{color:"lime",children:[(0,O.jsx)("div",{className:"Card-icon",children:yl}),(0,O.jsx)("h2",{children:C("exportDialog.disk_title")}),(0,O.jsxs)("div",{className:"Card-details",children:[C("exportDialog.disk_details"),!gd&&o.renderAction("changeProjectName")]}),(0,O.jsx)(Zc,{className:"Card-button",type:"button",title:C("exportDialog.disk_button"),"aria-label":C("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){o.executeAction(op)}})]}),l&&(0,O.jsxs)(fm,{color:"pink",children:[(0,O.jsx)("div",{className:"Card-icon",children:ul}),(0,O.jsx)("h2",{children:C("exportDialog.link_title")}),(0,O.jsx)("div",{className:"Card-details",children:C("exportDialog.link_details")}),(0,O.jsx)(Zc,{className:"Card-button",type:"button",title:C("exportDialog.link_button"),"aria-label":C("exportDialog.link_button"),showAriaLabel:!0,onClick:function(){return l(t,n,r,a)}})]}),i.renderCustomUI&&i.renderCustomUI(t,n,r,a)]})})},hm=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.actionManager,i=e.exportOpts,a=e.canvas,s=h((0,l.useState)(!1),2),u=s[0],d=s[1],f=c().useCallback((function(){d(!1)}),[]);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Zc,{onClick:function(){d(!0)},"data-testid":"json-export-button",icon:vl,type:"button","aria-label":C("buttons.export"),showAriaLabel:eg(),title:C("buttons.export")}),u&&(0,O.jsx)(cs,{onCloseRequest:f,title:C("buttons.export"),children:(0,O.jsx)(pm,{elements:t,appState:n,files:r,actionManager:o,onCloseRequest:f,exportOpts:i,canvas:a})})]})};function mm(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 gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vm=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.maxWidthOrHeight,i=e.getDimensions,a=Md({elements:t,appState:n},null,null),l=a.elements,c=a.appState,s=c.exportBackground,u=c.viewBackgroundColor;return uf(Cs(l),gm(gm({},c),{},{offsetTop:0,offsetLeft:0,width:0,height:0}),r||{},{exportBackground:s,viewBackgroundColor:u},(function(e,t){var n,r=document.createElement("canvas");if(o){"function"==typeof i&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");var a=Math.max(e,t),l=o/a;return r.width=e*l,r.height=t*l,{canvas:r,scale:l}}var c=(null==i?void 0:i(e,t))||{width:e,height:t};return r.width=c.width,r.height=c.height,{canvas:r,scale:null!==(n=c.scale)&&void 0!==n?n:1}}))},bm=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,o,i,a,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(r=t).mimeType,i=void 0===o?s.LO.png:o,a=r.quality,i===s.LO.png&&"number"==typeof a&&console.warn('"quality" will be ignored for "'.concat(s.LO.png,'" mimeType')),"image/jpg"===i&&(i=s.LO.jpg),i!==s.LO.jpg||null!==(n=t.appState)&&void 0!==n&&n.exportBackground||(console.warn('Defaulting "exportBackground" to "true" for "'.concat(s.LO.jpg,'" mimeType')),t=gm(gm({},t),{},{appState:gm(gm({},t.appState),{},{exportBackground:!0})})),e.next=6,vm(t);case 6:return l=e.sent,a=a||(/image\/jpe?g/.test(i)?.92:.8),e.abrupt("return",new Promise((function(e){l.toBlob((function(t){e(t)}),i,a)})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ym=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,o,i,a,l,c,s,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.elements,r=t.appState,o=void 0===r?zn():r,i=t.files,a=void 0===i?{}:i,l=t.exportPadding,c=Md({elements:n,appState:o},null,null),s=c.elements,u=c.appState,e.abrupt("return",df(Cs(s),gm(gm({},u),{},{exportPadding:l}),a));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();n(9295),n(9781);function xm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xm(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var km=function(e){var t=e.libItem,n=e.appState,r=e.index,o=e.onChange,i=e.onRemove,a=(0,l.useRef)(null),c=(0,l.useRef)(null);return(0,l.useEffect)((function(){var e=a.current;e&&(0,d.Z)(g().mark((function r(){var o;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ym({elements:t.elements,appState:wm(wm({},n),{},{viewBackgroundColor:jt.white,exportBackground:!0}),files:null});case 2:o=r.sent,e.innerHTML=o.outerHTML;case 4:case"end":return r.stop()}}),r)})))()}),[t.elements,n]),(0,O.jsxs)("div",{className:"single-library-item",children:[(0,O.jsx)("div",{ref:a,className:"single-library-item__svg"}),(0,O.jsx)(Zc,{"aria-label":C("buttons.remove"),type:"button",icon:Bl,className:"single-library-item--remove",onClick:i.bind(null,t.id),title:C("buttons.remove")}),(0,O.jsxs)("div",{style:{display:"flex",margin:"0.8rem 0.3rem",width:"100%",fontSize:"14px",fontWeight:500,flexDirection:"column"},children:[(0,O.jsxs)("label",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column"},children:[(0,O.jsxs)("div",{style:{padding:"0.5em 0"},children:[(0,O.jsx)("span",{style:{fontWeight:500,color:jt.gray[6]},children:C("publishDialog.itemName")}),(0,O.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,O.jsx)("input",{type:"text",ref:c,style:{width:"80%",padding:"0.2rem"},defaultValue:t.name,placeholder:"Item name",onChange:function(e){o(e.target.value,r)}})]}),(0,O.jsx)("span",{className:"error",children:t.error})]})]})};function Em(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return jm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jm(e,t)}(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 jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cm="publish-library-data",Om=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,o,i,a,l,c,u,d,f,p,m,v,b,y,x,w;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=6,r=128,o=Math.round(r/16),i=Math.max(Math.round(r/64),2),a=pn(t,n),(l=document.createElement("canvas")).width=a[0].length*r+(a[0].length+1)*(2*o)-2*o,l.height=a.length*r+(a.length+1)*(2*o)-2*o,(c=l.getContext("2d")).fillStyle=jt.white,c.fillRect(0,0,l.width,l.height),u=Sm(t.entries()),e.prev=12,u.s();case 14:if((d=u.n()).done){e.next=28;break}return f=h(d.value,2),p=f[0],m=f[1],e.next=18,vm({elements:m.elements,files:null,maxWidthOrHeight:r});case 18:v=e.sent,b=v.width,y=v.height,x=Math.floor(p/n)*(r+2*o),w=p%n*(r+2*o),c.drawImage(v,w+(r-b)/2+o,x+(r-y)/2+o),c.lineWidth=i,c.strokeStyle=jt.gray[4],c.strokeRect(w+o/2,x+o/2,r+o,r+o);case 26:e.next=14;break;case 28:e.next=33;break;case 30:e.prev=30,e.t0=e.catch(12),u.e(e.t0);case 33:return e.prev=33,u.f(),e.finish(33);case 36:return e.t1=Wd,e.t2=File,e.next=40,Bd(l);case 40:return e.t3=e.sent,e.t4=[e.t3],e.t5={type:s.LO.png},e.t6=new e.t2(e.t4,"preview",e.t5),e.t7={outputType:s.LO.jpg,maxWidthOrHeight:5e3},e.next=47,(0,e.t1)(e.t6,e.t7);case 47:return e.abrupt("return",e.sent);case 48:case"end":return e.stop()}}),e,null,[[12,30,33,36]])})));return function(t){return e.apply(this,arguments)}}(),Im=function(e){var t=e.onClose,n=e.libraryItems,r=e.appState,o=e.onSuccess,i=e.onError,a=e.updateItemsInStorage,c=e.onRemove,u=h((0,l.useState)({authorName:"",githubHandle:"",name:"",description:"",twitterHandle:"",website:""}),2),f=u[0],p=u[1],m=h((0,l.useState)(!1),2),v=m[0],b=m[1];(0,l.useEffect)((function(){var e=function(){try{var e=localStorage.getItem(Cm);if(e)return JSON.parse(e)}catch(e){console.error(e)}return null}();e&&p(e)}),[]);var y=h((0,l.useState)(n.slice()),2),x=y[0],w=y[1];(0,l.useEffect)((function(){w(n.slice())}),[n]);var k,E=function(e){p(_m(_m({},f),{},A({},e.target.name,e.target.value)))},_=function(){var e=(0,d.Z)(g().mark((function e(t){var n,r,a,l,c,u,d;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),b(!0),n=[],r=!1,x.forEach((function(e){var t="";e.name||(t=C("publishDialog.errors.required"),r=!0),n.push(_m(_m({},e),{},{error:t}))})),!r){e.next=9;break}return w(n),b(!1),e.abrupt("return");case 9:return e.next=11,Om(x);case 11:a=e.sent,l={type:s.r8.excalidrawLibrary,version:s.Kr.excalidrawLibrary,source:s.pb,libraryItems:x},c=JSON.stringify(l,null,2),u=new Blob([c],{type:"application/json"}),(d=new FormData).append("excalidrawLib",u),d.append("previewImage",a),d.append("previewImageType",a.type),d.append("title",f.name),d.append("authorName",f.authorName),d.append("githubHandle",f.githubHandle),d.append("name",f.name),d.append("description",f.description),d.append("twitterHandle",f.twitterHandle),d.append("website",f.website),fetch("".concat("https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries","/submit"),{method:"post",body:d}).then((function(e){return e.ok?e.json().then((function(e){var t=e.url;localStorage.removeItem(Cm),o({url:t,authorName:f.authorName,items:x})})):e.json().catch((function(){throw new Error(e.statusText||"something went wrong")})).then((function(t){throw new Error(t.message||e.statusText||"something went wrong")}))}),(function(e){console.error(e),i(e),b(!1)})).catch((function(e){console.error(e),i(e),b(!1)}));case 27:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=(0,l.useCallback)((function(){a(x),function(e){try{localStorage.setItem(Cm,JSON.stringify(e))}catch(e){console.error(e)}}(f),t()}),[x,t,a,f]),j=!!n.length;return(0,O.jsx)(cs,{onCloseRequest:S,title:C("publishDialog.title"),className:"publish-library",children:j?(0,O.jsxs)("form",{onSubmit:_,children:[(0,O.jsxs)("div",{className:"publish-library-note",children:[C("publishDialog.noteDescription.pre"),(0,O.jsx)("a",{href:"https://libraries.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:C("publishDialog.noteDescription.link")})," ",C("publishDialog.noteDescription.post")]}),(0,O.jsxs)("span",{className:"publish-library-note",children:[C("publishDialog.noteGuidelines.pre"),(0,O.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries#guidelines",target:"_blank",rel:"noopener noreferrer",children:C("publishDialog.noteGuidelines.link")}),C("publishDialog.noteGuidelines.post")]}),(0,O.jsx)("div",{className:"publish-library-note",children:C("publishDialog.noteItems")}),(k=[],x.forEach((function(e,t){k.push((0,O.jsx)("div",{className:"single-library-item-wrapper",children:(0,O.jsx)(km,{libItem:e,appState:r,index:t,onChange:function(e,t){var n=x.slice();n[t].name=e,w(n)},onRemove:c})},t))})),(0,O.jsx)("div",{className:"selected-library-items",children:k})),(0,O.jsxs)("div",{className:"publish-library__fields",children:[(0,O.jsxs)("label",{children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:C("publishDialog.libraryName")}),(0,O.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,O.jsx)("input",{type:"text",name:"name",required:!0,value:f.name,onChange:E,placeholder:C("publishDialog.placeholder.libraryName")})]}),(0,O.jsxs)("label",{style:{alignItems:"flex-start"},children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:C("publishDialog.libraryDesc")}),(0,O.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,O.jsx)("textarea",{name:"description",rows:4,required:!0,value:f.description,onChange:E,placeholder:C("publishDialog.placeholder.libraryDesc")})]}),(0,O.jsxs)("label",{children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{children:C("publishDialog.authorName")}),(0,O.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,O.jsx)("input",{type:"text",name:"authorName",required:!0,value:f.authorName,onChange:E,placeholder:C("publishDialog.placeholder.authorName")})]}),(0,O.jsxs)("label",{children:[(0,O.jsx)("span",{children:C("publishDialog.githubUsername")}),(0,O.jsx)("input",{type:"text",name:"githubHandle",value:f.githubHandle,onChange:E,placeholder:C("publishDialog.placeholder.githubHandle")})]}),(0,O.jsxs)("label",{children:[(0,O.jsx)("span",{children:C("publishDialog.twitterUsername")}),(0,O.jsx)("input",{type:"text",name:"twitterHandle",value:f.twitterHandle,onChange:E,placeholder:C("publishDialog.placeholder.twitterHandle")})]}),(0,O.jsxs)("label",{children:[(0,O.jsx)("span",{children:C("publishDialog.website")}),(0,O.jsx)("input",{type:"text",name:"website",pattern:"https?://.+",title:C("publishDialog.errors.website"),value:f.website,onChange:E,placeholder:C("publishDialog.placeholder.website")})]}),(0,O.jsxs)("span",{className:"publish-library-note",children:[C("publishDialog.noteLicense.pre"),(0,O.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:C("publishDialog.noteLicense.link")}),C("publishDialog.noteLicense.post")]})]}),(0,O.jsxs)("div",{className:"publish-library__buttons",children:[(0,O.jsx)(Zc,{type:"button",title:C("buttons.cancel"),"aria-label":C("buttons.cancel"),label:C("buttons.cancel"),onClick:S,"data-testid":"cancel-clear-canvas-button",className:"publish-library__buttons--cancel"}),(0,O.jsx)(Zc,{type:"submit",title:C("buttons.submit"),"aria-label":C("buttons.submit"),label:C("buttons.submit"),className:"publish-library__buttons--confirm",isLoading:v})]})]}):(0,O.jsx)("p",{style:{padding:"1em",textAlign:"center",fontWeight:500},children:C("publishDialog.atleastOneLibItem")})})},Mm=(n(4406),n(2891)),Tm=(n(694),(0,O.jsx)("svg",{viewBox:"0 0 1792 1792",children:(0,O.jsx)("path",{d:"M1600 736v192c0 26.667-9.33 49.333-28 68-18.67 18.67-41.33 28-68 28h-416v416c0 26.67-9.33 49.33-28 68s-41.33 28-68 28H800c-26.667 0-49.333-9.33-68-28s-28-41.33-28-68v-416H288c-26.667 0-49.333-9.33-68-28-18.667-18.667-28-41.333-28-68V736c0-26.667 9.333-49.333 28-68s41.333-28 68-28h416V224c0-26.667 9.333-49.333 28-68s41.333-28 68-28h192c26.67 0 49.33 9.333 68 28s28 41.333 28 68v416h416c26.67 0 49.33 9.333 68 28s28 41.333 28 68Z",style:{stroke:"#fff",strokeWidth:140},transform:"translate(0 64)"})})),Pm=function(e){var t=e.id,n=e.elements,r=e.files,o=e.isPending,i=e.onClick,a=e.selected,c=e.onToggle,u=(0,l.useRef)(null);(0,l.useEffect)((function(){var e=u.current;if(e)return(0,d.Z)(g().mark((function t(){var o;return g().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,df(n,{exportBackground:!1,viewBackgroundColor:jt.white},r);case 4:o=t.sent,e.innerHTML=o.outerHTML;case 6:case"end":return t.stop()}}),t)})))(),function(){e.innerHTML=""}}),[n,r]);var f=h((0,l.useState)(!1),2),p=f[0],m=f[1],v=eg(),b=o&&(0,O.jsx)("div",{className:"library-unit__adder",children:Tm});return(0,O.jsxs)("div",{className:Fe("library-unit",{"library-unit__active":n,"library-unit--hover":n&&p,"library-unit--selected":a}),onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)},children:[(0,O.jsx)("div",{className:Fe("library-unit__dragger",{"library-unit__pulse":!!o}),ref:u,draggable:!!n,onClick:n||o?function(e){t&&e.shiftKey?c(t,e):i()}:void 0,onDragStart:function(e){m(!1),e.dataTransfer.setData(s.LO.excalidrawlib,JSON.stringify(n))}}),b,t&&n&&(p||v||a)&&(0,O.jsx)(Zf,{checked:a,onChange:function(e,n){return c(t,n)},className:"library-unit__checkbox"})]})},Am=(n(6043),function(e){var t,n,r,o=e.libraryItems,i=e.onRemoveFromLibrary,a=e.onAddToLibrary,c=e.onInsertShape,u=e.pendingElements,f=e.theme,p=e.setAppState,m=e.libraryReturnUrl,v=e.library,b=e.files,y=e.id,x=e.selectedItems,w=e.onToggle,k=e.onPublish,E=e.resetLibrary,_=(0,l.useCallback)((function(){var e=x.length?C("alerts.removeItemsFromsLibrary",{count:x.length}):C("alerts.resetLibrary"),t=x.length?C("confirmDialog.removeItemsFromLib"):C("confirmDialog.resetLibrary");return(0,O.jsx)(fs,{onConfirm:function(){x.length?i():E(),I(!1)},onCancel:function(){I(!1)},title:t,children:(0,O.jsx)("p",{children:e})})}),[x,i,E]),S=h((0,l.useState)(!1),2),j=S[0],I=S[1],M=eg(),T=M?4:6,A=m||window.location.origin+window.location.pathname,L=x.some((function(e){var t;return"published"===(null===(t=o.find((function(t){return t.id===e})))||void 0===t?void 0:t.status)})),D=function(e){var t,n,r,o,i;return(0,O.jsx)($f,{children:(0,O.jsx)(Pm,{elements:null===(t=e.item)||void 0===t?void 0:t.elements,files:b,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)&&x.includes(e.item.id),onToggle:function(e,t){w(e,t)}})},e.key)},R=function(e){var t=e.map((function(e){return e.id?D({item:e,onClick:function(){return c(e.elements)},key:e.id}):D({key:"__pending__item__",item:e,onClick:function(){return a(u)}})})),n=(0,Mm.chunk)(t,T);return n.length||(n=[[]]),n.map((function(e,t,n){return t===n.length-1&&(e=e.concat(new Array(T-e.length).fill(null).map((function(e,t){return D({key:"empty_".concat(t),item:null})})))),(0,O.jsx)(qf,{align:"center",gap:1,children:e},t)}))},z=o.filter((function(e){return"published"===e.status})),N=[].concat(P(u.length?[{id:null,elements:u}]:[]),P(o.filter((function(e){return"published"!==e.status}))));return(0,O.jsxs)("div",{className:"library-menu-items-container",children:[j&&_(),(0,O.jsxs)("div",{className:"layer-ui__library-header",children:[(t=!!x.length,n=t?o.filter((function(e){return x.includes(e.id)})):o,r=C(t?"buttons.remove":"buttons.resetLibrary"),(0,O.jsxs)("div",{className:"library-actions",children:[(!t||!M)&&(0,O.jsx)(Zc,{type:"button",title:C("buttons.load"),"aria-label":C("buttons.load"),icon:pl,onClick:function(){tf(v).then((function(){p({isLibraryOpen:!1}),p({isLibraryOpen:!0})})).catch(jn).catch((function(e){p({errorMessage:e.message})}))},className:"library-actions--load"},"import"),!!n.length&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Zc,{type:"button",title:C("buttons.export"),"aria-label":C("buttons.export"),icon:yl,onClick:(0,d.Z)(g().mark((function e(){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=n,e.next=7;break;case 4:return e.next=6,v.loadLibrary();case 6:e.t0=e.sent;case 7:r=e.t0,ef(r).catch(jn).catch((function(e){p({errorMessage:e.message})}));case 9:case"end":return e.stop()}}),e)}))),className:"library-actions--export",children:x.length>0&&(0,O.jsx)("span",{className:"library-actions-counter",children:x.length})},"export"),(0,O.jsx)(Zc,{type:"button",title:r,"aria-label":r,icon:ml,onClick:function(){return I(!0)},className:"library-actions--remove",children:x.length>0&&(0,O.jsx)("span",{className:"library-actions-counter",children:x.length})},"reset")]}),t&&!L&&(0,O.jsx)(ns,{label:C("hints.publishLibrary"),children:(0,O.jsxs)(Zc,{type:"button","aria-label":C("buttons.publishLibrary"),label:C("buttons.publishLibrary"),icon:yc,className:"library-actions--publish",onClick:k,children:[!M&&(0,O.jsx)("label",{children:C("buttons.publishLibrary")}),x.length>0&&(0,O.jsx)("span",{className:"library-actions-counter",children:x.length})]})})]})),(0,O.jsx)("a",{href:"".concat("https://libraries.excalidraw.com","?target=").concat(window.name||"_blank","&referrer=").concat(A,"&useHash=true&token=").concat(y,"&theme=").concat(f,"&version=").concat(s.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:C("labels.libraries")})]},"library-header"),(0,O.jsxs)($f,{className:"library-menu-items-container__items",align:"start",gap:1,children:[(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"separator",children:C("labels.personalLib")}),R(N)]}),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"separator",children:[C("labels.excalidrawLib")," "]}),R(z)]})]})]})}),Lm=function(e,t){return e.filter((function(e){return t.includes(e.id)}))},Dm=function(e){var t=e.onClose,n=e.onInsertShape,r=e.pendingElements,o=e.onAddToLibrary,i=e.theme,a=e.setAppState,c=e.files,u=e.libraryReturnUrl,f=e.focusContainer,p=e.library,m=e.id,v=e.appState,b=(0,l.useRef)(null);!function(e,t){(0,l.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])}(b,(function(e){e.target.closest(".ToolIcon__library")||t()})),(0,l.useEffect)((function(){var e=function(e){e.key===en.ESCAPE&&t()};return document.addEventListener(s.Ks.KEYDOWN,e),function(){document.removeEventListener(s.Ks.KEYDOWN,e)}}),[t]);var y=h((0,l.useState)([]),2),x=y[0],w=y[1],k=h((0,l.useState)("preloading"),2),E=k[0],_=k[1],S=h((0,l.useState)([]),2),j=S[0],I=S[1],M=h((0,l.useState)(!1),2),T=M[0],A=M[1],L=h((0,l.useState)(null),2),D=L[0],R=L[1],z=(0,l.useRef)(null);(0,l.useEffect)((function(){return Promise.race([new Promise((function(e){z.current=window.setTimeout((function(){e("loading")}),100)})),p.loadLibrary().then((function(e){w(e),_("ready")}))]).then((function(e){"loading"===e&&_("loading")})),function(){clearTimeout(z.current)}}),[p]);var N=(0,l.useCallback)((0,d.Z)(g().mark((function e(){var t,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.loadLibrary();case 2:t=e.sent,n=t.filter((function(e){return!j.includes(e.id)})),p.saveLibrary(n).catch((function(e){w(t),a({errorMessage:C("alerts.errorRemovingFromLibrary")})})),I([]),w(n);case 7:case"end":return e.stop()}}),e)}))),[p,a,j,I]),H=(0,l.useCallback)((function(){p.resetLibrary(),w([]),f()}),[p,f]),B=(0,l.useCallback)(function(){var e=(0,d.Z)(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.some((function(e){return"image"===e.type}))){e.next=2;break}return e.abrupt("return",a({errorMessage:"Support for adding images to the library coming soon!"}));case 2:return e.next=4,p.loadLibrary();case 4:n=e.sent,r=[{status:"unpublished",elements:t,id:ro(),created:Date.now()}].concat(P(n)),o(),p.saveLibrary(r).catch((function(e){w(n),a({errorMessage:C("alerts.errorAddingToLibrary")})})),w(r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,a]),F=(0,l.useCallback)((function(){return(0,O.jsxs)(cs,{onCloseRequest:function(){return R(null)},title:C("publishSuccessDialog.title"),className:"publish-library-success",small:!0,children:[(0,O.jsxs)("p",{children:[C("publishSuccessDialog.content",{authorName:D.authorName})," ",(0,O.jsx)("a",{href:null==D?void 0:D.url,target:"_blank",rel:"noopener noreferrer",children:C("publishSuccessDialog.link")})]}),(0,O.jsx)(Zc,{type:"button",title:C("buttons.close"),"aria-label":C("buttons.close"),label:C("buttons.close"),onClick:function(){return R(null)},"data-testid":"publish-library-success-close",className:"publish-library-success-close"})]})}),[R,D]),U=(0,l.useCallback)((function(e){A(!1),R({url:e.url,authorName:e.authorName});var t=x.slice();t.forEach((function(e){j.includes(e.id)&&(e.status="published")})),p.saveLibrary(t),w(t)}),[A,R,x,j,p]),K=h((0,l.useState)(null),2),W=K[0],V=K[1];return"preloading"===E?null:(0,O.jsxs)(is,{padding:1,ref:b,className:"layer-ui__library",children:[T&&(0,O.jsx)(Im,{onClose:function(){return A(!1)},libraryItems:Lm(x,j),appState:v,onSuccess:U,onError:function(e){return window.alert(e)},updateItemsInStorage:function(){return p.saveLibrary(x)},onRemove:function(e){return I(j.filter((function(t){return t!==e})))}}),D&&F(),"loading"===E?(0,O.jsx)("div",{className:"layer-ui__library-message",children:C("labels.libraryLoadingMessage")}):(0,O.jsx)(Am,{libraryItems:x,onRemoveFromLibrary:N,onAddToLibrary:B,onInsertShape:n,pendingElements:r,setAppState:a,libraryReturnUrl:u,library:p,theme:i,files:c,id:m,selectedItems:j,onToggle:function(e,t){if(!j.includes(e)){if(t.shiftKey&&W){var n=x.findIndex((function(e){return e.id===W})),r=x.findIndex((function(t){return t.id===e}));if(-1===n||-1===r)return void I([].concat(P(j),[e]));var o=Tn(j),i=x.reduce((function(e,t,i){return(i>=n&&i<=r||o.has(t.id))&&e.push(t.id),e}),[]);I(i)}else I([].concat(P(j),[e]));V(e)}else V(null),I(j.filter((function(t){return t!==e})))},onPublish:function(){return A(!0)},resetLibrary:H})]})},Rm=(n(3336),n(276),["suggestedBindings","startBoundElement"]);function zm(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 Nm=function(e){var t,n=e.actionManager,r=e.appState,o=e.files,i=e.setAppState,a=e.canvas,c=e.elements,u=e.onCollabButtonClick,f=e.onLockToggle,p=e.onPenModeToggle,m=e.onInsertElements,v=e.zenModeEnabled,b=e.showExitZenModeBtn,y=e.showThemeBtn,x=e.toggleZenMode,w=e.isCollaborating,k=e.renderTopRightUI,E=e.renderCustomFooter,_=e.viewModeEnabled,S=e.libraryReturnUrl,j=e.UIOptions,M=e.focusContainer,T=e.library,P=e.id,L=e.onImageAction,D=eg(),R=function(){return j.canvasActions.export?(0,O.jsx)(hm,{elements:c,appState:r,files:o,actionManager:n,exportOpts:j.canvasActions.export,canvas:a}):null},z=function(){if(!j.canvasActions.saveAsImage)return null;var e=function(e){return function(){var t=(0,d.Z)(g().mark((function t(n){var a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Kf(e,n,r,o,{exportBackground:r.exportBackground,name:r.name,viewBackgroundColor:r.viewBackgroundColor}).catch(jn).catch((function(e){console.error(e),i({errorMessage:e.message})}));case 2:a=t.sent,r.exportEmbedScene&&a&&Rd(a)&&i({fileHandle:a});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};return(0,O.jsx)(Nh,{elements:c,appState:r,files:o,actionManager:n,onExportToPng:e("png"),onExportToSvg:e("svg"),onExportToClipboard:e("clipboard")})},N=function(){return(0,O.jsx)("div",{style:{width:".625em"}})},H=(0,l.useCallback)((function(){!!document.querySelector(".Dialog")||i({isLibraryOpen:!1})}),[i]),B=(0,l.useCallback)((function(){i({selectedElementIds:{},selectedGroupIds:{}})}),[i]),F=r.isLibraryOpen?(0,O.jsx)(Dm,{pendingElements:Ds(c,r,!0),onClose:H,onInsertShape:m,onAddToLibrary:B,setAppState:i,libraryReturnUrl:S,focusContainer:M,library:T,theme:r.theme,files:o,id:P,appState:r}):null,U=(0,O.jsxs)(O.Fragment,{children:[r.isLoading&&(0,O.jsx)(I,{}),r.errorMessage&&(0,O.jsx)(Ph,{message:r.errorMessage,onClose:function(){return i({errorMessage:null})}}),r.showHelpDialog&&(0,O.jsx)(dm,{onClose:function(){i({showHelpDialog:!1})}}),r.pasteDialog.shown&&(0,O.jsx)(nm,{setAppState:i,appState:r,onInsertChart:m,onClose:function(){return i({pasteDialog:{shown:!1,data:null}})}})]});return D?(0,O.jsxs)(O.Fragment,{children:[U,(0,O.jsx)(em,{appState:r,elements:c,actionManager:n,libraryMenu:F,renderJSONExportDialog:R,renderImageExportDialog:z,setAppState:i,onCollabButtonClick:u,onLockToggle:f,onPenModeToggle:p,canvas:a,isCollaborating:w,renderCustomFooter:E,viewModeEnabled:_,showThemeBtn:y,onImageAction:L,renderTopRightUI:k})]}):(0,O.jsxs)("div",{className:Fe("layer-ui__wrapper",{"disable-pointerEvents":r.draggingElement||r.resizingElement||r.editingElement&&!Ve(r.editingElement)}),children:[U,(t=ks(r,c),(0,O.jsx)(Hh,{side:"top",children:(0,O.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,O.jsxs)($f,{gap:4,className:Fe({"disable-pointerEvents":v}),children:[_?(0,O.jsx)(Gh,{heading:"canvasActions",className:Fe("zen-mode-transition",{"transition-left":v}),children:(0,O.jsx)(is,{padding:2,style:{zIndex:1},children:(0,O.jsx)($f,{gap:4,children:(0,O.jsxs)(qf,{gap:1,justifyContent:"space-between",children:[R(),z()]})})})}):(0,O.jsx)(Gh,{heading:"canvasActions",className:Fe("zen-mode-transition",{"transition-left":v}),children:(0,O.jsx)(is,{padding:2,style:{zIndex:1},children:(0,O.jsxs)($f,{gap:4,children:[(0,O.jsxs)(qf,{gap:1,justifyContent:"space-between",children:[n.renderAction("clearCanvas"),(0,O.jsx)(N,{}),n.renderAction("loadScene"),R(),z(),(0,O.jsx)(N,{}),u&&(0,O.jsx)(Th,{isCollaborating:w,collaboratorCount:r.collaborators.size,onClick:u})]}),(0,O.jsx)(Mh,{actionManager:n,appState:r,setAppState:i,showThemeBtn:y}),r.fileHandle&&(0,O.jsx)(O.Fragment,{children:n.renderAction("saveToActiveFile")})]})})}),t&&(0,O.jsx)(Gh,{heading:"selectedShapeActions",className:Fe("zen-mode-transition",{"transition-left":v}),children:(0,O.jsx)(is,{className:s.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(r.height-(r.fileHandle?248:200),"px")},children:(0,O.jsx)(Ch,{appState:r,elements:c,renderAction:n.renderAction,elementType:r.elementType})})})]}),!_&&(0,O.jsx)(Gh,{heading:"shapes",children:function(e){return(0,O.jsxs)($f,{gap:4,align:"start",children:[(0,O.jsxs)(qf,{gap:1,className:Fe("App-toolbar-container",{"zen-mode":v}),children:[(0,O.jsx)(Qh,{zenModeEnabled:v,checked:r.penMode,onChange:p,title:C("toolBar.penMode"),penDetected:r.penDetected}),(0,O.jsx)(Uh,{zenModeEnabled:v,checked:r.elementLocked,onChange:f,title:C("toolBar.lock")}),(0,O.jsxs)(is,{padding:1,className:Fe("App-toolbar",{"zen-mode":v}),children:[(0,O.jsx)(Bh,{appState:r,elements:c,isMobile:D}),e,(0,O.jsx)(qf,{gap:1,children:(0,O.jsx)(Oh,{canvas:a,elementType:r.elementType,setAppState:i,onImageAction:function(e){var t=e.pointerType;L({insertOnCanvasDirectly:"mouse"!==t})}})})]}),(0,O.jsx)(Xh,{appState:r,setAppState:i})]}),F]})}}),(0,O.jsxs)("div",{className:Fe("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":v}),children:[(0,O.jsx)(Zh,{children:r.collaborators.size>0&&Array.from(r.collaborators).filter((function(e){var t=h(e,2),n=(t[0],t[1]);return 0!==Object.keys(n).length})).map((function(e){var t=h(e,2),r=t[0],o=t[1];return(0,O.jsx)(ns,{label:o.username||"Unknown user",children:n.renderAction("goToCollaborator",{id:r})},r)}))}),null==k?void 0:k(D,r)]})]})})),(0,O.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,O.jsx)("div",{className:Fe("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":v}),children:(0,O.jsx)($f,{gap:2,children:(0,O.jsxs)(Gh,{heading:"canvasActions",children:[(0,O.jsx)(is,{padding:1,children:(0,O.jsx)(Ih,{renderAction:n.renderAction,zoom:r.zoom})}),!_&&(0,O.jsxs)("div",{className:Fe("undo-redo-buttons zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":v}),children:[n.renderAction("undo",{size:"small"}),n.renderAction("redo",{size:"small"})]})]})})}),(0,O.jsx)("div",{className:Fe("layer-ui__wrapper__footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":v}),children:null==E?void 0:E(!1,r)}),(0,O.jsx)("div",{className:Fe("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right disable-pointerEvents":v}),children:n.renderAction("toggleShortcuts")}),(0,O.jsx)("button",{className:Fe("disable-zen-mode",{"disable-zen-mode--visible":b}),onClick:x,children:C("buttons.exitZenMode")})]}),r.scrolledOutside&&(0,O.jsx)("button",{className:"scroll-back-to-content",onClick:function(){i(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zm(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},$c(c,r)))},children:C("buttons.scrollBackToContent")})]})},Hm=function(e,t){var n=function(e){e.suggestedBindings,e.startBoundElement;return po(e,Rm)},r=n(e.appState),o=n(t.appState),i=Object.keys(r);return e.renderCustomFooter===t.renderCustomFooter&&e.langCode===t.langCode&&e.elements===t.elements&&e.files===t.files&&i.every((function(e){return r[e]===o[e]}))},Bm=c().memo(Nm,Hm),Fm=(n(1528),function(e){var t,n=eg(),r=kt(e.elements),o=Rs(e.elements,e.appState),i=kt(o);return n&&e.appState.openMenu?null:(0,O.jsx)("div",{className:"Stats",children:(0,O.jsxs)(is,{padding:2,children:[(0,O.jsx)("div",{className:"close",onClick:e.onClose,children:Bl}),(0,O.jsx)("h3",{children:C("stats.title")}),(0,O.jsx)("table",{children:(0,O.jsxs)("tbody",{children:[(0,O.jsx)("tr",{children:(0,O.jsx)("th",{colSpan:2,children:C("stats.scene")})}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.elements")}),(0,O.jsx)("td",{children:e.elements.length})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.width")}),(0,O.jsx)("td",{children:Math.round(r[2])-Math.round(r[0])})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.height")}),(0,O.jsx)("td",{children:Math.round(r[3])-Math.round(r[1])})]}),1===o.length&&(0,O.jsx)("tr",{children:(0,O.jsx)("th",{colSpan:2,children:C("stats.element")})}),o.length>1&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("tr",{children:(0,O.jsx)("th",{colSpan:2,children:C("stats.selected")})}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.elements")}),(0,O.jsx)("td",{children:o.length})]})]}),o.length>0&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:"x"}),(0,O.jsx)("td",{children:Math.round(i[0])})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:"y"}),(0,O.jsx)("td",{children:Math.round(i[1])})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.width")}),(0,O.jsx)("td",{children:Math.round(i[2]-i[0])})]}),(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.height")}),(0,O.jsx)("td",{children:Math.round(i[3]-i[1])})]})]}),1===o.length&&(0,O.jsxs)("tr",{children:[(0,O.jsx)("td",{children:C("stats.angle")}),(0,O.jsx)("td",{children:"".concat(Math.round(180*o[0].angle/Math.PI),"°")})]}),null===(t=e.renderCustomStats)||void 0===t?void 0:t.call(e,e.elements,e.appState)]})})]})})}),Um=(n(9757),function(e){var t=e.message,n=e.clearToast,r=(0,l.useRef)(0),o=(0,l.useCallback)((function(){return r.current=window.setTimeout((function(){return n()}),s.Lg)}),[n]);return(0,l.useEffect)((function(){return o(),function(){return clearTimeout(r.current)}}),[o,t]),(0,O.jsx)("div",{className:"Toast",onMouseEnter:function(){return clearTimeout(null==r?void 0:r.current)},onMouseLeave:o,children:(0,O.jsx)("p",{className:"Toast__message",children:t})})});function Km(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 Wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vm=Pc({name:"viewMode",perform:function(e,t){return hu("view","mode","view"),{appState:Wm(Wm({},t),{},{viewModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.viewModeEnabled},contextItemLabel:"labels.viewMode",keyTest:function(e){return!e[en.CTRL_OR_CMD]&&e.altKey&&e.code===Jt}}),Gm=n(200),Zm=n.n(Gm);function Ym(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xm(e,t)}(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 Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qm(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qm(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qm(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=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}var Jm=c().createContext(!1),eg=function(){return(0,l.useContext)(Jm)},tg=c().createContext({container:null,id:null}),ng=function(){return(0,l.useContext)(tg)},rg=!1,og=0,ig=0,ag=0,lg=!1,cg=!1,sg=!1,ug={horizontal:null,vertical:null},dg=0,fg=!1,pg=null,hg={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null},mg=function(e){H(o,e);var t,n,r=Qm(o);function o(e){var t;L(this,o),t=r.call(this,e),gg.call(z(t));var n,i=zn(),a=e.excalidrawRef,l=e.viewModeEnabled,c=void 0!==l&&l,u=e.zenModeEnabled,d=void 0!==u&&u,f=e.gridModeEnabled,p=void 0!==f&&f,h=e.theme,m=void 0===h?i.theme:h,g=e.name,v=void 0===g?i.name:g;if(t.state=$m($m($m({},i),{},{theme:m,isLoading:!0},t.getCanvasOffsets()),{},{viewModeEnabled:c,zenModeEnabled:d,gridSize:p?s.k:null,name:v,width:window.innerWidth,height:window.innerHeight,showHyperlinkPopup:!1}),t.id=Ue(),a){var b,y="current"in a&&(null===(b=a.current)||void 0===b?void 0:b.readyPromise)||function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}(),x={ready:!0,readyPromise:y,updateScene:t.updateScene,addFiles:t.addFiles,resetScene:t.resetScene,getSceneElementsIncludingDeleted:t.getSceneElementsIncludingDeleted,history:{clear:t.resetHistory},scrollToContent:t.scrollToContent,getSceneElements:t.getSceneElements,getAppState:function(){return t.state},getFiles:function(){return t.files},refresh:t.refresh,importLibrary:t.importLibraryFromUrl,setToastMessage:t.setToastMessage,id:t.id};"function"==typeof a?a(x):a.current=x,y.resolve(x)}return t.excalidrawContainerValue={container:t.excalidrawContainerRef.current,id:t.id},t.scene=new sr,t.library=new fh(z(t)),t.history=new yh,t.actionManager=new ah(t.syncActionResult,(function(){return t.state}),(function(){return t.scene.getElementsIncludingDeleted()}),z(t)),t.actionManager.registerAll(Tc),t.actionManager.registerAction((n=t.history,{name:"undo",perform:function(e,t){return ih(e,t,(function(){return n.undoOnce()}))},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.key.toLowerCase()===en.Z&&!e.shiftKey},PanelComponent:function(e){var t=e.updateData,n=e.data;return(0,O.jsx)(Zc,{type:"button",icon:_l,"aria-label":C("buttons.undo"),onClick:t,size:(null==n?void 0:n.size)||"medium"})},commitToHistory:function(){return!1}})),t.actionManager.registerAction(function(e){return{name:"redo",perform:function(t,n){return ih(t,n,(function(){return e.redoOnce()}))},keyTest:function(e){return e[en.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===en.Z||Tt&&e.ctrlKey&&!e.shiftKey&&e.key===en.Y},PanelComponent:function(e){var t=e.updateData,n=e.data;return(0,O.jsx)(Zc,{type:"button",icon:Sl,"aria-label":C("buttons.redo"),onClick:t,size:(null==n?void 0:n.size)||"medium"})},commitToHistory:function(){return!1}}}(t.history)),t}return R(o,[{key:"renderCanvas",value:function(){var e=window.devicePixelRatio,t=this.state,n=t.width,r=t.height,o=n*e,i=r*e;return t.viewModeEnabled?(0,O.jsx)("canvas",{className:"excalidraw__canvas",style:{width:n,height:r,cursor:s.oc.GRAB},width:o,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,children:C("labels.drawingCanvas")}):(0,O.jsx)("canvas",{className:"excalidraw__canvas",style:{width:n,height:r},width:o,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,children:C("labels.drawingCanvas")})}},{key:"render",value:function(){var e,t,n=this,r=this.state,o=r.zenModeEnabled,i=r.viewModeEnabled,a=Ds(this.scene.getElements(),this.state),l=this.props,c=l.onCollabButtonClick,s=l.renderTopRightUI,u=l.renderFooter,d=l.renderCustomStats;return(0,O.jsx)("div",{className:Fe("excalidraw excalidraw-container",{"excalidraw--view-mode":i,"excalidraw--mobile":this.isMobile}),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,O.jsx)(tg.Provider,{value:this.excalidrawContainerValue,children:(0,O.jsxs)(Jm.Provider,{value:this.isMobile,children:[(0,O.jsx)(Bm,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getElements(),onCollabButtonClick:c,onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onInsertElements:function(e){return n.addElementsFromPasteOrLibrary({elements:e,position:"center",files:null})},zenModeEnabled:o,toggleZenMode:this.toggleZenMode,langCode:S().code,isCollaborating:this.props.isCollaborating,renderTopRightUI:s,renderCustomFooter:u,viewModeEnabled:i,showExitZenModeBtn:void 0===(null===(e=this.props)||void 0===e?void 0:e.zenModeEnabled)&&o,showThemeBtn:void 0===(null===(t=this.props)||void 0===t?void 0:t.theme)&&this.props.UIOptions.canvasActions.theme,libraryReturnUrl:this.props.libraryReturnUrl,UIOptions:this.props.UIOptions,focusContainer:this.focusContainer,library:this.library,id:this.id,onImageAction:this.onImageAction}),(0,O.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,O.jsx)("div",{className:"excalidraw-contextMenuContainer"}),1===a.length&&this.state.showHyperlinkPopup&&(0,O.jsx)(wu,{element:a[0],appState:this.state,setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen},a[0].id),this.state.showStats&&(0,O.jsx)(Fm,{appState:this.state,setAppState:this.setAppState,elements:this.scene.getElements(),onClose:this.toggleStats,renderCustomStats:d}),null!==this.state.toastMessage&&(0,O.jsx)(Um,{message:this.state.toastMessage,clearToast:this.clearToast}),(0,O.jsx)("main",{children:this.renderCanvas()})]})})})}},{key:"componentDidMount",value:(n=(0,d.Z)(g().mark((function e(){var t,n,r,o,i=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,"production"!==s.Vi.TEST&&"production"!==s.Vi.DEVELOPMENT||(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return i.state}},setState:{configurable:!0,value:function(){return i.setState.apply(i,arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.excalidrawContainerRef.current&&this.focusContainer(),"ResizeObserver"in window&&null!==(t=this.excalidrawContainerRef)&&void 0!==t&&t.current?(this.resizeObserver=new ResizeObserver((function(){var e=i.excalidrawContainerRef.current.getBoundingClientRect(),t=e.width,n=e.height;i.isMobile=t<s.kV||n<s.Yx&&t<s.sS,i.updateDOMRect()})),null===(n=this.resizeObserver)||void 0===n||n.observe(this.excalidrawContainerRef.current)):window.matchMedia&&(r=window.matchMedia("(max-width: ".concat(s.kV,"px), (max-height: ").concat(s.Yx,"px) and (max-width: ").concat(s.sS,"px)")),o=function(){return i.isMobile=r.matches},r.addListener(o),this.detachIsMobileMqHandler=function(){return r.removeListener(o)}),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene);case 9:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var e;this.files={},this.imageCache.clear(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),clearTimeout(dg),dg=0}},{key:"removeEventListeners",value:function(){var e,t,n,r;document.removeEventListener(s.Ks.POINTER_UP,this.removePointer),document.removeEventListener(s.Ks.COPY,this.onCopy),document.removeEventListener(s.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(s.Ks.CUT,this.onCut),null===(e=this.nearestScrollableContainer)||void 0===e||e.removeEventListener(s.Ks.SCROLL,this.onScroll),document.removeEventListener(s.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(s.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(s.Ks.KEYUP,this.onKeyUp),window.removeEventListener(s.Ks.RESIZE,this.onResize,!1),window.removeEventListener(s.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(s.Ks.BLUR,this.onBlur,!1),null===(t=this.excalidrawContainerRef.current)||void 0===t||t.removeEventListener(s.Ks.DRAG_OVER,this.disableEvent,!1),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.removeEventListener(s.Ks.DROP,this.disableEvent,!1),document.removeEventListener(s.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(s.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(s.Ks.GESTURE_END,this.onGestureEnd,!1),null===(r=this.detachIsMobileMqHandler)||void 0===r||r.call(this)}},{key:"addEventListeners",value:function(){var e,t,n,r;this.removeEventListeners(),document.addEventListener(s.Ks.POINTER_UP,this.removePointer),document.addEventListener(s.Ks.COPY,this.onCopy),this.props.handleKeyboardGlobally&&document.addEventListener(s.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(s.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(s.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),null===(e=document.fonts)||void 0===e||null===(t=e.addEventListener)||void 0===t||t.call(e,"loadingdone",this.onFontLoaded),document.addEventListener(s.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(s.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(s.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(s.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(s.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=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))return t;t=t.parentElement}return document}(this.excalidrawContainerRef.current),this.nearestScrollableContainer.addEventListener(s.Ks.SCROLL,this.onScroll)),window.addEventListener(s.Ks.RESIZE,this.onResize,!1),window.addEventListener(s.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(s.Ks.BLUR,this.onBlur,!1),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.addEventListener(s.Ks.DRAG_OVER,this.disableEvent,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.addEventListener(s.Ks.DROP,this.disableEvent,!1))}},{key:"componentDidUpdate",value:function(e,t){var n,r=this;"selection"===t.elementType&&"selection"!==this.state.elementType&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),e.langCode!==this.props.langCode&&this.updateLanguage(),e.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),t.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),e.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),e.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),e.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?s.k:null}),this.props.name&&e.name!==this.props.name&&this.setState({name:this.props.name}),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.classList.toggle("theme--dark","dark"===this.state.theme),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout((function(){r.actionManager.executeAction(pu)}));var o=t.multiElement;t.elementType!==this.state.elementType&&null!=o&&sa(this.state)&&qe(o)&&ha(o,this.state,this.scene,Sn(aa.getPointAtIndexGlobalCoordinates(o,-1)));var i={},a={},l={},c={},u={};this.state.collaborators.forEach((function(e,t){if(e.selectedElementIds)for(var n=0,o=Object.keys(e.selectedElementIds);n<o.length;n++){var s=o[n];s in l||(l[s]=[]),l[s].push(t)}e.pointer&&(e.username&&(c[t]=e.username),e.userState&&(u[t]=e.userState),a[t]=wn({sceneX:e.pointer.x,sceneY:e.pointer.y},r.state),i[t]=e.button)}));var d=this.scene.getElements().filter((function(e){return(!We(e)||!r.state.pendingImageElement||e.id!==r.state.pendingImageElement.id)&&(!r.state.editingElement||"text"!==r.state.editingElement.type||e.id!==r.state.editingElement.id)})),f=Nu(d,this.state,this.state.selectionElement,window.devicePixelRatio,this.rc,this.canvas,{scrollX:this.state.scrollX,scrollY:this.state.scrollY,viewBackgroundColor:this.state.viewBackgroundColor,zoom:this.state.zoom,remotePointerViewportCoords:a,remotePointerButton:i,remoteSelectedElementIds:l,remotePointerUsernames:c,remotePointerUserStates:u,shouldCacheIgnoreZoom:this.state.shouldCacheIgnoreZoom,theme:this.state.theme,imageCache:this.imageCache,isExporting:!1,renderScrollbars:!this.isMobile}),p=f.atLeastOneVisibleElement,h=f.scrollBars;h&&(ug=h);var m,g,v=!Ve(this.state.editingElement)&&(!p&&d.length>0);(this.state.scrolledOutside!==v&&this.setState({scrolledOutside:v}),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.scheduleImageRefresh(),this.state.isLoading)||(null===(m=(g=this.props).onChange)||void 0===m||m.call(g,this.scene.getElementsIncludingDeleted(),this.state,this.files))}},{key:"addTextFromPaste",value:function(e){var t=xn({clientX:ig,clientY:ag},this.state),n=t.x,r=t.y,o=Ao({x:n,y:r,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemStrokeSharpness,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:s.hs});this.scene.replaceAllElements([].concat(P(this.scene.getElementsIncludingDeleted()),[o])),this.setState({selectedElementIds:A({},o.id,!0)}),this.history.resumeRecording()}},{key:"selectShapeTool",value:function(e){var t;lg||vn(this.canvas,e),(t=document.activeElement)instanceof HTMLElement&&t.className.includes("ToolIcon")&&this.focusContainer(),Xe(e)||this.setState({suggestedBindings:[]}),"image"===e&&this.onImageAction(),"selection"!==e?this.setState({elementType:e,selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}):this.setState({elementType:e})}},{key:"handleTextWysiwyg",value:function(e,t){var n=this,r=t.isExistingElement,o=void 0!==r&&r,i=function(t,r,o){n.scene.replaceAllElements(P(n.scene.getElementsIncludingDeleted().map((function(n){return n.id===e.id&&Ve(n)?Lo(n,{text:t,isDeleted:o,originalText:r}):n}))))};ws({id:e.id,canvas:this.canvas,getViewportCoords:function(e,t){var r=wn({sceneX:e,sceneY:t},n.state),o=r.x,i=r.y;return[o-n.state.offsetLeft,i-n.state.offsetTop]},onChange:On((function(t){i(t,t,!1),Os(e)&&ka(e)})),onSubmit:On((function(t){var r=t.text,a=t.viaKeyboard,l=t.originalText,c=!r.trim();if(i(r,l,c),!c&&a){var s=e.containerId?e.containerId:e.id;n.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},s,!0))}}))}c&&La(n.scene.getElements(),[e]),c&&!o||n.history.resumeRecording(),n.setState({draggingElement:null,editingElement:null}),n.state.elementLocked&&vn(n.canvas,n.state.elementType),n.focusContainer()})),element:e,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),i(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&&Ve(n)&&!n.isDeleted?n:null}},{key:"getElementAtPosition",value:function(e,t,n){var r=this.getElementsAtPosition(e,t,null==n?void 0:n.includeBoundTextElement);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 bi(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=r?this.scene.getElements():this.scene.getElements().filter((function(e){return!(Ve(e)&&e.containerId)}));return Ic(o,(function(r){return vi(r,n.state,e,t)}))}},{key:"maybeCleanupAfterMissingPointerUp",value:function(e){null!==pg&&pg(e)}},{key:"updateGestureOnPointerDown",value:function(e){hg.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===hg.pointers.size&&(hg.lastCenter=ph(hg.pointers),hg.initialScale=this.state.zoom.value,hg.initialDistance=hh(Array.from(hg.pointers.values())))}},{key:"initialPointerDownState",value:function(e){var t=xn(e,this.state),n=Ds(this.scene.getElements(),this.state),r=h(kt(n),4),o=r[0],i=r[1],a=r[2],l=r[3];return{origin:t,withCmdOrCtrl:e[en.CTRL_OR_CMD],originInGrid:Sn(ut(t.x,t.y,this.state.gridSize)),scrollbars:Ps(ug,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop),lastCoords:$m({},t),originalElements:this.scene.getElements().reduce((function(e,t){return e.set(t.id,Ro(t)),e}),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(a+o)/2,y:(l+i)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(t,n),hasHitElementInside:!1},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1}}}},{key:"handleDraggingScrollBar",value:function(e,t){var n=this;if(!t.scrollbars.isOverEither||this.state.multiElement)return!1;sg=!0,t.lastCoords.x=e.clientX,t.lastCoords.y=e.clientY;var r=In((function(e){e.target instanceof HTMLElement&&n.handlePointerMoveOverScrollbars(e,t)})),o=On((function(){sg=!1,vn(n.canvas,n.state.elementType),pg=null,n.setState({cursorButton:"up"}),n.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(s.Ks.POINTER_MOVE,r),window.removeEventListener(s.Ks.POINTER_UP,o),r.flush()}));return pg=o,window.addEventListener(s.Ks.POINTER_MOVE,r),window.addEventListener(s.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=h(kt(t),4),o=r[0],i=r[1],a=r[2],l=r[3];return e.x>o-n&&e.x<a+n&&e.y>i-n&&e.y<l+n}},{key:"onKeyDownFromPointerDownHandler",value:function(e){var t=this;return On((function(n){t.maybeHandleResize(e,n)||t.maybeDragNewGenericElement(e,n)}))}},{key:"onKeyUpFromPointerDownHandler",value:function(e){var t=this;return On((function(n){n.key===en.ALT&&n.preventDefault(),t.maybeHandleResize(e,n)||t.maybeDragNewGenericElement(e,n)}))}},{key:"onPointerMoveFromPointerDownHandler",value:function(e){var t=this;return In((function(n){var r,o;if(null===e.drag.offset&&(e.drag.offset=Sn(function(e,t,n){var r=h(kt(e),2);return[t-r[0],n-r[1]]}(Ds(t.scene.getElements(),t.state),e.origin.x,e.origin.y))),n.target instanceof HTMLElement&&!t.handlePointerMoveOverScrollbars(n,e)){var i=xn(n,t.state),a=h(ut(i.x,i.y,t.state.gridSize),2),l=a[0],c=a[1];if(e.drag.hasOccurred||"arrow"!==t.state.elementType&&"line"!==t.state.elementType||!(ot(i.x,i.y,e.origin.x,e.origin.y)<s.f)){if(e.resize.isResizing&&(e.lastCoords.x=i.x,e.lastCoords.y=i.y,t.maybeHandleResize(e,n)))return!0;if(t.state.editingLinearElement){var u=aa.handlePointDragging(t.state,(function(e){return t.setState(e)}),i.x,i.y,(function(e,n){t.maybeSuggestBindingsForLinearElementAtCoords(e,n)}));if(u)return e.lastCoords.x=i.x,void(e.lastCoords.y=i.y)}var d=e.hit.allHitElements.some((function(e){return t.isASelectedElement(e)}));if((d||e.hit.hasHitCommonBoundingBoxOfSelectedElements)&&(!t.state.editingLinearElement||!n.shiftKey)&&(!t.state.editingLinearElement||(null===(r=t.state.editingLinearElement)||void 0===r?void 0:r.elementId)!==(null===(o=e.hit.element)||void 0===o?void 0:o.id)||e.hit.hasHitElementInside)){e.drag.hasOccurred=!0;var f=Ds(t.scene.getElements(),t.state);if(f.length>0&&!e.withCmdOrCtrl){var p=h(ut(i.x-e.drag.offset.x,i.y-e.drag.offset.y,t.state.gridSize),2),m=p[0],g=p[1],v=[Math.abs(i.x-e.origin.x),Math.abs(i.y-e.origin.y)],b=v[0],y=v[1],x=n.shiftKey;if(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=h(kt(t),2),s=c[0],u=c[1],d={x:n-s,y:r-u};t.forEach((function(n){if(Za(o,i,a,e,n,d),!n.groupIds.length||l.editingGroupId&&!yo(l,n)){var r=kr(n);if(r){var c=sr.getScene(n).getElement(r);Za(o,i,a,e,c,d)}}ka(n,{simultaneouslyUpdated:t})}))}(e,f,m,g,x,b,y,t.state),t.maybeSuggestBindingForAll(f),n.altKey&&!e.hit.hasBeenDuplicated){e.hit.hasBeenDuplicated=!0;var w,k=[],E=[],_=new Map,S=new Map,j=e.hit.element,C=t.scene.getElementsIncludingDeleted(),O=Ds(C,t.state,!0).map((function(e){return e.id})),I=Ym(C);try{for(I.s();!(w=I.n()).done;){var M=w.value;if(O.includes(M.id)||M.id===(null==j?void 0:j.id)&&e.hit.wasAddedToSelection){var T=zo(t.state.editingGroupId,_,M),L=h(ut(e.origin.x-e.drag.offset.x,e.origin.y-e.drag.offset.y,t.state.gridSize),2),D=L[0],R=L[1];ao(T,{x:T.x+(D-m),y:T.y+(R-g)}),k.push(T),E.push(M),S.set(M.id,T.id)}else k.push(M)}}catch(e){I.e(e)}finally{I.f()}var z=[].concat(k,E);dr(k,E,S),Pa(z,E,S,"duplicatesServeAsOld"),t.scene.replaceAllElements(z)}return}}var N=t.state.draggingElement;if(N){if("freedraw"===N.type){var H=N.points,B=i.x-N.x,F=i.y-N.y,U=H.length>0&&H[H.length-1];if(!(U&&U[0]===B&&U[1]===F)){var K=N.simulatePressure?N.pressures:[].concat(P(N.pressures),[n.pressure]);ao(N,{points:[].concat(P(H),[[B,F]]),pressures:K})}}else if(Ye(N)){e.drag.hasOccurred=!0;var W=N.points,V=l-N.x,G=c-N.y;if(on(n)&&2===W.length){var Z=uo(t.state.elementType,V,G);V=Z.width,G=Z.height}1===W.length?ao(N,{points:[].concat(P(W),[[V,G]])}):W.length>1&&ao(N,{points:[].concat(P(W.slice(0,-1)),[[V,G]])}),qe(N)&&t.maybeSuggestBindingsForLinearElementAtCoords(N,[i],t.state.startBoundElement)}else e.lastCoords.x=i.x,e.lastCoords.y=i.y,t.maybeDragNewGenericElement(e,n);if("selection"===t.state.elementType){e.boxSelection.hasOccurred=!0;var Y=t.scene.getElements();if(n.shiftKey||t.state.editingLinearElement||!As(Y,t.state)||(e.withCmdOrCtrl&&e.hit.element?t.setState((function(n){return ko($m($m({},n),{},{selectedElementIds:A({},e.hit.element.id,!0)}),t.scene.getElements())})):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),t.state.editingLinearElement)aa.handleBoxSelection(n,t.state,t.setState.bind(t));else{var X=function(e,t){var n=h(mt(t),4),r=n[0],o=n[1],i=n[2],a=n[3];return e.filter((function(e){var t=h(wt(e),4),n=t[0],l=t[1],c=t[2],s=t[3];return"selection"!==e.type&&!et(e)&&r<=n&&o<=l&&i>=c&&a>=s}))}(Y,N);t.setState((function(n){return ko($m($m({},n),{},{selectedElementIds:$m($m($m({},n.selectedElementIds),X.reduce((function(e,t){return e[t.id]=!0,e}),{})),e.hit.element?A({},e.hit.element.id,!X.length):null),showHyperlinkPopup:!(1!==X.length||!X[0].link)&&"info"}),t.scene.getElements())}))}}}}}}))}},{key:"handlePointerMoveOverScrollbars",value:function(e,t){if(t.scrollbars.isOverHorizontal){var n=e.clientX,r=n-t.lastCoords.x;return this.setState({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.setState({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 On((function(n){var r,o,i=t.state,a=i.draggingElement,l=i.resizingElement,c=i.multiElement,u=i.elementType,d=i.elementLocked,f=i.isResizing,p=i.isRotating;if(t.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,cursorButton:"up",editingElement:c||Ve(t.state.editingElement)?t.state.editingElement:null}),t.savePointer(n.clientX,n.clientY,"up"),t.state.editingLinearElement)if(e.boxSelection.hasOccurred||(null===(r=e.hit)||void 0===r||null===(o=r.element)||void 0===o?void 0:o.id)===t.state.editingLinearElement.elementId&&e.hit.hasHitElementInside){var h=aa.handlePointerUp(n,t.state.editingLinearElement,t.state);h!==t.state.editingLinearElement&&t.setState({editingLinearElement:h,suggestedBindings:[]})}else t.actionManager.executeAction(pu);if(pg=null,e.eventListeners.onMove&&e.eventListeners.onMove.flush(),window.removeEventListener(s.Ks.POINTER_MOVE,e.eventListeners.onMove),window.removeEventListener(s.Ks.POINTER_UP,e.eventListeners.onUp),window.removeEventListener(s.Ks.KEYDOWN,e.eventListeners.onKeyDown),window.removeEventListener(s.Ks.KEYUP,e.eventListeners.onKeyUp),t.state.pendingImageElement&&t.setState({pendingImageElement:null}),"freedraw"===(null==a?void 0:a.type)){var m=xn(n,t.state),g=a.points,v=m.x-a.x,b=m.y-a.y;v===g[0][0]&&b===g[0][1]&&(b+=1e-4,v+=1e-4);var y=a.simulatePressure?[]:[].concat(P(a.pressures),[n.pressure]);return ao(a,{points:[].concat(P(g),[[v,b]]),pressures:y,lastCommittedPoint:[v,b]}),void t.actionManager.executeAction(pu)}if(We(a)){var x=a;try{t.initializeImageDimensions(x),t.setState({selectedElementIds:A({},x.id,!0)},(function(){t.actionManager.executeAction(pu)}))}catch(e){console.error(e),t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==x.id}))),t.actionManager.executeAction(pu)}}else if(Ye(a)){a.points.length>1&&t.history.resumeRecording();var w=xn(n,t.state);e.drag.hasOccurred||!a||c?e.drag.hasOccurred&&!c&&(sa(t.state)&&qe(a)&&ha(a,t.state,t.scene,w),t.setState({suggestedBindings:[],startBoundElement:null}),d?t.setState((function(e){return{draggingElement:null,selectedElementIds:$m($m({},e.selectedElementIds),{},A({},t.state.draggingElement.id,!0))}})):(mn(t.canvas),t.setState((function(e){return{draggingElement:null,elementType:"selection",selectedElementIds:$m($m({},e.selectedElementIds),{},A({},t.state.draggingElement.id,!0))}})))):(ao(a,{points:[].concat(P(a.points),[[w.x-a.x,w.y-a.y]])}),t.setState({multiElement:a,editingElement:t.state.draggingElement}))}else{if("selection"!==u&&a&&so(a))return t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().slice(0,-1)),void t.setState({draggingElement:null});a&&ao(a,fo(a)),l&&t.history.resumeRecording(),l&&so(l)&&t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==l.id})));var k=e.hit.element;if(k&&!e.drag.hasOccurred&&!e.hit.wasAddedToSelection&&(!t.state.editingLinearElement||!e.boxSelection.hasOccurred))if(n.shiftKey&&!t.state.editingLinearElement)if(t.state.selectedElementIds[k.id])if(yo(t.state,k)){var E=k.groupIds.flatMap((function(e){return _o(t.scene.getElements(),e)})).map((function(e){return A({},e.id,!1)})).reduce((function(e,t){return $m($m({},e),t)}),{});t.setState((function(e){return{selectedGroupIds:$m($m({},e.selectedElementIds),k.groupIds.map((function(e){return A({},e,!1)})).reduce((function(e,t){return $m($m({},e),t)}),{})),selectedElementIds:$m($m({},e.selectedElementIds),E)}}))}else t.setState((function(e){return ko($m($m({},e),{},{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},k.id,!1))}),t.scene.getElements())}));else t.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},k.id,!0))}}));else t.setState((function(e){return $m({},ko($m($m({},e),{},{selectedElementIds:A({},k.id,!0)}),t.scene.getElements()))}));t.state.editingLinearElement||e.drag.hasOccurred||t.state.isResizing||!(k&&bi(k,t.state,e.origin.x,e.origin.y)||!k&&e.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!d&&"freedraw"!==u&&a&&t.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},a.id,!0))}})),("selection"!==u||As(t.scene.getElements(),t.state))&&t.history.resumeRecording(),(e.drag.hasOccurred||f||p)&&(sa(t.state)?fa:ba)(Ds(t.scene.getElements(),t.state)),d||"freedraw"===u?t.setState({draggingElement:null,suggestedBindings:[]}):(mn(t.canvas),t.setState({draggingElement:null,suggestedBindings:[],elementType:"selection"}))):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}}))}},{key:"maybeSuggestBindingForAll",value:function(e){var t,n,r=(t=e,n=new Set(t.map((function(e){return e.id}))),t.flatMap((function(e){return qe(e)?Ca(e).filter((function(e){return!n.has(e.id)})):Qe(e)?Ma(e).filter((function(e){return!n.has(e[0].id)})):[]})));this.setState({suggestedBindings:r})}},{key:"clearSelection",value:function(e){this.setState((function(t){return{selectedElementIds:{},selectedGroupIds:{},editingGroupId:t.editingGroupId&&null!=e&&Eo(e,t.editingGroupId)?t.editingGroupId:null}})),this.setState({selectedElementIds:{},previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(e,t,n,r,o){var i=Mc(this.scene.getElementsIncludingDeleted().filter((function(e){return!Ve(e)})),e,t);if(i){var a=i.x+i.width/2,l=i.y+i.height/2;if(Math.hypot(e-a,t-l)<s.wZ){var c=wn({sceneX:a,sceneY:l},n);return{viewportX:c.x,viewportY:c.y,elementCenterX:a,elementCenterY:l}}}}},{key:"getCanvasOffsets",value:function(){var e;if(null!==(e=this.excalidrawContainerRef)&&void 0!==e&&e.current){var t=this.excalidrawContainerRef.current.getBoundingClientRect();return{offsetLeft:t.left,offsetTop:t.top}}return{offsetLeft:0,offsetTop:0}}},{key:"updateLanguage",value:(t=(0,d.Z)(g().mark((function e(){var t,n=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=x.find((function(e){return e.code===n.props.langCode}))||y,e.next=3,_(t);case 3:this.setAppState({});case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"resetTapTwice",value:function(){rg=!1}}]),o}(c().Component);mg.defaultProps={UIOptions:s.cW};var gg=function(){var e=this;this.canvas=null,this.rc=null,this.unmounted=!1,this.isMobile=!1,this.excalidrawContainerRef=c().createRef(),this.files={},this.imageCache=new Map,this.lastPointerDown=null,this.lastPointerUp=null,this.contextMenuOpen=!1,this.focusContainer=function(){var t;e.props.autoFocus&&(null===(t=e.excalidrawContainerRef.current)||void 0===t||t.focus())},this.getSceneElementsIncludingDeleted=function(){return e.scene.getElementsIncludingDeleted()},this.getSceneElements=function(){return e.scene.getElements()},this.syncActionResult=On((function(t){if(e.contextMenuOpen=!1,!e.unmounted&&!1!==t){var n=null;if(t.elements&&(t.elements.forEach((function(t){var r;(null===(r=e.state.editingElement)||void 0===r?void 0:r.id)===t.id&&e.state.editingElement!==t&&Os(t)&&(n=t)})),e.scene.replaceAllElements(t.elements),t.commitToHistory&&e.history.resumeRecording()),t.files&&(e.files=t.replaceFiles?t.files:$m($m({},e.files),t.files),e.addNewImagesToImageCache()),t.appState||n){var r,o,i,a,l,c;t.commitToHistory&&e.history.resumeRecording();var u=(null==t||null===(r=t.appState)||void 0===r?void 0:r.viewModeEnabled)||!1,d=(null==t||null===(o=t.appState)||void 0===o?void 0:o.zenModeEnabled)||!1,f=(null==t||null===(i=t.appState)||void 0===i?void 0:i.gridSize)||null,p=(null==t||null===(a=t.appState)||void 0===a?void 0:a.theme)||s.C6.LIGHT,h=null!==(l=null==t||null===(c=t.appState)||void 0===c?void 0:c.name)&&void 0!==l?l:e.state.name;void 0!==e.props.viewModeEnabled&&(u=e.props.viewModeEnabled),void 0!==e.props.zenModeEnabled&&(d=e.props.zenModeEnabled),void 0!==e.props.gridModeEnabled&&(f=e.props.gridModeEnabled?s.k:null),void 0!==e.props.theme&&(p=e.props.theme),void 0!==e.props.name&&(h=e.props.name),e.setState((function(e){var r;return Object.assign(t.appState||{},{editingElement:n||(null===(r=t.appState)||void 0===r?void 0:r.editingElement)||null,viewModeEnabled:u,zenModeEnabled:d,gridSize:f,theme:p,name:h})}),(function(){t.syncHistory&&e.history.setCurrentState(e.state,e.scene.getElementsIncludingDeleted())}))}}})),this.onBlur=On((function(){lg=!1,e.setState({isBindingEnabled:!0})})),this.onUnload=function(){e.onBlur()},this.disableEvent=function(e){e.preventDefault()},this.onFontLoaded=function(){e.scene.getElementsIncludingDeleted().forEach((function(e){Ve(e)&&Fr(e)})),e.onSceneUpdated()},this.importLibraryFromUrl=function(){var t=(0,d.Z)(g().mark((function t(n,r){var o,i,a,l,c;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.location.hash.includes(s.ah.addLibrary)?((o=new URLSearchParams(window.location.hash.slice(1))).delete(s.ah.addLibrary),window.history.replaceState({},s.iC,"#".concat(o.toString()))):window.location.search.includes(s.UO.addLibrary)&&((i=new URLSearchParams(window.location.search)).delete(s.UO.addLibrary),window.history.replaceState({},s.iC,"?".concat(i.toString()))),t.prev=1,t.next=4,fetch(decodeURIComponent(n));case 4:return a=t.sent,t.next=7,a.blob();case 7:return l=t.sent,t.t0=JSON,t.next=11,l.text();case 11:if(t.t1=t.sent,c=t.t0.parse.call(t.t0,t.t1),Jd(c)){t.next=15;break}throw new Error;case 15:if(r!==e.id&&!window.confirm(C("alerts.confirmAddLibrary",{numShapes:(c.libraryItems||c.library||[]).length}))){t.next=20;break}return t.next=18,e.library.importLibrary(l,"published");case 18:e.state.isLibraryOpen&&e.setState({isLibraryOpen:!1}),e.setState({isLibraryOpen:!0});case 20:t.next=26;break;case 22:t.prev=22,t.t2=t.catch(1),window.alert(C("alerts.errorLoadingLibrary")),console.error(t.t2);case 26:return t.prev=26,e.focusContainer(),t.finish(26);case 29:case"end":return t.stop()}}),t,null,[[1,22,26,29]])})));return function(e,n){return t.apply(this,arguments)}}(),this.resetHistory=function(){e.history.clear()},this.resetScene=On((function(t){e.scene.replaceAllElements([]),e.setState((function(n){return $m($m({},zn()),{},{isLoading:(null==t||!t.resetLoadingState)&&n.isLoading,theme:e.state.theme})})),e.resetHistory()})),this.initializeScene=(0,d.Z)(g().mark((function t(){var n,r,o,i,a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"launchQueue"in window&&"LaunchParams"in window&&window.launchQueue.setConsumer(function(){var t=(0,d.Z)(g().mark((function t(n){var r,o;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.files.length){t.next=2;break}return t.abrupt("return");case 2:return r=n.files[0],t.next=5,r.getFile();case 5:(o=t.sent).handle=r,Nd(o,e.state,e.scene.getElementsIncludingDeleted()).then((function(t){e.syncActionResult($m($m({},t),{},{appState:$m($m({},t.appState||e.state),{},{isLoading:!1}),commitToHistory:!0}))})).catch((function(t){e.setState({isLoading:!1,errorMessage:t.message})}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e.state.isLoading||e.setState({isLoading:!0}),r=null,t.prev=3,t.next=6,e.props.initialData;case 6:if(t.t0=t.sent,t.t0){t.next=9;break}t.t0=null;case 9:r=t.t0,null!==(o=r)&&void 0!==o&&o.libraryItems&&(e.libraryItemsFromStorage=Td(r.libraryItems,"unpublished")),t.next=17;break;case 13:t.prev=13,t.t1=t.catch(3),console.error(t.t1),r={appState:{errorMessage:t.t1.message||"Encountered an error during importing or restoring scene data"}};case 17:if((i=Md(r,null,null)).appState=$m($m({},i.appState),{},{elementType:"image"===i.appState.elementType?"selection":i.appState.elementType,isLoading:!1}),null!==(n=r)&&void 0!==n&&n.scrollToContent&&(i.appState=$m($m({},i.appState),$c(i.elements,$m($m({},i.appState),{},{width:e.state.width,height:e.state.height,offsetTop:e.state.offsetTop,offsetLeft:e.state.offsetLeft})))),e.resetHistory(),e.syncActionResult($m($m({},i),{},{commitToHistory:!0})),!(a=new URLSearchParams(window.location.hash.slice(1)).get(s.ah.addLibrary)||new URLSearchParams(window.location.search).get(s.UO.addLibrary))){t.next=26;break}return t.next=26,e.importLibraryFromUrl(a);case 26:case"end":return t.stop()}}),t,null,[[3,13]])}))),this.onResize=On((function(){e.scene.getElementsIncludingDeleted().forEach((function(e){return Fr(e)})),e.setState({})})),this.onScroll=fn((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}}))}),s.HM),this.onCut=On((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!sn(t.target)&&(e.cutAll(),t.preventDefault())})),this.onCopy=On((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!sn(t.target)&&(e.copyAll(),t.preventDefault())})),this.cutAll=function(){e.copyAll(),e.actionManager.executeAction(Bs)},this.copyAll=function(){Df(e.scene.getElements(),e.state,e.files)},this.onTapStart=function(t){if(Pt||t.preventDefault(),!rg)return rg=!0,clearTimeout(og),void(og=window.setTimeout(mg.resetTapTwice,s.Gj));if(rg&&1===t.touches.length){var n=h(t.touches,1)[0];e.handleCanvasDoubleClick({clientX:n.clientX,clientY:n.clientY}),rg=!1,clearTimeout(og)}Pt&&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}):hg.pointers.clear()},this.pasteFromClipboard=On(function(){var t=(0,d.Z)(g().mark((function t(n){var r,o,i,a,l,c,s,u,d,f,p;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=document.activeElement,null===(r=e.excalidrawContainerRef.current)||void 0===r?void 0:r.contains(i)){t.next=4;break}return t.abrupt("return");case 4:if(a=document.elementFromPoint(ig,ag),!n||a instanceof HTMLCanvasElement&&!sn(i)){t.next=7;break}return t.abrupt("return");case 7:return l=null==n||null===(o=n.clipboardData)||void 0===o?void 0:o.files[0],t.next=10,Hf(n);case 10:if(c=t.sent,!l&&c.text&&(s=c.text.trim()).startsWith("<svg")&&s.endsWith("</svg>")&&(l=Vd(s)),!zd(l)||c.spreadsheet){t.next=19;break}return u=xn({clientX:ig,clientY:ag},e.state),d=u.x,f=u.y,p=e.createImageElement({sceneX:d,sceneY:f}),e.insertImageElement(p,l),e.initializeImageDimensions(p),e.setState({selectedElementIds:A({},p.id,!0)}),t.abrupt("return");case 19:if(!e.props.onPaste){t.next=31;break}return t.prev=20,t.next=23,e.props.onPaste(c,n);case 23:if(t.t0=t.sent,!1!==t.t0){t.next=26;break}return t.abrupt("return");case 26:t.next=31;break;case 28:t.prev=28,t.t1=t.catch(20),console.error(t.t1);case 31:c.errorMessage?e.setState({errorMessage:c.errorMessage}):c.spreadsheet?e.setState({pasteDialog:{data:c.spreadsheet,shown:!0}}):c.elements?e.addElementsFromPasteOrLibrary({elements:c.elements,files:c.files||null,position:"cursor"}):c.text&&e.addTextFromPaste(c.text),e.selectShapeTool("selection"),null==n||n.preventDefault();case 34:case"end":return t.stop()}}),t,null,[[20,28]])})));return function(e){return t.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(t){var n=Od(t.elements,null),r=h(kt(n),4),o=r[0],i=r[1],a=r[2],l=r[3],c=hn(o,a)/2,s=hn(i,l)/2,u="object"===T(t.position)?t.position.clientX:"cursor"===t.position?ig:e.state.width/2+e.state.offsetLeft,d="object"===T(t.position)?t.position.clientY:"cursor"===t.position?ag:e.state.height/2+e.state.offsetTop,f=xn({clientX:u,clientY:d},e.state),p=f.x-c,m=f.y-s,g=new Map,v=h(ut(p,m,e.state.gridSize),2),b=v[0],y=v[1],x=new Map,w=n.map((function(t){var n=zo(e.state.editingGroupId,g,t,{x:t.x+b-o,y:t.y+y-i});return x.set(t.id,n.id),n}));dr(w,n,x);var k=[].concat(P(e.scene.getElementsIncludingDeleted()),P(w));Pa(k,n,x),t.files&&(e.files=$m($m({},e.files),t.files)),e.scene.replaceAllElements(k),e.history.resumeRecording(),e.setState(ko($m($m({},e.state),{},{isLibraryOpen:!1,selectedElementIds:w.reduce((function(e,t){return et(t)||(e[t.id]=!0),e}),{}),selectedGroupIds:{}}),e.scene.getElements()),(function(){t.files&&e.addNewImagesToImageCache()})),e.selectShapeTool("selection")},this.setAppState=function(t){e.setState(t)},this.removePointer=function(t){dg&&e.resetContextMenuTimer(),hg.pointers.delete(t.pointerId)},this.toggleLock=function(){e.setState((function(e){return{elementLocked:!e.elementLocked,elementType:e.elementLocked?"selection":e.elementType}}))},this.togglePenMode=function(){e.setState((function(e){return{penMode:!e.penMode}}))},this.toggleZenMode=function(){e.actionManager.executeAction(Qp)},this.toggleStats=function(){e.state.showStats||hu("dialog","stats"),e.actionManager.executeAction(th)},this.scrollToContent=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.scene.getElements();e.setState($m({},$c(Array.isArray(t)?t:[t],e.state,e.canvas)))},this.clearToast=function(){e.setState({toastMessage:null})},this.setToastMessage=function(t){e.setState({toastMessage:t})},this.restoreFileFromShare=(0,d.Z)(g().mark((function t(){var n,r,o;return g().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=15;break}return t.next=10,r.blob();case 10:return o=t.sent,e.loadFileToCanvas(o),t.next=14,n.delete("shared-file");case 14:window.history.replaceState(null,s.iC,window.location.pathname);case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),e.setState({errorMessage:t.t0.message});case 20:case"end":return t.stop()}}),t,null,[[0,17]])}))),this.addFiles=On((function(t){var n=t.reduce((function(e,t){return e.set(t.id,t),e}),new Map);e.files=$m($m({},e.files),Object.fromEntries(n)),e.scene.getElements().forEach((function(t){Ke(t)&&n.has(t.fileId)&&(e.imageCache.delete(t.fileId),Fr(t))})),e.scene.informMutation(),e.addNewImagesToImageCache()})),this.updateScene=On((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}),t.libraryItems&&e.library.saveLibrary(Td(t.libraryItems,"unpublished"))})),this.onSceneUpdated=function(){e.setState({})},this.updateCurrentCursorPosition=On((function(e){ig=e.clientX,ag=e.clientY})),this.onKeyDown=On((function(t){var n;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}})),!(sn(t.target)&&t.key!==en.ESCAPE||tn(t.key)&&(n=t.target,n instanceof HTMLElement&&"wysiwyg"===n.dataset.type||n instanceof HTMLBRElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)))&&(t.key===en.QUESTION_MARK&&e.setState({showHelpDialog:!0}),!e.actionManager.handleKeyDown(t)&&!e.state.viewModeEnabled)){if(t[en.CTRL_OR_CMD]&&e.state.isBindingEnabled&&e.setState({isBindingEnabled:!1}),t.code===Kt&&e.setState({isLibraryOpen:!e.state.isLibraryOpen}),tn(t.key)){var r=e.state.gridSize&&(t.shiftKey?s.$e:e.state.gridSize)||(t.shiftKey?s.Iw:s.$e),o=Ds(e.scene.getElements(),e.state,!0),i=0,a=0;t.key===en.ARROW_LEFT?i=-r:t.key===en.ARROW_RIGHT?i=r:t.key===en.ARROW_UP?a=-r:t.key===en.ARROW_DOWN&&(a=r),o.forEach((function(e){ao(e,{x:e.x+i,y:e.y+a}),ka(e,{simultaneouslyUpdated:o})})),e.maybeSuggestBindingForAll(o),t.preventDefault()}else if(t.key===en.ENTER){var l=Ds(e.scene.getElements(),e.state);if(1===l.length&&Ye(l[0]))e.state.editingLinearElement&&e.state.editingLinearElement.elementId===l[0].id||(e.history.resumeRecording(),e.setState({editingLinearElement:new aa(l[0],e.scene)}));else if(1===l.length&&!Ye(l[0])){var c=l[0];return e.startTextEditing({sceneX:c.x+c.width/2,sceneY:c.y+c.height/2,shouldBind:!0}),void t.preventDefault()}}else if(!t.ctrlKey&&!t.altKey&&!t.metaKey&&null===e.state.draggingElement){var u=function(e){var t=xh.find((function(t,n){return e===(n+1).toString()||t.key&&("string"==typeof t.key?t.key===e:t.key.includes(e))}));return(null==t?void 0:t.value)||null}(t.key);u?e.selectShapeTool(u):t.key===en.Q&&e.toggleLock()}if(t.key===en.SPACE&&0===hg.pointers.size&&(lg=!0,gn(e.canvas,s.oc.GRABBING),t.preventDefault()),t.key===en.G||t.key===en.S){var d=Ds(e.scene.getElements(),e.state);if("selection"===e.state.elementType&&!d.length)return;t.key===en.G&&(wc(e.state.elementType)||d.some((function(e){return wc(e.type)})))&&e.setState({openPopup:"backgroundColorPicker"}),t.key===en.S&&e.setState({openPopup:"strokeColorPicker"})}}})),this.onKeyUp=On((function(t){if(t.key===en.SPACE&&(e.state.viewModeEnabled?gn(e.canvas,s.oc.GRAB):"selection"===e.state.elementType?mn(e.canvas):(vn(e.canvas,e.state.elementType),e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),lg=!1),t[en.CTRL_OR_CMD]||e.state.isBindingEnabled||e.setState({isBindingEnabled:!0}),tn(t.key)){var n=Ds(e.scene.getElements(),e.state);sa(e.state)?fa(n):ba(n),e.setState({suggestedBindings:[]})}})),this.onGestureStart=On((function(t){t.preventDefault(),e.setState({selectedElementIds:{}}),hg.initialScale=e.state.zoom.value})),this.onGestureChange=On((function(t){if(t.preventDefault(),!(hg.pointers.size>=2)){var n=hg.initialScale;n&&e.setState((function(e){return $m({},Jc({viewportX:ig,viewportY:ag,nextZoom:Qc(n*t.scale)},e))}))}})),this.onGestureEnd=On((function(t){t.preventDefault(),e.setState({previousSelectedElementIds:{},selectedElementIds:e.state.previousSelectedElementIds}),hg.initialScale=null})),this.startTextEditing=function(t){var n,r,o,i=t.sceneX,a=t.sceneY,l=t.shouldBind,c=t.insertAtParentCenter,u=(void 0===c||c)&&e.getTextWysiwygSnappedToCenterPosition(i,a,e.state,e.canvas,window.devicePixelRatio),d=l||u?Mc(e.scene.getElements().filter((function(e){return!Ve(e)})),i,a):null,f=e.getTextElementAtPosition(i,a);if(d){var p=kr(d);p&&(f=e.scene.getElement(p))}if(!f&&d){var h={fontSize:e.state.currentItemFontSize,fontFamily:e.state.currentItemFontFamily},m=xr(dn(h)),g=(o=dn(h),gr(o)+2*s.gK),v=Math.max(d.height,g),b=Math.max(d.width,m);ao(d,{height:v,width:b}),i=d.x+b/2,a=d.y+v/2,u&&(u=e.getTextWysiwygSnappedToCenterPosition(i,a,e.state,e.canvas,window.devicePixelRatio))}var y=f||Ao({x:u?u.elementCenterX:i,y:u?u.elementCenterY:a,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,strokeSharpness:e.state.currentItemStrokeSharpness,text:"",fontSize:e.state.currentItemFontSize,fontFamily:e.state.currentItemFontFamily,textAlign:u?"center":e.state.currentItemTextAlign,verticalAlign:u?"middle":s.hs,containerId:null!==(n=null==d?void 0:d.id)&&void 0!==n?n:void 0,groupIds:null!==(r=null==d?void 0:d.groupIds)&&void 0!==r?r:[]});e.setState({editingElement:y}),f?u&&"center"===y.textAlign||ao(y,{verticalAlign:s.hs}):(e.scene.replaceAllElements([].concat(P(e.scene.getElementsIncludingDeleted()),[y])),u||ao(y,{y:y.y-y.baseline/2})),e.setState({editingElement:y}),e.handleTextWysiwyg(y,{isExistingElement:!!f})},this.handleCanvasDoubleClick=function(t){if(!e.state.multiElement&&"selection"===e.state.elementType){var n=Ds(e.scene.getElements(),e.state);if(1===n.length&&Ye(n[0]))e.state.editingLinearElement&&e.state.editingLinearElement.elementId===n[0].id||(e.history.resumeRecording(),e.setState({editingLinearElement:new aa(n[0],e.scene)}));else{mn(e.canvas);var r=xn(t,e.state),o=r.x,i=r.y;if(wo(e.state).length>0){var a=e.getElementAtPosition(o,i),l=a&&function(e,t){return e.groupIds.find((function(e){return t[e]}))}(a,e.state.selectedGroupIds);if(l)return void e.setState((function(t){return ko($m($m({},t),{},{editingGroupId:l,selectedElementIds:A({},a.id,!0),selectedGroupIds:{}}),e.scene.getElements())}))}if(mn(e.canvas),!t[en.CTRL_OR_CMD]&&!e.state.viewModeEnabled){var c=Ds(e.scene.getElements(),e.state);if(1===c.length){var s=c[0];Je(s)&&(o=s.x+s.width/2,i=s.y+s.height/2)}e.startTextEditing({sceneX:o,sceneY:i,shouldBind:!1,insertAtParentCenter:!t.altKey})}}}},this.getElementLinkAtPosition=function(t,n){var r=e.scene.getElements().slice().reverse(),o=1/0;return r.find((function(r,i){return n&&r.id===n.id&&(o=i),r.link&&Ou(r,e.state,[t.x,t.y],e.isMobile)&&i<=o}))},this.redirectToLink=function(t,n){var r=ot(e.lastPointerDown.clientX,e.lastPointerDown.clientY,e.lastPointerUp.clientX,e.lastPointerUp.clientY);if(!(!e.hitLinkElement||n&&r>s.f||!n&&0!==r)){var o=xn(e.lastPointerDown,e.state),i=Ou(e.hitLinkElement,e.state,[o.x,o.y],e.isMobile),a=xn(e.lastPointerUp,e.state),l=Ou(e.hitLinkElement,e.state,[a.x,a.y],e.isMobile);if(i&&l){var c,u,d=e.hitLinkElement.link;if(d)if(e.props.onLinkOpen&&(u=An(s.Ks.EXCALIDRAW_LINK,t.nativeEvent),e.props.onLinkOpen(e.hitLinkElement,u)),null===(c=u)||void 0===c||!c.defaultPrevented){var f=_u(d)?"_self":"_blank",p=window.open(void 0,f);p&&(p.opener=null,p.location=Eu(d))}}}},this.handleCanvasPointerMove=function(t){e.savePointer(t.clientX,t.clientY,e.state.cursorButton),hg.pointers.has(t.pointerId)&&hg.pointers.set(t.pointerId,{x:t.clientX,y:t.clientY});var n=hg.initialScale;if(2===hg.pointers.size&&hg.lastCenter&&n&&hg.initialDistance){var r=ph(hg.pointers),o=r.x-hg.lastCenter.x,i=r.y-hg.lastCenter.y;hg.lastCenter=r;var a=hh(Array.from(hg.pointers.values())),l="freedraw"===e.state.elementType&&e.state.penMode?1:a/hg.initialDistance,c=l?Qc(n*l):e.state.zoom.value;e.setState((function(e){var t=Jc({viewportX:r.x,viewportY:r.y,nextZoom:c},e);return{zoom:t.zoom,scrollX:t.scrollX+o/c,scrollY:t.scrollY+i/c,shouldCacheIgnoreZoom:!0}})),e.resetShouldCacheIgnoreZoomDebounced()}else hg.lastCenter=hg.initialDistance=hg.initialScale=null;if(!(lg||cg||sg)){var u=Ps(ug,t.clientX-e.state.offsetLeft,t.clientY-e.state.offsetTop).isOverEither;e.state.draggingElement||e.state.multiElement||(u?mn(e.canvas):vn(e.canvas,e.state.elementType));var d=xn(t,e.state),f=d.x,p=d.y;if(e.state.editingLinearElement&&!e.state.editingLinearElement.isDragging){var h=aa.handlePointerMove(t,f,p,e.state.editingLinearElement,e.state.gridSize);h!==e.state.editingLinearElement&&e.setState({editingLinearElement:h}),null!=h.lastUncommittedPoint?e.maybeSuggestBindingAtCursor(d):e.setState({suggestedBindings:[]})}if($e(e.state.elementType)){var m=e.state.draggingElement;qe(m)?e.maybeSuggestBindingsForLinearElementAtCoords(m,[d],e.state.startBoundElement):e.maybeSuggestBindingAtCursor(d)}if(e.state.multiElement){var g=e.state.multiElement,v=g.x,b=g.y,y=g.points,x=g.lastCommittedPoint,w=y[y.length-1];return vn(e.canvas,e.state.elementType),void(w===x?ot(f-v,p-b,w[0],w[1])>=s.qx?ao(g,{points:[].concat(P(y),[[f-v,p-b]])}):gn(e.canvas,s.oc.POINTER):y.length>2&&x&&ot(f-v,p-b,x[0],x[1])<s.qx?(gn(e.canvas,s.oc.POINTER),ao(g,{points:y.slice(0,-1)})):(it(y,e.state.zoom.value)&&gn(e.canvas,s.oc.POINTER),ao(g,{points:[].concat(P(y.slice(0,-1)),[[f-v,p-b]])})))}if(!(Boolean(t.buttons)||"selection"!==e.state.elementType&&"text"!==e.state.elementType)){var k=e.scene.getElements(),E=Ds(k,e.state);if(1!==E.length||u||e.state.editingLinearElement){if(E.length>1&&!u){var _=Ji(kt(E),f,p,e.state.zoom,t.pointerType);if(_)return void gn(e.canvas,ta({transformHandleType:_}))}}else{var S=Qi(k,e.state,f,p,e.state.zoom,t.pointerType);if(S&&S.transformHandleType)return void gn(e.canvas,ta(S))}var j=e.getElementAtPosition(d.x,d.y);if(e.hitLinkElement=e.getElementLinkAtPosition(d,j),e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id])gn(e.canvas,s.oc.POINTER),function(e,t){Iu&&clearTimeout(Iu),Iu=window.setTimeout((function(){return Mu(e,t)}),s.sA)}(e.hitLinkElement,e.state);else if(Iu&&clearTimeout(Iu),xu&&(xu=!1,es().classList.remove("excalidraw-tooltip--visible")),j&&j.link&&e.state.selectedElementIds[j.id]&&!e.contextMenuOpen&&!e.state.showHyperlinkPopup&&e.setState({showHyperlinkPopup:"info"}),"text"===e.state.elementType)gn(e.canvas,Ve(j)?s.oc.TEXT:s.oc.CROSSHAIR);else if(e.state.viewModeEnabled)gn(e.canvas,s.oc.GRAB);else if(u)gn(e.canvas,s.oc.AUTO);else if(e.state.editingLinearElement){var C=aa.getElement(e.state.editingLinearElement.elementId);C&&yi(C,e.state,[d.x,d.y])?gn(e.canvas,s.oc.MOVE):gn(e.canvas,s.oc.AUTO)}else t[en.CTRL_OR_CMD]||!j&&!e.isHittingCommonBoundingBoxOfSelectedElements(d,E)?gn(e.canvas,s.oc.AUTO):gn(e.canvas,s.oc.MOVE)}}},this.handleTouchMove=function(e){fg=!0},this.handleCanvasPointerDown=function(t){var n=document.getSelection();if(null!=n&&n.anchorNode&&n.removeAllRanges(),e.maybeOpenContextMenuAfterPointerDownOnTouchDevices(t),e.maybeCleanupAfterMissingPointerUp(t),e.state.penDetected||"pen"!==t.pointerType||e.setState((function(e){return{penMode:!0,penDetected:!0}})),!cg&&(e.lastPointerDown=t,e.setState({lastPointerDownWith:t.pointerType,cursorButton:"down"}),e.savePointer(t.clientX,t.clientY,"down"),!e.handleCanvasPanUsingWheelOrSpaceDrag(t)&&!(t.button!==s.Oh.MAIN&&t.button!==s.Oh.TOUCH||(e.updateGestureOnPointerDown(t),hg.pointers.size>1)))){var r=e.initialPointerDownState(t);if(!e.handleDraggingScrollBar(t,r))if(e.contextMenuOpen=!1,e.clearSelectionIfNotUsingSelection(),e.updateBindingEnabledOnPointerMove(t),!e.handleSelectionOnPointerDown(t,r))if(!e.state.penMode||"touch"!==t.pointerType||"selection"===e.state.elementType||"text"===e.state.elementType||"image"===e.state.elementType)if("text"!==e.state.elementType){if("arrow"===e.state.elementType||"line"===e.state.elementType)e.handleLinearElementOnPointerDown(t,e.state.elementType,r);else if("image"===e.state.elementType){if(gn(e.canvas,s.oc.CROSSHAIR),!e.state.pendingImageElement)return;e.setState({draggingElement:e.state.pendingImageElement,editingElement:e.state.pendingImageElement,pendingImageElement:null,multiElement:null});var o=xn(t,e.state),i=o.x,a=o.y;ao(e.state.pendingImageElement,{x:i,y:a})}else"freedraw"===e.state.elementType?e.handleFreeDrawElementOnPointerDown(t,e.state.elementType,r):e.createGenericElementOnPointerDown(e.state.elementType,r);var l=e.onPointerMoveFromPointerDownHandler(r),c=e.onPointerUpFromPointerDownHandler(r),u=e.onKeyDownFromPointerDownHandler(r),d=e.onKeyUpFromPointerDownHandler(r);pg=c,e.state.viewModeEnabled||(window.addEventListener(s.Ks.POINTER_MOVE,l),window.addEventListener(s.Ks.POINTER_UP,c),window.addEventListener(s.Ks.KEYDOWN,u),window.addEventListener(s.Ks.KEYUP,d),r.eventListeners.onMove=l,r.eventListeners.onUp=c,r.eventListeners.onKeyUp=d,r.eventListeners.onKeyDown=u)}else e.handleTextOnPointerDown(t,r)}},this.handleCanvasPointerUp=function(t){e.lastPointerUp=t;var n=["pen","touch"].includes(t.pointerType);if(n){var r=xn({clientX:t.clientX,clientY:t.clientY},e.state),o=e.getElementAtPosition(r.x,r.y);e.hitLinkElement=e.getElementLinkAtPosition(r,o)}e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]&&e.redirectToLink(t,n),e.removePointer(t)},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(t){"touch"===t.pointerType&&(fg=!1,dg?fg=!0:dg=window.setTimeout((function(){dg=0,fg||e.handleCanvasContextMenu(t)}),s.nM))},this.resetContextMenuTimer=function(){clearTimeout(dg),dg=0,fg=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(t){if(0!==hg.pointers.size||!(t.button===s.Oh.WHEEL||t.button===s.Oh.MAIN&&lg||e.state.viewModeEnabled)||Ve(e.state.editingElement))return!1;cg=!0,t.preventDefault();var n=!1,r=/Linux/.test(window.navigator.platform);gn(e.canvas,s.oc.GRABBING);var o=t.clientX,i=t.clientY,a=In((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(s.Ks.PASTE,e),t.stopPropagation()};document.body.addEventListener(s.Ks.PASTE,c),window.addEventListener(s.Ks.POINTER_UP,(function e(){setTimeout((function(){document.body.removeEventListener(s.Ks.PASTE,c),window.removeEventListener(s.Ks.POINTER_UP,e)}),100)}))}e.setState({scrollX:e.state.scrollX-a/e.state.zoom.value,scrollY:e.state.scrollY-l/e.state.zoom.value})})),l=On(pg=function(){pg=null,cg=!1,lg||(e.state.viewModeEnabled?gn(e.canvas,s.oc.GRAB):vn(e.canvas,e.state.elementType)),e.setState({cursorButton:"up"}),e.savePointer(t.clientX,t.clientY,"up"),window.removeEventListener(s.Ks.POINTER_MOVE,a),window.removeEventListener(s.Ks.POINTER_UP,l),window.removeEventListener(s.Ks.BLUR,l),a.flush()});return window.addEventListener(s.Ks.BLUR,l),window.addEventListener(s.Ks.POINTER_MOVE,a,{passive:!0}),window.addEventListener(s.Ks.POINTER_UP,l),!0},this.clearSelectionIfNotUsingSelection=function(){"selection"!==e.state.elementType&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})},this.handleSelectionOnPointerDown=function(t,n){if("selection"===e.state.elementType){var r=e.scene.getElements(),o=Ds(r,e.state);if(1!==o.length||e.state.editingLinearElement)o.length>1&&(n.resize.handleType=Ji(kt(o),n.origin.x,n.origin.y,e.state.zoom,t.pointerType));else{var i=Qi(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)gn(e.canvas,ta({transformHandleType:n.resize.handleType})),n.resize.isResizing=!0,n.resize.offset=Sn(function(e,t,n,r){var o=h(1===t.length?mt(t[0]):kt(t),4),i=o[0],a=o[1],l=o[2],c=o[3],s=(i+l)/2,u=(a+c)/2,d=1===t.length?t[0].angle:0,f=h(tt(n,r,s,u,-d),2);switch(n=f[0],r=f[1],e){case"n":return tt(n-(i+l)/2,r-a,0,0,d);case"s":return tt(n-(i+l)/2,r-c,0,0,d);case"w":return tt(n-i,r-(a+c)/2,0,0,d);case"e":return tt(n-l,r-(a+c)/2,0,0,d);case"nw":return tt(n-i,r-a,0,0,d);case"ne":return tt(n-l,r-a,0,0,d);case"sw":return tt(n-i,r-c,0,0,d);case"se":return tt(n-l,r-c,0,0,d);default:return[0,0]}}(n.resize.handleType,o,n.origin.x,n.origin.y)),1===o.length&&Ye(o[0])&&2===o[0].points.length&&(n.resize.arrowDirection=(u=n.resize.handleType,d=o[0],f=h(d.points,2),p=h(f[1],2),m=p[0],g=p[1],"nw"===u&&(m<0||g<0)||"ne"===u&&m>=0||"sw"===u&&m<=0||"se"===u&&(m>0||g>0)?"end":"origin"));else{var a;if(e.state.editingLinearElement){var l=aa.handlePointerDown(t,e.state,(function(t){return e.setState(t)}),e.history,n.origin);if(l.hitElement&&(n.hit.element=l.hitElement),l.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){if(Ou(n.hit.element,e.state,[n.origin.x,n.origin.y],e.isMobile))return!1;n.hit.hasHitElementInside=yi(n.hit.element,e.state,[n.origin.x,n.origin.y])}n.hit.allHitElements=e.getElementsAtPosition(n.origin.x,n.origin.y);var c=n.hit.element,s=n.hit.allHitElements.some((function(t){return e.isASelectedElement(t)}));if(null!==c&&s||t.shiftKey||n.hit.hasHitCommonBoundingBoxOfSelectedElements||e.clearSelection(c),e.state.editingLinearElement)e.setState({selectedElementIds:A({},e.state.editingLinearElement.elementId,!0)});else if(null!=c){if(t[en.CTRL_OR_CMD])return e.state.selectedElementIds[c.id]||(n.hit.wasAddedToSelection=!0),e.setState((function(t){return $m($m({},function(e,t){return vo(vo({},e),{},{editingGroupId:t.groupIds.length?t.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:A({},t.id,!0)})}(t,c)),{},{previousSelectedElementIds:e.state.selectedElementIds})})),!1;e.state.selectedElementIds[c.id]||(e.state.editingGroupId&&!Eo(c,e.state.editingGroupId)&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}),s||n.hit.hasHitCommonBoundingBoxOfSelectedElements||(e.setState((function(t){return ko($m($m({},t),{},{selectedElementIds:$m($m({},t.selectedElementIds),{},A({},c.id,!0)),showHyperlinkPopup:!!c.link&&"info"}),e.scene.getElements())})),n.hit.wasAddedToSelection=!0))}e.setState({previousSelectedElementIds:e.state.selectedElementIds})}}var u,d,f,p,m,g;return!1},this.handleTextOnPointerDown=function(t,n){if(!Ve(e.state.editingElement)){var r=n.origin.x,o=n.origin.y,i=e.getElementAtPosition(r,o,{includeBoundTextElement:!0});Je(i)&&(r=i.x+i.width/2,o=i.y+i.height/2),e.startTextEditing({sceneX:r,sceneY:o,shouldBind:!1,insertAtParentCenter:!t.altKey}),mn(e.canvas),e.state.elementLocked||e.setState({elementType:"selection"})}},this.handleFreeDrawElementOnPointerDown=function(t,n,r){var o,i=h(ut(r.origin.x,r.origin.y,null),2),a=i[0],l=i[1],c=(o={type:n,x:a,y:l,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,strokeSharpness:e.state.currentItemLinearStrokeSharpness,simulatePressure:.5===t.pressure},Io(Io({},Mo(o.type,o)),{},{points:o.points||[],pressures:[],simulatePressure:o.simulatePressure,lastCommittedPoint:null}));e.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},c.id,!1))}}));var s=c.simulatePressure?c.pressures:[].concat(P(c.pressures),[t.pressure]);ao(c,{points:[[0,0]],pressures:s});var u=xa(r.origin,e.scene);e.scene.replaceAllElements([].concat(P(e.scene.getElementsIncludingDeleted()),[c])),e.setState({draggingElement:c,editingElement:c,startBoundElement:u,suggestedBindings:[]})},this.createImageElement=function(t){var n,r=t.sceneX,o=t.sceneY,i=h(ut(r,o,e.state.gridSize),2),a=i[0],l=i[1];return n={type:"image",x:a,y:l,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,strokeSharpness:e.state.currentItemLinearStrokeSharpness},Io(Io({},Mo("image",n)),{},{strokeColor:"transparent",status:"pending",fileId:null,scale:[1,1]})},this.handleLinearElementOnPointerDown=function(t,n,r){if(e.state.multiElement){var o=e.state.multiElement;if("line"===o.type&&it(o.points,e.state.zoom.value))return ao(o,{lastCommittedPoint:o.points[o.points.length-1]}),void e.actionManager.executeAction(pu);var i=o.x,a=o.y,l=o.lastCommittedPoint;if(o.points.length>1&&l&&ot(r.origin.x-i,r.origin.y-a,l[0],l[1])<s.qx)return void e.actionManager.executeAction(pu);e.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},o.id,!0))}})),ao(o,{lastCommittedPoint:o.points[o.points.length-1]}),gn(e.canvas,s.oc.POINTER)}else{var c=h(ut(r.origin.x,r.origin.y,e.state.gridSize),2),u=c[0],d=c[1],f=e.state,p=f.currentItemStartArrowhead,m=f.currentItemEndArrowhead,g=h("arrow"===n?[p,m]:[null,null],2),v=g[0],b=g[1],y=Do({type:n,x:u,y:d,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,strokeSharpness:e.state.currentItemLinearStrokeSharpness,startArrowhead:v,endArrowhead:b});e.setState((function(e){return{selectedElementIds:$m($m({},e.selectedElementIds),{},A({},y.id,!1))}})),ao(y,{points:[].concat(P(y.points),[[0,0]])});var x=xa(r.origin,e.scene);e.scene.replaceAllElements([].concat(P(e.scene.getElementsIncludingDeleted()),[y])),e.setState({draggingElement:y,editingElement:y,startBoundElement:x,suggestedBindings:[]})}},this.createGenericElementOnPointerDown=function(t,n){var r=h(ut(n.origin.x,n.origin.y,e.state.gridSize),2),o=r[0],i=r[1],a=To({type:t,x:o,y:i,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,strokeSharpness:e.state.currentItemStrokeSharpness});"selection"===a.type?e.setState({selectionElement:a,draggingElement:a}):(e.scene.replaceAllElements([].concat(P(e.scene.getElementsIncludingDeleted()),[a])),e.setState({multiElement:null,draggingElement:a,editingElement:a}))},this.initializeImage=function(){var t=(0,d.Z)(g().mark((function t(n){var r,o,i,a,l,c,u,f,p,h,m,v,b,y,x;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.imageFile,l=n.imageElement,c=n.showCursorImagePreview,u=void 0!==c&&c,zd(a)){t.next=3;break}throw new Error(C("errors.unsupportedFileType"));case 3:if(f=a.type,gn(e.canvas,"wait"),f!==s.LO.svg){t.next=23;break}return t.prev=6,t.t0=Vd,t.t1=cf,t.next=11,a.text();case 11:return t.t2=t.sent,t.next=14,(0,t.t1)(t.t2);case 14:t.t3=t.sent,t.t4=a.name,a=(0,t.t0)(t.t3,t.t4),t.next=23;break;case 19:throw t.prev=19,t.t5=t.catch(6),console.warn(t.t5),new Error(C("errors.svgImageInsertError"));case 23:return t.next=25,(null===(r=(o=e.props).generateIdForFile)||void 0===r?void 0:r.call(o,a))||Fd(a);case 25:if(p=t.sent){t.next=29;break}throw console.warn("Couldn't generate file id or the supplied `generateIdForFile` didn't resolve to one."),new Error(C("errors.imageInsertError"));case 29:if(null!=(h=e.files[p])&&h.dataURL){t.next=42;break}return t.prev=31,t.next=34,Wd(a,{maxWidthOrHeight:s.h6});case 34:a=t.sent,t.next=40;break;case 37:t.prev=37,t.t6=t.catch(31),console.error("error trying to resing image file on insertion",t.t6);case 40:if(!(a.size>s.$n)){t.next=42;break}throw new Error(C("errors.fileTooBig",{maxSize:"".concat(Math.trunc(s.$n/1024/1024),"MB")}));case 42:if(u&&(v=null===(m=e.files[p])||void 0===m?void 0:m.dataURL,b=v&&Kd(v),e.setImagePreviewCursor(b||a)),t.t7=null===(i=e.files[p])||void 0===i?void 0:i.dataURL,t.t7){t.next=48;break}return t.next=47,Ud(a);case 47:t.t7=t.sent;case 48:return y=t.t7,x=ao(l,{fileId:p},!1),t.abrupt("return",new Promise(function(){var t=(0,d.Z)(g().mark((function t(n,r){var o,i,a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.files=$m($m({},e.files),{},A({},p,{mimeType:f,id:p,dataURL:y,created:Date.now()})),a=e.imageCache.get(p)){t.next=7;break}return e.addNewImagesToImageCache(),t.next=7,e.updateImageCache([x]);case 7:if(!((null==a?void 0:a.image)instanceof Promise)){t.next=10;break}return t.next=10,a.image;case 10:(null===(o=e.state.pendingImageElement)||void 0===o?void 0:o.id)!==x.id&&(null===(i=e.state.draggingElement)||void 0===i?void 0:i.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(C("errors.imageInsertError")));case 18:return t.prev=18,u||mn(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,d.Z)(g().mark((function t(n,r,o){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.scene.replaceAllElements([].concat(P(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),ao(n,{isDeleted:!0}),e.actionManager.executeAction(pu),e.setState({errorMessage:t.t0.message||C("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,d.Z)(g().mark((function t(n){var r,o,i,a,l,c,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=96,t.next=3,Wd(n,{maxWidthOrHeight:r});case 3:return o=t.sent,t.next=6,Ud(o);case 6:if(i=t.sent,n.type!==s.LO.svg){t.next=20;break}return t.next=10,of(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)),(u=document.createElement("canvas")).height=l,u.width=c,u.getContext("2d").drawImage(a,0,0,c,l),i=u.toDataURL(s.LO.svg);case 20:e.state.pendingImageElement&&gn(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,d.Z)(g().mark((function t(){var n,r,o,i,a,l,c,s,u,d=arguments;return g().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=xn({clientX:o,clientY:i},e.state),l=a.x,c=a.y,t.next=7,yd({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:A({},u.id,!0)},(function(){e.actionManager.executeAction(pu)}))):e.setState({pendingImageElement:u},(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({pendingImageElement:null,editingElement:null,elementType:"selection"},(function(){e.actionManager.executeAction(pu)}));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=Ke(t)&&(null===(n=e.imageCache.get(t.fileId))||void 0===n?void 0:n.image);if(!o||o instanceof Promise){if(t.width<s.f/e.state.zoom.value&&t.height<s.f/e.state.zoom.value){var i=100/e.state.zoom.value;ao(t,{x:t.x-i/2,y:t.y-i/2,width:i,height:i})}}else if(r||t.width<s.f/e.state.zoom.value&&t.height<s.f/e.state.zoom.value){var a=Math.max(e.state.height-120,160),l=Math.min(a,Math.floor(.5*e.state.height)/e.state.zoom.value),c=Math.min(o.naturalHeight,l),u=c*(o.naturalWidth/o.naturalHeight),d=t.x+t.width/2-u/2,f=t.y+t.height/2-c/2;ao(t,{x:d,y:f,width:u,height:c})}},this.updateImageCache=function(){var t=(0,d.Z)(g().mark((function t(n){var r,o,i,a,l,c,s,u=arguments;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:e.files,t.next=3,af({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=Ym(n);try{for(l.s();!(c=l.n()).done;)s=c.value,i.has(s.fileId)&&Fr(s)}catch(e){l.e(e)}finally{l.f()}}return a.size&&e.scene.replaceAllElements(e.scene.getElementsIncludingDeleted().map((function(e){return Ke(e)&&a.has(e.fileId)?lo(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,d.Z)(g().mark((function t(){var n,r,o,i,a=arguments;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>0&&void 0!==a[0]?a[0]:lf(e.scene.getElements()),r=a.length>1&&void 0!==a[1]?a[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:i=t.sent,i.updatedFiles.size&&e.scene.informMutation();case 9:case"end":return t.stop()}}),t)}))),this.scheduleImageRefresh=Zm()((function(){e.addNewImagesToImageCache()}),s.LL),this.updateBindingEnabledOnPointerMove=function(t){var n=function(e){return!e[en.CTRL_OR_CMD]}(t);e.state.isBindingEnabled!==n&&e.setState({isBindingEnabled:n})},this.maybeSuggestBindingAtCursor=function(t){var n=xa(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=xa(o,e.scene);return null==i||va(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=He.canvas(e.canvas),e.canvas.addEventListener(s.Ks.WHEEL,e.handleWheel,{passive:!1}),e.canvas.addEventListener(s.Ks.TOUCH_START,e.onTapStart),e.canvas.addEventListener(s.Ks.TOUCH_END,e.onTapEnd)):(null===(n=e.canvas)||void 0===n||n.removeEventListener(s.Ks.WHEEL,e.handleWheel),null===(r=e.canvas)||void 0===r||r.removeEventListener(s.Ks.TOUCH_START,e.onTapStart),null===(o=e.canvas)||void 0===o||o.removeEventListener(s.Ks.TOUCH_END,e.onTapEnd))},this.handleAppOnDrop=function(){var t=(0,d.Z)(g().mark((function t(n){var r,o,i,a,l,c,u,d,f,p,h,m;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i=n.dataTransfer.files[0],!zd(i)){t.next=33;break}if((null==i?void 0:i.type)!==s.LO.png&&(null==i?void 0:i.type)!==s.LO.svg){t.next=27;break}if(t.prev=4,!gd){t.next=16;break}return t.prev=6,a=n.dataTransfer.items[0],t.next=10,a.getAsFileSystemHandle();case 10:i.handle=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(6),console.warn(t.t0.name,t.t0.message);case 16:return t.next=18,Nd(i,e.state,e.scene.getElementsIncludingDeleted());case 18:return l=t.sent,e.syncActionResult($m($m({},l),{},{appState:$m($m({},l.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.abrupt("return");case 23:if(t.prev=23,t.t1=t.catch(4),"EncodingError"===t.t1.name){t.next=27;break}throw t.t1;case 27:return c=xn(n,e.state),u=c.x,d=c.y,f=e.createImageElement({sceneX:u,sceneY:d}),e.insertImageElement(f,i),e.initializeImageDimensions(f),e.setState({selectedElementIds:A({},f.id,!0)}),t.abrupt("return");case 33:t.next=38;break;case 35:return t.prev=35,t.t2=t.catch(0),t.abrupt("return",e.setState({isLoading:!1,errorMessage:t.t2.message}));case 38:if(""===(p=n.dataTransfer.getData(s.LO.excalidrawlib))){t.next=42;break}return e.addElementsFromPasteOrLibrary({elements:JSON.parse(p),position:n,files:null}),t.abrupt("return");case 42:if(!((null==(h=null===(r=n.dataTransfer)||void 0===r?void 0:r.files[0])?void 0:h.type)===s.LO.excalidrawlib||null!=h&&null!==(o=h.name)&&void 0!==o&&o.endsWith(".excalidrawlib"))){t.next=47;break}e.library.importLibrary(h).then((function(){e.setState({isLibraryOpen:!1}),e.setState({isLibraryOpen:!0})})).catch((function(t){return e.setState({isLoading:!1,errorMessage:t.message})})),t.next=61;break;case 47:if(e.setState({isLoading:!0}),!gd){t.next=59;break}return t.prev=49,m=n.dataTransfer.items[0],t.next=53,m.getAsFileSystemHandle();case 53:h.handle=t.sent,t.next=59;break;case 56:t.prev=56,t.t3=t.catch(49),console.warn(t.t3.name,t.t3.message);case 59:return t.next=61,e.loadFileToCanvas(h);case 61:case"end":return t.stop()}}),t,null,[[0,35],[4,23],[6,13],[49,56]])})));return function(e){return t.apply(this,arguments)}}(),this.loadFileToCanvas=function(t){Nd(t,e.state,e.scene.getElementsIncludingDeleted()).then((function(t){e.syncActionResult($m($m({},t),{},{appState:$m($m({},t.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0}))})).catch((function(t){e.setState({isLoading:!1,errorMessage:t.message})}))},this.handleCanvasContextMenu=function(t){if(t.preventDefault(),"touch"!==t.nativeEvent.pointerType&&("pen"!==t.nativeEvent.pointerType||t.button===s.Oh.SECONDARY)||"selection"===e.state.elementType){var n=xn(t,e.state),r=n.x,o=n.y,i=e.getElementAtPosition(r,o,{preferSelected:!0}),a=i?"element":"canvas",l=e.excalidrawContainerRef.current.getBoundingClientRect(),c=l.top,u=l.left,d=t.clientX-u,f=t.clientY-c;i&&!e.state.selectedElementIds[i.id]?e.setState({selectedElementIds:A({},i.id,!0)},(function(){e._openContextMenu({top:f,left:d},a)})):e._openContextMenu({top:f,left:d},a)}},this.maybeDragNewGenericElement=function(t,n){var r=e.state.draggingElement,o=t.lastCoords;if(r)if("selection"===r.type)Ya(r,e.state.elementType,t.origin.x,t.origin.y,o.x,o.y,hn(t.origin.x,o.x),hn(t.origin.y,o.y),rn(n),nn(n));else{var i,a=h(ut(o.x,o.y,e.state.gridSize),2),l=a[0],c=a[1],s=Ke(r)&&(null===(i=e.imageCache.get(r.fileId))||void 0===i?void 0:i.image),u=!s||s instanceof Promise?null:s.width/s.height;Ya(r,e.state.elementType,t.originInGrid.x,t.originInGrid.y,l,c,hn(t.originInGrid.x,l),hn(t.originInGrid.y,c),We(r)?!rn(n):rn(n),nn(n),u),e.maybeSuggestBindingForAll([r])}},this.maybeHandleResize=function(t,n){var r=Ds(e.scene.getElements(),e.state),o=t.resize.handleType;e.setState({isResizing:o&&"rotation"!==o,isRotating:"rotation"===o});var i=t.lastCoords,a=h(ut(i.x-t.resize.offset.x,i.y-t.resize.offset.y,e.state.gridSize),2),l=a[0],c=a[1];return!!function(e,t,n,r,o,i,a,l,c,s,u){if(1===n.length){var d=h(n,1)[0];return"rotation"===t?(Ha(d,l,c,o),ka(d)):!Ye(d)||2!==d.points.length||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?!Ve(d)||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?t&&Wa(e.originalElements.get(d.id),a,d,t,i,l,c):(Ka(d,t,i,l,c),ka(d)):Ba(d,r,o,l,c),!0}if(n.length>1){if("rotation"===t)return Ga(e,n,l,c,o,s,u),!0;if("nw"===t||"ne"===t||"sw"===t||"se"===t)return Va(n,t,l,c),fr(n,t),!0}return!1}(t,o,r,t.resize.arrowDirection,on(n),nn(n),1===r.length&&We(r[0])?!rn(n):rn(n),l,c,t.resize.center.x,t.resize.center.y)&&(e.maybeSuggestBindingForAll(r),!0)},this._openContextMenu=function(t,n){var r=t.left,o=t.top;e.state.showHyperlinkPopup&&e.setState({showHyperlinkPopup:!1}),e.contextMenuOpen=!0;var i=bp.contextItemPredicate(e.actionManager.getElementsIncludingDeleted(),e.actionManager.getAppState()),a=yp.contextItemPredicate(e.actionManager.getElementsIncludingDeleted(),e.actionManager.getAppState()),l=Dp.contextItemPredicate(e.actionManager.getElementsIncludingDeleted(),e.actionManager.getAppState()),c=Rp.contextItemPredicate(e.actionManager.getElementsIncludingDeleted(),e.actionManager.getAppState()),s="separator",u=e.scene.getElements(),d=[];if(Lf&&u.length>0&&d.push(Gp),Af&&u.length>0&&d.push(Vp),"canvas"===n){var f=[].concat(d,[void 0===e.props.gridModeEnabled&&Xp,void 0===e.props.zenModeEnabled&&Qp,void 0===e.props.viewModeEnabled&&Vm,th]);e.state.viewModeEnabled?_h({options:f,top:o,left:r,actionManager:e.actionManager,appState:e.state,container:e.excalidrawContainerRef.current,elements:u}):_h({options:[e.isMobile&&navigator.clipboard&&{name:"paste",perform:function(t,n){return e.pasteFromClipboard(null),{commitToHistory:!1}},contextItemLabel:"labels.paste"},e.isMobile&&navigator.clipboard&&s,Lf&&u.length>0&&Gp,Af&&u.length>0&&Vp,(Lf&&u.length>0||Af&&u.length>0)&&s,ru,s,void 0===e.props.gridModeEnabled&&Xp,void 0===e.props.zenModeEnabled&&Qp,void 0===e.props.viewModeEnabled&&Vm,th],top:o,left:r,actionManager:e.actionManager,appState:e.state,container:e.excalidrawContainerRef.current,elements:u})}else if("element"===n){var p=Ds(u,e.state).some((function(e){return!Je(e)}));e.state.viewModeEnabled?_h({options:[navigator.clipboard&&Kp].concat(d),top:o,left:r,actionManager:e.actionManager,appState:e.state,container:e.excalidrawContainerRef.current,elements:u}):_h({options:[e.isMobile&&Wp,e.isMobile&&navigator.clipboard&&Kp,e.isMobile&&navigator.clipboard&&{name:"paste",perform:function(t,n){return e.pasteFromClipboard(null),{commitToHistory:!1}},contextItemLabel:"labels.paste"},e.isMobile&&s].concat(d,[s,cp,sp,s,i&&bp,!p&&nh,a&&yp,(i||a)&&s,Sp,s,$s,Qs,Js,eu,s,l&&Dp,c&&Rp,(l||c)&&s,Su.contextItemPredicate(u,e.state)&&Su,au,Bs]),top:o,left:r,actionManager:e.actionManager,appState:e.state,container:e.excalidrawContainerRef.current,elements:u})}},this.handleWheel=On((function(t){if(t.preventDefault(),!cg){var n=t.deltaX,r=t.deltaY,o=e.state,i=o.selectedElementIds,a=o.previousSelectedElementIds;if(t.metaKey||t.ctrlKey){var l=Math.sign(r),c=Math.abs(r);c>10&&(c=10),c*=l,0!==Object.keys(a).length&&setTimeout((function(){e.setState({selectedElementIds:a,previousSelectedElementIds:{}})}),1e3);var u=e.state.zoom.value-c/100;return u+=Math.log10(Math.max(1,e.state.zoom.value))*-l,u=Math.round(u*s.V4*100)/(100*s.V4),e.setState((function(e){return $m($m({},Jc({viewportX:ig,viewportY:ag,nextZoom:Qc(u)},e)),{},{selectedElementIds:{},previousSelectedElementIds:0!==Object.keys(i).length?i:a,shouldCacheIgnoreZoom:!0})})),void e.resetShouldCacheIgnoreZoomDebounced()}t.shiftKey?e.setState((function(e){var t=e.zoom;return{scrollX:e.scrollX-(r||n)/t.value}})):e.setState((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=xn({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:hg.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=fn((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($m({},e.getCanvasOffsets()))}};"production"!==s.Vi.TEST&&"production"!==s.Vi.DEVELOPMENT||(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){return this.app.scene.getElementsIncludingDeleted()},set:function(e){return this.app.scene.replaceAllElements(e)}}}));var vg=mg,bg=(n(4285),n(3313),["initialData","UIOptions"]),yg=["initialData","UIOptions"];function xg(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 wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kg=function(e){var t,n,r,o=e.onChange,i=e.initialData,a=e.excalidrawRef,c=e.onCollabButtonClick,u=e.isCollaborating,d=void 0!==u&&u,f=e.onPointerUpdate,p=e.renderTopRightUI,h=e.renderFooter,m=e.langCode,g=void 0===m?y.code:m,v=e.viewModeEnabled,b=e.zenModeEnabled,x=e.gridModeEnabled,w=e.libraryReturnUrl,k=e.theme,E=e.name,_=e.renderCustomStats,S=e.onPaste,j=e.detectScroll,C=void 0===j||j,I=e.handleKeyboardGlobally,T=void 0!==I&&I,P=e.onLibraryChange,A=e.autoFocus,L=void 0!==A&&A,D=e.generateIdForFile,R=e.onLinkOpen,z=null===(t=e.UIOptions)||void 0===t?void 0:t.canvasActions,N={canvasActions:wg(wg({},s.cW.canvasActions),z)};null!=z&&z.export&&(N.canvasActions.export.saveFileToDisk=null!==(n=null===(r=z.export)||void 0===r?void 0:r.saveFileToDisk)&&void 0!==n?n:s.cW.canvasActions.export.saveFileToDisk);return(0,l.useEffect)((function(){var e=function(e){"number"==typeof e.scale&&1!==e.scale&&e.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),function(){document.removeEventListener("touchmove",e)}}),[]),(0,O.jsx)(M,{langCode:g,children:(0,O.jsx)(vg,{onChange:o,initialData:i,excalidrawRef:a,onCollabButtonClick:c,isCollaborating:d,onPointerUpdate:f,renderTopRightUI:p,renderFooter:h,langCode:g,viewModeEnabled:v,zenModeEnabled:b,gridModeEnabled:x,libraryReturnUrl:w,theme:k,name:E,renderCustomStats:_,UIOptions:N,onPaste:S,detectScroll:C,handleKeyboardGlobally:T,onLibraryChange:P,autoFocus:L,generateIdForFile:D,onLinkOpen:R})})},Eg=function(e,t){e.initialData;var n=e.UIOptions,r=void 0===n?{}:n,i=o()(e,bg),a=(t.initialData,t.UIOptions),l=void 0===a?{}:a,c=o()(t,yg),s=Object.keys(r),u=Object.keys(l);if(s.length!==u.length)return!1;var d=s.every((function(e){"canvasActions"===e&&Object.keys(r.canvasActions).every((function(e){var t,n,o,i;return"export"===e&&null!=r&&null!==(t=r.canvasActions)&&void 0!==t&&t.export&&null!=l&&null!==(n=l.canvasActions)&&void 0!==n&&n.export?r.canvasActions.export.saveFileToDisk===l.canvasActions.export.saveFileToDisk:(null==r||null===(o=r.canvasActions)||void 0===o?void 0:o[e])===(null==l||null===(i=l.canvasActions)||void 0===i?void 0:i[e])}));return!0})),f=Object.keys(e),p=Object.keys(t);return d&&f.length===p.length&&f.every((function(e){return i[e]===c[e]}))},_g=(0,l.forwardRef)((function(e,t){return(0,O.jsx)(kg,wg(wg({},e),{},{excalidrawRef:t}))})),Sg=c().memo(_g,Eg),jg=(n(8336),Sg)},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,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},1639:function(e){"use strict";e.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},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(t){"use strict";t.exports=e},5156:function(e){"use strict";e.exports=t},8950:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,c,"next",e)}function c(e){r(a,o,i,l,c,"throw",e)}l(void 0)}))}}n.d(t,{Z:function(){return o}})},1463:function(e){"use strict";e.exports=JSON.parse('{"labels":{"paste":"Paste","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","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","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","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…","libraries":"Browse libraries","loadingScene":"Loading scene…","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","link":{"edit":"Edit link","create":"Create link","label":"Link"}},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Save as image","export":"Export","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":"Load","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","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. Try using Chrome browser.","decryptFailed":"Couldn\'t decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can\'t read the content.","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.)","errorLoadingLibrary":"There was an error loading the third party library.","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."},"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."},"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":"Prevent pinch-zoom and accept freedraw input only from pen","link":"Add/ Update link for a selected shape"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging","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":"Double-click or press 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"},"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","editSelectedShape":"Edit selected shape (text/arrow/line)","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","shapes":"Shapes","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"},"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"},"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"},"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"}}')},4451:function(e){"use strict";e.exports=JSON.parse('{"ar-SA":88,"bg-BG":61,"bn-BD":0,"ca-ES":95,"cs-CZ":24,"da-DK":16,"de-DE":99,"el-GR":87,"en":100,"es-ES":84,"eu-ES":96,"fa-IR":63,"fi-FI":98,"fr-FR":100,"he-IL":80,"hi-IN":55,"hu-HU":49,"id-ID":100,"it-IT":96,"ja-JP":98,"kab-KAB":95,"kk-KZ":23,"ko-KR":72,"lt-LT":24,"lv-LV":100,"my-MM":46,"nb-NO":100,"nl-NL":90,"nn-NO":83,"oc-FR":97,"pa-IN":87,"pl-PL":93,"pt-BR":98,"pt-PT":83,"ro-RO":100,"ru-RU":99,"si-LK":9,"sk-SK":100,"sv-SE":100,"ta-IN":99,"tr-TR":85,"uk-UA":82,"zh-CN":100,"zh-HK":28,"zh-TW":100}')}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}return c.m=a,c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},c.d(o,i),o},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=function(e){return Promise.all(Object.keys(c.f).reduce((function(t,n){return c.f[n](e,t),t}),[]))},c.u=function(e){return"excalidraw-assets/"+{9:"i18n-zh-HK-json",43:"i18n-de-DE-json",58:"i18n-lt-LT-json",60:"i18n-ko-KR-json",62:"i18n-zh-TW-json",90:"i18n-si-LK-json",137:"i18n-ja-JP-json",149:"i18n-pt-PT-json",164:"i18n-kab-KAB-json",196:"i18n-nl-NL-json",213:"i18n-tr-TR-json",242:"i18n-my-MM-json",246:"i18n-nb-NO-json",262:"i18n-he-IL-json",280:"i18n-pa-IN-json",304:"i18n-zh-CN-json",317:"i18n-es-ES-json",351:"i18n-ca-ES-json",364:"i18n-fr-FR-json",381:"i18n-pt-BR-json",384:"i18n-bg-BG-json",387:"i18n-cs-CZ-json",395:"i18n-ta-IN-json",401:"i18n-sk-SK-json",431:"i18n-eu-ES-json",465:"i18n-it-IT-json",472:"i18n-fi-FI-json",491:"i18n-id-ID-json",499:"image",526:"i18n-el-GR-json",558:"i18n-ar-SA-json",565:"i18n-oc-FR-json",583:"i18n-uk-UA-json",603:"i18n-bn-BD-json",617:"i18n-da-DK-json",649:"i18n-kk-KZ-json",661:"i18n-hu-HU-json",698:"i18n-sv-SE-json",710:"i18n-fa-IR-json",736:"vendor",752:"i18n-ro-RO-json",852:"i18n-pl-PL-json",869:"i18n-ru-RU-json",899:"i18n-lv-LV-json",920:"i18n-nn-NO-json",933:"i18n-hi-IN-json"}[e]+"-"+{9:"30c36c8fd961f5d170f3",43:"ef380f64f6865954b0a8",58:"999644c6901ba293b94f",60:"8cb8265529a1b44b5b83",62:"b98625b888d1a38a1e35",90:"0168ba04309e69acf8f8",137:"d393424a3bf3d819c55c",149:"51f59b1e2263211ec93f",164:"b6e3fb72b894c32d880b",196:"ac240a29fc28abe04b68",213:"a5403d611da049fb9ac9",242:"f113e0d4e325f2ab5f9a",246:"a68ef171ead03e41a3fc",262:"46098f880b56c784c524",280:"fd72f5acaf54acdf92f4",304:"bf2622c18de40b872772",317:"2a7c2aedd8e0e11c0ffd",351:"49c237f0386f487f2b89",364:"c4a47fdc6828648bcc0b",381:"c33f3d7e5ced5fa875da",384:"e4675485be70db3d505b",387:"18e06cddb62be71241bc",395:"028cb3ff5436242bfe93",401:"689a542868cd8bf55c8f",431:"2b70c65af4801826fd81",465:"353b67282442ff113ca5",472:"d1b98e036e0c311a5f94",491:"a56030455c18e20fc460",499:"b76d879db8316c30fd0d",526:"ced6e4a724987ebc00c3",558:"d46c8f24fe4ef43f1ba6",565:"032cf6f52e5c1fde7146",583:"574637d179e2f430e9cd",603:"a74dc358f3c11e1f2eda",617:"ae94ab97dbff85f9a6a5",649:"0c61810ca218a4a849ab",661:"be46128b9fe090bd2727",698:"b487a1452d9e8cc95e99",710:"ca6c7d3370106a46c722",736:"41e5c0be76c29ad2aba4",752:"db4d695c50423ea348a2",852:"c4f01f39d882bac94426",869:"9c2f8157732f9cfd998c",899:"3d721192be0e9e91d53a",920:"6b400c9d969d9b00957f",933:"0abea31b70b913ab7137"}[e]+".js"},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o={},i="Excalidraw:",c.l=function(e,t,n,r){if(o[e])o[e].push(t);else{var a,l;if(void 0!==n)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var f=function(t,n){a.onerror=a.onload=null,clearTimeout(p);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},c.p="",function(){c.b=document.baseURI||self.location.href;var e={388:0};c.f.j=function(t,n){var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(function(n){if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],a=n[1],l=n[2],s=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(l)l(c)}for(t&&t(n);s<i.length;s++)o=i[s],c.o(e,o)&&e[o]&&e[o][0](),e[i[s]]=0},n=self.webpackChunkExcalidraw=self.webpackChunkExcalidraw||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),c(7314)}()}));
\ No newline at end of file
diff --git a/libraries/excalidraw/excalidraw.production.min.js.LICENSE.txt b/libraries/excalidraw/excalidraw.production.min.js.LICENSE.txt
deleted file mode 100644
index 4298c481c7..0000000000
--- a/libraries/excalidraw/excalidraw.production.min.js.LICENSE.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-object-assign
-(c) Sindre Sorhus
-@license MIT
-*/
-
-/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-
-/** @license React v17.0.2
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-// @license © 2020 Google LLC. Licensed under the Apache License, Version 2.0.
diff --git a/libraries/excalidraw/umd/react-dom.development.js b/libraries/excalidraw/umd/react-dom.development.js
deleted file mode 100644
index 45db5aa394..0000000000
--- a/libraries/excalidraw/umd/react-dom.development.js
+++ /dev/null
@@ -1,26292 +0,0 @@
-/** @license React v17.0.2
- * react-dom.development.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
- typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
- (global = global || self, factory(global.ReactDOM = {}, global.React));
-}(this, (function (exports, React) { 'use strict';
-
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
- // by calls to these methods by a Babel plugin.
- //
- // In PROD (or in packages without access to React internals),
- // they are left as they are instead.
-
- function warn(format) {
- {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- printWarning('warn', format, args);
- }
- }
- function error(format) {
- {
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
-
- printWarning('error', format, args);
- }
- }
-
- function printWarning(level, format, args) {
- // When changing this logic, you might want to also
- // update consoleWithStackDev.www.js as well.
- {
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum();
-
- if (stack !== '') {
- format += '%s';
- args = args.concat([stack]);
- }
-
- var argsWithFormat = args.map(function (item) {
- return '' + item;
- }); // Careful: RN currently depends on this prefix
-
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
- // eslint-disable-next-line react-internal/no-production-logging
-
- Function.prototype.apply.call(console[level], console, argsWithFormat);
- }
- }
-
- if (!React) {
- {
- throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
- }
- }
-
- var FunctionComponent = 0;
- var ClassComponent = 1;
- var IndeterminateComponent = 2; // Before we know whether it is function or class
-
- var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
-
- var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
-
- var HostComponent = 5;
- var HostText = 6;
- var Fragment = 7;
- var Mode = 8;
- var ContextConsumer = 9;
- var ContextProvider = 10;
- var ForwardRef = 11;
- var Profiler = 12;
- var SuspenseComponent = 13;
- var MemoComponent = 14;
- var SimpleMemoComponent = 15;
- var LazyComponent = 16;
- var IncompleteClassComponent = 17;
- var DehydratedFragment = 18;
- var SuspenseListComponent = 19;
- var FundamentalComponent = 20;
- var ScopeComponent = 21;
- var Block = 22;
- var OffscreenComponent = 23;
- var LegacyHiddenComponent = 24;
-
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
-
- var enableProfilerTimer = true; // Record durations for commit and passive effects phases.
-
- var enableFundamentalAPI = false; // Experimental Scope support.
- var enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects)
- var warnAboutStringRefs = false;
-
- var allNativeEvents = new Set();
- /**
- * Mapping from registration name to event name
- */
-
-
- var registrationNameDependencies = {};
- /**
- * Mapping from lowercase registration names to the properly cased version,
- * used to warn in the case of missing event handlers. Available
- * only in true.
- * @type {Object}
- */
-
- var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
-
- function registerTwoPhaseEvent(registrationName, dependencies) {
- registerDirectEvent(registrationName, dependencies);
- registerDirectEvent(registrationName + 'Capture', dependencies);
- }
- function registerDirectEvent(registrationName, dependencies) {
- {
- if (registrationNameDependencies[registrationName]) {
- error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
- }
- }
-
- registrationNameDependencies[registrationName] = dependencies;
-
- {
- var lowerCasedName = registrationName.toLowerCase();
- possibleRegistrationNames[lowerCasedName] = registrationName;
-
- if (registrationName === 'onDoubleClick') {
- possibleRegistrationNames.ondblclick = registrationName;
- }
- }
-
- for (var i = 0; i < dependencies.length; i++) {
- allNativeEvents.add(dependencies[i]);
- }
- }
-
- var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
-
- // A reserved attribute.
- // It is handled by React separately and shouldn't be written to the DOM.
- var RESERVED = 0; // A simple string attribute.
- // Attributes that aren't in the filter are presumed to have this type.
-
- var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
- // "enumerated" attributes with "true" and "false" as possible values.
- // When true, it should be set to a "true" string.
- // When false, it should be set to a "false" string.
-
- var BOOLEANISH_STRING = 2; // A real boolean attribute.
- // When true, it should be present (set either to an empty string or its name).
- // When false, it should be omitted.
-
- var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
- // When true, it should be present (set either to an empty string or its name).
- // When false, it should be omitted.
- // For any other value, should be present with that value.
-
- var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
- // When falsy, it should be removed.
-
- var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
- // When falsy, it should be removed.
-
- var POSITIVE_NUMERIC = 6;
-
- /* eslint-disable max-len */
- var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
- /* eslint-enable max-len */
-
- var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
- var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
- var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var illegalAttributeNameCache = {};
- var validatedAttributeNameCache = {};
- function isAttributeNameSafe(attributeName) {
- if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
- return true;
- }
-
- if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
- return false;
- }
-
- if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
- validatedAttributeNameCache[attributeName] = true;
- return true;
- }
-
- illegalAttributeNameCache[attributeName] = true;
-
- {
- error('Invalid attribute name: `%s`', attributeName);
- }
-
- return false;
- }
- function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
- if (propertyInfo !== null) {
- return propertyInfo.type === RESERVED;
- }
-
- if (isCustomComponentTag) {
- return false;
- }
-
- if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
- return true;
- }
-
- return false;
- }
- function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
- if (propertyInfo !== null && propertyInfo.type === RESERVED) {
- return false;
- }
-
- switch (typeof value) {
- case 'function': // $FlowIssue symbol is perfectly valid here
-
- case 'symbol':
- // eslint-disable-line
- return true;
-
- case 'boolean':
- {
- if (isCustomComponentTag) {
- return false;
- }
-
- if (propertyInfo !== null) {
- return !propertyInfo.acceptsBooleans;
- } else {
- var prefix = name.toLowerCase().slice(0, 5);
- return prefix !== 'data-' && prefix !== 'aria-';
- }
- }
-
- default:
- return false;
- }
- }
- function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
- if (value === null || typeof value === 'undefined') {
- return true;
- }
-
- if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
- return true;
- }
-
- if (isCustomComponentTag) {
- return false;
- }
-
- if (propertyInfo !== null) {
-
- switch (propertyInfo.type) {
- case BOOLEAN:
- return !value;
-
- case OVERLOADED_BOOLEAN:
- return value === false;
-
- case NUMERIC:
- return isNaN(value);
-
- case POSITIVE_NUMERIC:
- return isNaN(value) || value < 1;
- }
- }
-
- return false;
- }
- function getPropertyInfo(name) {
- return properties.hasOwnProperty(name) ? properties[name] : null;
- }
-
- function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
- this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
- this.attributeName = attributeName;
- this.attributeNamespace = attributeNamespace;
- this.mustUseProperty = mustUseProperty;
- this.propertyName = name;
- this.type = type;
- this.sanitizeURL = sanitizeURL;
- this.removeEmptyString = removeEmptyString;
- } // When adding attributes to this list, be sure to also add them to
- // the `possibleStandardNames` module to ensure casing and incorrect
- // name warnings.
-
-
- var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
-
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
- // elements (not just inputs). Now that ReactDOMInput assigns to the
- // defaultValue property -- do we need this?
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
- reservedProps.forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // A few React string attributes have a different name.
- // This is a mapping from React prop names to the attribute names.
-
- [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
- var name = _ref[0],
- attributeName = _ref[1];
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are "enumerated" HTML attributes that accept "true" and "false".
- // In React, we let users pass `true` and `false` even though technically
- // these aren't boolean attributes (they are coerced to strings).
-
- ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are "enumerated" SVG attributes that accept "true" and "false".
- // In React, we let users pass `true` and `false` even though technically
- // these aren't boolean attributes (they are coerced to strings).
- // Since these are SVG attributes, their attribute names are case-sensitive.
-
- ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML boolean attributes.
-
- ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
- // on the client side because the browsers are inconsistent. Instead we call focus().
- 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
- 'itemScope'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are the few React props that we set as DOM properties
- // rather than attributes. These are all booleans.
-
- ['checked', // Note: `option.selected` is not updated if `select.multiple` is
- // disabled with `removeAttribute`. We have special logic for handling this.
- 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that are "overloaded booleans": they behave like
- // booleans, but can also accept a string value.
-
- ['capture', 'download' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that must be positive numbers.
-
- ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
- name, // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These are HTML attributes that must be numbers.
-
- ['rowSpan', 'start'].forEach(function (name) {
- properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
- name.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- });
- var CAMELIZE = /[\-\:]([a-z])/g;
-
- var capitalize = function (token) {
- return token[1].toUpperCase();
- }; // This is a list of all SVG attributes that need special casing, namespacing,
- // or boolean value assignment. Regular attributes that just accept strings
- // and have the same names are omitted, just like in the HTML attribute filter.
- // Some of these attributes can be hard to find. This list was created by
- // scraping the MDN documentation.
-
-
- ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // String SVG attributes with the xlink namespace.
-
- ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL
- false);
- }); // String SVG attributes with the xml namespace.
-
- ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
- // you'll need to set attributeName to name.toLowerCase()
- // instead in the assignment below.
- ].forEach(function (attributeName) {
- var name = attributeName.replace(CAMELIZE, capitalize);
- properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
- attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL
- false);
- }); // These attribute exists both in HTML and SVG.
- // The attribute name is case-sensitive in SVG so we can't just use
- // the React name like we do for attributes that exist only in HTML.
-
- ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
- attributeName.toLowerCase(), // attributeName
- null, // attributeNamespace
- false, // sanitizeURL
- false);
- }); // These attributes accept URLs. These must not allow javascript: URLS.
- // These will also need to accept Trusted Types object in the future.
-
- var xlinkHref = 'xlinkHref';
- properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
- 'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL
- false);
- ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
- properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
- attributeName.toLowerCase(), // attributeName
- null, // attributeNamespace
- true, // sanitizeURL
- true);
- });
-
- // and any newline or tab are filtered out as if they're not part of the URL.
- // https://url.spec.whatwg.org/#url-parsing
- // Tab or newline are defined as \r\n\t:
- // https://infra.spec.whatwg.org/#ascii-tab-or-newline
- // A C0 control is a code point in the range \u0000 NULL to \u001F
- // INFORMATION SEPARATOR ONE, inclusive:
- // https://infra.spec.whatwg.org/#c0-control-or-space
-
- /* eslint-disable max-len */
-
- var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
- var didWarn = false;
-
- function sanitizeURL(url) {
- {
- if (!didWarn && isJavaScriptProtocol.test(url)) {
- didWarn = true;
-
- error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
- }
- }
- }
-
- /**
- * Get the value for a property on a node. Only used in DEV for SSR validation.
- * The "expected" argument is used as a hint of what the expected value is.
- * Some properties have multiple equivalent values.
- */
- function getValueForProperty(node, name, expected, propertyInfo) {
- {
- if (propertyInfo.mustUseProperty) {
- var propertyName = propertyInfo.propertyName;
- return node[propertyName];
- } else {
- if ( propertyInfo.sanitizeURL) {
- // If we haven't fully disabled javascript: URLs, and if
- // the hydration is successful of a javascript: URL, we
- // still want to warn on the client.
- sanitizeURL('' + expected);
- }
-
- var attributeName = propertyInfo.attributeName;
- var stringValue = null;
-
- if (propertyInfo.type === OVERLOADED_BOOLEAN) {
- if (node.hasAttribute(attributeName)) {
- var value = node.getAttribute(attributeName);
-
- if (value === '') {
- return true;
- }
-
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- return value;
- }
-
- if (value === '' + expected) {
- return expected;
- }
-
- return value;
- }
- } else if (node.hasAttribute(attributeName)) {
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- // We had an attribute but shouldn't have had one, so read it
- // for the error message.
- return node.getAttribute(attributeName);
- }
-
- if (propertyInfo.type === BOOLEAN) {
- // If this was a boolean, it doesn't matter what the value is
- // the fact that we have it is the same as the expected.
- return expected;
- } // Even if this property uses a namespace we use getAttribute
- // because we assume its namespaced name is the same as our config.
- // To use getAttributeNS we need the local name which we don't have
- // in our config atm.
-
-
- stringValue = node.getAttribute(attributeName);
- }
-
- if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
- return stringValue === null ? expected : stringValue;
- } else if (stringValue === '' + expected) {
- return expected;
- } else {
- return stringValue;
- }
- }
- }
- }
- /**
- * Get the value for a attribute on a node. Only used in DEV for SSR validation.
- * The third argument is used as a hint of what the expected value is. Some
- * attributes have multiple equivalent values.
- */
-
- function getValueForAttribute(node, name, expected) {
- {
- if (!isAttributeNameSafe(name)) {
- return;
- } // If the object is an opaque reference ID, it's expected that
- // the next prop is different than the server value, so just return
- // expected
-
-
- if (isOpaqueHydratingObject(expected)) {
- return expected;
- }
-
- if (!node.hasAttribute(name)) {
- return expected === undefined ? undefined : null;
- }
-
- var value = node.getAttribute(name);
-
- if (value === '' + expected) {
- return expected;
- }
-
- return value;
- }
- }
- /**
- * Sets the value for a property on a node.
- *
- * @param {DOMElement} node
- * @param {string} name
- * @param {*} value
- */
-
- function setValueForProperty(node, name, value, isCustomComponentTag) {
- var propertyInfo = getPropertyInfo(name);
-
- if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
- return;
- }
-
- if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
- value = null;
- } // If the prop isn't in the special list, treat it as a simple attribute.
-
-
- if (isCustomComponentTag || propertyInfo === null) {
- if (isAttributeNameSafe(name)) {
- var _attributeName = name;
-
- if (value === null) {
- node.removeAttribute(_attributeName);
- } else {
- node.setAttribute(_attributeName, '' + value);
- }
- }
-
- return;
- }
-
- var mustUseProperty = propertyInfo.mustUseProperty;
-
- if (mustUseProperty) {
- var propertyName = propertyInfo.propertyName;
-
- if (value === null) {
- var type = propertyInfo.type;
- node[propertyName] = type === BOOLEAN ? false : '';
- } else {
- // Contrary to `setAttribute`, object properties are properly
- // `toString`ed by IE8/9.
- node[propertyName] = value;
- }
-
- return;
- } // The rest are treated as attributes with special cases.
-
-
- var attributeName = propertyInfo.attributeName,
- attributeNamespace = propertyInfo.attributeNamespace;
-
- if (value === null) {
- node.removeAttribute(attributeName);
- } else {
- var _type = propertyInfo.type;
- var attributeValue;
-
- if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
- // If attribute type is boolean, we know for sure it won't be an execution sink
- // and we won't require Trusted Type here.
- attributeValue = '';
- } else {
- // `setAttribute` with objects becomes only `[object]` in IE8/9,
- // ('' + value) makes it output the correct toString()-value.
- {
- attributeValue = '' + value;
- }
-
- if (propertyInfo.sanitizeURL) {
- sanitizeURL(attributeValue.toString());
- }
- }
-
- if (attributeNamespace) {
- node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
- } else {
- node.setAttribute(attributeName, attributeValue);
- }
- }
- }
-
- var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
- var _assign = ReactInternals.assign;
-
- // ATTENTION
- // When adding new symbols to this file,
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
- // nor polyfill, then a plain number is used for performance.
- var REACT_ELEMENT_TYPE = 0xeac7;
- var REACT_PORTAL_TYPE = 0xeaca;
- var REACT_FRAGMENT_TYPE = 0xeacb;
- var REACT_STRICT_MODE_TYPE = 0xeacc;
- var REACT_PROFILER_TYPE = 0xead2;
- var REACT_PROVIDER_TYPE = 0xeacd;
- var REACT_CONTEXT_TYPE = 0xeace;
- var REACT_FORWARD_REF_TYPE = 0xead0;
- var REACT_SUSPENSE_TYPE = 0xead1;
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
- var REACT_MEMO_TYPE = 0xead3;
- var REACT_LAZY_TYPE = 0xead4;
- var REACT_BLOCK_TYPE = 0xead9;
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
- var REACT_SCOPE_TYPE = 0xead7;
- var REACT_OPAQUE_ID_TYPE = 0xeae0;
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
- var REACT_OFFSCREEN_TYPE = 0xeae2;
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
-
- if (typeof Symbol === 'function' && Symbol.for) {
- var symbolFor = Symbol.for;
- REACT_ELEMENT_TYPE = symbolFor('react.element');
- REACT_PORTAL_TYPE = symbolFor('react.portal');
- REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
- REACT_CONTEXT_TYPE = symbolFor('react.context');
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
- REACT_MEMO_TYPE = symbolFor('react.memo');
- REACT_LAZY_TYPE = symbolFor('react.lazy');
- REACT_BLOCK_TYPE = symbolFor('react.block');
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
- REACT_SCOPE_TYPE = symbolFor('react.scope');
- REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
- REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
- }
-
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
- function getIteratorFn(maybeIterable) {
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
- return null;
- }
-
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
-
- if (typeof maybeIterator === 'function') {
- return maybeIterator;
- }
-
- return null;
- }
-
- // Helpers to patch console.logs to avoid logging during side-effect free
- // replaying on render function. This currently only patches the object
- // lazily which won't cover if the log function was extracted eagerly.
- // We could also eagerly patch the method.
- var disabledDepth = 0;
- var prevLog;
- var prevInfo;
- var prevWarn;
- var prevError;
- var prevGroup;
- var prevGroupCollapsed;
- var prevGroupEnd;
-
- function disabledLog() {}
-
- disabledLog.__reactDisabledLog = true;
- function disableLogs() {
- {
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- prevLog = console.log;
- prevInfo = console.info;
- prevWarn = console.warn;
- prevError = console.error;
- prevGroup = console.group;
- prevGroupCollapsed = console.groupCollapsed;
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
-
- var props = {
- configurable: true,
- enumerable: true,
- value: disabledLog,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- info: props,
- log: props,
- warn: props,
- error: props,
- group: props,
- groupCollapsed: props,
- groupEnd: props
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- disabledDepth++;
- }
- }
- function reenableLogs() {
- {
- disabledDepth--;
-
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- var props = {
- configurable: true,
- enumerable: true,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- log: _assign({}, props, {
- value: prevLog
- }),
- info: _assign({}, props, {
- value: prevInfo
- }),
- warn: _assign({}, props, {
- value: prevWarn
- }),
- error: _assign({}, props, {
- value: prevError
- }),
- group: _assign({}, props, {
- value: prevGroup
- }),
- groupCollapsed: _assign({}, props, {
- value: prevGroupCollapsed
- }),
- groupEnd: _assign({}, props, {
- value: prevGroupEnd
- })
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- if (disabledDepth < 0) {
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
- }
- }
- }
-
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
- var prefix;
- function describeBuiltInComponentFrame(name, source, ownerFn) {
- {
- if (prefix === undefined) {
- // Extract the VM specific prefix used by each line.
- try {
- throw Error();
- } catch (x) {
- var match = x.stack.trim().match(/\n( *(at )?)/);
- prefix = match && match[1] || '';
- }
- } // We use the prefix to ensure our stacks line up with native stack frames.
-
-
- return '\n' + prefix + name;
- }
- }
- var reentry = false;
- var componentFrameCache;
-
- {
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
- componentFrameCache = new PossiblyWeakMap();
- }
-
- function describeNativeComponentFrame(fn, construct) {
- // If something asked for a stack inside a fake render, it should get ignored.
- if (!fn || reentry) {
- return '';
- }
-
- {
- var frame = componentFrameCache.get(fn);
-
- if (frame !== undefined) {
- return frame;
- }
- }
-
- var control;
- reentry = true;
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
-
- Error.prepareStackTrace = undefined;
- var previousDispatcher;
-
- {
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
- // for warnings.
-
- ReactCurrentDispatcher.current = null;
- disableLogs();
- }
-
- try {
- // This should throw.
- if (construct) {
- // Something should be setting the props in the constructor.
- var Fake = function () {
- throw Error();
- }; // $FlowFixMe
-
-
- Object.defineProperty(Fake.prototype, 'props', {
- set: function () {
- // We use a throwing setter instead of frozen or non-writable props
- // because that won't throw in a non-strict mode function.
- throw Error();
- }
- });
-
- if (typeof Reflect === 'object' && Reflect.construct) {
- // We construct a different control for this case to include any extra
- // frames added by the construct call.
- try {
- Reflect.construct(Fake, []);
- } catch (x) {
- control = x;
- }
-
- Reflect.construct(fn, [], Fake);
- } else {
- try {
- Fake.call();
- } catch (x) {
- control = x;
- }
-
- fn.call(Fake.prototype);
- }
- } else {
- try {
- throw Error();
- } catch (x) {
- control = x;
- }
-
- fn();
- }
- } catch (sample) {
- // This is inlined manually because closure doesn't do it for us.
- if (sample && control && typeof sample.stack === 'string') {
- // This extracts the first frame from the sample that isn't also in the control.
- // Skipping one frame that we assume is the frame that calls the two.
- var sampleLines = sample.stack.split('\n');
- var controlLines = control.stack.split('\n');
- var s = sampleLines.length - 1;
- var c = controlLines.length - 1;
-
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
- // We expect at least one stack frame to be shared.
- // Typically this will be the root most one. However, stack frames may be
- // cut off due to maximum stack limits. In this case, one maybe cut off
- // earlier than the other. We assume that the sample is longer or the same
- // and there for cut off earlier. So we should find the root most frame in
- // the sample somewhere in the control.
- c--;
- }
-
- for (; s >= 1 && c >= 0; s--, c--) {
- // Next we find the first one that isn't the same which should be the
- // frame that called our sample function and the control.
- if (sampleLines[s] !== controlLines[c]) {
- // In V8, the first line is describing the message but other VMs don't.
- // If we're about to return the first line, and the control is also on the same
- // line, that's a pretty good indicator that our sample threw at same line as
- // the control. I.e. before we entered the sample frame. So we ignore this result.
- // This can happen if you passed a class to function component, or non-function.
- if (s !== 1 || c !== 1) {
- do {
- s--;
- c--; // We may still have similar intermediate frames from the construct call.
- // The next one that isn't the same should be our match though.
-
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, _frame);
- }
- } // Return the line we found.
-
-
- return _frame;
- }
- } while (s >= 1 && c >= 0);
- }
-
- break;
- }
- }
- }
- } finally {
- reentry = false;
-
- {
- ReactCurrentDispatcher.current = previousDispatcher;
- reenableLogs();
- }
-
- Error.prepareStackTrace = previousPrepareStackTrace;
- } // Fallback to just using the name if we couldn't make it throw.
-
-
- var name = fn ? fn.displayName || fn.name : '';
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, syntheticFrame);
- }
- }
-
- return syntheticFrame;
- }
-
- function describeClassComponentFrame(ctor, source, ownerFn) {
- {
- return describeNativeComponentFrame(ctor, true);
- }
- }
- function describeFunctionComponentFrame(fn, source, ownerFn) {
- {
- return describeNativeComponentFrame(fn, false);
- }
- }
-
- function shouldConstruct(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
-
- if (type == null) {
- return '';
- }
-
- if (typeof type === 'function') {
- {
- return describeNativeComponentFrame(type, shouldConstruct(type));
- }
- }
-
- if (typeof type === 'string') {
- return describeBuiltInComponentFrame(type);
- }
-
- switch (type) {
- case REACT_SUSPENSE_TYPE:
- return describeBuiltInComponentFrame('Suspense');
-
- case REACT_SUSPENSE_LIST_TYPE:
- return describeBuiltInComponentFrame('SuspenseList');
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_FORWARD_REF_TYPE:
- return describeFunctionComponentFrame(type.render);
-
- case REACT_MEMO_TYPE:
- // Memo may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
-
- case REACT_BLOCK_TYPE:
- return describeFunctionComponentFrame(type._render);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- // Lazy may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
- } catch (x) {}
- }
- }
- }
-
- return '';
- }
-
- function describeFiber(fiber) {
- var owner = fiber._debugOwner ? fiber._debugOwner.type : null ;
- var source = fiber._debugSource ;
-
- switch (fiber.tag) {
- case HostComponent:
- return describeBuiltInComponentFrame(fiber.type);
-
- case LazyComponent:
- return describeBuiltInComponentFrame('Lazy');
-
- case SuspenseComponent:
- return describeBuiltInComponentFrame('Suspense');
-
- case SuspenseListComponent:
- return describeBuiltInComponentFrame('SuspenseList');
-
- case FunctionComponent:
- case IndeterminateComponent:
- case SimpleMemoComponent:
- return describeFunctionComponentFrame(fiber.type);
-
- case ForwardRef:
- return describeFunctionComponentFrame(fiber.type.render);
-
- case Block:
- return describeFunctionComponentFrame(fiber.type._render);
-
- case ClassComponent:
- return describeClassComponentFrame(fiber.type);
-
- default:
- return '';
- }
- }
-
- function getStackByFiberInDevAndProd(workInProgress) {
- try {
- var info = '';
- var node = workInProgress;
-
- do {
- info += describeFiber(node);
- node = node.return;
- } while (node);
-
- return info;
- } catch (x) {
- return '\nError generating stack: ' + x.message + '\n' + x.stack;
- }
- }
-
- function getWrappedName(outerType, innerType, wrapperName) {
- var functionName = innerType.displayName || innerType.name || '';
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
- }
-
- function getContextName(type) {
- return type.displayName || 'Context';
- }
-
- function getComponentName(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
-
- {
- if (typeof type.tag === 'number') {
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
- }
- }
-
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- switch (type) {
- case REACT_FRAGMENT_TYPE:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
-
- case REACT_PROFILER_TYPE:
- return 'Profiler';
-
- case REACT_STRICT_MODE_TYPE:
- return 'StrictMode';
-
- case REACT_SUSPENSE_TYPE:
- return 'Suspense';
-
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- var context = type;
- return getContextName(context) + '.Consumer';
-
- case REACT_PROVIDER_TYPE:
- var provider = type;
- return getContextName(provider._context) + '.Provider';
-
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
-
- case REACT_MEMO_TYPE:
- return getComponentName(type.type);
-
- case REACT_BLOCK_TYPE:
- return getComponentName(type._render);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- return getComponentName(init(payload));
- } catch (x) {
- return null;
- }
- }
- }
- }
-
- return null;
- }
-
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var current = null;
- var isRendering = false;
- function getCurrentFiberOwnerNameInDevOrNull() {
- {
- if (current === null) {
- return null;
- }
-
- var owner = current._debugOwner;
-
- if (owner !== null && typeof owner !== 'undefined') {
- return getComponentName(owner.type);
- }
- }
-
- return null;
- }
-
- function getCurrentFiberStackInDev() {
- {
- if (current === null) {
- return '';
- } // Safe because if current fiber exists, we are reconciling,
- // and it is guaranteed to be the work-in-progress version.
-
-
- return getStackByFiberInDevAndProd(current);
- }
- }
-
- function resetCurrentFiber() {
- {
- ReactDebugCurrentFrame.getCurrentStack = null;
- current = null;
- isRendering = false;
- }
- }
- function setCurrentFiber(fiber) {
- {
- ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
- current = fiber;
- isRendering = false;
- }
- }
- function setIsRendering(rendering) {
- {
- isRendering = rendering;
- }
- }
- function getIsRendering() {
- {
- return isRendering;
- }
- }
-
- // Flow does not allow string concatenation of most non-string types. To work
- // around this limitation, we use an opaque type that can only be obtained by
- // passing the value through getToStringValue first.
- function toString(value) {
- return '' + value;
- }
- function getToStringValue(value) {
- switch (typeof value) {
- case 'boolean':
- case 'number':
- case 'object':
- case 'string':
- case 'undefined':
- return value;
-
- default:
- // function, symbol are assigned as empty strings
- return '';
- }
- }
-
- var hasReadOnlyValue = {
- button: true,
- checkbox: true,
- image: true,
- hidden: true,
- radio: true,
- reset: true,
- submit: true
- };
- function checkControlledValueProps(tagName, props) {
- {
- if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
- error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- }
-
- if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
- error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- }
- }
- }
-
- function isCheckable(elem) {
- var type = elem.type;
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
- }
-
- function getTracker(node) {
- return node._valueTracker;
- }
-
- function detachTracker(node) {
- node._valueTracker = null;
- }
-
- function getValueFromNode(node) {
- var value = '';
-
- if (!node) {
- return value;
- }
-
- if (isCheckable(node)) {
- value = node.checked ? 'true' : 'false';
- } else {
- value = node.value;
- }
-
- return value;
- }
-
- function trackValueOnNode(node) {
- var valueField = isCheckable(node) ? 'checked' : 'value';
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
- var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
- // and don't track value will cause over reporting of changes,
- // but it's better then a hard failure
- // (needed for certain tests that spyOn input values and Safari)
-
- if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
- return;
- }
-
- var get = descriptor.get,
- set = descriptor.set;
- Object.defineProperty(node, valueField, {
- configurable: true,
- get: function () {
- return get.call(this);
- },
- set: function (value) {
- currentValue = '' + value;
- set.call(this, value);
- }
- }); // We could've passed this the first time
- // but it triggers a bug in IE11 and Edge 14/15.
- // Calling defineProperty() again should be equivalent.
- // https://github.com/facebook/react/issues/11768
-
- Object.defineProperty(node, valueField, {
- enumerable: descriptor.enumerable
- });
- var tracker = {
- getValue: function () {
- return currentValue;
- },
- setValue: function (value) {
- currentValue = '' + value;
- },
- stopTracking: function () {
- detachTracker(node);
- delete node[valueField];
- }
- };
- return tracker;
- }
-
- function track(node) {
- if (getTracker(node)) {
- return;
- } // TODO: Once it's just Fiber we can move this to node._wrapperState
-
-
- node._valueTracker = trackValueOnNode(node);
- }
- function updateValueIfChanged(node) {
- if (!node) {
- return false;
- }
-
- var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
- // that trying again will succeed
-
- if (!tracker) {
- return true;
- }
-
- var lastValue = tracker.getValue();
- var nextValue = getValueFromNode(node);
-
- if (nextValue !== lastValue) {
- tracker.setValue(nextValue);
- return true;
- }
-
- return false;
- }
-
- function getActiveElement(doc) {
- doc = doc || (typeof document !== 'undefined' ? document : undefined);
-
- if (typeof doc === 'undefined') {
- return null;
- }
-
- try {
- return doc.activeElement || doc.body;
- } catch (e) {
- return doc.body;
- }
- }
-
- var didWarnValueDefaultValue = false;
- var didWarnCheckedDefaultChecked = false;
- var didWarnControlledToUncontrolled = false;
- var didWarnUncontrolledToControlled = false;
-
- function isControlled(props) {
- var usesChecked = props.type === 'checkbox' || props.type === 'radio';
- return usesChecked ? props.checked != null : props.value != null;
- }
- /**
- * Implements an <input> host component that allows setting these optional
- * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
- *
- * If `checked` or `value` are not supplied (or null/undefined), user actions
- * that affect the checked state or value will trigger updates to the element.
- *
- * If they are supplied (and not null/undefined), the rendered element will not
- * trigger updates to the element. Instead, the props must change in order for
- * the rendered element to be updated.
- *
- * The rendered element will be initialized as unchecked (or `defaultChecked`)
- * with an empty value (or `defaultValue`).
- *
- * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
- */
-
-
- function getHostProps(element, props) {
- var node = element;
- var checked = props.checked;
-
- var hostProps = _assign({}, props, {
- defaultChecked: undefined,
- defaultValue: undefined,
- value: undefined,
- checked: checked != null ? checked : node._wrapperState.initialChecked
- });
-
- return hostProps;
- }
- function initWrapperState(element, props) {
- {
- checkControlledValueProps('input', props);
-
- if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
-
- didWarnCheckedDefaultChecked = true;
- }
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
-
- didWarnValueDefaultValue = true;
- }
- }
-
- var node = element;
- var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
- node._wrapperState = {
- initialChecked: props.checked != null ? props.checked : props.defaultChecked,
- initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
- controlled: isControlled(props)
- };
- }
- function updateChecked(element, props) {
- var node = element;
- var checked = props.checked;
-
- if (checked != null) {
- setValueForProperty(node, 'checked', checked, false);
- }
- }
- function updateWrapper(element, props) {
- var node = element;
-
- {
- var controlled = isControlled(props);
-
- if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');
-
- didWarnUncontrolledToControlled = true;
- }
-
- if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');
-
- didWarnControlledToUncontrolled = true;
- }
- }
-
- updateChecked(element, props);
- var value = getToStringValue(props.value);
- var type = props.type;
-
- if (value != null) {
- if (type === 'number') {
- if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
- // eslint-disable-next-line
- node.value != value) {
- node.value = toString(value);
- }
- } else if (node.value !== toString(value)) {
- node.value = toString(value);
- }
- } else if (type === 'submit' || type === 'reset') {
- // Submit/reset inputs need the attribute removed completely to avoid
- // blank-text buttons.
- node.removeAttribute('value');
- return;
- }
-
- {
- // When syncing the value attribute, the value comes from a cascade of
- // properties:
- // 1. The value React property
- // 2. The defaultValue React property
- // 3. Otherwise there should be no change
- if (props.hasOwnProperty('value')) {
- setDefaultValue(node, props.type, value);
- } else if (props.hasOwnProperty('defaultValue')) {
- setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
- }
- }
-
- {
- // When syncing the checked attribute, it only changes when it needs
- // to be removed, such as transitioning from a checkbox into a text input
- if (props.checked == null && props.defaultChecked != null) {
- node.defaultChecked = !!props.defaultChecked;
- }
- }
- }
- function postMountWrapper(element, props, isHydrating) {
- var node = element; // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
- var type = props.type;
- var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
- // default value provided by the browser. See: #12872
-
- if (isButton && (props.value === undefined || props.value === null)) {
- return;
- }
-
- var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
- // from being lost during SSR hydration.
-
- if (!isHydrating) {
- {
- // When syncing the value attribute, the value property should use
- // the wrapperState._initialValue property. This uses:
- //
- // 1. The value React property when present
- // 2. The defaultValue React property when present
- // 3. An empty string
- if (initialValue !== node.value) {
- node.value = initialValue;
- }
- }
- }
-
- {
- // Otherwise, the value attribute is synchronized to the property,
- // so we assign defaultValue to the same thing as the value property
- // assignment step above.
- node.defaultValue = initialValue;
- }
- } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
- // this is needed to work around a chrome bug where setting defaultChecked
- // will sometimes influence the value of checked (even after detachment).
- // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
- // We need to temporarily unset name to avoid disrupting radio button groups.
-
-
- var name = node.name;
-
- if (name !== '') {
- node.name = '';
- }
-
- {
- // When syncing the checked attribute, both the checked property and
- // attribute are assigned at the same time using defaultChecked. This uses:
- //
- // 1. The checked React property when present
- // 2. The defaultChecked React property when present
- // 3. Otherwise, false
- node.defaultChecked = !node.defaultChecked;
- node.defaultChecked = !!node._wrapperState.initialChecked;
- }
-
- if (name !== '') {
- node.name = name;
- }
- }
- function restoreControlledState(element, props) {
- var node = element;
- updateWrapper(node, props);
- updateNamedCousins(node, props);
- }
-
- function updateNamedCousins(rootNode, props) {
- var name = props.name;
-
- if (props.type === 'radio' && name != null) {
- var queryRoot = rootNode;
-
- while (queryRoot.parentNode) {
- queryRoot = queryRoot.parentNode;
- } // If `rootNode.form` was non-null, then we could try `form.elements`,
- // but that sometimes behaves strangely in IE8. We could also try using
- // `form.getElementsByName`, but that will only return direct children
- // and won't include inputs that use the HTML5 `form=` attribute. Since
- // the input might not even be in a form. It might not even be in the
- // document. Let's just use the local `querySelectorAll` to ensure we don't
- // miss anything.
-
-
- var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
-
- for (var i = 0; i < group.length; i++) {
- var otherNode = group[i];
-
- if (otherNode === rootNode || otherNode.form !== rootNode.form) {
- continue;
- } // This will throw if radio buttons rendered by different copies of React
- // and the same name are rendered into the same form (same as #1939).
- // That's probably okay; we don't support it just as we don't support
- // mixing React radio buttons with non-React ones.
-
-
- var otherProps = getFiberCurrentPropsFromNode(otherNode);
-
- if (!otherProps) {
- {
- throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
- }
- } // We need update the tracked value on the named cousin since the value
- // was changed but the input saw no event or value set
-
-
- updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
- // was previously checked to update will cause it to be come re-checked
- // as appropriate.
-
- updateWrapper(otherNode, otherProps);
- }
- }
- } // In Chrome, assigning defaultValue to certain input types triggers input validation.
- // For number inputs, the display value loses trailing decimal points. For email inputs,
- // Chrome raises "The specified value <x> is not a valid email address".
- //
- // Here we check to see if the defaultValue has actually changed, avoiding these problems
- // when the user is inputting text
- //
- // https://github.com/facebook/react/issues/7253
-
-
- function setDefaultValue(node, type, value) {
- if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
- type !== 'number' || getActiveElement(node.ownerDocument) !== node) {
- if (value == null) {
- node.defaultValue = toString(node._wrapperState.initialValue);
- } else if (node.defaultValue !== toString(value)) {
- node.defaultValue = toString(value);
- }
- }
- }
-
- var didWarnSelectedSetOnOption = false;
- var didWarnInvalidChild = false;
-
- function flattenChildren(children) {
- var content = ''; // Flatten children. We'll warn if they are invalid
- // during validateProps() which runs for hydration too.
- // Note that this would throw on non-element objects.
- // Elements are stringified (which is normally irrelevant
- // but matters for <fbt>).
-
- React.Children.forEach(children, function (child) {
- if (child == null) {
- return;
- }
-
- content += child; // Note: we don't warn about invalid children here.
- // Instead, this is done separately below so that
- // it happens during the hydration code path too.
- });
- return content;
- }
- /**
- * Implements an <option> host component that warns when `selected` is set.
- */
-
-
- function validateProps(element, props) {
- {
- // This mirrors the code path above, but runs for hydration too.
- // Warn about invalid children here so that client and hydration are consistent.
- // TODO: this seems like it could cause a DEV-only throw for hydration
- // if children contains a non-element object. We should try to avoid that.
- if (typeof props.children === 'object' && props.children !== null) {
- React.Children.forEach(props.children, function (child) {
- if (child == null) {
- return;
- }
-
- if (typeof child === 'string' || typeof child === 'number') {
- return;
- }
-
- if (typeof child.type !== 'string') {
- return;
- }
-
- if (!didWarnInvalidChild) {
- didWarnInvalidChild = true;
-
- error('Only strings and numbers are supported as <option> children.');
- }
- });
- } // TODO: Remove support for `selected` in <option>.
-
-
- if (props.selected != null && !didWarnSelectedSetOnOption) {
- error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
-
- didWarnSelectedSetOnOption = true;
- }
- }
- }
- function postMountWrapper$1(element, props) {
- // value="" should make a value attribute (#6219)
- if (props.value != null) {
- element.setAttribute('value', toString(getToStringValue(props.value)));
- }
- }
- function getHostProps$1(element, props) {
- var hostProps = _assign({
- children: undefined
- }, props);
-
- var content = flattenChildren(props.children);
-
- if (content) {
- hostProps.children = content;
- }
-
- return hostProps;
- }
-
- var didWarnValueDefaultValue$1;
-
- {
- didWarnValueDefaultValue$1 = false;
- }
-
- function getDeclarationErrorAddendum() {
- var ownerName = getCurrentFiberOwnerNameInDevOrNull();
-
- if (ownerName) {
- return '\n\nCheck the render method of `' + ownerName + '`.';
- }
-
- return '';
- }
-
- var valuePropNames = ['value', 'defaultValue'];
- /**
- * Validation function for `value` and `defaultValue`.
- */
-
- function checkSelectPropTypes(props) {
- {
- checkControlledValueProps('select', props);
-
- for (var i = 0; i < valuePropNames.length; i++) {
- var propName = valuePropNames[i];
-
- if (props[propName] == null) {
- continue;
- }
-
- var isArray = Array.isArray(props[propName]);
-
- if (props.multiple && !isArray) {
- error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
- } else if (!props.multiple && isArray) {
- error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
- }
- }
- }
- }
-
- function updateOptions(node, multiple, propValue, setDefaultSelected) {
- var options = node.options;
-
- if (multiple) {
- var selectedValues = propValue;
- var selectedValue = {};
-
- for (var i = 0; i < selectedValues.length; i++) {
- // Prefix to avoid chaos with special keys.
- selectedValue['$' + selectedValues[i]] = true;
- }
-
- for (var _i = 0; _i < options.length; _i++) {
- var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
-
- if (options[_i].selected !== selected) {
- options[_i].selected = selected;
- }
-
- if (selected && setDefaultSelected) {
- options[_i].defaultSelected = true;
- }
- }
- } else {
- // Do not set `select.value` as exact behavior isn't consistent across all
- // browsers for all cases.
- var _selectedValue = toString(getToStringValue(propValue));
-
- var defaultSelected = null;
-
- for (var _i2 = 0; _i2 < options.length; _i2++) {
- if (options[_i2].value === _selectedValue) {
- options[_i2].selected = true;
-
- if (setDefaultSelected) {
- options[_i2].defaultSelected = true;
- }
-
- return;
- }
-
- if (defaultSelected === null && !options[_i2].disabled) {
- defaultSelected = options[_i2];
- }
- }
-
- if (defaultSelected !== null) {
- defaultSelected.selected = true;
- }
- }
- }
- /**
- * Implements a <select> host component that allows optionally setting the
- * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
- * stringable. If `multiple` is true, the prop must be an array of stringables.
- *
- * If `value` is not supplied (or null/undefined), user actions that change the
- * selected option will trigger updates to the rendered options.
- *
- * If it is supplied (and not null/undefined), the rendered options will not
- * update in response to user actions. Instead, the `value` prop must change in
- * order for the rendered options to update.
- *
- * If `defaultValue` is provided, any options with the supplied values will be
- * selected.
- */
-
-
- function getHostProps$2(element, props) {
- return _assign({}, props, {
- value: undefined
- });
- }
- function initWrapperState$1(element, props) {
- var node = element;
-
- {
- checkSelectPropTypes(props);
- }
-
- node._wrapperState = {
- wasMultiple: !!props.multiple
- };
-
- {
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
- error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');
-
- didWarnValueDefaultValue$1 = true;
- }
- }
- }
- function postMountWrapper$2(element, props) {
- var node = element;
- node.multiple = !!props.multiple;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- } else if (props.defaultValue != null) {
- updateOptions(node, !!props.multiple, props.defaultValue, true);
- }
- }
- function postUpdateWrapper(element, props) {
- var node = element;
- var wasMultiple = node._wrapperState.wasMultiple;
- node._wrapperState.wasMultiple = !!props.multiple;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- } else if (wasMultiple !== !!props.multiple) {
- // For simplicity, reapply `defaultValue` if `multiple` is toggled.
- if (props.defaultValue != null) {
- updateOptions(node, !!props.multiple, props.defaultValue, true);
- } else {
- // Revert the select back to its default unselected state.
- updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
- }
- }
- }
- function restoreControlledState$1(element, props) {
- var node = element;
- var value = props.value;
-
- if (value != null) {
- updateOptions(node, !!props.multiple, value, false);
- }
- }
-
- var didWarnValDefaultVal = false;
-
- /**
- * Implements a <textarea> host component that allows setting `value`, and
- * `defaultValue`. This differs from the traditional DOM API because value is
- * usually set as PCDATA children.
- *
- * If `value` is not supplied (or null/undefined), user actions that affect the
- * value will trigger updates to the element.
- *
- * If `value` is supplied (and not null/undefined), the rendered element will
- * not trigger updates to the element. Instead, the `value` prop must change in
- * order for the rendered element to be updated.
- *
- * The rendered element will be initialized with an empty value, the prop
- * `defaultValue` if specified, or the children content (deprecated).
- */
- function getHostProps$3(element, props) {
- var node = element;
-
- if (!(props.dangerouslySetInnerHTML == null)) {
- {
- throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
- }
- } // Always set children to the same thing. In IE9, the selection range will
- // get reset if `textContent` is mutated. We could add a check in setTextContent
- // to only set the value if/when the value differs from the node value (which would
- // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
- // solution. The value can be a boolean or object so that's why it's forced
- // to be a string.
-
-
- var hostProps = _assign({}, props, {
- value: undefined,
- defaultValue: undefined,
- children: toString(node._wrapperState.initialValue)
- });
-
- return hostProps;
- }
- function initWrapperState$2(element, props) {
- var node = element;
-
- {
- checkControlledValueProps('textarea', props);
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
- error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
-
- didWarnValDefaultVal = true;
- }
- }
-
- var initialValue = props.value; // Only bother fetching default value if we're going to use it
-
- if (initialValue == null) {
- var children = props.children,
- defaultValue = props.defaultValue;
-
- if (children != null) {
- {
- error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
- }
-
- {
- if (!(defaultValue == null)) {
- {
- throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
- }
- }
-
- if (Array.isArray(children)) {
- if (!(children.length <= 1)) {
- {
- throw Error( "<textarea> can only have at most one child." );
- }
- }
-
- children = children[0];
- }
-
- defaultValue = children;
- }
- }
-
- if (defaultValue == null) {
- defaultValue = '';
- }
-
- initialValue = defaultValue;
- }
-
- node._wrapperState = {
- initialValue: getToStringValue(initialValue)
- };
- }
- function updateWrapper$1(element, props) {
- var node = element;
- var value = getToStringValue(props.value);
- var defaultValue = getToStringValue(props.defaultValue);
-
- if (value != null) {
- // Cast `value` to a string to ensure the value is set correctly. While
- // browsers typically do this as necessary, jsdom doesn't.
- var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
-
- if (newValue !== node.value) {
- node.value = newValue;
- }
-
- if (props.defaultValue == null && node.defaultValue !== newValue) {
- node.defaultValue = newValue;
- }
- }
-
- if (defaultValue != null) {
- node.defaultValue = toString(defaultValue);
- }
- }
- function postMountWrapper$3(element, props) {
- var node = element; // This is in postMount because we need access to the DOM node, which is not
- // available until after the component has mounted.
-
- var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
- // initial value. In IE10/IE11 there is a bug where the placeholder attribute
- // will populate textContent as well.
- // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
-
- if (textContent === node._wrapperState.initialValue) {
- if (textContent !== '' && textContent !== null) {
- node.value = textContent;
- }
- }
- }
- function restoreControlledState$2(element, props) {
- // DOM component is still mounted; update
- updateWrapper$1(element, props);
- }
-
- var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
- var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
- var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
- var Namespaces = {
- html: HTML_NAMESPACE,
- mathml: MATH_NAMESPACE,
- svg: SVG_NAMESPACE
- }; // Assumes there is no parent namespace.
-
- function getIntrinsicNamespace(type) {
- switch (type) {
- case 'svg':
- return SVG_NAMESPACE;
-
- case 'math':
- return MATH_NAMESPACE;
-
- default:
- return HTML_NAMESPACE;
- }
- }
- function getChildNamespace(parentNamespace, type) {
- if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
- // No (or default) parent namespace: potential entry point.
- return getIntrinsicNamespace(type);
- }
-
- if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
- // We're leaving SVG.
- return HTML_NAMESPACE;
- } // By default, pass namespace below.
-
-
- return parentNamespace;
- }
-
- /* globals MSApp */
-
- /**
- * Create a function which has 'unsafe' privileges (required by windows8 apps)
- */
- var createMicrosoftUnsafeLocalFunction = function (func) {
- if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
- return function (arg0, arg1, arg2, arg3) {
- MSApp.execUnsafeLocalFunction(function () {
- return func(arg0, arg1, arg2, arg3);
- });
- };
- } else {
- return func;
- }
- };
-
- var reusableSVGContainer;
- /**
- * Set the innerHTML property of a node
- *
- * @param {DOMElement} node
- * @param {string} html
- * @internal
- */
-
- var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
- if (node.namespaceURI === Namespaces.svg) {
-
- if (!('innerHTML' in node)) {
- // IE does not have innerHTML for SVG nodes, so instead we inject the
- // new markup in a temp node and then move the child nodes across into
- // the target node
- reusableSVGContainer = reusableSVGContainer || document.createElement('div');
- reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
- var svgNode = reusableSVGContainer.firstChild;
-
- while (node.firstChild) {
- node.removeChild(node.firstChild);
- }
-
- while (svgNode.firstChild) {
- node.appendChild(svgNode.firstChild);
- }
-
- return;
- }
- }
-
- node.innerHTML = html;
- });
-
- /**
- * HTML nodeType values that represent the type of the node
- */
- var ELEMENT_NODE = 1;
- var TEXT_NODE = 3;
- var COMMENT_NODE = 8;
- var DOCUMENT_NODE = 9;
- var DOCUMENT_FRAGMENT_NODE = 11;
-
- /**
- * Set the textContent property of a node. For text updates, it's faster
- * to set the `nodeValue` of the Text node directly instead of using
- * `.textContent` which will remove the existing node and create a new one.
- *
- * @param {DOMElement} node
- * @param {string} text
- * @internal
- */
-
- var setTextContent = function (node, text) {
- if (text) {
- var firstChild = node.firstChild;
-
- if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
- firstChild.nodeValue = text;
- return;
- }
- }
-
- node.textContent = text;
- };
-
- // List derived from Gecko source code:
- // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
- var shorthandToLonghand = {
- animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
- background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
- backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
- border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
- borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
- borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
- borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
- borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
- borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
- borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
- borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
- borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
- borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
- borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
- borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
- borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
- borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
- columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
- columns: ['columnCount', 'columnWidth'],
- flex: ['flexBasis', 'flexGrow', 'flexShrink'],
- flexFlow: ['flexDirection', 'flexWrap'],
- font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
- fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
- gap: ['columnGap', 'rowGap'],
- grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
- gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
- gridColumn: ['gridColumnEnd', 'gridColumnStart'],
- gridColumnGap: ['columnGap'],
- gridGap: ['columnGap', 'rowGap'],
- gridRow: ['gridRowEnd', 'gridRowStart'],
- gridRowGap: ['rowGap'],
- gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
- listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
- margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
- marker: ['markerEnd', 'markerMid', 'markerStart'],
- mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
- maskPosition: ['maskPositionX', 'maskPositionY'],
- outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
- overflow: ['overflowX', 'overflowY'],
- padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
- placeContent: ['alignContent', 'justifyContent'],
- placeItems: ['alignItems', 'justifyItems'],
- placeSelf: ['alignSelf', 'justifySelf'],
- textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
- textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
- transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
- wordWrap: ['overflowWrap']
- };
-
- /**
- * CSS properties which accept numbers but are not in units of "px".
- */
- var isUnitlessNumber = {
- animationIterationCount: true,
- borderImageOutset: true,
- borderImageSlice: true,
- borderImageWidth: true,
- boxFlex: true,
- boxFlexGroup: true,
- boxOrdinalGroup: true,
- columnCount: true,
- columns: true,
- flex: true,
- flexGrow: true,
- flexPositive: true,
- flexShrink: true,
- flexNegative: true,
- flexOrder: true,
- gridArea: true,
- gridRow: true,
- gridRowEnd: true,
- gridRowSpan: true,
- gridRowStart: true,
- gridColumn: true,
- gridColumnEnd: true,
- gridColumnSpan: true,
- gridColumnStart: true,
- fontWeight: true,
- lineClamp: true,
- lineHeight: true,
- opacity: true,
- order: true,
- orphans: true,
- tabSize: true,
- widows: true,
- zIndex: true,
- zoom: true,
- // SVG-related properties
- fillOpacity: true,
- floodOpacity: true,
- stopOpacity: true,
- strokeDasharray: true,
- strokeDashoffset: true,
- strokeMiterlimit: true,
- strokeOpacity: true,
- strokeWidth: true
- };
- /**
- * @param {string} prefix vendor-specific prefix, eg: Webkit
- * @param {string} key style name, eg: transitionDuration
- * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
- * WebkitTransitionDuration
- */
-
- function prefixKey(prefix, key) {
- return prefix + key.charAt(0).toUpperCase() + key.substring(1);
- }
- /**
- * Support style names that may come passed in prefixed by adding permutations
- * of vendor prefixes.
- */
-
-
- var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
- // infinite loop, because it iterates over the newly added props too.
-
- Object.keys(isUnitlessNumber).forEach(function (prop) {
- prefixes.forEach(function (prefix) {
- isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
- });
- });
-
- /**
- * Convert a value into the proper css writable value. The style name `name`
- * should be logical (no hyphens), as specified
- * in `CSSProperty.isUnitlessNumber`.
- *
- * @param {string} name CSS property name such as `topMargin`.
- * @param {*} value CSS property value such as `10px`.
- * @return {string} Normalized style value with dimensions applied.
- */
-
- function dangerousStyleValue(name, value, isCustomProperty) {
- // Note that we've removed escapeTextForBrowser() calls here since the
- // whole string will be escaped when the attribute is injected into
- // the markup. If you provide unsafe user data here they can inject
- // arbitrary CSS which may be problematic (I couldn't repro this):
- // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
- // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
- // This is not an XSS hole but instead a potential CSS injection issue
- // which has lead to a greater discussion about how we're going to
- // trust URLs moving forward. See #2115901
- var isEmpty = value == null || typeof value === 'boolean' || value === '';
-
- if (isEmpty) {
- return '';
- }
-
- if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
- return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
- }
-
- return ('' + value).trim();
- }
-
- var uppercasePattern = /([A-Z])/g;
- var msPattern = /^ms-/;
- /**
- * Hyphenates a camelcased CSS property name, for example:
- *
- * > hyphenateStyleName('backgroundColor')
- * < "background-color"
- * > hyphenateStyleName('MozTransition')
- * < "-moz-transition"
- * > hyphenateStyleName('msTransition')
- * < "-ms-transition"
- *
- * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
- * is converted to `-ms-`.
- */
-
- function hyphenateStyleName(name) {
- return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
- }
-
- var warnValidStyle = function () {};
-
- {
- // 'msTransform' is correct, but the other prefixes should be capitalized
- var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
- var msPattern$1 = /^-ms-/;
- var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
-
- var badStyleValueWithSemicolonPattern = /;\s*$/;
- var warnedStyleNames = {};
- var warnedStyleValues = {};
- var warnedForNaNValue = false;
- var warnedForInfinityValue = false;
-
- var camelize = function (string) {
- return string.replace(hyphenPattern, function (_, character) {
- return character.toUpperCase();
- });
- };
-
- var warnHyphenatedStyleName = function (name) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
-
- error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
- // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
- // is converted to lowercase `ms`.
- camelize(name.replace(msPattern$1, 'ms-')));
- };
-
- var warnBadVendoredStyleName = function (name) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
-
- error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
- };
-
- var warnStyleValueWithSemicolon = function (name, value) {
- if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
- return;
- }
-
- warnedStyleValues[value] = true;
-
- error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
- };
-
- var warnStyleValueIsNaN = function (name, value) {
- if (warnedForNaNValue) {
- return;
- }
-
- warnedForNaNValue = true;
-
- error('`NaN` is an invalid value for the `%s` css style property.', name);
- };
-
- var warnStyleValueIsInfinity = function (name, value) {
- if (warnedForInfinityValue) {
- return;
- }
-
- warnedForInfinityValue = true;
-
- error('`Infinity` is an invalid value for the `%s` css style property.', name);
- };
-
- warnValidStyle = function (name, value) {
- if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name);
- } else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name);
- } else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value);
- }
-
- if (typeof value === 'number') {
- if (isNaN(value)) {
- warnStyleValueIsNaN(name, value);
- } else if (!isFinite(value)) {
- warnStyleValueIsInfinity(name, value);
- }
- }
- };
- }
-
- var warnValidStyle$1 = warnValidStyle;
-
- /**
- * Operations for dealing with CSS properties.
- */
-
- /**
- * This creates a string that is expected to be equivalent to the style
- * attribute generated by server-side rendering. It by-passes warnings and
- * security checks so it's not safe to use this value for anything other than
- * comparison. It is only used in DEV for SSR validation.
- */
-
- function createDangerousStringForStyles(styles) {
- {
- var serialized = '';
- var delimiter = '';
-
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
-
- var styleValue = styles[styleName];
-
- if (styleValue != null) {
- var isCustomProperty = styleName.indexOf('--') === 0;
- serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
- serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
- delimiter = ';';
- }
- }
-
- return serialized || null;
- }
- }
- /**
- * Sets the value for multiple styles on a node. If a value is specified as
- * '' (empty string), the corresponding style property will be unset.
- *
- * @param {DOMElement} node
- * @param {object} styles
- */
-
- function setValueForStyles(node, styles) {
- var style = node.style;
-
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
-
- var isCustomProperty = styleName.indexOf('--') === 0;
-
- {
- if (!isCustomProperty) {
- warnValidStyle$1(styleName, styles[styleName]);
- }
- }
-
- var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
-
- if (styleName === 'float') {
- styleName = 'cssFloat';
- }
-
- if (isCustomProperty) {
- style.setProperty(styleName, styleValue);
- } else {
- style[styleName] = styleValue;
- }
- }
- }
-
- function isValueEmpty(value) {
- return value == null || typeof value === 'boolean' || value === '';
- }
- /**
- * Given {color: 'red', overflow: 'hidden'} returns {
- * color: 'color',
- * overflowX: 'overflow',
- * overflowY: 'overflow',
- * }. This can be read as "the overflowY property was set by the overflow
- * shorthand". That is, the values are the property that each was derived from.
- */
-
-
- function expandShorthandMap(styles) {
- var expanded = {};
-
- for (var key in styles) {
- var longhands = shorthandToLonghand[key] || [key];
-
- for (var i = 0; i < longhands.length; i++) {
- expanded[longhands[i]] = key;
- }
- }
-
- return expanded;
- }
- /**
- * When mixing shorthand and longhand property names, we warn during updates if
- * we expect an incorrect result to occur. In particular, we warn for:
- *
- * Updating a shorthand property (longhand gets overwritten):
- * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
- * becomes .style.font = 'baz'
- * Removing a shorthand property (longhand gets lost too):
- * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
- * becomes .style.font = ''
- * Removing a longhand property (should revert to shorthand; doesn't):
- * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
- * becomes .style.fontVariant = ''
- */
-
-
- function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
- {
- if (!nextStyles) {
- return;
- }
-
- var expandedUpdates = expandShorthandMap(styleUpdates);
- var expandedStyles = expandShorthandMap(nextStyles);
- var warnedAbout = {};
-
- for (var key in expandedUpdates) {
- var originalKey = expandedUpdates[key];
- var correctOriginalKey = expandedStyles[key];
-
- if (correctOriginalKey && originalKey !== correctOriginalKey) {
- var warningKey = originalKey + ',' + correctOriginalKey;
-
- if (warnedAbout[warningKey]) {
- continue;
- }
-
- warnedAbout[warningKey] = true;
-
- error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
- }
- }
- }
- }
-
- // For HTML, certain tags should omit their close tag. We keep a list for
- // those special-case tags.
- var omittedCloseTags = {
- area: true,
- base: true,
- br: true,
- col: true,
- embed: true,
- hr: true,
- img: true,
- input: true,
- keygen: true,
- link: true,
- meta: true,
- param: true,
- source: true,
- track: true,
- wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
-
- };
-
- // `omittedCloseTags` except that `menuitem` should still have its closing tag.
-
- var voidElementTags = _assign({
- menuitem: true
- }, omittedCloseTags);
-
- var HTML = '__html';
-
- function assertValidProps(tag, props) {
- if (!props) {
- return;
- } // Note the use of `==` which checks for null or undefined.
-
-
- if (voidElementTags[tag]) {
- if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
- {
- throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." );
- }
- }
- }
-
- if (props.dangerouslySetInnerHTML != null) {
- if (!(props.children == null)) {
- {
- throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
- }
- }
-
- if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
- {
- throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." );
- }
- }
- }
-
- {
- if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
- error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
- }
- }
-
- if (!(props.style == null || typeof props.style === 'object')) {
- {
- throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." );
- }
- }
- }
-
- function isCustomComponent(tagName, props) {
- if (tagName.indexOf('-') === -1) {
- return typeof props.is === 'string';
- }
-
- switch (tagName) {
- // These are reserved SVG and MathML elements.
- // We don't mind this list too much because we expect it to never grow.
- // The alternative is to track the namespace in a few places which is convoluted.
- // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
- case 'annotation-xml':
- case 'color-profile':
- case 'font-face':
- case 'font-face-src':
- case 'font-face-uri':
- case 'font-face-format':
- case 'font-face-name':
- case 'missing-glyph':
- return false;
-
- default:
- return true;
- }
- }
-
- // When adding attributes to the HTML or SVG allowed attribute list, be sure to
- // also add them to this module to ensure casing and incorrect name
- // warnings.
- var possibleStandardNames = {
- // HTML
- accept: 'accept',
- acceptcharset: 'acceptCharset',
- 'accept-charset': 'acceptCharset',
- accesskey: 'accessKey',
- action: 'action',
- allowfullscreen: 'allowFullScreen',
- alt: 'alt',
- as: 'as',
- async: 'async',
- autocapitalize: 'autoCapitalize',
- autocomplete: 'autoComplete',
- autocorrect: 'autoCorrect',
- autofocus: 'autoFocus',
- autoplay: 'autoPlay',
- autosave: 'autoSave',
- capture: 'capture',
- cellpadding: 'cellPadding',
- cellspacing: 'cellSpacing',
- challenge: 'challenge',
- charset: 'charSet',
- checked: 'checked',
- children: 'children',
- cite: 'cite',
- class: 'className',
- classid: 'classID',
- classname: 'className',
- cols: 'cols',
- colspan: 'colSpan',
- content: 'content',
- contenteditable: 'contentEditable',
- contextmenu: 'contextMenu',
- controls: 'controls',
- controlslist: 'controlsList',
- coords: 'coords',
- crossorigin: 'crossOrigin',
- dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
- data: 'data',
- datetime: 'dateTime',
- default: 'default',
- defaultchecked: 'defaultChecked',
- defaultvalue: 'defaultValue',
- defer: 'defer',
- dir: 'dir',
- disabled: 'disabled',
- disablepictureinpicture: 'disablePictureInPicture',
- disableremoteplayback: 'disableRemotePlayback',
- download: 'download',
- draggable: 'draggable',
- enctype: 'encType',
- enterkeyhint: 'enterKeyHint',
- for: 'htmlFor',
- form: 'form',
- formmethod: 'formMethod',
- formaction: 'formAction',
- formenctype: 'formEncType',
- formnovalidate: 'formNoValidate',
- formtarget: 'formTarget',
- frameborder: 'frameBorder',
- headers: 'headers',
- height: 'height',
- hidden: 'hidden',
- high: 'high',
- href: 'href',
- hreflang: 'hrefLang',
- htmlfor: 'htmlFor',
- httpequiv: 'httpEquiv',
- 'http-equiv': 'httpEquiv',
- icon: 'icon',
- id: 'id',
- innerhtml: 'innerHTML',
- inputmode: 'inputMode',
- integrity: 'integrity',
- is: 'is',
- itemid: 'itemID',
- itemprop: 'itemProp',
- itemref: 'itemRef',
- itemscope: 'itemScope',
- itemtype: 'itemType',
- keyparams: 'keyParams',
- keytype: 'keyType',
- kind: 'kind',
- label: 'label',
- lang: 'lang',
- list: 'list',
- loop: 'loop',
- low: 'low',
- manifest: 'manifest',
- marginwidth: 'marginWidth',
- marginheight: 'marginHeight',
- max: 'max',
- maxlength: 'maxLength',
- media: 'media',
- mediagroup: 'mediaGroup',
- method: 'method',
- min: 'min',
- minlength: 'minLength',
- multiple: 'multiple',
- muted: 'muted',
- name: 'name',
- nomodule: 'noModule',
- nonce: 'nonce',
- novalidate: 'noValidate',
- open: 'open',
- optimum: 'optimum',
- pattern: 'pattern',
- placeholder: 'placeholder',
- playsinline: 'playsInline',
- poster: 'poster',
- preload: 'preload',
- profile: 'profile',
- radiogroup: 'radioGroup',
- readonly: 'readOnly',
- referrerpolicy: 'referrerPolicy',
- rel: 'rel',
- required: 'required',
- reversed: 'reversed',
- role: 'role',
- rows: 'rows',
- rowspan: 'rowSpan',
- sandbox: 'sandbox',
- scope: 'scope',
- scoped: 'scoped',
- scrolling: 'scrolling',
- seamless: 'seamless',
- selected: 'selected',
- shape: 'shape',
- size: 'size',
- sizes: 'sizes',
- span: 'span',
- spellcheck: 'spellCheck',
- src: 'src',
- srcdoc: 'srcDoc',
- srclang: 'srcLang',
- srcset: 'srcSet',
- start: 'start',
- step: 'step',
- style: 'style',
- summary: 'summary',
- tabindex: 'tabIndex',
- target: 'target',
- title: 'title',
- type: 'type',
- usemap: 'useMap',
- value: 'value',
- width: 'width',
- wmode: 'wmode',
- wrap: 'wrap',
- // SVG
- about: 'about',
- accentheight: 'accentHeight',
- 'accent-height': 'accentHeight',
- accumulate: 'accumulate',
- additive: 'additive',
- alignmentbaseline: 'alignmentBaseline',
- 'alignment-baseline': 'alignmentBaseline',
- allowreorder: 'allowReorder',
- alphabetic: 'alphabetic',
- amplitude: 'amplitude',
- arabicform: 'arabicForm',
- 'arabic-form': 'arabicForm',
- ascent: 'ascent',
- attributename: 'attributeName',
- attributetype: 'attributeType',
- autoreverse: 'autoReverse',
- azimuth: 'azimuth',
- basefrequency: 'baseFrequency',
- baselineshift: 'baselineShift',
- 'baseline-shift': 'baselineShift',
- baseprofile: 'baseProfile',
- bbox: 'bbox',
- begin: 'begin',
- bias: 'bias',
- by: 'by',
- calcmode: 'calcMode',
- capheight: 'capHeight',
- 'cap-height': 'capHeight',
- clip: 'clip',
- clippath: 'clipPath',
- 'clip-path': 'clipPath',
- clippathunits: 'clipPathUnits',
- cliprule: 'clipRule',
- 'clip-rule': 'clipRule',
- color: 'color',
- colorinterpolation: 'colorInterpolation',
- 'color-interpolation': 'colorInterpolation',
- colorinterpolationfilters: 'colorInterpolationFilters',
- 'color-interpolation-filters': 'colorInterpolationFilters',
- colorprofile: 'colorProfile',
- 'color-profile': 'colorProfile',
- colorrendering: 'colorRendering',
- 'color-rendering': 'colorRendering',
- contentscripttype: 'contentScriptType',
- contentstyletype: 'contentStyleType',
- cursor: 'cursor',
- cx: 'cx',
- cy: 'cy',
- d: 'd',
- datatype: 'datatype',
- decelerate: 'decelerate',
- descent: 'descent',
- diffuseconstant: 'diffuseConstant',
- direction: 'direction',
- display: 'display',
- divisor: 'divisor',
- dominantbaseline: 'dominantBaseline',
- 'dominant-baseline': 'dominantBaseline',
- dur: 'dur',
- dx: 'dx',
- dy: 'dy',
- edgemode: 'edgeMode',
- elevation: 'elevation',
- enablebackground: 'enableBackground',
- 'enable-background': 'enableBackground',
- end: 'end',
- exponent: 'exponent',
- externalresourcesrequired: 'externalResourcesRequired',
- fill: 'fill',
- fillopacity: 'fillOpacity',
- 'fill-opacity': 'fillOpacity',
- fillrule: 'fillRule',
- 'fill-rule': 'fillRule',
- filter: 'filter',
- filterres: 'filterRes',
- filterunits: 'filterUnits',
- floodopacity: 'floodOpacity',
- 'flood-opacity': 'floodOpacity',
- floodcolor: 'floodColor',
- 'flood-color': 'floodColor',
- focusable: 'focusable',
- fontfamily: 'fontFamily',
- 'font-family': 'fontFamily',
- fontsize: 'fontSize',
- 'font-size': 'fontSize',
- fontsizeadjust: 'fontSizeAdjust',
- 'font-size-adjust': 'fontSizeAdjust',
- fontstretch: 'fontStretch',
- 'font-stretch': 'fontStretch',
- fontstyle: 'fontStyle',
- 'font-style': 'fontStyle',
- fontvariant: 'fontVariant',
- 'font-variant': 'fontVariant',
- fontweight: 'fontWeight',
- 'font-weight': 'fontWeight',
- format: 'format',
- from: 'from',
- fx: 'fx',
- fy: 'fy',
- g1: 'g1',
- g2: 'g2',
- glyphname: 'glyphName',
- 'glyph-name': 'glyphName',
- glyphorientationhorizontal: 'glyphOrientationHorizontal',
- 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
- glyphorientationvertical: 'glyphOrientationVertical',
- 'glyph-orientation-vertical': 'glyphOrientationVertical',
- glyphref: 'glyphRef',
- gradienttransform: 'gradientTransform',
- gradientunits: 'gradientUnits',
- hanging: 'hanging',
- horizadvx: 'horizAdvX',
- 'horiz-adv-x': 'horizAdvX',
- horizoriginx: 'horizOriginX',
- 'horiz-origin-x': 'horizOriginX',
- ideographic: 'ideographic',
- imagerendering: 'imageRendering',
- 'image-rendering': 'imageRendering',
- in2: 'in2',
- in: 'in',
- inlist: 'inlist',
- intercept: 'intercept',
- k1: 'k1',
- k2: 'k2',
- k3: 'k3',
- k4: 'k4',
- k: 'k',
- kernelmatrix: 'kernelMatrix',
- kernelunitlength: 'kernelUnitLength',
- kerning: 'kerning',
- keypoints: 'keyPoints',
- keysplines: 'keySplines',
- keytimes: 'keyTimes',
- lengthadjust: 'lengthAdjust',
- letterspacing: 'letterSpacing',
- 'letter-spacing': 'letterSpacing',
- lightingcolor: 'lightingColor',
- 'lighting-color': 'lightingColor',
- limitingconeangle: 'limitingConeAngle',
- local: 'local',
- markerend: 'markerEnd',
- 'marker-end': 'markerEnd',
- markerheight: 'markerHeight',
- markermid: 'markerMid',
- 'marker-mid': 'markerMid',
- markerstart: 'markerStart',
- 'marker-start': 'markerStart',
- markerunits: 'markerUnits',
- markerwidth: 'markerWidth',
- mask: 'mask',
- maskcontentunits: 'maskContentUnits',
- maskunits: 'maskUnits',
- mathematical: 'mathematical',
- mode: 'mode',
- numoctaves: 'numOctaves',
- offset: 'offset',
- opacity: 'opacity',
- operator: 'operator',
- order: 'order',
- orient: 'orient',
- orientation: 'orientation',
- origin: 'origin',
- overflow: 'overflow',
- overlineposition: 'overlinePosition',
- 'overline-position': 'overlinePosition',
- overlinethickness: 'overlineThickness',
- 'overline-thickness': 'overlineThickness',
- paintorder: 'paintOrder',
- 'paint-order': 'paintOrder',
- panose1: 'panose1',
- 'panose-1': 'panose1',
- pathlength: 'pathLength',
- patterncontentunits: 'patternContentUnits',
- patterntransform: 'patternTransform',
- patternunits: 'patternUnits',
- pointerevents: 'pointerEvents',
- 'pointer-events': 'pointerEvents',
- points: 'points',
- pointsatx: 'pointsAtX',
- pointsaty: 'pointsAtY',
- pointsatz: 'pointsAtZ',
- prefix: 'prefix',
- preservealpha: 'preserveAlpha',
- preserveaspectratio: 'preserveAspectRatio',
- primitiveunits: 'primitiveUnits',
- property: 'property',
- r: 'r',
- radius: 'radius',
- refx: 'refX',
- refy: 'refY',
- renderingintent: 'renderingIntent',
- 'rendering-intent': 'renderingIntent',
- repeatcount: 'repeatCount',
- repeatdur: 'repeatDur',
- requiredextensions: 'requiredExtensions',
- requiredfeatures: 'requiredFeatures',
- resource: 'resource',
- restart: 'restart',
- result: 'result',
- results: 'results',
- rotate: 'rotate',
- rx: 'rx',
- ry: 'ry',
- scale: 'scale',
- security: 'security',
- seed: 'seed',
- shaperendering: 'shapeRendering',
- 'shape-rendering': 'shapeRendering',
- slope: 'slope',
- spacing: 'spacing',
- specularconstant: 'specularConstant',
- specularexponent: 'specularExponent',
- speed: 'speed',
- spreadmethod: 'spreadMethod',
- startoffset: 'startOffset',
- stddeviation: 'stdDeviation',
- stemh: 'stemh',
- stemv: 'stemv',
- stitchtiles: 'stitchTiles',
- stopcolor: 'stopColor',
- 'stop-color': 'stopColor',
- stopopacity: 'stopOpacity',
- 'stop-opacity': 'stopOpacity',
- strikethroughposition: 'strikethroughPosition',
- 'strikethrough-position': 'strikethroughPosition',
- strikethroughthickness: 'strikethroughThickness',
- 'strikethrough-thickness': 'strikethroughThickness',
- string: 'string',
- stroke: 'stroke',
- strokedasharray: 'strokeDasharray',
- 'stroke-dasharray': 'strokeDasharray',
- strokedashoffset: 'strokeDashoffset',
- 'stroke-dashoffset': 'strokeDashoffset',
- strokelinecap: 'strokeLinecap',
- 'stroke-linecap': 'strokeLinecap',
- strokelinejoin: 'strokeLinejoin',
- 'stroke-linejoin': 'strokeLinejoin',
- strokemiterlimit: 'strokeMiterlimit',
- 'stroke-miterlimit': 'strokeMiterlimit',
- strokewidth: 'strokeWidth',
- 'stroke-width': 'strokeWidth',
- strokeopacity: 'strokeOpacity',
- 'stroke-opacity': 'strokeOpacity',
- suppresscontenteditablewarning: 'suppressContentEditableWarning',
- suppresshydrationwarning: 'suppressHydrationWarning',
- surfacescale: 'surfaceScale',
- systemlanguage: 'systemLanguage',
- tablevalues: 'tableValues',
- targetx: 'targetX',
- targety: 'targetY',
- textanchor: 'textAnchor',
- 'text-anchor': 'textAnchor',
- textdecoration: 'textDecoration',
- 'text-decoration': 'textDecoration',
- textlength: 'textLength',
- textrendering: 'textRendering',
- 'text-rendering': 'textRendering',
- to: 'to',
- transform: 'transform',
- typeof: 'typeof',
- u1: 'u1',
- u2: 'u2',
- underlineposition: 'underlinePosition',
- 'underline-position': 'underlinePosition',
- underlinethickness: 'underlineThickness',
- 'underline-thickness': 'underlineThickness',
- unicode: 'unicode',
- unicodebidi: 'unicodeBidi',
- 'unicode-bidi': 'unicodeBidi',
- unicoderange: 'unicodeRange',
- 'unicode-range': 'unicodeRange',
- unitsperem: 'unitsPerEm',
- 'units-per-em': 'unitsPerEm',
- unselectable: 'unselectable',
- valphabetic: 'vAlphabetic',
- 'v-alphabetic': 'vAlphabetic',
- values: 'values',
- vectoreffect: 'vectorEffect',
- 'vector-effect': 'vectorEffect',
- version: 'version',
- vertadvy: 'vertAdvY',
- 'vert-adv-y': 'vertAdvY',
- vertoriginx: 'vertOriginX',
- 'vert-origin-x': 'vertOriginX',
- vertoriginy: 'vertOriginY',
- 'vert-origin-y': 'vertOriginY',
- vhanging: 'vHanging',
- 'v-hanging': 'vHanging',
- videographic: 'vIdeographic',
- 'v-ideographic': 'vIdeographic',
- viewbox: 'viewBox',
- viewtarget: 'viewTarget',
- visibility: 'visibility',
- vmathematical: 'vMathematical',
- 'v-mathematical': 'vMathematical',
- vocab: 'vocab',
- widths: 'widths',
- wordspacing: 'wordSpacing',
- 'word-spacing': 'wordSpacing',
- writingmode: 'writingMode',
- 'writing-mode': 'writingMode',
- x1: 'x1',
- x2: 'x2',
- x: 'x',
- xchannelselector: 'xChannelSelector',
- xheight: 'xHeight',
- 'x-height': 'xHeight',
- xlinkactuate: 'xlinkActuate',
- 'xlink:actuate': 'xlinkActuate',
- xlinkarcrole: 'xlinkArcrole',
- 'xlink:arcrole': 'xlinkArcrole',
- xlinkhref: 'xlinkHref',
- 'xlink:href': 'xlinkHref',
- xlinkrole: 'xlinkRole',
- 'xlink:role': 'xlinkRole',
- xlinkshow: 'xlinkShow',
- 'xlink:show': 'xlinkShow',
- xlinktitle: 'xlinkTitle',
- 'xlink:title': 'xlinkTitle',
- xlinktype: 'xlinkType',
- 'xlink:type': 'xlinkType',
- xmlbase: 'xmlBase',
- 'xml:base': 'xmlBase',
- xmllang: 'xmlLang',
- 'xml:lang': 'xmlLang',
- xmlns: 'xmlns',
- 'xml:space': 'xmlSpace',
- xmlnsxlink: 'xmlnsXlink',
- 'xmlns:xlink': 'xmlnsXlink',
- xmlspace: 'xmlSpace',
- y1: 'y1',
- y2: 'y2',
- y: 'y',
- ychannelselector: 'yChannelSelector',
- z: 'z',
- zoomandpan: 'zoomAndPan'
- };
-
- var ariaProperties = {
- 'aria-current': 0,
- // state
- 'aria-details': 0,
- 'aria-disabled': 0,
- // state
- 'aria-hidden': 0,
- // state
- 'aria-invalid': 0,
- // state
- 'aria-keyshortcuts': 0,
- 'aria-label': 0,
- 'aria-roledescription': 0,
- // Widget Attributes
- 'aria-autocomplete': 0,
- 'aria-checked': 0,
- 'aria-expanded': 0,
- 'aria-haspopup': 0,
- 'aria-level': 0,
- 'aria-modal': 0,
- 'aria-multiline': 0,
- 'aria-multiselectable': 0,
- 'aria-orientation': 0,
- 'aria-placeholder': 0,
- 'aria-pressed': 0,
- 'aria-readonly': 0,
- 'aria-required': 0,
- 'aria-selected': 0,
- 'aria-sort': 0,
- 'aria-valuemax': 0,
- 'aria-valuemin': 0,
- 'aria-valuenow': 0,
- 'aria-valuetext': 0,
- // Live Region Attributes
- 'aria-atomic': 0,
- 'aria-busy': 0,
- 'aria-live': 0,
- 'aria-relevant': 0,
- // Drag-and-Drop Attributes
- 'aria-dropeffect': 0,
- 'aria-grabbed': 0,
- // Relationship Attributes
- 'aria-activedescendant': 0,
- 'aria-colcount': 0,
- 'aria-colindex': 0,
- 'aria-colspan': 0,
- 'aria-controls': 0,
- 'aria-describedby': 0,
- 'aria-errormessage': 0,
- 'aria-flowto': 0,
- 'aria-labelledby': 0,
- 'aria-owns': 0,
- 'aria-posinset': 0,
- 'aria-rowcount': 0,
- 'aria-rowindex': 0,
- 'aria-rowspan': 0,
- 'aria-setsize': 0
- };
-
- var warnedProperties = {};
- var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
- var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
-
- function validateProperty(tagName, name) {
- {
- if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
- return true;
- }
-
- if (rARIACamel.test(name)) {
- var ariaName = 'aria-' + name.slice(4).toLowerCase();
- var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
- // DOM properties, then it is an invalid aria-* attribute.
-
- if (correctName == null) {
- error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
-
- warnedProperties[name] = true;
- return true;
- } // aria-* attributes should be lowercase; suggest the lowercase version.
-
-
- if (name !== correctName) {
- error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
-
- warnedProperties[name] = true;
- return true;
- }
- }
-
- if (rARIA.test(name)) {
- var lowerCasedName = name.toLowerCase();
- var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
- // DOM properties, then it is an invalid aria-* attribute.
-
- if (standardName == null) {
- warnedProperties[name] = true;
- return false;
- } // aria-* attributes should be lowercase; suggest the lowercase version.
-
-
- if (name !== standardName) {
- error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
-
- warnedProperties[name] = true;
- return true;
- }
- }
- }
-
- return true;
- }
-
- function warnInvalidARIAProps(type, props) {
- {
- var invalidProps = [];
-
- for (var key in props) {
- var isValid = validateProperty(type, key);
-
- if (!isValid) {
- invalidProps.push(key);
- }
- }
-
- var unknownPropString = invalidProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (invalidProps.length === 1) {
- error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
- } else if (invalidProps.length > 1) {
- error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
- }
- }
- }
-
- function validateProperties(type, props) {
- if (isCustomComponent(type, props)) {
- return;
- }
-
- warnInvalidARIAProps(type, props);
- }
-
- var didWarnValueNull = false;
- function validateProperties$1(type, props) {
- {
- if (type !== 'input' && type !== 'textarea' && type !== 'select') {
- return;
- }
-
- if (props != null && props.value === null && !didWarnValueNull) {
- didWarnValueNull = true;
-
- if (type === 'select' && props.multiple) {
- error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
- } else {
- error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
- }
- }
- }
- }
-
- var validateProperty$1 = function () {};
-
- {
- var warnedProperties$1 = {};
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
- var EVENT_NAME_REGEX = /^on./;
- var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
- var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
- var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
-
- validateProperty$1 = function (tagName, name, value, eventRegistry) {
- if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
- return true;
- }
-
- var lowerCasedName = name.toLowerCase();
-
- if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
- error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
-
- warnedProperties$1[name] = true;
- return true;
- } // We can't rely on the event system being injected on the server.
-
-
- if (eventRegistry != null) {
- var registrationNameDependencies = eventRegistry.registrationNameDependencies,
- possibleRegistrationNames = eventRegistry.possibleRegistrationNames;
-
- if (registrationNameDependencies.hasOwnProperty(name)) {
- return true;
- }
-
- var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
-
- if (registrationName != null) {
- error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (EVENT_NAME_REGEX.test(name)) {
- error('Unknown event handler property `%s`. It will be ignored.', name);
-
- warnedProperties$1[name] = true;
- return true;
- }
- } else if (EVENT_NAME_REGEX.test(name)) {
- // If no event plugins have been injected, we are in a server environment.
- // So we can't tell if the event name is correct for sure, but we can filter
- // out known bad ones like `onclick`. We can't suggest a specific replacement though.
- if (INVALID_EVENT_NAME_REGEX.test(name)) {
- error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
- }
-
- warnedProperties$1[name] = true;
- return true;
- } // Let the ARIA attribute hook validate ARIA attributes
-
-
- if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
- return true;
- }
-
- if (lowerCasedName === 'innerhtml') {
- error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (lowerCasedName === 'aria') {
- error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
- error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (typeof value === 'number' && isNaN(value)) {
- error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- var propertyInfo = getPropertyInfo(name);
- var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
-
- if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
- var standardName = possibleStandardNames[lowerCasedName];
-
- if (standardName !== name) {
- error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
-
- warnedProperties$1[name] = true;
- return true;
- }
- } else if (!isReserved && name !== lowerCasedName) {
- // Unknown attributes should have lowercase casing since that's how they
- // will be cased anyway with server rendering.
- error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
- if (value) {
- error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
- } else {
- error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
- }
-
- warnedProperties$1[name] = true;
- return true;
- } // Now that we've validated casing, do not validate
- // data types for reserved props
-
-
- if (isReserved) {
- return true;
- } // Warn when a known attribute is a bad type
-
-
- if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
- warnedProperties$1[name] = true;
- return false;
- } // Warn when passing the strings 'false' or 'true' into a boolean prop
-
-
- if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
- error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
-
- warnedProperties$1[name] = true;
- return true;
- }
-
- return true;
- };
- }
-
- var warnUnknownProperties = function (type, props, eventRegistry) {
- {
- var unknownProps = [];
-
- for (var key in props) {
- var isValid = validateProperty$1(type, key, props[key], eventRegistry);
-
- if (!isValid) {
- unknownProps.push(key);
- }
- }
-
- var unknownPropString = unknownProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (unknownProps.length === 1) {
- error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
- } else if (unknownProps.length > 1) {
- error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
- }
- }
- };
-
- function validateProperties$2(type, props, eventRegistry) {
- if (isCustomComponent(type, props)) {
- return;
- }
-
- warnUnknownProperties(type, props, eventRegistry);
- }
-
- var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
- var IS_NON_DELEGATED = 1 << 1;
- var IS_CAPTURE_PHASE = 1 << 2;
- var IS_REPLAYED = 1 << 4;
- // set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
- // we call willDeferLaterForLegacyFBSupport, thus not bailing out
- // will result in endless cycles like an infinite loop.
- // We also don't want to defer during event replaying.
-
- var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;
-
- /**
- * Gets the target node from a native browser event by accounting for
- * inconsistencies in browser DOM APIs.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {DOMEventTarget} Target node.
- */
-
- function getEventTarget(nativeEvent) {
- // Fallback to nativeEvent.srcElement for IE9
- // https://github.com/facebook/react/issues/12506
- var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
-
- if (target.correspondingUseElement) {
- target = target.correspondingUseElement;
- } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
- // @see http://www.quirksmode.org/js/events_properties.html
-
-
- return target.nodeType === TEXT_NODE ? target.parentNode : target;
- }
-
- var restoreImpl = null;
- var restoreTarget = null;
- var restoreQueue = null;
-
- function restoreStateOfTarget(target) {
- // We perform this translation at the end of the event loop so that we
- // always receive the correct fiber here
- var internalInstance = getInstanceFromNode(target);
-
- if (!internalInstance) {
- // Unmounted
- return;
- }
-
- if (!(typeof restoreImpl === 'function')) {
- {
- throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
-
- if (stateNode) {
- var _props = getFiberCurrentPropsFromNode(stateNode);
-
- restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
- }
- }
-
- function setRestoreImplementation(impl) {
- restoreImpl = impl;
- }
- function enqueueStateRestore(target) {
- if (restoreTarget) {
- if (restoreQueue) {
- restoreQueue.push(target);
- } else {
- restoreQueue = [target];
- }
- } else {
- restoreTarget = target;
- }
- }
- function needsStateRestore() {
- return restoreTarget !== null || restoreQueue !== null;
- }
- function restoreStateIfNeeded() {
- if (!restoreTarget) {
- return;
- }
-
- var target = restoreTarget;
- var queuedTargets = restoreQueue;
- restoreTarget = null;
- restoreQueue = null;
- restoreStateOfTarget(target);
-
- if (queuedTargets) {
- for (var i = 0; i < queuedTargets.length; i++) {
- restoreStateOfTarget(queuedTargets[i]);
- }
- }
- }
-
- // the renderer. Such as when we're dispatching events or if third party
- // libraries need to call batchedUpdates. Eventually, this API will go away when
- // everything is batched by default. We'll then have a similar API to opt-out of
- // scheduled work and instead do synchronous work.
- // Defaults
-
- var batchedUpdatesImpl = function (fn, bookkeeping) {
- return fn(bookkeeping);
- };
-
- var discreteUpdatesImpl = function (fn, a, b, c, d) {
- return fn(a, b, c, d);
- };
-
- var flushDiscreteUpdatesImpl = function () {};
-
- var batchedEventUpdatesImpl = batchedUpdatesImpl;
- var isInsideEventHandler = false;
- var isBatchingEventUpdates = false;
-
- function finishEventHandler() {
- // Here we wait until all updates have propagated, which is important
- // when using controlled components within layers:
- // https://github.com/facebook/react/issues/1698
- // Then we restore state of any controlled component.
- var controlledComponentsHavePendingUpdates = needsStateRestore();
-
- if (controlledComponentsHavePendingUpdates) {
- // If a controlled event was fired, we may need to restore the state of
- // the DOM node back to the controlled value. This is necessary when React
- // bails out of the update without touching the DOM.
- flushDiscreteUpdatesImpl();
- restoreStateIfNeeded();
- }
- }
-
- function batchedUpdates(fn, bookkeeping) {
- if (isInsideEventHandler) {
- // If we are currently inside another batch, we need to wait until it
- // fully completes before restoring state.
- return fn(bookkeeping);
- }
-
- isInsideEventHandler = true;
-
- try {
- return batchedUpdatesImpl(fn, bookkeeping);
- } finally {
- isInsideEventHandler = false;
- finishEventHandler();
- }
- }
- function batchedEventUpdates(fn, a, b) {
- if (isBatchingEventUpdates) {
- // If we are currently inside another batch, we need to wait until it
- // fully completes before restoring state.
- return fn(a, b);
- }
-
- isBatchingEventUpdates = true;
-
- try {
- return batchedEventUpdatesImpl(fn, a, b);
- } finally {
- isBatchingEventUpdates = false;
- finishEventHandler();
- }
- }
- function discreteUpdates(fn, a, b, c, d) {
- var prevIsInsideEventHandler = isInsideEventHandler;
- isInsideEventHandler = true;
-
- try {
- return discreteUpdatesImpl(fn, a, b, c, d);
- } finally {
- isInsideEventHandler = prevIsInsideEventHandler;
-
- if (!isInsideEventHandler) {
- finishEventHandler();
- }
- }
- }
- function flushDiscreteUpdatesIfNeeded(timeStamp) {
- {
- if (!isInsideEventHandler) {
- flushDiscreteUpdatesImpl();
- }
- }
- }
- function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
- batchedUpdatesImpl = _batchedUpdatesImpl;
- discreteUpdatesImpl = _discreteUpdatesImpl;
- flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
- batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
- }
-
- function isInteractive(tag) {
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
- }
-
- function shouldPreventMouseEvent(name, type, props) {
- switch (name) {
- case 'onClick':
- case 'onClickCapture':
- case 'onDoubleClick':
- case 'onDoubleClickCapture':
- case 'onMouseDown':
- case 'onMouseDownCapture':
- case 'onMouseMove':
- case 'onMouseMoveCapture':
- case 'onMouseUp':
- case 'onMouseUpCapture':
- case 'onMouseEnter':
- return !!(props.disabled && isInteractive(type));
-
- default:
- return false;
- }
- }
- /**
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @return {?function} The stored callback.
- */
-
-
- function getListener(inst, registrationName) {
- var stateNode = inst.stateNode;
-
- if (stateNode === null) {
- // Work in progress (ex: onload events in incremental mode).
- return null;
- }
-
- var props = getFiberCurrentPropsFromNode(stateNode);
-
- if (props === null) {
- // Work in progress.
- return null;
- }
-
- var listener = props[registrationName];
-
- if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
- return null;
- }
-
- if (!(!listener || typeof listener === 'function')) {
- {
- throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
- }
- }
-
- return listener;
- }
-
- var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners
- // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
-
- if (canUseDOM) {
- try {
- var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value
-
- Object.defineProperty(options, 'passive', {
- get: function () {
- passiveBrowserEventsSupported = true;
- }
- });
- window.addEventListener('test', options, options);
- window.removeEventListener('test', options, options);
- } catch (e) {
- passiveBrowserEventsSupported = false;
- }
- }
-
- function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
- var funcArgs = Array.prototype.slice.call(arguments, 3);
-
- try {
- func.apply(context, funcArgs);
- } catch (error) {
- this.onError(error);
- }
- }
-
- var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
-
- {
- // In DEV mode, we swap out invokeGuardedCallback for a special version
- // that plays more nicely with the browser's DevTools. The idea is to preserve
- // "Pause on exceptions" behavior. Because React wraps all user-provided
- // functions in invokeGuardedCallback, and the production version of
- // invokeGuardedCallback uses a try-catch, all user exceptions are treated
- // like caught exceptions, and the DevTools won't pause unless the developer
- // takes the extra step of enabling pause on caught exceptions. This is
- // unintuitive, though, because even though React has caught the error, from
- // the developer's perspective, the error is uncaught.
- //
- // To preserve the expected "Pause on exceptions" behavior, we don't use a
- // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
- // DOM node, and call the user-provided callback from inside an event handler
- // for that fake event. If the callback throws, the error is "captured" using
- // a global event handler. But because the error happens in a different
- // event loop context, it does not interrupt the normal program flow.
- // Effectively, this gives us try-catch behavior without actually using
- // try-catch. Neat!
- // Check that the browser supports the APIs we need to implement our special
- // DEV version of invokeGuardedCallback
- if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
- var fakeNode = document.createElement('react');
-
- invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {
- // If document doesn't exist we know for sure we will crash in this method
- // when we call document.createEvent(). However this can cause confusing
- // errors: https://github.com/facebookincubator/create-react-app/issues/3482
- // So we preemptively throw with a better message instead.
- if (!(typeof document !== 'undefined')) {
- {
- throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." );
- }
- }
-
- var evt = document.createEvent('Event');
- var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
- // set this to true at the beginning, then set it to false right after
- // calling the function. If the function errors, `didError` will never be
- // set to false. This strategy works even if the browser is flaky and
- // fails to call our global error handler, because it doesn't rely on
- // the error event at all.
-
- var didError = true; // Keeps track of the value of window.event so that we can reset it
- // during the callback to let user code access window.event in the
- // browsers that support it.
-
- var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
- // dispatching: https://github.com/facebook/react/issues/13688
-
- var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
-
- function restoreAfterDispatch() {
- // We immediately remove the callback from event listeners so that
- // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
- // nested call would trigger the fake event handlers of any call higher
- // in the stack.
- fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
- // window.event assignment in both IE <= 10 as they throw an error
- // "Member not found" in strict mode, and in Firefox which does not
- // support window.event.
-
- if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
- window.event = windowEvent;
- }
- } // Create an event handler for our fake event. We will synchronously
- // dispatch our fake event using `dispatchEvent`. Inside the handler, we
- // call the user-provided callback.
-
-
- var funcArgs = Array.prototype.slice.call(arguments, 3);
-
- function callCallback() {
- didCall = true;
- restoreAfterDispatch();
- func.apply(context, funcArgs);
- didError = false;
- } // Create a global error event handler. We use this to capture the value
- // that was thrown. It's possible that this error handler will fire more
- // than once; for example, if non-React code also calls `dispatchEvent`
- // and a handler for that event throws. We should be resilient to most of
- // those cases. Even if our error event handler fires more than once, the
- // last error event is always used. If the callback actually does error,
- // we know that the last error event is the correct one, because it's not
- // possible for anything else to have happened in between our callback
- // erroring and the code that follows the `dispatchEvent` call below. If
- // the callback doesn't error, but the error event was fired, we know to
- // ignore it because `didError` will be false, as described above.
-
-
- var error; // Use this to track whether the error event is ever called.
-
- var didSetError = false;
- var isCrossOriginError = false;
-
- function handleWindowError(event) {
- error = event.error;
- didSetError = true;
-
- if (error === null && event.colno === 0 && event.lineno === 0) {
- isCrossOriginError = true;
- }
-
- if (event.defaultPrevented) {
- // Some other error handler has prevented default.
- // Browsers silence the error report if this happens.
- // We'll remember this to later decide whether to log it or not.
- if (error != null && typeof error === 'object') {
- try {
- error._suppressLogging = true;
- } catch (inner) {// Ignore.
- }
- }
- }
- } // Create a fake event type.
-
-
- var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
-
- window.addEventListener('error', handleWindowError);
- fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
- // errors, it will trigger our global error handler.
-
- evt.initEvent(evtType, false, false);
- fakeNode.dispatchEvent(evt);
-
- if (windowEventDescriptor) {
- Object.defineProperty(window, 'event', windowEventDescriptor);
- }
-
- if (didCall && didError) {
- if (!didSetError) {
- // The callback errored, but the error event never fired.
- error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
- } else if (isCrossOriginError) {
- error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');
- }
-
- this.onError(error);
- } // Remove our event listeners
-
-
- window.removeEventListener('error', handleWindowError);
-
- if (!didCall) {
- // Something went really wrong, and our event was not dispatched.
- // https://github.com/facebook/react/issues/16734
- // https://github.com/facebook/react/issues/16585
- // Fall back to the production implementation.
- restoreAfterDispatch();
- return invokeGuardedCallbackProd.apply(this, arguments);
- }
- };
- }
- }
-
- var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
-
- var hasError = false;
- var caughtError = null; // Used by event system to capture/rethrow the first error.
-
- var hasRethrowError = false;
- var rethrowError = null;
- var reporter = {
- onError: function (error) {
- hasError = true;
- caughtError = error;
- }
- };
- /**
- * Call a function while guarding against errors that happens within it.
- * Returns an error if it throws, otherwise null.
- *
- * In production, this is implemented using a try-catch. The reason we don't
- * use a try-catch directly is so that we can swap out a different
- * implementation in DEV mode.
- *
- * @param {String} name of the guard to use for logging or debugging
- * @param {Function} func The function to invoke
- * @param {*} context The context to use when calling the function
- * @param {...*} args Arguments for function
- */
-
- function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
- hasError = false;
- caughtError = null;
- invokeGuardedCallbackImpl$1.apply(reporter, arguments);
- }
- /**
- * Same as invokeGuardedCallback, but instead of returning an error, it stores
- * it in a global so it can be rethrown by `rethrowCaughtError` later.
- * TODO: See if caughtError and rethrowError can be unified.
- *
- * @param {String} name of the guard to use for logging or debugging
- * @param {Function} func The function to invoke
- * @param {*} context The context to use when calling the function
- * @param {...*} args Arguments for function
- */
-
- function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
- invokeGuardedCallback.apply(this, arguments);
-
- if (hasError) {
- var error = clearCaughtError();
-
- if (!hasRethrowError) {
- hasRethrowError = true;
- rethrowError = error;
- }
- }
- }
- /**
- * During execution of guarded functions we will capture the first error which
- * we will rethrow to be handled by the top level error handler.
- */
-
- function rethrowCaughtError() {
- if (hasRethrowError) {
- var error = rethrowError;
- hasRethrowError = false;
- rethrowError = null;
- throw error;
- }
- }
- function hasCaughtError() {
- return hasError;
- }
- function clearCaughtError() {
- if (hasError) {
- var error = caughtError;
- hasError = false;
- caughtError = null;
- return error;
- } else {
- {
- {
- throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
- }
-
- var ReactInternals$1 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
- var _ReactInternals$Sched = ReactInternals$1.Scheduler,
- unstable_cancelCallback = _ReactInternals$Sched.unstable_cancelCallback,
- unstable_now = _ReactInternals$Sched.unstable_now,
- unstable_scheduleCallback = _ReactInternals$Sched.unstable_scheduleCallback,
- unstable_shouldYield = _ReactInternals$Sched.unstable_shouldYield,
- unstable_requestPaint = _ReactInternals$Sched.unstable_requestPaint,
- unstable_getFirstCallbackNode = _ReactInternals$Sched.unstable_getFirstCallbackNode,
- unstable_runWithPriority = _ReactInternals$Sched.unstable_runWithPriority,
- unstable_next = _ReactInternals$Sched.unstable_next,
- unstable_continueExecution = _ReactInternals$Sched.unstable_continueExecution,
- unstable_pauseExecution = _ReactInternals$Sched.unstable_pauseExecution,
- unstable_getCurrentPriorityLevel = _ReactInternals$Sched.unstable_getCurrentPriorityLevel,
- unstable_ImmediatePriority = _ReactInternals$Sched.unstable_ImmediatePriority,
- unstable_UserBlockingPriority = _ReactInternals$Sched.unstable_UserBlockingPriority,
- unstable_NormalPriority = _ReactInternals$Sched.unstable_NormalPriority,
- unstable_LowPriority = _ReactInternals$Sched.unstable_LowPriority,
- unstable_IdlePriority = _ReactInternals$Sched.unstable_IdlePriority,
- unstable_forceFrameRate = _ReactInternals$Sched.unstable_forceFrameRate,
- unstable_flushAllWithoutAsserting = _ReactInternals$Sched.unstable_flushAllWithoutAsserting;
-
- /**
- * `ReactInstanceMap` maintains a mapping from a public facing stateful
- * instance (key) and the internal representation (value). This allows public
- * methods to accept the user facing instance as an argument and map them back
- * to internal methods.
- *
- * Note that this module is currently shared and assumed to be stateless.
- * If this becomes an actual Map, that will break.
- */
- function get(key) {
- return key._reactInternals;
- }
- function has(key) {
- return key._reactInternals !== undefined;
- }
- function set(key, value) {
- key._reactInternals = value;
- }
-
- // Don't change these two values. They're used by React Dev Tools.
- var NoFlags =
- /* */
- 0;
- var PerformedWork =
- /* */
- 1; // You can change the rest (and add more).
-
- var Placement =
- /* */
- 2;
- var Update =
- /* */
- 4;
- var PlacementAndUpdate =
- /* */
- 6;
- var Deletion =
- /* */
- 8;
- var ContentReset =
- /* */
- 16;
- var Callback =
- /* */
- 32;
- var DidCapture =
- /* */
- 64;
- var Ref =
- /* */
- 128;
- var Snapshot =
- /* */
- 256;
- var Passive =
- /* */
- 512; // TODO (effects) Remove this bit once the new reconciler is synced to the old.
-
- var PassiveUnmountPendingDev =
- /* */
- 8192;
- var Hydrating =
- /* */
- 1024;
- var HydratingAndUpdate =
- /* */
- 1028; // Passive & Update & Callback & Ref & Snapshot
-
- var LifecycleEffectMask =
- /* */
- 932; // Union of all host effects
-
- var HostEffectMask =
- /* */
- 2047; // These are not really side effects, but we still reuse this field.
-
- var Incomplete =
- /* */
- 2048;
- var ShouldCapture =
- /* */
- 4096;
- var ForceUpdateForLegacySuspense =
- /* */
- 16384; // Static tags describe aspects of a fiber that are not specific to a render,
-
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
- function getNearestMountedFiber(fiber) {
- var node = fiber;
- var nearestMounted = fiber;
-
- if (!fiber.alternate) {
- // If there is no alternate, this might be a new tree that isn't inserted
- // yet. If it is, then it will have a pending insertion effect on it.
- var nextNode = node;
-
- do {
- node = nextNode;
-
- if ((node.flags & (Placement | Hydrating)) !== NoFlags) {
- // This is an insertion or in-progress hydration. The nearest possible
- // mounted fiber is the parent but we need to continue to figure out
- // if that one is still mounted.
- nearestMounted = node.return;
- }
-
- nextNode = node.return;
- } while (nextNode);
- } else {
- while (node.return) {
- node = node.return;
- }
- }
-
- if (node.tag === HostRoot) {
- // TODO: Check if this was a nested HostRoot when used with
- // renderContainerIntoSubtree.
- return nearestMounted;
- } // If we didn't hit the root, that means that we're in an disconnected tree
- // that has been unmounted.
-
-
- return null;
- }
- function getSuspenseInstanceFromFiber(fiber) {
- if (fiber.tag === SuspenseComponent) {
- var suspenseState = fiber.memoizedState;
-
- if (suspenseState === null) {
- var current = fiber.alternate;
-
- if (current !== null) {
- suspenseState = current.memoizedState;
- }
- }
-
- if (suspenseState !== null) {
- return suspenseState.dehydrated;
- }
- }
-
- return null;
- }
- function getContainerFromFiber(fiber) {
- return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
- }
- function isFiberMounted(fiber) {
- return getNearestMountedFiber(fiber) === fiber;
- }
- function isMounted(component) {
- {
- var owner = ReactCurrentOwner.current;
-
- if (owner !== null && owner.tag === ClassComponent) {
- var ownerFiber = owner;
- var instance = ownerFiber.stateNode;
-
- if (!instance._warnedAboutRefsInRender) {
- error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component');
- }
-
- instance._warnedAboutRefsInRender = true;
- }
- }
-
- var fiber = get(component);
-
- if (!fiber) {
- return false;
- }
-
- return getNearestMountedFiber(fiber) === fiber;
- }
-
- function assertIsMounted(fiber) {
- if (!(getNearestMountedFiber(fiber) === fiber)) {
- {
- throw Error( "Unable to find node on an unmounted component." );
- }
- }
- }
-
- function findCurrentFiberUsingSlowPath(fiber) {
- var alternate = fiber.alternate;
-
- if (!alternate) {
- // If there is no alternate, then we only need to check if it is mounted.
- var nearestMounted = getNearestMountedFiber(fiber);
-
- if (!(nearestMounted !== null)) {
- {
- throw Error( "Unable to find node on an unmounted component." );
- }
- }
-
- if (nearestMounted !== fiber) {
- return null;
- }
-
- return fiber;
- } // If we have two possible branches, we'll walk backwards up to the root
- // to see what path the root points to. On the way we may hit one of the
- // special cases and we'll deal with them.
-
-
- var a = fiber;
- var b = alternate;
-
- while (true) {
- var parentA = a.return;
-
- if (parentA === null) {
- // We're at the root.
- break;
- }
-
- var parentB = parentA.alternate;
-
- if (parentB === null) {
- // There is no alternate. This is an unusual case. Currently, it only
- // happens when a Suspense component is hidden. An extra fragment fiber
- // is inserted in between the Suspense fiber and its children. Skip
- // over this extra fragment fiber and proceed to the next parent.
- var nextParent = parentA.return;
-
- if (nextParent !== null) {
- a = b = nextParent;
- continue;
- } // If there's no parent, we're at the root.
-
-
- break;
- } // If both copies of the parent fiber point to the same child, we can
- // assume that the child is current. This happens when we bailout on low
- // priority: the bailed out fiber's child reuses the current child.
-
-
- if (parentA.child === parentB.child) {
- var child = parentA.child;
-
- while (child) {
- if (child === a) {
- // We've determined that A is the current branch.
- assertIsMounted(parentA);
- return fiber;
- }
-
- if (child === b) {
- // We've determined that B is the current branch.
- assertIsMounted(parentA);
- return alternate;
- }
-
- child = child.sibling;
- } // We should never have an alternate for any mounting node. So the only
- // way this could possibly happen is if this was unmounted, if at all.
-
-
- {
- {
- throw Error( "Unable to find node on an unmounted component." );
- }
- }
- }
-
- if (a.return !== b.return) {
- // The return pointer of A and the return pointer of B point to different
- // fibers. We assume that return pointers never criss-cross, so A must
- // belong to the child set of A.return, and B must belong to the child
- // set of B.return.
- a = parentA;
- b = parentB;
- } else {
- // The return pointers point to the same fiber. We'll have to use the
- // default, slow path: scan the child sets of each parent alternate to see
- // which child belongs to which set.
- //
- // Search parent A's child set
- var didFindChild = false;
- var _child = parentA.child;
-
- while (_child) {
- if (_child === a) {
- didFindChild = true;
- a = parentA;
- b = parentB;
- break;
- }
-
- if (_child === b) {
- didFindChild = true;
- b = parentA;
- a = parentB;
- break;
- }
-
- _child = _child.sibling;
- }
-
- if (!didFindChild) {
- // Search parent B's child set
- _child = parentB.child;
-
- while (_child) {
- if (_child === a) {
- didFindChild = true;
- a = parentB;
- b = parentA;
- break;
- }
-
- if (_child === b) {
- didFindChild = true;
- b = parentB;
- a = parentA;
- break;
- }
-
- _child = _child.sibling;
- }
-
- if (!didFindChild) {
- {
- throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
- }
- }
- }
- }
-
- if (!(a.alternate === b)) {
- {
- throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- } // If the root is not a host container, we're in a disconnected tree. I.e.
- // unmounted.
-
-
- if (!(a.tag === HostRoot)) {
- {
- throw Error( "Unable to find node on an unmounted component." );
- }
- }
-
- if (a.stateNode.current === a) {
- // We've determined that A is the current branch.
- return fiber;
- } // Otherwise B has to be current branch.
-
-
- return alternate;
- }
- function findCurrentHostFiber(parent) {
- var currentParent = findCurrentFiberUsingSlowPath(parent);
-
- if (!currentParent) {
- return null;
- } // Next we'll drill down this component to find the first HostComponent/Text.
-
-
- var node = currentParent;
-
- while (true) {
- if (node.tag === HostComponent || node.tag === HostText) {
- return node;
- } else if (node.child) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === currentParent) {
- return null;
- }
-
- while (!node.sibling) {
- if (!node.return || node.return === currentParent) {
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- } // Flow needs the return null here, but ESLint complains about it.
- // eslint-disable-next-line no-unreachable
-
-
- return null;
- }
- function findCurrentHostFiberWithNoPortals(parent) {
- var currentParent = findCurrentFiberUsingSlowPath(parent);
-
- if (!currentParent) {
- return null;
- } // Next we'll drill down this component to find the first HostComponent/Text.
-
-
- var node = currentParent;
-
- while (true) {
- if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
- return node;
- } else if (node.child && node.tag !== HostPortal) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === currentParent) {
- return null;
- }
-
- while (!node.sibling) {
- if (!node.return || node.return === currentParent) {
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- } // Flow needs the return null here, but ESLint complains about it.
- // eslint-disable-next-line no-unreachable
-
-
- return null;
- }
- function doesFiberContain(parentFiber, childFiber) {
- var node = childFiber;
- var parentFiberAlternate = parentFiber.alternate;
-
- while (node !== null) {
- if (node === parentFiber || node === parentFiberAlternate) {
- return true;
- }
-
- node = node.return;
- }
-
- return false;
- }
-
- var attemptUserBlockingHydration;
- function setAttemptUserBlockingHydration(fn) {
- attemptUserBlockingHydration = fn;
- }
- var attemptContinuousHydration;
- function setAttemptContinuousHydration(fn) {
- attemptContinuousHydration = fn;
- }
- var attemptHydrationAtCurrentPriority;
- function setAttemptHydrationAtCurrentPriority(fn) {
- attemptHydrationAtCurrentPriority = fn;
- }
- var attemptHydrationAtPriority;
- function setAttemptHydrationAtPriority(fn) {
- attemptHydrationAtPriority = fn;
- } // TODO: Upgrade this definition once we're on a newer version of Flow that
- var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
-
- var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
- // if the last target was dehydrated.
-
- var queuedFocus = null;
- var queuedDrag = null;
- var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
-
- var queuedPointers = new Map();
- var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
-
- var queuedExplicitHydrationTargets = [];
- function hasQueuedDiscreteEvents() {
- return queuedDiscreteEvents.length > 0;
- }
- var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase
- 'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];
- function isReplayableDiscreteEvent(eventType) {
- return discreteReplayableEvents.indexOf(eventType) > -1;
- }
-
- function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- return {
- blockedOn: blockedOn,
- domEventName: domEventName,
- eventSystemFlags: eventSystemFlags | IS_REPLAYED,
- nativeEvent: nativeEvent,
- targetContainers: [targetContainer]
- };
- }
-
- function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
- queuedDiscreteEvents.push(queuedEvent);
- } // Resets the replaying for this type of continuous event to no event.
-
- function clearIfContinuousEvent(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'focusin':
- case 'focusout':
- queuedFocus = null;
- break;
-
- case 'dragenter':
- case 'dragleave':
- queuedDrag = null;
- break;
-
- case 'mouseover':
- case 'mouseout':
- queuedMouse = null;
- break;
-
- case 'pointerover':
- case 'pointerout':
- {
- var pointerId = nativeEvent.pointerId;
- queuedPointers.delete(pointerId);
- break;
- }
-
- case 'gotpointercapture':
- case 'lostpointercapture':
- {
- var _pointerId = nativeEvent.pointerId;
- queuedPointerCaptures.delete(_pointerId);
- break;
- }
- }
- }
-
- function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
- var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
-
- if (blockedOn !== null) {
- var _fiber2 = getInstanceFromNode(blockedOn);
-
- if (_fiber2 !== null) {
- // Attempt to increase the priority of this target.
- attemptContinuousHydration(_fiber2);
- }
- }
-
- return queuedEvent;
- } // If we have already queued this exact event, then it's because
- // the different event systems have different DOM event listeners.
- // We can accumulate the flags, and the targetContainers, and
- // store a single event to be replayed.
-
-
- existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
- var targetContainers = existingQueuedEvent.targetContainers;
-
- if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {
- targetContainers.push(targetContainer);
- }
-
- return existingQueuedEvent;
- }
-
- function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- // These set relatedTarget to null because the replayed event will be treated as if we
- // moved from outside the window (no target) onto the target once it hydrates.
- // Instead of mutating we could clone the event.
- switch (domEventName) {
- case 'focusin':
- {
- var focusEvent = nativeEvent;
- queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);
- return true;
- }
-
- case 'dragenter':
- {
- var dragEvent = nativeEvent;
- queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);
- return true;
- }
-
- case 'mouseover':
- {
- var mouseEvent = nativeEvent;
- queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);
- return true;
- }
-
- case 'pointerover':
- {
- var pointerEvent = nativeEvent;
- var pointerId = pointerEvent.pointerId;
- queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));
- return true;
- }
-
- case 'gotpointercapture':
- {
- var _pointerEvent = nativeEvent;
- var _pointerId2 = _pointerEvent.pointerId;
- queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));
- return true;
- }
- }
-
- return false;
- } // Check if this target is unblocked. Returns true if it's unblocked.
-
- function attemptExplicitHydrationTarget(queuedTarget) {
- // TODO: This function shares a lot of logic with attemptToDispatchEvent.
- // Try to unify them. It's a bit tricky since it would require two return
- // values.
- var targetInst = getClosestInstanceFromNode(queuedTarget.target);
-
- if (targetInst !== null) {
- var nearestMounted = getNearestMountedFiber(targetInst);
-
- if (nearestMounted !== null) {
- var tag = nearestMounted.tag;
-
- if (tag === SuspenseComponent) {
- var instance = getSuspenseInstanceFromFiber(nearestMounted);
-
- if (instance !== null) {
- // We're blocked on hydrating this boundary.
- // Increase its priority.
- queuedTarget.blockedOn = instance;
- attemptHydrationAtPriority(queuedTarget.lanePriority, function () {
- unstable_runWithPriority(queuedTarget.priority, function () {
- attemptHydrationAtCurrentPriority(nearestMounted);
- });
- });
- return;
- }
- } else if (tag === HostRoot) {
- var root = nearestMounted.stateNode;
-
- if (root.hydrate) {
- queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
- // a root other than sync.
-
- return;
- }
- }
- }
- }
-
- queuedTarget.blockedOn = null;
- }
-
- function attemptReplayContinuousQueuedEvent(queuedEvent) {
- if (queuedEvent.blockedOn !== null) {
- return false;
- }
-
- var targetContainers = queuedEvent.targetContainers;
-
- while (targetContainers.length > 0) {
- var targetContainer = targetContainers[0];
- var nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);
-
- if (nextBlockedOn !== null) {
- // We're still blocked. Try again later.
- var _fiber3 = getInstanceFromNode(nextBlockedOn);
-
- if (_fiber3 !== null) {
- attemptContinuousHydration(_fiber3);
- }
-
- queuedEvent.blockedOn = nextBlockedOn;
- return false;
- } // This target container was successfully dispatched. Try the next.
-
-
- targetContainers.shift();
- }
-
- return true;
- }
-
- function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
- if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
- map.delete(key);
- }
- }
-
- function replayUnblockedEvents() {
- hasScheduledReplayAttempt = false; // First replay discrete events.
-
- while (queuedDiscreteEvents.length > 0) {
- var nextDiscreteEvent = queuedDiscreteEvents[0];
-
- if (nextDiscreteEvent.blockedOn !== null) {
- // We're still blocked.
- // Increase the priority of this boundary to unblock
- // the next discrete event.
- var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn);
-
- if (_fiber4 !== null) {
- attemptUserBlockingHydration(_fiber4);
- }
-
- break;
- }
-
- var targetContainers = nextDiscreteEvent.targetContainers;
-
- while (targetContainers.length > 0) {
- var targetContainer = targetContainers[0];
- var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent);
-
- if (nextBlockedOn !== null) {
- // We're still blocked. Try again later.
- nextDiscreteEvent.blockedOn = nextBlockedOn;
- break;
- } // This target container was successfully dispatched. Try the next.
-
-
- targetContainers.shift();
- }
-
- if (nextDiscreteEvent.blockedOn === null) {
- // We've successfully replayed the first event. Let's try the next one.
- queuedDiscreteEvents.shift();
- }
- } // Next replay any continuous events.
-
-
- if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
- queuedFocus = null;
- }
-
- if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
- queuedDrag = null;
- }
-
- if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
- queuedMouse = null;
- }
-
- queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
- queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
- }
-
- function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
- if (queuedEvent.blockedOn === unblocked) {
- queuedEvent.blockedOn = null;
-
- if (!hasScheduledReplayAttempt) {
- hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
- // now unblocked. This first might not actually be unblocked yet.
- // We could check it early to avoid scheduling an unnecessary callback.
-
- unstable_scheduleCallback(unstable_NormalPriority, replayUnblockedEvents);
- }
- }
- }
-
- function retryIfBlockedOn(unblocked) {
- // Mark anything that was blocked on this as no longer blocked
- // and eligible for a replay.
- if (queuedDiscreteEvents.length > 0) {
- scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
- // worth it because we expect very few discrete events to queue up and once
- // we are actually fully unblocked it will be fast to replay them.
-
- for (var i = 1; i < queuedDiscreteEvents.length; i++) {
- var queuedEvent = queuedDiscreteEvents[i];
-
- if (queuedEvent.blockedOn === unblocked) {
- queuedEvent.blockedOn = null;
- }
- }
- }
-
- if (queuedFocus !== null) {
- scheduleCallbackIfUnblocked(queuedFocus, unblocked);
- }
-
- if (queuedDrag !== null) {
- scheduleCallbackIfUnblocked(queuedDrag, unblocked);
- }
-
- if (queuedMouse !== null) {
- scheduleCallbackIfUnblocked(queuedMouse, unblocked);
- }
-
- var unblock = function (queuedEvent) {
- return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
- };
-
- queuedPointers.forEach(unblock);
- queuedPointerCaptures.forEach(unblock);
-
- for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
- var queuedTarget = queuedExplicitHydrationTargets[_i];
-
- if (queuedTarget.blockedOn === unblocked) {
- queuedTarget.blockedOn = null;
- }
- }
-
- while (queuedExplicitHydrationTargets.length > 0) {
- var nextExplicitTarget = queuedExplicitHydrationTargets[0];
-
- if (nextExplicitTarget.blockedOn !== null) {
- // We're still blocked.
- break;
- } else {
- attemptExplicitHydrationTarget(nextExplicitTarget);
-
- if (nextExplicitTarget.blockedOn === null) {
- // We're unblocked.
- queuedExplicitHydrationTargets.shift();
- }
- }
- }
- }
-
- var DiscreteEvent = 0;
- var UserBlockingEvent = 1;
- var ContinuousEvent = 2;
-
- /**
- * Generate a mapping of standard vendor prefixes using the defined style property and event name.
- *
- * @param {string} styleProp
- * @param {string} eventName
- * @returns {object}
- */
-
- function makePrefixMap(styleProp, eventName) {
- var prefixes = {};
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
- prefixes['Moz' + styleProp] = 'moz' + eventName;
- return prefixes;
- }
- /**
- * A list of event names to a configurable list of vendor prefixes.
- */
-
-
- var vendorPrefixes = {
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
- animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
- animationstart: makePrefixMap('Animation', 'AnimationStart'),
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
- };
- /**
- * Event names that have already been detected and prefixed (if applicable).
- */
-
- var prefixedEventNames = {};
- /**
- * Element to check for prefixes on.
- */
-
- var style = {};
- /**
- * Bootstrap if a DOM exists.
- */
-
- if (canUseDOM) {
- style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
- // the un-prefixed "animation" and "transition" properties are defined on the
- // style object but the events that fire will still be prefixed, so we need
- // to check if the un-prefixed events are usable, and if not remove them from the map.
-
- if (!('AnimationEvent' in window)) {
- delete vendorPrefixes.animationend.animation;
- delete vendorPrefixes.animationiteration.animation;
- delete vendorPrefixes.animationstart.animation;
- } // Same as above
-
-
- if (!('TransitionEvent' in window)) {
- delete vendorPrefixes.transitionend.transition;
- }
- }
- /**
- * Attempts to determine the correct vendor prefixed event name.
- *
- * @param {string} eventName
- * @returns {string}
- */
-
-
- function getVendorPrefixedEventName(eventName) {
- if (prefixedEventNames[eventName]) {
- return prefixedEventNames[eventName];
- } else if (!vendorPrefixes[eventName]) {
- return eventName;
- }
-
- var prefixMap = vendorPrefixes[eventName];
-
- for (var styleProp in prefixMap) {
- if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
- return prefixedEventNames[eventName] = prefixMap[styleProp];
- }
- }
-
- return eventName;
- }
-
- var ANIMATION_END = getVendorPrefixedEventName('animationend');
- var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');
- var ANIMATION_START = getVendorPrefixedEventName('animationstart');
- var TRANSITION_END = getVendorPrefixedEventName('transitionend');
-
- var topLevelEventsToReactNames = new Map();
- var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
- // the code required to apply the same logic for event prioritization and that of the
- // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
- // duplication (for which there would be quite a bit). For the events that are not needed
- // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
- // array of top level events.
- // Lastly, we ignore prettier so we can keep the formatting sane.
- // prettier-ignore
-
- var discreteEventPairsForSimpleEventPlugin = ['cancel', 'cancel', 'click', 'click', 'close', 'close', 'contextmenu', 'contextMenu', 'copy', 'copy', 'cut', 'cut', 'auxclick', 'auxClick', 'dblclick', 'doubleClick', // Careful!
- 'dragend', 'dragEnd', 'dragstart', 'dragStart', 'drop', 'drop', 'focusin', 'focus', // Careful!
- 'focusout', 'blur', // Careful!
- 'input', 'input', 'invalid', 'invalid', 'keydown', 'keyDown', 'keypress', 'keyPress', 'keyup', 'keyUp', 'mousedown', 'mouseDown', 'mouseup', 'mouseUp', 'paste', 'paste', 'pause', 'pause', 'play', 'play', 'pointercancel', 'pointerCancel', 'pointerdown', 'pointerDown', 'pointerup', 'pointerUp', 'ratechange', 'rateChange', 'reset', 'reset', 'seeked', 'seeked', 'submit', 'submit', 'touchcancel', 'touchCancel', 'touchend', 'touchEnd', 'touchstart', 'touchStart', 'volumechange', 'volumeChange'];
- var otherDiscreteEvents = ['change', 'selectionchange', 'textInput', 'compositionstart', 'compositionend', 'compositionupdate'];
-
-
- var userBlockingPairsForSimpleEventPlugin = ['drag', 'drag', 'dragenter', 'dragEnter', 'dragexit', 'dragExit', 'dragleave', 'dragLeave', 'dragover', 'dragOver', 'mousemove', 'mouseMove', 'mouseout', 'mouseOut', 'mouseover', 'mouseOver', 'pointermove', 'pointerMove', 'pointerout', 'pointerOut', 'pointerover', 'pointerOver', 'scroll', 'scroll', 'toggle', 'toggle', 'touchmove', 'touchMove', 'wheel', 'wheel']; // prettier-ignore
-
- var continuousPairsForSimpleEventPlugin = ['abort', 'abort', ANIMATION_END, 'animationEnd', ANIMATION_ITERATION, 'animationIteration', ANIMATION_START, 'animationStart', 'canplay', 'canPlay', 'canplaythrough', 'canPlayThrough', 'durationchange', 'durationChange', 'emptied', 'emptied', 'encrypted', 'encrypted', 'ended', 'ended', 'error', 'error', 'gotpointercapture', 'gotPointerCapture', 'load', 'load', 'loadeddata', 'loadedData', 'loadedmetadata', 'loadedMetadata', 'loadstart', 'loadStart', 'lostpointercapture', 'lostPointerCapture', 'playing', 'playing', 'progress', 'progress', 'seeking', 'seeking', 'stalled', 'stalled', 'suspend', 'suspend', 'timeupdate', 'timeUpdate', TRANSITION_END, 'transitionEnd', 'waiting', 'waiting'];
- /**
- * Turns
- * ['abort', ...]
- *
- * into
- *
- * topLevelEventsToReactNames = new Map([
- * ['abort', 'onAbort'],
- * ]);
- *
- * and registers them.
- */
-
- function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) {
- // As the event types are in pairs of two, we need to iterate
- // through in twos. The events are in pairs of two to save code
- // and improve init perf of processing this array, as it will
- // result in far fewer object allocations and property accesses
- // if we only use three arrays to process all the categories of
- // instead of tuples.
- for (var i = 0; i < eventTypes.length; i += 2) {
- var topEvent = eventTypes[i];
- var event = eventTypes[i + 1];
- var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
- var reactName = 'on' + capitalizedEvent;
- eventPriorities.set(topEvent, priority);
- topLevelEventsToReactNames.set(topEvent, reactName);
- registerTwoPhaseEvent(reactName, [topEvent]);
- }
- }
-
- function setEventPriorities(eventTypes, priority) {
- for (var i = 0; i < eventTypes.length; i++) {
- eventPriorities.set(eventTypes[i], priority);
- }
- }
-
- function getEventPriorityForPluginSystem(domEventName) {
- var priority = eventPriorities.get(domEventName); // Default to a ContinuousEvent. Note: we might
- // want to warn if we can't detect the priority
- // for the event.
-
- return priority === undefined ? ContinuousEvent : priority;
- }
- function registerSimpleEvents() {
- registerSimplePluginEventsAndSetTheirPriorities(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
- registerSimplePluginEventsAndSetTheirPriorities(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
- registerSimplePluginEventsAndSetTheirPriorities(continuousPairsForSimpleEventPlugin, ContinuousEvent);
- setEventPriorities(otherDiscreteEvents, DiscreteEvent);
- }
-
- var ReactInternals$2 = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
- var _ReactInternals$Sched$1 = ReactInternals$2.SchedulerTracing,
- __interactionsRef = _ReactInternals$Sched$1.__interactionsRef,
- __subscriberRef = _ReactInternals$Sched$1.__subscriberRef,
- unstable_clear = _ReactInternals$Sched$1.unstable_clear,
- unstable_getCurrent = _ReactInternals$Sched$1.unstable_getCurrent,
- unstable_getThreadID = _ReactInternals$Sched$1.unstable_getThreadID,
- unstable_subscribe = _ReactInternals$Sched$1.unstable_subscribe,
- unstable_trace = _ReactInternals$Sched$1.unstable_trace,
- unstable_unsubscribe = _ReactInternals$Sched$1.unstable_unsubscribe,
- unstable_wrap = _ReactInternals$Sched$1.unstable_wrap;
-
- var Scheduler_now = unstable_now;
-
- {
- // Provide explicit error message when production+profiling bundle of e.g.
- // react-dom is used with production (non-profiling) bundle of
- // scheduler/tracing
- if (!(__interactionsRef != null && __interactionsRef.current != null)) {
- {
- throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
- }
- }
- }
- // ascending numbers so we can compare them like numbers. They start at 90 to
- // avoid clashing with Scheduler's priorities.
-
- var ImmediatePriority = 99;
- var UserBlockingPriority = 98;
- var NormalPriority = 97;
- var LowPriority = 96;
- var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.
-
- var NoPriority = 90;
- var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
-
- var SyncLanePriority = 15;
- var SyncBatchedLanePriority = 14;
- var InputDiscreteHydrationLanePriority = 13;
- var InputDiscreteLanePriority = 12;
- var InputContinuousHydrationLanePriority = 11;
- var InputContinuousLanePriority = 10;
- var DefaultHydrationLanePriority = 9;
- var DefaultLanePriority = 8;
- var TransitionHydrationPriority = 7;
- var TransitionPriority = 6;
- var RetryLanePriority = 5;
- var SelectiveHydrationLanePriority = 4;
- var IdleHydrationLanePriority = 3;
- var IdleLanePriority = 2;
- var OffscreenLanePriority = 1;
- var NoLanePriority = 0;
- var TotalLanes = 31;
- var NoLanes =
- /* */
- 0;
- var NoLane =
- /* */
- 0;
- var SyncLane =
- /* */
- 1;
- var SyncBatchedLane =
- /* */
- 2;
- var InputDiscreteHydrationLane =
- /* */
- 4;
- var InputDiscreteLanes =
- /* */
- 24;
- var InputContinuousHydrationLane =
- /* */
- 32;
- var InputContinuousLanes =
- /* */
- 192;
- var DefaultHydrationLane =
- /* */
- 256;
- var DefaultLanes =
- /* */
- 3584;
- var TransitionHydrationLane =
- /* */
- 4096;
- var TransitionLanes =
- /* */
- 4186112;
- var RetryLanes =
- /* */
- 62914560;
- var SomeRetryLane =
- /* */
- 33554432;
- var SelectiveHydrationLane =
- /* */
- 67108864;
- var NonIdleLanes =
- /* */
- 134217727;
- var IdleHydrationLane =
- /* */
- 134217728;
- var IdleLanes =
- /* */
- 805306368;
- var OffscreenLane =
- /* */
- 1073741824;
- var NoTimestamp = -1;
- function setCurrentUpdateLanePriority(newLanePriority) {
- } // "Registers" used to "return" multiple values
- // Used by getHighestPriorityLanes and getNextLanes:
-
- var return_highestLanePriority = DefaultLanePriority;
-
- function getHighestPriorityLanes(lanes) {
- if ((SyncLane & lanes) !== NoLanes) {
- return_highestLanePriority = SyncLanePriority;
- return SyncLane;
- }
-
- if ((SyncBatchedLane & lanes) !== NoLanes) {
- return_highestLanePriority = SyncBatchedLanePriority;
- return SyncBatchedLane;
- }
-
- if ((InputDiscreteHydrationLane & lanes) !== NoLanes) {
- return_highestLanePriority = InputDiscreteHydrationLanePriority;
- return InputDiscreteHydrationLane;
- }
-
- var inputDiscreteLanes = InputDiscreteLanes & lanes;
-
- if (inputDiscreteLanes !== NoLanes) {
- return_highestLanePriority = InputDiscreteLanePriority;
- return inputDiscreteLanes;
- }
-
- if ((lanes & InputContinuousHydrationLane) !== NoLanes) {
- return_highestLanePriority = InputContinuousHydrationLanePriority;
- return InputContinuousHydrationLane;
- }
-
- var inputContinuousLanes = InputContinuousLanes & lanes;
-
- if (inputContinuousLanes !== NoLanes) {
- return_highestLanePriority = InputContinuousLanePriority;
- return inputContinuousLanes;
- }
-
- if ((lanes & DefaultHydrationLane) !== NoLanes) {
- return_highestLanePriority = DefaultHydrationLanePriority;
- return DefaultHydrationLane;
- }
-
- var defaultLanes = DefaultLanes & lanes;
-
- if (defaultLanes !== NoLanes) {
- return_highestLanePriority = DefaultLanePriority;
- return defaultLanes;
- }
-
- if ((lanes & TransitionHydrationLane) !== NoLanes) {
- return_highestLanePriority = TransitionHydrationPriority;
- return TransitionHydrationLane;
- }
-
- var transitionLanes = TransitionLanes & lanes;
-
- if (transitionLanes !== NoLanes) {
- return_highestLanePriority = TransitionPriority;
- return transitionLanes;
- }
-
- var retryLanes = RetryLanes & lanes;
-
- if (retryLanes !== NoLanes) {
- return_highestLanePriority = RetryLanePriority;
- return retryLanes;
- }
-
- if (lanes & SelectiveHydrationLane) {
- return_highestLanePriority = SelectiveHydrationLanePriority;
- return SelectiveHydrationLane;
- }
-
- if ((lanes & IdleHydrationLane) !== NoLanes) {
- return_highestLanePriority = IdleHydrationLanePriority;
- return IdleHydrationLane;
- }
-
- var idleLanes = IdleLanes & lanes;
-
- if (idleLanes !== NoLanes) {
- return_highestLanePriority = IdleLanePriority;
- return idleLanes;
- }
-
- if ((OffscreenLane & lanes) !== NoLanes) {
- return_highestLanePriority = OffscreenLanePriority;
- return OffscreenLane;
- }
-
- {
- error('Should have found matching lanes. This is a bug in React.');
- } // This shouldn't be reachable, but as a fallback, return the entire bitmask.
-
-
- return_highestLanePriority = DefaultLanePriority;
- return lanes;
- }
-
- function schedulerPriorityToLanePriority(schedulerPriorityLevel) {
- switch (schedulerPriorityLevel) {
- case ImmediatePriority:
- return SyncLanePriority;
-
- case UserBlockingPriority:
- return InputContinuousLanePriority;
-
- case NormalPriority:
- case LowPriority:
- // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.
- return DefaultLanePriority;
-
- case IdlePriority:
- return IdleLanePriority;
-
- default:
- return NoLanePriority;
- }
- }
- function lanePriorityToSchedulerPriority(lanePriority) {
- switch (lanePriority) {
- case SyncLanePriority:
- case SyncBatchedLanePriority:
- return ImmediatePriority;
-
- case InputDiscreteHydrationLanePriority:
- case InputDiscreteLanePriority:
- case InputContinuousHydrationLanePriority:
- case InputContinuousLanePriority:
- return UserBlockingPriority;
-
- case DefaultHydrationLanePriority:
- case DefaultLanePriority:
- case TransitionHydrationPriority:
- case TransitionPriority:
- case SelectiveHydrationLanePriority:
- case RetryLanePriority:
- return NormalPriority;
-
- case IdleHydrationLanePriority:
- case IdleLanePriority:
- case OffscreenLanePriority:
- return IdlePriority;
-
- case NoLanePriority:
- return NoPriority;
-
- default:
- {
- {
- throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
- }
- }
-
- }
- }
- function getNextLanes(root, wipLanes) {
- // Early bailout if there's no pending work left.
- var pendingLanes = root.pendingLanes;
-
- if (pendingLanes === NoLanes) {
- return_highestLanePriority = NoLanePriority;
- return NoLanes;
- }
-
- var nextLanes = NoLanes;
- var nextLanePriority = NoLanePriority;
- var expiredLanes = root.expiredLanes;
- var suspendedLanes = root.suspendedLanes;
- var pingedLanes = root.pingedLanes; // Check if any work has expired.
-
- if (expiredLanes !== NoLanes) {
- nextLanes = expiredLanes;
- nextLanePriority = return_highestLanePriority = SyncLanePriority;
- } else {
- // Do not work on any idle work until all the non-idle work has finished,
- // even if the work is suspended.
- var nonIdlePendingLanes = pendingLanes & NonIdleLanes;
-
- if (nonIdlePendingLanes !== NoLanes) {
- var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
-
- if (nonIdleUnblockedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);
- nextLanePriority = return_highestLanePriority;
- } else {
- var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;
-
- if (nonIdlePingedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);
- nextLanePriority = return_highestLanePriority;
- }
- }
- } else {
- // The only remaining work is Idle.
- var unblockedLanes = pendingLanes & ~suspendedLanes;
-
- if (unblockedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(unblockedLanes);
- nextLanePriority = return_highestLanePriority;
- } else {
- if (pingedLanes !== NoLanes) {
- nextLanes = getHighestPriorityLanes(pingedLanes);
- nextLanePriority = return_highestLanePriority;
- }
- }
- }
- }
-
- if (nextLanes === NoLanes) {
- // This should only be reachable if we're suspended
- // TODO: Consider warning in this path if a fallback timer is not scheduled.
- return NoLanes;
- } // If there are higher priority lanes, we'll include them even if they
- // are suspended.
-
-
- nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes); // If we're already in the middle of a render, switching lanes will interrupt
- // it and we'll lose our progress. We should only do this if the new lanes are
- // higher priority.
-
- if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't
- // bother waiting until the root is complete.
- (wipLanes & suspendedLanes) === NoLanes) {
- getHighestPriorityLanes(wipLanes);
- var wipLanePriority = return_highestLanePriority;
-
- if (nextLanePriority <= wipLanePriority) {
- return wipLanes;
- } else {
- return_highestLanePriority = nextLanePriority;
- }
- } // Check for entangled lanes and add them to the batch.
- //
- // A lane is said to be entangled with another when it's not allowed to render
- // in a batch that does not also include the other lane. Typically we do this
- // when multiple updates have the same source, and we only want to respond to
- // the most recent event from that source.
- //
- // Note that we apply entanglements *after* checking for partial work above.
- // This means that if a lane is entangled during an interleaved event while
- // it's already rendering, we won't interrupt it. This is intentional, since
- // entanglement is usually "best effort": we'll try our best to render the
- // lanes in the same batch, but it's not worth throwing out partially
- // completed work in order to do it.
- //
- // For those exceptions where entanglement is semantically important, like
- // useMutableSource, we should ensure that there is no partial work at the
- // time we apply the entanglement.
-
-
- var entangledLanes = root.entangledLanes;
-
- if (entangledLanes !== NoLanes) {
- var entanglements = root.entanglements;
- var lanes = nextLanes & entangledLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- nextLanes |= entanglements[index];
- lanes &= ~lane;
- }
- }
-
- return nextLanes;
- }
- function getMostRecentEventTime(root, lanes) {
- var eventTimes = root.eventTimes;
- var mostRecentEventTime = NoTimestamp;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- var eventTime = eventTimes[index];
-
- if (eventTime > mostRecentEventTime) {
- mostRecentEventTime = eventTime;
- }
-
- lanes &= ~lane;
- }
-
- return mostRecentEventTime;
- }
-
- function computeExpirationTime(lane, currentTime) {
- // TODO: Expiration heuristic is constant per lane, so could use a map.
- getHighestPriorityLanes(lane);
- var priority = return_highestLanePriority;
-
- if (priority >= InputContinuousLanePriority) {
- // User interactions should expire slightly more quickly.
- //
- // NOTE: This is set to the corresponding constant as in Scheduler.js. When
- // we made it larger, a product metric in www regressed, suggesting there's
- // a user interaction that's being starved by a series of synchronous
- // updates. If that theory is correct, the proper solution is to fix the
- // starvation. However, this scenario supports the idea that expiration
- // times are an important safeguard when starvation does happen.
- //
- // Also note that, in the case of user input specifically, this will soon no
- // longer be an issue because we plan to make user input synchronous by
- // default (until you enter `startTransition`, of course.)
- //
- // If weren't planning to make these updates synchronous soon anyway, I
- // would probably make this number a configurable parameter.
- return currentTime + 250;
- } else if (priority >= TransitionPriority) {
- return currentTime + 5000;
- } else {
- // Anything idle priority or lower should never expire.
- return NoTimestamp;
- }
- }
-
- function markStarvedLanesAsExpired(root, currentTime) {
- // TODO: This gets called every time we yield. We can optimize by storing
- // the earliest expiration time on the root. Then use that to quickly bail out
- // of this function.
- var pendingLanes = root.pendingLanes;
- var suspendedLanes = root.suspendedLanes;
- var pingedLanes = root.pingedLanes;
- var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their
- // expiration time. If so, we'll assume the update is being starved and mark
- // it as expired to force it to finish.
-
- var lanes = pendingLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- var expirationTime = expirationTimes[index];
-
- if (expirationTime === NoTimestamp) {
- // Found a pending lane with no expiration time. If it's not suspended, or
- // if it's pinged, assume it's CPU-bound. Compute a new expiration time
- // using the current time.
- if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {
- // Assumes timestamps are monotonically increasing.
- expirationTimes[index] = computeExpirationTime(lane, currentTime);
- }
- } else if (expirationTime <= currentTime) {
- // This lane expired
- root.expiredLanes |= lane;
- }
-
- lanes &= ~lane;
- }
- } // This returns the highest priority pending lanes regardless of whether they
- function getLanesToRetrySynchronouslyOnError(root) {
- var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;
-
- if (everythingButOffscreen !== NoLanes) {
- return everythingButOffscreen;
- }
-
- if (everythingButOffscreen & OffscreenLane) {
- return OffscreenLane;
- }
-
- return NoLanes;
- }
- function returnNextLanesPriority() {
- return return_highestLanePriority;
- }
- function includesNonIdleWork(lanes) {
- return (lanes & NonIdleLanes) !== NoLanes;
- }
- function includesOnlyRetries(lanes) {
- return (lanes & RetryLanes) === lanes;
- }
- function includesOnlyTransitions(lanes) {
- return (lanes & TransitionLanes) === lanes;
- } // To ensure consistency across multiple updates in the same event, this should
- // be a pure function, so that it always returns the same lane for given inputs.
-
- function findUpdateLane(lanePriority, wipLanes) {
- switch (lanePriority) {
- case NoLanePriority:
- break;
-
- case SyncLanePriority:
- return SyncLane;
-
- case SyncBatchedLanePriority:
- return SyncBatchedLane;
-
- case InputDiscreteLanePriority:
- {
- var _lane = pickArbitraryLane(InputDiscreteLanes & ~wipLanes);
-
- if (_lane === NoLane) {
- // Shift to the next priority level
- return findUpdateLane(InputContinuousLanePriority, wipLanes);
- }
-
- return _lane;
- }
-
- case InputContinuousLanePriority:
- {
- var _lane2 = pickArbitraryLane(InputContinuousLanes & ~wipLanes);
-
- if (_lane2 === NoLane) {
- // Shift to the next priority level
- return findUpdateLane(DefaultLanePriority, wipLanes);
- }
-
- return _lane2;
- }
-
- case DefaultLanePriority:
- {
- var _lane3 = pickArbitraryLane(DefaultLanes & ~wipLanes);
-
- if (_lane3 === NoLane) {
- // If all the default lanes are already being worked on, look for a
- // lane in the transition range.
- _lane3 = pickArbitraryLane(TransitionLanes & ~wipLanes);
-
- if (_lane3 === NoLane) {
- // All the transition lanes are taken, too. This should be very
- // rare, but as a last resort, pick a default lane. This will have
- // the effect of interrupting the current work-in-progress render.
- _lane3 = pickArbitraryLane(DefaultLanes);
- }
- }
-
- return _lane3;
- }
-
- case TransitionPriority: // Should be handled by findTransitionLane instead
-
- case RetryLanePriority:
- // Should be handled by findRetryLane instead
- break;
-
- case IdleLanePriority:
- var lane = pickArbitraryLane(IdleLanes & ~wipLanes);
-
- if (lane === NoLane) {
- lane = pickArbitraryLane(IdleLanes);
- }
-
- return lane;
- }
-
- {
- {
- throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
- }
- }
- } // To ensure consistency across multiple updates in the same event, this should
- // be pure function, so that it always returns the same lane for given inputs.
-
- function findTransitionLane(wipLanes, pendingLanes) {
- // First look for lanes that are completely unclaimed, i.e. have no
- // pending work.
- var lane = pickArbitraryLane(TransitionLanes & ~pendingLanes);
-
- if (lane === NoLane) {
- // If all lanes have pending work, look for a lane that isn't currently
- // being worked on.
- lane = pickArbitraryLane(TransitionLanes & ~wipLanes);
-
- if (lane === NoLane) {
- // If everything is being worked on, pick any lane. This has the
- // effect of interrupting the current work-in-progress.
- lane = pickArbitraryLane(TransitionLanes);
- }
- }
-
- return lane;
- } // To ensure consistency across multiple updates in the same event, this should
- // be pure function, so that it always returns the same lane for given inputs.
-
- function findRetryLane(wipLanes) {
- // This is a fork of `findUpdateLane` designed specifically for Suspense
- // "retries" — a special update that attempts to flip a Suspense boundary
- // from its placeholder state to its primary/resolved state.
- var lane = pickArbitraryLane(RetryLanes & ~wipLanes);
-
- if (lane === NoLane) {
- lane = pickArbitraryLane(RetryLanes);
- }
-
- return lane;
- }
-
- function getHighestPriorityLane(lanes) {
- return lanes & -lanes;
- }
-
- function getLowestPriorityLane(lanes) {
- // This finds the most significant non-zero bit.
- var index = 31 - clz32(lanes);
- return index < 0 ? NoLanes : 1 << index;
- }
-
- function getEqualOrHigherPriorityLanes(lanes) {
- return (getLowestPriorityLane(lanes) << 1) - 1;
- }
-
- function pickArbitraryLane(lanes) {
- // This wrapper function gets inlined. Only exists so to communicate that it
- // doesn't matter which bit is selected; you can pick any bit without
- // affecting the algorithms where its used. Here I'm using
- // getHighestPriorityLane because it requires the fewest operations.
- return getHighestPriorityLane(lanes);
- }
-
- function pickArbitraryLaneIndex(lanes) {
- return 31 - clz32(lanes);
- }
-
- function laneToIndex(lane) {
- return pickArbitraryLaneIndex(lane);
- }
-
- function includesSomeLane(a, b) {
- return (a & b) !== NoLanes;
- }
- function isSubsetOfLanes(set, subset) {
- return (set & subset) === subset;
- }
- function mergeLanes(a, b) {
- return a | b;
- }
- function removeLanes(set, subset) {
- return set & ~subset;
- } // Seems redundant, but it changes the type from a single lane (used for
- // updates) to a group of lanes (used for flushing work).
-
- function laneToLanes(lane) {
- return lane;
- }
- function higherPriorityLane(a, b) {
- // This works because the bit ranges decrease in priority as you go left.
- return a !== NoLane && a < b ? a : b;
- }
- function createLaneMap(initial) {
- // Intentionally pushing one by one.
- // https://v8.dev/blog/elements-kinds#avoid-creating-holes
- var laneMap = [];
-
- for (var i = 0; i < TotalLanes; i++) {
- laneMap.push(initial);
- }
-
- return laneMap;
- }
- function markRootUpdated(root, updateLane, eventTime) {
- root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But
- // it's not practical to try every single possible combination. We need a
- // heuristic to decide which lanes to attempt to render, and in which batches.
- // For now, we use the same heuristic as in the old ExpirationTimes model:
- // retry any lane at equal or lower priority, but don't try updates at higher
- // priority without also including the lower priority updates. This works well
- // when considering updates across different priority levels, but isn't
- // sufficient for updates within the same priority, since we want to treat
- // those updates as parallel.
- // Unsuspend any update at equal or lower priority.
-
- var higherPriorityLanes = updateLane - 1; // Turns 0b1000 into 0b0111
-
- root.suspendedLanes &= higherPriorityLanes;
- root.pingedLanes &= higherPriorityLanes;
- var eventTimes = root.eventTimes;
- var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most
- // recent event, and we assume time is monotonically increasing.
-
- eventTimes[index] = eventTime;
- }
- function markRootSuspended(root, suspendedLanes) {
- root.suspendedLanes |= suspendedLanes;
- root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.
-
- var expirationTimes = root.expirationTimes;
- var lanes = suspendedLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- expirationTimes[index] = NoTimestamp;
- lanes &= ~lane;
- }
- }
- function markRootPinged(root, pingedLanes, eventTime) {
- root.pingedLanes |= root.suspendedLanes & pingedLanes;
- }
- function markDiscreteUpdatesExpired(root) {
- root.expiredLanes |= InputDiscreteLanes & root.pendingLanes;
- }
- function hasDiscreteLanes(lanes) {
- return (lanes & InputDiscreteLanes) !== NoLanes;
- }
- function markRootMutableRead(root, updateLane) {
- root.mutableReadLanes |= updateLane & root.pendingLanes;
- }
- function markRootFinished(root, remainingLanes) {
- var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
- root.pendingLanes = remainingLanes; // Let's try everything again
-
- root.suspendedLanes = 0;
- root.pingedLanes = 0;
- root.expiredLanes &= remainingLanes;
- root.mutableReadLanes &= remainingLanes;
- root.entangledLanes &= remainingLanes;
- var entanglements = root.entanglements;
- var eventTimes = root.eventTimes;
- var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work
-
- var lanes = noLongerPendingLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- entanglements[index] = NoLanes;
- eventTimes[index] = NoTimestamp;
- expirationTimes[index] = NoTimestamp;
- lanes &= ~lane;
- }
- }
- function markRootEntangled(root, entangledLanes) {
- root.entangledLanes |= entangledLanes;
- var entanglements = root.entanglements;
- var lanes = entangledLanes;
-
- while (lanes > 0) {
- var index = pickArbitraryLaneIndex(lanes);
- var lane = 1 << index;
- entanglements[index] |= entangledLanes;
- lanes &= ~lane;
- }
- }
- var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. Only used on lanes, so assume input is an integer.
- // Based on:
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32
-
- var log = Math.log;
- var LN2 = Math.LN2;
-
- function clz32Fallback(lanes) {
- if (lanes === 0) {
- return 32;
- }
-
- return 31 - (log(lanes) / LN2 | 0) | 0;
- }
-
- // Intentionally not named imports because Rollup would use dynamic dispatch for
- var UserBlockingPriority$1 = unstable_UserBlockingPriority,
- runWithPriority = unstable_runWithPriority; // TODO: can we stop exporting these?
-
- var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.
- // We'd like to remove this but it's not clear if this is safe.
-
- function setEnabled(enabled) {
- _enabled = !!enabled;
- }
- function isEnabled() {
- return _enabled;
- }
- function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {
- var eventPriority = getEventPriorityForPluginSystem(domEventName);
- var listenerWrapper;
-
- switch (eventPriority) {
- case DiscreteEvent:
- listenerWrapper = dispatchDiscreteEvent;
- break;
-
- case UserBlockingEvent:
- listenerWrapper = dispatchUserBlockingUpdate;
- break;
-
- case ContinuousEvent:
- default:
- listenerWrapper = dispatchEvent;
- break;
- }
-
- return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
- }
-
- function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
- {
- flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
- }
-
- discreteUpdates(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent);
- }
-
- function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) {
- {
- runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent));
- }
- }
-
- function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- if (!_enabled) {
- return;
- }
-
- var allowReplay = true;
-
- {
- // TODO: replaying capture phase events is currently broken
- // because we used to do it during top-level native bubble handlers
- // but now we use different bubble and capture handlers.
- // In eager mode, we attach capture listeners early, so we need
- // to filter them out until we fix the logic to handle them correctly.
- // This could've been outside the flag but I put it inside to reduce risk.
- allowReplay = (eventSystemFlags & IS_CAPTURE_PHASE) === 0;
- }
-
- if (allowReplay && hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(domEventName)) {
- // If we already have a queue of discrete events, and this is another discrete
- // event, then we can't dispatch it regardless of its target, since they
- // need to dispatch in order.
- queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
- domEventName, eventSystemFlags, targetContainer, nativeEvent);
- return;
- }
-
- var blockedOn = attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);
-
- if (blockedOn === null) {
- // We successfully dispatched this event.
- if (allowReplay) {
- clearIfContinuousEvent(domEventName, nativeEvent);
- }
-
- return;
- }
-
- if (allowReplay) {
- if (isReplayableDiscreteEvent(domEventName)) {
- // This this to be replayed later once the target is available.
- queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
- return;
- }
-
- if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {
- return;
- } // We need to clear only if we didn't queue because
- // queueing is accummulative.
-
-
- clearIfContinuousEvent(domEventName, nativeEvent);
- } // This is not replayable so we'll invoke it but without a target,
- // in case the event system needs to trace it.
-
-
- dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);
- } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.
-
- function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
- // TODO: Warn if _enabled is false.
- var nativeEventTarget = getEventTarget(nativeEvent);
- var targetInst = getClosestInstanceFromNode(nativeEventTarget);
-
- if (targetInst !== null) {
- var nearestMounted = getNearestMountedFiber(targetInst);
-
- if (nearestMounted === null) {
- // This tree has been unmounted already. Dispatch without a target.
- targetInst = null;
- } else {
- var tag = nearestMounted.tag;
-
- if (tag === SuspenseComponent) {
- var instance = getSuspenseInstanceFromFiber(nearestMounted);
-
- if (instance !== null) {
- // Queue the event to be replayed later. Abort dispatching since we
- // don't want this event dispatched twice through the event system.
- // TODO: If this is the first discrete event in the queue. Schedule an increased
- // priority for this boundary.
- return instance;
- } // This shouldn't happen, something went wrong but to avoid blocking
- // the whole system, dispatch the event without a target.
- // TODO: Warn.
-
-
- targetInst = null;
- } else if (tag === HostRoot) {
- var root = nearestMounted.stateNode;
-
- if (root.hydrate) {
- // If this happens during a replay something went wrong and it might block
- // the whole system.
- return getContainerFromFiber(nearestMounted);
- }
-
- targetInst = null;
- } else if (nearestMounted !== targetInst) {
- // If we get an event (ex: img onload) before committing that
- // component's mount, ignore it for now (that is, treat it as if it was an
- // event on a non-React tree). We might also consider queueing events and
- // dispatching them after the mount.
- targetInst = null;
- }
- }
- }
-
- dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer); // We're not blocked on anything.
-
- return null;
- }
-
- function addEventBubbleListener(target, eventType, listener) {
- target.addEventListener(eventType, listener, false);
- return listener;
- }
- function addEventCaptureListener(target, eventType, listener) {
- target.addEventListener(eventType, listener, true);
- return listener;
- }
- function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {
- target.addEventListener(eventType, listener, {
- capture: true,
- passive: passive
- });
- return listener;
- }
- function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {
- target.addEventListener(eventType, listener, {
- passive: passive
- });
- return listener;
- }
-
- /**
- * These variables store information about text content of a target node,
- * allowing comparison of content before and after a given event.
- *
- * Identify the node where selection currently begins, then observe
- * both its text content and its current position in the DOM. Since the
- * browser may natively replace the target node during composition, we can
- * use its position to find its replacement.
- *
- *
- */
- var root = null;
- var startText = null;
- var fallbackText = null;
- function initialize(nativeEventTarget) {
- root = nativeEventTarget;
- startText = getText();
- return true;
- }
- function reset() {
- root = null;
- startText = null;
- fallbackText = null;
- }
- function getData() {
- if (fallbackText) {
- return fallbackText;
- }
-
- var start;
- var startValue = startText;
- var startLength = startValue.length;
- var end;
- var endValue = getText();
- var endLength = endValue.length;
-
- for (start = 0; start < startLength; start++) {
- if (startValue[start] !== endValue[start]) {
- break;
- }
- }
-
- var minEnd = startLength - start;
-
- for (end = 1; end <= minEnd; end++) {
- if (startValue[startLength - end] !== endValue[endLength - end]) {
- break;
- }
- }
-
- var sliceTail = end > 1 ? 1 - end : undefined;
- fallbackText = endValue.slice(start, sliceTail);
- return fallbackText;
- }
- function getText() {
- if ('value' in root) {
- return root.value;
- }
-
- return root.textContent;
- }
-
- /**
- * `charCode` represents the actual "character code" and is safe to use with
- * `String.fromCharCode`. As such, only keys that correspond to printable
- * characters produce a valid `charCode`, the only exception to this is Enter.
- * The Tab-key is considered non-printable and does not have a `charCode`,
- * presumably because it does not produce a tab-character in browsers.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {number} Normalized `charCode` property.
- */
- function getEventCharCode(nativeEvent) {
- var charCode;
- var keyCode = nativeEvent.keyCode;
-
- if ('charCode' in nativeEvent) {
- charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
-
- if (charCode === 0 && keyCode === 13) {
- charCode = 13;
- }
- } else {
- // IE8 does not implement `charCode`, but `keyCode` has the correct value.
- charCode = keyCode;
- } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
- // report Enter as charCode 10 when ctrl is pressed.
-
-
- if (charCode === 10) {
- charCode = 13;
- } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
- // Must not discard the (non-)printable Enter-key.
-
-
- if (charCode >= 32 || charCode === 13) {
- return charCode;
- }
-
- return 0;
- }
-
- function functionThatReturnsTrue() {
- return true;
- }
-
- function functionThatReturnsFalse() {
- return false;
- } // This is intentionally a factory so that we have different returned constructors.
- // If we had a single constructor, it would be megamorphic and engines would deopt.
-
-
- function createSyntheticEvent(Interface) {
- /**
- * Synthetic events are dispatched by event plugins, typically in response to a
- * top-level event delegation handler.
- *
- * These systems should generally use pooling to reduce the frequency of garbage
- * collection. The system should check `isPersistent` to determine whether the
- * event should be released into the pool after being dispatched. Users that
- * need a persisted event should invoke `persist`.
- *
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
- * DOM interface; custom application-specific events can also subclass this.
- */
- function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
- this._reactName = reactName;
- this._targetInst = targetInst;
- this.type = reactEventType;
- this.nativeEvent = nativeEvent;
- this.target = nativeEventTarget;
- this.currentTarget = null;
-
- for (var _propName in Interface) {
- if (!Interface.hasOwnProperty(_propName)) {
- continue;
- }
-
- var normalize = Interface[_propName];
-
- if (normalize) {
- this[_propName] = normalize(nativeEvent);
- } else {
- this[_propName] = nativeEvent[_propName];
- }
- }
-
- var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
-
- if (defaultPrevented) {
- this.isDefaultPrevented = functionThatReturnsTrue;
- } else {
- this.isDefaultPrevented = functionThatReturnsFalse;
- }
-
- this.isPropagationStopped = functionThatReturnsFalse;
- return this;
- }
-
- _assign(SyntheticBaseEvent.prototype, {
- preventDefault: function () {
- this.defaultPrevented = true;
- var event = this.nativeEvent;
-
- if (!event) {
- return;
- }
-
- if (event.preventDefault) {
- event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE
- } else if (typeof event.returnValue !== 'unknown') {
- event.returnValue = false;
- }
-
- this.isDefaultPrevented = functionThatReturnsTrue;
- },
- stopPropagation: function () {
- var event = this.nativeEvent;
-
- if (!event) {
- return;
- }
-
- if (event.stopPropagation) {
- event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE
- } else if (typeof event.cancelBubble !== 'unknown') {
- // The ChangeEventPlugin registers a "propertychange" event for
- // IE. This event does not support bubbling or cancelling, and
- // any references to cancelBubble throw "Member not found". A
- // typeof check of "unknown" circumvents this issue (and is also
- // IE specific).
- event.cancelBubble = true;
- }
-
- this.isPropagationStopped = functionThatReturnsTrue;
- },
-
- /**
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
- * them back into the pool. This allows a way to hold onto a reference that
- * won't be added back into the pool.
- */
- persist: function () {// Modern event system doesn't use pooling.
- },
-
- /**
- * Checks if this event should be released back into the pool.
- *
- * @return {boolean} True if this should not be released, false otherwise.
- */
- isPersistent: functionThatReturnsTrue
- });
-
- return SyntheticBaseEvent;
- }
- /**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var EventInterface = {
- eventPhase: 0,
- bubbles: 0,
- cancelable: 0,
- timeStamp: function (event) {
- return event.timeStamp || Date.now();
- },
- defaultPrevented: 0,
- isTrusted: 0
- };
- var SyntheticEvent = createSyntheticEvent(EventInterface);
-
- var UIEventInterface = _assign({}, EventInterface, {
- view: 0,
- detail: 0
- });
-
- var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
- var lastMovementX;
- var lastMovementY;
- var lastMouseEvent;
-
- function updateMouseMovementPolyfillState(event) {
- if (event !== lastMouseEvent) {
- if (lastMouseEvent && event.type === 'mousemove') {
- lastMovementX = event.screenX - lastMouseEvent.screenX;
- lastMovementY = event.screenY - lastMouseEvent.screenY;
- } else {
- lastMovementX = 0;
- lastMovementY = 0;
- }
-
- lastMouseEvent = event;
- }
- }
- /**
- * @interface MouseEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var MouseEventInterface = _assign({}, UIEventInterface, {
- screenX: 0,
- screenY: 0,
- clientX: 0,
- clientY: 0,
- pageX: 0,
- pageY: 0,
- ctrlKey: 0,
- shiftKey: 0,
- altKey: 0,
- metaKey: 0,
- getModifierState: getEventModifierState,
- button: 0,
- buttons: 0,
- relatedTarget: function (event) {
- if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;
- return event.relatedTarget;
- },
- movementX: function (event) {
- if ('movementX' in event) {
- return event.movementX;
- }
-
- updateMouseMovementPolyfillState(event);
- return lastMovementX;
- },
- movementY: function (event) {
- if ('movementY' in event) {
- return event.movementY;
- } // Don't need to call updateMouseMovementPolyfillState() here
- // because it's guaranteed to have already run when movementX
- // was copied.
-
-
- return lastMovementY;
- }
- });
-
- var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
- /**
- * @interface DragEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var DragEventInterface = _assign({}, MouseEventInterface, {
- dataTransfer: 0
- });
-
- var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
- /**
- * @interface FocusEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var FocusEventInterface = _assign({}, UIEventInterface, {
- relatedTarget: 0
- });
-
- var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
- */
-
- var AnimationEventInterface = _assign({}, EventInterface, {
- animationName: 0,
- elapsedTime: 0,
- pseudoElement: 0
- });
-
- var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/clipboard-apis/
- */
-
- var ClipboardEventInterface = _assign({}, EventInterface, {
- clipboardData: function (event) {
- return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
- }
- });
-
- var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
- */
-
- var CompositionEventInterface = _assign({}, EventInterface, {
- data: 0
- });
-
- var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
- * /#events-inputevents
- */
- // Happens to share the same list for now.
-
- var SyntheticInputEvent = SyntheticCompositionEvent;
- /**
- * Normalization of deprecated HTML5 `key` values
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-
- var normalizeKey = {
- Esc: 'Escape',
- Spacebar: ' ',
- Left: 'ArrowLeft',
- Up: 'ArrowUp',
- Right: 'ArrowRight',
- Down: 'ArrowDown',
- Del: 'Delete',
- Win: 'OS',
- Menu: 'ContextMenu',
- Apps: 'ContextMenu',
- Scroll: 'ScrollLock',
- MozPrintableKey: 'Unidentified'
- };
- /**
- * Translation from legacy `keyCode` to HTML5 `key`
- * Only special keys supported, all others depend on keyboard layout or browser
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-
- var translateToKey = {
- '8': 'Backspace',
- '9': 'Tab',
- '12': 'Clear',
- '13': 'Enter',
- '16': 'Shift',
- '17': 'Control',
- '18': 'Alt',
- '19': 'Pause',
- '20': 'CapsLock',
- '27': 'Escape',
- '32': ' ',
- '33': 'PageUp',
- '34': 'PageDown',
- '35': 'End',
- '36': 'Home',
- '37': 'ArrowLeft',
- '38': 'ArrowUp',
- '39': 'ArrowRight',
- '40': 'ArrowDown',
- '45': 'Insert',
- '46': 'Delete',
- '112': 'F1',
- '113': 'F2',
- '114': 'F3',
- '115': 'F4',
- '116': 'F5',
- '117': 'F6',
- '118': 'F7',
- '119': 'F8',
- '120': 'F9',
- '121': 'F10',
- '122': 'F11',
- '123': 'F12',
- '144': 'NumLock',
- '145': 'ScrollLock',
- '224': 'Meta'
- };
- /**
- * @param {object} nativeEvent Native browser event.
- * @return {string} Normalized `key` property.
- */
-
- function getEventKey(nativeEvent) {
- if (nativeEvent.key) {
- // Normalize inconsistent values reported by browsers due to
- // implementations of a working draft specification.
- // FireFox implements `key` but returns `MozPrintableKey` for all
- // printable characters (normalized to `Unidentified`), ignore it.
- var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
-
- if (key !== 'Unidentified') {
- return key;
- }
- } // Browser does not implement `key`, polyfill as much of it as we can.
-
-
- if (nativeEvent.type === 'keypress') {
- var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
- // thus be captured by `keypress`, no other non-printable key should.
-
- return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
- }
-
- if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
- // While user keyboard layout determines the actual meaning of each
- // `keyCode` value, almost all function keys have a universal value.
- return translateToKey[nativeEvent.keyCode] || 'Unidentified';
- }
-
- return '';
- }
- /**
- * Translation from modifier key to the associated property in the event.
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
- */
-
-
- var modifierKeyToProp = {
- Alt: 'altKey',
- Control: 'ctrlKey',
- Meta: 'metaKey',
- Shift: 'shiftKey'
- }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
- // getModifierState. If getModifierState is not supported, we map it to a set of
- // modifier keys exposed by the event. In this case, Lock-keys are not supported.
-
- function modifierStateGetter(keyArg) {
- var syntheticEvent = this;
- var nativeEvent = syntheticEvent.nativeEvent;
-
- if (nativeEvent.getModifierState) {
- return nativeEvent.getModifierState(keyArg);
- }
-
- var keyProp = modifierKeyToProp[keyArg];
- return keyProp ? !!nativeEvent[keyProp] : false;
- }
-
- function getEventModifierState(nativeEvent) {
- return modifierStateGetter;
- }
- /**
- * @interface KeyboardEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
-
- var KeyboardEventInterface = _assign({}, UIEventInterface, {
- key: getEventKey,
- code: 0,
- location: 0,
- ctrlKey: 0,
- shiftKey: 0,
- altKey: 0,
- metaKey: 0,
- repeat: 0,
- locale: 0,
- getModifierState: getEventModifierState,
- // Legacy Interface
- charCode: function (event) {
- // `charCode` is the result of a KeyPress event and represents the value of
- // the actual printable character.
- // KeyPress is deprecated, but its replacement is not yet final and not
- // implemented in any major browser. Only KeyPress has charCode.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
-
- return 0;
- },
- keyCode: function (event) {
- // `keyCode` is the result of a KeyDown/Up event and represents the value of
- // physical keyboard key.
- // The actual meaning of the value depends on the users' keyboard layout
- // which cannot be detected. Assuming that it is a US keyboard layout
- // provides a surprisingly accurate mapping for US and European users.
- // Due to this, it is left to the user to implement at this time.
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
-
- return 0;
- },
- which: function (event) {
- // `which` is an alias for either `keyCode` or `charCode` depending on the
- // type of the event.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
-
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
-
- return 0;
- }
- });
-
- var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
- /**
- * @interface PointerEvent
- * @see http://www.w3.org/TR/pointerevents/
- */
-
- var PointerEventInterface = _assign({}, MouseEventInterface, {
- pointerId: 0,
- width: 0,
- height: 0,
- pressure: 0,
- tangentialPressure: 0,
- tiltX: 0,
- tiltY: 0,
- twist: 0,
- pointerType: 0,
- isPrimary: 0
- });
-
- var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
- /**
- * @interface TouchEvent
- * @see http://www.w3.org/TR/touch-events/
- */
-
- var TouchEventInterface = _assign({}, UIEventInterface, {
- touches: 0,
- targetTouches: 0,
- changedTouches: 0,
- altKey: 0,
- metaKey: 0,
- ctrlKey: 0,
- shiftKey: 0,
- getModifierState: getEventModifierState
- });
-
- var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
- /**
- * @interface Event
- * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
- */
-
- var TransitionEventInterface = _assign({}, EventInterface, {
- propertyName: 0,
- elapsedTime: 0,
- pseudoElement: 0
- });
-
- var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
- /**
- * @interface WheelEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-
- var WheelEventInterface = _assign({}, MouseEventInterface, {
- deltaX: function (event) {
- return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
- },
- deltaY: function (event) {
- return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
- 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
- 'wheelDelta' in event ? -event.wheelDelta : 0;
- },
- deltaZ: 0,
- // Browsers without "deltaMode" is reporting in raw wheel delta where one
- // notch on the scroll is always +/- 120, roughly equivalent to pixels.
- // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
- // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
- deltaMode: 0
- });
-
- var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);
-
- var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
-
- var START_KEYCODE = 229;
- var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
- var documentMode = null;
-
- if (canUseDOM && 'documentMode' in document) {
- documentMode = document.documentMode;
- } // Webkit offers a very useful `textInput` event that can be used to
- // directly represent `beforeInput`. The IE `textinput` event is not as
- // useful, so we don't use it.
-
-
- var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
- // by the native compositionend event may be incorrect. Japanese ideographic
- // spaces, for instance (\u3000) are not recorded correctly.
-
- var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
- var SPACEBAR_CODE = 32;
- var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
-
- function registerEvents() {
- registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);
- registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
- } // Track whether we've ever handled a keypress on the space key.
-
-
- var hasSpaceKeypress = false;
- /**
- * Return whether a native keypress event is assumed to be a command.
- * This is required because Firefox fires `keypress` events for key commands
- * (cut, copy, select-all, etc.) even though no character is inserted.
- */
-
- function isKeypressCommand(nativeEvent) {
- return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
- !(nativeEvent.ctrlKey && nativeEvent.altKey);
- }
- /**
- * Translate native top level events into event types.
- */
-
-
- function getCompositionEventType(domEventName) {
- switch (domEventName) {
- case 'compositionstart':
- return 'onCompositionStart';
-
- case 'compositionend':
- return 'onCompositionEnd';
-
- case 'compositionupdate':
- return 'onCompositionUpdate';
- }
- }
- /**
- * Does our fallback best-guess model think this event signifies that
- * composition has begun?
- */
-
-
- function isFallbackCompositionStart(domEventName, nativeEvent) {
- return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;
- }
- /**
- * Does our fallback mode think that this event is the end of composition?
- */
-
-
- function isFallbackCompositionEnd(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'keyup':
- // Command keys insert or clear IME input.
- return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
-
- case 'keydown':
- // Expect IME keyCode on each keydown. If we get any other
- // code we must have exited earlier.
- return nativeEvent.keyCode !== START_KEYCODE;
-
- case 'keypress':
- case 'mousedown':
- case 'focusout':
- // Events are not possible without cancelling IME.
- return true;
-
- default:
- return false;
- }
- }
- /**
- * Google Input Tools provides composition data via a CustomEvent,
- * with the `data` property populated in the `detail` object. If this
- * is available on the event object, use it. If not, this is a plain
- * composition event and we have nothing special to extract.
- *
- * @param {object} nativeEvent
- * @return {?string}
- */
-
-
- function getDataFromCustomEvent(nativeEvent) {
- var detail = nativeEvent.detail;
-
- if (typeof detail === 'object' && 'data' in detail) {
- return detail.data;
- }
-
- return null;
- }
- /**
- * Check if a composition event was triggered by Korean IME.
- * Our fallback mode does not work well with IE's Korean IME,
- * so just use native composition events when Korean IME is used.
- * Although CompositionEvent.locale property is deprecated,
- * it is available in IE, where our fallback mode is enabled.
- *
- * @param {object} nativeEvent
- * @return {boolean}
- */
-
-
- function isUsingKoreanIME(nativeEvent) {
- return nativeEvent.locale === 'ko';
- } // Track the current IME composition status, if any.
-
-
- var isComposing = false;
- /**
- * @return {?object} A SyntheticCompositionEvent.
- */
-
- function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
- var eventType;
- var fallbackData;
-
- if (canUseCompositionEvent) {
- eventType = getCompositionEventType(domEventName);
- } else if (!isComposing) {
- if (isFallbackCompositionStart(domEventName, nativeEvent)) {
- eventType = 'onCompositionStart';
- }
- } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {
- eventType = 'onCompositionEnd';
- }
-
- if (!eventType) {
- return null;
- }
-
- if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
- // The current composition is stored statically and must not be
- // overwritten while composition continues.
- if (!isComposing && eventType === 'onCompositionStart') {
- isComposing = initialize(nativeEventTarget);
- } else if (eventType === 'onCompositionEnd') {
- if (isComposing) {
- fallbackData = getData();
- }
- }
- }
-
- var listeners = accumulateTwoPhaseListeners(targetInst, eventType);
-
- if (listeners.length > 0) {
- var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
-
- if (fallbackData) {
- // Inject data generated from fallback path into the synthetic event.
- // This matches the property of native CompositionEventInterface.
- event.data = fallbackData;
- } else {
- var customData = getDataFromCustomEvent(nativeEvent);
-
- if (customData !== null) {
- event.data = customData;
- }
- }
- }
- }
-
- function getNativeBeforeInputChars(domEventName, nativeEvent) {
- switch (domEventName) {
- case 'compositionend':
- return getDataFromCustomEvent(nativeEvent);
-
- case 'keypress':
- /**
- * If native `textInput` events are available, our goal is to make
- * use of them. However, there is a special case: the spacebar key.
- * In Webkit, preventing default on a spacebar `textInput` event
- * cancels character insertion, but it *also* causes the browser
- * to fall back to its default spacebar behavior of scrolling the
- * page.
- *
- * Tracking at:
- * https://code.google.com/p/chromium/issues/detail?id=355103
- *
- * To avoid this issue, use the keypress event as if no `textInput`
- * event is available.
- */
- var which = nativeEvent.which;
-
- if (which !== SPACEBAR_CODE) {
- return null;
- }
-
- hasSpaceKeypress = true;
- return SPACEBAR_CHAR;
-
- case 'textInput':
- // Record the characters to be added to the DOM.
- var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
- // it at the keypress level and bail immediately. Android Chrome
- // doesn't give us keycodes, so we need to ignore it.
-
- if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
- return null;
- }
-
- return chars;
-
- default:
- // For other native event types, do nothing.
- return null;
- }
- }
- /**
- * For browsers that do not provide the `textInput` event, extract the
- * appropriate string to use for SyntheticInputEvent.
- */
-
-
- function getFallbackBeforeInputChars(domEventName, nativeEvent) {
- // If we are currently composing (IME) and using a fallback to do so,
- // try to extract the composed characters from the fallback object.
- // If composition event is available, we extract a string only at
- // compositionevent, otherwise extract it at fallback events.
- if (isComposing) {
- if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
- var chars = getData();
- reset();
- isComposing = false;
- return chars;
- }
-
- return null;
- }
-
- switch (domEventName) {
- case 'paste':
- // If a paste event occurs after a keypress, throw out the input
- // chars. Paste events should not lead to BeforeInput events.
- return null;
-
- case 'keypress':
- /**
- * As of v27, Firefox may fire keypress events even when no character
- * will be inserted. A few possibilities:
- *
- * - `which` is `0`. Arrow keys, Esc key, etc.
- *
- * - `which` is the pressed key code, but no char is available.
- * Ex: 'AltGr + d` in Polish. There is no modified character for
- * this key combination and no character is inserted into the
- * document, but FF fires the keypress for char code `100` anyway.
- * No `input` event will occur.
- *
- * - `which` is the pressed key code, but a command combination is
- * being used. Ex: `Cmd+C`. No character is inserted, and no
- * `input` event will occur.
- */
- if (!isKeypressCommand(nativeEvent)) {
- // IE fires the `keypress` event when a user types an emoji via
- // Touch keyboard of Windows. In such a case, the `char` property
- // holds an emoji character like `\uD83D\uDE0A`. Because its length
- // is 2, the property `which` does not represent an emoji correctly.
- // In such a case, we directly return the `char` property instead of
- // using `which`.
- if (nativeEvent.char && nativeEvent.char.length > 1) {
- return nativeEvent.char;
- } else if (nativeEvent.which) {
- return String.fromCharCode(nativeEvent.which);
- }
- }
-
- return null;
-
- case 'compositionend':
- return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
-
- default:
- return null;
- }
- }
- /**
- * Extract a SyntheticInputEvent for `beforeInput`, based on either native
- * `textInput` or fallback behavior.
- *
- * @return {?object} A SyntheticInputEvent.
- */
-
-
- function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
- var chars;
-
- if (canUseTextInputEvent) {
- chars = getNativeBeforeInputChars(domEventName, nativeEvent);
- } else {
- chars = getFallbackBeforeInputChars(domEventName, nativeEvent);
- } // If no characters are being inserted, no BeforeInput event should
- // be fired.
-
-
- if (!chars) {
- return null;
- }
-
- var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');
-
- if (listeners.length > 0) {
- var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- event.data = chars;
- }
- }
- /**
- * Create an `onBeforeInput` event to match
- * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
- *
- * This event plugin is based on the native `textInput` event
- * available in Chrome, Safari, Opera, and IE. This event fires after
- * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
- *
- * `beforeInput` is spec'd but not implemented in any browsers, and
- * the `input` event does not provide any useful information about what has
- * actually been added, contrary to the spec. Thus, `textInput` is the best
- * available event to identify the characters that have actually been inserted
- * into the target node.
- *
- * This plugin is also responsible for emitting `composition` events, thus
- * allowing us to share composition fallback code for both `beforeInput` and
- * `composition` event types.
- */
-
-
- function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- }
-
- /**
- * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
- */
- var supportedInputTypes = {
- color: true,
- date: true,
- datetime: true,
- 'datetime-local': true,
- email: true,
- month: true,
- number: true,
- password: true,
- range: true,
- search: true,
- tel: true,
- text: true,
- time: true,
- url: true,
- week: true
- };
-
- function isTextInputElement(elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
-
- if (nodeName === 'input') {
- return !!supportedInputTypes[elem.type];
- }
-
- if (nodeName === 'textarea') {
- return true;
- }
-
- return false;
- }
-
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
-
- function isEventSupported(eventNameSuffix) {
- if (!canUseDOM) {
- return false;
- }
-
- var eventName = 'on' + eventNameSuffix;
- var isSupported = (eventName in document);
-
- if (!isSupported) {
- var element = document.createElement('div');
- element.setAttribute(eventName, 'return;');
- isSupported = typeof element[eventName] === 'function';
- }
-
- return isSupported;
- }
-
- function registerEvents$1() {
- registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);
- }
-
- function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
- // Flag this event loop as needing state restore.
- enqueueStateRestore(target);
- var listeners = accumulateTwoPhaseListeners(inst, 'onChange');
-
- if (listeners.length > 0) {
- var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- }
- }
- /**
- * For IE shims
- */
-
-
- var activeElement = null;
- var activeElementInst = null;
- /**
- * SECTION: handle `change` event
- */
-
- function shouldUseChangeEvent(elem) {
- var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
- }
-
- function manualDispatchChangeEvent(nativeEvent) {
- var dispatchQueue = [];
- createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
- // other events and have it go through ReactBrowserEventEmitter. Since it
- // doesn't, we manually listen for the events and so we have to enqueue and
- // process the abstract event manually.
- //
- // Batching is necessary here in order to ensure that all event handlers run
- // before the next rerender (including event handlers attached to ancestor
- // elements instead of directly on the input). Without this, controlled
- // components don't work properly in conjunction with event bubbling because
- // the component is rerendered and the value reverted before all the event
- // handlers can run. See https://github.com/facebook/react/issues/708.
-
- batchedUpdates(runEventInBatch, dispatchQueue);
- }
-
- function runEventInBatch(dispatchQueue) {
- processDispatchQueue(dispatchQueue, 0);
- }
-
- function getInstIfValueChanged(targetInst) {
- var targetNode = getNodeFromInstance(targetInst);
-
- if (updateValueIfChanged(targetNode)) {
- return targetInst;
- }
- }
-
- function getTargetInstForChangeEvent(domEventName, targetInst) {
- if (domEventName === 'change') {
- return targetInst;
- }
- }
- /**
- * SECTION: handle `input` event
- */
-
-
- var isInputEventSupported = false;
-
- if (canUseDOM) {
- // IE9 claims to support the input event but fails to trigger it when
- // deleting text, so we ignore its input events.
- isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
- }
- /**
- * (For IE <=9) Starts tracking propertychange events on the passed-in element
- * and override the value property so that we can distinguish user events from
- * value changes in JS.
- */
-
-
- function startWatchingForValueChange(target, targetInst) {
- activeElement = target;
- activeElementInst = targetInst;
- activeElement.attachEvent('onpropertychange', handlePropertyChange);
- }
- /**
- * (For IE <=9) Removes the event listeners from the currently-tracked element,
- * if any exists.
- */
-
-
- function stopWatchingForValueChange() {
- if (!activeElement) {
- return;
- }
-
- activeElement.detachEvent('onpropertychange', handlePropertyChange);
- activeElement = null;
- activeElementInst = null;
- }
- /**
- * (For IE <=9) Handles a propertychange event, sending a `change` event if
- * the value of the active element has changed.
- */
-
-
- function handlePropertyChange(nativeEvent) {
- if (nativeEvent.propertyName !== 'value') {
- return;
- }
-
- if (getInstIfValueChanged(activeElementInst)) {
- manualDispatchChangeEvent(nativeEvent);
- }
- }
-
- function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
- if (domEventName === 'focusin') {
- // In IE9, propertychange fires for most input events but is buggy and
- // doesn't fire when text is deleted, but conveniently, selectionchange
- // appears to fire in all of the remaining cases so we catch those and
- // forward the event if the value has changed
- // In either case, we don't want to call the event handler if the value
- // is changed from JS so we redefine a setter for `.value` that updates
- // our activeElementValue variable, allowing us to ignore those changes
- //
- // stopWatching() should be a noop here but we call it just in case we
- // missed a blur event somehow.
- stopWatchingForValueChange();
- startWatchingForValueChange(target, targetInst);
- } else if (domEventName === 'focusout') {
- stopWatchingForValueChange();
- }
- } // For IE8 and IE9.
-
-
- function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
- if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {
- // On the selectionchange event, the target is just document which isn't
- // helpful for us so just check activeElement instead.
- //
- // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
- // propertychange on the first input event after setting `value` from a
- // script and fires only keydown, keypress, keyup. Catching keyup usually
- // gets it and catching keydown lets us fire an event for the first
- // keystroke if user does a key repeat (it'll be a little delayed: right
- // before the second keystroke). Other input methods (e.g., paste) seem to
- // fire selectionchange normally.
- return getInstIfValueChanged(activeElementInst);
- }
- }
- /**
- * SECTION: handle `click` event
- */
-
-
- function shouldUseClickEvent(elem) {
- // Use the `click` event to detect changes to checkbox and radio inputs.
- // This approach works across all browsers, whereas `change` does not fire
- // until `blur` in IE8.
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
- }
-
- function getTargetInstForClickEvent(domEventName, targetInst) {
- if (domEventName === 'click') {
- return getInstIfValueChanged(targetInst);
- }
- }
-
- function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
- if (domEventName === 'input' || domEventName === 'change') {
- return getInstIfValueChanged(targetInst);
- }
- }
-
- function handleControlledInputBlur(node) {
- var state = node._wrapperState;
-
- if (!state || !state.controlled || node.type !== 'number') {
- return;
- }
-
- {
- // If controlled, assign the value attribute to the current value on blur
- setDefaultValue(node, 'number', node.value);
- }
- }
- /**
- * This plugin creates an `onChange` event that normalizes change events
- * across form elements. This event fires at a time when it's possible to
- * change the element's value without seeing a flicker.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - select
- */
-
-
- function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
- var getTargetInstFunc, handleEventFunc;
-
- if (shouldUseChangeEvent(targetNode)) {
- getTargetInstFunc = getTargetInstForChangeEvent;
- } else if (isTextInputElement(targetNode)) {
- if (isInputEventSupported) {
- getTargetInstFunc = getTargetInstForInputOrChangeEvent;
- } else {
- getTargetInstFunc = getTargetInstForInputEventPolyfill;
- handleEventFunc = handleEventsForInputEventPolyfill;
- }
- } else if (shouldUseClickEvent(targetNode)) {
- getTargetInstFunc = getTargetInstForClickEvent;
- }
-
- if (getTargetInstFunc) {
- var inst = getTargetInstFunc(domEventName, targetInst);
-
- if (inst) {
- createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
- return;
- }
- }
-
- if (handleEventFunc) {
- handleEventFunc(domEventName, targetNode, targetInst);
- } // When blurring, set the value attribute for number inputs
-
-
- if (domEventName === 'focusout') {
- handleControlledInputBlur(targetNode);
- }
- }
-
- function registerEvents$2() {
- registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);
- registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);
- registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);
- registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);
- }
- /**
- * For almost every interaction we care about, there will be both a top-level
- * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
- * we do not extract duplicate events. However, moving the mouse into the
- * browser from outside will not fire a `mouseout` event. In this case, we use
- * the `mouseover` top-level event.
- */
-
-
- function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';
- var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';
-
- if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0) {
- // If this is an over event with a target, we might have already dispatched
- // the event in the out event of the other target. If this is replayed,
- // then it's because we couldn't dispatch against this target previously
- // so we have to do it now instead.
- var related = nativeEvent.relatedTarget || nativeEvent.fromElement;
-
- if (related) {
- // If the related node is managed by React, we can assume that we have
- // already dispatched the corresponding events during its mouseout.
- if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {
- return;
- }
- }
- }
-
- if (!isOutEvent && !isOverEvent) {
- // Must not be a mouse or pointer in or out - ignoring.
- return;
- }
-
- var win; // TODO: why is this nullable in the types but we read from it?
-
- if (nativeEventTarget.window === nativeEventTarget) {
- // `nativeEventTarget` is probably a window object.
- win = nativeEventTarget;
- } else {
- // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
- var doc = nativeEventTarget.ownerDocument;
-
- if (doc) {
- win = doc.defaultView || doc.parentWindow;
- } else {
- win = window;
- }
- }
-
- var from;
- var to;
-
- if (isOutEvent) {
- var _related = nativeEvent.relatedTarget || nativeEvent.toElement;
-
- from = targetInst;
- to = _related ? getClosestInstanceFromNode(_related) : null;
-
- if (to !== null) {
- var nearestMounted = getNearestMountedFiber(to);
-
- if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
- to = null;
- }
- }
- } else {
- // Moving to a node from outside the window.
- from = null;
- to = targetInst;
- }
-
- if (from === to) {
- // Nothing pertains to our managed components.
- return;
- }
-
- var SyntheticEventCtor = SyntheticMouseEvent;
- var leaveEventType = 'onMouseLeave';
- var enterEventType = 'onMouseEnter';
- var eventTypePrefix = 'mouse';
-
- if (domEventName === 'pointerout' || domEventName === 'pointerover') {
- SyntheticEventCtor = SyntheticPointerEvent;
- leaveEventType = 'onPointerLeave';
- enterEventType = 'onPointerEnter';
- eventTypePrefix = 'pointer';
- }
-
- var fromNode = from == null ? win : getNodeFromInstance(from);
- var toNode = to == null ? win : getNodeFromInstance(to);
- var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);
- leave.target = fromNode;
- leave.relatedTarget = toNode;
- var enter = null; // We should only process this nativeEvent if we are processing
- // the first ancestor. Next time, we will ignore the event.
-
- var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);
-
- if (nativeTargetInst === targetInst) {
- var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);
- enterEvent.target = toNode;
- enterEvent.relatedTarget = fromNode;
- enter = enterEvent;
- }
-
- accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
- }
-
- /**
- * inlined Object.is polyfill to avoid requiring consumers ship their own
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
- */
- function is(x, y) {
- return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
- ;
- }
-
- var objectIs = typeof Object.is === 'function' ? Object.is : is;
-
- var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
- /**
- * Performs equality by iterating through keys on an object and returning false
- * when any key has values which are not strictly equal between the arguments.
- * Returns true when the values of all keys are strictly equal.
- */
-
- function shallowEqual(objA, objB) {
- if (objectIs(objA, objB)) {
- return true;
- }
-
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
- return false;
- }
-
- var keysA = Object.keys(objA);
- var keysB = Object.keys(objB);
-
- if (keysA.length !== keysB.length) {
- return false;
- } // Test for A's keys different from B.
-
-
- for (var i = 0; i < keysA.length; i++) {
- if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
- return false;
- }
- }
-
- return true;
- }
-
- /**
- * Given any node return the first leaf node without children.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {DOMElement|DOMTextNode}
- */
-
- function getLeafNode(node) {
- while (node && node.firstChild) {
- node = node.firstChild;
- }
-
- return node;
- }
- /**
- * Get the next sibling within a container. This will walk up the
- * DOM if a node's siblings have been exhausted.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {?DOMElement|DOMTextNode}
- */
-
-
- function getSiblingNode(node) {
- while (node) {
- if (node.nextSibling) {
- return node.nextSibling;
- }
-
- node = node.parentNode;
- }
- }
- /**
- * Get object describing the nodes which contain characters at offset.
- *
- * @param {DOMElement|DOMTextNode} root
- * @param {number} offset
- * @return {?object}
- */
-
-
- function getNodeForCharacterOffset(root, offset) {
- var node = getLeafNode(root);
- var nodeStart = 0;
- var nodeEnd = 0;
-
- while (node) {
- if (node.nodeType === TEXT_NODE) {
- nodeEnd = nodeStart + node.textContent.length;
-
- if (nodeStart <= offset && nodeEnd >= offset) {
- return {
- node: node,
- offset: offset - nodeStart
- };
- }
-
- nodeStart = nodeEnd;
- }
-
- node = getLeafNode(getSiblingNode(node));
- }
- }
-
- /**
- * @param {DOMElement} outerNode
- * @return {?object}
- */
-
- function getOffsets(outerNode) {
- var ownerDocument = outerNode.ownerDocument;
- var win = ownerDocument && ownerDocument.defaultView || window;
- var selection = win.getSelection && win.getSelection();
-
- if (!selection || selection.rangeCount === 0) {
- return null;
- }
-
- var anchorNode = selection.anchorNode,
- anchorOffset = selection.anchorOffset,
- focusNode = selection.focusNode,
- focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
- // up/down buttons on an <input type="number">. Anonymous divs do not seem to
- // expose properties, triggering a "Permission denied error" if any of its
- // properties are accessed. The only seemingly possible way to avoid erroring
- // is to access a property that typically works for non-anonymous divs and
- // catch any error that may otherwise arise. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
-
- try {
- /* eslint-disable no-unused-expressions */
- anchorNode.nodeType;
- focusNode.nodeType;
- /* eslint-enable no-unused-expressions */
- } catch (e) {
- return null;
- }
-
- return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
- }
- /**
- * Returns {start, end} where `start` is the character/codepoint index of
- * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
- * `end` is the index of (focusNode, focusOffset).
- *
- * Returns null if you pass in garbage input but we should probably just crash.
- *
- * Exported only for testing.
- */
-
- function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
- var length = 0;
- var start = -1;
- var end = -1;
- var indexWithinAnchor = 0;
- var indexWithinFocus = 0;
- var node = outerNode;
- var parentNode = null;
-
- outer: while (true) {
- var next = null;
-
- while (true) {
- if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
- start = length + anchorOffset;
- }
-
- if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
- end = length + focusOffset;
- }
-
- if (node.nodeType === TEXT_NODE) {
- length += node.nodeValue.length;
- }
-
- if ((next = node.firstChild) === null) {
- break;
- } // Moving from `node` to its first child `next`.
-
-
- parentNode = node;
- node = next;
- }
-
- while (true) {
- if (node === outerNode) {
- // If `outerNode` has children, this is always the second time visiting
- // it. If it has no children, this is still the first loop, and the only
- // valid selection is anchorNode and focusNode both equal to this node
- // and both offsets 0, in which case we will have handled above.
- break outer;
- }
-
- if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
- start = length;
- }
-
- if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
- end = length;
- }
-
- if ((next = node.nextSibling) !== null) {
- break;
- }
-
- node = parentNode;
- parentNode = node.parentNode;
- } // Moving from `node` to its next sibling `next`.
-
-
- node = next;
- }
-
- if (start === -1 || end === -1) {
- // This should never happen. (Would happen if the anchor/focus nodes aren't
- // actually inside the passed-in node.)
- return null;
- }
-
- return {
- start: start,
- end: end
- };
- }
- /**
- * In modern non-IE browsers, we can support both forward and backward
- * selections.
- *
- * Note: IE10+ supports the Selection object, but it does not support
- * the `extend` method, which means that even in modern IE, it's not possible
- * to programmatically create a backward selection. Thus, for all IE
- * versions, we use the old IE API to create our selections.
- *
- * @param {DOMElement|DOMTextNode} node
- * @param {object} offsets
- */
-
- function setOffsets(node, offsets) {
- var doc = node.ownerDocument || document;
- var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
- // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
- // fails when pasting 100+ items)
-
- if (!win.getSelection) {
- return;
- }
-
- var selection = win.getSelection();
- var length = node.textContent.length;
- var start = Math.min(offsets.start, length);
- var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
- // Flip backward selections, so we can set with a single range.
-
- if (!selection.extend && start > end) {
- var temp = end;
- end = start;
- start = temp;
- }
-
- var startMarker = getNodeForCharacterOffset(node, start);
- var endMarker = getNodeForCharacterOffset(node, end);
-
- if (startMarker && endMarker) {
- if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
- return;
- }
-
- var range = doc.createRange();
- range.setStart(startMarker.node, startMarker.offset);
- selection.removeAllRanges();
-
- if (start > end) {
- selection.addRange(range);
- selection.extend(endMarker.node, endMarker.offset);
- } else {
- range.setEnd(endMarker.node, endMarker.offset);
- selection.addRange(range);
- }
- }
- }
-
- function isTextNode(node) {
- return node && node.nodeType === TEXT_NODE;
- }
-
- function containsNode(outerNode, innerNode) {
- if (!outerNode || !innerNode) {
- return false;
- } else if (outerNode === innerNode) {
- return true;
- } else if (isTextNode(outerNode)) {
- return false;
- } else if (isTextNode(innerNode)) {
- return containsNode(outerNode, innerNode.parentNode);
- } else if ('contains' in outerNode) {
- return outerNode.contains(innerNode);
- } else if (outerNode.compareDocumentPosition) {
- return !!(outerNode.compareDocumentPosition(innerNode) & 16);
- } else {
- return false;
- }
- }
-
- function isInDocument(node) {
- return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
- }
-
- function isSameOriginFrame(iframe) {
- try {
- // Accessing the contentDocument of a HTMLIframeElement can cause the browser
- // to throw, e.g. if it has a cross-origin src attribute.
- // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
- // iframe.contentDocument.defaultView;
- // A safety way is to access one of the cross origin properties: Window or Location
- // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
- // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
- return typeof iframe.contentWindow.location.href === 'string';
- } catch (err) {
- return false;
- }
- }
-
- function getActiveElementDeep() {
- var win = window;
- var element = getActiveElement();
-
- while (element instanceof win.HTMLIFrameElement) {
- if (isSameOriginFrame(element)) {
- win = element.contentWindow;
- } else {
- return element;
- }
-
- element = getActiveElement(win.document);
- }
-
- return element;
- }
- /**
- * @ReactInputSelection: React input selection module. Based on Selection.js,
- * but modified to be suitable for react and has a couple of bug fixes (doesn't
- * assume buttons have range selections allowed).
- * Input selection module for React.
- */
-
- /**
- * @hasSelectionCapabilities: we get the element types that support selection
- * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
- * and `selectionEnd` rows.
- */
-
-
- function hasSelectionCapabilities(elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
- }
- function getSelectionInformation() {
- var focusedElem = getActiveElementDeep();
- return {
- focusedElem: focusedElem,
- selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
- };
- }
- /**
- * @restoreSelection: If any selection information was potentially lost,
- * restore it. This is useful when performing operations that could remove dom
- * nodes and place them back in, resulting in focus being lost.
- */
-
- function restoreSelection(priorSelectionInformation) {
- var curFocusedElem = getActiveElementDeep();
- var priorFocusedElem = priorSelectionInformation.focusedElem;
- var priorSelectionRange = priorSelectionInformation.selectionRange;
-
- if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
- if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
- setSelection(priorFocusedElem, priorSelectionRange);
- } // Focusing a node can change the scroll position, which is undesirable
-
-
- var ancestors = [];
- var ancestor = priorFocusedElem;
-
- while (ancestor = ancestor.parentNode) {
- if (ancestor.nodeType === ELEMENT_NODE) {
- ancestors.push({
- element: ancestor,
- left: ancestor.scrollLeft,
- top: ancestor.scrollTop
- });
- }
- }
-
- if (typeof priorFocusedElem.focus === 'function') {
- priorFocusedElem.focus();
- }
-
- for (var i = 0; i < ancestors.length; i++) {
- var info = ancestors[i];
- info.element.scrollLeft = info.left;
- info.element.scrollTop = info.top;
- }
- }
- }
- /**
- * @getSelection: Gets the selection bounds of a focused textarea, input or
- * contentEditable node.
- * -@input: Look up selection bounds of this input
- * -@return {start: selectionStart, end: selectionEnd}
- */
-
- function getSelection(input) {
- var selection;
-
- if ('selectionStart' in input) {
- // Modern browser with input or textarea.
- selection = {
- start: input.selectionStart,
- end: input.selectionEnd
- };
- } else {
- // Content editable or old IE textarea.
- selection = getOffsets(input);
- }
-
- return selection || {
- start: 0,
- end: 0
- };
- }
- /**
- * @setSelection: Sets the selection bounds of a textarea or input and focuses
- * the input.
- * -@input Set selection bounds of this input or textarea
- * -@offsets Object of same form that is returned from get*
- */
-
- function setSelection(input, offsets) {
- var start = offsets.start;
- var end = offsets.end;
-
- if (end === undefined) {
- end = start;
- }
-
- if ('selectionStart' in input) {
- input.selectionStart = start;
- input.selectionEnd = Math.min(end, input.value.length);
- } else {
- setOffsets(input, offsets);
- }
- }
-
- var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
-
- function registerEvents$3() {
- registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);
- }
-
- var activeElement$1 = null;
- var activeElementInst$1 = null;
- var lastSelection = null;
- var mouseDown = false;
- /**
- * Get an object which is a unique representation of the current selection.
- *
- * The return value will not be consistent across nodes or browsers, but
- * two identical selections on the same node will return identical objects.
- */
-
- function getSelection$1(node) {
- if ('selectionStart' in node && hasSelectionCapabilities(node)) {
- return {
- start: node.selectionStart,
- end: node.selectionEnd
- };
- } else {
- var win = node.ownerDocument && node.ownerDocument.defaultView || window;
- var selection = win.getSelection();
- return {
- anchorNode: selection.anchorNode,
- anchorOffset: selection.anchorOffset,
- focusNode: selection.focusNode,
- focusOffset: selection.focusOffset
- };
- }
- }
- /**
- * Get document associated with the event target.
- */
-
-
- function getEventTargetDocument(eventTarget) {
- return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
- }
- /**
- * Poll selection to see whether it's changed.
- *
- * @param {object} nativeEvent
- * @param {object} nativeEventTarget
- * @return {?SyntheticEvent}
- */
-
-
- function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
- // Ensure we have the right element, and that the user is not dragging a
- // selection (this matches native `select` event behavior). In HTML5, select
- // fires only on input and textarea thus if there's no focused element we
- // won't dispatch.
- var doc = getEventTargetDocument(nativeEventTarget);
-
- if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
- return;
- } // Only fire when selection has actually changed.
-
-
- var currentSelection = getSelection$1(activeElement$1);
-
- if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
- lastSelection = currentSelection;
- var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');
-
- if (listeners.length > 0) {
- var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- event.target = activeElement$1;
- }
- }
- }
- /**
- * This plugin creates an `onSelect` event that normalizes select events
- * across form elements.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - contentEditable
- *
- * This differs from native browser implementations in the following ways:
- * - Fires on contentEditable fields as well as inputs.
- * - Fires for collapsed selection.
- * - Fires after user input.
- */
-
-
- function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
-
- var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
-
- switch (domEventName) {
- // Track the input node that has focus.
- case 'focusin':
- if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
- activeElement$1 = targetNode;
- activeElementInst$1 = targetInst;
- lastSelection = null;
- }
-
- break;
-
- case 'focusout':
- activeElement$1 = null;
- activeElementInst$1 = null;
- lastSelection = null;
- break;
- // Don't fire the event while the user is dragging. This matches the
- // semantics of the native select event.
-
- case 'mousedown':
- mouseDown = true;
- break;
-
- case 'contextmenu':
- case 'mouseup':
- case 'dragend':
- mouseDown = false;
- constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
- break;
- // Chrome and IE fire non-standard event when selection is changed (and
- // sometimes when it hasn't). IE's event fires out of order with respect
- // to key and input events on deletion, so we discard it.
- //
- // Firefox doesn't support selectionchange, so check selection status
- // after each key entry. The selection changes after keydown and before
- // keyup, but we check on keydown as well in the case of holding down a
- // key, when multiple keydown events are fired but only one keyup is.
- // This is also our approach for IE handling, for the reason above.
-
- case 'selectionchange':
- if (skipSelectionChangeEvent) {
- break;
- }
-
- // falls through
-
- case 'keydown':
- case 'keyup':
- constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
- }
- }
-
- function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- var reactName = topLevelEventsToReactNames.get(domEventName);
-
- if (reactName === undefined) {
- return;
- }
-
- var SyntheticEventCtor = SyntheticEvent;
- var reactEventType = domEventName;
-
- switch (domEventName) {
- case 'keypress':
- // Firefox creates a keypress event for function keys too. This removes
- // the unwanted keypress events. Enter is however both printable and
- // non-printable. One would expect Tab to be as well (but it isn't).
- if (getEventCharCode(nativeEvent) === 0) {
- return;
- }
-
- /* falls through */
-
- case 'keydown':
- case 'keyup':
- SyntheticEventCtor = SyntheticKeyboardEvent;
- break;
-
- case 'focusin':
- reactEventType = 'focus';
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'focusout':
- reactEventType = 'blur';
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'beforeblur':
- case 'afterblur':
- SyntheticEventCtor = SyntheticFocusEvent;
- break;
-
- case 'click':
- // Firefox creates a click event on right mouse clicks. This removes the
- // unwanted click events.
- if (nativeEvent.button === 2) {
- return;
- }
-
- /* falls through */
-
- case 'auxclick':
- case 'dblclick':
- case 'mousedown':
- case 'mousemove':
- case 'mouseup': // TODO: Disabled elements should not respond to mouse events
-
- /* falls through */
-
- case 'mouseout':
- case 'mouseover':
- case 'contextmenu':
- SyntheticEventCtor = SyntheticMouseEvent;
- break;
-
- case 'drag':
- case 'dragend':
- case 'dragenter':
- case 'dragexit':
- case 'dragleave':
- case 'dragover':
- case 'dragstart':
- case 'drop':
- SyntheticEventCtor = SyntheticDragEvent;
- break;
-
- case 'touchcancel':
- case 'touchend':
- case 'touchmove':
- case 'touchstart':
- SyntheticEventCtor = SyntheticTouchEvent;
- break;
-
- case ANIMATION_END:
- case ANIMATION_ITERATION:
- case ANIMATION_START:
- SyntheticEventCtor = SyntheticAnimationEvent;
- break;
-
- case TRANSITION_END:
- SyntheticEventCtor = SyntheticTransitionEvent;
- break;
-
- case 'scroll':
- SyntheticEventCtor = SyntheticUIEvent;
- break;
-
- case 'wheel':
- SyntheticEventCtor = SyntheticWheelEvent;
- break;
-
- case 'copy':
- case 'cut':
- case 'paste':
- SyntheticEventCtor = SyntheticClipboardEvent;
- break;
-
- case 'gotpointercapture':
- case 'lostpointercapture':
- case 'pointercancel':
- case 'pointerdown':
- case 'pointermove':
- case 'pointerout':
- case 'pointerover':
- case 'pointerup':
- SyntheticEventCtor = SyntheticPointerEvent;
- break;
- }
-
- var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;
-
- {
- // Some events don't bubble in the browser.
- // In the past, React has always bubbled them, but this can be surprising.
- // We're going to try aligning closer to the browser behavior by not bubbling
- // them in React either. We'll start by not bubbling onScroll, and then expand.
- var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from
- // nonDelegatedEvents list in DOMPluginEventSystem.
- // Then we can remove this special list.
- // This is a breaking change that can wait until React 18.
- domEventName === 'scroll';
-
- var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);
-
- if (_listeners.length > 0) {
- // Intentionally create event lazily.
- var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);
-
- dispatchQueue.push({
- event: _event,
- listeners: _listeners
- });
- }
- }
- }
-
- // TODO: remove top-level side effect.
- registerSimpleEvents();
- registerEvents$2();
- registerEvents$1();
- registerEvents$3();
- registerEvents();
-
- function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
- // TODO: we should remove the concept of a "SimpleEventPlugin".
- // This is the basic functionality of the event system. All
- // the other plugins are essentially polyfills. So the plugin
- // should probably be inlined somewhere and have its logic
- // be core the to event system. This would potentially allow
- // us to ship builds of React without the polyfilled plugins below.
- extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the
- // event's native "bubble" phase, which means that we're
- // not in the capture phase. That's because we emulate
- // the capture phase here still. This is a trade-off,
- // because in an ideal world we would not emulate and use
- // the phases properly, like we do with the SimpleEvent
- // plugin. However, the plugins below either expect
- // emulation (EnterLeave) or use state localized to that
- // plugin (BeforeInput, Change, Select). The state in
- // these modules complicates things, as you'll essentially
- // get the case where the capture phase event might change
- // state, only for the following bubble event to come in
- // later and not trigger anything as the state now
- // invalidates the heuristics of the event plugin. We
- // could alter all these plugins to work in such ways, but
- // that might cause other unknown side-effects that we
- // can't forsee right now.
-
- if (shouldProcessPolyfillPlugins) {
- extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
- }
- } // List of events that need to be individually attached to media elements.
-
-
- var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather
- // set them on the actual target element itself. This is primarily
- // because these events do not consistently bubble in the DOM.
-
- var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));
-
- function executeDispatch(event, listener, currentTarget) {
- var type = event.type || 'unknown-event';
- event.currentTarget = currentTarget;
- invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
- event.currentTarget = null;
- }
-
- function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
- var previousInstance;
-
- if (inCapturePhase) {
- for (var i = dispatchListeners.length - 1; i >= 0; i--) {
- var _dispatchListeners$i = dispatchListeners[i],
- instance = _dispatchListeners$i.instance,
- currentTarget = _dispatchListeners$i.currentTarget,
- listener = _dispatchListeners$i.listener;
-
- if (instance !== previousInstance && event.isPropagationStopped()) {
- return;
- }
-
- executeDispatch(event, listener, currentTarget);
- previousInstance = instance;
- }
- } else {
- for (var _i = 0; _i < dispatchListeners.length; _i++) {
- var _dispatchListeners$_i = dispatchListeners[_i],
- _instance = _dispatchListeners$_i.instance,
- _currentTarget = _dispatchListeners$_i.currentTarget,
- _listener = _dispatchListeners$_i.listener;
-
- if (_instance !== previousInstance && event.isPropagationStopped()) {
- return;
- }
-
- executeDispatch(event, _listener, _currentTarget);
- previousInstance = _instance;
- }
- }
- }
-
- function processDispatchQueue(dispatchQueue, eventSystemFlags) {
- var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;
-
- for (var i = 0; i < dispatchQueue.length; i++) {
- var _dispatchQueue$i = dispatchQueue[i],
- event = _dispatchQueue$i.event,
- listeners = _dispatchQueue$i.listeners;
- processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); // event system doesn't use pooling.
- } // This would be a good time to rethrow if any of the event handlers threw.
-
-
- rethrowCaughtError();
- }
-
- function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
- var nativeEventTarget = getEventTarget(nativeEvent);
- var dispatchQueue = [];
- extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
- processDispatchQueue(dispatchQueue, eventSystemFlags);
- }
-
- function listenToNonDelegatedEvent(domEventName, targetElement) {
- var isCapturePhaseListener = false;
- var listenerSet = getEventListenerSet(targetElement);
- var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);
-
- if (!listenerSet.has(listenerSetKey)) {
- addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);
- listenerSet.add(listenerSetKey);
- }
- }
- var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);
- function listenToAllSupportedEvents(rootContainerElement) {
- {
- if (rootContainerElement[listeningMarker]) {
- // Performance optimization: don't iterate through events
- // for the same portal container or root node more than once.
- // TODO: once we remove the flag, we may be able to also
- // remove some of the bookkeeping maps used for laziness.
- return;
- }
-
- rootContainerElement[listeningMarker] = true;
- allNativeEvents.forEach(function (domEventName) {
- if (!nonDelegatedEvents.has(domEventName)) {
- listenToNativeEvent(domEventName, false, rootContainerElement, null);
- }
-
- listenToNativeEvent(domEventName, true, rootContainerElement, null);
- });
- }
- }
- function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) {
- var eventSystemFlags = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
- var target = rootContainerElement; // selectionchange needs to be attached to the document
- // otherwise it won't capture incoming events that are only
- // triggered on the document directly.
-
- if (domEventName === 'selectionchange' && rootContainerElement.nodeType !== DOCUMENT_NODE) {
- target = rootContainerElement.ownerDocument;
- } // If the event can be delegated (or is capture phase), we can
- // register it to the root container. Otherwise, we should
- // register the event to the target element and mark it as
- // a non-delegated event.
-
-
- if (targetElement !== null && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) {
- // For all non-delegated events, apart from scroll, we attach
- // their event listeners to the respective elements that their
- // events fire on. That means we can skip this step, as event
- // listener has already been added previously. However, we
- // special case the scroll event because the reality is that any
- // element can scroll.
- // TODO: ideally, we'd eventually apply the same logic to all
- // events from the nonDelegatedEvents list. Then we can remove
- // this special case and use the same logic for all events.
- if (domEventName !== 'scroll') {
- return;
- }
-
- eventSystemFlags |= IS_NON_DELEGATED;
- target = targetElement;
- }
-
- var listenerSet = getEventListenerSet(target);
- var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); // If the listener entry is empty or we should upgrade, then
- // we need to trap an event listener onto the target.
-
- if (!listenerSet.has(listenerSetKey)) {
- if (isCapturePhaseListener) {
- eventSystemFlags |= IS_CAPTURE_PHASE;
- }
-
- addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);
- listenerSet.add(listenerSetKey);
- }
- }
-
- function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
- var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be
- // active and not passive.
-
- var isPassiveListener = undefined;
-
- if (passiveBrowserEventsSupported) {
- // Browsers introduced an intervention, making these events
- // passive by default on document. React doesn't bind them
- // to document anymore, but changing this now would undo
- // the performance wins from the change. So we emulate
- // the existing behavior manually on the roots now.
- // https://github.com/facebook/react/issues/19651
- if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {
- isPassiveListener = true;
- }
- }
-
- targetContainer = targetContainer;
- var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we
-
-
- if (isCapturePhaseListener) {
- if (isPassiveListener !== undefined) {
- unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
- } else {
- unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);
- }
- } else {
- if (isPassiveListener !== undefined) {
- unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
- } else {
- unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);
- }
- }
- }
-
- function isMatchingRootContainer(grandContainer, targetContainer) {
- return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;
- }
-
- function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
- var ancestorInst = targetInst;
-
- if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {
- var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we
-
- if (targetInst !== null) {
- // The below logic attempts to work out if we need to change
- // the target fiber to a different ancestor. We had similar logic
- // in the legacy event system, except the big difference between
- // systems is that the modern event system now has an event listener
- // attached to each React Root and React Portal Root. Together,
- // the DOM nodes representing these roots are the "rootContainer".
- // To figure out which ancestor instance we should use, we traverse
- // up the fiber tree from the target instance and attempt to find
- // root boundaries that match that of our current "rootContainer".
- // If we find that "rootContainer", we find the parent fiber
- // sub-tree for that root and make that our ancestor instance.
- var node = targetInst;
-
- mainLoop: while (true) {
- if (node === null) {
- return;
- }
-
- var nodeTag = node.tag;
-
- if (nodeTag === HostRoot || nodeTag === HostPortal) {
- var container = node.stateNode.containerInfo;
-
- if (isMatchingRootContainer(container, targetContainerNode)) {
- break;
- }
-
- if (nodeTag === HostPortal) {
- // The target is a portal, but it's not the rootContainer we're looking for.
- // Normally portals handle their own events all the way down to the root.
- // So we should be able to stop now. However, we don't know if this portal
- // was part of *our* root.
- var grandNode = node.return;
-
- while (grandNode !== null) {
- var grandTag = grandNode.tag;
-
- if (grandTag === HostRoot || grandTag === HostPortal) {
- var grandContainer = grandNode.stateNode.containerInfo;
-
- if (isMatchingRootContainer(grandContainer, targetContainerNode)) {
- // This is the rootContainer we're looking for and we found it as
- // a parent of the Portal. That means we can ignore it because the
- // Portal will bubble through to us.
- return;
- }
- }
-
- grandNode = grandNode.return;
- }
- } // Now we need to find it's corresponding host fiber in the other
- // tree. To do this we can use getClosestInstanceFromNode, but we
- // need to validate that the fiber is a host instance, otherwise
- // we need to traverse up through the DOM till we find the correct
- // node that is from the other tree.
-
-
- while (container !== null) {
- var parentNode = getClosestInstanceFromNode(container);
-
- if (parentNode === null) {
- return;
- }
-
- var parentTag = parentNode.tag;
-
- if (parentTag === HostComponent || parentTag === HostText) {
- node = ancestorInst = parentNode;
- continue mainLoop;
- }
-
- container = container.parentNode;
- }
- }
-
- node = node.return;
- }
- }
- }
-
- batchedEventUpdates(function () {
- return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);
- });
- }
-
- function createDispatchListener(instance, listener, currentTarget) {
- return {
- instance: instance,
- listener: listener,
- currentTarget: currentTarget
- };
- }
-
- function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) {
- var captureName = reactName !== null ? reactName + 'Capture' : null;
- var reactEventName = inCapturePhase ? captureName : reactName;
- var listeners = [];
- var instance = targetFiber;
- var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.
-
- while (instance !== null) {
- var _instance2 = instance,
- stateNode = _instance2.stateNode,
- tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)
-
- if (tag === HostComponent && stateNode !== null) {
- lastHostComponent = stateNode; // createEventHandle listeners
-
-
- if (reactEventName !== null) {
- var listener = getListener(instance, reactEventName);
-
- if (listener != null) {
- listeners.push(createDispatchListener(instance, listener, lastHostComponent));
- }
- }
- } // If we are only accumulating events for the target, then we don't
- // continue to propagate through the React fiber tree to find other
- // listeners.
-
-
- if (accumulateTargetOnly) {
- break;
- }
-
- instance = instance.return;
- }
-
- return listeners;
- } // We should only use this function for:
- // - BeforeInputEventPlugin
- // - ChangeEventPlugin
- // - SelectEventPlugin
- // This is because we only process these plugins
- // in the bubble phase, so we need to accumulate two
- // phase event listeners (via emulation).
-
- function accumulateTwoPhaseListeners(targetFiber, reactName) {
- var captureName = reactName + 'Capture';
- var listeners = [];
- var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.
-
- while (instance !== null) {
- var _instance3 = instance,
- stateNode = _instance3.stateNode,
- tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)
-
- if (tag === HostComponent && stateNode !== null) {
- var currentTarget = stateNode;
- var captureListener = getListener(instance, captureName);
-
- if (captureListener != null) {
- listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
- }
-
- var bubbleListener = getListener(instance, reactName);
-
- if (bubbleListener != null) {
- listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
- }
- }
-
- instance = instance.return;
- }
-
- return listeners;
- }
-
- function getParent(inst) {
- if (inst === null) {
- return null;
- }
-
- do {
- inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
- // That is depending on if we want nested subtrees (layers) to bubble
- // events to their parent. We could also go through parentNode on the
- // host node but that wouldn't work for React Native and doesn't let us
- // do the portal feature.
- } while (inst && inst.tag !== HostComponent);
-
- if (inst) {
- return inst;
- }
-
- return null;
- }
- /**
- * Return the lowest common ancestor of A and B, or null if they are in
- * different trees.
- */
-
-
- function getLowestCommonAncestor(instA, instB) {
- var nodeA = instA;
- var nodeB = instB;
- var depthA = 0;
-
- for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {
- depthA++;
- }
-
- var depthB = 0;
-
- for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {
- depthB++;
- } // If A is deeper, crawl up.
-
-
- while (depthA - depthB > 0) {
- nodeA = getParent(nodeA);
- depthA--;
- } // If B is deeper, crawl up.
-
-
- while (depthB - depthA > 0) {
- nodeB = getParent(nodeB);
- depthB--;
- } // Walk in lockstep until we find a match.
-
-
- var depth = depthA;
-
- while (depth--) {
- if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {
- return nodeA;
- }
-
- nodeA = getParent(nodeA);
- nodeB = getParent(nodeB);
- }
-
- return null;
- }
-
- function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
- var registrationName = event._reactName;
- var listeners = [];
- var instance = target;
-
- while (instance !== null) {
- if (instance === common) {
- break;
- }
-
- var _instance4 = instance,
- alternate = _instance4.alternate,
- stateNode = _instance4.stateNode,
- tag = _instance4.tag;
-
- if (alternate !== null && alternate === common) {
- break;
- }
-
- if (tag === HostComponent && stateNode !== null) {
- var currentTarget = stateNode;
-
- if (inCapturePhase) {
- var captureListener = getListener(instance, registrationName);
-
- if (captureListener != null) {
- listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
- }
- } else if (!inCapturePhase) {
- var bubbleListener = getListener(instance, registrationName);
-
- if (bubbleListener != null) {
- listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
- }
- }
- }
-
- instance = instance.return;
- }
-
- if (listeners.length !== 0) {
- dispatchQueue.push({
- event: event,
- listeners: listeners
- });
- }
- } // We should only use this function for:
- // - EnterLeaveEventPlugin
- // This is because we only process this plugin
- // in the bubble phase, so we need to accumulate two
- // phase event listeners.
-
-
- function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
- var common = from && to ? getLowestCommonAncestor(from, to) : null;
-
- if (from !== null) {
- accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);
- }
-
- if (to !== null && enterEvent !== null) {
- accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);
- }
- }
- function getListenerSetKey(domEventName, capture) {
- return domEventName + "__" + (capture ? 'capture' : 'bubble');
- }
-
- var didWarnInvalidHydration = false;
- var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
- var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
- var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
- var AUTOFOCUS = 'autoFocus';
- var CHILDREN = 'children';
- var STYLE = 'style';
- var HTML$1 = '__html';
- var HTML_NAMESPACE$1 = Namespaces.html;
- var warnedUnknownTags;
- var suppressHydrationWarning;
- var validatePropertiesInDevelopment;
- var warnForTextDifference;
- var warnForPropDifference;
- var warnForExtraAttributes;
- var warnForInvalidEventListener;
- var canDiffStyleForHydrationWarning;
- var normalizeMarkupForTextOrAttribute;
- var normalizeHTML;
-
- {
- warnedUnknownTags = {
- // There are working polyfills for <dialog>. Let people use it.
- dialog: true,
- // Electron ships a custom <webview> tag to display external web content in
- // an isolated frame and process.
- // This tag is not present in non Electron environments such as JSDom which
- // is often used for testing purposes.
- // @see https://electronjs.org/docs/api/webview-tag
- webview: true
- };
-
- validatePropertiesInDevelopment = function (type, props) {
- validateProperties(type, props);
- validateProperties$1(type, props);
- validateProperties$2(type, props, {
- registrationNameDependencies: registrationNameDependencies,
- possibleRegistrationNames: possibleRegistrationNames
- });
- }; // IE 11 parses & normalizes the style attribute as opposed to other
- // browsers. It adds spaces and sorts the properties in some
- // non-alphabetical order. Handling that would require sorting CSS
- // properties in the client & server versions or applying
- // `expectedStyle` to a temporary DOM node to read its `style` attribute
- // normalized. Since it only affects IE, we're skipping style warnings
- // in that browser completely in favor of doing all that work.
- // See https://github.com/facebook/react/issues/11807
-
-
- canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
- // It also can turn \u0000 into \uFFFD inside attributes.
- // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
- // If we have a mismatch, it might be caused by that.
- // We will still patch up in this case but not fire the warning.
-
- var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
- var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
-
- normalizeMarkupForTextOrAttribute = function (markup) {
- var markupString = typeof markup === 'string' ? markup : '' + markup;
- return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
- };
-
- warnForTextDifference = function (serverText, clientText) {
- if (didWarnInvalidHydration) {
- return;
- }
-
- var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
- var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
-
- if (normalizedServerText === normalizedClientText) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
- };
-
- warnForPropDifference = function (propName, serverValue, clientValue) {
- if (didWarnInvalidHydration) {
- return;
- }
-
- var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
- var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
-
- if (normalizedServerValue === normalizedClientValue) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
- };
-
- warnForExtraAttributes = function (attributeNames) {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
- var names = [];
- attributeNames.forEach(function (name) {
- names.push(name);
- });
-
- error('Extra attributes from the server: %s', names);
- };
-
- warnForInvalidEventListener = function (registrationName, listener) {
- if (listener === false) {
- error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
- } else {
- error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
- }
- }; // Parse the HTML and read it back to normalize the HTML string so that it
- // can be used for comparison.
-
-
- normalizeHTML = function (parent, html) {
- // We could have created a separate document here to avoid
- // re-initializing custom elements if they exist. But this breaks
- // how <noscript> is being handled. So we use the same document.
- // See the discussion in https://github.com/facebook/react/pull/11157.
- var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
- testElement.innerHTML = html;
- return testElement.innerHTML;
- };
- }
-
- function getOwnerDocumentFromRootContainer(rootContainerElement) {
- return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
- }
-
- function noop() {}
-
- function trapClickOnNonInteractiveElement(node) {
- // Mobile Safari does not fire properly bubble click events on
- // non-interactive elements, which means delegated click listeners do not
- // fire. The workaround for this bug involves attaching an empty click
- // listener on the target node.
- // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
- // Just set it using the onclick property so that we don't have to manage any
- // bookkeeping for it. Not sure if we need to clear it when the listener is
- // removed.
- // TODO: Only do this for the relevant Safaris maybe?
- node.onclick = noop;
- }
-
- function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
- for (var propKey in nextProps) {
- if (!nextProps.hasOwnProperty(propKey)) {
- continue;
- }
-
- var nextProp = nextProps[propKey];
-
- if (propKey === STYLE) {
- {
- if (nextProp) {
- // Freeze the next style object so that we can assume it won't be
- // mutated. We have already warned for this in the past.
- Object.freeze(nextProp);
- }
- } // Relies on `updateStylesByID` not mutating `styleUpdates`.
-
-
- setValueForStyles(domElement, nextProp);
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- setInnerHTML(domElement, nextHtml);
- }
- } else if (propKey === CHILDREN) {
- if (typeof nextProp === 'string') {
- // Avoid setting initial textContent when the text is empty. In IE11 setting
- // textContent on a <textarea> will cause the placeholder to not
- // show within the <textarea> until it has been focused and blurred again.
- // https://github.com/facebook/react/issues/6731#issuecomment-254874553
- var canSetTextContent = tag !== 'textarea' || nextProp !== '';
-
- if (canSetTextContent) {
- setTextContent(domElement, nextProp);
- }
- } else if (typeof nextProp === 'number') {
- setTextContent(domElement, '' + nextProp);
- }
- } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
- } else if (nextProp != null) {
- setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
- }
- }
- }
-
- function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
- // TODO: Handle wasCustomComponentTag
- for (var i = 0; i < updatePayload.length; i += 2) {
- var propKey = updatePayload[i];
- var propValue = updatePayload[i + 1];
-
- if (propKey === STYLE) {
- setValueForStyles(domElement, propValue);
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- setInnerHTML(domElement, propValue);
- } else if (propKey === CHILDREN) {
- setTextContent(domElement, propValue);
- } else {
- setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
- }
- }
- }
-
- function createElement(type, props, rootContainerElement, parentNamespace) {
- var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
- // tags get no namespace.
-
- var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
- var domElement;
- var namespaceURI = parentNamespace;
-
- if (namespaceURI === HTML_NAMESPACE$1) {
- namespaceURI = getIntrinsicNamespace(type);
- }
-
- if (namespaceURI === HTML_NAMESPACE$1) {
- {
- isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
- // allow <SVG> or <mATH>.
-
- if (!isCustomComponentTag && type !== type.toLowerCase()) {
- error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
- }
- }
-
- if (type === 'script') {
- // Create the script via .innerHTML so its "parser-inserted" flag is
- // set to true and it does not execute
- var div = ownerDocument.createElement('div');
-
- div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
- // This is guaranteed to yield a script element.
-
- var firstChild = div.firstChild;
- domElement = div.removeChild(firstChild);
- } else if (typeof props.is === 'string') {
- // $FlowIssue `createElement` should be updated for Web Components
- domElement = ownerDocument.createElement(type, {
- is: props.is
- });
- } else {
- // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
- // See discussion in https://github.com/facebook/react/pull/6896
- // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
- domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
- // attributes on `select`s needs to be added before `option`s are inserted.
- // This prevents:
- // - a bug where the `select` does not scroll to the correct option because singular
- // `select` elements automatically pick the first item #13222
- // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
- // See https://github.com/facebook/react/issues/13222
- // and https://github.com/facebook/react/issues/14239
-
- if (type === 'select') {
- var node = domElement;
-
- if (props.multiple) {
- node.multiple = true;
- } else if (props.size) {
- // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
- // it is possible that no option is selected.
- //
- // This is only necessary when a select in "single selection mode".
- node.size = props.size;
- }
- }
- }
- } else {
- domElement = ownerDocument.createElementNS(namespaceURI, type);
- }
-
- {
- if (namespaceURI === HTML_NAMESPACE$1) {
- if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
- warnedUnknownTags[type] = true;
-
- error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
- }
- }
- }
-
- return domElement;
- }
- function createTextNode(text, rootContainerElement) {
- return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
- }
- function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
- var isCustomComponentTag = isCustomComponent(tag, rawProps);
-
- {
- validatePropertiesInDevelopment(tag, rawProps);
- } // TODO: Make sure that we check isMounted before firing any of these events.
-
-
- var props;
-
- switch (tag) {
- case 'dialog':
- listenToNonDelegatedEvent('cancel', domElement);
- listenToNonDelegatedEvent('close', domElement);
- props = rawProps;
- break;
-
- case 'iframe':
- case 'object':
- case 'embed':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the load event.
- listenToNonDelegatedEvent('load', domElement);
- props = rawProps;
- break;
-
- case 'video':
- case 'audio':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for all the media events.
- for (var i = 0; i < mediaEventTypes.length; i++) {
- listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
- }
-
- props = rawProps;
- break;
-
- case 'source':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the error event.
- listenToNonDelegatedEvent('error', domElement);
- props = rawProps;
- break;
-
- case 'img':
- case 'image':
- case 'link':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for error and load events.
- listenToNonDelegatedEvent('error', domElement);
- listenToNonDelegatedEvent('load', domElement);
- props = rawProps;
- break;
-
- case 'details':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the toggle event.
- listenToNonDelegatedEvent('toggle', domElement);
- props = rawProps;
- break;
-
- case 'input':
- initWrapperState(domElement, rawProps);
- props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
-
- case 'option':
- validateProps(domElement, rawProps);
- props = getHostProps$1(domElement, rawProps);
- break;
-
- case 'select':
- initWrapperState$1(domElement, rawProps);
- props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
-
- case 'textarea':
- initWrapperState$2(domElement, rawProps);
- props = getHostProps$3(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
-
- default:
- props = rawProps;
- }
-
- assertValidProps(tag, props);
- setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
-
- switch (tag) {
- case 'input':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper(domElement, rawProps, false);
- break;
-
- case 'textarea':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper$3(domElement);
- break;
-
- case 'option':
- postMountWrapper$1(domElement, rawProps);
- break;
-
- case 'select':
- postMountWrapper$2(domElement, rawProps);
- break;
-
- default:
- if (typeof props.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
- } // Calculate the diff between the two objects.
-
- function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
- {
- validatePropertiesInDevelopment(tag, nextRawProps);
- }
-
- var updatePayload = null;
- var lastProps;
- var nextProps;
-
- switch (tag) {
- case 'input':
- lastProps = getHostProps(domElement, lastRawProps);
- nextProps = getHostProps(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- case 'option':
- lastProps = getHostProps$1(domElement, lastRawProps);
- nextProps = getHostProps$1(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- case 'select':
- lastProps = getHostProps$2(domElement, lastRawProps);
- nextProps = getHostProps$2(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- case 'textarea':
- lastProps = getHostProps$3(domElement, lastRawProps);
- nextProps = getHostProps$3(domElement, nextRawProps);
- updatePayload = [];
- break;
-
- default:
- lastProps = lastRawProps;
- nextProps = nextRawProps;
-
- if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
-
- assertValidProps(tag, nextProps);
- var propKey;
- var styleName;
- var styleUpdates = null;
-
- for (propKey in lastProps) {
- if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
- continue;
- }
-
- if (propKey === STYLE) {
- var lastStyle = lastProps[propKey];
-
- for (styleName in lastStyle) {
- if (lastStyle.hasOwnProperty(styleName)) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = '';
- }
- }
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- // This is a special case. If any listener updates we need to ensure
- // that the "current" fiber pointer gets updated so we need a commit
- // to update this element.
- if (!updatePayload) {
- updatePayload = [];
- }
- } else {
- // For all other deleted properties we add it to the queue. We use
- // the allowed property list in the commit phase instead.
- (updatePayload = updatePayload || []).push(propKey, null);
- }
- }
-
- for (propKey in nextProps) {
- var nextProp = nextProps[propKey];
- var lastProp = lastProps != null ? lastProps[propKey] : undefined;
-
- if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
- continue;
- }
-
- if (propKey === STYLE) {
- {
- if (nextProp) {
- // Freeze the next style object so that we can assume it won't be
- // mutated. We have already warned for this in the past.
- Object.freeze(nextProp);
- }
- }
-
- if (lastProp) {
- // Unset styles on `lastProp` but not on `nextProp`.
- for (styleName in lastProp) {
- if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = '';
- }
- } // Update styles that changed since `lastProp`.
-
-
- for (styleName in nextProp) {
- if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
- if (!styleUpdates) {
- styleUpdates = {};
- }
-
- styleUpdates[styleName] = nextProp[styleName];
- }
- }
- } else {
- // Relies on `updateStylesByID` not mutating `styleUpdates`.
- if (!styleUpdates) {
- if (!updatePayload) {
- updatePayload = [];
- }
-
- updatePayload.push(propKey, styleUpdates);
- }
-
- styleUpdates = nextProp;
- }
- } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
- var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- if (lastHtml !== nextHtml) {
- (updatePayload = updatePayload || []).push(propKey, nextHtml);
- }
- }
- } else if (propKey === CHILDREN) {
- if (typeof nextProp === 'string' || typeof nextProp === 'number') {
- (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
- }
- } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- // We eagerly listen to this even though we haven't committed yet.
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
-
- if (!updatePayload && lastProp !== nextProp) {
- // This is a special case. If any listener updates we need to ensure
- // that the "current" props pointer gets updated so we need a commit
- // to update this element.
- updatePayload = [];
- }
- } else if (typeof nextProp === 'object' && nextProp !== null && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE) {
- // If we encounter useOpaqueReference's opaque object, this means we are hydrating.
- // In this case, call the opaque object's toString function which generates a new client
- // ID so client and server IDs match and throws to rerender.
- nextProp.toString();
- } else {
- // For any other property we always add it to the queue and then we
- // filter it out using the allowed property list during the commit.
- (updatePayload = updatePayload || []).push(propKey, nextProp);
- }
- }
-
- if (styleUpdates) {
- {
- validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
- }
-
- (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
- }
-
- return updatePayload;
- } // Apply the diff.
-
- function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
- // Update checked *before* name.
- // In the middle of an update, it is possible to have multiple checked.
- // When a checked radio tries to change name, browser makes another radio's checked false.
- if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
- updateChecked(domElement, nextRawProps);
- }
-
- var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
- var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
-
- updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
- // changed.
-
- switch (tag) {
- case 'input':
- // Update the wrapper around inputs *after* updating props. This has to
- // happen after `updateDOMProperties`. Otherwise HTML5 input validations
- // raise warnings and prevent the new value from being assigned.
- updateWrapper(domElement, nextRawProps);
- break;
-
- case 'textarea':
- updateWrapper$1(domElement, nextRawProps);
- break;
-
- case 'select':
- // <select> value update needs to occur after <option> children
- // reconciliation
- postUpdateWrapper(domElement, nextRawProps);
- break;
- }
- }
-
- function getPossibleStandardName(propName) {
- {
- var lowerCasedName = propName.toLowerCase();
-
- if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
- return null;
- }
-
- return possibleStandardNames[lowerCasedName] || null;
- }
- }
-
- function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
- var isCustomComponentTag;
- var extraAttributeNames;
-
- {
- suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
- isCustomComponentTag = isCustomComponent(tag, rawProps);
- validatePropertiesInDevelopment(tag, rawProps);
- } // TODO: Make sure that we check isMounted before firing any of these events.
-
-
- switch (tag) {
- case 'dialog':
- listenToNonDelegatedEvent('cancel', domElement);
- listenToNonDelegatedEvent('close', domElement);
- break;
-
- case 'iframe':
- case 'object':
- case 'embed':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the load event.
- listenToNonDelegatedEvent('load', domElement);
- break;
-
- case 'video':
- case 'audio':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for all the media events.
- for (var i = 0; i < mediaEventTypes.length; i++) {
- listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
- }
-
- break;
-
- case 'source':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the error event.
- listenToNonDelegatedEvent('error', domElement);
- break;
-
- case 'img':
- case 'image':
- case 'link':
- // We listen to these events in case to ensure emulated bubble
- // listeners still fire for error and load events.
- listenToNonDelegatedEvent('error', domElement);
- listenToNonDelegatedEvent('load', domElement);
- break;
-
- case 'details':
- // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the toggle event.
- listenToNonDelegatedEvent('toggle', domElement);
- break;
-
- case 'input':
- initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
-
- case 'option':
- validateProps(domElement, rawProps);
- break;
-
- case 'select':
- initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
-
- case 'textarea':
- initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
- // listeners still fire for the invalid event.
-
- listenToNonDelegatedEvent('invalid', domElement);
-
- break;
- }
-
- assertValidProps(tag, rawProps);
-
- {
- extraAttributeNames = new Set();
- var attributes = domElement.attributes;
-
- for (var _i = 0; _i < attributes.length; _i++) {
- var name = attributes[_i].name.toLowerCase();
-
- switch (name) {
- // Built-in SSR attribute is allowed
- case 'data-reactroot':
- break;
- // Controlled attributes are not validated
- // TODO: Only ignore them on controlled tags.
-
- case 'value':
- break;
-
- case 'checked':
- break;
-
- case 'selected':
- break;
-
- default:
- // Intentionally use the original name.
- // See discussion in https://github.com/facebook/react/pull/10676.
- extraAttributeNames.add(attributes[_i].name);
- }
- }
- }
-
- var updatePayload = null;
-
- for (var propKey in rawProps) {
- if (!rawProps.hasOwnProperty(propKey)) {
- continue;
- }
-
- var nextProp = rawProps[propKey];
-
- if (propKey === CHILDREN) {
- // For text content children we compare against textContent. This
- // might match additional HTML that is hidden when we read it using
- // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
- // satisfies our requirement. Our requirement is not to produce perfect
- // HTML and attributes. Ideally we should preserve structure but it's
- // ok not to if the visible content is still enough to indicate what
- // even listeners these nodes might be wired up to.
- // TODO: Warn if there is more than a single textNode as a child.
- // TODO: Should we use domElement.firstChild.nodeValue to compare?
- if (typeof nextProp === 'string') {
- if (domElement.textContent !== nextProp) {
- if ( !suppressHydrationWarning) {
- warnForTextDifference(domElement.textContent, nextProp);
- }
-
- updatePayload = [CHILDREN, nextProp];
- }
- } else if (typeof nextProp === 'number') {
- if (domElement.textContent !== '' + nextProp) {
- if ( !suppressHydrationWarning) {
- warnForTextDifference(domElement.textContent, nextProp);
- }
-
- updatePayload = [CHILDREN, '' + nextProp];
- }
- }
- } else if (registrationNameDependencies.hasOwnProperty(propKey)) {
- if (nextProp != null) {
- if ( typeof nextProp !== 'function') {
- warnForInvalidEventListener(propKey, nextProp);
- }
-
- if (propKey === 'onScroll') {
- listenToNonDelegatedEvent('scroll', domElement);
- }
- }
- } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
- typeof isCustomComponentTag === 'boolean') {
- // Validate that the properties correspond to their expected values.
- var serverValue = void 0;
- var propertyInfo = getPropertyInfo(propKey);
-
- if (suppressHydrationWarning) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
- // TODO: Only ignore them on controlled tags.
- propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
- var serverHTML = domElement.innerHTML;
- var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
-
- if (nextHtml != null) {
- var expectedHTML = normalizeHTML(domElement, nextHtml);
-
- if (expectedHTML !== serverHTML) {
- warnForPropDifference(propKey, serverHTML, expectedHTML);
- }
- }
- } else if (propKey === STYLE) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey);
-
- if (canDiffStyleForHydrationWarning) {
- var expectedStyle = createDangerousStringForStyles(nextProp);
- serverValue = domElement.getAttribute('style');
-
- if (expectedStyle !== serverValue) {
- warnForPropDifference(propKey, serverValue, expectedStyle);
- }
- }
- } else if (isCustomComponentTag) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey.toLowerCase());
- serverValue = getValueForAttribute(domElement, propKey, nextProp);
-
- if (nextProp !== serverValue) {
- warnForPropDifference(propKey, serverValue, nextProp);
- }
- } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
- var isMismatchDueToBadCasing = false;
-
- if (propertyInfo !== null) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propertyInfo.attributeName);
- serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
- } else {
- var ownNamespace = parentNamespace;
-
- if (ownNamespace === HTML_NAMESPACE$1) {
- ownNamespace = getIntrinsicNamespace(tag);
- }
-
- if (ownNamespace === HTML_NAMESPACE$1) {
- // $FlowFixMe - Should be inferred as not undefined.
- extraAttributeNames.delete(propKey.toLowerCase());
- } else {
- var standardName = getPossibleStandardName(propKey);
-
- if (standardName !== null && standardName !== propKey) {
- // If an SVG prop is supplied with bad casing, it will
- // be successfully parsed from HTML, but will produce a mismatch
- // (and would be incorrectly rendered on the client).
- // However, we already warn about bad casing elsewhere.
- // So we'll skip the misleading extra mismatch warning in this case.
- isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
-
- extraAttributeNames.delete(standardName);
- } // $FlowFixMe - Should be inferred as not undefined.
-
-
- extraAttributeNames.delete(propKey);
- }
-
- serverValue = getValueForAttribute(domElement, propKey, nextProp);
- }
-
- if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
- warnForPropDifference(propKey, serverValue, nextProp);
- }
- }
- }
- }
-
- {
- // $FlowFixMe - Should be inferred as not undefined.
- if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
- // $FlowFixMe - Should be inferred as not undefined.
- warnForExtraAttributes(extraAttributeNames);
- }
- }
-
- switch (tag) {
- case 'input':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper(domElement, rawProps, true);
- break;
-
- case 'textarea':
- // TODO: Make sure we check if this is still unmounted or do any clean
- // up necessary since we never stop tracking anymore.
- track(domElement);
- postMountWrapper$3(domElement);
- break;
-
- case 'select':
- case 'option':
- // For input and textarea we current always set the value property at
- // post mount to force it to diverge from attributes. However, for
- // option and select we don't quite do the same thing and select
- // is not resilient to the DOM state changing so we don't do that here.
- // TODO: Consider not doing this for input and textarea.
- break;
-
- default:
- if (typeof rawProps.onClick === 'function') {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(domElement);
- }
-
- break;
- }
-
- return updatePayload;
- }
- function diffHydratedText(textNode, text) {
- var isDifferent = textNode.nodeValue !== text;
- return isDifferent;
- }
- function warnForUnmatchedText(textNode, text) {
- {
- warnForTextDifference(textNode.nodeValue, text);
- }
- }
- function warnForDeletedHydratableElement(parentNode, child) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
- }
- }
- function warnForDeletedHydratableText(parentNode, child) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
- }
- }
- function warnForInsertedHydratedElement(parentNode, tag, props) {
- {
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
- }
- }
- function warnForInsertedHydratedText(parentNode, text) {
- {
- if (text === '') {
- // We expect to insert empty text nodes since they're not represented in
- // the HTML.
- // TODO: Remove this special case if we can just avoid inserting empty
- // text nodes.
- return;
- }
-
- if (didWarnInvalidHydration) {
- return;
- }
-
- didWarnInvalidHydration = true;
-
- error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
- }
- }
- function restoreControlledState$3(domElement, tag, props) {
- switch (tag) {
- case 'input':
- restoreControlledState(domElement, props);
- return;
-
- case 'textarea':
- restoreControlledState$2(domElement, props);
- return;
-
- case 'select':
- restoreControlledState$1(domElement, props);
- return;
- }
- }
-
- var validateDOMNesting = function () {};
-
- var updatedAncestorInfo = function () {};
-
- {
- // This validation code was written based on the HTML5 parsing spec:
- // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
- //
- // Note: this does not catch all invalid nesting, nor does it try to (as it's
- // not clear what practical benefit doing so provides); instead, we warn only
- // for cases where the parser will give a parse tree differing from what React
- // intended. For example, <b><div></div></b> is invalid but we don't warn
- // because it still parses correctly; we do warn for other cases like nested
- // <p> tags where the beginning of the second element implicitly closes the
- // first, causing a confusing mess.
- // https://html.spec.whatwg.org/multipage/syntax.html#special
- var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
-
- var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
- // TODO: Distinguish by namespace here -- for <title>, including it here
- // errs on the side of fewer warnings
- 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
-
- var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
-
- var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
- var emptyAncestorInfo = {
- current: null,
- formTag: null,
- aTagInScope: null,
- buttonTagInScope: null,
- nobrTagInScope: null,
- pTagInButtonScope: null,
- listItemTagAutoclosing: null,
- dlItemTagAutoclosing: null
- };
-
- updatedAncestorInfo = function (oldInfo, tag) {
- var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
-
- var info = {
- tag: tag
- };
-
- if (inScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.aTagInScope = null;
- ancestorInfo.buttonTagInScope = null;
- ancestorInfo.nobrTagInScope = null;
- }
-
- if (buttonScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.pTagInButtonScope = null;
- } // See rules for 'li', 'dd', 'dt' start tags in
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
-
-
- if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
- ancestorInfo.listItemTagAutoclosing = null;
- ancestorInfo.dlItemTagAutoclosing = null;
- }
-
- ancestorInfo.current = info;
-
- if (tag === 'form') {
- ancestorInfo.formTag = info;
- }
-
- if (tag === 'a') {
- ancestorInfo.aTagInScope = info;
- }
-
- if (tag === 'button') {
- ancestorInfo.buttonTagInScope = info;
- }
-
- if (tag === 'nobr') {
- ancestorInfo.nobrTagInScope = info;
- }
-
- if (tag === 'p') {
- ancestorInfo.pTagInButtonScope = info;
- }
-
- if (tag === 'li') {
- ancestorInfo.listItemTagAutoclosing = info;
- }
-
- if (tag === 'dd' || tag === 'dt') {
- ancestorInfo.dlItemTagAutoclosing = info;
- }
-
- return ancestorInfo;
- };
- /**
- * Returns whether
- */
-
-
- var isTagValidWithParent = function (tag, parentTag) {
- // First, let's check if we're in an unusual parsing mode...
- switch (parentTag) {
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
- case 'select':
- return tag === 'option' || tag === 'optgroup' || tag === '#text';
-
- case 'optgroup':
- return tag === 'option' || tag === '#text';
- // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
- // but
-
- case 'option':
- return tag === '#text';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
- // No special behavior since these rules fall back to "in body" mode for
- // all except special table nodes which cause bad parsing behavior anyway.
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
-
- case 'tr':
- return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
-
- case 'tbody':
- case 'thead':
- case 'tfoot':
- return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
-
- case 'colgroup':
- return tag === 'col' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
-
- case 'table':
- return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
-
- case 'head':
- return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
- // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
-
- case 'html':
- return tag === 'head' || tag === 'body' || tag === 'frameset';
-
- case 'frameset':
- return tag === 'frame';
-
- case '#document':
- return tag === 'html';
- } // Probably in the "in body" parsing mode, so we outlaw only tag combos
- // where the parsing rules cause implicit opens or closes to be added.
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
-
-
- switch (tag) {
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
-
- case 'rp':
- case 'rt':
- return impliedEndTags.indexOf(parentTag) === -1;
-
- case 'body':
- case 'caption':
- case 'col':
- case 'colgroup':
- case 'frameset':
- case 'frame':
- case 'head':
- case 'html':
- case 'tbody':
- case 'td':
- case 'tfoot':
- case 'th':
- case 'thead':
- case 'tr':
- // These tags are only valid with a few parents that have special child
- // parsing rules -- if we're down here, then none of those matched and
- // so we allow it only if we don't know what the parent is, as all other
- // cases are invalid.
- return parentTag == null;
- }
-
- return true;
- };
- /**
- * Returns whether
- */
-
-
- var findInvalidAncestorForTag = function (tag, ancestorInfo) {
- switch (tag) {
- case 'address':
- case 'article':
- case 'aside':
- case 'blockquote':
- case 'center':
- case 'details':
- case 'dialog':
- case 'dir':
- case 'div':
- case 'dl':
- case 'fieldset':
- case 'figcaption':
- case 'figure':
- case 'footer':
- case 'header':
- case 'hgroup':
- case 'main':
- case 'menu':
- case 'nav':
- case 'ol':
- case 'p':
- case 'section':
- case 'summary':
- case 'ul':
- case 'pre':
- case 'listing':
- case 'table':
- case 'hr':
- case 'xmp':
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return ancestorInfo.pTagInButtonScope;
-
- case 'form':
- return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
-
- case 'li':
- return ancestorInfo.listItemTagAutoclosing;
-
- case 'dd':
- case 'dt':
- return ancestorInfo.dlItemTagAutoclosing;
-
- case 'button':
- return ancestorInfo.buttonTagInScope;
-
- case 'a':
- // Spec says something about storing a list of markers, but it sounds
- // equivalent to this check.
- return ancestorInfo.aTagInScope;
-
- case 'nobr':
- return ancestorInfo.nobrTagInScope;
- }
-
- return null;
- };
-
- var didWarn$1 = {};
-
- validateDOMNesting = function (childTag, childText, ancestorInfo) {
- ancestorInfo = ancestorInfo || emptyAncestorInfo;
- var parentInfo = ancestorInfo.current;
- var parentTag = parentInfo && parentInfo.tag;
-
- if (childText != null) {
- if (childTag != null) {
- error('validateDOMNesting: when childText is passed, childTag should be null');
- }
-
- childTag = '#text';
- }
-
- var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
- var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
- var invalidParentOrAncestor = invalidParent || invalidAncestor;
-
- if (!invalidParentOrAncestor) {
- return;
- }
-
- var ancestorTag = invalidParentOrAncestor.tag;
- var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;
-
- if (didWarn$1[warnKey]) {
- return;
- }
-
- didWarn$1[warnKey] = true;
- var tagDisplayName = childTag;
- var whitespaceInfo = '';
-
- if (childTag === '#text') {
- if (/\S/.test(childText)) {
- tagDisplayName = 'Text nodes';
- } else {
- tagDisplayName = 'Whitespace text nodes';
- whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
- }
- } else {
- tagDisplayName = '<' + childTag + '>';
- }
-
- if (invalidParent) {
- var info = '';
-
- if (ancestorTag === 'table' && childTag === 'tr') {
- info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
- }
-
- error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
- } else {
- error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
- }
- };
- }
-
- var SUPPRESS_HYDRATION_WARNING$1;
-
- {
- SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
- }
-
- var SUSPENSE_START_DATA = '$';
- var SUSPENSE_END_DATA = '/$';
- var SUSPENSE_PENDING_START_DATA = '$?';
- var SUSPENSE_FALLBACK_START_DATA = '$!';
- var STYLE$1 = 'style';
- var eventsEnabled = null;
- var selectionInformation = null;
-
- function shouldAutoFocusHostComponent(type, props) {
- switch (type) {
- case 'button':
- case 'input':
- case 'select':
- case 'textarea':
- return !!props.autoFocus;
- }
-
- return false;
- }
- function getRootHostContext(rootContainerInstance) {
- var type;
- var namespace;
- var nodeType = rootContainerInstance.nodeType;
-
- switch (nodeType) {
- case DOCUMENT_NODE:
- case DOCUMENT_FRAGMENT_NODE:
- {
- type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
- var root = rootContainerInstance.documentElement;
- namespace = root ? root.namespaceURI : getChildNamespace(null, '');
- break;
- }
-
- default:
- {
- var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
- var ownNamespace = container.namespaceURI || null;
- type = container.tagName;
- namespace = getChildNamespace(ownNamespace, type);
- break;
- }
- }
-
- {
- var validatedTag = type.toLowerCase();
- var ancestorInfo = updatedAncestorInfo(null, validatedTag);
- return {
- namespace: namespace,
- ancestorInfo: ancestorInfo
- };
- }
- }
- function getChildHostContext(parentHostContext, type, rootContainerInstance) {
- {
- var parentHostContextDev = parentHostContext;
- var namespace = getChildNamespace(parentHostContextDev.namespace, type);
- var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
- return {
- namespace: namespace,
- ancestorInfo: ancestorInfo
- };
- }
- }
- function getPublicInstance(instance) {
- return instance;
- }
- function prepareForCommit(containerInfo) {
- eventsEnabled = isEnabled();
- selectionInformation = getSelectionInformation();
- var activeInstance = null;
-
- setEnabled(false);
- return activeInstance;
- }
- function resetAfterCommit(containerInfo) {
- restoreSelection(selectionInformation);
- setEnabled(eventsEnabled);
- eventsEnabled = null;
- selectionInformation = null;
- }
- function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
- var parentNamespace;
-
- {
- // TODO: take namespace into account when validating.
- var hostContextDev = hostContext;
- validateDOMNesting(type, null, hostContextDev.ancestorInfo);
-
- if (typeof props.children === 'string' || typeof props.children === 'number') {
- var string = '' + props.children;
- var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
- validateDOMNesting(null, string, ownAncestorInfo);
- }
-
- parentNamespace = hostContextDev.namespace;
- }
-
- var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
- precacheFiberNode(internalInstanceHandle, domElement);
- updateFiberProps(domElement, props);
- return domElement;
- }
- function appendInitialChild(parentInstance, child) {
- parentInstance.appendChild(child);
- }
- function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
- setInitialProperties(domElement, type, props, rootContainerInstance);
- return shouldAutoFocusHostComponent(type, props);
- }
- function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
- {
- var hostContextDev = hostContext;
-
- if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
- var string = '' + newProps.children;
- var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
- validateDOMNesting(null, string, ownAncestorInfo);
- }
- }
-
- return diffProperties(domElement, type, oldProps, newProps);
- }
- function shouldSetTextContent(type, props) {
- return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
- }
- function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
- {
- var hostContextDev = hostContext;
- validateDOMNesting(null, text, hostContextDev.ancestorInfo);
- }
-
- var textNode = createTextNode(text, rootContainerInstance);
- precacheFiberNode(internalInstanceHandle, textNode);
- return textNode;
- }
- // if a component just imports ReactDOM (e.g. for findDOMNode).
- // Some environments might not have setTimeout or clearTimeout.
-
- var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
- var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
- var noTimeout = -1; // -------------------
- function commitMount(domElement, type, newProps, internalInstanceHandle) {
- // Despite the naming that might imply otherwise, this method only
- // fires if there is an `Update` effect scheduled during mounting.
- // This happens if `finalizeInitialChildren` returns `true` (which it
- // does to implement the `autoFocus` attribute on the client). But
- // there are also other cases when this might happen (such as patching
- // up text content during hydration mismatch). So we'll check this again.
- if (shouldAutoFocusHostComponent(type, newProps)) {
- domElement.focus();
- }
- }
- function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
- // Update the props handle so that we know which props are the ones with
- // with current event handlers.
- updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.
-
- updateProperties(domElement, updatePayload, type, oldProps, newProps);
- }
- function resetTextContent(domElement) {
- setTextContent(domElement, '');
- }
- function commitTextUpdate(textInstance, oldText, newText) {
- textInstance.nodeValue = newText;
- }
- function appendChild(parentInstance, child) {
- parentInstance.appendChild(child);
- }
- function appendChildToContainer(container, child) {
- var parentNode;
-
- if (container.nodeType === COMMENT_NODE) {
- parentNode = container.parentNode;
- parentNode.insertBefore(child, container);
- } else {
- parentNode = container;
- parentNode.appendChild(child);
- } // This container might be used for a portal.
- // If something inside a portal is clicked, that click should bubble
- // through the React tree. However, on Mobile Safari the click would
- // never bubble through the *DOM* tree unless an ancestor with onclick
- // event exists. So we wouldn't see it and dispatch it.
- // This is why we ensure that non React root containers have inline onclick
- // defined.
- // https://github.com/facebook/react/issues/11918
-
-
- var reactRootContainer = container._reactRootContainer;
-
- if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
- // TODO: This cast may not be sound for SVG, MathML or custom elements.
- trapClickOnNonInteractiveElement(parentNode);
- }
- }
- function insertBefore(parentInstance, child, beforeChild) {
- parentInstance.insertBefore(child, beforeChild);
- }
- function insertInContainerBefore(container, child, beforeChild) {
- if (container.nodeType === COMMENT_NODE) {
- container.parentNode.insertBefore(child, beforeChild);
- } else {
- container.insertBefore(child, beforeChild);
- }
- }
-
- function removeChild(parentInstance, child) {
- parentInstance.removeChild(child);
- }
- function removeChildFromContainer(container, child) {
- if (container.nodeType === COMMENT_NODE) {
- container.parentNode.removeChild(child);
- } else {
- container.removeChild(child);
- }
- }
- function hideInstance(instance) {
- // TODO: Does this work for all element types? What about MathML? Should we
- // pass host context to this method?
- instance = instance;
- var style = instance.style;
-
- if (typeof style.setProperty === 'function') {
- style.setProperty('display', 'none', 'important');
- } else {
- style.display = 'none';
- }
- }
- function hideTextInstance(textInstance) {
- textInstance.nodeValue = '';
- }
- function unhideInstance(instance, props) {
- instance = instance;
- var styleProp = props[STYLE$1];
- var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
- instance.style.display = dangerousStyleValue('display', display);
- }
- function unhideTextInstance(textInstance, text) {
- textInstance.nodeValue = text;
- }
- function clearContainer(container) {
- if (container.nodeType === ELEMENT_NODE) {
- container.textContent = '';
- } else if (container.nodeType === DOCUMENT_NODE) {
- var body = container.body;
-
- if (body != null) {
- body.textContent = '';
- }
- }
- } // -------------------
- function canHydrateInstance(instance, type, props) {
- if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
- return null;
- } // This has now been refined to an element node.
-
-
- return instance;
- }
- function canHydrateTextInstance(instance, text) {
- if (text === '' || instance.nodeType !== TEXT_NODE) {
- // Empty strings are not parsed by HTML so there won't be a correct match here.
- return null;
- } // This has now been refined to a text node.
-
-
- return instance;
- }
- function isSuspenseInstancePending(instance) {
- return instance.data === SUSPENSE_PENDING_START_DATA;
- }
- function isSuspenseInstanceFallback(instance) {
- return instance.data === SUSPENSE_FALLBACK_START_DATA;
- }
-
- function getNextHydratable(node) {
- // Skip non-hydratable nodes.
- for (; node != null; node = node.nextSibling) {
- var nodeType = node.nodeType;
-
- if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
- break;
- }
- }
-
- return node;
- }
-
- function getNextHydratableSibling(instance) {
- return getNextHydratable(instance.nextSibling);
- }
- function getFirstHydratableChild(parentInstance) {
- return getNextHydratable(parentInstance.firstChild);
- }
- function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
- precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
- // get attached.
-
- updateFiberProps(instance, props);
- var parentNamespace;
-
- {
- var hostContextDev = hostContext;
- parentNamespace = hostContextDev.namespace;
- }
-
- return diffHydratedProperties(instance, type, props, parentNamespace);
- }
- function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
- precacheFiberNode(internalInstanceHandle, textInstance);
- return diffHydratedText(textInstance, text);
- }
- function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
- var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
- // There might be nested nodes so we need to keep track of how
- // deep we are and only break out when we're back on top.
-
- var depth = 0;
-
- while (node) {
- if (node.nodeType === COMMENT_NODE) {
- var data = node.data;
-
- if (data === SUSPENSE_END_DATA) {
- if (depth === 0) {
- return getNextHydratableSibling(node);
- } else {
- depth--;
- }
- } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
- depth++;
- }
- }
-
- node = node.nextSibling;
- } // TODO: Warn, we didn't find the end comment boundary.
-
-
- return null;
- } // Returns the SuspenseInstance if this node is a direct child of a
- // SuspenseInstance. I.e. if its previous sibling is a Comment with
- // SUSPENSE_x_START_DATA. Otherwise, null.
-
- function getParentSuspenseInstance(targetInstance) {
- var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
- // There might be nested nodes so we need to keep track of how
- // deep we are and only break out when we're back on top.
-
- var depth = 0;
-
- while (node) {
- if (node.nodeType === COMMENT_NODE) {
- var data = node.data;
-
- if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
- if (depth === 0) {
- return node;
- } else {
- depth--;
- }
- } else if (data === SUSPENSE_END_DATA) {
- depth++;
- }
- }
-
- node = node.previousSibling;
- }
-
- return null;
- }
- function commitHydratedContainer(container) {
- // Retry if any event replaying was blocked on this.
- retryIfBlockedOn(container);
- }
- function commitHydratedSuspenseInstance(suspenseInstance) {
- // Retry if any event replaying was blocked on this.
- retryIfBlockedOn(suspenseInstance);
- }
- function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
- {
- warnForUnmatchedText(textInstance, text);
- }
- }
- function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
- if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- warnForUnmatchedText(textInstance, text);
- }
- }
- function didNotHydrateContainerInstance(parentContainer, instance) {
- {
- if (instance.nodeType === ELEMENT_NODE) {
- warnForDeletedHydratableElement(parentContainer, instance);
- } else if (instance.nodeType === COMMENT_NODE) ; else {
- warnForDeletedHydratableText(parentContainer, instance);
- }
- }
- }
- function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
- if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- if (instance.nodeType === ELEMENT_NODE) {
- warnForDeletedHydratableElement(parentInstance, instance);
- } else if (instance.nodeType === COMMENT_NODE) ; else {
- warnForDeletedHydratableText(parentInstance, instance);
- }
- }
- }
- function didNotFindHydratableContainerInstance(parentContainer, type, props) {
- {
- warnForInsertedHydratedElement(parentContainer, type);
- }
- }
- function didNotFindHydratableContainerTextInstance(parentContainer, text) {
- {
- warnForInsertedHydratedText(parentContainer, text);
- }
- }
- function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
- if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- warnForInsertedHydratedElement(parentInstance, type);
- }
- }
- function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
- if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
- warnForInsertedHydratedText(parentInstance, text);
- }
- }
- function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
- if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
- }
- var clientId = 0;
- function makeClientIdInDEV(warnOnAccessInDEV) {
- var id = 'r:' + (clientId++).toString(36);
- return {
- toString: function () {
- warnOnAccessInDEV();
- return id;
- },
- valueOf: function () {
- warnOnAccessInDEV();
- return id;
- }
- };
- }
- function isOpaqueHydratingObject(value) {
- return value !== null && typeof value === 'object' && value.$$typeof === REACT_OPAQUE_ID_TYPE;
- }
- function makeOpaqueHydratingObject(attemptToReadValue) {
- return {
- $$typeof: REACT_OPAQUE_ID_TYPE,
- toString: attemptToReadValue,
- valueOf: attemptToReadValue
- };
- }
- function preparePortalMount(portalInstance) {
- {
- listenToAllSupportedEvents(portalInstance);
- }
- }
-
- var randomKey = Math.random().toString(36).slice(2);
- var internalInstanceKey = '__reactFiber$' + randomKey;
- var internalPropsKey = '__reactProps$' + randomKey;
- var internalContainerInstanceKey = '__reactContainer$' + randomKey;
- var internalEventHandlersKey = '__reactEvents$' + randomKey;
- function precacheFiberNode(hostInst, node) {
- node[internalInstanceKey] = hostInst;
- }
- function markContainerAsRoot(hostRoot, node) {
- node[internalContainerInstanceKey] = hostRoot;
- }
- function unmarkContainerAsRoot(node) {
- node[internalContainerInstanceKey] = null;
- }
- function isContainerMarkedAsRoot(node) {
- return !!node[internalContainerInstanceKey];
- } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
- // If the target node is part of a hydrated or not yet rendered subtree, then
- // this may also return a SuspenseComponent or HostRoot to indicate that.
- // Conceptually the HostRoot fiber is a child of the Container node. So if you
- // pass the Container node as the targetNode, you will not actually get the
- // HostRoot back. To get to the HostRoot, you need to pass a child of it.
- // The same thing applies to Suspense boundaries.
-
- function getClosestInstanceFromNode(targetNode) {
- var targetInst = targetNode[internalInstanceKey];
-
- if (targetInst) {
- // Don't return HostRoot or SuspenseComponent here.
- return targetInst;
- } // If the direct event target isn't a React owned DOM node, we need to look
- // to see if one of its parents is a React owned DOM node.
-
-
- var parentNode = targetNode.parentNode;
-
- while (parentNode) {
- // We'll check if this is a container root that could include
- // React nodes in the future. We need to check this first because
- // if we're a child of a dehydrated container, we need to first
- // find that inner container before moving on to finding the parent
- // instance. Note that we don't check this field on the targetNode
- // itself because the fibers are conceptually between the container
- // node and the first child. It isn't surrounding the container node.
- // If it's not a container, we check if it's an instance.
- targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
-
- if (targetInst) {
- // Since this wasn't the direct target of the event, we might have
- // stepped past dehydrated DOM nodes to get here. However they could
- // also have been non-React nodes. We need to answer which one.
- // If we the instance doesn't have any children, then there can't be
- // a nested suspense boundary within it. So we can use this as a fast
- // bailout. Most of the time, when people add non-React children to
- // the tree, it is using a ref to a child-less DOM node.
- // Normally we'd only need to check one of the fibers because if it
- // has ever gone from having children to deleting them or vice versa
- // it would have deleted the dehydrated boundary nested inside already.
- // However, since the HostRoot starts out with an alternate it might
- // have one on the alternate so we need to check in case this was a
- // root.
- var alternate = targetInst.alternate;
-
- if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
- // Next we need to figure out if the node that skipped past is
- // nested within a dehydrated boundary and if so, which one.
- var suspenseInstance = getParentSuspenseInstance(targetNode);
-
- while (suspenseInstance !== null) {
- // We found a suspense instance. That means that we haven't
- // hydrated it yet. Even though we leave the comments in the
- // DOM after hydrating, and there are boundaries in the DOM
- // that could already be hydrated, we wouldn't have found them
- // through this pass since if the target is hydrated it would
- // have had an internalInstanceKey on it.
- // Let's get the fiber associated with the SuspenseComponent
- // as the deepest instance.
- var targetSuspenseInst = suspenseInstance[internalInstanceKey];
-
- if (targetSuspenseInst) {
- return targetSuspenseInst;
- } // If we don't find a Fiber on the comment, it might be because
- // we haven't gotten to hydrate it yet. There might still be a
- // parent boundary that hasn't above this one so we need to find
- // the outer most that is known.
-
-
- suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
- // host component also hasn't hydrated yet. We can return it
- // below since it will bail out on the isMounted check later.
- }
- }
-
- return targetInst;
- }
-
- targetNode = parentNode;
- parentNode = targetNode.parentNode;
- }
-
- return null;
- }
- /**
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
- * instance, or null if the node was not rendered by this React.
- */
-
- function getInstanceFromNode(node) {
- var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
-
- if (inst) {
- if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
- return inst;
- } else {
- return null;
- }
- }
-
- return null;
- }
- /**
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
- * DOM node.
- */
-
- function getNodeFromInstance(inst) {
- if (inst.tag === HostComponent || inst.tag === HostText) {
- // In Fiber this, is just the state node right now. We assume it will be
- // a host component or host text.
- return inst.stateNode;
- } // Without this first invariant, passing a non-DOM-component triggers the next
- // invariant for a missing parent, which is super confusing.
-
-
- {
- {
- throw Error( "getNodeFromInstance: Invalid argument." );
- }
- }
- }
- function getFiberCurrentPropsFromNode(node) {
- return node[internalPropsKey] || null;
- }
- function updateFiberProps(node, props) {
- node[internalPropsKey] = props;
- }
- function getEventListenerSet(node) {
- var elementListenerSet = node[internalEventHandlersKey];
-
- if (elementListenerSet === undefined) {
- elementListenerSet = node[internalEventHandlersKey] = new Set();
- }
-
- return elementListenerSet;
- }
-
- var loggedTypeFailures = {};
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
-
- function setCurrentlyValidatingElement(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
- } else {
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
- }
- }
- }
-
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
- {
- // $FlowFixMe This is okay but Flow doesn't know it.
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
-
- for (var typeSpecName in typeSpecs) {
- if (has(typeSpecs, typeSpecName)) {
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
-
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- if (typeof typeSpecs[typeSpecName] !== 'function') {
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
- err.name = 'Invariant Violation';
- throw err;
- }
-
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
- } catch (ex) {
- error$1 = ex;
- }
-
- if (error$1 && !(error$1 instanceof Error)) {
- setCurrentlyValidatingElement(element);
-
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
-
- setCurrentlyValidatingElement(null);
- }
-
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error$1.message] = true;
- setCurrentlyValidatingElement(element);
-
- error('Failed %s type: %s', location, error$1.message);
-
- setCurrentlyValidatingElement(null);
- }
- }
- }
- }
- }
-
- var valueStack = [];
- var fiberStack;
-
- {
- fiberStack = [];
- }
-
- var index = -1;
-
- function createCursor(defaultValue) {
- return {
- current: defaultValue
- };
- }
-
- function pop(cursor, fiber) {
- if (index < 0) {
- {
- error('Unexpected pop.');
- }
-
- return;
- }
-
- {
- if (fiber !== fiberStack[index]) {
- error('Unexpected Fiber popped.');
- }
- }
-
- cursor.current = valueStack[index];
- valueStack[index] = null;
-
- {
- fiberStack[index] = null;
- }
-
- index--;
- }
-
- function push(cursor, value, fiber) {
- index++;
- valueStack[index] = cursor.current;
-
- {
- fiberStack[index] = fiber;
- }
-
- cursor.current = value;
- }
-
- var warnedAboutMissingGetChildContext;
-
- {
- warnedAboutMissingGetChildContext = {};
- }
-
- var emptyContextObject = {};
-
- {
- Object.freeze(emptyContextObject);
- } // A cursor to the current merged context object on the stack.
-
-
- var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
-
- var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
- // We use this to get access to the parent context after we have already
- // pushed the next context provider, and now need to merge their contexts.
-
- var previousContext = emptyContextObject;
-
- function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
- {
- if (didPushOwnContextIfProvider && isContextProvider(Component)) {
- // If the fiber is a context provider itself, when we read its context
- // we may have already pushed its own child context on the stack. A context
- // provider should not "see" its own child context. Therefore we read the
- // previous (parent) context instead for a context provider.
- return previousContext;
- }
-
- return contextStackCursor.current;
- }
- }
-
- function cacheContext(workInProgress, unmaskedContext, maskedContext) {
- {
- var instance = workInProgress.stateNode;
- instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
- instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
- }
- }
-
- function getMaskedContext(workInProgress, unmaskedContext) {
- {
- var type = workInProgress.type;
- var contextTypes = type.contextTypes;
-
- if (!contextTypes) {
- return emptyContextObject;
- } // Avoid recreating masked context unless unmasked context has changed.
- // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
- // This may trigger infinite loops if componentWillReceiveProps calls setState.
-
-
- var instance = workInProgress.stateNode;
-
- if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
- return instance.__reactInternalMemoizedMaskedChildContext;
- }
-
- var context = {};
-
- for (var key in contextTypes) {
- context[key] = unmaskedContext[key];
- }
-
- {
- var name = getComponentName(type) || 'Unknown';
- checkPropTypes(contextTypes, context, 'context', name);
- } // Cache unmasked context so we can avoid recreating masked context unless necessary.
- // Context is created before the class component is instantiated so check for instance.
-
-
- if (instance) {
- cacheContext(workInProgress, unmaskedContext, context);
- }
-
- return context;
- }
- }
-
- function hasContextChanged() {
- {
- return didPerformWorkStackCursor.current;
- }
- }
-
- function isContextProvider(type) {
- {
- var childContextTypes = type.childContextTypes;
- return childContextTypes !== null && childContextTypes !== undefined;
- }
- }
-
- function popContext(fiber) {
- {
- pop(didPerformWorkStackCursor, fiber);
- pop(contextStackCursor, fiber);
- }
- }
-
- function popTopLevelContextObject(fiber) {
- {
- pop(didPerformWorkStackCursor, fiber);
- pop(contextStackCursor, fiber);
- }
- }
-
- function pushTopLevelContextObject(fiber, context, didChange) {
- {
- if (!(contextStackCursor.current === emptyContextObject)) {
- {
- throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- push(contextStackCursor, context, fiber);
- push(didPerformWorkStackCursor, didChange, fiber);
- }
- }
-
- function processChildContext(fiber, type, parentContext) {
- {
- var instance = fiber.stateNode;
- var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
- // It has only been added in Fiber to match the (unintentional) behavior in Stack.
-
- if (typeof instance.getChildContext !== 'function') {
- {
- var componentName = getComponentName(type) || 'Unknown';
-
- if (!warnedAboutMissingGetChildContext[componentName]) {
- warnedAboutMissingGetChildContext[componentName] = true;
-
- error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
- }
- }
-
- return parentContext;
- }
-
- var childContext = instance.getChildContext();
-
- for (var contextKey in childContext) {
- if (!(contextKey in childContextTypes)) {
- {
- throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
- }
- }
- }
-
- {
- var name = getComponentName(type) || 'Unknown';
- checkPropTypes(childContextTypes, childContext, 'child context', name);
- }
-
- return _assign({}, parentContext, childContext);
- }
- }
-
- function pushContextProvider(workInProgress) {
- {
- var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
- // If the instance does not exist yet, we will push null at first,
- // and replace it on the stack later when invalidating the context.
-
- var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
- // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
-
- previousContext = contextStackCursor.current;
- push(contextStackCursor, memoizedMergedChildContext, workInProgress);
- push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
- return true;
- }
- }
-
- function invalidateContextProvider(workInProgress, type, didChange) {
- {
- var instance = workInProgress.stateNode;
-
- if (!instance) {
- {
- throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- if (didChange) {
- // Merge parent and own context.
- // Skip this if we're not updating due to sCU.
- // This avoids unnecessarily recomputing memoized values.
- var mergedContext = processChildContext(workInProgress, type, previousContext);
- instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
- // It is important to unwind the context in the reverse order.
-
- pop(didPerformWorkStackCursor, workInProgress);
- pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
-
- push(contextStackCursor, mergedContext, workInProgress);
- push(didPerformWorkStackCursor, didChange, workInProgress);
- } else {
- pop(didPerformWorkStackCursor, workInProgress);
- push(didPerformWorkStackCursor, didChange, workInProgress);
- }
- }
- }
-
- function findCurrentUnmaskedContext(fiber) {
- {
- // Currently this is only used with renderSubtreeIntoContainer; not sure if it
- // makes sense elsewhere
- if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
- {
- throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var node = fiber;
-
- do {
- switch (node.tag) {
- case HostRoot:
- return node.stateNode.context;
-
- case ClassComponent:
- {
- var Component = node.type;
-
- if (isContextProvider(Component)) {
- return node.stateNode.__reactInternalMemoizedMergedChildContext;
- }
-
- break;
- }
- }
-
- node = node.return;
- } while (node !== null);
-
- {
- {
- throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
- }
-
- var LegacyRoot = 0;
- var BlockingRoot = 1;
- var ConcurrentRoot = 2;
-
- var rendererID = null;
- var injectedHook = null;
- var hasLoggedError = false;
- var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
- function injectInternals(internals) {
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
- // No DevTools
- return false;
- }
-
- var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
-
- if (hook.isDisabled) {
- // This isn't a real property on the hook, but it can be set to opt out
- // of DevTools integration and associated warnings and logs.
- // https://github.com/facebook/react/issues/3877
- return true;
- }
-
- if (!hook.supportsFiber) {
- {
- error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');
- } // DevTools exists, even though it doesn't support Fiber.
-
-
- return true;
- }
-
- try {
- rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
-
- injectedHook = hook;
- } catch (err) {
- // Catch all errors because it is unsafe to throw during initialization.
- {
- error('React instrumentation encountered an error: %s.', err);
- }
- } // DevTools exists
-
-
- return true;
- }
- function onScheduleRoot(root, children) {
- {
- if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {
- try {
- injectedHook.onScheduleFiberRoot(rendererID, root, children);
- } catch (err) {
- if ( !hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function onCommitRoot(root, priorityLevel) {
- if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {
- try {
- var didError = (root.current.flags & DidCapture) === DidCapture;
-
- if (enableProfilerTimer) {
- injectedHook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
- } else {
- injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);
- }
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
- function onCommitUnmount(fiber) {
- if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {
- try {
- injectedHook.onCommitFiberUnmount(rendererID, fiber);
- } catch (err) {
- {
- if (!hasLoggedError) {
- hasLoggedError = true;
-
- error('React instrumentation encountered an error: %s', err);
- }
- }
- }
- }
- }
-
- var Scheduler_runWithPriority = unstable_runWithPriority,
- Scheduler_scheduleCallback = unstable_scheduleCallback,
- Scheduler_cancelCallback = unstable_cancelCallback,
- Scheduler_shouldYield = unstable_shouldYield,
- Scheduler_requestPaint = unstable_requestPaint,
- Scheduler_now$1 = unstable_now,
- Scheduler_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel,
- Scheduler_ImmediatePriority = unstable_ImmediatePriority,
- Scheduler_UserBlockingPriority = unstable_UserBlockingPriority,
- Scheduler_NormalPriority = unstable_NormalPriority,
- Scheduler_LowPriority = unstable_LowPriority,
- Scheduler_IdlePriority = unstable_IdlePriority;
-
- {
- // Provide explicit error message when production+profiling bundle of e.g.
- // react-dom is used with production (non-profiling) bundle of
- // scheduler/tracing
- if (!(__interactionsRef != null && __interactionsRef.current != null)) {
- {
- throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
- }
- }
- }
-
- var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
- // ascending numbers so we can compare them like numbers. They start at 90 to
- // avoid clashing with Scheduler's priorities.
-
- var ImmediatePriority$1 = 99;
- var UserBlockingPriority$2 = 98;
- var NormalPriority$1 = 97;
- var LowPriority$1 = 96;
- var IdlePriority$1 = 95; // NoPriority is the absence of priority. Also React-only.
-
- var NoPriority$1 = 90;
- var shouldYield = Scheduler_shouldYield;
- var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
- Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
- var syncQueue = null;
- var immediateQueueCallbackNode = null;
- var isFlushingSyncQueue = false;
- var initialTimeMs$1 = Scheduler_now$1(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
- // This will be the case for modern browsers that support `performance.now`. In
- // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
- // timestamp. In that case, subtract the module initialization time to simulate
- // the behavior of performance.now and keep our times small enough to fit
- // within 32 bits.
- // TODO: Consider lifting this into Scheduler.
-
- var now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function () {
- return Scheduler_now$1() - initialTimeMs$1;
- };
- function getCurrentPriorityLevel() {
- switch (Scheduler_getCurrentPriorityLevel()) {
- case Scheduler_ImmediatePriority:
- return ImmediatePriority$1;
-
- case Scheduler_UserBlockingPriority:
- return UserBlockingPriority$2;
-
- case Scheduler_NormalPriority:
- return NormalPriority$1;
-
- case Scheduler_LowPriority:
- return LowPriority$1;
-
- case Scheduler_IdlePriority:
- return IdlePriority$1;
-
- default:
- {
- {
- throw Error( "Unknown priority level." );
- }
- }
-
- }
- }
-
- function reactPriorityToSchedulerPriority(reactPriorityLevel) {
- switch (reactPriorityLevel) {
- case ImmediatePriority$1:
- return Scheduler_ImmediatePriority;
-
- case UserBlockingPriority$2:
- return Scheduler_UserBlockingPriority;
-
- case NormalPriority$1:
- return Scheduler_NormalPriority;
-
- case LowPriority$1:
- return Scheduler_LowPriority;
-
- case IdlePriority$1:
- return Scheduler_IdlePriority;
-
- default:
- {
- {
- throw Error( "Unknown priority level." );
- }
- }
-
- }
- }
-
- function runWithPriority$1(reactPriorityLevel, fn) {
- var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
- return Scheduler_runWithPriority(priorityLevel, fn);
- }
- function scheduleCallback(reactPriorityLevel, callback, options) {
- var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
- return Scheduler_scheduleCallback(priorityLevel, callback, options);
- }
- function scheduleSyncCallback(callback) {
- // Push this callback into an internal queue. We'll flush these either in
- // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
- if (syncQueue === null) {
- syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.
-
- immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
- } else {
- // Push onto existing queue. Don't need to schedule a callback because
- // we already scheduled one when we created the queue.
- syncQueue.push(callback);
- }
-
- return fakeCallbackNode;
- }
- function cancelCallback(callbackNode) {
- if (callbackNode !== fakeCallbackNode) {
- Scheduler_cancelCallback(callbackNode);
- }
- }
- function flushSyncCallbackQueue() {
- if (immediateQueueCallbackNode !== null) {
- var node = immediateQueueCallbackNode;
- immediateQueueCallbackNode = null;
- Scheduler_cancelCallback(node);
- }
-
- flushSyncCallbackQueueImpl();
- }
-
- function flushSyncCallbackQueueImpl() {
- if (!isFlushingSyncQueue && syncQueue !== null) {
- // Prevent re-entrancy.
- isFlushingSyncQueue = true;
- var i = 0;
-
- {
- try {
- var _isSync2 = true;
- var _queue = syncQueue;
- runWithPriority$1(ImmediatePriority$1, function () {
- for (; i < _queue.length; i++) {
- var callback = _queue[i];
-
- do {
- callback = callback(_isSync2);
- } while (callback !== null);
- }
- });
- syncQueue = null;
- } catch (error) {
- // If something throws, leave the remaining callbacks on the queue.
- if (syncQueue !== null) {
- syncQueue = syncQueue.slice(i + 1);
- } // Resume flushing in the next tick
-
-
- Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
- throw error;
- } finally {
- isFlushingSyncQueue = false;
- }
- }
- }
- }
-
- // TODO: this is special because it gets imported during build.
- var ReactVersion = '17.0.2';
-
- var NoMode = 0;
- var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
- // tag instead
-
- var BlockingMode = 2;
- var ConcurrentMode = 4;
- var ProfileMode = 8;
- var DebugTracingMode = 16;
-
- var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
- var NoTransition = 0;
- function requestCurrentTransition() {
- return ReactCurrentBatchConfig.transition;
- }
-
- var ReactStrictModeWarnings = {
- recordUnsafeLifecycleWarnings: function (fiber, instance) {},
- flushPendingUnsafeLifecycleWarnings: function () {},
- recordLegacyContextWarning: function (fiber, instance) {},
- flushLegacyContextWarning: function () {},
- discardPendingWarnings: function () {}
- };
-
- {
- var findStrictRoot = function (fiber) {
- var maybeStrictRoot = null;
- var node = fiber;
-
- while (node !== null) {
- if (node.mode & StrictMode) {
- maybeStrictRoot = node;
- }
-
- node = node.return;
- }
-
- return maybeStrictRoot;
- };
-
- var setToSortedString = function (set) {
- var array = [];
- set.forEach(function (value) {
- array.push(value);
- });
- return array.sort().join(', ');
- };
-
- var pendingComponentWillMountWarnings = [];
- var pendingUNSAFE_ComponentWillMountWarnings = [];
- var pendingComponentWillReceivePropsWarnings = [];
- var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- var pendingComponentWillUpdateWarnings = [];
- var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
-
- var didWarnAboutUnsafeLifecycles = new Set();
-
- ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
- // Dedup strategy: Warn once per component.
- if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
- return;
- }
-
- if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
- instance.componentWillMount.__suppressDeprecationWarning !== true) {
- pendingComponentWillMountWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
- pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
- }
-
- if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
- pendingComponentWillReceivePropsWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
- }
-
- if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
- pendingComponentWillUpdateWarnings.push(fiber);
- }
-
- if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
- pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
- }
- };
-
- ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
- // We do an initial pass to gather component names
- var componentWillMountUniqueNames = new Set();
-
- if (pendingComponentWillMountWarnings.length > 0) {
- pendingComponentWillMountWarnings.forEach(function (fiber) {
- componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillMountWarnings = [];
- }
-
- var UNSAFE_componentWillMountUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
- pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
- UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillMountWarnings = [];
- }
-
- var componentWillReceivePropsUniqueNames = new Set();
-
- if (pendingComponentWillReceivePropsWarnings.length > 0) {
- pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
- componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillReceivePropsWarnings = [];
- }
-
- var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
- pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
- UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- }
-
- var componentWillUpdateUniqueNames = new Set();
-
- if (pendingComponentWillUpdateWarnings.length > 0) {
- pendingComponentWillUpdateWarnings.forEach(function (fiber) {
- componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingComponentWillUpdateWarnings = [];
- }
-
- var UNSAFE_componentWillUpdateUniqueNames = new Set();
-
- if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
- pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
- UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutUnsafeLifecycles.add(fiber.type);
- });
- pendingUNSAFE_ComponentWillUpdateWarnings = [];
- } // Finally, we flush all the warnings
- // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
-
-
- if (UNSAFE_componentWillMountUniqueNames.size > 0) {
- var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
-
- error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
- }
-
- if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
- var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
-
- error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
- }
-
- if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
- var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
-
- error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
- }
-
- if (componentWillMountUniqueNames.size > 0) {
- var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
-
- warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
- }
-
- if (componentWillReceivePropsUniqueNames.size > 0) {
- var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
-
- warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
- }
-
- if (componentWillUpdateUniqueNames.size > 0) {
- var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
-
- warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
- }
- };
-
- var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
-
- var didWarnAboutLegacyContext = new Set();
-
- ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
- var strictRoot = findStrictRoot(fiber);
-
- if (strictRoot === null) {
- error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
-
- return;
- } // Dedup strategy: Warn once per component.
-
-
- if (didWarnAboutLegacyContext.has(fiber.type)) {
- return;
- }
-
- var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
-
- if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
- if (warningsForRoot === undefined) {
- warningsForRoot = [];
- pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
- }
-
- warningsForRoot.push(fiber);
- }
- };
-
- ReactStrictModeWarnings.flushLegacyContextWarning = function () {
- pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
- if (fiberArray.length === 0) {
- return;
- }
-
- var firstFiber = fiberArray[0];
- var uniqueNames = new Set();
- fiberArray.forEach(function (fiber) {
- uniqueNames.add(getComponentName(fiber.type) || 'Component');
- didWarnAboutLegacyContext.add(fiber.type);
- });
- var sortedNames = setToSortedString(uniqueNames);
-
- try {
- setCurrentFiber(firstFiber);
-
- error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);
- } finally {
- resetCurrentFiber();
- }
- });
- };
-
- ReactStrictModeWarnings.discardPendingWarnings = function () {
- pendingComponentWillMountWarnings = [];
- pendingUNSAFE_ComponentWillMountWarnings = [];
- pendingComponentWillReceivePropsWarnings = [];
- pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
- pendingComponentWillUpdateWarnings = [];
- pendingUNSAFE_ComponentWillUpdateWarnings = [];
- pendingLegacyContextWarning = new Map();
- };
- }
-
- function resolveDefaultProps(Component, baseProps) {
- if (Component && Component.defaultProps) {
- // Resolve default props. Taken from ReactElement
- var props = _assign({}, baseProps);
-
- var defaultProps = Component.defaultProps;
-
- for (var propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
-
- return props;
- }
-
- return baseProps;
- }
-
- // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
- // Math.pow(2, 30) - 1
- // 0b111111111111111111111111111111
- var MAX_SIGNED_31_BIT_INT = 1073741823;
-
- var valueCursor = createCursor(null);
- var rendererSigil;
-
- {
- // Use this to detect multiple renderers using the same context
- rendererSigil = {};
- }
-
- var currentlyRenderingFiber = null;
- var lastContextDependency = null;
- var lastContextWithAllBitsObserved = null;
- var isDisallowedContextReadInDEV = false;
- function resetContextDependencies() {
- // This is called right before React yields execution, to ensure `readContext`
- // cannot be called outside the render phase.
- currentlyRenderingFiber = null;
- lastContextDependency = null;
- lastContextWithAllBitsObserved = null;
-
- {
- isDisallowedContextReadInDEV = false;
- }
- }
- function enterDisallowedContextReadInDEV() {
- {
- isDisallowedContextReadInDEV = true;
- }
- }
- function exitDisallowedContextReadInDEV() {
- {
- isDisallowedContextReadInDEV = false;
- }
- }
- function pushProvider(providerFiber, nextValue) {
- var context = providerFiber.type._context;
-
- {
- push(valueCursor, context._currentValue, providerFiber);
- context._currentValue = nextValue;
-
- {
- if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
- error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
- }
-
- context._currentRenderer = rendererSigil;
- }
- }
- }
- function popProvider(providerFiber) {
- var currentValue = valueCursor.current;
- pop(valueCursor, providerFiber);
- var context = providerFiber.type._context;
-
- {
- context._currentValue = currentValue;
- }
- }
- function calculateChangedBits(context, newValue, oldValue) {
- if (objectIs(oldValue, newValue)) {
- // No change
- return 0;
- } else {
- var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
-
- {
- if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
- error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
- }
- }
-
- return changedBits | 0;
- }
- }
- function scheduleWorkOnParentPath(parent, renderLanes) {
- // Update the child lanes of all the ancestors, including the alternates.
- var node = parent;
-
- while (node !== null) {
- var alternate = node.alternate;
-
- if (!isSubsetOfLanes(node.childLanes, renderLanes)) {
- node.childLanes = mergeLanes(node.childLanes, renderLanes);
-
- if (alternate !== null) {
- alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
- }
- } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {
- alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
- } else {
- // Neither alternate was updated, which means the rest of the
- // ancestor path already has sufficient priority.
- break;
- }
-
- node = node.return;
- }
- }
- function propagateContextChange(workInProgress, context, changedBits, renderLanes) {
- var fiber = workInProgress.child;
-
- if (fiber !== null) {
- // Set the return pointer of the child to the work-in-progress fiber.
- fiber.return = workInProgress;
- }
-
- while (fiber !== null) {
- var nextFiber = void 0; // Visit this fiber.
-
- var list = fiber.dependencies;
-
- if (list !== null) {
- nextFiber = fiber.child;
- var dependency = list.firstContext;
-
- while (dependency !== null) {
- // Check if the context matches.
- if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
- // Match! Schedule an update on this fiber.
- if (fiber.tag === ClassComponent) {
- // Schedule a force update on the work-in-progress.
- var update = createUpdate(NoTimestamp, pickArbitraryLane(renderLanes));
- update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
- // update to the current fiber, too, which means it will persist even if
- // this render is thrown away. Since it's a race condition, not sure it's
- // worth fixing.
-
- enqueueUpdate(fiber, update);
- }
-
- fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
- }
-
- scheduleWorkOnParentPath(fiber.return, renderLanes); // Mark the updated lanes on the list, too.
-
- list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
- // dependency list.
-
- break;
- }
-
- dependency = dependency.next;
- }
- } else if (fiber.tag === ContextProvider) {
- // Don't scan deeper if this is a matching provider
- nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
- } else {
- // Traverse down.
- nextFiber = fiber.child;
- }
-
- if (nextFiber !== null) {
- // Set the return pointer of the child to the work-in-progress fiber.
- nextFiber.return = fiber;
- } else {
- // No child. Traverse to next sibling.
- nextFiber = fiber;
-
- while (nextFiber !== null) {
- if (nextFiber === workInProgress) {
- // We're back to the root of this subtree. Exit.
- nextFiber = null;
- break;
- }
-
- var sibling = nextFiber.sibling;
-
- if (sibling !== null) {
- // Set the return pointer of the sibling to the work-in-progress fiber.
- sibling.return = nextFiber.return;
- nextFiber = sibling;
- break;
- } // No more siblings. Traverse up.
-
-
- nextFiber = nextFiber.return;
- }
- }
-
- fiber = nextFiber;
- }
- }
- function prepareToReadContext(workInProgress, renderLanes) {
- currentlyRenderingFiber = workInProgress;
- lastContextDependency = null;
- lastContextWithAllBitsObserved = null;
- var dependencies = workInProgress.dependencies;
-
- if (dependencies !== null) {
- var firstContext = dependencies.firstContext;
-
- if (firstContext !== null) {
- if (includesSomeLane(dependencies.lanes, renderLanes)) {
- // Context list has a pending update. Mark that this fiber performed work.
- markWorkInProgressReceivedUpdate();
- } // Reset the work-in-progress list
-
-
- dependencies.firstContext = null;
- }
- }
- }
- function readContext(context, observedBits) {
- {
- // This warning would fire if you read context inside a Hook like useMemo.
- // Unlike the class check below, it's not enforced in production for perf.
- if (isDisallowedContextReadInDEV) {
- error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
- }
- }
-
- if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
- var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.
-
- if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
- // Observe all updates.
- lastContextWithAllBitsObserved = context;
- resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
- } else {
- resolvedObservedBits = observedBits;
- }
-
- var contextItem = {
- context: context,
- observedBits: resolvedObservedBits,
- next: null
- };
-
- if (lastContextDependency === null) {
- if (!(currentlyRenderingFiber !== null)) {
- {
- throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." );
- }
- } // This is the first dependency for this component. Create a new list.
-
-
- lastContextDependency = contextItem;
- currentlyRenderingFiber.dependencies = {
- lanes: NoLanes,
- firstContext: contextItem,
- responders: null
- };
- } else {
- // Append a new context item.
- lastContextDependency = lastContextDependency.next = contextItem;
- }
- }
-
- return context._currentValue ;
- }
-
- var UpdateState = 0;
- var ReplaceState = 1;
- var ForceUpdate = 2;
- var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
- // It should only be read right after calling `processUpdateQueue`, via
- // `checkHasForceUpdateAfterProcessing`.
-
- var hasForceUpdate = false;
- var didWarnUpdateInsideUpdate;
- var currentlyProcessingQueue;
-
- {
- didWarnUpdateInsideUpdate = false;
- currentlyProcessingQueue = null;
- }
-
- function initializeUpdateQueue(fiber) {
- var queue = {
- baseState: fiber.memoizedState,
- firstBaseUpdate: null,
- lastBaseUpdate: null,
- shared: {
- pending: null
- },
- effects: null
- };
- fiber.updateQueue = queue;
- }
- function cloneUpdateQueue(current, workInProgress) {
- // Clone the update queue from current. Unless it's already a clone.
- var queue = workInProgress.updateQueue;
- var currentQueue = current.updateQueue;
-
- if (queue === currentQueue) {
- var clone = {
- baseState: currentQueue.baseState,
- firstBaseUpdate: currentQueue.firstBaseUpdate,
- lastBaseUpdate: currentQueue.lastBaseUpdate,
- shared: currentQueue.shared,
- effects: currentQueue.effects
- };
- workInProgress.updateQueue = clone;
- }
- }
- function createUpdate(eventTime, lane) {
- var update = {
- eventTime: eventTime,
- lane: lane,
- tag: UpdateState,
- payload: null,
- callback: null,
- next: null
- };
- return update;
- }
- function enqueueUpdate(fiber, update) {
- var updateQueue = fiber.updateQueue;
-
- if (updateQueue === null) {
- // Only occurs if the fiber has been unmounted.
- return;
- }
-
- var sharedQueue = updateQueue.shared;
- var pending = sharedQueue.pending;
-
- if (pending === null) {
- // This is the first update. Create a circular list.
- update.next = update;
- } else {
- update.next = pending.next;
- pending.next = update;
- }
-
- sharedQueue.pending = update;
-
- {
- if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
- error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
-
- didWarnUpdateInsideUpdate = true;
- }
- }
- }
- function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
- // Captured updates are updates that are thrown by a child during the render
- // phase. They should be discarded if the render is aborted. Therefore,
- // we should only put them on the work-in-progress queue, not the current one.
- var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.
-
- var current = workInProgress.alternate;
-
- if (current !== null) {
- var currentQueue = current.updateQueue;
-
- if (queue === currentQueue) {
- // The work-in-progress queue is the same as current. This happens when
- // we bail out on a parent fiber that then captures an error thrown by
- // a child. Since we want to append the update only to the work-in
- // -progress queue, we need to clone the updates. We usually clone during
- // processUpdateQueue, but that didn't happen in this case because we
- // skipped over the parent when we bailed out.
- var newFirst = null;
- var newLast = null;
- var firstBaseUpdate = queue.firstBaseUpdate;
-
- if (firstBaseUpdate !== null) {
- // Loop through the updates and clone them.
- var update = firstBaseUpdate;
-
- do {
- var clone = {
- eventTime: update.eventTime,
- lane: update.lane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
-
- if (newLast === null) {
- newFirst = newLast = clone;
- } else {
- newLast.next = clone;
- newLast = clone;
- }
-
- update = update.next;
- } while (update !== null); // Append the captured update the end of the cloned list.
-
-
- if (newLast === null) {
- newFirst = newLast = capturedUpdate;
- } else {
- newLast.next = capturedUpdate;
- newLast = capturedUpdate;
- }
- } else {
- // There are no base updates.
- newFirst = newLast = capturedUpdate;
- }
-
- queue = {
- baseState: currentQueue.baseState,
- firstBaseUpdate: newFirst,
- lastBaseUpdate: newLast,
- shared: currentQueue.shared,
- effects: currentQueue.effects
- };
- workInProgress.updateQueue = queue;
- return;
- }
- } // Append the update to the end of the list.
-
-
- var lastBaseUpdate = queue.lastBaseUpdate;
-
- if (lastBaseUpdate === null) {
- queue.firstBaseUpdate = capturedUpdate;
- } else {
- lastBaseUpdate.next = capturedUpdate;
- }
-
- queue.lastBaseUpdate = capturedUpdate;
- }
-
- function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
- switch (update.tag) {
- case ReplaceState:
- {
- var payload = update.payload;
-
- if (typeof payload === 'function') {
- // Updater function
- {
- enterDisallowedContextReadInDEV();
- }
-
- var nextState = payload.call(instance, prevState, nextProps);
-
- {
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- payload.call(instance, prevState, nextProps);
- } finally {
- reenableLogs();
- }
- }
-
- exitDisallowedContextReadInDEV();
- }
-
- return nextState;
- } // State object
-
-
- return payload;
- }
-
- case CaptureUpdate:
- {
- workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;
- }
- // Intentional fallthrough
-
- case UpdateState:
- {
- var _payload = update.payload;
- var partialState;
-
- if (typeof _payload === 'function') {
- // Updater function
- {
- enterDisallowedContextReadInDEV();
- }
-
- partialState = _payload.call(instance, prevState, nextProps);
-
- {
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- _payload.call(instance, prevState, nextProps);
- } finally {
- reenableLogs();
- }
- }
-
- exitDisallowedContextReadInDEV();
- }
- } else {
- // Partial state object
- partialState = _payload;
- }
-
- if (partialState === null || partialState === undefined) {
- // Null and undefined are treated as no-ops.
- return prevState;
- } // Merge the partial state and the previous state.
-
-
- return _assign({}, prevState, partialState);
- }
-
- case ForceUpdate:
- {
- hasForceUpdate = true;
- return prevState;
- }
- }
-
- return prevState;
- }
-
- function processUpdateQueue(workInProgress, props, instance, renderLanes) {
- // This is always non-null on a ClassComponent or HostRoot
- var queue = workInProgress.updateQueue;
- hasForceUpdate = false;
-
- {
- currentlyProcessingQueue = queue.shared;
- }
-
- var firstBaseUpdate = queue.firstBaseUpdate;
- var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.
-
- var pendingQueue = queue.shared.pending;
-
- if (pendingQueue !== null) {
- queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first
- // and last so that it's non-circular.
-
- var lastPendingUpdate = pendingQueue;
- var firstPendingUpdate = lastPendingUpdate.next;
- lastPendingUpdate.next = null; // Append pending updates to base queue
-
- if (lastBaseUpdate === null) {
- firstBaseUpdate = firstPendingUpdate;
- } else {
- lastBaseUpdate.next = firstPendingUpdate;
- }
-
- lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then
- // we need to transfer the updates to that queue, too. Because the base
- // queue is a singly-linked list with no cycles, we can append to both
- // lists and take advantage of structural sharing.
- // TODO: Pass `current` as argument
-
- var current = workInProgress.alternate;
-
- if (current !== null) {
- // This is always non-null on a ClassComponent or HostRoot
- var currentQueue = current.updateQueue;
- var currentLastBaseUpdate = currentQueue.lastBaseUpdate;
-
- if (currentLastBaseUpdate !== lastBaseUpdate) {
- if (currentLastBaseUpdate === null) {
- currentQueue.firstBaseUpdate = firstPendingUpdate;
- } else {
- currentLastBaseUpdate.next = firstPendingUpdate;
- }
-
- currentQueue.lastBaseUpdate = lastPendingUpdate;
- }
- }
- } // These values may change as we process the queue.
-
-
- if (firstBaseUpdate !== null) {
- // Iterate through the list of updates to compute the result.
- var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes
- // from the original lanes.
-
- var newLanes = NoLanes;
- var newBaseState = null;
- var newFirstBaseUpdate = null;
- var newLastBaseUpdate = null;
- var update = firstBaseUpdate;
-
- do {
- var updateLane = update.lane;
- var updateEventTime = update.eventTime;
-
- if (!isSubsetOfLanes(renderLanes, updateLane)) {
- // Priority is insufficient. Skip this update. If this is the first
- // skipped update, the previous update/state is the new base
- // update/state.
- var clone = {
- eventTime: updateEventTime,
- lane: updateLane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
-
- if (newLastBaseUpdate === null) {
- newFirstBaseUpdate = newLastBaseUpdate = clone;
- newBaseState = newState;
- } else {
- newLastBaseUpdate = newLastBaseUpdate.next = clone;
- } // Update the remaining priority in the queue.
-
-
- newLanes = mergeLanes(newLanes, updateLane);
- } else {
- // This update does have sufficient priority.
- if (newLastBaseUpdate !== null) {
- var _clone = {
- eventTime: updateEventTime,
- // This update is going to be committed so we never want uncommit
- // it. Using NoLane works because 0 is a subset of all bitmasks, so
- // this will never be skipped by the check above.
- lane: NoLane,
- tag: update.tag,
- payload: update.payload,
- callback: update.callback,
- next: null
- };
- newLastBaseUpdate = newLastBaseUpdate.next = _clone;
- } // Process this update.
-
-
- newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
- var callback = update.callback;
-
- if (callback !== null) {
- workInProgress.flags |= Callback;
- var effects = queue.effects;
-
- if (effects === null) {
- queue.effects = [update];
- } else {
- effects.push(update);
- }
- }
- }
-
- update = update.next;
-
- if (update === null) {
- pendingQueue = queue.shared.pending;
-
- if (pendingQueue === null) {
- break;
- } else {
- // An update was scheduled from inside a reducer. Add the new
- // pending updates to the end of the list and keep processing.
- var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we
- // unravel them when transferring them to the base queue.
-
- var _firstPendingUpdate = _lastPendingUpdate.next;
- _lastPendingUpdate.next = null;
- update = _firstPendingUpdate;
- queue.lastBaseUpdate = _lastPendingUpdate;
- queue.shared.pending = null;
- }
- }
- } while (true);
-
- if (newLastBaseUpdate === null) {
- newBaseState = newState;
- }
-
- queue.baseState = newBaseState;
- queue.firstBaseUpdate = newFirstBaseUpdate;
- queue.lastBaseUpdate = newLastBaseUpdate; // Set the remaining expiration time to be whatever is remaining in the queue.
- // This should be fine because the only two other things that contribute to
- // expiration time are props and context. We're already in the middle of the
- // begin phase by the time we start processing the queue, so we've already
- // dealt with the props. Context in components that specify
- // shouldComponentUpdate is tricky; but we'll have to account for
- // that regardless.
-
- markSkippedUpdateLanes(newLanes);
- workInProgress.lanes = newLanes;
- workInProgress.memoizedState = newState;
- }
-
- {
- currentlyProcessingQueue = null;
- }
- }
-
- function callCallback(callback, context) {
- if (!(typeof callback === 'function')) {
- {
- throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
- }
- }
-
- callback.call(context);
- }
-
- function resetHasForceUpdateBeforeProcessing() {
- hasForceUpdate = false;
- }
- function checkHasForceUpdateAfterProcessing() {
- return hasForceUpdate;
- }
- function commitUpdateQueue(finishedWork, finishedQueue, instance) {
- // Commit the effects
- var effects = finishedQueue.effects;
- finishedQueue.effects = null;
-
- if (effects !== null) {
- for (var i = 0; i < effects.length; i++) {
- var effect = effects[i];
- var callback = effect.callback;
-
- if (callback !== null) {
- effect.callback = null;
- callCallback(callback, instance);
- }
- }
- }
- }
-
- var fakeInternalInstance = {};
- var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
- // We'll use it to determine whether we need to initialize legacy refs.
-
- var emptyRefsObject = new React.Component().refs;
- var didWarnAboutStateAssignmentForComponent;
- var didWarnAboutUninitializedState;
- var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
- var didWarnAboutLegacyLifecyclesAndDerivedState;
- var didWarnAboutUndefinedDerivedState;
- var warnOnUndefinedDerivedState;
- var warnOnInvalidCallback;
- var didWarnAboutDirectlyAssigningPropsToState;
- var didWarnAboutContextTypeAndContextTypes;
- var didWarnAboutInvalidateContextType;
-
- {
- didWarnAboutStateAssignmentForComponent = new Set();
- didWarnAboutUninitializedState = new Set();
- didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
- didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
- didWarnAboutDirectlyAssigningPropsToState = new Set();
- didWarnAboutUndefinedDerivedState = new Set();
- didWarnAboutContextTypeAndContextTypes = new Set();
- didWarnAboutInvalidateContextType = new Set();
- var didWarnOnInvalidCallback = new Set();
-
- warnOnInvalidCallback = function (callback, callerName) {
- if (callback === null || typeof callback === 'function') {
- return;
- }
-
- var key = callerName + '_' + callback;
-
- if (!didWarnOnInvalidCallback.has(key)) {
- didWarnOnInvalidCallback.add(key);
-
- error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
- }
- };
-
- warnOnUndefinedDerivedState = function (type, partialState) {
- if (partialState === undefined) {
- var componentName = getComponentName(type) || 'Component';
-
- if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
- didWarnAboutUndefinedDerivedState.add(componentName);
-
- error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
- }
- }
- }; // This is so gross but it's at least non-critical and can be removed if
- // it causes problems. This is meant to give a nicer error message for
- // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
- // ...)) which otherwise throws a "_processChildContext is not a function"
- // exception.
-
-
- Object.defineProperty(fakeInternalInstance, '_processChildContext', {
- enumerable: false,
- value: function () {
- {
- {
- throw Error( "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)." );
- }
- }
- }
- });
- Object.freeze(fakeInternalInstance);
- }
-
- function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
- var prevState = workInProgress.memoizedState;
-
- {
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- // Invoke the function an extra time to help detect side-effects.
- getDerivedStateFromProps(nextProps, prevState);
- } finally {
- reenableLogs();
- }
- }
- }
-
- var partialState = getDerivedStateFromProps(nextProps, prevState);
-
- {
- warnOnUndefinedDerivedState(ctor, partialState);
- } // Merge the partial state and the previous state.
-
-
- var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
- workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
- // base state.
-
- if (workInProgress.lanes === NoLanes) {
- // Queue is always non-null for classes
- var updateQueue = workInProgress.updateQueue;
- updateQueue.baseState = memoizedState;
- }
- }
- var classComponentUpdater = {
- isMounted: isMounted,
- enqueueSetState: function (inst, payload, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.payload = payload;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'setState');
- }
-
- update.callback = callback;
- }
-
- enqueueUpdate(fiber, update);
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- },
- enqueueReplaceState: function (inst, payload, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.tag = ReplaceState;
- update.payload = payload;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'replaceState');
- }
-
- update.callback = callback;
- }
-
- enqueueUpdate(fiber, update);
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- },
- enqueueForceUpdate: function (inst, callback) {
- var fiber = get(inst);
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = createUpdate(eventTime, lane);
- update.tag = ForceUpdate;
-
- if (callback !== undefined && callback !== null) {
- {
- warnOnInvalidCallback(callback, 'forceUpdate');
- }
-
- update.callback = callback;
- }
-
- enqueueUpdate(fiber, update);
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- }
- };
-
- function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
- var instance = workInProgress.stateNode;
-
- if (typeof instance.shouldComponentUpdate === 'function') {
- {
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- // Invoke the function an extra time to help detect side-effects.
- instance.shouldComponentUpdate(newProps, newState, nextContext);
- } finally {
- reenableLogs();
- }
- }
- }
-
- var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
-
- {
- if (shouldUpdate === undefined) {
- error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
- }
- }
-
- return shouldUpdate;
- }
-
- if (ctor.prototype && ctor.prototype.isPureReactComponent) {
- return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
- }
-
- return true;
- }
-
- function checkClassInstance(workInProgress, ctor, newProps) {
- var instance = workInProgress.stateNode;
-
- {
- var name = getComponentName(ctor) || 'Component';
- var renderPresent = instance.render;
-
- if (!renderPresent) {
- if (ctor.prototype && typeof ctor.prototype.render === 'function') {
- error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
- } else {
- error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
- }
- }
-
- if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
- error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
- }
-
- if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
- error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
- }
-
- if (instance.propTypes) {
- error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
- }
-
- if (instance.contextType) {
- error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
- }
-
- {
- if (instance.contextTypes) {
- error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
- }
-
- if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
- didWarnAboutContextTypeAndContextTypes.add(ctor);
-
- error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
- }
- }
-
- if (typeof instance.componentShouldUpdate === 'function') {
- error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
- }
-
- if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
- error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
- }
-
- if (typeof instance.componentDidUnmount === 'function') {
- error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
- }
-
- if (typeof instance.componentDidReceiveProps === 'function') {
- error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
- }
-
- if (typeof instance.componentWillRecieveProps === 'function') {
- error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
- }
-
- if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
- error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
- }
-
- var hasMutatedProps = instance.props !== newProps;
-
- if (instance.props !== undefined && hasMutatedProps) {
- error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
- }
-
- if (instance.defaultProps) {
- error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
- didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
-
- error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
- }
-
- if (typeof instance.getDerivedStateFromProps === 'function') {
- error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
- }
-
- if (typeof instance.getDerivedStateFromError === 'function') {
- error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
- }
-
- if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
- error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
- }
-
- var _state = instance.state;
-
- if (_state && (typeof _state !== 'object' || isArray(_state))) {
- error('%s.state: must be set to an object or null', name);
- }
-
- if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
- error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
- }
- }
- }
-
- function adoptClassInstance(workInProgress, instance) {
- instance.updater = classComponentUpdater;
- workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
-
- set(instance, workInProgress);
-
- {
- instance._reactInternalInstance = fakeInternalInstance;
- }
- }
-
- function constructClassInstance(workInProgress, ctor, props) {
- var isLegacyContextConsumer = false;
- var unmaskedContext = emptyContextObject;
- var context = emptyContextObject;
- var contextType = ctor.contextType;
-
- {
- if ('contextType' in ctor) {
- var isValid = // Allow null for conditional declaration
- contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
-
- if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
- didWarnAboutInvalidateContextType.add(ctor);
- var addendum = '';
-
- if (contextType === undefined) {
- addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
- } else if (typeof contextType !== 'object') {
- addendum = ' However, it is set to a ' + typeof contextType + '.';
- } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
- addendum = ' Did you accidentally pass the Context.Provider instead?';
- } else if (contextType._context !== undefined) {
- // <Context.Consumer>
- addendum = ' Did you accidentally pass the Context.Consumer instead?';
- } else {
- addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
- }
-
- error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
- }
- }
- }
-
- if (typeof contextType === 'object' && contextType !== null) {
- context = readContext(contextType);
- } else {
- unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- var contextTypes = ctor.contextTypes;
- isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
- context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
- } // Instantiate twice to help detect side-effects.
-
-
- {
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- new ctor(props, context); // eslint-disable-line no-new
- } finally {
- reenableLogs();
- }
- }
- }
-
- var instance = new ctor(props, context);
- var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
- adoptClassInstance(workInProgress, instance);
-
- {
- if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
- var componentName = getComponentName(ctor) || 'Component';
-
- if (!didWarnAboutUninitializedState.has(componentName)) {
- didWarnAboutUninitializedState.add(componentName);
-
- error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
- }
- } // If new component APIs are defined, "unsafe" lifecycles won't be called.
- // Warn about these lifecycles if they are present.
- // Don't warn about react-lifecycles-compat polyfilled methods though.
-
-
- if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
- var foundWillMountName = null;
- var foundWillReceivePropsName = null;
- var foundWillUpdateName = null;
-
- if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
- foundWillMountName = 'componentWillMount';
- } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
- foundWillMountName = 'UNSAFE_componentWillMount';
- }
-
- if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
- foundWillReceivePropsName = 'componentWillReceiveProps';
- } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
- }
-
- if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
- foundWillUpdateName = 'componentWillUpdate';
- } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
- foundWillUpdateName = 'UNSAFE_componentWillUpdate';
- }
-
- if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
- var _componentName = getComponentName(ctor) || 'Component';
-
- var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
-
- if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
- didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
-
- error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
- }
- }
- }
- } // Cache unmasked context so we can avoid recreating masked context unless necessary.
- // ReactFiberContext usually updates this cache but can't for newly-created instances.
-
-
- if (isLegacyContextConsumer) {
- cacheContext(workInProgress, unmaskedContext, context);
- }
-
- return instance;
- }
-
- function callComponentWillMount(workInProgress, instance) {
- var oldState = instance.state;
-
- if (typeof instance.componentWillMount === 'function') {
- instance.componentWillMount();
- }
-
- if (typeof instance.UNSAFE_componentWillMount === 'function') {
- instance.UNSAFE_componentWillMount();
- }
-
- if (oldState !== instance.state) {
- {
- error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
- }
-
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
- }
- }
-
- function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
- var oldState = instance.state;
-
- if (typeof instance.componentWillReceiveProps === 'function') {
- instance.componentWillReceiveProps(newProps, nextContext);
- }
-
- if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
- instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
- }
-
- if (instance.state !== oldState) {
- {
- var componentName = getComponentName(workInProgress.type) || 'Component';
-
- if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
- didWarnAboutStateAssignmentForComponent.add(componentName);
-
- error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
- }
- }
-
- classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
- }
- } // Invokes the mount life-cycles on a previously never rendered instance.
-
-
- function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
- {
- checkClassInstance(workInProgress, ctor, newProps);
- }
-
- var instance = workInProgress.stateNode;
- instance.props = newProps;
- instance.state = workInProgress.memoizedState;
- instance.refs = emptyRefsObject;
- initializeUpdateQueue(workInProgress);
- var contextType = ctor.contextType;
-
- if (typeof contextType === 'object' && contextType !== null) {
- instance.context = readContext(contextType);
- } else {
- var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- instance.context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- {
- if (instance.state === newProps) {
- var componentName = getComponentName(ctor) || 'Component';
-
- if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
- didWarnAboutDirectlyAssigningPropsToState.add(componentName);
-
- error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
- }
- }
-
- if (workInProgress.mode & StrictMode) {
- ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
- }
-
- {
- ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
- }
- }
-
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- instance.state = workInProgress.memoizedState;
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- instance.state = workInProgress.memoizedState;
- } // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
-
- if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
- callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
- // process them now.
-
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- instance.state = workInProgress.memoizedState;
- }
-
- if (typeof instance.componentDidMount === 'function') {
- workInProgress.flags |= Update;
- }
- }
-
- function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {
- var instance = workInProgress.stateNode;
- var oldProps = workInProgress.memoizedProps;
- instance.props = oldProps;
- var oldContext = instance.context;
- var contextType = ctor.contextType;
- var nextContext = emptyContextObject;
-
- if (typeof contextType === 'object' && contextType !== null) {
- nextContext = readContext(contextType);
- } else {
- var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
- }
-
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
- var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
- // ever the previously attempted to render - not the "current". However,
- // during componentDidUpdate we pass the "current" props.
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
- if (oldProps !== newProps || oldContext !== nextContext) {
- callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
- }
- }
-
- resetHasForceUpdateBeforeProcessing();
- var oldState = workInProgress.memoizedState;
- var newState = instance.state = oldState;
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- newState = workInProgress.memoizedState;
-
- if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidMount === 'function') {
- workInProgress.flags |= Update;
- }
-
- return false;
- }
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- newState = workInProgress.memoizedState;
- }
-
- var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
-
- if (shouldUpdate) {
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
- if (typeof instance.componentWillMount === 'function') {
- instance.componentWillMount();
- }
-
- if (typeof instance.UNSAFE_componentWillMount === 'function') {
- instance.UNSAFE_componentWillMount();
- }
- }
-
- if (typeof instance.componentDidMount === 'function') {
- workInProgress.flags |= Update;
- }
- } else {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidMount === 'function') {
- workInProgress.flags |= Update;
- } // If shouldComponentUpdate returned false, we should still update the
- // memoized state to indicate that this work can be reused.
-
-
- workInProgress.memoizedProps = newProps;
- workInProgress.memoizedState = newState;
- } // Update the existing instance's state, props, and context pointers even
- // if shouldComponentUpdate returns false.
-
-
- instance.props = newProps;
- instance.state = newState;
- instance.context = nextContext;
- return shouldUpdate;
- } // Invokes the update life-cycles and returns false if it shouldn't rerender.
-
-
- function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {
- var instance = workInProgress.stateNode;
- cloneUpdateQueue(current, workInProgress);
- var unresolvedOldProps = workInProgress.memoizedProps;
- var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
- instance.props = oldProps;
- var unresolvedNewProps = workInProgress.pendingProps;
- var oldContext = instance.context;
- var contextType = ctor.contextType;
- var nextContext = emptyContextObject;
-
- if (typeof contextType === 'object' && contextType !== null) {
- nextContext = readContext(contextType);
- } else {
- var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
- nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
- }
-
- var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
- var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
- // ever the previously attempted to render - not the "current". However,
- // during componentDidUpdate we pass the "current" props.
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
-
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
- if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {
- callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
- }
- }
-
- resetHasForceUpdateBeforeProcessing();
- var oldState = workInProgress.memoizedState;
- var newState = instance.state = oldState;
- processUpdateQueue(workInProgress, newProps, instance, renderLanes);
- newState = workInProgress.memoizedState;
-
- if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Update;
- }
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Snapshot;
- }
- }
-
- return false;
- }
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
- newState = workInProgress.memoizedState;
- }
-
- var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
-
- if (shouldUpdate) {
- // In order to support react-lifecycles-compat polyfilled components,
- // Unsafe lifecycles should not be invoked for components using the new APIs.
- if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
- if (typeof instance.componentWillUpdate === 'function') {
- instance.componentWillUpdate(newProps, newState, nextContext);
- }
-
- if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
- instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
- }
- }
-
- if (typeof instance.componentDidUpdate === 'function') {
- workInProgress.flags |= Update;
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- workInProgress.flags |= Snapshot;
- }
- } else {
- // If an update was already in progress, we should schedule an Update
- // effect even though we're bailing out, so that cWU/cDU are called.
- if (typeof instance.componentDidUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Update;
- }
- }
-
- if (typeof instance.getSnapshotBeforeUpdate === 'function') {
- if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
- workInProgress.flags |= Snapshot;
- }
- } // If shouldComponentUpdate returned false, we should still update the
- // memoized props/state to indicate that this work can be reused.
-
-
- workInProgress.memoizedProps = newProps;
- workInProgress.memoizedState = newState;
- } // Update the existing instance's state, props, and context pointers even
- // if shouldComponentUpdate returns false.
-
-
- instance.props = newProps;
- instance.state = newState;
- instance.context = nextContext;
- return shouldUpdate;
- }
-
- var didWarnAboutMaps;
- var didWarnAboutGenerators;
- var didWarnAboutStringRefs;
- var ownerHasKeyUseWarning;
- var ownerHasFunctionTypeWarning;
-
- var warnForMissingKey = function (child, returnFiber) {};
-
- {
- didWarnAboutMaps = false;
- didWarnAboutGenerators = false;
- didWarnAboutStringRefs = {};
- /**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
-
- ownerHasKeyUseWarning = {};
- ownerHasFunctionTypeWarning = {};
-
- warnForMissingKey = function (child, returnFiber) {
- if (child === null || typeof child !== 'object') {
- return;
- }
-
- if (!child._store || child._store.validated || child.key != null) {
- return;
- }
-
- if (!(typeof child._store === 'object')) {
- {
- throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- child._store.validated = true;
- var componentName = getComponentName(returnFiber.type) || 'Component';
-
- if (ownerHasKeyUseWarning[componentName]) {
- return;
- }
-
- ownerHasKeyUseWarning[componentName] = true;
-
- error('Each child in a list should have a unique ' + '"key" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');
- };
- }
-
- var isArray$1 = Array.isArray;
-
- function coerceRef(returnFiber, current, element) {
- var mixedRef = element.ref;
-
- if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
- {
- // TODO: Clean this up once we turn on the string ref warning for
- // everyone, because the strict mode case will no longer be relevant
- if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
- // because these cannot be automatically converted to an arrow function
- // using a codemod. Therefore, we don't have to warn about string refs again.
- !(element._owner && element._self && element._owner.stateNode !== element._self)) {
- var componentName = getComponentName(returnFiber.type) || 'Component';
-
- if (!didWarnAboutStringRefs[componentName]) {
- {
- error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', mixedRef);
- }
-
- didWarnAboutStringRefs[componentName] = true;
- }
- }
- }
-
- if (element._owner) {
- var owner = element._owner;
- var inst;
-
- if (owner) {
- var ownerFiber = owner;
-
- if (!(ownerFiber.tag === ClassComponent)) {
- {
- throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref" );
- }
- }
-
- inst = ownerFiber.stateNode;
- }
-
- if (!inst) {
- {
- throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
-
- if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
- return current.ref;
- }
-
- var ref = function (value) {
- var refs = inst.refs;
-
- if (refs === emptyRefsObject) {
- // This is a lazy pooled frozen object, so we need to initialize.
- refs = inst.refs = {};
- }
-
- if (value === null) {
- delete refs[stringRef];
- } else {
- refs[stringRef] = value;
- }
- };
-
- ref._stringRef = stringRef;
- return ref;
- } else {
- if (!(typeof mixedRef === 'string')) {
- {
- throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
- }
- }
-
- if (!element._owner) {
- {
- throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information." );
- }
- }
- }
- }
-
- return mixedRef;
- }
-
- function throwOnInvalidObjectType(returnFiber, newChild) {
- if (returnFiber.type !== 'textarea') {
- {
- {
- throw Error( "Objects are not valid as a React child (found: " + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + "). If you meant to render a collection of children, use an array instead." );
- }
- }
- }
- }
-
- function warnOnFunctionType(returnFiber) {
- {
- var componentName = getComponentName(returnFiber.type) || 'Component';
-
- if (ownerHasFunctionTypeWarning[componentName]) {
- return;
- }
-
- ownerHasFunctionTypeWarning[componentName] = true;
-
- error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
- }
- } // We avoid inlining this to avoid potential deopts from using try/catch.
- // to be able to optimize each path individually by branching early. This needs
- // a compiler or we can do it manually. Helpers that don't need this branching
- // live outside of this function.
-
-
- function ChildReconciler(shouldTrackSideEffects) {
- function deleteChild(returnFiber, childToDelete) {
- if (!shouldTrackSideEffects) {
- // Noop.
- return;
- } // Deletions are added in reversed order so we add it to the front.
- // At this point, the return fiber's effect list is empty except for
- // deletions, so we can just append the deletion to the list. The remaining
- // effects aren't added until the complete phase. Once we implement
- // resuming, this may not be true.
-
-
- var last = returnFiber.lastEffect;
-
- if (last !== null) {
- last.nextEffect = childToDelete;
- returnFiber.lastEffect = childToDelete;
- } else {
- returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
- }
-
- childToDelete.nextEffect = null;
- childToDelete.flags = Deletion;
- }
-
- function deleteRemainingChildren(returnFiber, currentFirstChild) {
- if (!shouldTrackSideEffects) {
- // Noop.
- return null;
- } // TODO: For the shouldClone case, this could be micro-optimized a bit by
- // assuming that after the first child we've already added everything.
-
-
- var childToDelete = currentFirstChild;
-
- while (childToDelete !== null) {
- deleteChild(returnFiber, childToDelete);
- childToDelete = childToDelete.sibling;
- }
-
- return null;
- }
-
- function mapRemainingChildren(returnFiber, currentFirstChild) {
- // Add the remaining children to a temporary map so that we can find them by
- // keys quickly. Implicit (null) keys get added to this set with their index
- // instead.
- var existingChildren = new Map();
- var existingChild = currentFirstChild;
-
- while (existingChild !== null) {
- if (existingChild.key !== null) {
- existingChildren.set(existingChild.key, existingChild);
- } else {
- existingChildren.set(existingChild.index, existingChild);
- }
-
- existingChild = existingChild.sibling;
- }
-
- return existingChildren;
- }
-
- function useFiber(fiber, pendingProps) {
- // We currently set sibling to null and index to 0 here because it is easy
- // to forget to do before returning it. E.g. for the single child case.
- var clone = createWorkInProgress(fiber, pendingProps);
- clone.index = 0;
- clone.sibling = null;
- return clone;
- }
-
- function placeChild(newFiber, lastPlacedIndex, newIndex) {
- newFiber.index = newIndex;
-
- if (!shouldTrackSideEffects) {
- // Noop.
- return lastPlacedIndex;
- }
-
- var current = newFiber.alternate;
-
- if (current !== null) {
- var oldIndex = current.index;
-
- if (oldIndex < lastPlacedIndex) {
- // This is a move.
- newFiber.flags = Placement;
- return lastPlacedIndex;
- } else {
- // This item can stay in place.
- return oldIndex;
- }
- } else {
- // This is an insertion.
- newFiber.flags = Placement;
- return lastPlacedIndex;
- }
- }
-
- function placeSingleChild(newFiber) {
- // This is simpler for the single child case. We only need to do a
- // placement for inserting new children.
- if (shouldTrackSideEffects && newFiber.alternate === null) {
- newFiber.flags = Placement;
- }
-
- return newFiber;
- }
-
- function updateTextNode(returnFiber, current, textContent, lanes) {
- if (current === null || current.tag !== HostText) {
- // Insert
- var created = createFiberFromText(textContent, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, textContent);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function updateElement(returnFiber, current, element, lanes) {
- if (current !== null) {
- if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
- isCompatibleFamilyForHotReloading(current, element) )) {
- // Move based on index
- var existing = useFiber(current, element.props);
- existing.ref = coerceRef(returnFiber, current, element);
- existing.return = returnFiber;
-
- {
- existing._debugSource = element._source;
- existing._debugOwner = element._owner;
- }
-
- return existing;
- }
- } // Insert
-
-
- var created = createFiberFromElement(element, returnFiber.mode, lanes);
- created.ref = coerceRef(returnFiber, current, element);
- created.return = returnFiber;
- return created;
- }
-
- function updatePortal(returnFiber, current, portal, lanes) {
- if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
- // Insert
- var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, portal.children || []);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function updateFragment(returnFiber, current, fragment, lanes, key) {
- if (current === null || current.tag !== Fragment) {
- // Insert
- var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
- created.return = returnFiber;
- return created;
- } else {
- // Update
- var existing = useFiber(current, fragment);
- existing.return = returnFiber;
- return existing;
- }
- }
-
- function createChild(returnFiber, newChild, lanes) {
- if (typeof newChild === 'string' || typeof newChild === 'number') {
- // Text nodes don't have keys. If the previous node is implicitly keyed
- // we can continue to replace it without aborting even if it is not a text
- // node.
- var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);
-
- _created.ref = coerceRef(returnFiber, null, newChild);
- _created.return = returnFiber;
- return _created;
- }
-
- case REACT_PORTAL_TYPE:
- {
- var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);
-
- _created2.return = returnFiber;
- return _created2;
- }
- }
-
- if (isArray$1(newChild) || getIteratorFn(newChild)) {
- var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);
-
- _created3.return = returnFiber;
- return _created3;
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
-
- function updateSlot(returnFiber, oldFiber, newChild, lanes) {
- // Update the fiber if the keys match, otherwise return null.
- var key = oldFiber !== null ? oldFiber.key : null;
-
- if (typeof newChild === 'string' || typeof newChild === 'number') {
- // Text nodes don't have keys. If the previous node is implicitly keyed
- // we can continue to replace it without aborting even if it is not a text
- // node.
- if (key !== null) {
- return null;
- }
-
- return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- if (newChild.key === key) {
- if (newChild.type === REACT_FRAGMENT_TYPE) {
- return updateFragment(returnFiber, oldFiber, newChild.props.children, lanes, key);
- }
-
- return updateElement(returnFiber, oldFiber, newChild, lanes);
- } else {
- return null;
- }
- }
-
- case REACT_PORTAL_TYPE:
- {
- if (newChild.key === key) {
- return updatePortal(returnFiber, oldFiber, newChild, lanes);
- } else {
- return null;
- }
- }
- }
-
- if (isArray$1(newChild) || getIteratorFn(newChild)) {
- if (key !== null) {
- return null;
- }
-
- return updateFragment(returnFiber, oldFiber, newChild, lanes, null);
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
-
- function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
- if (typeof newChild === 'string' || typeof newChild === 'number') {
- // Text nodes don't have keys, so we neither have to check the old nor
- // new node for the key. If both are text nodes, they match.
- var matchedFiber = existingChildren.get(newIdx) || null;
- return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);
- }
-
- if (typeof newChild === 'object' && newChild !== null) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- {
- var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
-
- if (newChild.type === REACT_FRAGMENT_TYPE) {
- return updateFragment(returnFiber, _matchedFiber, newChild.props.children, lanes, newChild.key);
- }
-
- return updateElement(returnFiber, _matchedFiber, newChild, lanes);
- }
-
- case REACT_PORTAL_TYPE:
- {
- var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
-
- return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);
- }
-
- }
-
- if (isArray$1(newChild) || getIteratorFn(newChild)) {
- var _matchedFiber3 = existingChildren.get(newIdx) || null;
-
- return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);
- }
-
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- return null;
- }
- /**
- * Warns if there is a duplicate or missing key
- */
-
-
- function warnOnInvalidKey(child, knownKeys, returnFiber) {
- {
- if (typeof child !== 'object' || child === null) {
- return knownKeys;
- }
-
- switch (child.$$typeof) {
- case REACT_ELEMENT_TYPE:
- case REACT_PORTAL_TYPE:
- warnForMissingKey(child, returnFiber);
- var key = child.key;
-
- if (typeof key !== 'string') {
- break;
- }
-
- if (knownKeys === null) {
- knownKeys = new Set();
- knownKeys.add(key);
- break;
- }
-
- if (!knownKeys.has(key)) {
- knownKeys.add(key);
- break;
- }
-
- error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
-
- break;
- }
- }
-
- return knownKeys;
- }
-
- function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
- // This algorithm can't optimize by searching from both ends since we
- // don't have backpointers on fibers. I'm trying to see how far we can get
- // with that model. If it ends up not being worth the tradeoffs, we can
- // add it later.
- // Even with a two ended optimization, we'd want to optimize for the case
- // where there are few changes and brute force the comparison instead of
- // going for the Map. It'd like to explore hitting that path first in
- // forward-only mode and only go for the Map once we notice that we need
- // lots of look ahead. This doesn't handle reversal as well as two ended
- // search but that's unusual. Besides, for the two ended optimization to
- // work on Iterables, we'd need to copy the whole set.
- // In this first iteration, we'll just live with hitting the bad case
- // (adding everything to a Map) in for every insert/move.
- // If you change this code, also update reconcileChildrenIterator() which
- // uses the same algorithm.
- {
- // First, validate keys.
- var knownKeys = null;
-
- for (var i = 0; i < newChildren.length; i++) {
- var child = newChildren[i];
- knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
- }
- }
-
- var resultingFirstChild = null;
- var previousNewFiber = null;
- var oldFiber = currentFirstChild;
- var lastPlacedIndex = 0;
- var newIdx = 0;
- var nextOldFiber = null;
-
- for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
- if (oldFiber.index > newIdx) {
- nextOldFiber = oldFiber;
- oldFiber = null;
- } else {
- nextOldFiber = oldFiber.sibling;
- }
-
- var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);
-
- if (newFiber === null) {
- // TODO: This breaks on empty slots like null children. That's
- // unfortunate because it triggers the slow path all the time. We need
- // a better way to communicate whether this was a miss or null,
- // boolean, undefined, etc.
- if (oldFiber === null) {
- oldFiber = nextOldFiber;
- }
-
- break;
- }
-
- if (shouldTrackSideEffects) {
- if (oldFiber && newFiber.alternate === null) {
- // We matched the slot, but we didn't reuse the existing fiber, so we
- // need to delete the existing child.
- deleteChild(returnFiber, oldFiber);
- }
- }
-
- lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = newFiber;
- } else {
- // TODO: Defer siblings if we're not at the right index for this slot.
- // I.e. if we had null values before, then we want to defer this
- // for each null value. However, we also don't want to call updateSlot
- // with the previous one.
- previousNewFiber.sibling = newFiber;
- }
-
- previousNewFiber = newFiber;
- oldFiber = nextOldFiber;
- }
-
- if (newIdx === newChildren.length) {
- // We've reached the end of the new children. We can delete the rest.
- deleteRemainingChildren(returnFiber, oldFiber);
- return resultingFirstChild;
- }
-
- if (oldFiber === null) {
- // If we don't have any more existing children we can choose a fast path
- // since the rest will all be insertions.
- for (; newIdx < newChildren.length; newIdx++) {
- var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);
-
- if (_newFiber === null) {
- continue;
- }
-
- lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = _newFiber;
- } else {
- previousNewFiber.sibling = _newFiber;
- }
-
- previousNewFiber = _newFiber;
- }
-
- return resultingFirstChild;
- } // Add all children to a key map for quick lookups.
-
-
- var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
-
- for (; newIdx < newChildren.length; newIdx++) {
- var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);
-
- if (_newFiber2 !== null) {
- if (shouldTrackSideEffects) {
- if (_newFiber2.alternate !== null) {
- // The new fiber is a work in progress, but if there exists a
- // current, that means that we reused the fiber. We need to delete
- // it from the child list so that we don't add it to the deletion
- // list.
- existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
- }
- }
-
- lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- resultingFirstChild = _newFiber2;
- } else {
- previousNewFiber.sibling = _newFiber2;
- }
-
- previousNewFiber = _newFiber2;
- }
- }
-
- if (shouldTrackSideEffects) {
- // Any existing children that weren't consumed above were deleted. We need
- // to add them to the deletion list.
- existingChildren.forEach(function (child) {
- return deleteChild(returnFiber, child);
- });
- }
-
- return resultingFirstChild;
- }
-
- function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
- // This is the same implementation as reconcileChildrenArray(),
- // but using the iterator instead.
- var iteratorFn = getIteratorFn(newChildrenIterable);
-
- if (!(typeof iteratorFn === 'function')) {
- {
- throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- {
- // We don't support rendering Generators because it's a mutation.
- // See https://github.com/facebook/react/issues/12995
- if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
- newChildrenIterable[Symbol.toStringTag] === 'Generator') {
- if (!didWarnAboutGenerators) {
- error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
- }
-
- didWarnAboutGenerators = true;
- } // Warn about using Maps as children
-
-
- if (newChildrenIterable.entries === iteratorFn) {
- if (!didWarnAboutMaps) {
- error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
- }
-
- didWarnAboutMaps = true;
- } // First, validate keys.
- // We'll get a different iterator later for the main pass.
-
-
- var _newChildren = iteratorFn.call(newChildrenIterable);
-
- if (_newChildren) {
- var knownKeys = null;
-
- var _step = _newChildren.next();
-
- for (; !_step.done; _step = _newChildren.next()) {
- var child = _step.value;
- knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
- }
- }
- }
-
- var newChildren = iteratorFn.call(newChildrenIterable);
-
- if (!(newChildren != null)) {
- {
- throw Error( "An iterable object provided no iterator." );
- }
- }
-
- var resultingFirstChild = null;
- var previousNewFiber = null;
- var oldFiber = currentFirstChild;
- var lastPlacedIndex = 0;
- var newIdx = 0;
- var nextOldFiber = null;
- var step = newChildren.next();
-
- for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
- if (oldFiber.index > newIdx) {
- nextOldFiber = oldFiber;
- oldFiber = null;
- } else {
- nextOldFiber = oldFiber.sibling;
- }
-
- var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
-
- if (newFiber === null) {
- // TODO: This breaks on empty slots like null children. That's
- // unfortunate because it triggers the slow path all the time. We need
- // a better way to communicate whether this was a miss or null,
- // boolean, undefined, etc.
- if (oldFiber === null) {
- oldFiber = nextOldFiber;
- }
-
- break;
- }
-
- if (shouldTrackSideEffects) {
- if (oldFiber && newFiber.alternate === null) {
- // We matched the slot, but we didn't reuse the existing fiber, so we
- // need to delete the existing child.
- deleteChild(returnFiber, oldFiber);
- }
- }
-
- lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = newFiber;
- } else {
- // TODO: Defer siblings if we're not at the right index for this slot.
- // I.e. if we had null values before, then we want to defer this
- // for each null value. However, we also don't want to call updateSlot
- // with the previous one.
- previousNewFiber.sibling = newFiber;
- }
-
- previousNewFiber = newFiber;
- oldFiber = nextOldFiber;
- }
-
- if (step.done) {
- // We've reached the end of the new children. We can delete the rest.
- deleteRemainingChildren(returnFiber, oldFiber);
- return resultingFirstChild;
- }
-
- if (oldFiber === null) {
- // If we don't have any more existing children we can choose a fast path
- // since the rest will all be insertions.
- for (; !step.done; newIdx++, step = newChildren.next()) {
- var _newFiber3 = createChild(returnFiber, step.value, lanes);
-
- if (_newFiber3 === null) {
- continue;
- }
-
- lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- // TODO: Move out of the loop. This only happens for the first run.
- resultingFirstChild = _newFiber3;
- } else {
- previousNewFiber.sibling = _newFiber3;
- }
-
- previousNewFiber = _newFiber3;
- }
-
- return resultingFirstChild;
- } // Add all children to a key map for quick lookups.
-
-
- var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
-
- for (; !step.done; newIdx++, step = newChildren.next()) {
- var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);
-
- if (_newFiber4 !== null) {
- if (shouldTrackSideEffects) {
- if (_newFiber4.alternate !== null) {
- // The new fiber is a work in progress, but if there exists a
- // current, that means that we reused the fiber. We need to delete
- // it from the child list so that we don't add it to the deletion
- // list.
- existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
- }
- }
-
- lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
-
- if (previousNewFiber === null) {
- resultingFirstChild = _newFiber4;
- } else {
- previousNewFiber.sibling = _newFiber4;
- }
-
- previousNewFiber = _newFiber4;
- }
- }
-
- if (shouldTrackSideEffects) {
- // Any existing children that weren't consumed above were deleted. We need
- // to add them to the deletion list.
- existingChildren.forEach(function (child) {
- return deleteChild(returnFiber, child);
- });
- }
-
- return resultingFirstChild;
- }
-
- function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {
- // There's no need to check for keys on text nodes since we don't have a
- // way to define them.
- if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
- // We already have an existing node so let's just update it and delete
- // the rest.
- deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
- var existing = useFiber(currentFirstChild, textContent);
- existing.return = returnFiber;
- return existing;
- } // The existing first child is not a text node so we need to create one
- // and delete the existing ones.
-
-
- deleteRemainingChildren(returnFiber, currentFirstChild);
- var created = createFiberFromText(textContent, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- }
-
- function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {
- var key = element.key;
- var child = currentFirstChild;
-
- while (child !== null) {
- // TODO: If key === null and child.key === null, then this only applies to
- // the first item in the list.
- if (child.key === key) {
- switch (child.tag) {
- case Fragment:
- {
- if (element.type === REACT_FRAGMENT_TYPE) {
- deleteRemainingChildren(returnFiber, child.sibling);
- var existing = useFiber(child, element.props.children);
- existing.return = returnFiber;
-
- {
- existing._debugSource = element._source;
- existing._debugOwner = element._owner;
- }
-
- return existing;
- }
-
- break;
- }
-
- case Block:
-
- // We intentionally fallthrough here if enableBlocksAPI is not on.
- // eslint-disable-next-lined no-fallthrough
-
- default:
- {
- if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
- isCompatibleFamilyForHotReloading(child, element) )) {
- deleteRemainingChildren(returnFiber, child.sibling);
-
- var _existing3 = useFiber(child, element.props);
-
- _existing3.ref = coerceRef(returnFiber, child, element);
- _existing3.return = returnFiber;
-
- {
- _existing3._debugSource = element._source;
- _existing3._debugOwner = element._owner;
- }
-
- return _existing3;
- }
-
- break;
- }
- } // Didn't match.
-
-
- deleteRemainingChildren(returnFiber, child);
- break;
- } else {
- deleteChild(returnFiber, child);
- }
-
- child = child.sibling;
- }
-
- if (element.type === REACT_FRAGMENT_TYPE) {
- var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
- created.return = returnFiber;
- return created;
- } else {
- var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);
-
- _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
- _created4.return = returnFiber;
- return _created4;
- }
- }
-
- function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {
- var key = portal.key;
- var child = currentFirstChild;
-
- while (child !== null) {
- // TODO: If key === null and child.key === null, then this only applies to
- // the first item in the list.
- if (child.key === key) {
- if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
- deleteRemainingChildren(returnFiber, child.sibling);
- var existing = useFiber(child, portal.children || []);
- existing.return = returnFiber;
- return existing;
- } else {
- deleteRemainingChildren(returnFiber, child);
- break;
- }
- } else {
- deleteChild(returnFiber, child);
- }
-
- child = child.sibling;
- }
-
- var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
- created.return = returnFiber;
- return created;
- } // This API will tag the children with the side-effect of the reconciliation
- // itself. They will be added to the side-effect list as we pass through the
- // children and the parent.
-
-
- function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {
- // This function is not recursive.
- // If the top level item is an array, we treat it as a set of children,
- // not as a fragment. Nested arrays on the other hand will be treated as
- // fragment nodes. Recursion happens at the normal flow.
- // Handle top level unkeyed fragments as if they were arrays.
- // This leads to an ambiguity between <>{[...]}</> and <>...</>.
- // We treat the ambiguous cases above the same.
- var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
-
- if (isUnkeyedTopLevelFragment) {
- newChild = newChild.props.children;
- } // Handle object types
-
-
- var isObject = typeof newChild === 'object' && newChild !== null;
-
- if (isObject) {
- switch (newChild.$$typeof) {
- case REACT_ELEMENT_TYPE:
- return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));
-
- case REACT_PORTAL_TYPE:
- return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));
-
- }
- }
-
- if (typeof newChild === 'string' || typeof newChild === 'number') {
- return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));
- }
-
- if (isArray$1(newChild)) {
- return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
- }
-
- if (getIteratorFn(newChild)) {
- return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);
- }
-
- if (isObject) {
- throwOnInvalidObjectType(returnFiber, newChild);
- }
-
- {
- if (typeof newChild === 'function') {
- warnOnFunctionType(returnFiber);
- }
- }
-
- if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
- // If the new child is undefined, and the return fiber is a composite
- // component, throw an error. If Fiber return types are disabled,
- // we already threw above.
- switch (returnFiber.tag) {
- case ClassComponent:
- {
- {
- var instance = returnFiber.stateNode;
-
- if (instance.render._isMockFunction) {
- // We allow auto-mocks to proceed as if they're returning null.
- break;
- }
- }
- }
- // Intentionally fall through to the next case, which handles both
- // functions and classes
- // eslint-disable-next-lined no-fallthrough
-
- case Block:
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- {
- {
- throw Error( (getComponentName(returnFiber.type) || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." );
- }
- }
- }
- }
- } // Remaining cases are all treated as empty.
-
-
- return deleteRemainingChildren(returnFiber, currentFirstChild);
- }
-
- return reconcileChildFibers;
- }
-
- var reconcileChildFibers = ChildReconciler(true);
- var mountChildFibers = ChildReconciler(false);
- function cloneChildFibers(current, workInProgress) {
- if (!(current === null || workInProgress.child === current.child)) {
- {
- throw Error( "Resuming work not yet implemented." );
- }
- }
-
- if (workInProgress.child === null) {
- return;
- }
-
- var currentChild = workInProgress.child;
- var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
- workInProgress.child = newChild;
- newChild.return = workInProgress;
-
- while (currentChild.sibling !== null) {
- currentChild = currentChild.sibling;
- newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
- newChild.return = workInProgress;
- }
-
- newChild.sibling = null;
- } // Reset a workInProgress child set to prepare it for a second pass.
-
- function resetChildFibers(workInProgress, lanes) {
- var child = workInProgress.child;
-
- while (child !== null) {
- resetWorkInProgress(child, lanes);
- child = child.sibling;
- }
- }
-
- var NO_CONTEXT = {};
- var contextStackCursor$1 = createCursor(NO_CONTEXT);
- var contextFiberStackCursor = createCursor(NO_CONTEXT);
- var rootInstanceStackCursor = createCursor(NO_CONTEXT);
-
- function requiredContext(c) {
- if (!(c !== NO_CONTEXT)) {
- {
- throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- return c;
- }
-
- function getRootHostContainer() {
- var rootInstance = requiredContext(rootInstanceStackCursor.current);
- return rootInstance;
- }
-
- function pushHostContainer(fiber, nextRootInstance) {
- // Push current root instance onto the stack;
- // This allows us to reset root when portals are popped.
- push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
- // This enables us to pop only Fibers that provide unique contexts.
-
- push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
- // However, we can't just call getRootHostContext() and push it because
- // we'd have a different number of entries on the stack depending on
- // whether getRootHostContext() throws somewhere in renderer code or not.
- // So we push an empty value first. This lets us safely unwind on errors.
-
- push(contextStackCursor$1, NO_CONTEXT, fiber);
- var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
-
- pop(contextStackCursor$1, fiber);
- push(contextStackCursor$1, nextRootContext, fiber);
- }
-
- function popHostContainer(fiber) {
- pop(contextStackCursor$1, fiber);
- pop(contextFiberStackCursor, fiber);
- pop(rootInstanceStackCursor, fiber);
- }
-
- function getHostContext() {
- var context = requiredContext(contextStackCursor$1.current);
- return context;
- }
-
- function pushHostContext(fiber) {
- var rootInstance = requiredContext(rootInstanceStackCursor.current);
- var context = requiredContext(contextStackCursor$1.current);
- var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
-
- if (context === nextContext) {
- return;
- } // Track the context and the Fiber that provided it.
- // This enables us to pop only Fibers that provide unique contexts.
-
-
- push(contextFiberStackCursor, fiber, fiber);
- push(contextStackCursor$1, nextContext, fiber);
- }
-
- function popHostContext(fiber) {
- // Do not pop unless this Fiber provided the current context.
- // pushHostContext() only pushes Fibers that provide unique contexts.
- if (contextFiberStackCursor.current !== fiber) {
- return;
- }
-
- pop(contextStackCursor$1, fiber);
- pop(contextFiberStackCursor, fiber);
- }
-
- var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
- // inherited deeply down the subtree. The upper bits only affect
- // this immediate suspense boundary and gets reset each new
- // boundary or suspense list.
-
- var SubtreeSuspenseContextMask = 1; // Subtree Flags:
- // InvisibleParentSuspenseContext indicates that one of our parent Suspense
- // boundaries is not currently showing visible main content.
- // Either because it is already showing a fallback or is not mounted at all.
- // We can use this to determine if it is desirable to trigger a fallback at
- // the parent. If not, then we might need to trigger undesirable boundaries
- // and/or suspend the commit to avoid hiding the parent content.
-
- var InvisibleParentSuspenseContext = 1; // Shallow Flags:
- // ForceSuspenseFallback can be used by SuspenseList to force newly added
- // items into their fallback state during one of the render passes.
-
- var ForceSuspenseFallback = 2;
- var suspenseStackCursor = createCursor(DefaultSuspenseContext);
- function hasSuspenseContext(parentContext, flag) {
- return (parentContext & flag) !== 0;
- }
- function setDefaultShallowSuspenseContext(parentContext) {
- return parentContext & SubtreeSuspenseContextMask;
- }
- function setShallowSuspenseContext(parentContext, shallowContext) {
- return parentContext & SubtreeSuspenseContextMask | shallowContext;
- }
- function addSubtreeSuspenseContext(parentContext, subtreeContext) {
- return parentContext | subtreeContext;
- }
- function pushSuspenseContext(fiber, newContext) {
- push(suspenseStackCursor, newContext, fiber);
- }
- function popSuspenseContext(fiber) {
- pop(suspenseStackCursor, fiber);
- }
-
- function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
- // If it was the primary children that just suspended, capture and render the
- // fallback. Otherwise, don't capture and bubble to the next boundary.
- var nextState = workInProgress.memoizedState;
-
- if (nextState !== null) {
- if (nextState.dehydrated !== null) {
- // A dehydrated boundary always captures.
- return true;
- }
-
- return false;
- }
-
- var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.
-
- if (props.fallback === undefined) {
- return false;
- } // Regular boundaries always capture.
-
-
- if (props.unstable_avoidThisFallback !== true) {
- return true;
- } // If it's a boundary we should avoid, then we prefer to bubble up to the
- // parent boundary if it is currently invisible.
-
-
- if (hasInvisibleParent) {
- return false;
- } // If the parent is not able to handle it, we must handle it.
-
-
- return true;
- }
- function findFirstSuspended(row) {
- var node = row;
-
- while (node !== null) {
- if (node.tag === SuspenseComponent) {
- var state = node.memoizedState;
-
- if (state !== null) {
- var dehydrated = state.dehydrated;
-
- if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
- return node;
- }
- }
- } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
- // keep track of whether it suspended or not.
- node.memoizedProps.revealOrder !== undefined) {
- var didSuspend = (node.flags & DidCapture) !== NoFlags;
-
- if (didSuspend) {
- return node;
- }
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === row) {
- return null;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === row) {
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
-
- return null;
- }
-
- var NoFlags$1 =
- /* */
- 0; // Represents whether effect should fire.
-
- var HasEffect =
- /* */
- 1; // Represents the phase in which the effect (not the clean-up) fires.
-
- var Layout =
- /* */
- 2;
- var Passive$1 =
- /* */
- 4;
-
- // This may have been an insertion or a hydration.
-
- var hydrationParentFiber = null;
- var nextHydratableInstance = null;
- var isHydrating = false;
-
- function enterHydrationState(fiber) {
-
- var parentInstance = fiber.stateNode.containerInfo;
- nextHydratableInstance = getFirstHydratableChild(parentInstance);
- hydrationParentFiber = fiber;
- isHydrating = true;
- return true;
- }
-
- function deleteHydratableInstance(returnFiber, instance) {
- {
- switch (returnFiber.tag) {
- case HostRoot:
- didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
- break;
-
- case HostComponent:
- didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
- break;
- }
- }
-
- var childToDelete = createFiberFromHostInstanceForDeletion();
- childToDelete.stateNode = instance;
- childToDelete.return = returnFiber;
- childToDelete.flags = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
- // these children are not part of the reconciliation list of children.
- // Even if we abort and rereconcile the children, that will try to hydrate
- // again and the nodes are still in the host tree so these will be
- // recreated.
-
- if (returnFiber.lastEffect !== null) {
- returnFiber.lastEffect.nextEffect = childToDelete;
- returnFiber.lastEffect = childToDelete;
- } else {
- returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
- }
- }
-
- function insertNonHydratedInstance(returnFiber, fiber) {
- fiber.flags = fiber.flags & ~Hydrating | Placement;
-
- {
- switch (returnFiber.tag) {
- case HostRoot:
- {
- var parentContainer = returnFiber.stateNode.containerInfo;
-
- switch (fiber.tag) {
- case HostComponent:
- var type = fiber.type;
- var props = fiber.pendingProps;
- didNotFindHydratableContainerInstance(parentContainer, type);
- break;
-
- case HostText:
- var text = fiber.pendingProps;
- didNotFindHydratableContainerTextInstance(parentContainer, text);
- break;
- }
-
- break;
- }
-
- case HostComponent:
- {
- var parentType = returnFiber.type;
- var parentProps = returnFiber.memoizedProps;
- var parentInstance = returnFiber.stateNode;
-
- switch (fiber.tag) {
- case HostComponent:
- var _type = fiber.type;
- var _props = fiber.pendingProps;
- didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
- break;
-
- case HostText:
- var _text = fiber.pendingProps;
- didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
- break;
-
- case SuspenseComponent:
- didNotFindHydratableSuspenseInstance(parentType, parentProps);
- break;
- }
-
- break;
- }
-
- default:
- return;
- }
- }
- }
-
- function tryHydrate(fiber, nextInstance) {
- switch (fiber.tag) {
- case HostComponent:
- {
- var type = fiber.type;
- var props = fiber.pendingProps;
- var instance = canHydrateInstance(nextInstance, type);
-
- if (instance !== null) {
- fiber.stateNode = instance;
- return true;
- }
-
- return false;
- }
-
- case HostText:
- {
- var text = fiber.pendingProps;
- var textInstance = canHydrateTextInstance(nextInstance, text);
-
- if (textInstance !== null) {
- fiber.stateNode = textInstance;
- return true;
- }
-
- return false;
- }
-
- case SuspenseComponent:
- {
-
- return false;
- }
-
- default:
- return false;
- }
- }
-
- function tryToClaimNextHydratableInstance(fiber) {
- if (!isHydrating) {
- return;
- }
-
- var nextInstance = nextHydratableInstance;
-
- if (!nextInstance) {
- // Nothing to hydrate. Make it an insertion.
- insertNonHydratedInstance(hydrationParentFiber, fiber);
- isHydrating = false;
- hydrationParentFiber = fiber;
- return;
- }
-
- var firstAttemptedInstance = nextInstance;
-
- if (!tryHydrate(fiber, nextInstance)) {
- // If we can't hydrate this instance let's try the next one.
- // We use this as a heuristic. It's based on intuition and not data so it
- // might be flawed or unnecessary.
- nextInstance = getNextHydratableSibling(firstAttemptedInstance);
-
- if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
- // Nothing to hydrate. Make it an insertion.
- insertNonHydratedInstance(hydrationParentFiber, fiber);
- isHydrating = false;
- hydrationParentFiber = fiber;
- return;
- } // We matched the next one, we'll now assume that the first one was
- // superfluous and we'll delete it. Since we can't eagerly delete it
- // we'll have to schedule a deletion. To do that, this node needs a dummy
- // fiber associated with it.
-
-
- deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
- }
-
- hydrationParentFiber = fiber;
- nextHydratableInstance = getFirstHydratableChild(nextInstance);
- }
-
- function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
-
- var instance = fiber.stateNode;
- var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.
-
- fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
- // is a new ref we mark this as an update.
-
- if (updatePayload !== null) {
- return true;
- }
-
- return false;
- }
-
- function prepareToHydrateHostTextInstance(fiber) {
-
- var textInstance = fiber.stateNode;
- var textContent = fiber.memoizedProps;
- var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
-
- {
- if (shouldUpdate) {
- // We assume that prepareToHydrateHostTextInstance is called in a context where the
- // hydration parent is the parent host component of this host text.
- var returnFiber = hydrationParentFiber;
-
- if (returnFiber !== null) {
- switch (returnFiber.tag) {
- case HostRoot:
- {
- var parentContainer = returnFiber.stateNode.containerInfo;
- didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
- break;
- }
-
- case HostComponent:
- {
- var parentType = returnFiber.type;
- var parentProps = returnFiber.memoizedProps;
- var parentInstance = returnFiber.stateNode;
- didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
- break;
- }
- }
- }
- }
- }
-
- return shouldUpdate;
- }
-
- function skipPastDehydratedSuspenseInstance(fiber) {
-
- var suspenseState = fiber.memoizedState;
- var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
-
- if (!suspenseInstance) {
- {
- throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
- }
-
- function popToNextHostParent(fiber) {
- var parent = fiber.return;
-
- while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
- parent = parent.return;
- }
-
- hydrationParentFiber = parent;
- }
-
- function popHydrationState(fiber) {
-
- if (fiber !== hydrationParentFiber) {
- // We're deeper than the current hydration context, inside an inserted
- // tree.
- return false;
- }
-
- if (!isHydrating) {
- // If we're not currently hydrating but we're in a hydration context, then
- // we were an insertion and now need to pop up reenter hydration of our
- // siblings.
- popToNextHostParent(fiber);
- isHydrating = true;
- return false;
- }
-
- var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
- // We only do this deeper than head and body since they tend to have random
- // other nodes in them. We also ignore components with pure text content in
- // side of them.
- // TODO: Better heuristic.
-
- if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
- var nextInstance = nextHydratableInstance;
-
- while (nextInstance) {
- deleteHydratableInstance(fiber, nextInstance);
- nextInstance = getNextHydratableSibling(nextInstance);
- }
- }
-
- popToNextHostParent(fiber);
-
- if (fiber.tag === SuspenseComponent) {
- nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
- } else {
- nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
- }
-
- return true;
- }
-
- function resetHydrationState() {
-
- hydrationParentFiber = null;
- nextHydratableInstance = null;
- isHydrating = false;
- }
-
- function getIsHydrating() {
- return isHydrating;
- }
-
- // and should be reset before starting a new render.
- // This tracks which mutable sources need to be reset after a render.
-
- var workInProgressSources = [];
- var rendererSigil$1;
-
- {
- // Used to detect multiple renderers using the same mutable source.
- rendererSigil$1 = {};
- }
-
- function markSourceAsDirty(mutableSource) {
- workInProgressSources.push(mutableSource);
- }
- function resetWorkInProgressVersions() {
- for (var i = 0; i < workInProgressSources.length; i++) {
- var mutableSource = workInProgressSources[i];
-
- {
- mutableSource._workInProgressVersionPrimary = null;
- }
- }
-
- workInProgressSources.length = 0;
- }
- function getWorkInProgressVersion(mutableSource) {
- {
- return mutableSource._workInProgressVersionPrimary;
- }
- }
- function setWorkInProgressVersion(mutableSource, version) {
- {
- mutableSource._workInProgressVersionPrimary = version;
- }
-
- workInProgressSources.push(mutableSource);
- }
- function warnAboutMultipleRenderersDEV(mutableSource) {
- {
- {
- if (mutableSource._currentPrimaryRenderer == null) {
- mutableSource._currentPrimaryRenderer = rendererSigil$1;
- } else if (mutableSource._currentPrimaryRenderer !== rendererSigil$1) {
- error('Detected multiple renderers concurrently rendering the ' + 'same mutable source. This is currently unsupported.');
- }
- }
- }
- } // Eager reads the version of a mutable source and stores it on the root.
-
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
- ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
- var didWarnAboutMismatchedHooksForComponent;
- var didWarnAboutUseOpaqueIdentifier;
-
- {
- didWarnAboutUseOpaqueIdentifier = {};
- didWarnAboutMismatchedHooksForComponent = new Set();
- }
-
- // These are set right before calling the component.
- var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
- // the work-in-progress hook.
-
- var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
- // current hook list is the list that belongs to the current fiber. The
- // work-in-progress hook list is a new list that will be added to the
- // work-in-progress fiber.
-
- var currentHook = null;
- var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
- // does not get reset if we do another render pass; only when we're completely
- // finished evaluating this component. This is an optimization so we know
- // whether we need to clear render phase updates after a throw.
-
- var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This
- // gets reset after each attempt.
- // TODO: Maybe there's some way to consolidate this with
- // `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.
-
- var didScheduleRenderPhaseUpdateDuringThisPass = false;
- var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
-
- var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
- // The list stores the order of hooks used during the initial render (mount).
- // Subsequent renders (updates) reference this list.
-
- var hookTypesDev = null;
- var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
- // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
- // When true, such Hooks will always be "remounted". Only used during hot reload.
-
- var ignorePreviousDependencies = false;
-
- function mountHookTypesDev() {
- {
- var hookName = currentHookNameInDev;
-
- if (hookTypesDev === null) {
- hookTypesDev = [hookName];
- } else {
- hookTypesDev.push(hookName);
- }
- }
- }
-
- function updateHookTypesDev() {
- {
- var hookName = currentHookNameInDev;
-
- if (hookTypesDev !== null) {
- hookTypesUpdateIndexDev++;
-
- if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
- warnOnHookMismatchInDev(hookName);
- }
- }
- }
- }
-
- function checkDepsAreArrayDev(deps) {
- {
- if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
- // Verify deps, but only on mount to avoid extra checks.
- // It's unlikely their type would change as usually you define them inline.
- error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
- }
- }
- }
-
- function warnOnHookMismatchInDev(currentHookName) {
- {
- var componentName = getComponentName(currentlyRenderingFiber$1.type);
-
- if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
- didWarnAboutMismatchedHooksForComponent.add(componentName);
-
- if (hookTypesDev !== null) {
- var table = '';
- var secondColumnStart = 30;
-
- for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
- var oldHookName = hookTypesDev[i];
- var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
- var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
- // lol @ IE not supporting String#repeat
-
- while (row.length < secondColumnStart) {
- row += ' ';
- }
-
- row += newHookName + '\n';
- table += row;
- }
-
- error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
- }
- }
- }
- }
-
- function throwInvalidHookError() {
- {
- {
- throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
- }
- }
- }
-
- function areHookInputsEqual(nextDeps, prevDeps) {
- {
- if (ignorePreviousDependencies) {
- // Only true when this component is being hot reloaded.
- return false;
- }
- }
-
- if (prevDeps === null) {
- {
- error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
- }
-
- return false;
- }
-
- {
- // Don't bother comparing lengths in prod because these arrays should be
- // passed inline.
- if (nextDeps.length !== prevDeps.length) {
- error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
- }
- }
-
- for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
- if (objectIs(nextDeps[i], prevDeps[i])) {
- continue;
- }
-
- return false;
- }
-
- return true;
- }
-
- function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
- renderLanes = nextRenderLanes;
- currentlyRenderingFiber$1 = workInProgress;
-
- {
- hookTypesDev = current !== null ? current._debugHookTypes : null;
- hookTypesUpdateIndexDev = -1; // Used for hot reloading:
-
- ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
- }
-
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null;
- workInProgress.lanes = NoLanes; // The following should have already been reset
- // currentHook = null;
- // workInProgressHook = null;
- // didScheduleRenderPhaseUpdate = false;
- // TODO Warn if no hooks are used at all during mount, then some are used during update.
- // Currently we will identify the update render as a mount because memoizedState === null.
- // This is tricky because it's valid for certain types of components (e.g. React.lazy)
- // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
- // Non-stateful hooks (e.g. context) don't get added to memoizedState,
- // so memoizedState would be null during updates and mounts.
-
- {
- if (current !== null && current.memoizedState !== null) {
- ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
- } else if (hookTypesDev !== null) {
- // This dispatcher handles an edge case where a component is updating,
- // but no stateful hooks have been used.
- // We want to match the production code behavior (which will use HooksDispatcherOnMount),
- // but with the extra DEV validation to ensure hooks ordering hasn't changed.
- // This dispatcher does that.
- ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
- } else {
- ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
- }
- }
-
- var children = Component(props, secondArg); // Check if there was a render phase update
-
- if (didScheduleRenderPhaseUpdateDuringThisPass) {
- // Keep rendering in a loop for as long as render phase updates continue to
- // be scheduled. Use a counter to prevent infinite loops.
- var numberOfReRenders = 0;
-
- do {
- didScheduleRenderPhaseUpdateDuringThisPass = false;
-
- if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
- {
- throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
- }
- }
-
- numberOfReRenders += 1;
-
- {
- // Even when hot reloading, allow dependencies to stabilize
- // after first render to prevent infinite render phase updates.
- ignorePreviousDependencies = false;
- } // Start over from the beginning of the list
-
-
- currentHook = null;
- workInProgressHook = null;
- workInProgress.updateQueue = null;
-
- {
- // Also validate hook order for cascading updates.
- hookTypesUpdateIndexDev = -1;
- }
-
- ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV ;
- children = Component(props, secondArg);
- } while (didScheduleRenderPhaseUpdateDuringThisPass);
- } // We can assume the previous dispatcher is always this one, since we set it
- // at the beginning of the render phase and there's no re-entrancy.
-
-
- ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
-
- {
- workInProgress._debugHookTypes = hookTypesDev;
- } // This check uses currentHook so that it works the same in DEV and prod bundles.
- // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
-
-
- var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
- renderLanes = NoLanes;
- currentlyRenderingFiber$1 = null;
- currentHook = null;
- workInProgressHook = null;
-
- {
- currentHookNameInDev = null;
- hookTypesDev = null;
- hookTypesUpdateIndexDev = -1;
- }
-
- didScheduleRenderPhaseUpdate = false;
-
- if (!!didRenderTooFewHooks) {
- {
- throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
- }
- }
-
- return children;
- }
- function bailoutHooks(current, workInProgress, lanes) {
- workInProgress.updateQueue = current.updateQueue;
- workInProgress.flags &= ~(Passive | Update);
- current.lanes = removeLanes(current.lanes, lanes);
- }
- function resetHooksAfterThrow() {
- // We can assume the previous dispatcher is always this one, since we set it
- // at the beginning of the render phase and there's no re-entrancy.
- ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
-
- if (didScheduleRenderPhaseUpdate) {
- // There were render phase updates. These are only valid for this render
- // phase, which we are now aborting. Remove the updates from the queues so
- // they do not persist to the next render. Do not remove updates from hooks
- // that weren't processed.
- //
- // Only reset the updates from the queue if it has a clone. If it does
- // not have a clone, that means it wasn't processed, and the updates were
- // scheduled before we entered the render phase.
- var hook = currentlyRenderingFiber$1.memoizedState;
-
- while (hook !== null) {
- var queue = hook.queue;
-
- if (queue !== null) {
- queue.pending = null;
- }
-
- hook = hook.next;
- }
-
- didScheduleRenderPhaseUpdate = false;
- }
-
- renderLanes = NoLanes;
- currentlyRenderingFiber$1 = null;
- currentHook = null;
- workInProgressHook = null;
-
- {
- hookTypesDev = null;
- hookTypesUpdateIndexDev = -1;
- currentHookNameInDev = null;
- isUpdatingOpaqueValueInRenderPhase = false;
- }
-
- didScheduleRenderPhaseUpdateDuringThisPass = false;
- }
-
- function mountWorkInProgressHook() {
- var hook = {
- memoizedState: null,
- baseState: null,
- baseQueue: null,
- queue: null,
- next: null
- };
-
- if (workInProgressHook === null) {
- // This is the first hook in the list
- currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
- } else {
- // Append to the end of the list
- workInProgressHook = workInProgressHook.next = hook;
- }
-
- return workInProgressHook;
- }
-
- function updateWorkInProgressHook() {
- // This function is used both for updates and for re-renders triggered by a
- // render phase update. It assumes there is either a current hook we can
- // clone, or a work-in-progress hook from a previous render pass that we can
- // use as a base. When we reach the end of the base list, we must switch to
- // the dispatcher used for mounts.
- var nextCurrentHook;
-
- if (currentHook === null) {
- var current = currentlyRenderingFiber$1.alternate;
-
- if (current !== null) {
- nextCurrentHook = current.memoizedState;
- } else {
- nextCurrentHook = null;
- }
- } else {
- nextCurrentHook = currentHook.next;
- }
-
- var nextWorkInProgressHook;
-
- if (workInProgressHook === null) {
- nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
- } else {
- nextWorkInProgressHook = workInProgressHook.next;
- }
-
- if (nextWorkInProgressHook !== null) {
- // There's already a work-in-progress. Reuse it.
- workInProgressHook = nextWorkInProgressHook;
- nextWorkInProgressHook = workInProgressHook.next;
- currentHook = nextCurrentHook;
- } else {
- // Clone from the current hook.
- if (!(nextCurrentHook !== null)) {
- {
- throw Error( "Rendered more hooks than during the previous render." );
- }
- }
-
- currentHook = nextCurrentHook;
- var newHook = {
- memoizedState: currentHook.memoizedState,
- baseState: currentHook.baseState,
- baseQueue: currentHook.baseQueue,
- queue: currentHook.queue,
- next: null
- };
-
- if (workInProgressHook === null) {
- // This is the first hook in the list.
- currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
- } else {
- // Append to the end of the list.
- workInProgressHook = workInProgressHook.next = newHook;
- }
- }
-
- return workInProgressHook;
- }
-
- function createFunctionComponentUpdateQueue() {
- return {
- lastEffect: null
- };
- }
-
- function basicStateReducer(state, action) {
- // $FlowFixMe: Flow doesn't like mixed types
- return typeof action === 'function' ? action(state) : action;
- }
-
- function mountReducer(reducer, initialArg, init) {
- var hook = mountWorkInProgressHook();
- var initialState;
-
- if (init !== undefined) {
- initialState = init(initialArg);
- } else {
- initialState = initialArg;
- }
-
- hook.memoizedState = hook.baseState = initialState;
- var queue = hook.queue = {
- pending: null,
- dispatch: null,
- lastRenderedReducer: reducer,
- lastRenderedState: initialState
- };
- var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
- return [hook.memoizedState, dispatch];
- }
-
- function updateReducer(reducer, initialArg, init) {
- var hook = updateWorkInProgressHook();
- var queue = hook.queue;
-
- if (!(queue !== null)) {
- {
- throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
- }
- }
-
- queue.lastRenderedReducer = reducer;
- var current = currentHook; // The last rebase update that is NOT part of the base state.
-
- var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
-
- var pendingQueue = queue.pending;
-
- if (pendingQueue !== null) {
- // We have new updates that haven't been processed yet.
- // We'll add them to the base queue.
- if (baseQueue !== null) {
- // Merge the pending queue and the base queue.
- var baseFirst = baseQueue.next;
- var pendingFirst = pendingQueue.next;
- baseQueue.next = pendingFirst;
- pendingQueue.next = baseFirst;
- }
-
- {
- if (current.baseQueue !== baseQueue) {
- // Internal invariant that should never happen, but feasibly could in
- // the future if we implement resuming, or some form of that.
- error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');
- }
- }
-
- current.baseQueue = baseQueue = pendingQueue;
- queue.pending = null;
- }
-
- if (baseQueue !== null) {
- // We have a queue to process.
- var first = baseQueue.next;
- var newState = current.baseState;
- var newBaseState = null;
- var newBaseQueueFirst = null;
- var newBaseQueueLast = null;
- var update = first;
-
- do {
- var updateLane = update.lane;
-
- if (!isSubsetOfLanes(renderLanes, updateLane)) {
- // Priority is insufficient. Skip this update. If this is the first
- // skipped update, the previous update/state is the new base
- // update/state.
- var clone = {
- lane: updateLane,
- action: update.action,
- eagerReducer: update.eagerReducer,
- eagerState: update.eagerState,
- next: null
- };
-
- if (newBaseQueueLast === null) {
- newBaseQueueFirst = newBaseQueueLast = clone;
- newBaseState = newState;
- } else {
- newBaseQueueLast = newBaseQueueLast.next = clone;
- } // Update the remaining priority in the queue.
- // TODO: Don't need to accumulate this. Instead, we can remove
- // renderLanes from the original lanes.
-
-
- currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
- markSkippedUpdateLanes(updateLane);
- } else {
- // This update does have sufficient priority.
- if (newBaseQueueLast !== null) {
- var _clone = {
- // This update is going to be committed so we never want uncommit
- // it. Using NoLane works because 0 is a subset of all bitmasks, so
- // this will never be skipped by the check above.
- lane: NoLane,
- action: update.action,
- eagerReducer: update.eagerReducer,
- eagerState: update.eagerState,
- next: null
- };
- newBaseQueueLast = newBaseQueueLast.next = _clone;
- } // Process this update.
-
-
- if (update.eagerReducer === reducer) {
- // If this update was processed eagerly, and its reducer matches the
- // current reducer, we can use the eagerly computed state.
- newState = update.eagerState;
- } else {
- var action = update.action;
- newState = reducer(newState, action);
- }
- }
-
- update = update.next;
- } while (update !== null && update !== first);
-
- if (newBaseQueueLast === null) {
- newBaseState = newState;
- } else {
- newBaseQueueLast.next = newBaseQueueFirst;
- } // Mark that the fiber performed work, but only if the new state is
- // different from the current state.
-
-
- if (!objectIs(newState, hook.memoizedState)) {
- markWorkInProgressReceivedUpdate();
- }
-
- hook.memoizedState = newState;
- hook.baseState = newBaseState;
- hook.baseQueue = newBaseQueueLast;
- queue.lastRenderedState = newState;
- }
-
- var dispatch = queue.dispatch;
- return [hook.memoizedState, dispatch];
- }
-
- function rerenderReducer(reducer, initialArg, init) {
- var hook = updateWorkInProgressHook();
- var queue = hook.queue;
-
- if (!(queue !== null)) {
- {
- throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
- }
- }
-
- queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
- // work-in-progress hook.
-
- var dispatch = queue.dispatch;
- var lastRenderPhaseUpdate = queue.pending;
- var newState = hook.memoizedState;
-
- if (lastRenderPhaseUpdate !== null) {
- // The queue doesn't persist past this render pass.
- queue.pending = null;
- var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
- var update = firstRenderPhaseUpdate;
-
- do {
- // Process this render phase update. We don't have to check the
- // priority because it will always be the same as the current
- // render's.
- var action = update.action;
- newState = reducer(newState, action);
- update = update.next;
- } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
- // different from the current state.
-
-
- if (!objectIs(newState, hook.memoizedState)) {
- markWorkInProgressReceivedUpdate();
- }
-
- hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
- // the base state unless the queue is empty.
- // TODO: Not sure if this is the desired semantics, but it's what we
- // do for gDSFP. I can't remember why.
-
- if (hook.baseQueue === null) {
- hook.baseState = newState;
- }
-
- queue.lastRenderedState = newState;
- }
-
- return [newState, dispatch];
- }
-
- function readFromUnsubcribedMutableSource(root, source, getSnapshot) {
- {
- warnAboutMultipleRenderersDEV(source);
- }
-
- var getVersion = source._getVersion;
- var version = getVersion(source._source); // Is it safe for this component to read from this source during the current render?
-
- var isSafeToReadFromSource = false; // Check the version first.
- // If this render has already been started with a specific version,
- // we can use it alone to determine if we can safely read from the source.
-
- var currentRenderVersion = getWorkInProgressVersion(source);
-
- if (currentRenderVersion !== null) {
- // It's safe to read if the store hasn't been mutated since the last time
- // we read something.
- isSafeToReadFromSource = currentRenderVersion === version;
- } else {
- // If there's no version, then this is the first time we've read from the
- // source during the current render pass, so we need to do a bit more work.
- // What we need to determine is if there are any hooks that already
- // subscribed to the source, and if so, whether there are any pending
- // mutations that haven't been synchronized yet.
- //
- // If there are no pending mutations, then `root.mutableReadLanes` will be
- // empty, and we know we can safely read.
- //
- // If there *are* pending mutations, we may still be able to safely read
- // if the currently rendering lanes are inclusive of the pending mutation
- // lanes, since that guarantees that the value we're about to read from
- // the source is consistent with the values that we read during the most
- // recent mutation.
- isSafeToReadFromSource = isSubsetOfLanes(renderLanes, root.mutableReadLanes);
-
- if (isSafeToReadFromSource) {
- // If it's safe to read from this source during the current render,
- // store the version in case other components read from it.
- // A changed version number will let those components know to throw and restart the render.
- setWorkInProgressVersion(source, version);
- }
- }
-
- if (isSafeToReadFromSource) {
- var snapshot = getSnapshot(source._source);
-
- {
- if (typeof snapshot === 'function') {
- error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
- }
- }
-
- return snapshot;
- } else {
- // This handles the special case of a mutable source being shared between renderers.
- // In that case, if the source is mutated between the first and second renderer,
- // The second renderer don't know that it needs to reset the WIP version during unwind,
- // (because the hook only marks sources as dirty if it's written to their WIP version).
- // That would cause this tear check to throw again and eventually be visible to the user.
- // We can avoid this infinite loop by explicitly marking the source as dirty.
- //
- // This can lead to tearing in the first renderer when it resumes,
- // but there's nothing we can do about that (short of throwing here and refusing to continue the render).
- markSourceAsDirty(source);
-
- {
- {
- throw Error( "Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue." );
- }
- }
- }
- }
-
- function useMutableSource(hook, source, getSnapshot, subscribe) {
- var root = getWorkInProgressRoot();
-
- if (!(root !== null)) {
- {
- throw Error( "Expected a work-in-progress root. This is a bug in React. Please file an issue." );
- }
- }
-
- var getVersion = source._getVersion;
- var version = getVersion(source._source);
- var dispatcher = ReactCurrentDispatcher$1.current; // eslint-disable-next-line prefer-const
-
- var _dispatcher$useState = dispatcher.useState(function () {
- return readFromUnsubcribedMutableSource(root, source, getSnapshot);
- }),
- currentSnapshot = _dispatcher$useState[0],
- setSnapshot = _dispatcher$useState[1];
-
- var snapshot = currentSnapshot; // Grab a handle to the state hook as well.
- // We use it to clear the pending update queue if we have a new source.
-
- var stateHook = workInProgressHook;
- var memoizedState = hook.memoizedState;
- var refs = memoizedState.refs;
- var prevGetSnapshot = refs.getSnapshot;
- var prevSource = memoizedState.source;
- var prevSubscribe = memoizedState.subscribe;
- var fiber = currentlyRenderingFiber$1;
- hook.memoizedState = {
- refs: refs,
- source: source,
- subscribe: subscribe
- }; // Sync the values needed by our subscription handler after each commit.
-
- dispatcher.useEffect(function () {
- refs.getSnapshot = getSnapshot; // Normally the dispatch function for a state hook never changes,
- // but this hook recreates the queue in certain cases to avoid updates from stale sources.
- // handleChange() below needs to reference the dispatch function without re-subscribing,
- // so we use a ref to ensure that it always has the latest version.
-
- refs.setSnapshot = setSnapshot; // Check for a possible change between when we last rendered now.
-
- var maybeNewVersion = getVersion(source._source);
-
- if (!objectIs(version, maybeNewVersion)) {
- var maybeNewSnapshot = getSnapshot(source._source);
-
- {
- if (typeof maybeNewSnapshot === 'function') {
- error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
- }
- }
-
- if (!objectIs(snapshot, maybeNewSnapshot)) {
- setSnapshot(maybeNewSnapshot);
- var lane = requestUpdateLane(fiber);
- markRootMutableRead(root, lane);
- } // If the source mutated between render and now,
- // there may be state updates already scheduled from the old source.
- // Entangle the updates so that they render in the same batch.
-
-
- markRootEntangled(root, root.mutableReadLanes);
- }
- }, [getSnapshot, source, subscribe]); // If we got a new source or subscribe function, re-subscribe in a passive effect.
-
- dispatcher.useEffect(function () {
- var handleChange = function () {
- var latestGetSnapshot = refs.getSnapshot;
- var latestSetSnapshot = refs.setSnapshot;
-
- try {
- latestSetSnapshot(latestGetSnapshot(source._source)); // Record a pending mutable source update with the same expiration time.
-
- var lane = requestUpdateLane(fiber);
- markRootMutableRead(root, lane);
- } catch (error) {
- // A selector might throw after a source mutation.
- // e.g. it might try to read from a part of the store that no longer exists.
- // In this case we should still schedule an update with React.
- // Worst case the selector will throw again and then an error boundary will handle it.
- latestSetSnapshot(function () {
- throw error;
- });
- }
- };
-
- var unsubscribe = subscribe(source._source, handleChange);
-
- {
- if (typeof unsubscribe !== 'function') {
- error('Mutable source subscribe function must return an unsubscribe function.');
- }
- }
-
- return unsubscribe;
- }, [source, subscribe]); // If any of the inputs to useMutableSource change, reading is potentially unsafe.
- //
- // If either the source or the subscription have changed we can't can't trust the update queue.
- // Maybe the source changed in a way that the old subscription ignored but the new one depends on.
- //
- // If the getSnapshot function changed, we also shouldn't rely on the update queue.
- // It's possible that the underlying source was mutated between the when the last "change" event fired,
- // and when the current render (with the new getSnapshot function) is processed.
- //
- // In both cases, we need to throw away pending updates (since they are no longer relevant)
- // and treat reading from the source as we do in the mount case.
-
- if (!objectIs(prevGetSnapshot, getSnapshot) || !objectIs(prevSource, source) || !objectIs(prevSubscribe, subscribe)) {
- // Create a new queue and setState method,
- // So if there are interleaved updates, they get pushed to the older queue.
- // When this becomes current, the previous queue and dispatch method will be discarded,
- // including any interleaving updates that occur.
- var newQueue = {
- pending: null,
- dispatch: null,
- lastRenderedReducer: basicStateReducer,
- lastRenderedState: snapshot
- };
- newQueue.dispatch = setSnapshot = dispatchAction.bind(null, currentlyRenderingFiber$1, newQueue);
- stateHook.queue = newQueue;
- stateHook.baseQueue = null;
- snapshot = readFromUnsubcribedMutableSource(root, source, getSnapshot);
- stateHook.memoizedState = stateHook.baseState = snapshot;
- }
-
- return snapshot;
- }
-
- function mountMutableSource(source, getSnapshot, subscribe) {
- var hook = mountWorkInProgressHook();
- hook.memoizedState = {
- refs: {
- getSnapshot: getSnapshot,
- setSnapshot: null
- },
- source: source,
- subscribe: subscribe
- };
- return useMutableSource(hook, source, getSnapshot, subscribe);
- }
-
- function updateMutableSource(source, getSnapshot, subscribe) {
- var hook = updateWorkInProgressHook();
- return useMutableSource(hook, source, getSnapshot, subscribe);
- }
-
- function mountState(initialState) {
- var hook = mountWorkInProgressHook();
-
- if (typeof initialState === 'function') {
- // $FlowFixMe: Flow doesn't like mixed types
- initialState = initialState();
- }
-
- hook.memoizedState = hook.baseState = initialState;
- var queue = hook.queue = {
- pending: null,
- dispatch: null,
- lastRenderedReducer: basicStateReducer,
- lastRenderedState: initialState
- };
- var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
- return [hook.memoizedState, dispatch];
- }
-
- function updateState(initialState) {
- return updateReducer(basicStateReducer);
- }
-
- function rerenderState(initialState) {
- return rerenderReducer(basicStateReducer);
- }
-
- function pushEffect(tag, create, destroy, deps) {
- var effect = {
- tag: tag,
- create: create,
- destroy: destroy,
- deps: deps,
- // Circular
- next: null
- };
- var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
-
- if (componentUpdateQueue === null) {
- componentUpdateQueue = createFunctionComponentUpdateQueue();
- currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
- componentUpdateQueue.lastEffect = effect.next = effect;
- } else {
- var lastEffect = componentUpdateQueue.lastEffect;
-
- if (lastEffect === null) {
- componentUpdateQueue.lastEffect = effect.next = effect;
- } else {
- var firstEffect = lastEffect.next;
- lastEffect.next = effect;
- effect.next = firstEffect;
- componentUpdateQueue.lastEffect = effect;
- }
- }
-
- return effect;
- }
-
- function mountRef(initialValue) {
- var hook = mountWorkInProgressHook();
- var ref = {
- current: initialValue
- };
-
- {
- Object.seal(ref);
- }
-
- hook.memoizedState = ref;
- return ref;
- }
-
- function updateRef(initialValue) {
- var hook = updateWorkInProgressHook();
- return hook.memoizedState;
- }
-
- function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- currentlyRenderingFiber$1.flags |= fiberFlags;
- hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);
- }
-
- function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var destroy = undefined;
-
- if (currentHook !== null) {
- var prevEffect = currentHook.memoizedState;
- destroy = prevEffect.destroy;
-
- if (nextDeps !== null) {
- var prevDeps = prevEffect.deps;
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- pushEffect(hookFlags, create, destroy, nextDeps);
- return;
- }
- }
- }
-
- currentlyRenderingFiber$1.flags |= fiberFlags;
- hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);
- }
-
- function mountEffect(create, deps) {
- {
- // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
- warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
- }
- }
-
- return mountEffectImpl(Update | Passive, Passive$1, create, deps);
- }
-
- function updateEffect(create, deps) {
- {
- // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
- warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
- }
- }
-
- return updateEffectImpl(Update | Passive, Passive$1, create, deps);
- }
-
- function mountLayoutEffect(create, deps) {
- return mountEffectImpl(Update, Layout, create, deps);
- }
-
- function updateLayoutEffect(create, deps) {
- return updateEffectImpl(Update, Layout, create, deps);
- }
-
- function imperativeHandleEffect(create, ref) {
- if (typeof ref === 'function') {
- var refCallback = ref;
-
- var _inst = create();
-
- refCallback(_inst);
- return function () {
- refCallback(null);
- };
- } else if (ref !== null && ref !== undefined) {
- var refObject = ref;
-
- {
- if (!refObject.hasOwnProperty('current')) {
- error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
- }
- }
-
- var _inst2 = create();
-
- refObject.current = _inst2;
- return function () {
- refObject.current = null;
- };
- }
- }
-
- function mountImperativeHandle(ref, create, deps) {
- {
- if (typeof create !== 'function') {
- error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
- }
- } // TODO: If deps are provided, should we skip comparing the ref itself?
-
-
- var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
- return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
- }
-
- function updateImperativeHandle(ref, create, deps) {
- {
- if (typeof create !== 'function') {
- error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
- }
- } // TODO: If deps are provided, should we skip comparing the ref itself?
-
-
- var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
- return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
- }
-
- function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
- // The react-debug-hooks package injects its own implementation
- // so that e.g. DevTools can display custom hook values.
- }
-
- var updateDebugValue = mountDebugValue;
-
- function mountCallback(callback, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- hook.memoizedState = [callback, nextDeps];
- return callback;
- }
-
- function updateCallback(callback, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var prevState = hook.memoizedState;
-
- if (prevState !== null) {
- if (nextDeps !== null) {
- var prevDeps = prevState[1];
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- return prevState[0];
- }
- }
- }
-
- hook.memoizedState = [callback, nextDeps];
- return callback;
- }
-
- function mountMemo(nextCreate, deps) {
- var hook = mountWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var nextValue = nextCreate();
- hook.memoizedState = [nextValue, nextDeps];
- return nextValue;
- }
-
- function updateMemo(nextCreate, deps) {
- var hook = updateWorkInProgressHook();
- var nextDeps = deps === undefined ? null : deps;
- var prevState = hook.memoizedState;
-
- if (prevState !== null) {
- // Assume these are defined. If they're not, areHookInputsEqual will warn.
- if (nextDeps !== null) {
- var prevDeps = prevState[1];
-
- if (areHookInputsEqual(nextDeps, prevDeps)) {
- return prevState[0];
- }
- }
- }
-
- var nextValue = nextCreate();
- hook.memoizedState = [nextValue, nextDeps];
- return nextValue;
- }
-
- function mountDeferredValue(value) {
- var _mountState = mountState(value),
- prevValue = _mountState[0],
- setValue = _mountState[1];
-
- mountEffect(function () {
- var prevTransition = ReactCurrentBatchConfig$1.transition;
- ReactCurrentBatchConfig$1.transition = 1;
-
- try {
- setValue(value);
- } finally {
- ReactCurrentBatchConfig$1.transition = prevTransition;
- }
- }, [value]);
- return prevValue;
- }
-
- function updateDeferredValue(value) {
- var _updateState = updateState(),
- prevValue = _updateState[0],
- setValue = _updateState[1];
-
- updateEffect(function () {
- var prevTransition = ReactCurrentBatchConfig$1.transition;
- ReactCurrentBatchConfig$1.transition = 1;
-
- try {
- setValue(value);
- } finally {
- ReactCurrentBatchConfig$1.transition = prevTransition;
- }
- }, [value]);
- return prevValue;
- }
-
- function rerenderDeferredValue(value) {
- var _rerenderState = rerenderState(),
- prevValue = _rerenderState[0],
- setValue = _rerenderState[1];
-
- updateEffect(function () {
- var prevTransition = ReactCurrentBatchConfig$1.transition;
- ReactCurrentBatchConfig$1.transition = 1;
-
- try {
- setValue(value);
- } finally {
- ReactCurrentBatchConfig$1.transition = prevTransition;
- }
- }, [value]);
- return prevValue;
- }
-
- function startTransition(setPending, callback) {
- var priorityLevel = getCurrentPriorityLevel();
-
- {
- runWithPriority$1(priorityLevel < UserBlockingPriority$2 ? UserBlockingPriority$2 : priorityLevel, function () {
- setPending(true);
- });
- runWithPriority$1(priorityLevel > NormalPriority$1 ? NormalPriority$1 : priorityLevel, function () {
- var prevTransition = ReactCurrentBatchConfig$1.transition;
- ReactCurrentBatchConfig$1.transition = 1;
-
- try {
- setPending(false);
- callback();
- } finally {
- ReactCurrentBatchConfig$1.transition = prevTransition;
- }
- });
- }
- }
-
- function mountTransition() {
- var _mountState2 = mountState(false),
- isPending = _mountState2[0],
- setPending = _mountState2[1]; // The `start` method can be stored on a ref, since `setPending`
- // never changes.
-
-
- var start = startTransition.bind(null, setPending);
- mountRef(start);
- return [start, isPending];
- }
-
- function updateTransition() {
- var _updateState2 = updateState(),
- isPending = _updateState2[0];
-
- var startRef = updateRef();
- var start = startRef.current;
- return [start, isPending];
- }
-
- function rerenderTransition() {
- var _rerenderState2 = rerenderState(),
- isPending = _rerenderState2[0];
-
- var startRef = updateRef();
- var start = startRef.current;
- return [start, isPending];
- }
-
- var isUpdatingOpaqueValueInRenderPhase = false;
- function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
- {
- return isUpdatingOpaqueValueInRenderPhase;
- }
- }
-
- function warnOnOpaqueIdentifierAccessInDEV(fiber) {
- {
- // TODO: Should warn in effects and callbacks, too
- var name = getComponentName(fiber.type) || 'Unknown';
-
- if (getIsRendering() && !didWarnAboutUseOpaqueIdentifier[name]) {
- error('The object passed back from useOpaqueIdentifier is meant to be ' + 'passed through to attributes only. Do not read the ' + 'value directly.');
-
- didWarnAboutUseOpaqueIdentifier[name] = true;
- }
- }
- }
-
- function mountOpaqueIdentifier() {
- var makeId = makeClientIdInDEV.bind(null, warnOnOpaqueIdentifierAccessInDEV.bind(null, currentlyRenderingFiber$1)) ;
-
- if (getIsHydrating()) {
- var didUpgrade = false;
- var fiber = currentlyRenderingFiber$1;
-
- var readValue = function () {
- if (!didUpgrade) {
- // Only upgrade once. This works even inside the render phase because
- // the update is added to a shared queue, which outlasts the
- // in-progress render.
- didUpgrade = true;
-
- {
- isUpdatingOpaqueValueInRenderPhase = true;
- setId(makeId());
- isUpdatingOpaqueValueInRenderPhase = false;
- warnOnOpaqueIdentifierAccessInDEV(fiber);
- }
- }
-
- {
- {
- throw Error( "The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly." );
- }
- }
- };
-
- var id = makeOpaqueHydratingObject(readValue);
- var setId = mountState(id)[1];
-
- if ((currentlyRenderingFiber$1.mode & BlockingMode) === NoMode) {
- currentlyRenderingFiber$1.flags |= Update | Passive;
- pushEffect(HasEffect | Passive$1, function () {
- setId(makeId());
- }, undefined, null);
- }
-
- return id;
- } else {
- var _id = makeId();
-
- mountState(_id);
- return _id;
- }
- }
-
- function updateOpaqueIdentifier() {
- var id = updateState()[0];
- return id;
- }
-
- function rerenderOpaqueIdentifier() {
- var id = rerenderState()[0];
- return id;
- }
-
- function dispatchAction(fiber, queue, action) {
- {
- if (typeof arguments[3] === 'function') {
- error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
- }
- }
-
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- var update = {
- lane: lane,
- action: action,
- eagerReducer: null,
- eagerState: null,
- next: null
- }; // Append the update to the end of the list.
-
- var pending = queue.pending;
-
- if (pending === null) {
- // This is the first update. Create a circular list.
- update.next = update;
- } else {
- update.next = pending.next;
- pending.next = update;
- }
-
- queue.pending = update;
- var alternate = fiber.alternate;
-
- if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
- // This is a render phase update. Stash it in a lazily-created map of
- // queue -> linked list of updates. After this render pass, we'll restart
- // and apply the stashed updates on top of the work-in-progress hook.
- didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
- } else {
- if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
- // The queue is currently empty, which means we can eagerly compute the
- // next state before entering the render phase. If the new state is the
- // same as the current state, we may be able to bail out entirely.
- var lastRenderedReducer = queue.lastRenderedReducer;
-
- if (lastRenderedReducer !== null) {
- var prevDispatcher;
-
- {
- prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
- }
-
- try {
- var currentState = queue.lastRenderedState;
- var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
- // it, on the update object. If the reducer hasn't changed by the
- // time we enter the render phase, then the eager state can be used
- // without calling the reducer again.
-
- update.eagerReducer = lastRenderedReducer;
- update.eagerState = eagerState;
-
- if (objectIs(eagerState, currentState)) {
- // Fast path. We can bail out without scheduling React to re-render.
- // It's still possible that we'll need to rebase this update later,
- // if the component re-renders for a different reason and by that
- // time the reducer has changed.
- return;
- }
- } catch (error) {// Suppress the error. It will throw again in the render phase.
- } finally {
- {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- }
- }
- }
-
- {
- // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
- warnIfNotScopedWithMatchingAct(fiber);
- warnIfNotCurrentlyActingUpdatesInDev(fiber);
- }
- }
-
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- }
- }
-
- var ContextOnlyDispatcher = {
- readContext: readContext,
- useCallback: throwInvalidHookError,
- useContext: throwInvalidHookError,
- useEffect: throwInvalidHookError,
- useImperativeHandle: throwInvalidHookError,
- useLayoutEffect: throwInvalidHookError,
- useMemo: throwInvalidHookError,
- useReducer: throwInvalidHookError,
- useRef: throwInvalidHookError,
- useState: throwInvalidHookError,
- useDebugValue: throwInvalidHookError,
- useDeferredValue: throwInvalidHookError,
- useTransition: throwInvalidHookError,
- useMutableSource: throwInvalidHookError,
- useOpaqueIdentifier: throwInvalidHookError,
- unstable_isNewReconciler: enableNewReconciler
- };
- var HooksDispatcherOnMountInDEV = null;
- var HooksDispatcherOnMountWithHookTypesInDEV = null;
- var HooksDispatcherOnUpdateInDEV = null;
- var HooksDispatcherOnRerenderInDEV = null;
- var InvalidNestedHooksDispatcherOnMountInDEV = null;
- var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
- var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
-
- {
- var warnInvalidContextAccess = function () {
- error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
- };
-
- var warnInvalidHookAccess = function () {
- error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
- };
-
- HooksDispatcherOnMountInDEV = {
- readContext: function (context, observedBits) {
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- mountHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- mountHookTypesDev();
- checkDepsAreArrayDev(deps);
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- mountHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- mountHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- mountHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- mountHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- mountHookTypesDev();
- return mountMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- mountHookTypesDev();
- return mountOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- HooksDispatcherOnMountWithHookTypesInDEV = {
- readContext: function (context, observedBits) {
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return mountCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return mountImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return mountMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- updateHookTypesDev();
- return mountOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- HooksDispatcherOnUpdateInDEV = {
- readContext: function (context, observedBits) {
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return updateDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return updateTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return updateMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- updateHookTypesDev();
- return updateOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- HooksDispatcherOnRerenderInDEV = {
- readContext: function (context, observedBits) {
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- updateHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return rerenderReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
-
- try {
- return rerenderState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- updateHookTypesDev();
- return rerenderDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- updateHookTypesDev();
- return rerenderTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- updateHookTypesDev();
- return updateMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- updateHookTypesDev();
- return rerenderOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- InvalidNestedHooksDispatcherOnMountInDEV = {
- readContext: function (context, observedBits) {
- warnInvalidContextAccess();
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountRef(initialValue);
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- mountHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
-
- try {
- return mountState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- warnInvalidHookAccess();
- mountHookTypesDev();
- return mountOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- InvalidNestedHooksDispatcherOnUpdateInDEV = {
- readContext: function (context, observedBits) {
- warnInvalidContextAccess();
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- InvalidNestedHooksDispatcherOnRerenderInDEV = {
- readContext: function (context, observedBits) {
- warnInvalidContextAccess();
- return readContext(context, observedBits);
- },
- useCallback: function (callback, deps) {
- currentHookNameInDev = 'useCallback';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateCallback(callback, deps);
- },
- useContext: function (context, observedBits) {
- currentHookNameInDev = 'useContext';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return readContext(context, observedBits);
- },
- useEffect: function (create, deps) {
- currentHookNameInDev = 'useEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateEffect(create, deps);
- },
- useImperativeHandle: function (ref, create, deps) {
- currentHookNameInDev = 'useImperativeHandle';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateImperativeHandle(ref, create, deps);
- },
- useLayoutEffect: function (create, deps) {
- currentHookNameInDev = 'useLayoutEffect';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateLayoutEffect(create, deps);
- },
- useMemo: function (create, deps) {
- currentHookNameInDev = 'useMemo';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return updateMemo(create, deps);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useReducer: function (reducer, initialArg, init) {
- currentHookNameInDev = 'useReducer';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return rerenderReducer(reducer, initialArg, init);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useRef: function (initialValue) {
- currentHookNameInDev = 'useRef';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateRef();
- },
- useState: function (initialState) {
- currentHookNameInDev = 'useState';
- warnInvalidHookAccess();
- updateHookTypesDev();
- var prevDispatcher = ReactCurrentDispatcher$1.current;
- ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
-
- try {
- return rerenderState(initialState);
- } finally {
- ReactCurrentDispatcher$1.current = prevDispatcher;
- }
- },
- useDebugValue: function (value, formatterFn) {
- currentHookNameInDev = 'useDebugValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateDebugValue();
- },
- useDeferredValue: function (value) {
- currentHookNameInDev = 'useDeferredValue';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return rerenderDeferredValue(value);
- },
- useTransition: function () {
- currentHookNameInDev = 'useTransition';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return rerenderTransition();
- },
- useMutableSource: function (source, getSnapshot, subscribe) {
- currentHookNameInDev = 'useMutableSource';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return updateMutableSource(source, getSnapshot, subscribe);
- },
- useOpaqueIdentifier: function () {
- currentHookNameInDev = 'useOpaqueIdentifier';
- warnInvalidHookAccess();
- updateHookTypesDev();
- return rerenderOpaqueIdentifier();
- },
- unstable_isNewReconciler: enableNewReconciler
- };
- }
-
- var now$1 = unstable_now;
- var commitTime = 0;
- var profilerStartTime = -1;
-
- function getCommitTime() {
- return commitTime;
- }
-
- function recordCommitTime() {
-
- commitTime = now$1();
- }
-
- function startProfilerTimer(fiber) {
-
- profilerStartTime = now$1();
-
- if (fiber.actualStartTime < 0) {
- fiber.actualStartTime = now$1();
- }
- }
-
- function stopProfilerTimerIfRunning(fiber) {
-
- profilerStartTime = -1;
- }
-
- function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
-
- if (profilerStartTime >= 0) {
- var elapsedTime = now$1() - profilerStartTime;
- fiber.actualDuration += elapsedTime;
-
- if (overrideBaseTime) {
- fiber.selfBaseDuration = elapsedTime;
- }
-
- profilerStartTime = -1;
- }
- }
-
- function transferActualDuration(fiber) {
- // Transfer time spent rendering these children so we don't lose it
- // after we rerender. This is used as a helper in special cases
- // where we should count the work of multiple passes.
- var child = fiber.child;
-
- while (child) {
- fiber.actualDuration += child.actualDuration;
- child = child.sibling;
- }
- }
-
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
- var didReceiveUpdate = false;
- var didWarnAboutBadClass;
- var didWarnAboutModulePatternComponent;
- var didWarnAboutContextTypeOnFunctionComponent;
- var didWarnAboutGetDerivedStateOnFunctionComponent;
- var didWarnAboutFunctionRefs;
- var didWarnAboutReassigningProps;
- var didWarnAboutRevealOrder;
- var didWarnAboutTailOptions;
-
- {
- didWarnAboutBadClass = {};
- didWarnAboutModulePatternComponent = {};
- didWarnAboutContextTypeOnFunctionComponent = {};
- didWarnAboutGetDerivedStateOnFunctionComponent = {};
- didWarnAboutFunctionRefs = {};
- didWarnAboutReassigningProps = false;
- didWarnAboutRevealOrder = {};
- didWarnAboutTailOptions = {};
- }
-
- function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
- if (current === null) {
- // If this is a fresh new component that hasn't been rendered yet, we
- // won't update its child set by applying minimal side-effects. Instead,
- // we will add them all to the child before it gets rendered. That means
- // we can optimize this reconciliation pass by not tracking side-effects.
- workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
- } else {
- // If the current child is the same as the work in progress, it means that
- // we haven't yet started any work on these children. Therefore, we use
- // the clone algorithm to create a copy of all the current children.
- // If we had any progressed work already, that is invalid at this point so
- // let's throw it out.
- workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
- }
- }
-
- function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {
- // This function is fork of reconcileChildren. It's used in cases where we
- // want to reconcile without matching against the existing set. This has the
- // effect of all current children being unmounted; even if the type and key
- // are the same, the old child is unmounted and a new child is created.
- //
- // To do this, we're going to go through the reconcile algorithm twice. In
- // the first pass, we schedule a deletion for all the current children by
- // passing null.
- workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we
- // pass null in place of where we usually pass the current child set. This has
- // the effect of remounting all children regardless of whether their
- // identities match.
-
- workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
- }
-
- function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
- // TODO: current can be non-null here even if the component
- // hasn't yet mounted. This happens after the first render suspends.
- // We'll need to figure out if this is fine or can cause issues.
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentName(Component));
- }
- }
- }
-
- var render = Component.render;
- var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
-
- var nextChildren;
- prepareToReadContext(workInProgress, renderLanes);
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
-
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
- } finally {
- reenableLogs();
- }
- }
-
- setIsRendering(false);
- }
-
- if (current !== null && !didReceiveUpdate) {
- bailoutHooks(current, workInProgress, renderLanes);
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
- if (current === null) {
- var type = Component.type;
-
- if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
- Component.defaultProps === undefined) {
- var resolvedType = type;
-
- {
- resolvedType = resolveFunctionForHotReloading(type);
- } // If this is a plain function component without default props,
- // and with only the default shallow comparison, we upgrade it
- // to a SimpleMemoComponent to allow fast path updates.
-
-
- workInProgress.tag = SimpleMemoComponent;
- workInProgress.type = resolvedType;
-
- {
- validateFunctionComponentInDev(workInProgress, type);
- }
-
- return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateLanes, renderLanes);
- }
-
- {
- var innerPropTypes = type.propTypes;
-
- if (innerPropTypes) {
- // Inner memo component props aren't currently validated in createElement.
- // We could move it there, but we'd still need this for lazy code path.
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentName(type));
- }
- }
-
- var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
- child.ref = workInProgress.ref;
- child.return = workInProgress;
- workInProgress.child = child;
- return child;
- }
-
- {
- var _type = Component.type;
- var _innerPropTypes = _type.propTypes;
-
- if (_innerPropTypes) {
- // Inner memo component props aren't currently validated in createElement.
- // We could move it there, but we'd still need this for lazy code path.
- checkPropTypes(_innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentName(_type));
- }
- }
-
- var currentChild = current.child; // This is always exactly one child
-
- if (!includesSomeLane(updateLanes, renderLanes)) {
- // This will be the props with resolved defaultProps,
- // unlike current.memoizedProps which will be the unresolved ones.
- var prevProps = currentChild.memoizedProps; // Default to shallow comparison
-
- var compare = Component.compare;
- compare = compare !== null ? compare : shallowEqual;
-
- if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- var newChild = createWorkInProgress(currentChild, nextProps);
- newChild.ref = workInProgress.ref;
- newChild.return = workInProgress;
- workInProgress.child = newChild;
- return newChild;
- }
-
- function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
- // TODO: current can be non-null here even if the component
- // hasn't yet mounted. This happens when the inner render suspends.
- // We'll need to figure out if this is fine or can cause issues.
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var outerMemoType = workInProgress.elementType;
-
- if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
- // We warn when you define propTypes on lazy()
- // so let's just skip over it to find memo() outer wrapper.
- // Inner props for memo are validated later.
- var lazyComponent = outerMemoType;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- outerMemoType = init(payload);
- } catch (x) {
- outerMemoType = null;
- } // Inner propTypes will be validated in the function component path.
-
-
- var outerPropTypes = outerMemoType && outerMemoType.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
- 'prop', getComponentName(outerMemoType));
- }
- }
- }
- }
-
- if (current !== null) {
- var prevProps = current.memoizedProps;
-
- if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
- workInProgress.type === current.type )) {
- didReceiveUpdate = false;
-
- if (!includesSomeLane(renderLanes, updateLanes)) {
- // The pending lanes were cleared at the beginning of beginWork. We're
- // about to bail out, but there might be other lanes that weren't
- // included in the current render. Usually, the priority level of the
- // remaining updates is accumlated during the evaluation of the
- // component (i.e. when processing the update queue). But since since
- // we're bailing out early *without* evaluating the component, we need
- // to account for it here, too. Reset to the value of the current fiber.
- // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
- // because a MemoComponent fiber does not have hooks or an update queue;
- // rather, it wraps around an inner component, which may or may not
- // contains hooks.
- // TODO: Move the reset at in beginWork out of the common path so that
- // this is no longer necessary.
- workInProgress.lanes = current.lanes;
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
- // This is a special case that only exists for legacy mode.
- // See https://github.com/facebook/react/pull/19216.
- didReceiveUpdate = true;
- }
- }
- }
-
- return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
- }
-
- function updateOffscreenComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps;
- var nextChildren = nextProps.children;
- var prevState = current !== null ? current.memoizedState : null;
-
- if (nextProps.mode === 'hidden' || nextProps.mode === 'unstable-defer-without-hiding') {
- if ((workInProgress.mode & ConcurrentMode) === NoMode) {
- // In legacy sync mode, don't defer the subtree. Render it now.
- // TODO: Figure out what we should do in Blocking mode.
- var nextState = {
- baseLanes: NoLanes
- };
- workInProgress.memoizedState = nextState;
- pushRenderLanes(workInProgress, renderLanes);
- } else if (!includesSomeLane(renderLanes, OffscreenLane)) {
- var nextBaseLanes;
-
- if (prevState !== null) {
- var prevBaseLanes = prevState.baseLanes;
- nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);
- } else {
- nextBaseLanes = renderLanes;
- } // Schedule this fiber to re-render at offscreen priority. Then bailout.
-
-
- {
- markSpawnedWork(OffscreenLane);
- }
-
- workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);
- var _nextState = {
- baseLanes: nextBaseLanes
- };
- workInProgress.memoizedState = _nextState; // We're about to bail out, but we need to push this to the stack anyway
- // to avoid a push/pop misalignment.
-
- pushRenderLanes(workInProgress, nextBaseLanes);
- return null;
- } else {
- // Rendering at offscreen, so we can clear the base lanes.
- var _nextState2 = {
- baseLanes: NoLanes
- };
- workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.
-
- var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;
- pushRenderLanes(workInProgress, subtreeRenderLanes);
- }
- } else {
- var _subtreeRenderLanes;
-
- if (prevState !== null) {
- _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); // Since we're not hidden anymore, reset the state
-
- workInProgress.memoizedState = null;
- } else {
- // We weren't previously hidden, and we still aren't, so there's nothing
- // special to do. Need to push to the stack regardless, though, to avoid
- // a push/pop misalignment.
- _subtreeRenderLanes = renderLanes;
- }
-
- pushRenderLanes(workInProgress, _subtreeRenderLanes);
- }
-
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- } // Note: These happen to have identical begin phases, for now. We shouldn't hold
- // ourselves to this constraint, though. If the behavior diverges, we should
- // fork the function.
-
-
- var updateLegacyHiddenComponent = updateOffscreenComponent;
-
- function updateFragment(current, workInProgress, renderLanes) {
- var nextChildren = workInProgress.pendingProps;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateMode(current, workInProgress, renderLanes) {
- var nextChildren = workInProgress.pendingProps.children;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateProfiler(current, workInProgress, renderLanes) {
- {
- workInProgress.flags |= Update; // Reset effect durations for the next eventual effect phase.
- // These are reset during render to allow the DevTools commit hook a chance to read them,
-
- var stateNode = workInProgress.stateNode;
- stateNode.effectDuration = 0;
- stateNode.passiveEffectDuration = 0;
- }
-
- var nextProps = workInProgress.pendingProps;
- var nextChildren = nextProps.children;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function markRef(current, workInProgress) {
- var ref = workInProgress.ref;
-
- if (current === null && ref !== null || current !== null && current.ref !== ref) {
- // Schedule a Ref effect
- workInProgress.flags |= Ref;
- }
- }
-
- function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentName(Component));
- }
- }
- }
-
- var context;
-
- {
- var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
- context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- var nextChildren;
- prepareToReadContext(workInProgress, renderLanes);
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
-
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
- } finally {
- reenableLogs();
- }
- }
-
- setIsRendering(false);
- }
-
- if (current !== null && !didReceiveUpdate) {
- bailoutHooks(current, workInProgress, renderLanes);
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
- {
- if (workInProgress.type !== workInProgress.elementType) {
- // Lazy component props can't be validated in createElement
- // because they're only guaranteed to be resolved here.
- var innerPropTypes = Component.propTypes;
-
- if (innerPropTypes) {
- checkPropTypes(innerPropTypes, nextProps, // Resolved props
- 'prop', getComponentName(Component));
- }
- }
- } // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
-
- var hasContext;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var instance = workInProgress.stateNode;
- var shouldUpdate;
-
- if (instance === null) {
- if (current !== null) {
- // A class component without an instance only mounts if it suspended
- // inside a non-concurrent tree, in an inconsistent state. We want to
- // treat it like a new mount, even though an empty version of it already
- // committed. Disconnect the alternate pointers.
- current.alternate = null;
- workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
-
- workInProgress.flags |= Placement;
- } // In the initial pass we might need to construct the instance.
-
-
- constructClassInstance(workInProgress, Component, nextProps);
- mountClassInstance(workInProgress, Component, nextProps, renderLanes);
- shouldUpdate = true;
- } else if (current === null) {
- // In a resume, we'll already have an instance we can reuse.
- shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);
- } else {
- shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);
- }
-
- var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);
-
- {
- var inst = workInProgress.stateNode;
-
- if (shouldUpdate && inst.props !== nextProps) {
- if (!didWarnAboutReassigningProps) {
- error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component');
- }
-
- didWarnAboutReassigningProps = true;
- }
- }
-
- return nextUnitOfWork;
- }
-
- function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
- // Refs should update even if shouldComponentUpdate returns false
- markRef(current, workInProgress);
- var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;
-
- if (!shouldUpdate && !didCaptureError) {
- // Context providers should defer to sCU for rendering
- if (hasContext) {
- invalidateContextProvider(workInProgress, Component, false);
- }
-
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- var instance = workInProgress.stateNode; // Rerender
-
- ReactCurrentOwner$1.current = workInProgress;
- var nextChildren;
-
- if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
- // If we captured an error, but getDerivedStateFromError is not defined,
- // unmount all the children. componentDidCatch will schedule an update to
- // re-render a fallback. This is temporary until we migrate everyone to
- // the new API.
- // TODO: Warn in a future release.
- nextChildren = null;
-
- {
- stopProfilerTimerIfRunning();
- }
- } else {
- {
- setIsRendering(true);
- nextChildren = instance.render();
-
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- instance.render();
- } finally {
- reenableLogs();
- }
- }
-
- setIsRendering(false);
- }
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
-
- if (current !== null && didCaptureError) {
- // If we're recovering from an error, reconcile without reusing any of
- // the existing children. Conceptually, the normal children and the children
- // that are shown on error are two different sets, so we shouldn't reuse
- // normal children even if their identities match.
- forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);
- } else {
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- } // Memoize state using the values we just used to render.
- // TODO: Restructure so we never read values from the instance.
-
-
- workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
-
- if (hasContext) {
- invalidateContextProvider(workInProgress, Component, true);
- }
-
- return workInProgress.child;
- }
-
- function pushHostRootContext(workInProgress) {
- var root = workInProgress.stateNode;
-
- if (root.pendingContext) {
- pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
- } else if (root.context) {
- // Should always be set
- pushTopLevelContextObject(workInProgress, root.context, false);
- }
-
- pushHostContainer(workInProgress, root.containerInfo);
- }
-
- function updateHostRoot(current, workInProgress, renderLanes) {
- pushHostRootContext(workInProgress);
- var updateQueue = workInProgress.updateQueue;
-
- if (!(current !== null && updateQueue !== null)) {
- {
- throw Error( "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var nextProps = workInProgress.pendingProps;
- var prevState = workInProgress.memoizedState;
- var prevChildren = prevState !== null ? prevState.element : null;
- cloneUpdateQueue(current, workInProgress);
- processUpdateQueue(workInProgress, nextProps, null, renderLanes);
- var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
- // being called "element".
-
- var nextChildren = nextState.element;
-
- if (nextChildren === prevChildren) {
- resetHydrationState();
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
-
- var root = workInProgress.stateNode;
-
- if (root.hydrate && enterHydrationState(workInProgress)) {
- // If we don't have any current children this might be the first pass.
- // We always try to hydrate. If this isn't a hydration pass there won't
- // be any children to hydrate which is effectively the same thing as
- // not hydrating.
- {
- var mutableSourceEagerHydrationData = root.mutableSourceEagerHydrationData;
-
- if (mutableSourceEagerHydrationData != null) {
- for (var i = 0; i < mutableSourceEagerHydrationData.length; i += 2) {
- var mutableSource = mutableSourceEagerHydrationData[i];
- var version = mutableSourceEagerHydrationData[i + 1];
- setWorkInProgressVersion(mutableSource, version);
- }
- }
- }
-
- var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
- workInProgress.child = child;
- var node = child;
-
- while (node) {
- // Mark each child as hydrating. This is a fast path to know whether this
- // tree is part of a hydrating tree. This is used to determine if a child
- // node has fully mounted yet, and for scheduling event replaying.
- // Conceptually this is similar to Placement in that a new subtree is
- // inserted into the React tree here. It just happens to not need DOM
- // mutations because it already exists.
- node.flags = node.flags & ~Placement | Hydrating;
- node = node.sibling;
- }
- } else {
- // Otherwise reset hydration state in case we aborted and resumed another
- // root.
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- resetHydrationState();
- }
-
- return workInProgress.child;
- }
-
- function updateHostComponent(current, workInProgress, renderLanes) {
- pushHostContext(workInProgress);
-
- if (current === null) {
- tryToClaimNextHydratableInstance(workInProgress);
- }
-
- var type = workInProgress.type;
- var nextProps = workInProgress.pendingProps;
- var prevProps = current !== null ? current.memoizedProps : null;
- var nextChildren = nextProps.children;
- var isDirectTextChild = shouldSetTextContent(type, nextProps);
-
- if (isDirectTextChild) {
- // We special case a direct text child of a host node. This is a common
- // case. We won't handle it as a reified child. We will instead handle
- // this in the host environment that also has access to this prop. That
- // avoids allocating another HostText fiber and traversing it.
- nextChildren = null;
- } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
- // If we're switching from a direct text child to a normal child, or to
- // empty, we need to schedule the text content to be reset.
- workInProgress.flags |= ContentReset;
- }
-
- markRef(current, workInProgress);
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- return workInProgress.child;
- }
-
- function updateHostText(current, workInProgress) {
- if (current === null) {
- tryToClaimNextHydratableInstance(workInProgress);
- } // Nothing to do here. This is terminal. We'll do the completion step
- // immediately after.
-
-
- return null;
- }
-
- function mountLazyComponent(_current, workInProgress, elementType, updateLanes, renderLanes) {
- if (_current !== null) {
- // A lazy component only mounts if it suspended inside a non-
- // concurrent tree, in an inconsistent state. We want to treat it like
- // a new mount, even though an empty version of it already committed.
- // Disconnect the alternate pointers.
- _current.alternate = null;
- workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
-
- workInProgress.flags |= Placement;
- }
-
- var props = workInProgress.pendingProps;
- var lazyComponent = elementType;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
- var Component = init(payload); // Store the unwrapped component in the type.
-
- workInProgress.type = Component;
- var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
- var resolvedProps = resolveDefaultProps(Component, props);
- var child;
-
- switch (resolvedTag) {
- case FunctionComponent:
- {
- {
- validateFunctionComponentInDev(workInProgress, Component);
- workInProgress.type = Component = resolveFunctionForHotReloading(Component);
- }
-
- child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case ClassComponent:
- {
- {
- workInProgress.type = Component = resolveClassForHotReloading(Component);
- }
-
- child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case ForwardRef:
- {
- {
- workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
- }
-
- child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
- return child;
- }
-
- case MemoComponent:
- {
- {
- if (workInProgress.type !== workInProgress.elementType) {
- var outerPropTypes = Component.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
- 'prop', getComponentName(Component));
- }
- }
- }
-
- child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
- updateLanes, renderLanes);
- return child;
- }
- }
-
- var hint = '';
-
- {
- if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
- hint = ' Did you wrap a component in React.lazy() more than once?';
- }
- } // This message intentionally doesn't mention ForwardRef or MemoComponent
- // because the fact that it's a separate type of work is an
- // implementation detail.
-
-
- {
- {
- throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
- }
- }
- }
-
- function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {
- if (_current !== null) {
- // An incomplete component only mounts if it suspended inside a non-
- // concurrent tree, in an inconsistent state. We want to treat it like
- // a new mount, even though an empty version of it already committed.
- // Disconnect the alternate pointers.
- _current.alternate = null;
- workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
-
- workInProgress.flags |= Placement;
- } // Promote the fiber to a class and try rendering again.
-
-
- workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
- // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
- var hasContext;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- constructClassInstance(workInProgress, Component, nextProps);
- mountClassInstance(workInProgress, Component, nextProps, renderLanes);
- return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
- }
-
- function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {
- if (_current !== null) {
- // An indeterminate component only mounts if it suspended inside a non-
- // concurrent tree, in an inconsistent state. We want to treat it like
- // a new mount, even though an empty version of it already committed.
- // Disconnect the alternate pointers.
- _current.alternate = null;
- workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
-
- workInProgress.flags |= Placement;
- }
-
- var props = workInProgress.pendingProps;
- var context;
-
- {
- var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
- context = getMaskedContext(workInProgress, unmaskedContext);
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var value;
-
- {
- if (Component.prototype && typeof Component.prototype.render === 'function') {
- var componentName = getComponentName(Component) || 'Unknown';
-
- if (!didWarnAboutBadClass[componentName]) {
- error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
-
- didWarnAboutBadClass[componentName] = true;
- }
- }
-
- if (workInProgress.mode & StrictMode) {
- ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
- }
-
- setIsRendering(true);
- ReactCurrentOwner$1.current = workInProgress;
- value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
- setIsRendering(false);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
-
- {
- // Support for module components is deprecated and is removed behind a flag.
- // Whether or not it would crash later, we want to show a good message in DEV first.
- if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
- var _componentName = getComponentName(Component) || 'Unknown';
-
- if (!didWarnAboutModulePatternComponent[_componentName]) {
- error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
-
- didWarnAboutModulePatternComponent[_componentName] = true;
- }
- }
- }
-
- if ( // Run these checks in production only if the flag is off.
- // Eventually we'll delete this branch altogether.
- typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
- {
- var _componentName2 = getComponentName(Component) || 'Unknown';
-
- if (!didWarnAboutModulePatternComponent[_componentName2]) {
- error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);
-
- didWarnAboutModulePatternComponent[_componentName2] = true;
- }
- } // Proceed under the assumption that this is a class instance
-
-
- workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
-
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
- // During mounting we don't know the child context yet as the instance doesn't exist.
- // We will invalidate the child context in finishClassComponent() right after rendering.
-
- var hasContext = false;
-
- if (isContextProvider(Component)) {
- hasContext = true;
- pushContextProvider(workInProgress);
- } else {
- hasContext = false;
- }
-
- workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
- initializeUpdateQueue(workInProgress);
- var getDerivedStateFromProps = Component.getDerivedStateFromProps;
-
- if (typeof getDerivedStateFromProps === 'function') {
- applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
- }
-
- adoptClassInstance(workInProgress, value);
- mountClassInstance(workInProgress, Component, props, renderLanes);
- return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
- } else {
- // Proceed under the assumption that this is a function component
- workInProgress.tag = FunctionComponent;
-
- {
-
- if ( workInProgress.mode & StrictMode) {
- disableLogs();
-
- try {
- value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
- } finally {
- reenableLogs();
- }
- }
- }
-
- reconcileChildren(null, workInProgress, value, renderLanes);
-
- {
- validateFunctionComponentInDev(workInProgress, Component);
- }
-
- return workInProgress.child;
- }
- }
-
- function validateFunctionComponentInDev(workInProgress, Component) {
- {
- if (Component) {
- if (Component.childContextTypes) {
- error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
- }
- }
-
- if (workInProgress.ref !== null) {
- var info = '';
- var ownerName = getCurrentFiberOwnerNameInDevOrNull();
-
- if (ownerName) {
- info += '\n\nCheck the render method of `' + ownerName + '`.';
- }
-
- var warningKey = ownerName || workInProgress._debugID || '';
- var debugSource = workInProgress._debugSource;
-
- if (debugSource) {
- warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
- }
-
- if (!didWarnAboutFunctionRefs[warningKey]) {
- didWarnAboutFunctionRefs[warningKey] = true;
-
- error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
- }
- }
-
- if (typeof Component.getDerivedStateFromProps === 'function') {
- var _componentName3 = getComponentName(Component) || 'Unknown';
-
- if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
- error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);
-
- didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
- }
- }
-
- if (typeof Component.contextType === 'object' && Component.contextType !== null) {
- var _componentName4 = getComponentName(Component) || 'Unknown';
-
- if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
- error('%s: Function components do not support contextType.', _componentName4);
-
- didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
- }
- }
- }
- }
-
- var SUSPENDED_MARKER = {
- dehydrated: null,
- retryLane: NoLane
- };
-
- function mountSuspenseOffscreenState(renderLanes) {
- return {
- baseLanes: renderLanes
- };
- }
-
- function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
- return {
- baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes)
- };
- } // TODO: Probably should inline this back
-
-
- function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {
- // If we're already showing a fallback, there are cases where we need to
- // remain on that fallback regardless of whether the content has resolved.
- // For example, SuspenseList coordinates when nested content appears.
- if (current !== null) {
- var suspenseState = current.memoizedState;
-
- if (suspenseState === null) {
- // Currently showing content. Don't hide it, even if ForceSuspenseFallack
- // is true. More precise name might be "ForceRemainSuspenseFallback".
- // Note: This is a factoring smell. Can't remain on a fallback if there's
- // no fallback to remain on.
- return false;
- }
- } // Not currently showing content. Consult the Suspense context.
-
-
- return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
- }
-
- function getRemainingWorkInPrimaryTree(current, renderLanes) {
- // TODO: Should not remove render lanes that were pinged during this render
- return removeLanes(current.childLanes, renderLanes);
- }
-
- function updateSuspenseComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
-
- {
- if (shouldSuspend(workInProgress)) {
- workInProgress.flags |= DidCapture;
- }
- }
-
- var suspenseContext = suspenseStackCursor.current;
- var showFallback = false;
- var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;
-
- if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
- // Something in this boundary's subtree already suspended. Switch to
- // rendering the fallback children.
- showFallback = true;
- workInProgress.flags &= ~DidCapture;
- } else {
- // Attempting the main content
- if (current === null || current.memoizedState !== null) {
- // This is a new mount or this boundary is already showing a fallback state.
- // Mark this subtree context as having at least one invisible parent that could
- // handle the fallback state.
- // Boundaries without fallbacks or should be avoided are not considered since
- // they cannot handle preferred fallback states.
- if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
- suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
- }
- }
- }
-
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense
- // boundary's children. This involves some custom reconcilation logic. Two
- // main reasons this is so complicated.
- //
- // First, Legacy Mode has different semantics for backwards compatibility. The
- // primary tree will commit in an inconsistent state, so when we do the
- // second pass to render the fallback, we do some exceedingly, uh, clever
- // hacks to make that not totally break. Like transferring effects and
- // deletions from hidden tree. In Concurrent Mode, it's much simpler,
- // because we bailout on the primary tree completely and leave it in its old
- // state, no effects. Same as what we do for Offscreen (except that
- // Offscreen doesn't have the first render pass).
- //
- // Second is hydration. During hydration, the Suspense fiber has a slightly
- // different layout, where the child points to a dehydrated fragment, which
- // contains the DOM rendered by the server.
- //
- // Third, even if you set all that aside, Suspense is like error boundaries in
- // that we first we try to render one tree, and if that fails, we render again
- // and switch to a different tree. Like a try/catch block. So we have to track
- // which branch we're currently rendering. Ideally we would model this using
- // a stack.
-
- if (current === null) {
- // Initial mount
- // If we're currently hydrating, try to hydrate this boundary.
- // But only if this has a fallback.
- if (nextProps.fallback !== undefined) {
- tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
- }
-
- var nextPrimaryChildren = nextProps.children;
- var nextFallbackChildren = nextProps.fallback;
-
- if (showFallback) {
- var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
- var primaryChildFragment = workInProgress.child;
- primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER;
- return fallbackFragment;
- } else if (typeof nextProps.unstable_expectedLoadTime === 'number') {
- // This is a CPU-bound tree. Skip this tree and show a placeholder to
- // unblock the surrounding content. Then immediately retry after the
- // initial commit.
- var _fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
-
- var _primaryChildFragment = workInProgress.child;
- _primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER; // Since nothing actually suspended, there will nothing to ping this to
- // get it started back up to attempt the next item. While in terms of
- // priority this work has the same priority as this current render, it's
- // not part of the same transition once the transition has committed. If
- // it's sync, we still want to yield so that it can be painted.
- // Conceptually, this is really the same as pinging. We can use any
- // RetryLane even if it's the one currently rendering since we're leaving
- // it behind on this node.
-
- workInProgress.lanes = SomeRetryLane;
-
- {
- markSpawnedWork(SomeRetryLane);
- }
-
- return _fallbackFragment;
- } else {
- return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren, renderLanes);
- }
- } else {
- // This is an update.
- // If the current fiber has a SuspenseState, that means it's already showing
- // a fallback.
- var prevState = current.memoizedState;
-
- if (prevState !== null) {
-
- if (showFallback) {
- var _nextFallbackChildren2 = nextProps.fallback;
- var _nextPrimaryChildren2 = nextProps.children;
-
- var _fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren2, _nextFallbackChildren2, renderLanes);
-
- var _primaryChildFragment3 = workInProgress.child;
- var prevOffscreenState = current.child.memoizedState;
- _primaryChildFragment3.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);
- _primaryChildFragment3.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);
- workInProgress.memoizedState = SUSPENDED_MARKER;
- return _fallbackChildFragment;
- } else {
- var _nextPrimaryChildren3 = nextProps.children;
-
- var _primaryChildFragment4 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren3, renderLanes);
-
- workInProgress.memoizedState = null;
- return _primaryChildFragment4;
- }
- } else {
- // The current tree is not already showing a fallback.
- if (showFallback) {
- // Timed out.
- var _nextFallbackChildren3 = nextProps.fallback;
- var _nextPrimaryChildren4 = nextProps.children;
-
- var _fallbackChildFragment2 = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren4, _nextFallbackChildren3, renderLanes);
-
- var _primaryChildFragment5 = workInProgress.child;
- var _prevOffscreenState = current.child.memoizedState;
- _primaryChildFragment5.memoizedState = _prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(_prevOffscreenState, renderLanes);
- _primaryChildFragment5.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); // Skip the primary children, and continue working on the
- // fallback children.
-
- workInProgress.memoizedState = SUSPENDED_MARKER;
- return _fallbackChildFragment2;
- } else {
- // Still haven't timed out. Continue rendering the children, like we
- // normally do.
- var _nextPrimaryChildren5 = nextProps.children;
-
- var _primaryChildFragment6 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren5, renderLanes);
-
- workInProgress.memoizedState = null;
- return _primaryChildFragment6;
- }
- }
- }
- }
-
- function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
- var mode = workInProgress.mode;
- var primaryChildProps = {
- mode: 'visible',
- children: primaryChildren
- };
- var primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, renderLanes, null);
- primaryChildFragment.return = workInProgress;
- workInProgress.child = primaryChildFragment;
- return primaryChildFragment;
- }
-
- function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
- var mode = workInProgress.mode;
- var progressedPrimaryFragment = workInProgress.child;
- var primaryChildProps = {
- mode: 'hidden',
- children: primaryChildren
- };
- var primaryChildFragment;
- var fallbackChildFragment;
-
- if ((mode & BlockingMode) === NoMode && progressedPrimaryFragment !== null) {
- // In legacy mode, we commit the primary tree as if it successfully
- // completed, even though it's in an inconsistent state.
- primaryChildFragment = progressedPrimaryFragment;
- primaryChildFragment.childLanes = NoLanes;
- primaryChildFragment.pendingProps = primaryChildProps;
-
- if ( workInProgress.mode & ProfileMode) {
- // Reset the durations from the first pass so they aren't included in the
- // final amounts. This seems counterintuitive, since we're intentionally
- // not measuring part of the render phase, but this makes it match what we
- // do in Concurrent Mode.
- primaryChildFragment.actualDuration = 0;
- primaryChildFragment.actualStartTime = -1;
- primaryChildFragment.selfBaseDuration = 0;
- primaryChildFragment.treeBaseDuration = 0;
- }
-
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
- } else {
- primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, NoLanes, null);
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
- }
-
- primaryChildFragment.return = workInProgress;
- fallbackChildFragment.return = workInProgress;
- primaryChildFragment.sibling = fallbackChildFragment;
- workInProgress.child = primaryChildFragment;
- return fallbackChildFragment;
- }
-
- function createWorkInProgressOffscreenFiber(current, offscreenProps) {
- // The props argument to `createWorkInProgress` is `any` typed, so we use this
- // wrapper function to constrain it.
- return createWorkInProgress(current, offscreenProps);
- }
-
- function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
- var currentPrimaryChildFragment = current.child;
- var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
- var primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
- mode: 'visible',
- children: primaryChildren
- });
-
- if ((workInProgress.mode & BlockingMode) === NoMode) {
- primaryChildFragment.lanes = renderLanes;
- }
-
- primaryChildFragment.return = workInProgress;
- primaryChildFragment.sibling = null;
-
- if (currentFallbackChildFragment !== null) {
- // Delete the fallback child fragment
- currentFallbackChildFragment.nextEffect = null;
- currentFallbackChildFragment.flags = Deletion;
- workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChildFragment;
- }
-
- workInProgress.child = primaryChildFragment;
- return primaryChildFragment;
- }
-
- function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
- var mode = workInProgress.mode;
- var currentPrimaryChildFragment = current.child;
- var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
- var primaryChildProps = {
- mode: 'hidden',
- children: primaryChildren
- };
- var primaryChildFragment;
-
- if ( // In legacy mode, we commit the primary tree as if it successfully
- // completed, even though it's in an inconsistent state.
- (mode & BlockingMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was
- // already cloned. In legacy mode, the only case where this isn't true is
- // when DevTools forces us to display a fallback; we skip the first render
- // pass entirely and go straight to rendering the fallback. (In Concurrent
- // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
- // only codepath.)
- workInProgress.child !== currentPrimaryChildFragment) {
- var progressedPrimaryFragment = workInProgress.child;
- primaryChildFragment = progressedPrimaryFragment;
- primaryChildFragment.childLanes = NoLanes;
- primaryChildFragment.pendingProps = primaryChildProps;
-
- if ( workInProgress.mode & ProfileMode) {
- // Reset the durations from the first pass so they aren't included in the
- // final amounts. This seems counterintuitive, since we're intentionally
- // not measuring part of the render phase, but this makes it match what we
- // do in Concurrent Mode.
- primaryChildFragment.actualDuration = 0;
- primaryChildFragment.actualStartTime = -1;
- primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;
- primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;
- } // The fallback fiber was added as a deletion effect during the first pass.
- // However, since we're going to remain on the fallback, we no longer want
- // to delete it. So we need to remove it from the list. Deletions are stored
- // on the same list as effects. We want to keep the effects from the primary
- // tree. So we copy the primary child fragment's effect list, which does not
- // include the fallback deletion effect.
-
-
- var progressedLastEffect = primaryChildFragment.lastEffect;
-
- if (progressedLastEffect !== null) {
- workInProgress.firstEffect = primaryChildFragment.firstEffect;
- workInProgress.lastEffect = progressedLastEffect;
- progressedLastEffect.nextEffect = null;
- } else {
- // TODO: Reset this somewhere else? Lol legacy mode is so weird.
- workInProgress.firstEffect = workInProgress.lastEffect = null;
- }
- } else {
- primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps);
- }
-
- var fallbackChildFragment;
-
- if (currentFallbackChildFragment !== null) {
- fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);
- } else {
- fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already
- // mounted but this is a new fiber.
-
- fallbackChildFragment.flags |= Placement;
- }
-
- fallbackChildFragment.return = workInProgress;
- primaryChildFragment.return = workInProgress;
- primaryChildFragment.sibling = fallbackChildFragment;
- workInProgress.child = primaryChildFragment;
- return fallbackChildFragment;
- }
-
- function scheduleWorkOnFiber(fiber, renderLanes) {
- fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
- }
-
- scheduleWorkOnParentPath(fiber.return, renderLanes);
- }
-
- function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {
- // Mark any Suspense boundaries with fallbacks as having work to do.
- // If they were previously forced into fallbacks, they may now be able
- // to unblock.
- var node = firstChild;
-
- while (node !== null) {
- if (node.tag === SuspenseComponent) {
- var state = node.memoizedState;
-
- if (state !== null) {
- scheduleWorkOnFiber(node, renderLanes);
- }
- } else if (node.tag === SuspenseListComponent) {
- // If the tail is hidden there might not be an Suspense boundaries
- // to schedule work on. In this case we have to schedule it on the
- // list itself.
- // We don't have to traverse to the children of the list since
- // the list will propagate the change when it rerenders.
- scheduleWorkOnFiber(node, renderLanes);
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === workInProgress) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === workInProgress) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- function findLastContentRow(firstChild) {
- // This is going to find the last row among these children that is already
- // showing content on the screen, as opposed to being in fallback state or
- // new. If a row has multiple Suspense boundaries, any of them being in the
- // fallback state, counts as the whole row being in a fallback state.
- // Note that the "rows" will be workInProgress, but any nested children
- // will still be current since we haven't rendered them yet. The mounted
- // order may not be the same as the new order. We use the new order.
- var row = firstChild;
- var lastContentRow = null;
-
- while (row !== null) {
- var currentRow = row.alternate; // New rows can't be content rows.
-
- if (currentRow !== null && findFirstSuspended(currentRow) === null) {
- lastContentRow = row;
- }
-
- row = row.sibling;
- }
-
- return lastContentRow;
- }
-
- function validateRevealOrder(revealOrder) {
- {
- if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
- didWarnAboutRevealOrder[revealOrder] = true;
-
- if (typeof revealOrder === 'string') {
- switch (revealOrder.toLowerCase()) {
- case 'together':
- case 'forwards':
- case 'backwards':
- {
- error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
-
- break;
- }
-
- case 'forward':
- case 'backward':
- {
- error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
-
- break;
- }
-
- default:
- error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
-
- break;
- }
- } else {
- error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
- }
- }
- }
- }
-
- function validateTailOptions(tailMode, revealOrder) {
- {
- if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
- if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
- didWarnAboutTailOptions[tailMode] = true;
-
- error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
- } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
- didWarnAboutTailOptions[tailMode] = true;
-
- error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
- }
- }
- }
- }
-
- function validateSuspenseListNestedChild(childSlot, index) {
- {
- var isArray = Array.isArray(childSlot);
- var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
-
- if (isArray || isIterable) {
- var type = isArray ? 'array' : 'iterable';
-
- error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
-
- return false;
- }
- }
-
- return true;
- }
-
- function validateSuspenseListChildren(children, revealOrder) {
- {
- if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- if (!validateSuspenseListNestedChild(children[i], i)) {
- return;
- }
- }
- } else {
- var iteratorFn = getIteratorFn(children);
-
- if (typeof iteratorFn === 'function') {
- var childrenIterator = iteratorFn.call(children);
-
- if (childrenIterator) {
- var step = childrenIterator.next();
- var _i = 0;
-
- for (; !step.done; step = childrenIterator.next()) {
- if (!validateSuspenseListNestedChild(step.value, _i)) {
- return;
- }
-
- _i++;
- }
- }
- } else {
- error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
- }
- }
- }
- }
- }
-
- function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
- var renderState = workInProgress.memoizedState;
-
- if (renderState === null) {
- workInProgress.memoizedState = {
- isBackwards: isBackwards,
- rendering: null,
- renderingStartTime: 0,
- last: lastContentRow,
- tail: tail,
- tailMode: tailMode,
- lastEffect: lastEffectBeforeRendering
- };
- } else {
- // We can reuse the existing object from previous renders.
- renderState.isBackwards = isBackwards;
- renderState.rendering = null;
- renderState.renderingStartTime = 0;
- renderState.last = lastContentRow;
- renderState.tail = tail;
- renderState.tailMode = tailMode;
- renderState.lastEffect = lastEffectBeforeRendering;
- }
- } // This can end up rendering this component multiple passes.
- // The first pass splits the children fibers into two sets. A head and tail.
- // We first render the head. If anything is in fallback state, we do another
- // pass through beginWork to rerender all children (including the tail) with
- // the force suspend context. If the first render didn't have anything in
- // in fallback state. Then we render each row in the tail one-by-one.
- // That happens in the completeWork phase without going back to beginWork.
-
-
- function updateSuspenseListComponent(current, workInProgress, renderLanes) {
- var nextProps = workInProgress.pendingProps;
- var revealOrder = nextProps.revealOrder;
- var tailMode = nextProps.tail;
- var newChildren = nextProps.children;
- validateRevealOrder(revealOrder);
- validateTailOptions(tailMode, revealOrder);
- validateSuspenseListChildren(newChildren, revealOrder);
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- var suspenseContext = suspenseStackCursor.current;
- var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
-
- if (shouldForceFallback) {
- suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
- workInProgress.flags |= DidCapture;
- } else {
- var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;
-
- if (didSuspendBefore) {
- // If we previously forced a fallback, we need to schedule work
- // on any nested boundaries to let them know to try to render
- // again. This is the same as context updating.
- propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);
- }
-
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- }
-
- pushSuspenseContext(workInProgress, suspenseContext);
-
- if ((workInProgress.mode & BlockingMode) === NoMode) {
- // In legacy mode, SuspenseList doesn't work so we just
- // use make it a noop by treating it as the default revealOrder.
- workInProgress.memoizedState = null;
- } else {
- switch (revealOrder) {
- case 'forwards':
- {
- var lastContentRow = findLastContentRow(workInProgress.child);
- var tail;
-
- if (lastContentRow === null) {
- // The whole list is part of the tail.
- // TODO: We could fast path by just rendering the tail now.
- tail = workInProgress.child;
- workInProgress.child = null;
- } else {
- // Disconnect the tail rows after the content row.
- // We're going to render them separately later.
- tail = lastContentRow.sibling;
- lastContentRow.sibling = null;
- }
-
- initSuspenseListRenderState(workInProgress, false, // isBackwards
- tail, lastContentRow, tailMode, workInProgress.lastEffect);
- break;
- }
-
- case 'backwards':
- {
- // We're going to find the first row that has existing content.
- // At the same time we're going to reverse the list of everything
- // we pass in the meantime. That's going to be our tail in reverse
- // order.
- var _tail = null;
- var row = workInProgress.child;
- workInProgress.child = null;
-
- while (row !== null) {
- var currentRow = row.alternate; // New rows can't be content rows.
-
- if (currentRow !== null && findFirstSuspended(currentRow) === null) {
- // This is the beginning of the main content.
- workInProgress.child = row;
- break;
- }
-
- var nextRow = row.sibling;
- row.sibling = _tail;
- _tail = row;
- row = nextRow;
- } // TODO: If workInProgress.child is null, we can continue on the tail immediately.
-
-
- initSuspenseListRenderState(workInProgress, true, // isBackwards
- _tail, null, // last
- tailMode, workInProgress.lastEffect);
- break;
- }
-
- case 'together':
- {
- initSuspenseListRenderState(workInProgress, false, // isBackwards
- null, // tail
- null, // last
- undefined, workInProgress.lastEffect);
- break;
- }
-
- default:
- {
- // The default reveal order is the same as not having
- // a boundary.
- workInProgress.memoizedState = null;
- }
- }
- }
-
- return workInProgress.child;
- }
-
- function updatePortalComponent(current, workInProgress, renderLanes) {
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
- var nextChildren = workInProgress.pendingProps;
-
- if (current === null) {
- // Portals are special because we don't append the children during mount
- // but at commit. Therefore we need to track insertions which the normal
- // flow doesn't do during mount. This doesn't happen at the root because
- // the root always starts with a "current" with a null child.
- // TODO: Consider unifying this with how the root works.
- workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
- } else {
- reconcileChildren(current, workInProgress, nextChildren, renderLanes);
- }
-
- return workInProgress.child;
- }
-
- var hasWarnedAboutUsingNoValuePropOnContextProvider = false;
-
- function updateContextProvider(current, workInProgress, renderLanes) {
- var providerType = workInProgress.type;
- var context = providerType._context;
- var newProps = workInProgress.pendingProps;
- var oldProps = workInProgress.memoizedProps;
- var newValue = newProps.value;
-
- {
- if (!('value' in newProps)) {
- if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {
- hasWarnedAboutUsingNoValuePropOnContextProvider = true;
-
- error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');
- }
- }
-
- var providerPropTypes = workInProgress.type.propTypes;
-
- if (providerPropTypes) {
- checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');
- }
- }
-
- pushProvider(workInProgress, newValue);
-
- if (oldProps !== null) {
- var oldValue = oldProps.value;
- var changedBits = calculateChangedBits(context, newValue, oldValue);
-
- if (changedBits === 0) {
- // No change. Bailout early if children are the same.
- if (oldProps.children === newProps.children && !hasContextChanged()) {
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- }
- } else {
- // The context value changed. Search for matching consumers and schedule
- // them to update.
- propagateContextChange(workInProgress, context, changedBits, renderLanes);
- }
- }
-
- var newChildren = newProps.children;
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- return workInProgress.child;
- }
-
- var hasWarnedAboutUsingContextAsConsumer = false;
-
- function updateContextConsumer(current, workInProgress, renderLanes) {
- var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
- // DEV mode, we create a separate object for Context.Consumer that acts
- // like a proxy to Context. This proxy object adds unnecessary code in PROD
- // so we use the old behaviour (Context.Consumer references Context) to
- // reduce size and overhead. The separate object references context via
- // a property called "_context", which also gives us the ability to check
- // in DEV mode if this property exists or not and warn if it does not.
-
- {
- if (context._context === undefined) {
- // This may be because it's a Context (rather than a Consumer).
- // Or it may be because it's older React where they're the same thing.
- // We only want to warn if we're sure it's a new React.
- if (context !== context.Consumer) {
- if (!hasWarnedAboutUsingContextAsConsumer) {
- hasWarnedAboutUsingContextAsConsumer = true;
-
- error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
- }
- }
- } else {
- context = context._context;
- }
- }
-
- var newProps = workInProgress.pendingProps;
- var render = newProps.children;
-
- {
- if (typeof render !== 'function') {
- error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
- }
- }
-
- prepareToReadContext(workInProgress, renderLanes);
- var newValue = readContext(context, newProps.unstable_observedBits);
- var newChildren;
-
- {
- ReactCurrentOwner$1.current = workInProgress;
- setIsRendering(true);
- newChildren = render(newValue);
- setIsRendering(false);
- } // React DevTools reads this flag.
-
-
- workInProgress.flags |= PerformedWork;
- reconcileChildren(current, workInProgress, newChildren, renderLanes);
- return workInProgress.child;
- }
-
- function markWorkInProgressReceivedUpdate() {
- didReceiveUpdate = true;
- }
-
- function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
- if (current !== null) {
- // Reuse previous dependencies
- workInProgress.dependencies = current.dependencies;
- }
-
- {
- // Don't update "base" render times for bailouts.
- stopProfilerTimerIfRunning();
- }
-
- markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.
-
- if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {
- // The children don't have any work either. We can skip them.
- // TODO: Once we add back resuming, we should check if the children are
- // a work-in-progress set. If so, we need to transfer their effects.
- return null;
- } else {
- // This fiber doesn't have work, but its subtree does. Clone the child
- // fibers and continue.
- cloneChildFibers(current, workInProgress);
- return workInProgress.child;
- }
- }
-
- function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
- {
- var returnFiber = oldWorkInProgress.return;
-
- if (returnFiber === null) {
- throw new Error('Cannot swap the root fiber.');
- } // Disconnect from the old current.
- // It will get deleted.
-
-
- current.alternate = null;
- oldWorkInProgress.alternate = null; // Connect to the new tree.
-
- newWorkInProgress.index = oldWorkInProgress.index;
- newWorkInProgress.sibling = oldWorkInProgress.sibling;
- newWorkInProgress.return = oldWorkInProgress.return;
- newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
-
- if (oldWorkInProgress === returnFiber.child) {
- returnFiber.child = newWorkInProgress;
- } else {
- var prevSibling = returnFiber.child;
-
- if (prevSibling === null) {
- throw new Error('Expected parent to have a child.');
- }
-
- while (prevSibling.sibling !== oldWorkInProgress) {
- prevSibling = prevSibling.sibling;
-
- if (prevSibling === null) {
- throw new Error('Expected to find the previous sibling.');
- }
- }
-
- prevSibling.sibling = newWorkInProgress;
- } // Delete the old fiber and place the new one.
- // Since the old fiber is disconnected, we have to schedule it manually.
-
-
- var last = returnFiber.lastEffect;
-
- if (last !== null) {
- last.nextEffect = current;
- returnFiber.lastEffect = current;
- } else {
- returnFiber.firstEffect = returnFiber.lastEffect = current;
- }
-
- current.nextEffect = null;
- current.flags = Deletion;
- newWorkInProgress.flags |= Placement; // Restart work from the new fiber.
-
- return newWorkInProgress;
- }
- }
-
- function beginWork(current, workInProgress, renderLanes) {
- var updateLanes = workInProgress.lanes;
-
- {
- if (workInProgress._debugNeedsRemount && current !== null) {
- // This will restart the begin phase with a new fiber.
- return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
- }
- }
-
- if (current !== null) {
- var oldProps = current.memoizedProps;
- var newProps = workInProgress.pendingProps;
-
- if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
- workInProgress.type !== current.type )) {
- // If props or context changed, mark the fiber as having performed work.
- // This may be unset if the props are determined to be equal later (memo).
- didReceiveUpdate = true;
- } else if (!includesSomeLane(renderLanes, updateLanes)) {
- didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
- // the begin phase. There's still some bookkeeping we that needs to be done
- // in this optimized path, mostly pushing stuff onto the stack.
-
- switch (workInProgress.tag) {
- case HostRoot:
- pushHostRootContext(workInProgress);
- resetHydrationState();
- break;
-
- case HostComponent:
- pushHostContext(workInProgress);
- break;
-
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- pushContextProvider(workInProgress);
- }
-
- break;
- }
-
- case HostPortal:
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
- break;
-
- case ContextProvider:
- {
- var newValue = workInProgress.memoizedProps.value;
- pushProvider(workInProgress, newValue);
- break;
- }
-
- case Profiler:
- {
- // Profiler should only call onRender when one of its descendants actually rendered.
- var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);
-
- if (hasChildWork) {
- workInProgress.flags |= Update;
- } // Reset effect durations for the next eventual effect phase.
- // These are reset during render to allow the DevTools commit hook a chance to read them,
-
-
- var stateNode = workInProgress.stateNode;
- stateNode.effectDuration = 0;
- stateNode.passiveEffectDuration = 0;
- }
-
- break;
-
- case SuspenseComponent:
- {
- var state = workInProgress.memoizedState;
-
- if (state !== null) {
- // whether to retry the primary children, or to skip over it and
- // go straight to the fallback. Check the priority of the primary
- // child fragment.
-
-
- var primaryChildFragment = workInProgress.child;
- var primaryChildLanes = primaryChildFragment.childLanes;
-
- if (includesSomeLane(renderLanes, primaryChildLanes)) {
- // The primary children have pending work. Use the normal path
- // to attempt to render the primary children again.
- return updateSuspenseComponent(current, workInProgress, renderLanes);
- } else {
- // The primary child fragment does not have pending work marked
- // on it
- pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
- // priority. Bailout.
-
- var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
-
- if (child !== null) {
- // The fallback children have pending work. Skip over the
- // primary children and work on the fallback.
- return child.sibling;
- } else {
- return null;
- }
- }
- } else {
- pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
- }
-
- break;
- }
-
- case SuspenseListComponent:
- {
- var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;
-
- var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);
-
- if (didSuspendBefore) {
- if (_hasChildWork) {
- // If something was in fallback state last time, and we have all the
- // same children then we're still in progressive loading state.
- // Something might get unblocked by state updates or retries in the
- // tree which will affect the tail. So we need to use the normal
- // path to compute the correct tail.
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
- } // If none of the children had any work, that means that none of
- // them got retried so they'll still be blocked in the same way
- // as before. We can fast bail out.
-
-
- workInProgress.flags |= DidCapture;
- } // If nothing suspended before and we're rendering the same children,
- // then the tail doesn't matter. Anything new that suspends will work
- // in the "together" mode, so we can continue from the state we had.
-
-
- var renderState = workInProgress.memoizedState;
-
- if (renderState !== null) {
- // Reset to the "together" mode in case we've started a different
- // update in the past but didn't complete it.
- renderState.rendering = null;
- renderState.tail = null;
- renderState.lastEffect = null;
- }
-
- pushSuspenseContext(workInProgress, suspenseStackCursor.current);
-
- if (_hasChildWork) {
- break;
- } else {
- // If none of the children had any work, that means that none of
- // them got retried so they'll still be blocked in the same way
- // as before. We can fast bail out.
- return null;
- }
- }
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- {
- // Need to check if the tree still needs to be deferred. This is
- // almost identical to the logic used in the normal update path,
- // so we'll just enter that. The only difference is we'll bail out
- // at the next level instead of this one, because the child props
- // have not changed. Which is fine.
- // TODO: Probably should refactor `beginWork` to split the bailout
- // path from the normal path. I'm tempted to do a labeled break here
- // but I won't :)
- workInProgress.lanes = NoLanes;
- return updateOffscreenComponent(current, workInProgress, renderLanes);
- }
- }
-
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
- } else {
- if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
- // This is a special case that only exists for legacy mode.
- // See https://github.com/facebook/react/pull/19216.
- didReceiveUpdate = true;
- } else {
- // An update was scheduled on this fiber, but there are no new props
- // nor legacy context. Set this to false. If an update queue or context
- // consumer produces a changed value, it will set this to true. Otherwise,
- // the component will assume the children have not changed and bail out.
- didReceiveUpdate = false;
- }
- }
- } else {
- didReceiveUpdate = false;
- } // Before entering the begin phase, clear pending update priority.
- // TODO: This assumes that we're about to evaluate the component and process
- // the update queue. However, there's an exception: SimpleMemoComponent
- // sometimes bails out later in the begin phase. This indicates that we should
- // move this assignment out of the common path and into each branch.
-
-
- workInProgress.lanes = NoLanes;
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- {
- return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);
- }
-
- case LazyComponent:
- {
- var elementType = workInProgress.elementType;
- return mountLazyComponent(current, workInProgress, elementType, updateLanes, renderLanes);
- }
-
- case FunctionComponent:
- {
- var _Component = workInProgress.type;
- var unresolvedProps = workInProgress.pendingProps;
- var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
- return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderLanes);
- }
-
- case ClassComponent:
- {
- var _Component2 = workInProgress.type;
- var _unresolvedProps = workInProgress.pendingProps;
-
- var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
-
- return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderLanes);
- }
-
- case HostRoot:
- return updateHostRoot(current, workInProgress, renderLanes);
-
- case HostComponent:
- return updateHostComponent(current, workInProgress, renderLanes);
-
- case HostText:
- return updateHostText(current, workInProgress);
-
- case SuspenseComponent:
- return updateSuspenseComponent(current, workInProgress, renderLanes);
-
- case HostPortal:
- return updatePortalComponent(current, workInProgress, renderLanes);
-
- case ForwardRef:
- {
- var type = workInProgress.type;
- var _unresolvedProps2 = workInProgress.pendingProps;
-
- var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
-
- return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);
- }
-
- case Fragment:
- return updateFragment(current, workInProgress, renderLanes);
-
- case Mode:
- return updateMode(current, workInProgress, renderLanes);
-
- case Profiler:
- return updateProfiler(current, workInProgress, renderLanes);
-
- case ContextProvider:
- return updateContextProvider(current, workInProgress, renderLanes);
-
- case ContextConsumer:
- return updateContextConsumer(current, workInProgress, renderLanes);
-
- case MemoComponent:
- {
- var _type2 = workInProgress.type;
- var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
-
- var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
-
- {
- if (workInProgress.type !== workInProgress.elementType) {
- var outerPropTypes = _type2.propTypes;
-
- if (outerPropTypes) {
- checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
- 'prop', getComponentName(_type2));
- }
- }
- }
-
- _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
- return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateLanes, renderLanes);
- }
-
- case SimpleMemoComponent:
- {
- return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateLanes, renderLanes);
- }
-
- case IncompleteClassComponent:
- {
- var _Component3 = workInProgress.type;
- var _unresolvedProps4 = workInProgress.pendingProps;
-
- var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
-
- return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderLanes);
- }
-
- case SuspenseListComponent:
- {
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
- }
-
- case FundamentalComponent:
- {
-
- break;
- }
-
- case ScopeComponent:
- {
-
- break;
- }
-
- case Block:
- {
-
- break;
- }
-
- case OffscreenComponent:
- {
- return updateOffscreenComponent(current, workInProgress, renderLanes);
- }
-
- case LegacyHiddenComponent:
- {
- return updateLegacyHiddenComponent(current, workInProgress, renderLanes);
- }
- }
-
- {
- {
- throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function markUpdate(workInProgress) {
- // Tag the fiber with an update effect. This turns a Placement into
- // a PlacementAndUpdate.
- workInProgress.flags |= Update;
- }
-
- function markRef$1(workInProgress) {
- workInProgress.flags |= Ref;
- }
-
- var appendAllChildren;
- var updateHostContainer;
- var updateHostComponent$1;
- var updateHostText$1;
-
- {
- // Mutation mode
- appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
- // We only have the top Fiber that was created but we need recurse down its
- // children to find all the terminal nodes.
- var node = workInProgress.child;
-
- while (node !== null) {
- if (node.tag === HostComponent || node.tag === HostText) {
- appendInitialChild(parent, node.stateNode);
- } else if (node.tag === HostPortal) ; else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === workInProgress) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === workInProgress) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- };
-
- updateHostContainer = function (workInProgress) {// Noop
- };
-
- updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
- // If we have an alternate, that means this is an update and we need to
- // schedule a side-effect to do the updates.
- var oldProps = current.memoizedProps;
-
- if (oldProps === newProps) {
- // In mutation mode, this is sufficient for a bailout because
- // we won't touch this node even if children changed.
- return;
- } // If we get updated because one of our children updated, we don't
- // have newProps so we'll have to reuse them.
- // TODO: Split the update API as separate for the props vs. children.
- // Even better would be if children weren't special cased at all tho.
-
-
- var instance = workInProgress.stateNode;
- var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
- // component is hitting the resume path. Figure out why. Possibly
- // related to `hidden`.
-
- var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
-
- workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
- // is a new ref we mark this as an update. All the work is done in commitWork.
-
- if (updatePayload) {
- markUpdate(workInProgress);
- }
- };
-
- updateHostText$1 = function (current, workInProgress, oldText, newText) {
- // If the text differs, mark it as an update. All the work in done in commitWork.
- if (oldText !== newText) {
- markUpdate(workInProgress);
- }
- };
- }
-
- function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
- if (getIsHydrating()) {
- // If we're hydrating, we should consume as many items as we can
- // so we don't leave any behind.
- return;
- }
-
- switch (renderState.tailMode) {
- case 'hidden':
- {
- // Any insertions at the end of the tail list after this point
- // should be invisible. If there are already mounted boundaries
- // anything before them are not considered for collapsing.
- // Therefore we need to go through the whole tail to find if
- // there are any.
- var tailNode = renderState.tail;
- var lastTailNode = null;
-
- while (tailNode !== null) {
- if (tailNode.alternate !== null) {
- lastTailNode = tailNode;
- }
-
- tailNode = tailNode.sibling;
- } // Next we're simply going to delete all insertions after the
- // last rendered item.
-
-
- if (lastTailNode === null) {
- // All remaining items in the tail are insertions.
- renderState.tail = null;
- } else {
- // Detach the insertion after the last node that was already
- // inserted.
- lastTailNode.sibling = null;
- }
-
- break;
- }
-
- case 'collapsed':
- {
- // Any insertions at the end of the tail list after this point
- // should be invisible. If there are already mounted boundaries
- // anything before them are not considered for collapsing.
- // Therefore we need to go through the whole tail to find if
- // there are any.
- var _tailNode = renderState.tail;
- var _lastTailNode = null;
-
- while (_tailNode !== null) {
- if (_tailNode.alternate !== null) {
- _lastTailNode = _tailNode;
- }
-
- _tailNode = _tailNode.sibling;
- } // Next we're simply going to delete all insertions after the
- // last rendered item.
-
-
- if (_lastTailNode === null) {
- // All remaining items in the tail are insertions.
- if (!hasRenderedATailFallback && renderState.tail !== null) {
- // We suspended during the head. We want to show at least one
- // row at the tail. So we'll keep on and cut off the rest.
- renderState.tail.sibling = null;
- } else {
- renderState.tail = null;
- }
- } else {
- // Detach the insertion after the last node that was already
- // inserted.
- _lastTailNode.sibling = null;
- }
-
- break;
- }
- }
- }
-
- function completeWork(current, workInProgress, renderLanes) {
- var newProps = workInProgress.pendingProps;
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- case LazyComponent:
- case SimpleMemoComponent:
- case FunctionComponent:
- case ForwardRef:
- case Fragment:
- case Mode:
- case Profiler:
- case ContextConsumer:
- case MemoComponent:
- return null;
-
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- popContext(workInProgress);
- }
-
- return null;
- }
-
- case HostRoot:
- {
- popHostContainer(workInProgress);
- popTopLevelContextObject(workInProgress);
- resetWorkInProgressVersions();
- var fiberRoot = workInProgress.stateNode;
-
- if (fiberRoot.pendingContext) {
- fiberRoot.context = fiberRoot.pendingContext;
- fiberRoot.pendingContext = null;
- }
-
- if (current === null || current.child === null) {
- // If we hydrated, pop so that we can delete any remaining children
- // that weren't hydrated.
- var wasHydrated = popHydrationState(workInProgress);
-
- if (wasHydrated) {
- // If we hydrated, then we'll need to schedule an update for
- // the commit side-effects on the root.
- markUpdate(workInProgress);
- } else if (!fiberRoot.hydrate) {
- // Schedule an effect to clear this container at the start of the next commit.
- // This handles the case of React rendering into a container with previous children.
- // It's also safe to do for updates too, because current.child would only be null
- // if the previous render was null (so the the container would already be empty).
- workInProgress.flags |= Snapshot;
- }
- }
-
- updateHostContainer(workInProgress);
- return null;
- }
-
- case HostComponent:
- {
- popHostContext(workInProgress);
- var rootContainerInstance = getRootHostContainer();
- var type = workInProgress.type;
-
- if (current !== null && workInProgress.stateNode != null) {
- updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
-
- if (current.ref !== workInProgress.ref) {
- markRef$1(workInProgress);
- }
- } else {
- if (!newProps) {
- if (!(workInProgress.stateNode !== null)) {
- {
- throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
- }
- } // This can happen when we abort work.
-
-
- return null;
- }
-
- var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
- // "stack" as the parent. Then append children as we go in beginWork
- // or completeWork depending on whether we want to add them top->down or
- // bottom->up. Top->down is faster in IE11.
-
- var _wasHydrated = popHydrationState(workInProgress);
-
- if (_wasHydrated) {
- // TODO: Move this and createInstance step into the beginPhase
- // to consolidate.
- if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
- // If changes to the hydrated node need to be applied at the
- // commit-phase we mark this as such.
- markUpdate(workInProgress);
- }
- } else {
- var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
- appendAllChildren(instance, workInProgress, false, false);
- workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.
- // (eg DOM renderer supports auto-focus for certain elements).
- // Make sure such renderers get scheduled for later work.
-
- if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
- markUpdate(workInProgress);
- }
- }
-
- if (workInProgress.ref !== null) {
- // If there is a ref on a host node we need to schedule a callback
- markRef$1(workInProgress);
- }
- }
-
- return null;
- }
-
- case HostText:
- {
- var newText = newProps;
-
- if (current && workInProgress.stateNode != null) {
- var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
- // to schedule a side-effect to do the updates.
-
- updateHostText$1(current, workInProgress, oldText, newText);
- } else {
- if (typeof newText !== 'string') {
- if (!(workInProgress.stateNode !== null)) {
- {
- throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
- }
- } // This can happen when we abort work.
-
- }
-
- var _rootContainerInstance = getRootHostContainer();
-
- var _currentHostContext = getHostContext();
-
- var _wasHydrated2 = popHydrationState(workInProgress);
-
- if (_wasHydrated2) {
- if (prepareToHydrateHostTextInstance(workInProgress)) {
- markUpdate(workInProgress);
- }
- } else {
- workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
- }
- }
-
- return null;
- }
-
- case SuspenseComponent:
- {
- popSuspenseContext(workInProgress);
- var nextState = workInProgress.memoizedState;
-
- if ((workInProgress.flags & DidCapture) !== NoFlags) {
- // Something suspended. Re-render with the fallback children.
- workInProgress.lanes = renderLanes; // Do not reset the effect list.
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- }
-
- return workInProgress;
- }
-
- var nextDidTimeout = nextState !== null;
- var prevDidTimeout = false;
-
- if (current === null) {
- if (workInProgress.memoizedProps.fallback !== undefined) {
- popHydrationState(workInProgress);
- }
- } else {
- var prevState = current.memoizedState;
- prevDidTimeout = prevState !== null;
- }
-
- if (nextDidTimeout && !prevDidTimeout) {
- // If this subtreee is running in blocking mode we can suspend,
- // otherwise we won't suspend.
- // TODO: This will still suspend a synchronous tree if anything
- // in the concurrent tree already suspended during this render.
- // This is a known bug.
- if ((workInProgress.mode & BlockingMode) !== NoMode) {
- // TODO: Move this back to throwException because this is too late
- // if this is a large tree which is common for initial loads. We
- // don't know if we should restart a render or not until we get
- // this marker, and this is too late.
- // If this render already had a ping or lower pri updates,
- // and this is the first time we know we're going to suspend we
- // should be able to immediately restart from within throwException.
- var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
-
- if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
- // If this was in an invisible tree or a new render, then showing
- // this boundary is ok.
- renderDidSuspend();
- } else {
- // Otherwise, we're going to have to hide content so we should
- // suspend for longer if possible.
- renderDidSuspendDelayIfPossible();
- }
- }
- }
-
- {
- // TODO: Only schedule updates if these values are non equal, i.e. it changed.
- if (nextDidTimeout || prevDidTimeout) {
- // If this boundary just timed out, schedule an effect to attach a
- // retry listener to the promise. This flag is also used to hide the
- // primary children. In mutation mode, we also need the flag to
- // *unhide* children that were previously hidden, so check if this
- // is currently timed out, too.
- workInProgress.flags |= Update;
- }
- }
-
- return null;
- }
-
- case HostPortal:
- popHostContainer(workInProgress);
- updateHostContainer(workInProgress);
-
- if (current === null) {
- preparePortalMount(workInProgress.stateNode.containerInfo);
- }
-
- return null;
-
- case ContextProvider:
- // Pop provider fiber
- popProvider(workInProgress);
- return null;
-
- case IncompleteClassComponent:
- {
- // Same as class component case. I put it down here so that the tags are
- // sequential to ensure this switch is compiled to a jump table.
- var _Component = workInProgress.type;
-
- if (isContextProvider(_Component)) {
- popContext(workInProgress);
- }
-
- return null;
- }
-
- case SuspenseListComponent:
- {
- popSuspenseContext(workInProgress);
- var renderState = workInProgress.memoizedState;
-
- if (renderState === null) {
- // We're running in the default, "independent" mode.
- // We don't do anything in this mode.
- return null;
- }
-
- var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;
- var renderedTail = renderState.rendering;
-
- if (renderedTail === null) {
- // We just rendered the head.
- if (!didSuspendAlready) {
- // This is the first pass. We need to figure out if anything is still
- // suspended in the rendered set.
- // If new content unsuspended, but there's still some content that
- // didn't. Then we need to do a second pass that forces everything
- // to keep showing their fallbacks.
- // We might be suspended if something in this render pass suspended, or
- // something in the previous committed pass suspended. Otherwise,
- // there's no chance so we can skip the expensive call to
- // findFirstSuspended.
- var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);
-
- if (!cannotBeSuspended) {
- var row = workInProgress.child;
-
- while (row !== null) {
- var suspended = findFirstSuspended(row);
-
- if (suspended !== null) {
- didSuspendAlready = true;
- workInProgress.flags |= DidCapture;
- cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
- // part of the second pass. In that case nothing will subscribe to
- // its thennables. Instead, we'll transfer its thennables to the
- // SuspenseList so that it can retry if they resolve.
- // There might be multiple of these in the list but since we're
- // going to wait for all of them anyway, it doesn't really matter
- // which ones gets to ping. In theory we could get clever and keep
- // track of how many dependencies remain but it gets tricky because
- // in the meantime, we can add/remove/change items and dependencies.
- // We might bail out of the loop before finding any but that
- // doesn't matter since that means that the other boundaries that
- // we did find already has their listeners attached.
-
- var newThennables = suspended.updateQueue;
-
- if (newThennables !== null) {
- workInProgress.updateQueue = newThennables;
- workInProgress.flags |= Update;
- } // Rerender the whole list, but this time, we'll force fallbacks
- // to stay in place.
- // Reset the effect list before doing the second pass since that's now invalid.
-
-
- if (renderState.lastEffect === null) {
- workInProgress.firstEffect = null;
- }
-
- workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.
-
- resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately
- // rerender the children.
-
- pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
- return workInProgress.child;
- }
-
- row = row.sibling;
- }
- }
-
- if (renderState.tail !== null && now() > getRenderTargetTime()) {
- // We have already passed our CPU deadline but we still have rows
- // left in the tail. We'll just give up further attempts to render
- // the main content and only render fallbacks.
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true;
- cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
- // to get it started back up to attempt the next item. While in terms
- // of priority this work has the same priority as this current render,
- // it's not part of the same transition once the transition has
- // committed. If it's sync, we still want to yield so that it can be
- // painted. Conceptually, this is really the same as pinging.
- // We can use any RetryLane even if it's the one currently rendering
- // since we're leaving it behind on this node.
-
- workInProgress.lanes = SomeRetryLane;
-
- {
- markSpawnedWork(SomeRetryLane);
- }
- }
- } else {
- cutOffTailIfNeeded(renderState, false);
- } // Next we're going to render the tail.
-
- } else {
- // Append the rendered row to the child list.
- if (!didSuspendAlready) {
- var _suspended = findFirstSuspended(renderedTail);
-
- if (_suspended !== null) {
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
- // get lost if this row ends up dropped during a second pass.
-
- var _newThennables = _suspended.updateQueue;
-
- if (_newThennables !== null) {
- workInProgress.updateQueue = _newThennables;
- workInProgress.flags |= Update;
- }
-
- cutOffTailIfNeeded(renderState, true); // This might have been modified.
-
- if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.
- ) {
- // We need to delete the row we just rendered.
- // Reset the effect list to what it was before we rendered this
- // child. The nested children have already appended themselves.
- var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.
-
- if (lastEffect !== null) {
- lastEffect.nextEffect = null;
- } // We're done.
-
-
- return null;
- }
- } else if ( // The time it took to render last row is greater than the remaining
- // time we have to render. So rendering one more row would likely
- // exceed it.
- now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
- // We have now passed our CPU deadline and we'll just give up further
- // attempts to render the main content and only render fallbacks.
- // The assumption is that this is usually faster.
- workInProgress.flags |= DidCapture;
- didSuspendAlready = true;
- cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
- // to get it started back up to attempt the next item. While in terms
- // of priority this work has the same priority as this current render,
- // it's not part of the same transition once the transition has
- // committed. If it's sync, we still want to yield so that it can be
- // painted. Conceptually, this is really the same as pinging.
- // We can use any RetryLane even if it's the one currently rendering
- // since we're leaving it behind on this node.
-
- workInProgress.lanes = SomeRetryLane;
-
- {
- markSpawnedWork(SomeRetryLane);
- }
- }
- }
-
- if (renderState.isBackwards) {
- // The effect list of the backwards tail will have been added
- // to the end. This breaks the guarantee that life-cycles fire in
- // sibling order but that isn't a strong guarantee promised by React.
- // Especially since these might also just pop in during future commits.
- // Append to the beginning of the list.
- renderedTail.sibling = workInProgress.child;
- workInProgress.child = renderedTail;
- } else {
- var previousSibling = renderState.last;
-
- if (previousSibling !== null) {
- previousSibling.sibling = renderedTail;
- } else {
- workInProgress.child = renderedTail;
- }
-
- renderState.last = renderedTail;
- }
- }
-
- if (renderState.tail !== null) {
- // We still have tail rows to render.
- // Pop a row.
- var next = renderState.tail;
- renderState.rendering = next;
- renderState.tail = next.sibling;
- renderState.lastEffect = workInProgress.lastEffect;
- renderState.renderingStartTime = now();
- next.sibling = null; // Restore the context.
- // TODO: We can probably just avoid popping it instead and only
- // setting it the first time we go from not suspended to suspended.
-
- var suspenseContext = suspenseStackCursor.current;
-
- if (didSuspendAlready) {
- suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
- } else {
- suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
- }
-
- pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
-
- return next;
- }
-
- return null;
- }
-
- case FundamentalComponent:
- {
-
- break;
- }
-
- case ScopeComponent:
- {
-
- break;
- }
-
- case Block:
-
- break;
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- {
- popRenderLanes(workInProgress);
-
- if (current !== null) {
- var _nextState = workInProgress.memoizedState;
- var _prevState = current.memoizedState;
- var prevIsHidden = _prevState !== null;
- var nextIsHidden = _nextState !== null;
-
- if (prevIsHidden !== nextIsHidden && newProps.mode !== 'unstable-defer-without-hiding') {
- workInProgress.flags |= Update;
- }
- }
-
- return null;
- }
- }
-
- {
- {
- throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function unwindWork(workInProgress, renderLanes) {
- switch (workInProgress.tag) {
- case ClassComponent:
- {
- var Component = workInProgress.type;
-
- if (isContextProvider(Component)) {
- popContext(workInProgress);
- }
-
- var flags = workInProgress.flags;
-
- if (flags & ShouldCapture) {
- workInProgress.flags = flags & ~ShouldCapture | DidCapture;
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- }
-
- return workInProgress;
- }
-
- return null;
- }
-
- case HostRoot:
- {
- popHostContainer(workInProgress);
- popTopLevelContextObject(workInProgress);
- resetWorkInProgressVersions();
- var _flags = workInProgress.flags;
-
- if (!((_flags & DidCapture) === NoFlags)) {
- {
- throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
- }
- }
-
- workInProgress.flags = _flags & ~ShouldCapture | DidCapture;
- return workInProgress;
- }
-
- case HostComponent:
- {
- // TODO: popHydrationState
- popHostContext(workInProgress);
- return null;
- }
-
- case SuspenseComponent:
- {
- popSuspenseContext(workInProgress);
-
- var _flags2 = workInProgress.flags;
-
- if (_flags2 & ShouldCapture) {
- workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
-
- if ( (workInProgress.mode & ProfileMode) !== NoMode) {
- transferActualDuration(workInProgress);
- }
-
- return workInProgress;
- }
-
- return null;
- }
-
- case SuspenseListComponent:
- {
- popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
- // caught by a nested boundary. If not, it should bubble through.
-
- return null;
- }
-
- case HostPortal:
- popHostContainer(workInProgress);
- return null;
-
- case ContextProvider:
- popProvider(workInProgress);
- return null;
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- popRenderLanes(workInProgress);
- return null;
-
- default:
- return null;
- }
- }
-
- function unwindInterruptedWork(interruptedWork) {
- switch (interruptedWork.tag) {
- case ClassComponent:
- {
- var childContextTypes = interruptedWork.type.childContextTypes;
-
- if (childContextTypes !== null && childContextTypes !== undefined) {
- popContext(interruptedWork);
- }
-
- break;
- }
-
- case HostRoot:
- {
- popHostContainer(interruptedWork);
- popTopLevelContextObject(interruptedWork);
- resetWorkInProgressVersions();
- break;
- }
-
- case HostComponent:
- {
- popHostContext(interruptedWork);
- break;
- }
-
- case HostPortal:
- popHostContainer(interruptedWork);
- break;
-
- case SuspenseComponent:
- popSuspenseContext(interruptedWork);
- break;
-
- case SuspenseListComponent:
- popSuspenseContext(interruptedWork);
- break;
-
- case ContextProvider:
- popProvider(interruptedWork);
- break;
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- popRenderLanes(interruptedWork);
- break;
- }
- }
-
- function createCapturedValue(value, source) {
- // If the value is an error, call this function immediately after it is thrown
- // so the stack is accurate.
- return {
- value: value,
- source: source,
- stack: getStackByFiberInDevAndProd(source)
- };
- }
-
- // This module is forked in different environments.
- // By default, return `true` to log errors to the console.
- // Forks can return `false` if this isn't desirable.
- function showErrorDialog(boundary, errorInfo) {
- return true;
- }
-
- function logCapturedError(boundary, errorInfo) {
- try {
- var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.
- // This enables renderers like ReactNative to better manage redbox behavior.
-
- if (logError === false) {
- return;
- }
-
- var error = errorInfo.value;
-
- if (true) {
- var source = errorInfo.source;
- var stack = errorInfo.stack;
- var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling
- // `preventDefault()` in window `error` handler.
- // We record this information as an expando on the error.
-
- if (error != null && error._suppressLogging) {
- if (boundary.tag === ClassComponent) {
- // The error is recoverable and was silenced.
- // Ignore it and don't print the stack addendum.
- // This is handy for testing error boundaries without noise.
- return;
- } // The error is fatal. Since the silencing might have
- // been accidental, we'll surface it anyway.
- // However, the browser would have silenced the original error
- // so we'll print it first, and then print the stack addendum.
-
-
- console['error'](error); // Don't transform to our wrapper
- // For a more detailed description of this block, see:
- // https://github.com/facebook/react/pull/13384
- }
-
- var componentName = source ? getComponentName(source.type) : null;
- var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
- var errorBoundaryMessage;
- var errorBoundaryName = getComponentName(boundary.type);
-
- if (errorBoundaryName) {
- errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
- } else {
- errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';
- }
-
- var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
- // We don't include the original error message and JS stack because the browser
- // has already printed it. Even if the application swallows the error, it is still
- // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
-
- console['error'](combinedMessage); // Don't transform to our wrapper
- } else {
- // In production, we print the error directly.
- // This will include the message, the JS stack, and anything the browser wants to show.
- // We pass the error object instead of custom message so that the browser displays the error natively.
- console['error'](error); // Don't transform to our wrapper
- }
- } catch (e) {
- // This method must not throw, or React internal state will get messed up.
- // If console.error is overridden, or logCapturedError() shows a dialog that throws,
- // we want to report this error outside of the normal stack as a last resort.
- // https://github.com/facebook/react/issues/13188
- setTimeout(function () {
- throw e;
- });
- }
- }
-
- var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
-
- function createRootErrorUpdate(fiber, errorInfo, lane) {
- var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
-
- update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
- // being called "element".
-
- update.payload = {
- element: null
- };
- var error = errorInfo.value;
-
- update.callback = function () {
- onUncaughtError(error);
- logCapturedError(fiber, errorInfo);
- };
-
- return update;
- }
-
- function createClassErrorUpdate(fiber, errorInfo, lane) {
- var update = createUpdate(NoTimestamp, lane);
- update.tag = CaptureUpdate;
- var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
-
- if (typeof getDerivedStateFromError === 'function') {
- var error$1 = errorInfo.value;
-
- update.payload = function () {
- logCapturedError(fiber, errorInfo);
- return getDerivedStateFromError(error$1);
- };
- }
-
- var inst = fiber.stateNode;
-
- if (inst !== null && typeof inst.componentDidCatch === 'function') {
- update.callback = function callback() {
- {
- markFailedErrorBoundaryForHotReloading(fiber);
- }
-
- if (typeof getDerivedStateFromError !== 'function') {
- // To preserve the preexisting retry behavior of error boundaries,
- // we keep track of which ones already failed during this batch.
- // This gets reset before we yield back to the browser.
- // TODO: Warn in strict mode if getDerivedStateFromError is
- // not defined.
- markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined
-
- logCapturedError(fiber, errorInfo);
- }
-
- var error$1 = errorInfo.value;
- var stack = errorInfo.stack;
- this.componentDidCatch(error$1, {
- componentStack: stack !== null ? stack : ''
- });
-
- {
- if (typeof getDerivedStateFromError !== 'function') {
- // If componentDidCatch is the only error boundary method defined,
- // then it needs to call setState to recover from errors.
- // If no state update is scheduled then the boundary will swallow the error.
- if (!includesSomeLane(fiber.lanes, SyncLane)) {
- error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown');
- }
- }
- }
- };
- } else {
- update.callback = function () {
- markFailedErrorBoundaryForHotReloading(fiber);
- };
- }
-
- return update;
- }
-
- function attachPingListener(root, wakeable, lanes) {
- // Attach a listener to the promise to "ping" the root and retry. But only if
- // one does not already exist for the lanes we're currently rendering (which
- // acts like a "thread ID" here).
- var pingCache = root.pingCache;
- var threadIDs;
-
- if (pingCache === null) {
- pingCache = root.pingCache = new PossiblyWeakMap$1();
- threadIDs = new Set();
- pingCache.set(wakeable, threadIDs);
- } else {
- threadIDs = pingCache.get(wakeable);
-
- if (threadIDs === undefined) {
- threadIDs = new Set();
- pingCache.set(wakeable, threadIDs);
- }
- }
-
- if (!threadIDs.has(lanes)) {
- // Memoize using the thread ID to prevent redundant listeners.
- threadIDs.add(lanes);
- var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);
- wakeable.then(ping, ping);
- }
- }
-
- function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
- // The source fiber did not complete.
- sourceFiber.flags |= Incomplete; // Its effect list is no longer valid.
-
- sourceFiber.firstEffect = sourceFiber.lastEffect = null;
-
- if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
- // This is a wakeable.
- var wakeable = value;
-
- if ((sourceFiber.mode & BlockingMode) === NoMode) {
- // Reset the memoizedState to what it was before we attempted
- // to render it.
- var currentSource = sourceFiber.alternate;
-
- if (currentSource) {
- sourceFiber.updateQueue = currentSource.updateQueue;
- sourceFiber.memoizedState = currentSource.memoizedState;
- sourceFiber.lanes = currentSource.lanes;
- } else {
- sourceFiber.updateQueue = null;
- sourceFiber.memoizedState = null;
- }
- }
-
- var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.
-
- var _workInProgress = returnFiber;
-
- do {
- if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
- // Found the nearest boundary.
- // Stash the promise on the boundary fiber. If the boundary times out, we'll
- // attach another listener to flip the boundary back to its normal state.
- var wakeables = _workInProgress.updateQueue;
-
- if (wakeables === null) {
- var updateQueue = new Set();
- updateQueue.add(wakeable);
- _workInProgress.updateQueue = updateQueue;
- } else {
- wakeables.add(wakeable);
- } // If the boundary is outside of blocking mode, we should *not*
- // suspend the commit. Pretend as if the suspended component rendered
- // null and keep rendering. In the commit phase, we'll schedule a
- // subsequent synchronous update to re-render the Suspense.
- //
- // Note: It doesn't matter whether the component that suspended was
- // inside a blocking mode tree. If the Suspense is outside of it, we
- // should *not* suspend the commit.
-
-
- if ((_workInProgress.mode & BlockingMode) === NoMode) {
- _workInProgress.flags |= DidCapture;
- sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.
- // But we shouldn't call any lifecycle methods or callbacks. Remove
- // all lifecycle effect tags.
-
- sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);
-
- if (sourceFiber.tag === ClassComponent) {
- var currentSourceFiber = sourceFiber.alternate;
-
- if (currentSourceFiber === null) {
- // This is a new mount. Change the tag so it's not mistaken for a
- // completed class component. For example, we should not call
- // componentWillUnmount if it is deleted.
- sourceFiber.tag = IncompleteClassComponent;
- } else {
- // When we try rendering again, we should not reuse the current fiber,
- // since it's known to be in an inconsistent state. Use a force update to
- // prevent a bail out.
- var update = createUpdate(NoTimestamp, SyncLane);
- update.tag = ForceUpdate;
- enqueueUpdate(sourceFiber, update);
- }
- } // The source fiber did not complete. Mark it with Sync priority to
- // indicate that it still has pending work.
-
-
- sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); // Exit without suspending.
-
- return;
- } // Confirmed that the boundary is in a concurrent mode tree. Continue
- // with the normal suspend path.
- //
- // After this we'll use a set of heuristics to determine whether this
- // render pass will run to completion or restart or "suspend" the commit.
- // The actual logic for this is spread out in different places.
- //
- // This first principle is that if we're going to suspend when we complete
- // a root, then we should also restart if we get an update or ping that
- // might unsuspend it, and vice versa. The only reason to suspend is
- // because you think you might want to restart before committing. However,
- // it doesn't make sense to restart only while in the period we're suspended.
- //
- // Restarting too aggressively is also not good because it starves out any
- // intermediate loading state. So we use heuristics to determine when.
- // Suspense Heuristics
- //
- // If nothing threw a Promise or all the same fallbacks are already showing,
- // then don't suspend/restart.
- //
- // If this is an initial render of a new tree of Suspense boundaries and
- // those trigger a fallback, then don't suspend/restart. We want to ensure
- // that we can show the initial loading state as quickly as possible.
- //
- // If we hit a "Delayed" case, such as when we'd switch from content back into
- // a fallback, then we should always suspend/restart. Transitions apply
- // to this case. If none is defined, JND is used instead.
- //
- // If we're already showing a fallback and it gets "retried", allowing us to show
- // another level, but there's still an inner boundary that would show a fallback,
- // then we suspend/restart for 500ms since the last time we showed a fallback
- // anywhere in the tree. This effectively throttles progressive loading into a
- // consistent train of commits. This also gives us an opportunity to restart to
- // get to the completed state slightly earlier.
- //
- // If there's ambiguity due to batching it's resolved in preference of:
- // 1) "delayed", 2) "initial render", 3) "retry".
- //
- // We want to ensure that a "busy" state doesn't get force committed. We want to
- // ensure that new initial loading states can commit as soon as possible.
-
-
- attachPingListener(root, wakeable, rootRenderLanes);
- _workInProgress.flags |= ShouldCapture;
- _workInProgress.lanes = rootRenderLanes;
- return;
- } // This boundary already captured during this render. Continue to the next
- // boundary.
-
-
- _workInProgress = _workInProgress.return;
- } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
- // TODO: Use invariant so the message is stripped in prod?
-
-
- value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.');
- } // We didn't find a boundary that could handle this type of exception. Start
- // over and traverse parent path again, this time treating the exception
- // as an error.
-
-
- renderDidError();
- value = createCapturedValue(value, sourceFiber);
- var workInProgress = returnFiber;
-
- do {
- switch (workInProgress.tag) {
- case HostRoot:
- {
- var _errorInfo = value;
- workInProgress.flags |= ShouldCapture;
- var lane = pickArbitraryLane(rootRenderLanes);
- workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);
-
- var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
-
- enqueueCapturedUpdate(workInProgress, _update);
- return;
- }
-
- case ClassComponent:
- // Capture and retry
- var errorInfo = value;
- var ctor = workInProgress.type;
- var instance = workInProgress.stateNode;
-
- if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
- workInProgress.flags |= ShouldCapture;
-
- var _lane = pickArbitraryLane(rootRenderLanes);
-
- workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state
-
- var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);
-
- enqueueCapturedUpdate(workInProgress, _update2);
- return;
- }
-
- break;
- }
-
- workInProgress = workInProgress.return;
- } while (workInProgress !== null);
- }
-
- var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
-
- {
- didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
- }
-
- var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
-
- var callComponentWillUnmountWithTimer = function (current, instance) {
- instance.props = current.memoizedProps;
- instance.state = current.memoizedState;
-
- {
- instance.componentWillUnmount();
- }
- }; // Capture errors so they don't interrupt unmounting.
-
-
- function safelyCallComponentWillUnmount(current, instance) {
- {
- invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);
-
- if (hasCaughtError()) {
- var unmountError = clearCaughtError();
- captureCommitPhaseError(current, unmountError);
- }
- }
- }
-
- function safelyDetachRef(current) {
- var ref = current.ref;
-
- if (ref !== null) {
- if (typeof ref === 'function') {
- {
- invokeGuardedCallback(null, ref, null, null);
-
- if (hasCaughtError()) {
- var refError = clearCaughtError();
- captureCommitPhaseError(current, refError);
- }
- }
- } else {
- ref.current = null;
- }
- }
- }
-
- function safelyCallDestroy(current, destroy) {
- {
- invokeGuardedCallback(null, destroy, null);
-
- if (hasCaughtError()) {
- var error = clearCaughtError();
- captureCommitPhaseError(current, error);
- }
- }
- }
-
- function commitBeforeMutationLifeCycles(current, finishedWork) {
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- case Block:
- {
- return;
- }
-
- case ClassComponent:
- {
- if (finishedWork.flags & Snapshot) {
- if (current !== null) {
- var prevProps = current.memoizedProps;
- var prevState = current.memoizedState;
- var instance = finishedWork.stateNode; // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
- }
- }
-
- var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
-
- {
- var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
-
- if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
- didWarnSet.add(finishedWork.type);
-
- error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
- }
- }
-
- instance.__reactInternalSnapshotBeforeUpdate = snapshot;
- }
- }
-
- return;
- }
-
- case HostRoot:
- {
- {
- if (finishedWork.flags & Snapshot) {
- var root = finishedWork.stateNode;
- clearContainer(root.containerInfo);
- }
- }
-
- return;
- }
-
- case HostComponent:
- case HostText:
- case HostPortal:
- case IncompleteClassComponent:
- // Nothing to do for these component types
- return;
- }
-
- {
- {
- throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function commitHookEffectListUnmount(tag, finishedWork) {
- var updateQueue = finishedWork.updateQueue;
- var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- if ((effect.tag & tag) === tag) {
- // Unmount
- var destroy = effect.destroy;
- effect.destroy = undefined;
-
- if (destroy !== undefined) {
- destroy();
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
-
- function commitHookEffectListMount(tag, finishedWork) {
- var updateQueue = finishedWork.updateQueue;
- var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- if ((effect.tag & tag) === tag) {
- // Mount
- var create = effect.create;
- effect.destroy = create();
-
- {
- var destroy = effect.destroy;
-
- if (destroy !== undefined && typeof destroy !== 'function') {
- var addendum = void 0;
-
- if (destroy === null) {
- addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
- } else if (typeof destroy.then === 'function') {
- addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';
- } else {
- addendum = ' You returned: ' + destroy;
- }
-
- error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s', addendum);
- }
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
-
- function schedulePassiveEffects(finishedWork) {
- var updateQueue = finishedWork.updateQueue;
- var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- var _effect = effect,
- next = _effect.next,
- tag = _effect.tag;
-
- if ((tag & Passive$1) !== NoFlags$1 && (tag & HasEffect) !== NoFlags$1) {
- enqueuePendingPassiveHookEffectUnmount(finishedWork, effect);
- enqueuePendingPassiveHookEffectMount(finishedWork, effect);
- }
-
- effect = next;
- } while (effect !== firstEffect);
- }
- }
-
- function commitLifeCycles(finishedRoot, current, finishedWork, committedLanes) {
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- case Block:
- {
- // At this point layout effects have already been destroyed (during mutation phase).
- // This is done to prevent sibling component effects from interfering with each other,
- // e.g. a destroy function in one component should never override a ref set
- // by a create function in another component during the same commit.
- {
- commitHookEffectListMount(Layout | HasEffect, finishedWork);
- }
-
- schedulePassiveEffects(finishedWork);
- return;
- }
-
- case ClassComponent:
- {
- var instance = finishedWork.stateNode;
-
- if (finishedWork.flags & Update) {
- if (current === null) {
- // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
- }
- }
-
- {
- instance.componentDidMount();
- }
- } else {
- var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
- var prevState = current.memoizedState; // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
- }
- }
-
- {
- instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
- }
- }
- } // TODO: I think this is now always non-null by the time it reaches the
- // commit phase. Consider removing the type check.
-
-
- var updateQueue = finishedWork.updateQueue;
-
- if (updateQueue !== null) {
- {
- if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
- if (instance.props !== finishedWork.memoizedProps) {
- error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
-
- if (instance.state !== finishedWork.memoizedState) {
- error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
- }
- }
- } // We could update instance props and state here,
- // but instead we rely on them being set during last render.
- // TODO: revisit this when we implement resuming.
-
-
- commitUpdateQueue(finishedWork, updateQueue, instance);
- }
-
- return;
- }
-
- case HostRoot:
- {
- // TODO: I think this is now always non-null by the time it reaches the
- // commit phase. Consider removing the type check.
- var _updateQueue = finishedWork.updateQueue;
-
- if (_updateQueue !== null) {
- var _instance = null;
-
- if (finishedWork.child !== null) {
- switch (finishedWork.child.tag) {
- case HostComponent:
- _instance = getPublicInstance(finishedWork.child.stateNode);
- break;
-
- case ClassComponent:
- _instance = finishedWork.child.stateNode;
- break;
- }
- }
-
- commitUpdateQueue(finishedWork, _updateQueue, _instance);
- }
-
- return;
- }
-
- case HostComponent:
- {
- var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
- // (eg DOM renderer may schedule auto-focus for inputs and form controls).
- // These effects should only be committed when components are first mounted,
- // aka when there is no current/alternate.
-
- if (current === null && finishedWork.flags & Update) {
- var type = finishedWork.type;
- var props = finishedWork.memoizedProps;
- commitMount(_instance2, type, props);
- }
-
- return;
- }
-
- case HostText:
- {
- // We have no life-cycles associated with text.
- return;
- }
-
- case HostPortal:
- {
- // We have no life-cycles associated with portals.
- return;
- }
-
- case Profiler:
- {
- {
- var _finishedWork$memoize2 = finishedWork.memoizedProps,
- onCommit = _finishedWork$memoize2.onCommit,
- onRender = _finishedWork$memoize2.onRender;
- var effectDuration = finishedWork.stateNode.effectDuration;
- var commitTime = getCommitTime();
-
- if (typeof onRender === 'function') {
- {
- onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime, finishedRoot.memoizedInteractions);
- }
- }
- }
-
- return;
- }
-
- case SuspenseComponent:
- {
- commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
- return;
- }
-
- case SuspenseListComponent:
- case IncompleteClassComponent:
- case FundamentalComponent:
- case ScopeComponent:
- case OffscreenComponent:
- case LegacyHiddenComponent:
- return;
- }
-
- {
- {
- throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function hideOrUnhideAllChildren(finishedWork, isHidden) {
- {
- // We only have the top Fiber that was inserted but we need to recurse down its
- // children to find all the terminal nodes.
- var node = finishedWork;
-
- while (true) {
- if (node.tag === HostComponent) {
- var instance = node.stateNode;
-
- if (isHidden) {
- hideInstance(instance);
- } else {
- unhideInstance(node.stateNode, node.memoizedProps);
- }
- } else if (node.tag === HostText) {
- var _instance3 = node.stateNode;
-
- if (isHidden) {
- hideTextInstance(_instance3);
- } else {
- unhideTextInstance(_instance3, node.memoizedProps);
- }
- } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === finishedWork) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === finishedWork) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
- }
-
- function commitAttachRef(finishedWork) {
- var ref = finishedWork.ref;
-
- if (ref !== null) {
- var instance = finishedWork.stateNode;
- var instanceToUse;
-
- switch (finishedWork.tag) {
- case HostComponent:
- instanceToUse = getPublicInstance(instance);
- break;
-
- default:
- instanceToUse = instance;
- } // Moved outside to ensure DCE works with this flag
-
- if (typeof ref === 'function') {
- ref(instanceToUse);
- } else {
- {
- if (!ref.hasOwnProperty('current')) {
- error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentName(finishedWork.type));
- }
- }
-
- ref.current = instanceToUse;
- }
- }
- }
-
- function commitDetachRef(current) {
- var currentRef = current.ref;
-
- if (currentRef !== null) {
- if (typeof currentRef === 'function') {
- currentRef(null);
- } else {
- currentRef.current = null;
- }
- }
- } // User-originating errors (lifecycles and refs) should not interrupt
- // deletion, so don't let them throw. Host-originating errors should
- // interrupt deletion, so it's okay
-
-
- function commitUnmount(finishedRoot, current, renderPriorityLevel) {
- onCommitUnmount(current);
-
- switch (current.tag) {
- case FunctionComponent:
- case ForwardRef:
- case MemoComponent:
- case SimpleMemoComponent:
- case Block:
- {
- var updateQueue = current.updateQueue;
-
- if (updateQueue !== null) {
- var lastEffect = updateQueue.lastEffect;
-
- if (lastEffect !== null) {
- var firstEffect = lastEffect.next;
- var effect = firstEffect;
-
- do {
- var _effect2 = effect,
- destroy = _effect2.destroy,
- tag = _effect2.tag;
-
- if (destroy !== undefined) {
- if ((tag & Passive$1) !== NoFlags$1) {
- enqueuePendingPassiveHookEffectUnmount(current, effect);
- } else {
- {
- safelyCallDestroy(current, destroy);
- }
- }
- }
-
- effect = effect.next;
- } while (effect !== firstEffect);
- }
- }
-
- return;
- }
-
- case ClassComponent:
- {
- safelyDetachRef(current);
- var instance = current.stateNode;
-
- if (typeof instance.componentWillUnmount === 'function') {
- safelyCallComponentWillUnmount(current, instance);
- }
-
- return;
- }
-
- case HostComponent:
- {
- safelyDetachRef(current);
- return;
- }
-
- case HostPortal:
- {
- // TODO: this is recursive.
- // We are also not using this parent because
- // the portal will get pushed immediately.
- {
- unmountHostComponents(finishedRoot, current);
- }
-
- return;
- }
-
- case FundamentalComponent:
- {
-
- return;
- }
-
- case DehydratedFragment:
- {
-
- return;
- }
-
- case ScopeComponent:
- {
-
- return;
- }
- }
- }
-
- function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
- // While we're inside a removed host node we don't want to call
- // removeChild on the inner nodes because they're removed by the top
- // call anyway. We also want to call componentWillUnmount on all
- // composites before this host node is removed from the tree. Therefore
- // we do an inner loop while we're still inside the host node.
- var node = root;
-
- while (true) {
- commitUnmount(finishedRoot, node); // Visit children because they may contain more composite or host nodes.
- // Skip portals because commitUnmount() currently visits them recursively.
-
- if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
- // If we don't use mutation we drill down into portals here instead.
- node.tag !== HostPortal)) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === root) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === root) {
- return;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- function detachFiberMutation(fiber) {
- // Cut off the return pointers to disconnect it from the tree. Ideally, we
- // should clear the child pointer of the parent alternate to let this
- // get GC:ed but we don't know which for sure which parent is the current
- // one so we'll settle for GC:ing the subtree of this child. This child
- // itself will be GC:ed when the parent updates the next time.
- // Note: we cannot null out sibling here, otherwise it can cause issues
- // with findDOMNode and how it requires the sibling field to carry out
- // traversal in a later effect. See PR #16820. We now clear the sibling
- // field after effects, see: detachFiberAfterEffects.
- //
- // Don't disconnect stateNode now; it will be detached in detachFiberAfterEffects.
- // It may be required if the current component is an error boundary,
- // and one of its descendants throws while unmounting a passive effect.
- fiber.alternate = null;
- fiber.child = null;
- fiber.dependencies = null;
- fiber.firstEffect = null;
- fiber.lastEffect = null;
- fiber.memoizedProps = null;
- fiber.memoizedState = null;
- fiber.pendingProps = null;
- fiber.return = null;
- fiber.updateQueue = null;
-
- {
- fiber._debugOwner = null;
- }
- }
-
- function getHostParentFiber(fiber) {
- var parent = fiber.return;
-
- while (parent !== null) {
- if (isHostParent(parent)) {
- return parent;
- }
-
- parent = parent.return;
- }
-
- {
- {
- throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function isHostParent(fiber) {
- return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
- }
-
- function getHostSibling(fiber) {
- // We're going to search forward into the tree until we find a sibling host
- // node. Unfortunately, if multiple insertions are done in a row we have to
- // search past them. This leads to exponential search for the next sibling.
- // TODO: Find a more efficient way to do this.
- var node = fiber;
-
- siblings: while (true) {
- // If we didn't find anything, let's try the next sibling.
- while (node.sibling === null) {
- if (node.return === null || isHostParent(node.return)) {
- // If we pop out of the root or hit the parent the fiber we are the
- // last sibling.
- return null;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
-
- while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
- // If it is not host node and, we might have a host node inside it.
- // Try to search down until we find one.
- if (node.flags & Placement) {
- // If we don't have a child, try the siblings instead.
- continue siblings;
- } // If we don't have a child, try the siblings instead.
- // We also skip portals because they are not part of this host tree.
-
-
- if (node.child === null || node.tag === HostPortal) {
- continue siblings;
- } else {
- node.child.return = node;
- node = node.child;
- }
- } // Check if this host node is stable or about to be placed.
-
-
- if (!(node.flags & Placement)) {
- // Found it!
- return node.stateNode;
- }
- }
- }
-
- function commitPlacement(finishedWork) {
-
-
- var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
-
- var parent;
- var isContainer;
- var parentStateNode = parentFiber.stateNode;
-
- switch (parentFiber.tag) {
- case HostComponent:
- parent = parentStateNode;
- isContainer = false;
- break;
-
- case HostRoot:
- parent = parentStateNode.containerInfo;
- isContainer = true;
- break;
-
- case HostPortal:
- parent = parentStateNode.containerInfo;
- isContainer = true;
- break;
-
- case FundamentalComponent:
-
- // eslint-disable-next-line-no-fallthrough
-
- default:
- {
- {
- throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- }
-
- if (parentFiber.flags & ContentReset) {
- // Reset the text content of the parent before doing any insertions
- resetTextContent(parent); // Clear ContentReset from the effect tag
-
- parentFiber.flags &= ~ContentReset;
- }
-
- var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
- // children to find all the terminal nodes.
-
- if (isContainer) {
- insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
- } else {
- insertOrAppendPlacementNode(finishedWork, before, parent);
- }
- }
-
- function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
- var tag = node.tag;
- var isHost = tag === HostComponent || tag === HostText;
-
- if (isHost || enableFundamentalAPI ) {
- var stateNode = isHost ? node.stateNode : node.stateNode.instance;
-
- if (before) {
- insertInContainerBefore(parent, stateNode, before);
- } else {
- appendChildToContainer(parent, stateNode);
- }
- } else if (tag === HostPortal) ; else {
- var child = node.child;
-
- if (child !== null) {
- insertOrAppendPlacementNodeIntoContainer(child, before, parent);
- var sibling = child.sibling;
-
- while (sibling !== null) {
- insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
- sibling = sibling.sibling;
- }
- }
- }
- }
-
- function insertOrAppendPlacementNode(node, before, parent) {
- var tag = node.tag;
- var isHost = tag === HostComponent || tag === HostText;
-
- if (isHost || enableFundamentalAPI ) {
- var stateNode = isHost ? node.stateNode : node.stateNode.instance;
-
- if (before) {
- insertBefore(parent, stateNode, before);
- } else {
- appendChild(parent, stateNode);
- }
- } else if (tag === HostPortal) ; else {
- var child = node.child;
-
- if (child !== null) {
- insertOrAppendPlacementNode(child, before, parent);
- var sibling = child.sibling;
-
- while (sibling !== null) {
- insertOrAppendPlacementNode(sibling, before, parent);
- sibling = sibling.sibling;
- }
- }
- }
- }
-
- function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
- // We only have the top Fiber that was deleted but we need to recurse down its
- // children to find all the terminal nodes.
- var node = current; // Each iteration, currentParent is populated with node's host parent if not
- // currentParentIsValid.
-
- var currentParentIsValid = false; // Note: these two variables *must* always be updated together.
-
- var currentParent;
- var currentParentIsContainer;
-
- while (true) {
- if (!currentParentIsValid) {
- var parent = node.return;
-
- findParent: while (true) {
- if (!(parent !== null)) {
- {
- throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var parentStateNode = parent.stateNode;
-
- switch (parent.tag) {
- case HostComponent:
- currentParent = parentStateNode;
- currentParentIsContainer = false;
- break findParent;
-
- case HostRoot:
- currentParent = parentStateNode.containerInfo;
- currentParentIsContainer = true;
- break findParent;
-
- case HostPortal:
- currentParent = parentStateNode.containerInfo;
- currentParentIsContainer = true;
- break findParent;
-
- }
-
- parent = parent.return;
- }
-
- currentParentIsValid = true;
- }
-
- if (node.tag === HostComponent || node.tag === HostText) {
- commitNestedUnmounts(finishedRoot, node); // After all the children have unmounted, it is now safe to remove the
- // node from the tree.
-
- if (currentParentIsContainer) {
- removeChildFromContainer(currentParent, node.stateNode);
- } else {
- removeChild(currentParent, node.stateNode);
- } // Don't visit children because we already visited them.
-
- } else if (node.tag === HostPortal) {
- if (node.child !== null) {
- // When we go into a portal, it becomes the parent to remove from.
- // We will reassign it back when we pop the portal on the way up.
- currentParent = node.stateNode.containerInfo;
- currentParentIsContainer = true; // Visit children because portals might contain host components.
-
- node.child.return = node;
- node = node.child;
- continue;
- }
- } else {
- commitUnmount(finishedRoot, node); // Visit children because we may find more host components below.
-
- if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
- }
-
- if (node === current) {
- return;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === current) {
- return;
- }
-
- node = node.return;
-
- if (node.tag === HostPortal) {
- // When we go out of the portal, we need to restore the parent.
- // Since we don't keep a stack of them, we will search for it.
- currentParentIsValid = false;
- }
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- function commitDeletion(finishedRoot, current, renderPriorityLevel) {
- {
- // Recursively delete all host nodes from the parent.
- // Detach refs and call componentWillUnmount() on the whole subtree.
- unmountHostComponents(finishedRoot, current);
- }
-
- var alternate = current.alternate;
- detachFiberMutation(current);
-
- if (alternate !== null) {
- detachFiberMutation(alternate);
- }
- }
-
- function commitWork(current, finishedWork) {
-
- switch (finishedWork.tag) {
- case FunctionComponent:
- case ForwardRef:
- case MemoComponent:
- case SimpleMemoComponent:
- case Block:
- {
- // Layout effects are destroyed during the mutation phase so that all
- // destroy functions for all fibers are called before any create functions.
- // This prevents sibling component effects from interfering with each other,
- // e.g. a destroy function in one component should never override a ref set
- // by a create function in another component during the same commit.
- {
- commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
- }
-
- return;
- }
-
- case ClassComponent:
- {
- return;
- }
-
- case HostComponent:
- {
- var instance = finishedWork.stateNode;
-
- if (instance != null) {
- // Commit the work prepared earlier.
- var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
- // as the newProps. The updatePayload will contain the real change in
- // this case.
-
- var oldProps = current !== null ? current.memoizedProps : newProps;
- var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
-
- var updatePayload = finishedWork.updateQueue;
- finishedWork.updateQueue = null;
-
- if (updatePayload !== null) {
- commitUpdate(instance, updatePayload, type, oldProps, newProps);
- }
- }
-
- return;
- }
-
- case HostText:
- {
- if (!(finishedWork.stateNode !== null)) {
- {
- throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
-
- var textInstance = finishedWork.stateNode;
- var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
- // as the newProps. The updatePayload will contain the real change in
- // this case.
-
- var oldText = current !== null ? current.memoizedProps : newText;
- commitTextUpdate(textInstance, oldText, newText);
- return;
- }
-
- case HostRoot:
- {
- {
- var _root = finishedWork.stateNode;
-
- if (_root.hydrate) {
- // We've just hydrated. No need to hydrate again.
- _root.hydrate = false;
- commitHydratedContainer(_root.containerInfo);
- }
- }
-
- return;
- }
-
- case Profiler:
- {
- return;
- }
-
- case SuspenseComponent:
- {
- commitSuspenseComponent(finishedWork);
- attachSuspenseRetryListeners(finishedWork);
- return;
- }
-
- case SuspenseListComponent:
- {
- attachSuspenseRetryListeners(finishedWork);
- return;
- }
-
- case IncompleteClassComponent:
- {
- return;
- }
-
- case FundamentalComponent:
- {
-
- break;
- }
-
- case ScopeComponent:
- {
-
- break;
- }
-
- case OffscreenComponent:
- case LegacyHiddenComponent:
- {
- var newState = finishedWork.memoizedState;
- var isHidden = newState !== null;
- hideOrUnhideAllChildren(finishedWork, isHidden);
- return;
- }
- }
-
- {
- {
- throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
- function commitSuspenseComponent(finishedWork) {
- var newState = finishedWork.memoizedState;
-
- if (newState !== null) {
- markCommitTimeOfFallback();
-
- {
- // Hide the Offscreen component that contains the primary children. TODO:
- // Ideally, this effect would have been scheduled on the Offscreen fiber
- // itself. That's how unhiding works: the Offscreen component schedules an
- // effect on itself. However, in this case, the component didn't complete,
- // so the fiber was never added to the effect list in the normal path. We
- // could have appended it to the effect list in the Suspense component's
- // second pass, but doing it this way is less complicated. This would be
- // simpler if we got rid of the effect list and traversed the tree, like
- // we're planning to do.
- var primaryChildParent = finishedWork.child;
- hideOrUnhideAllChildren(primaryChildParent, true);
- }
- }
- }
-
- function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
-
- var newState = finishedWork.memoizedState;
-
- if (newState === null) {
- var current = finishedWork.alternate;
-
- if (current !== null) {
- var prevState = current.memoizedState;
-
- if (prevState !== null) {
- var suspenseInstance = prevState.dehydrated;
-
- if (suspenseInstance !== null) {
- commitHydratedSuspenseInstance(suspenseInstance);
- }
- }
- }
- }
- }
-
- function attachSuspenseRetryListeners(finishedWork) {
- // If this boundary just timed out, then it will have a set of wakeables.
- // For each wakeable, attach a listener so that when it resolves, React
- // attempts to re-render the boundary in the primary (pre-timeout) state.
- var wakeables = finishedWork.updateQueue;
-
- if (wakeables !== null) {
- finishedWork.updateQueue = null;
- var retryCache = finishedWork.stateNode;
-
- if (retryCache === null) {
- retryCache = finishedWork.stateNode = new PossiblyWeakSet();
- }
-
- wakeables.forEach(function (wakeable) {
- // Memoize using the boundary fiber to prevent redundant listeners.
- var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);
-
- if (!retryCache.has(wakeable)) {
- {
- if (wakeable.__reactDoNotTraceInteractions !== true) {
- retry = unstable_wrap(retry);
- }
- }
-
- retryCache.add(wakeable);
- wakeable.then(retry, retry);
- }
- });
- }
- } // This function detects when a Suspense boundary goes from visible to hidden.
- // It returns false if the boundary is already hidden.
- // TODO: Use an effect tag.
-
-
- function isSuspenseBoundaryBeingHidden(current, finishedWork) {
- if (current !== null) {
- var oldState = current.memoizedState;
-
- if (oldState === null || oldState.dehydrated !== null) {
- var newState = finishedWork.memoizedState;
- return newState !== null && newState.dehydrated === null;
- }
- }
-
- return false;
- }
-
- function commitResetTextContent(current) {
-
- resetTextContent(current.stateNode);
- }
-
- var COMPONENT_TYPE = 0;
- var HAS_PSEUDO_CLASS_TYPE = 1;
- var ROLE_TYPE = 2;
- var TEST_NAME_TYPE = 3;
- var TEXT_TYPE = 4;
-
- if (typeof Symbol === 'function' && Symbol.for) {
- var symbolFor$1 = Symbol.for;
- COMPONENT_TYPE = symbolFor$1('selector.component');
- HAS_PSEUDO_CLASS_TYPE = symbolFor$1('selector.has_pseudo_class');
- ROLE_TYPE = symbolFor$1('selector.role');
- TEST_NAME_TYPE = symbolFor$1('selector.test_id');
- TEXT_TYPE = symbolFor$1('selector.text');
- }
- var commitHooks = [];
- function onCommitRoot$1() {
- {
- commitHooks.forEach(function (commitHook) {
- return commitHook();
- });
- }
- }
-
- var ceil = Math.ceil;
- var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
- ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
- IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
- var NoContext =
- /* */
- 0;
- var BatchedContext =
- /* */
- 1;
- var EventContext =
- /* */
- 2;
- var DiscreteEventContext =
- /* */
- 4;
- var LegacyUnbatchedContext =
- /* */
- 8;
- var RenderContext =
- /* */
- 16;
- var CommitContext =
- /* */
- 32;
- var RetryAfterError =
- /* */
- 64;
- var RootIncomplete = 0;
- var RootFatalErrored = 1;
- var RootErrored = 2;
- var RootSuspended = 3;
- var RootSuspendedWithDelay = 4;
- var RootCompleted = 5; // Describes where we are in the React execution stack
-
- var executionContext = NoContext; // The root we're working on
-
- var workInProgressRoot = null; // The fiber we're working on
-
- var workInProgress = null; // The lanes we're rendering
-
- var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree
- // This is a superset of the lanes we started working on at the root. The only
- // case where it's different from `workInProgressRootRenderLanes` is when we
- // enter a subtree that is hidden and needs to be unhidden: Suspense and
- // Offscreen component.
- //
- // Most things in the work loop should deal with workInProgressRootRenderLanes.
- // Most things in begin/complete phases should deal with subtreeRenderLanes.
-
- var subtreeRenderLanes = NoLanes;
- var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.
-
- var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown
-
- var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's
- // slightly different than `renderLanes` because `renderLanes` can change as you
- // enter and exit an Offscreen tree. This value is the combination of all render
- // lanes for the entire render phase.
-
- var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only
- // includes unprocessed updates, not work in bailed out children.
-
- var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.
-
- var workInProgressRootUpdatedLanes = NoLanes; // Lanes that were pinged (in an interleaved event) during this render.
-
- var workInProgressRootPingedLanes = NoLanes;
- var mostRecentlyUpdatedRoot = null; // The most recent time we committed a fallback. This lets us ensure a train
- // model where we don't commit new loading states in too quick succession.
-
- var globalMostRecentFallbackTime = 0;
- var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering
- // more and prefer CPU suspense heuristics instead.
-
- var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU
- // suspense heuristics and opt out of rendering more content.
-
- var RENDER_TIMEOUT_MS = 500;
-
- function resetRenderTimer() {
- workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;
- }
-
- function getRenderTargetTime() {
- return workInProgressRootRenderTargetTime;
- }
- var nextEffect = null;
- var hasUncaughtError = false;
- var firstUncaughtError = null;
- var legacyErrorBoundariesThatAlreadyFailed = null;
- var rootDoesHavePassiveEffects = false;
- var rootWithPendingPassiveEffects = null;
- var pendingPassiveEffectsRenderPriority = NoPriority$1;
- var pendingPassiveEffectsLanes = NoLanes;
- var pendingPassiveHookEffectsMount = [];
- var pendingPassiveHookEffectsUnmount = [];
- var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates
-
- var NESTED_UPDATE_LIMIT = 50;
- var nestedUpdateCount = 0;
- var rootWithNestedUpdates = null;
- var NESTED_PASSIVE_UPDATE_LIMIT = 50;
- var nestedPassiveUpdateCount = 0; // Marks the need to reschedule pending interactions at these lanes
- // during the commit phase. This enables them to be traced across components
- // that spawn new work during render. E.g. hidden boundaries, suspended SSR
- // hydration or SuspenseList.
- // TODO: Can use a bitmask instead of an array
-
- var spawnedWorkDuringRender = null; // If two updates are scheduled within the same event, we should treat their
- // event times as simultaneous, even if the actual clock time has advanced
- // between the first and second call.
-
- var currentEventTime = NoTimestamp;
- var currentEventWipLanes = NoLanes;
- var currentEventPendingLanes = NoLanes; // Dev only flag that tracks if passive effects are currently being flushed.
- // We warn about state updates for unmounted components differently in this case.
-
- var isFlushingPassiveEffects = false;
- var focusedInstanceHandle = null;
- var shouldFireAfterActiveInstanceBlur = false;
- function getWorkInProgressRoot() {
- return workInProgressRoot;
- }
- function requestEventTime() {
- if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
- // We're inside React, so it's fine to read the actual time.
- return now();
- } // We're not inside React, so we may be in the middle of a browser event.
-
-
- if (currentEventTime !== NoTimestamp) {
- // Use the same start time for all updates until we enter React again.
- return currentEventTime;
- } // This is the first update since React yielded. Compute a new start time.
-
-
- currentEventTime = now();
- return currentEventTime;
- }
- function requestUpdateLane(fiber) {
- // Special cases
- var mode = fiber.mode;
-
- if ((mode & BlockingMode) === NoMode) {
- return SyncLane;
- } else if ((mode & ConcurrentMode) === NoMode) {
- return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
- } // The algorithm for assigning an update to a lane should be stable for all
- // updates at the same priority within the same event. To do this, the inputs
- // to the algorithm must be the same. For example, we use the `renderLanes`
- // to avoid choosing a lane that is already in the middle of rendering.
- //
- // However, the "included" lanes could be mutated in between updates in the
- // same event, like if you perform an update inside `flushSync`. Or any other
- // code path that might call `prepareFreshStack`.
- //
- // The trick we use is to cache the first of each of these inputs within an
- // event. Then reset the cached values once we can be sure the event is over.
- // Our heuristic for that is whenever we enter a concurrent work loop.
- //
- // We'll do the same for `currentEventPendingLanes` below.
-
-
- if (currentEventWipLanes === NoLanes) {
- currentEventWipLanes = workInProgressRootIncludedLanes;
- }
-
- var isTransition = requestCurrentTransition() !== NoTransition;
-
- if (isTransition) {
- if (currentEventPendingLanes !== NoLanes) {
- currentEventPendingLanes = mostRecentlyUpdatedRoot !== null ? mostRecentlyUpdatedRoot.pendingLanes : NoLanes;
- }
-
- return findTransitionLane(currentEventWipLanes, currentEventPendingLanes);
- } // TODO: Remove this dependency on the Scheduler priority.
- // To do that, we're replacing it with an update lane priority.
-
-
- var schedulerPriority = getCurrentPriorityLevel(); // The old behavior was using the priority level of the Scheduler.
- // This couples React to the Scheduler internals, so we're replacing it
- // with the currentUpdateLanePriority above. As an example of how this
- // could be problematic, if we're not inside `Scheduler.runWithPriority`,
- // then we'll get the priority of the current running Scheduler task,
- // which is probably not what we want.
-
- var lane;
-
- if ( // TODO: Temporary. We're removing the concept of discrete updates.
- (executionContext & DiscreteEventContext) !== NoContext && schedulerPriority === UserBlockingPriority$2) {
- lane = findUpdateLane(InputDiscreteLanePriority, currentEventWipLanes);
- } else {
- var schedulerLanePriority = schedulerPriorityToLanePriority(schedulerPriority);
-
- lane = findUpdateLane(schedulerLanePriority, currentEventWipLanes);
- }
-
- return lane;
- }
-
- function requestRetryLane(fiber) {
- // This is a fork of `requestUpdateLane` designed specifically for Suspense
- // "retries" — a special update that attempts to flip a Suspense boundary
- // from its placeholder state to its primary/resolved state.
- // Special cases
- var mode = fiber.mode;
-
- if ((mode & BlockingMode) === NoMode) {
- return SyncLane;
- } else if ((mode & ConcurrentMode) === NoMode) {
- return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
- } // See `requestUpdateLane` for explanation of `currentEventWipLanes`
-
-
- if (currentEventWipLanes === NoLanes) {
- currentEventWipLanes = workInProgressRootIncludedLanes;
- }
-
- return findRetryLane(currentEventWipLanes);
- }
-
- function scheduleUpdateOnFiber(fiber, lane, eventTime) {
- checkForNestedUpdates();
- warnAboutRenderPhaseUpdatesInDEV(fiber);
- var root = markUpdateLaneFromFiberToRoot(fiber, lane);
-
- if (root === null) {
- warnAboutUpdateOnUnmountedFiberInDEV(fiber);
- return null;
- } // Mark that the root has a pending update.
-
-
- markRootUpdated(root, lane, eventTime);
-
- if (root === workInProgressRoot) {
- // Received an update to a tree that's in the middle of rendering. Mark
- // that there was an interleaved update work on this root. Unless the
- // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
- // phase update. In that case, we don't treat render phase updates as if
- // they were interleaved, for backwards compat reasons.
- {
- workInProgressRootUpdatedLanes = mergeLanes(workInProgressRootUpdatedLanes, lane);
- }
-
- if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
- // The root already suspended with a delay, which means this render
- // definitely won't finish. Since we have a new update, let's mark it as
- // suspended now, right before marking the incoming update. This has the
- // effect of interrupting the current render and switching to the update.
- // TODO: Make sure this doesn't override pings that happen while we've
- // already started rendering.
- markRootSuspended$1(root, workInProgressRootRenderLanes);
- }
- } // TODO: requestUpdateLanePriority also reads the priority. Pass the
- // priority as an argument to that function and this one.
-
-
- var priorityLevel = getCurrentPriorityLevel();
-
- if (lane === SyncLane) {
- if ( // Check if we're inside unbatchedUpdates
- (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
- (executionContext & (RenderContext | CommitContext)) === NoContext) {
- // Register pending interactions on the root to avoid losing traced interaction data.
- schedulePendingInteractions(root, lane); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
- // root inside of batchedUpdates should be synchronous, but layout updates
- // should be deferred until the end of the batch.
-
- performSyncWorkOnRoot(root);
- } else {
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, lane);
-
- if (executionContext === NoContext) {
- // Flush the synchronous work now, unless we're already working or inside
- // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
- // scheduleCallbackForFiber to preserve the ability to schedule a callback
- // without immediately flushing it. We only do this for user-initiated
- // updates, to preserve historical behavior of legacy mode.
- resetRenderTimer();
- flushSyncCallbackQueue();
- }
- }
- } else {
- // Schedule a discrete update but only if it's not Sync.
- if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
- // discrete, even inside a discrete event.
- priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority$1)) {
- // This is the result of a discrete event. Track the lowest priority
- // discrete update per root so we can flush them early, if needed.
- if (rootsWithPendingDiscreteUpdates === null) {
- rootsWithPendingDiscreteUpdates = new Set([root]);
- } else {
- rootsWithPendingDiscreteUpdates.add(root);
- }
- } // Schedule other updates after in case the callback is sync.
-
-
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, lane);
- } // We use this when assigning a lane for a transition inside
- // `requestUpdateLane`. We assume it's the same as the root being updated,
- // since in the common case of a single root app it probably is. If it's not
- // the same root, then it's not a huge deal, we just might batch more stuff
- // together more than necessary.
-
-
- mostRecentlyUpdatedRoot = root;
- } // This is split into a separate function so we can mark a fiber with pending
- // work without treating it as a typical update that originates from an event;
- // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
- // on a fiber.
-
- function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
- // Update the source fiber's lanes
- sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
- var alternate = sourceFiber.alternate;
-
- if (alternate !== null) {
- alternate.lanes = mergeLanes(alternate.lanes, lane);
- }
-
- {
- if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {
- warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
- }
- } // Walk the parent path to the root and update the child expiration time.
-
-
- var node = sourceFiber;
- var parent = sourceFiber.return;
-
- while (parent !== null) {
- parent.childLanes = mergeLanes(parent.childLanes, lane);
- alternate = parent.alternate;
-
- if (alternate !== null) {
- alternate.childLanes = mergeLanes(alternate.childLanes, lane);
- } else {
- {
- if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {
- warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
- }
- }
- }
-
- node = parent;
- parent = parent.return;
- }
-
- if (node.tag === HostRoot) {
- var root = node.stateNode;
- return root;
- } else {
- return null;
- }
- } // Use this function to schedule a task for a root. There's only one task per
- // root; if a task was already scheduled, we'll check to make sure the priority
- // of the existing task is the same as the priority of the next level that the
- // root has work on. This function is called on every update, and right before
- // exiting a task.
-
-
- function ensureRootIsScheduled(root, currentTime) {
- var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as
- // expired so we know to work on those next.
-
- markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.
-
- var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); // This returns the priority level computed during the `getNextLanes` call.
-
- var newCallbackPriority = returnNextLanesPriority();
-
- if (nextLanes === NoLanes) {
- // Special case: There's nothing to work on.
- if (existingCallbackNode !== null) {
- cancelCallback(existingCallbackNode);
- root.callbackNode = null;
- root.callbackPriority = NoLanePriority;
- }
-
- return;
- } // Check if there's an existing task. We may be able to reuse it.
-
-
- if (existingCallbackNode !== null) {
- var existingCallbackPriority = root.callbackPriority;
-
- if (existingCallbackPriority === newCallbackPriority) {
- // The priority hasn't changed. We can reuse the existing task. Exit.
- return;
- } // The priority changed. Cancel the existing callback. We'll schedule a new
- // one below.
-
-
- cancelCallback(existingCallbackNode);
- } // Schedule a new callback.
-
-
- var newCallbackNode;
-
- if (newCallbackPriority === SyncLanePriority) {
- // Special case: Sync React callbacks are scheduled on a special
- // internal queue
- newCallbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
- } else if (newCallbackPriority === SyncBatchedLanePriority) {
- newCallbackNode = scheduleCallback(ImmediatePriority$1, performSyncWorkOnRoot.bind(null, root));
- } else {
- var schedulerPriorityLevel = lanePriorityToSchedulerPriority(newCallbackPriority);
- newCallbackNode = scheduleCallback(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));
- }
-
- root.callbackPriority = newCallbackPriority;
- root.callbackNode = newCallbackNode;
- } // This is the entry point for every concurrent task, i.e. anything that
- // goes through Scheduler.
-
-
- function performConcurrentWorkOnRoot(root) {
- // Since we know we're in a React event, we can clear the current
- // event time. The next update will compute a new event time.
- currentEventTime = NoTimestamp;
- currentEventWipLanes = NoLanes;
- currentEventPendingLanes = NoLanes;
-
- if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
- {
- throw Error( "Should not already be working." );
- }
- } // Flush any pending passive effects before deciding which lanes to work on,
- // in case they schedule additional work.
-
-
- var originalCallbackNode = root.callbackNode;
- var didFlushPassiveEffects = flushPassiveEffects();
-
- if (didFlushPassiveEffects) {
- // Something in the passive effect phase may have canceled the current task.
- // Check if the task node for this root was changed.
- if (root.callbackNode !== originalCallbackNode) {
- // The current task was canceled. Exit. We don't need to call
- // `ensureRootIsScheduled` because the check above implies either that
- // there's a new task, or that there's no remaining work on this root.
- return null;
- }
- } // Determine the next expiration time to work on, using the fields stored
- // on the root.
-
-
- var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);
-
- if (lanes === NoLanes) {
- // Defensive coding. This is never expected to happen.
- return null;
- }
-
- var exitStatus = renderRootConcurrent(root, lanes);
-
- if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
- // The render included lanes that were updated during the render phase.
- // For example, when unhiding a hidden tree, we include all the lanes
- // that were previously skipped when the tree was hidden. That set of
- // lanes is a superset of the lanes we started rendering with.
- //
- // So we'll throw out the current work and restart.
- prepareFreshStack(root, NoLanes);
- } else if (exitStatus !== RootIncomplete) {
- if (exitStatus === RootErrored) {
- executionContext |= RetryAfterError; // If an error occurred during hydration,
- // discard server response and fall back to client side render.
-
- if (root.hydrate) {
- root.hydrate = false;
- clearContainer(root.containerInfo);
- } // If something threw an error, try rendering one more time. We'll render
- // synchronously to block concurrent data mutations, and we'll includes
- // all pending updates are included. If it still fails after the second
- // attempt, we'll give up and commit the resulting tree.
-
-
- lanes = getLanesToRetrySynchronouslyOnError(root);
-
- if (lanes !== NoLanes) {
- exitStatus = renderRootSync(root, lanes);
- }
- }
-
- if (exitStatus === RootFatalErrored) {
- var fatalError = workInProgressRootFatalError;
- prepareFreshStack(root, NoLanes);
- markRootSuspended$1(root, lanes);
- ensureRootIsScheduled(root, now());
- throw fatalError;
- } // We now have a consistent tree. The next step is either to commit it,
- // or, if something suspended, wait to commit it after a timeout.
-
-
- var finishedWork = root.current.alternate;
- root.finishedWork = finishedWork;
- root.finishedLanes = lanes;
- finishConcurrentRender(root, exitStatus, lanes);
- }
-
- ensureRootIsScheduled(root, now());
-
- if (root.callbackNode === originalCallbackNode) {
- // The task node scheduled for this root is the same one that's
- // currently executed. Need to return a continuation.
- return performConcurrentWorkOnRoot.bind(null, root);
- }
-
- return null;
- }
-
- function finishConcurrentRender(root, exitStatus, lanes) {
- switch (exitStatus) {
- case RootIncomplete:
- case RootFatalErrored:
- {
- {
- {
- throw Error( "Root did not complete. This is a bug in React." );
- }
- }
- }
- // Flow knows about invariant, so it complains if I add a break
- // statement, but eslint doesn't know about invariant, so it complains
- // if I do. eslint-disable-next-line no-fallthrough
-
- case RootErrored:
- {
- // We should have already attempted to retry this tree. If we reached
- // this point, it errored again. Commit it.
- commitRoot(root);
- break;
- }
-
- case RootSuspended:
- {
- markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we
- // should immediately commit it or wait a bit.
-
- if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
- !shouldForceFlushFallbacksInDEV()) {
- // This render only included retries, no updates. Throttle committing
- // retries so that we don't show too many loading states too quickly.
- var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
-
- if (msUntilTimeout > 10) {
- var nextLanes = getNextLanes(root, NoLanes);
-
- if (nextLanes !== NoLanes) {
- // There's additional work on this root.
- break;
- }
-
- var suspendedLanes = root.suspendedLanes;
-
- if (!isSubsetOfLanes(suspendedLanes, lanes)) {
- // We should prefer to render the fallback of at the last
- // suspended level. Ping the last suspended level to try
- // rendering it again.
- // FIXME: What if the suspended lanes are Idle? Should not restart.
- var eventTime = requestEventTime();
- markRootPinged(root, suspendedLanes);
- break;
- } // The render is suspended, it hasn't timed out, and there's no
- // lower priority work to do. Instead of committing the fallback
- // immediately, wait for more data to arrive.
-
-
- root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
- break;
- }
- } // The work expired. Commit immediately.
-
-
- commitRoot(root);
- break;
- }
-
- case RootSuspendedWithDelay:
- {
- markRootSuspended$1(root, lanes);
-
- if (includesOnlyTransitions(lanes)) {
- // This is a transition, so we should exit without committing a
- // placeholder and without scheduling a timeout. Delay indefinitely
- // until we receive more data.
- break;
- }
-
- if (!shouldForceFlushFallbacksInDEV()) {
- // This is not a transition, but we did trigger an avoided state.
- // Schedule a placeholder to display after a short delay, using the Just
- // Noticeable Difference.
- // TODO: Is the JND optimization worth the added complexity? If this is
- // the only reason we track the event time, then probably not.
- // Consider removing.
- var mostRecentEventTime = getMostRecentEventTime(root, lanes);
- var eventTimeMs = mostRecentEventTime;
- var timeElapsedMs = now() - eventTimeMs;
-
- var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.
-
-
- if (_msUntilTimeout > 10) {
- // Instead of committing the fallback immediately, wait for more data
- // to arrive.
- root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
- break;
- }
- } // Commit the placeholder.
-
-
- commitRoot(root);
- break;
- }
-
- case RootCompleted:
- {
- // The work completed. Ready to commit.
- commitRoot(root);
- break;
- }
-
- default:
- {
- {
- {
- throw Error( "Unknown root exit status." );
- }
- }
- }
- }
- }
-
- function markRootSuspended$1(root, suspendedLanes) {
- // When suspending, we should always exclude lanes that were pinged or (more
- // rarely, since we try to avoid it) updated during the render phase.
- // TODO: Lol maybe there's a better way to factor this besides this
- // obnoxiously named function :)
- suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
- suspendedLanes = removeLanes(suspendedLanes, workInProgressRootUpdatedLanes);
- markRootSuspended(root, suspendedLanes);
- } // This is the entry point for synchronous tasks that don't go
- // through Scheduler
-
-
- function performSyncWorkOnRoot(root) {
- if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
- {
- throw Error( "Should not already be working." );
- }
- }
-
- flushPassiveEffects();
- var lanes;
- var exitStatus;
-
- if (root === workInProgressRoot && includesSomeLane(root.expiredLanes, workInProgressRootRenderLanes)) {
- // There's a partial tree, and at least one of its lanes has expired. Finish
- // rendering it before rendering the rest of the expired work.
- lanes = workInProgressRootRenderLanes;
- exitStatus = renderRootSync(root, lanes);
-
- if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
- // The render included lanes that were updated during the render phase.
- // For example, when unhiding a hidden tree, we include all the lanes
- // that were previously skipped when the tree was hidden. That set of
- // lanes is a superset of the lanes we started rendering with.
- //
- // Note that this only happens when part of the tree is rendered
- // concurrently. If the whole tree is rendered synchronously, then there
- // are no interleaved events.
- lanes = getNextLanes(root, lanes);
- exitStatus = renderRootSync(root, lanes);
- }
- } else {
- lanes = getNextLanes(root, NoLanes);
- exitStatus = renderRootSync(root, lanes);
- }
-
- if (root.tag !== LegacyRoot && exitStatus === RootErrored) {
- executionContext |= RetryAfterError; // If an error occurred during hydration,
- // discard server response and fall back to client side render.
-
- if (root.hydrate) {
- root.hydrate = false;
- clearContainer(root.containerInfo);
- } // If something threw an error, try rendering one more time. We'll render
- // synchronously to block concurrent data mutations, and we'll includes
- // all pending updates are included. If it still fails after the second
- // attempt, we'll give up and commit the resulting tree.
-
-
- lanes = getLanesToRetrySynchronouslyOnError(root);
-
- if (lanes !== NoLanes) {
- exitStatus = renderRootSync(root, lanes);
- }
- }
-
- if (exitStatus === RootFatalErrored) {
- var fatalError = workInProgressRootFatalError;
- prepareFreshStack(root, NoLanes);
- markRootSuspended$1(root, lanes);
- ensureRootIsScheduled(root, now());
- throw fatalError;
- } // We now have a consistent tree. Because this is a sync render, we
- // will commit it even if something suspended.
-
-
- var finishedWork = root.current.alternate;
- root.finishedWork = finishedWork;
- root.finishedLanes = lanes;
- commitRoot(root); // Before exiting, make sure there's a callback scheduled for the next
- // pending level.
-
- ensureRootIsScheduled(root, now());
- return null;
- }
- function flushDiscreteUpdates() {
- // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
- // However, `act` uses `batchedUpdates`, so there's no way to distinguish
- // those two cases. Need to fix this before exposing flushDiscreteUpdates
- // as a public API.
- if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
- {
- if ((executionContext & RenderContext) !== NoContext) {
- error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
- }
- } // We're already rendering, so we can't synchronously flush pending work.
- // This is probably a nested event dispatch triggered by a lifecycle/effect,
- // like `el.focus()`. Exit.
-
-
- return;
- }
-
- flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
- // they fire before the next serial event.
-
- flushPassiveEffects();
- }
-
- function flushPendingDiscreteUpdates() {
- if (rootsWithPendingDiscreteUpdates !== null) {
- // For each root with pending discrete updates, schedule a callback to
- // immediately flush them.
- var roots = rootsWithPendingDiscreteUpdates;
- rootsWithPendingDiscreteUpdates = null;
- roots.forEach(function (root) {
- markDiscreteUpdatesExpired(root);
- ensureRootIsScheduled(root, now());
- });
- } // Now flush the immediate queue.
-
-
- flushSyncCallbackQueue();
- }
-
- function batchedUpdates$1(fn, a) {
- var prevExecutionContext = executionContext;
- executionContext |= BatchedContext;
-
- try {
- return fn(a);
- } finally {
- executionContext = prevExecutionContext;
-
- if (executionContext === NoContext) {
- // Flush the immediate callbacks that were scheduled during this batch
- resetRenderTimer();
- flushSyncCallbackQueue();
- }
- }
- }
- function batchedEventUpdates$1(fn, a) {
- var prevExecutionContext = executionContext;
- executionContext |= EventContext;
-
- try {
- return fn(a);
- } finally {
- executionContext = prevExecutionContext;
-
- if (executionContext === NoContext) {
- // Flush the immediate callbacks that were scheduled during this batch
- resetRenderTimer();
- flushSyncCallbackQueue();
- }
- }
- }
- function discreteUpdates$1(fn, a, b, c, d) {
- var prevExecutionContext = executionContext;
- executionContext |= DiscreteEventContext;
-
- {
- try {
- return runWithPriority$1(UserBlockingPriority$2, fn.bind(null, a, b, c, d));
- } finally {
- executionContext = prevExecutionContext;
-
- if (executionContext === NoContext) {
- // Flush the immediate callbacks that were scheduled during this batch
- resetRenderTimer();
- flushSyncCallbackQueue();
- }
- }
- }
- }
- function unbatchedUpdates(fn, a) {
- var prevExecutionContext = executionContext;
- executionContext &= ~BatchedContext;
- executionContext |= LegacyUnbatchedContext;
-
- try {
- return fn(a);
- } finally {
- executionContext = prevExecutionContext;
-
- if (executionContext === NoContext) {
- // Flush the immediate callbacks that were scheduled during this batch
- resetRenderTimer();
- flushSyncCallbackQueue();
- }
- }
- }
- function flushSync(fn, a) {
- var prevExecutionContext = executionContext;
-
- if ((prevExecutionContext & (RenderContext | CommitContext)) !== NoContext) {
- {
- error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
- }
-
- return fn(a);
- }
-
- executionContext |= BatchedContext;
-
- {
- try {
- if (fn) {
- return runWithPriority$1(ImmediatePriority$1, fn.bind(null, a));
- } else {
- return undefined;
- }
- } finally {
- executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
- // Note that this will happen even if batchedUpdates is higher up
- // the stack.
-
- flushSyncCallbackQueue();
- }
- }
- }
- function pushRenderLanes(fiber, lanes) {
- push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);
- subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);
- workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
- }
- function popRenderLanes(fiber) {
- subtreeRenderLanes = subtreeRenderLanesCursor.current;
- pop(subtreeRenderLanesCursor, fiber);
- }
-
- function prepareFreshStack(root, lanes) {
- root.finishedWork = null;
- root.finishedLanes = NoLanes;
- var timeoutHandle = root.timeoutHandle;
-
- if (timeoutHandle !== noTimeout) {
- // The root previous suspended and scheduled a timeout to commit a fallback
- // state. Now that we have additional work, cancel the timeout.
- root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
-
- cancelTimeout(timeoutHandle);
- }
-
- if (workInProgress !== null) {
- var interruptedWork = workInProgress.return;
-
- while (interruptedWork !== null) {
- unwindInterruptedWork(interruptedWork);
- interruptedWork = interruptedWork.return;
- }
- }
-
- workInProgressRoot = root;
- workInProgress = createWorkInProgress(root.current, null);
- workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;
- workInProgressRootExitStatus = RootIncomplete;
- workInProgressRootFatalError = null;
- workInProgressRootSkippedLanes = NoLanes;
- workInProgressRootUpdatedLanes = NoLanes;
- workInProgressRootPingedLanes = NoLanes;
-
- {
- spawnedWorkDuringRender = null;
- }
-
- {
- ReactStrictModeWarnings.discardPendingWarnings();
- }
- }
-
- function handleError(root, thrownValue) {
- do {
- var erroredWork = workInProgress;
-
- try {
- // Reset module-level state that was set during the render phase.
- resetContextDependencies();
- resetHooksAfterThrow();
- resetCurrentFiber(); // TODO: I found and added this missing line while investigating a
- // separate issue. Write a regression test using string refs.
-
- ReactCurrentOwner$2.current = null;
-
- if (erroredWork === null || erroredWork.return === null) {
- // Expected to be working on a non-root fiber. This is a fatal error
- // because there's no ancestor that can handle it; the root is
- // supposed to capture all errors that weren't caught by an error
- // boundary.
- workInProgressRootExitStatus = RootFatalErrored;
- workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
- // sibling, or the parent if there are no siblings. But since the root
- // has no siblings nor a parent, we set it to null. Usually this is
- // handled by `completeUnitOfWork` or `unwindWork`, but since we're
- // intentionally not calling those, we need set it here.
- // TODO: Consider calling `unwindWork` to pop the contexts.
-
- workInProgress = null;
- return;
- }
-
- if (enableProfilerTimer && erroredWork.mode & ProfileMode) {
- // Record the time spent rendering before an error was thrown. This
- // avoids inaccurate Profiler durations in the case of a
- // suspended render.
- stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);
- }
-
- throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
- completeUnitOfWork(erroredWork);
- } catch (yetAnotherThrownValue) {
- // Something in the return path also threw.
- thrownValue = yetAnotherThrownValue;
-
- if (workInProgress === erroredWork && erroredWork !== null) {
- // If this boundary has already errored, then we had trouble processing
- // the error. Bubble it to the next boundary.
- erroredWork = erroredWork.return;
- workInProgress = erroredWork;
- } else {
- erroredWork = workInProgress;
- }
-
- continue;
- } // Return to the normal work loop.
-
-
- return;
- } while (true);
- }
-
- function pushDispatcher() {
- var prevDispatcher = ReactCurrentDispatcher$2.current;
- ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;
-
- if (prevDispatcher === null) {
- // The React isomorphic package does not include a default dispatcher.
- // Instead the first renderer will lazily attach one, in order to give
- // nicer error messages.
- return ContextOnlyDispatcher;
- } else {
- return prevDispatcher;
- }
- }
-
- function popDispatcher(prevDispatcher) {
- ReactCurrentDispatcher$2.current = prevDispatcher;
- }
-
- function pushInteractions(root) {
- {
- var prevInteractions = __interactionsRef.current;
- __interactionsRef.current = root.memoizedInteractions;
- return prevInteractions;
- }
- }
-
- function popInteractions(prevInteractions) {
- {
- __interactionsRef.current = prevInteractions;
- }
- }
-
- function markCommitTimeOfFallback() {
- globalMostRecentFallbackTime = now();
- }
- function markSkippedUpdateLanes(lane) {
- workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
- }
- function renderDidSuspend() {
- if (workInProgressRootExitStatus === RootIncomplete) {
- workInProgressRootExitStatus = RootSuspended;
- }
- }
- function renderDidSuspendDelayIfPossible() {
- if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
- workInProgressRootExitStatus = RootSuspendedWithDelay;
- } // Check if there are updates that we skipped tree that might have unblocked
- // this render.
-
-
- if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootUpdatedLanes))) {
- // Mark the current render as suspended so that we switch to working on
- // the updates that were skipped. Usually we only suspend at the end of
- // the render phase.
- // TODO: We should probably always mark the root as suspended immediately
- // (inside this function), since by suspending at the end of the render
- // phase introduces a potential mistake where we suspend lanes that were
- // pinged or updated while we were rendering.
- markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
- }
- }
- function renderDidError() {
- if (workInProgressRootExitStatus !== RootCompleted) {
- workInProgressRootExitStatus = RootErrored;
- }
- } // Called during render to determine if anything has suspended.
- // Returns false if we're not sure.
-
- function renderHasNotSuspendedYet() {
- // If something errored or completed, we can't really be sure,
- // so those are false.
- return workInProgressRootExitStatus === RootIncomplete;
- }
-
- function renderRootSync(root, lanes) {
- var prevExecutionContext = executionContext;
- executionContext |= RenderContext;
- var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
- // and prepare a fresh one. Otherwise we'll continue where we left off.
-
- if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
- prepareFreshStack(root, lanes);
- startWorkOnPendingInteractions(root, lanes);
- }
-
- var prevInteractions = pushInteractions(root);
-
- do {
- try {
- workLoopSync();
- break;
- } catch (thrownValue) {
- handleError(root, thrownValue);
- }
- } while (true);
-
- resetContextDependencies();
-
- {
- popInteractions(prevInteractions);
- }
-
- executionContext = prevExecutionContext;
- popDispatcher(prevDispatcher);
-
- if (workInProgress !== null) {
- // This is a sync render, so we should have finished the whole tree.
- {
- {
- throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
- }
- }
- }
-
-
- workInProgressRoot = null;
- workInProgressRootRenderLanes = NoLanes;
- return workInProgressRootExitStatus;
- } // The work loop is an extremely hot path. Tell Closure not to inline it.
-
- /** @noinline */
-
-
- function workLoopSync() {
- // Already timed out, so perform work without checking if we need to yield.
- while (workInProgress !== null) {
- performUnitOfWork(workInProgress);
- }
- }
-
- function renderRootConcurrent(root, lanes) {
- var prevExecutionContext = executionContext;
- executionContext |= RenderContext;
- var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
- // and prepare a fresh one. Otherwise we'll continue where we left off.
-
- if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
- resetRenderTimer();
- prepareFreshStack(root, lanes);
- startWorkOnPendingInteractions(root, lanes);
- }
-
- var prevInteractions = pushInteractions(root);
-
- do {
- try {
- workLoopConcurrent();
- break;
- } catch (thrownValue) {
- handleError(root, thrownValue);
- }
- } while (true);
-
- resetContextDependencies();
-
- {
- popInteractions(prevInteractions);
- }
-
- popDispatcher(prevDispatcher);
- executionContext = prevExecutionContext;
-
-
- if (workInProgress !== null) {
-
- return RootIncomplete;
- } else {
-
-
- workInProgressRoot = null;
- workInProgressRootRenderLanes = NoLanes; // Return the final exit status.
-
- return workInProgressRootExitStatus;
- }
- }
- /** @noinline */
-
-
- function workLoopConcurrent() {
- // Perform work until Scheduler asks us to yield
- while (workInProgress !== null && !shouldYield()) {
- performUnitOfWork(workInProgress);
- }
- }
-
- function performUnitOfWork(unitOfWork) {
- // The current, flushed, state of this fiber is the alternate. Ideally
- // nothing should rely on this, but relying on it here means that we don't
- // need an additional field on the work in progress.
- var current = unitOfWork.alternate;
- setCurrentFiber(unitOfWork);
- var next;
-
- if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
- startProfilerTimer(unitOfWork);
- next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
- stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
- } else {
- next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
- }
-
- resetCurrentFiber();
- unitOfWork.memoizedProps = unitOfWork.pendingProps;
-
- if (next === null) {
- // If this doesn't spawn new work, complete the current work.
- completeUnitOfWork(unitOfWork);
- } else {
- workInProgress = next;
- }
-
- ReactCurrentOwner$2.current = null;
- }
-
- function completeUnitOfWork(unitOfWork) {
- // Attempt to complete the current unit of work, then move to the next
- // sibling. If there are no more siblings, return to the parent fiber.
- var completedWork = unitOfWork;
-
- do {
- // The current, flushed, state of this fiber is the alternate. Ideally
- // nothing should rely on this, but relying on it here means that we don't
- // need an additional field on the work in progress.
- var current = completedWork.alternate;
- var returnFiber = completedWork.return; // Check if the work completed or if something threw.
-
- if ((completedWork.flags & Incomplete) === NoFlags) {
- setCurrentFiber(completedWork);
- var next = void 0;
-
- if ( (completedWork.mode & ProfileMode) === NoMode) {
- next = completeWork(current, completedWork, subtreeRenderLanes);
- } else {
- startProfilerTimer(completedWork);
- next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.
-
- stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);
- }
-
- resetCurrentFiber();
-
- if (next !== null) {
- // Completing this fiber spawned new work. Work on that next.
- workInProgress = next;
- return;
- }
-
- resetChildLanes(completedWork);
-
- if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
- (returnFiber.flags & Incomplete) === NoFlags) {
- // Append all the effects of the subtree and this fiber onto the effect
- // list of the parent. The completion order of the children affects the
- // side-effect order.
- if (returnFiber.firstEffect === null) {
- returnFiber.firstEffect = completedWork.firstEffect;
- }
-
- if (completedWork.lastEffect !== null) {
- if (returnFiber.lastEffect !== null) {
- returnFiber.lastEffect.nextEffect = completedWork.firstEffect;
- }
-
- returnFiber.lastEffect = completedWork.lastEffect;
- } // If this fiber had side-effects, we append it AFTER the children's
- // side-effects. We can perform certain side-effects earlier if needed,
- // by doing multiple passes over the effect list. We don't want to
- // schedule our own side-effect on our own list because if end up
- // reusing children we'll schedule this effect onto itself since we're
- // at the end.
-
-
- var flags = completedWork.flags; // Skip both NoWork and PerformedWork tags when creating the effect
- // list. PerformedWork effect is read by React DevTools but shouldn't be
- // committed.
-
- if (flags > PerformedWork) {
- if (returnFiber.lastEffect !== null) {
- returnFiber.lastEffect.nextEffect = completedWork;
- } else {
- returnFiber.firstEffect = completedWork;
- }
-
- returnFiber.lastEffect = completedWork;
- }
- }
- } else {
- // This fiber did not complete because something threw. Pop values off
- // the stack without entering the complete phase. If this is a boundary,
- // capture values if possible.
- var _next = unwindWork(completedWork); // Because this fiber did not complete, don't reset its expiration time.
-
-
- if (_next !== null) {
- // If completing this work spawned new work, do that next. We'll come
- // back here again.
- // Since we're restarting, remove anything that is not a host effect
- // from the effect tag.
- _next.flags &= HostEffectMask;
- workInProgress = _next;
- return;
- }
-
- if ( (completedWork.mode & ProfileMode) !== NoMode) {
- // Record the render duration for the fiber that errored.
- stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.
-
- var actualDuration = completedWork.actualDuration;
- var child = completedWork.child;
-
- while (child !== null) {
- actualDuration += child.actualDuration;
- child = child.sibling;
- }
-
- completedWork.actualDuration = actualDuration;
- }
-
- if (returnFiber !== null) {
- // Mark the parent fiber as incomplete and clear its effect list.
- returnFiber.firstEffect = returnFiber.lastEffect = null;
- returnFiber.flags |= Incomplete;
- }
- }
-
- var siblingFiber = completedWork.sibling;
-
- if (siblingFiber !== null) {
- // If there is more work to do in this returnFiber, do that next.
- workInProgress = siblingFiber;
- return;
- } // Otherwise, return to the parent
-
-
- completedWork = returnFiber; // Update the next thing we're working on in case something throws.
-
- workInProgress = completedWork;
- } while (completedWork !== null); // We've reached the root.
-
-
- if (workInProgressRootExitStatus === RootIncomplete) {
- workInProgressRootExitStatus = RootCompleted;
- }
- }
-
- function resetChildLanes(completedWork) {
- if ( // TODO: Move this check out of the hot path by moving `resetChildLanes`
- // to switch statement in `completeWork`.
- (completedWork.tag === LegacyHiddenComponent || completedWork.tag === OffscreenComponent) && completedWork.memoizedState !== null && !includesSomeLane(subtreeRenderLanes, OffscreenLane) && (completedWork.mode & ConcurrentMode) !== NoLanes) {
- // The children of this component are hidden. Don't bubble their
- // expiration times.
- return;
- }
-
- var newChildLanes = NoLanes; // Bubble up the earliest expiration time.
-
- if ( (completedWork.mode & ProfileMode) !== NoMode) {
- // In profiling mode, resetChildExpirationTime is also used to reset
- // profiler durations.
- var actualDuration = completedWork.actualDuration;
- var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
- // only be updated if work is done on the fiber (i.e. it doesn't bailout).
- // When work is done, it should bubble to the parent's actualDuration. If
- // the fiber has not been cloned though, (meaning no work was done), then
- // this value will reflect the amount of time spent working on a previous
- // render. In that case it should not bubble. We determine whether it was
- // cloned by comparing the child pointer.
-
- var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
- var child = completedWork.child;
-
- while (child !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));
-
- if (shouldBubbleActualDurations) {
- actualDuration += child.actualDuration;
- }
-
- treeBaseDuration += child.treeBaseDuration;
- child = child.sibling;
- }
-
- var isTimedOutSuspense = completedWork.tag === SuspenseComponent && completedWork.memoizedState !== null;
-
- if (isTimedOutSuspense) {
- // Don't count time spent in a timed out Suspense subtree as part of the base duration.
- var primaryChildFragment = completedWork.child;
-
- if (primaryChildFragment !== null) {
- treeBaseDuration -= primaryChildFragment.treeBaseDuration;
- }
- }
-
- completedWork.actualDuration = actualDuration;
- completedWork.treeBaseDuration = treeBaseDuration;
- } else {
- var _child = completedWork.child;
-
- while (_child !== null) {
- newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));
- _child = _child.sibling;
- }
- }
-
- completedWork.childLanes = newChildLanes;
- }
-
- function commitRoot(root) {
- var renderPriorityLevel = getCurrentPriorityLevel();
- runWithPriority$1(ImmediatePriority$1, commitRootImpl.bind(null, root, renderPriorityLevel));
- return null;
- }
-
- function commitRootImpl(root, renderPriorityLevel) {
- do {
- // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
- // means `flushPassiveEffects` will sometimes result in additional
- // passive effects. So we need to keep flushing in a loop until there are
- // no more pending effects.
- // TODO: Might be better if `flushPassiveEffects` did not automatically
- // flush synchronous work at the end, to avoid factoring hazards like this.
- flushPassiveEffects();
- } while (rootWithPendingPassiveEffects !== null);
-
- flushRenderPhaseStrictModeWarningsInDEV();
-
- if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
- {
- throw Error( "Should not already be working." );
- }
- }
-
- var finishedWork = root.finishedWork;
- var lanes = root.finishedLanes;
-
- if (finishedWork === null) {
-
- return null;
- }
-
- root.finishedWork = null;
- root.finishedLanes = NoLanes;
-
- if (!(finishedWork !== root.current)) {
- {
- throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
- }
- } // commitRoot never returns a continuation; it always finishes synchronously.
- // So we can clear these now to allow a new callback to be scheduled.
-
-
- root.callbackNode = null; // Update the first and last pending times on this root. The new first
- // pending time is whatever is left on the root fiber.
-
- var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
- markRootFinished(root, remainingLanes); // Clear already finished discrete updates in case that a later call of
- // `flushDiscreteUpdates` starts a useless render pass which may cancels
- // a scheduled timeout.
-
- if (rootsWithPendingDiscreteUpdates !== null) {
- if (!hasDiscreteLanes(remainingLanes) && rootsWithPendingDiscreteUpdates.has(root)) {
- rootsWithPendingDiscreteUpdates.delete(root);
- }
- }
-
- if (root === workInProgressRoot) {
- // We can reset these now that they are finished.
- workInProgressRoot = null;
- workInProgress = null;
- workInProgressRootRenderLanes = NoLanes;
- } // Get the list of effects.
-
-
- var firstEffect;
-
- if (finishedWork.flags > PerformedWork) {
- // A fiber's effect list consists only of its children, not itself. So if
- // the root has an effect, we need to add it to the end of the list. The
- // resulting list is the set that would belong to the root's parent, if it
- // had one; that is, all the effects in the tree including the root.
- if (finishedWork.lastEffect !== null) {
- finishedWork.lastEffect.nextEffect = finishedWork;
- firstEffect = finishedWork.firstEffect;
- } else {
- firstEffect = finishedWork;
- }
- } else {
- // There is no effect on the root.
- firstEffect = finishedWork.firstEffect;
- }
-
- if (firstEffect !== null) {
-
- var prevExecutionContext = executionContext;
- executionContext |= CommitContext;
- var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles
-
- ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
- // of the effect list for each phase: all mutation effects come before all
- // layout effects, and so on.
- // The first phase a "before mutation" phase. We use this phase to read the
- // state of the host tree right before we mutate it. This is where
- // getSnapshotBeforeUpdate is called.
-
- focusedInstanceHandle = prepareForCommit(root.containerInfo);
- shouldFireAfterActiveInstanceBlur = false;
- nextEffect = firstEffect;
-
- do {
- {
- invokeGuardedCallback(null, commitBeforeMutationEffects, null);
-
- if (hasCaughtError()) {
- if (!(nextEffect !== null)) {
- {
- throw Error( "Should be working on an effect." );
- }
- }
-
- var error = clearCaughtError();
- captureCommitPhaseError(nextEffect, error);
- nextEffect = nextEffect.nextEffect;
- }
- }
- } while (nextEffect !== null); // We no longer need to track the active instance fiber
-
-
- focusedInstanceHandle = null;
-
- {
- // Mark the current commit time to be shared by all Profilers in this
- // batch. This enables them to be grouped later.
- recordCommitTime();
- } // The next phase is the mutation phase, where we mutate the host tree.
-
-
- nextEffect = firstEffect;
-
- do {
- {
- invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);
-
- if (hasCaughtError()) {
- if (!(nextEffect !== null)) {
- {
- throw Error( "Should be working on an effect." );
- }
- }
-
- var _error = clearCaughtError();
-
- captureCommitPhaseError(nextEffect, _error);
- nextEffect = nextEffect.nextEffect;
- }
- }
- } while (nextEffect !== null);
-
- resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
- // the mutation phase, so that the previous tree is still current during
- // componentWillUnmount, but before the layout phase, so that the finished
- // work is current during componentDidMount/Update.
-
- root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
- // the host tree after it's been mutated. The idiomatic use case for this is
- // layout, but class component lifecycles also fire here for legacy reasons.
-
- nextEffect = firstEffect;
-
- do {
- {
- invokeGuardedCallback(null, commitLayoutEffects, null, root, lanes);
-
- if (hasCaughtError()) {
- if (!(nextEffect !== null)) {
- {
- throw Error( "Should be working on an effect." );
- }
- }
-
- var _error2 = clearCaughtError();
-
- captureCommitPhaseError(nextEffect, _error2);
- nextEffect = nextEffect.nextEffect;
- }
- }
- } while (nextEffect !== null);
-
- nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
- // opportunity to paint.
-
- requestPaint();
-
- {
- popInteractions(prevInteractions);
- }
-
- executionContext = prevExecutionContext;
- } else {
- // No effects.
- root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
- // no effects.
- // TODO: Maybe there's a better way to report this.
-
- {
- recordCommitTime();
- }
- }
-
- var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
-
- if (rootDoesHavePassiveEffects) {
- // This commit has passive effects. Stash a reference to them. But don't
- // schedule a callback until after flushing layout work.
- rootDoesHavePassiveEffects = false;
- rootWithPendingPassiveEffects = root;
- pendingPassiveEffectsLanes = lanes;
- pendingPassiveEffectsRenderPriority = renderPriorityLevel;
- } else {
- // We are done with the effect chain at this point so let's clear the
- // nextEffect pointers to assist with GC. If we have passive effects, we'll
- // clear this in flushPassiveEffects.
- nextEffect = firstEffect;
-
- while (nextEffect !== null) {
- var nextNextEffect = nextEffect.nextEffect;
- nextEffect.nextEffect = null;
-
- if (nextEffect.flags & Deletion) {
- detachFiberAfterEffects(nextEffect);
- }
-
- nextEffect = nextNextEffect;
- }
- } // Read this again, since an effect might have updated it
-
-
- remainingLanes = root.pendingLanes; // Check if there's remaining work on this root
-
- if (remainingLanes !== NoLanes) {
- {
- if (spawnedWorkDuringRender !== null) {
- var expirationTimes = spawnedWorkDuringRender;
- spawnedWorkDuringRender = null;
-
- for (var i = 0; i < expirationTimes.length; i++) {
- scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
- }
- }
-
- schedulePendingInteractions(root, remainingLanes);
- }
- } else {
- // If there's no remaining work, we can clear the set of already failed
- // error boundaries.
- legacyErrorBoundariesThatAlreadyFailed = null;
- }
-
- {
- if (!rootDidHavePassiveEffects) {
- // If there are no passive effects, then we can complete the pending interactions.
- // Otherwise, we'll wait until after the passive effects are flushed.
- // Wait to do this until after remaining work has been scheduled,
- // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
- finishPendingInteractions(root, lanes);
- }
- }
-
- if (remainingLanes === SyncLane) {
- // Count the number of times the root synchronously re-renders without
- // finishing. If there are too many, it indicates an infinite update loop.
- if (root === rootWithNestedUpdates) {
- nestedUpdateCount++;
- } else {
- nestedUpdateCount = 0;
- rootWithNestedUpdates = root;
- }
- } else {
- nestedUpdateCount = 0;
- }
-
- onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
-
- {
- onCommitRoot$1();
- } // Always call this before exiting `commitRoot`, to ensure that any
- // additional work on this root is scheduled.
-
-
- ensureRootIsScheduled(root, now());
-
- if (hasUncaughtError) {
- hasUncaughtError = false;
- var _error3 = firstUncaughtError;
- firstUncaughtError = null;
- throw _error3;
- }
-
- if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
- // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
- // synchronously, but layout updates should be deferred until the end
- // of the batch.
-
-
- return null;
- } // If layout work was scheduled, flush it now.
-
-
- flushSyncCallbackQueue();
-
- return null;
- }
-
- function commitBeforeMutationEffects() {
- while (nextEffect !== null) {
- var current = nextEffect.alternate;
-
- if (!shouldFireAfterActiveInstanceBlur && focusedInstanceHandle !== null) {
- if ((nextEffect.flags & Deletion) !== NoFlags) {
- if (doesFiberContain(nextEffect, focusedInstanceHandle)) {
- shouldFireAfterActiveInstanceBlur = true;
- }
- } else {
- // TODO: Move this out of the hot path using a dedicated effect tag.
- if (nextEffect.tag === SuspenseComponent && isSuspenseBoundaryBeingHidden(current, nextEffect) && doesFiberContain(nextEffect, focusedInstanceHandle)) {
- shouldFireAfterActiveInstanceBlur = true;
- }
- }
- }
-
- var flags = nextEffect.flags;
-
- if ((flags & Snapshot) !== NoFlags) {
- setCurrentFiber(nextEffect);
- commitBeforeMutationLifeCycles(current, nextEffect);
- resetCurrentFiber();
- }
-
- if ((flags & Passive) !== NoFlags) {
- // If there are passive effects, schedule a callback to flush at
- // the earliest opportunity.
- if (!rootDoesHavePassiveEffects) {
- rootDoesHavePassiveEffects = true;
- scheduleCallback(NormalPriority$1, function () {
- flushPassiveEffects();
- return null;
- });
- }
- }
-
- nextEffect = nextEffect.nextEffect;
- }
- }
-
- function commitMutationEffects(root, renderPriorityLevel) {
- // TODO: Should probably move the bulk of this function to commitWork.
- while (nextEffect !== null) {
- setCurrentFiber(nextEffect);
- var flags = nextEffect.flags;
-
- if (flags & ContentReset) {
- commitResetTextContent(nextEffect);
- }
-
- if (flags & Ref) {
- var current = nextEffect.alternate;
-
- if (current !== null) {
- commitDetachRef(current);
- }
- } // The following switch statement is only concerned about placement,
- // updates, and deletions. To avoid needing to add a case for every possible
- // bitmap value, we remove the secondary effects from the effect tag and
- // switch on that value.
-
-
- var primaryFlags = flags & (Placement | Update | Deletion | Hydrating);
-
- switch (primaryFlags) {
- case Placement:
- {
- commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
- // inserted, before any life-cycles like componentDidMount gets called.
- // TODO: findDOMNode doesn't rely on this any more but isMounted does
- // and isMounted is deprecated anyway so we should be able to kill this.
-
- nextEffect.flags &= ~Placement;
- break;
- }
-
- case PlacementAndUpdate:
- {
- // Placement
- commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
- // inserted, before any life-cycles like componentDidMount gets called.
-
- nextEffect.flags &= ~Placement; // Update
-
- var _current = nextEffect.alternate;
- commitWork(_current, nextEffect);
- break;
- }
-
- case Hydrating:
- {
- nextEffect.flags &= ~Hydrating;
- break;
- }
-
- case HydratingAndUpdate:
- {
- nextEffect.flags &= ~Hydrating; // Update
-
- var _current2 = nextEffect.alternate;
- commitWork(_current2, nextEffect);
- break;
- }
-
- case Update:
- {
- var _current3 = nextEffect.alternate;
- commitWork(_current3, nextEffect);
- break;
- }
-
- case Deletion:
- {
- commitDeletion(root, nextEffect);
- break;
- }
- }
-
- resetCurrentFiber();
- nextEffect = nextEffect.nextEffect;
- }
- }
-
- function commitLayoutEffects(root, committedLanes) {
-
-
- while (nextEffect !== null) {
- setCurrentFiber(nextEffect);
- var flags = nextEffect.flags;
-
- if (flags & (Update | Callback)) {
- var current = nextEffect.alternate;
- commitLifeCycles(root, current, nextEffect);
- }
-
- {
- if (flags & Ref) {
- commitAttachRef(nextEffect);
- }
- }
-
- resetCurrentFiber();
- nextEffect = nextEffect.nextEffect;
- }
- }
-
- function flushPassiveEffects() {
- // Returns whether passive effects were flushed.
- if (pendingPassiveEffectsRenderPriority !== NoPriority$1) {
- var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority$1 ? NormalPriority$1 : pendingPassiveEffectsRenderPriority;
- pendingPassiveEffectsRenderPriority = NoPriority$1;
-
- {
- return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
- }
- }
-
- return false;
- }
- function enqueuePendingPassiveHookEffectMount(fiber, effect) {
- pendingPassiveHookEffectsMount.push(effect, fiber);
-
- if (!rootDoesHavePassiveEffects) {
- rootDoesHavePassiveEffects = true;
- scheduleCallback(NormalPriority$1, function () {
- flushPassiveEffects();
- return null;
- });
- }
- }
- function enqueuePendingPassiveHookEffectUnmount(fiber, effect) {
- pendingPassiveHookEffectsUnmount.push(effect, fiber);
-
- {
- fiber.flags |= PassiveUnmountPendingDev;
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.flags |= PassiveUnmountPendingDev;
- }
- }
-
- if (!rootDoesHavePassiveEffects) {
- rootDoesHavePassiveEffects = true;
- scheduleCallback(NormalPriority$1, function () {
- flushPassiveEffects();
- return null;
- });
- }
- }
-
- function invokePassiveEffectCreate(effect) {
- var create = effect.create;
- effect.destroy = create();
- }
-
- function flushPassiveEffectsImpl() {
- if (rootWithPendingPassiveEffects === null) {
- return false;
- }
-
- var root = rootWithPendingPassiveEffects;
- var lanes = pendingPassiveEffectsLanes;
- rootWithPendingPassiveEffects = null;
- pendingPassiveEffectsLanes = NoLanes;
-
- if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
- {
- throw Error( "Cannot flush passive effects while already rendering." );
- }
- }
-
- {
- isFlushingPassiveEffects = true;
- }
-
- var prevExecutionContext = executionContext;
- executionContext |= CommitContext;
- var prevInteractions = pushInteractions(root); // It's important that ALL pending passive effect destroy functions are called
- // before ANY passive effect create functions are called.
- // Otherwise effects in sibling components might interfere with each other.
- // e.g. a destroy function in one component may unintentionally override a ref
- // value set by a create function in another component.
- // Layout effects have the same constraint.
- // First pass: Destroy stale passive effects.
-
- var unmountEffects = pendingPassiveHookEffectsUnmount;
- pendingPassiveHookEffectsUnmount = [];
-
- for (var i = 0; i < unmountEffects.length; i += 2) {
- var _effect = unmountEffects[i];
- var fiber = unmountEffects[i + 1];
- var destroy = _effect.destroy;
- _effect.destroy = undefined;
-
- {
- fiber.flags &= ~PassiveUnmountPendingDev;
- var alternate = fiber.alternate;
-
- if (alternate !== null) {
- alternate.flags &= ~PassiveUnmountPendingDev;
- }
- }
-
- if (typeof destroy === 'function') {
- {
- setCurrentFiber(fiber);
-
- {
- invokeGuardedCallback(null, destroy, null);
- }
-
- if (hasCaughtError()) {
- if (!(fiber !== null)) {
- {
- throw Error( "Should be working on an effect." );
- }
- }
-
- var error = clearCaughtError();
- captureCommitPhaseError(fiber, error);
- }
-
- resetCurrentFiber();
- }
- }
- } // Second pass: Create new passive effects.
-
-
- var mountEffects = pendingPassiveHookEffectsMount;
- pendingPassiveHookEffectsMount = [];
-
- for (var _i = 0; _i < mountEffects.length; _i += 2) {
- var _effect2 = mountEffects[_i];
- var _fiber = mountEffects[_i + 1];
-
- {
- setCurrentFiber(_fiber);
-
- {
- invokeGuardedCallback(null, invokePassiveEffectCreate, null, _effect2);
- }
-
- if (hasCaughtError()) {
- if (!(_fiber !== null)) {
- {
- throw Error( "Should be working on an effect." );
- }
- }
-
- var _error4 = clearCaughtError();
-
- captureCommitPhaseError(_fiber, _error4);
- }
-
- resetCurrentFiber();
- }
- } // Note: This currently assumes there are no passive effects on the root fiber
- // because the root is not part of its own effect list.
- // This could change in the future.
-
-
- var effect = root.current.firstEffect;
-
- while (effect !== null) {
- var nextNextEffect = effect.nextEffect; // Remove nextEffect pointer to assist GC
-
- effect.nextEffect = null;
-
- if (effect.flags & Deletion) {
- detachFiberAfterEffects(effect);
- }
-
- effect = nextNextEffect;
- }
-
- {
- popInteractions(prevInteractions);
- finishPendingInteractions(root, lanes);
- }
-
- {
- isFlushingPassiveEffects = false;
- }
-
- executionContext = prevExecutionContext;
- flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
- // exceeds the limit, we'll fire a warning.
-
- nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
- return true;
- }
-
- function isAlreadyFailedLegacyErrorBoundary(instance) {
- return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
- }
- function markLegacyErrorBoundaryAsFailed(instance) {
- if (legacyErrorBoundariesThatAlreadyFailed === null) {
- legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
- } else {
- legacyErrorBoundariesThatAlreadyFailed.add(instance);
- }
- }
-
- function prepareToThrowUncaughtError(error) {
- if (!hasUncaughtError) {
- hasUncaughtError = true;
- firstUncaughtError = error;
- }
- }
-
- var onUncaughtError = prepareToThrowUncaughtError;
-
- function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
- var errorInfo = createCapturedValue(error, sourceFiber);
- var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
- enqueueUpdate(rootFiber, update);
- var eventTime = requestEventTime();
- var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane);
-
- if (root !== null) {
- markRootUpdated(root, SyncLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, SyncLane);
- }
- }
-
- function captureCommitPhaseError(sourceFiber, error) {
- if (sourceFiber.tag === HostRoot) {
- // Error was thrown at the root. There is no parent, so the root
- // itself should capture it.
- captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
- return;
- }
-
- var fiber = sourceFiber.return;
-
- while (fiber !== null) {
- if (fiber.tag === HostRoot) {
- captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
- return;
- } else if (fiber.tag === ClassComponent) {
- var ctor = fiber.type;
- var instance = fiber.stateNode;
-
- if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
- var errorInfo = createCapturedValue(error, sourceFiber);
- var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
- enqueueUpdate(fiber, update);
- var eventTime = requestEventTime();
- var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane);
-
- if (root !== null) {
- markRootUpdated(root, SyncLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, SyncLane);
- } else {
- // This component has already been unmounted.
- // We can't schedule any follow up work for the root because the fiber is already unmounted,
- // but we can still call the log-only boundary so the error isn't swallowed.
- //
- // TODO This is only a temporary bandaid for the old reconciler fork.
- // We can delete this special case once the new fork is merged.
- if (typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
- try {
- instance.componentDidCatch(error, errorInfo);
- } catch (errorToIgnore) {// TODO Ignore this error? Rethrow it?
- // This is kind of an edge case.
- }
- }
- }
-
- return;
- }
- }
-
- fiber = fiber.return;
- }
- }
- function pingSuspendedRoot(root, wakeable, pingedLanes) {
- var pingCache = root.pingCache;
-
- if (pingCache !== null) {
- // The wakeable resolved, so we no longer need to memoize, because it will
- // never be thrown again.
- pingCache.delete(wakeable);
- }
-
- var eventTime = requestEventTime();
- markRootPinged(root, pingedLanes);
-
- if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
- // Received a ping at the same priority level at which we're currently
- // rendering. We might want to restart this render. This should mirror
- // the logic of whether or not a root suspends once it completes.
- // TODO: If we're rendering sync either due to Sync, Batched or expired,
- // we should probably never restart.
- // If we're suspended with delay, or if it's a retry, we'll always suspend
- // so we can always restart.
- if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
- // Restart from the root.
- prepareFreshStack(root, NoLanes);
- } else {
- // Even though we can't restart right now, we might get an
- // opportunity later. So we mark this render as having a ping.
- workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
- }
- }
-
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, pingedLanes);
- }
-
- function retryTimedOutBoundary(boundaryFiber, retryLane) {
- // The boundary fiber (a Suspense component or SuspenseList component)
- // previously was rendered in its fallback state. One of the promises that
- // suspended it has resolved, which means at least part of the tree was
- // likely unblocked. Try rendering again, at a new expiration time.
- if (retryLane === NoLane) {
- retryLane = requestRetryLane(boundaryFiber);
- } // TODO: Special case idle priority?
-
-
- var eventTime = requestEventTime();
- var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane);
-
- if (root !== null) {
- markRootUpdated(root, retryLane, eventTime);
- ensureRootIsScheduled(root, eventTime);
- schedulePendingInteractions(root, retryLane);
- }
- }
- function resolveRetryWakeable(boundaryFiber, wakeable) {
- var retryLane = NoLane; // Default
-
- var retryCache;
-
- {
- retryCache = boundaryFiber.stateNode;
- }
-
- if (retryCache !== null) {
- // The wakeable resolved, so we no longer need to memoize, because it will
- // never be thrown again.
- retryCache.delete(wakeable);
- }
-
- retryTimedOutBoundary(boundaryFiber, retryLane);
- } // Computes the next Just Noticeable Difference (JND) boundary.
- // The theory is that a person can't tell the difference between small differences in time.
- // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
- // difference in the experience. However, waiting for longer might mean that we can avoid
- // showing an intermediate loading state. The longer we have already waited, the harder it
- // is to tell small differences in time. Therefore, the longer we've already waited,
- // the longer we can wait additionally. At some point we have to give up though.
- // We pick a train model where the next boundary commits at a consistent schedule.
- // These particular numbers are vague estimates. We expect to adjust them based on research.
-
- function jnd(timeElapsed) {
- return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
- }
-
- function checkForNestedUpdates() {
- if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
- nestedUpdateCount = 0;
- rootWithNestedUpdates = null;
-
- {
- {
- throw Error( "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." );
- }
- }
- }
-
- {
- if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
- nestedPassiveUpdateCount = 0;
-
- error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
- }
- }
- }
-
- function flushRenderPhaseStrictModeWarningsInDEV() {
- {
- ReactStrictModeWarnings.flushLegacyContextWarning();
-
- {
- ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
- }
- }
- }
-
- var didWarnStateUpdateForNotYetMountedComponent = null;
-
- function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
- {
- if ((executionContext & RenderContext) !== NoContext) {
- // We let the other warning about render phase updates deal with this one.
- return;
- }
-
- if (!(fiber.mode & (BlockingMode | ConcurrentMode))) {
- return;
- }
-
- var tag = fiber.tag;
-
- if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
- // Only warn for user-defined components, not internal ones like Suspense.
- return;
- } // We show the whole stack but dedupe on the top component's name because
- // the problematic code almost always lies inside that component.
-
-
- var componentName = getComponentName(fiber.type) || 'ReactComponent';
-
- if (didWarnStateUpdateForNotYetMountedComponent !== null) {
- if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {
- return;
- }
-
- didWarnStateUpdateForNotYetMountedComponent.add(componentName);
- } else {
- didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);
- }
-
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error("Can't perform a React state update on a component that hasn't mounted yet. " + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
-
- var didWarnStateUpdateForUnmountedComponent = null;
-
- function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
- {
- var tag = fiber.tag;
-
- if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
- // Only warn for user-defined components, not internal ones like Suspense.
- return;
- } // If there are pending passive effects unmounts for this Fiber,
- // we can assume that they would have prevented this update.
-
-
- if ((fiber.flags & PassiveUnmountPendingDev) !== NoFlags) {
- return;
- } // We show the whole stack but dedupe on the top component's name because
- // the problematic code almost always lies inside that component.
-
-
- var componentName = getComponentName(fiber.type) || 'ReactComponent';
-
- if (didWarnStateUpdateForUnmountedComponent !== null) {
- if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
- return;
- }
-
- didWarnStateUpdateForUnmountedComponent.add(componentName);
- } else {
- didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
- }
-
- if (isFlushingPassiveEffects) ; else {
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error("Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function');
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
- }
-
- var beginWork$1;
-
- {
- var dummyFiber = null;
-
- beginWork$1 = function (current, unitOfWork, lanes) {
- // If a component throws an error, we replay it again in a synchronously
- // dispatched event, so that the debugger will treat it as an uncaught
- // error See ReactErrorUtils for more information.
- // Before entering the begin phase, copy the work-in-progress onto a dummy
- // fiber. If beginWork throws, we'll use this to reset the state.
- var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
-
- try {
- return beginWork(current, unitOfWork, lanes);
- } catch (originalError) {
- if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
- // Don't replay promises. Treat everything else like an error.
- throw originalError;
- } // Keep this code in sync with handleError; any changes here must have
- // corresponding changes there.
-
-
- resetContextDependencies();
- resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
- // same fiber again.
- // Unwind the failed stack frame
-
- unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.
-
- assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
-
- if ( unitOfWork.mode & ProfileMode) {
- // Reset the profiler timer.
- startProfilerTimer(unitOfWork);
- } // Run beginWork again.
-
-
- invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);
-
- if (hasCaughtError()) {
- var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
- // Rethrow this error instead of the original one.
-
- throw replayError;
- } else {
- // This branch is reachable if the render phase is impure.
- throw originalError;
- }
- }
- };
- }
-
- var didWarnAboutUpdateInRender = false;
- var didWarnAboutUpdateInRenderForAnotherComponent;
-
- {
- didWarnAboutUpdateInRenderForAnotherComponent = new Set();
- }
-
- function warnAboutRenderPhaseUpdatesInDEV(fiber) {
- {
- if (isRendering && (executionContext & RenderContext) !== NoContext && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {
- switch (fiber.tag) {
- case FunctionComponent:
- case ForwardRef:
- case SimpleMemoComponent:
- {
- var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
-
- var dedupeKey = renderingComponentName;
-
- if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
- didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
- var setStateComponentName = getComponentName(fiber.type) || 'Unknown';
-
- error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
- }
-
- break;
- }
-
- case ClassComponent:
- {
- if (!didWarnAboutUpdateInRender) {
- error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
-
- didWarnAboutUpdateInRender = true;
- }
-
- break;
- }
- }
- }
- }
- } // a 'shared' variable that changes when act() opens/closes in tests.
-
-
- var IsThisRendererActing = {
- current: false
- };
- function warnIfNotScopedWithMatchingAct(fiber) {
- {
- if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
- 'import {act} fr' + "om 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
- 'import TestRenderer fr' + "om react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);');
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
- }
- function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
- {
- if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
- error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
- }
- }
- }
-
- function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
- {
- if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
- var previousFiber = current;
-
- try {
- setCurrentFiber(fiber);
-
- error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
- } finally {
- if (previousFiber) {
- setCurrentFiber(fiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
- }
-
- var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.
-
- var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
- // scheduler is the actual recommendation. The alternative could be a testing build,
- // a new lib, or whatever; we dunno just yet. This message is for early adopters
- // to get their tests right.
-
- function warnIfUnmockedScheduler(fiber) {
- {
- if (didWarnAboutUnmockedScheduler === false && unstable_flushAllWithoutAsserting === undefined) {
- if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
- didWarnAboutUnmockedScheduler = true;
-
- error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + // Break up requires to avoid accidentally parsing them as dependencies.
- "jest.mock('scheduler', () => require" + "('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://reactjs.org/link/mock-scheduler');
- }
- }
- }
- }
-
- function computeThreadID(root, lane) {
- // Interaction threads are unique per root and expiration time.
- // NOTE: Intentionally unsound cast. All that matters is that it's a number
- // and it represents a batch of work. Could make a helper function instead,
- // but meh this is fine for now.
- return lane * 1000 + root.interactionThreadID;
- }
-
- function markSpawnedWork(lane) {
-
- if (spawnedWorkDuringRender === null) {
- spawnedWorkDuringRender = [lane];
- } else {
- spawnedWorkDuringRender.push(lane);
- }
- }
-
- function scheduleInteractions(root, lane, interactions) {
-
- if (interactions.size > 0) {
- var pendingInteractionMap = root.pendingInteractionMap;
- var pendingInteractions = pendingInteractionMap.get(lane);
-
- if (pendingInteractions != null) {
- interactions.forEach(function (interaction) {
- if (!pendingInteractions.has(interaction)) {
- // Update the pending async work count for previously unscheduled interaction.
- interaction.__count++;
- }
-
- pendingInteractions.add(interaction);
- });
- } else {
- pendingInteractionMap.set(lane, new Set(interactions)); // Update the pending async work count for the current interactions.
-
- interactions.forEach(function (interaction) {
- interaction.__count++;
- });
- }
-
- var subscriber = __subscriberRef.current;
-
- if (subscriber !== null) {
- var threadID = computeThreadID(root, lane);
- subscriber.onWorkScheduled(interactions, threadID);
- }
- }
- }
-
- function schedulePendingInteractions(root, lane) {
-
- scheduleInteractions(root, lane, __interactionsRef.current);
- }
-
- function startWorkOnPendingInteractions(root, lanes) {
- // we can accurately attribute time spent working on it, And so that cascading
- // work triggered during the render phase will be associated with it.
-
-
- var interactions = new Set();
- root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledLane) {
- if (includesSomeLane(lanes, scheduledLane)) {
- scheduledInteractions.forEach(function (interaction) {
- return interactions.add(interaction);
- });
- }
- }); // Store the current set of interactions on the FiberRoot for a few reasons:
- // We can re-use it in hot functions like performConcurrentWorkOnRoot()
- // without having to recalculate it. We will also use it in commitWork() to
- // pass to any Profiler onRender() hooks. This also provides DevTools with a
- // way to access it when the onCommitRoot() hook is called.
-
- root.memoizedInteractions = interactions;
-
- if (interactions.size > 0) {
- var subscriber = __subscriberRef.current;
-
- if (subscriber !== null) {
- var threadID = computeThreadID(root, lanes);
-
- try {
- subscriber.onWorkStarted(interactions, threadID);
- } catch (error) {
- // If the subscriber throws, rethrow it in a separate task
- scheduleCallback(ImmediatePriority$1, function () {
- throw error;
- });
- }
- }
- }
- }
-
- function finishPendingInteractions(root, committedLanes) {
-
- var remainingLanesAfterCommit = root.pendingLanes;
- var subscriber;
-
- try {
- subscriber = __subscriberRef.current;
-
- if (subscriber !== null && root.memoizedInteractions.size > 0) {
- // FIXME: More than one lane can finish in a single commit.
- var threadID = computeThreadID(root, committedLanes);
- subscriber.onWorkStopped(root.memoizedInteractions, threadID);
- }
- } catch (error) {
- // If the subscriber throws, rethrow it in a separate task
- scheduleCallback(ImmediatePriority$1, function () {
- throw error;
- });
- } finally {
- // Clear completed interactions from the pending Map.
- // Unless the render was suspended or cascading work was scheduled,
- // In which case– leave pending interactions until the subsequent render.
- var pendingInteractionMap = root.pendingInteractionMap;
- pendingInteractionMap.forEach(function (scheduledInteractions, lane) {
- // Only decrement the pending interaction count if we're done.
- // If there's still work at the current priority,
- // That indicates that we are waiting for suspense data.
- if (!includesSomeLane(remainingLanesAfterCommit, lane)) {
- pendingInteractionMap.delete(lane);
- scheduledInteractions.forEach(function (interaction) {
- interaction.__count--;
-
- if (subscriber !== null && interaction.__count === 0) {
- try {
- subscriber.onInteractionScheduledWorkCompleted(interaction);
- } catch (error) {
- // If the subscriber throws, rethrow it in a separate task
- scheduleCallback(ImmediatePriority$1, function () {
- throw error;
- });
- }
- }
- });
- }
- });
- }
- } // `act` testing API
-
- function shouldForceFlushFallbacksInDEV() {
- // Never force flush in production. This function should get stripped out.
- return actingUpdatesScopeDepth > 0;
- }
- // so we can tell if any async act() calls try to run in parallel.
-
-
- var actingUpdatesScopeDepth = 0;
-
- function detachFiberAfterEffects(fiber) {
- fiber.sibling = null;
- fiber.stateNode = null;
- }
-
- var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
-
- var failedBoundaries = null;
- var setRefreshHandler = function (handler) {
- {
- resolveFamily = handler;
- }
- };
- function resolveFunctionForHotReloading(type) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return type;
- }
-
- var family = resolveFamily(type);
-
- if (family === undefined) {
- return type;
- } // Use the latest known implementation.
-
-
- return family.current;
- }
- }
- function resolveClassForHotReloading(type) {
- // No implementation differences.
- return resolveFunctionForHotReloading(type);
- }
- function resolveForwardRefForHotReloading(type) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return type;
- }
-
- var family = resolveFamily(type);
-
- if (family === undefined) {
- // Check if we're dealing with a real forwardRef. Don't want to crash early.
- if (type !== null && type !== undefined && typeof type.render === 'function') {
- // ForwardRef is special because its resolved .type is an object,
- // but it's possible that we only have its inner render function in the map.
- // If that inner render function is different, we'll build a new forwardRef type.
- var currentRender = resolveFunctionForHotReloading(type.render);
-
- if (type.render !== currentRender) {
- var syntheticType = {
- $$typeof: REACT_FORWARD_REF_TYPE,
- render: currentRender
- };
-
- if (type.displayName !== undefined) {
- syntheticType.displayName = type.displayName;
- }
-
- return syntheticType;
- }
- }
-
- return type;
- } // Use the latest known implementation.
-
-
- return family.current;
- }
- }
- function isCompatibleFamilyForHotReloading(fiber, element) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return false;
- }
-
- var prevType = fiber.elementType;
- var nextType = element.type; // If we got here, we know types aren't === equal.
-
- var needsCompareFamilies = false;
- var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
-
- switch (fiber.tag) {
- case ClassComponent:
- {
- if (typeof nextType === 'function') {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case FunctionComponent:
- {
- if (typeof nextType === 'function') {
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- // We don't know the inner type yet.
- // We're going to assume that the lazy inner type is stable,
- // and so it is sufficient to avoid reconciling it away.
- // We're not going to unwrap or actually use the new lazy type.
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case ForwardRef:
- {
- if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- case MemoComponent:
- case SimpleMemoComponent:
- {
- if ($$typeofNextType === REACT_MEMO_TYPE) {
- // TODO: if it was but can no longer be simple,
- // we shouldn't set this.
- needsCompareFamilies = true;
- } else if ($$typeofNextType === REACT_LAZY_TYPE) {
- needsCompareFamilies = true;
- }
-
- break;
- }
-
- default:
- return false;
- } // Check if both types have a family and it's the same one.
-
-
- if (needsCompareFamilies) {
- // Note: memo() and forwardRef() we'll compare outer rather than inner type.
- // This means both of them need to be registered to preserve state.
- // If we unwrapped and compared the inner types for wrappers instead,
- // then we would risk falsely saying two separate memo(Foo)
- // calls are equivalent because they wrap the same Foo function.
- var prevFamily = resolveFamily(prevType);
-
- if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
- return true;
- }
- }
-
- return false;
- }
- }
- function markFailedErrorBoundaryForHotReloading(fiber) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return;
- }
-
- if (typeof WeakSet !== 'function') {
- return;
- }
-
- if (failedBoundaries === null) {
- failedBoundaries = new WeakSet();
- }
-
- failedBoundaries.add(fiber);
- }
- }
- var scheduleRefresh = function (root, update) {
- {
- if (resolveFamily === null) {
- // Hot reloading is disabled.
- return;
- }
-
- var staleFamilies = update.staleFamilies,
- updatedFamilies = update.updatedFamilies;
- flushPassiveEffects();
- flushSync(function () {
- scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
- });
- }
- };
- var scheduleRoot = function (root, element) {
- {
- if (root.context !== emptyContextObject) {
- // Super edge case: root has a legacy _renderSubtree context
- // but we don't know the parentComponent so we can't pass it.
- // Just ignore. We'll delete this with _renderSubtree code path later.
- return;
- }
-
- flushPassiveEffects();
- flushSync(function () {
- updateContainer(element, root, null, null);
- });
- }
- };
-
- function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
- {
- var alternate = fiber.alternate,
- child = fiber.child,
- sibling = fiber.sibling,
- tag = fiber.tag,
- type = fiber.type;
- var candidateType = null;
-
- switch (tag) {
- case FunctionComponent:
- case SimpleMemoComponent:
- case ClassComponent:
- candidateType = type;
- break;
-
- case ForwardRef:
- candidateType = type.render;
- break;
- }
-
- if (resolveFamily === null) {
- throw new Error('Expected resolveFamily to be set during hot reload.');
- }
-
- var needsRender = false;
- var needsRemount = false;
-
- if (candidateType !== null) {
- var family = resolveFamily(candidateType);
-
- if (family !== undefined) {
- if (staleFamilies.has(family)) {
- needsRemount = true;
- } else if (updatedFamilies.has(family)) {
- if (tag === ClassComponent) {
- needsRemount = true;
- } else {
- needsRender = true;
- }
- }
- }
- }
-
- if (failedBoundaries !== null) {
- if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
- needsRemount = true;
- }
- }
-
- if (needsRemount) {
- fiber._debugNeedsRemount = true;
- }
-
- if (needsRemount || needsRender) {
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- }
-
- if (child !== null && !needsRemount) {
- scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
- }
-
- if (sibling !== null) {
- scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
- }
- }
- }
-
- var findHostInstancesForRefresh = function (root, families) {
- {
- var hostInstances = new Set();
- var types = new Set(families.map(function (family) {
- return family.current;
- }));
- findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
- return hostInstances;
- }
- };
-
- function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
- {
- var child = fiber.child,
- sibling = fiber.sibling,
- tag = fiber.tag,
- type = fiber.type;
- var candidateType = null;
-
- switch (tag) {
- case FunctionComponent:
- case SimpleMemoComponent:
- case ClassComponent:
- candidateType = type;
- break;
-
- case ForwardRef:
- candidateType = type.render;
- break;
- }
-
- var didMatch = false;
-
- if (candidateType !== null) {
- if (types.has(candidateType)) {
- didMatch = true;
- }
- }
-
- if (didMatch) {
- // We have a match. This only drills down to the closest host components.
- // There's no need to search deeper because for the purpose of giving
- // visual feedback, "flashing" outermost parent rectangles is sufficient.
- findHostInstancesForFiberShallowly(fiber, hostInstances);
- } else {
- // If there's no match, maybe there will be one further down in the child tree.
- if (child !== null) {
- findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
- }
- }
-
- if (sibling !== null) {
- findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
- }
- }
- }
-
- function findHostInstancesForFiberShallowly(fiber, hostInstances) {
- {
- var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
-
- if (foundHostInstances) {
- return;
- } // If we didn't find any host children, fallback to closest host parent.
-
-
- var node = fiber;
-
- while (true) {
- switch (node.tag) {
- case HostComponent:
- hostInstances.add(node.stateNode);
- return;
-
- case HostPortal:
- hostInstances.add(node.stateNode.containerInfo);
- return;
-
- case HostRoot:
- hostInstances.add(node.stateNode.containerInfo);
- return;
- }
-
- if (node.return === null) {
- throw new Error('Expected to reach root first.');
- }
-
- node = node.return;
- }
- }
- }
-
- function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
- {
- var node = fiber;
- var foundHostInstances = false;
-
- while (true) {
- if (node.tag === HostComponent) {
- // We got a match.
- foundHostInstances = true;
- hostInstances.add(node.stateNode); // There may still be more, so keep searching.
- } else if (node.child !== null) {
- node.child.return = node;
- node = node.child;
- continue;
- }
-
- if (node === fiber) {
- return foundHostInstances;
- }
-
- while (node.sibling === null) {
- if (node.return === null || node.return === fiber) {
- return foundHostInstances;
- }
-
- node = node.return;
- }
-
- node.sibling.return = node.return;
- node = node.sibling;
- }
- }
-
- return false;
- }
-
- var hasBadMapPolyfill;
-
- {
- hasBadMapPolyfill = false;
-
- try {
- var nonExtensibleObject = Object.preventExtensions({});
- /* eslint-disable no-new */
-
- new Map([[nonExtensibleObject, null]]);
- new Set([nonExtensibleObject]);
- /* eslint-enable no-new */
- } catch (e) {
- // TODO: Consider warning about bad polyfills
- hasBadMapPolyfill = true;
- }
- }
-
- var debugCounter = 1;
-
- function FiberNode(tag, pendingProps, key, mode) {
- // Instance
- this.tag = tag;
- this.key = key;
- this.elementType = null;
- this.type = null;
- this.stateNode = null; // Fiber
-
- this.return = null;
- this.child = null;
- this.sibling = null;
- this.index = 0;
- this.ref = null;
- this.pendingProps = pendingProps;
- this.memoizedProps = null;
- this.updateQueue = null;
- this.memoizedState = null;
- this.dependencies = null;
- this.mode = mode; // Effects
-
- this.flags = NoFlags;
- this.nextEffect = null;
- this.firstEffect = null;
- this.lastEffect = null;
- this.lanes = NoLanes;
- this.childLanes = NoLanes;
- this.alternate = null;
-
- {
- // Note: The following is done to avoid a v8 performance cliff.
- //
- // Initializing the fields below to smis and later updating them with
- // double values will cause Fibers to end up having separate shapes.
- // This behavior/bug has something to do with Object.preventExtension().
- // Fortunately this only impacts DEV builds.
- // Unfortunately it makes React unusably slow for some applications.
- // To work around this, initialize the fields below with doubles.
- //
- // Learn more about this here:
- // https://github.com/facebook/react/issues/14365
- // https://bugs.chromium.org/p/v8/issues/detail?id=8538
- this.actualDuration = Number.NaN;
- this.actualStartTime = Number.NaN;
- this.selfBaseDuration = Number.NaN;
- this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
- // This won't trigger the performance cliff mentioned above,
- // and it simplifies other profiler code (including DevTools).
-
- this.actualDuration = 0;
- this.actualStartTime = -1;
- this.selfBaseDuration = 0;
- this.treeBaseDuration = 0;
- }
-
- {
- // This isn't directly used but is handy for debugging internals:
- this._debugID = debugCounter++;
- this._debugSource = null;
- this._debugOwner = null;
- this._debugNeedsRemount = false;
- this._debugHookTypes = null;
-
- if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
- Object.preventExtensions(this);
- }
- }
- } // This is a constructor function, rather than a POJO constructor, still
- // please ensure we do the following:
- // 1) Nobody should add any instance methods on this. Instance methods can be
- // more difficult to predict when they get optimized and they are almost
- // never inlined properly in static compilers.
- // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
- // always know when it is a fiber.
- // 3) We might want to experiment with using numeric keys since they are easier
- // to optimize in a non-JIT environment.
- // 4) We can easily go from a constructor to a createFiber object literal if that
- // is faster.
- // 5) It should be easy to port this to a C struct and keep a C implementation
- // compatible.
-
-
- var createFiber = function (tag, pendingProps, key, mode) {
- // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
- return new FiberNode(tag, pendingProps, key, mode);
- };
-
- function shouldConstruct$1(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function isSimpleFunctionComponent(type) {
- return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
- }
- function resolveLazyComponentTag(Component) {
- if (typeof Component === 'function') {
- return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
- } else if (Component !== undefined && Component !== null) {
- var $$typeof = Component.$$typeof;
-
- if ($$typeof === REACT_FORWARD_REF_TYPE) {
- return ForwardRef;
- }
-
- if ($$typeof === REACT_MEMO_TYPE) {
- return MemoComponent;
- }
- }
-
- return IndeterminateComponent;
- } // This is used to create an alternate fiber to do work on.
-
- function createWorkInProgress(current, pendingProps) {
- var workInProgress = current.alternate;
-
- if (workInProgress === null) {
- // We use a double buffering pooling technique because we know that we'll
- // only ever need at most two versions of a tree. We pool the "other" unused
- // node that we're free to reuse. This is lazily created to avoid allocating
- // extra objects for things that are never updated. It also allow us to
- // reclaim the extra memory if needed.
- workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
- workInProgress.elementType = current.elementType;
- workInProgress.type = current.type;
- workInProgress.stateNode = current.stateNode;
-
- {
- // DEV-only fields
- workInProgress._debugID = current._debugID;
- workInProgress._debugSource = current._debugSource;
- workInProgress._debugOwner = current._debugOwner;
- workInProgress._debugHookTypes = current._debugHookTypes;
- }
-
- workInProgress.alternate = current;
- current.alternate = workInProgress;
- } else {
- workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.
-
- workInProgress.type = current.type; // We already have an alternate.
- // Reset the effect tag.
-
- workInProgress.flags = NoFlags; // The effect list is no longer valid.
-
- workInProgress.nextEffect = null;
- workInProgress.firstEffect = null;
- workInProgress.lastEffect = null;
-
- {
- // We intentionally reset, rather than copy, actualDuration & actualStartTime.
- // This prevents time from endlessly accumulating in new commits.
- // This has the downside of resetting values for different priority renders,
- // But works for yielding (the common case) and should support resuming.
- workInProgress.actualDuration = 0;
- workInProgress.actualStartTime = -1;
- }
- }
-
- workInProgress.childLanes = current.childLanes;
- workInProgress.lanes = current.lanes;
- workInProgress.child = current.child;
- workInProgress.memoizedProps = current.memoizedProps;
- workInProgress.memoizedState = current.memoizedState;
- workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
- // it cannot be shared with the current fiber.
-
- var currentDependencies = current.dependencies;
- workInProgress.dependencies = currentDependencies === null ? null : {
- lanes: currentDependencies.lanes,
- firstContext: currentDependencies.firstContext
- }; // These will be overridden during the parent's reconciliation
-
- workInProgress.sibling = current.sibling;
- workInProgress.index = current.index;
- workInProgress.ref = current.ref;
-
- {
- workInProgress.selfBaseDuration = current.selfBaseDuration;
- workInProgress.treeBaseDuration = current.treeBaseDuration;
- }
-
- {
- workInProgress._debugNeedsRemount = current._debugNeedsRemount;
-
- switch (workInProgress.tag) {
- case IndeterminateComponent:
- case FunctionComponent:
- case SimpleMemoComponent:
- workInProgress.type = resolveFunctionForHotReloading(current.type);
- break;
-
- case ClassComponent:
- workInProgress.type = resolveClassForHotReloading(current.type);
- break;
-
- case ForwardRef:
- workInProgress.type = resolveForwardRefForHotReloading(current.type);
- break;
- }
- }
-
- return workInProgress;
- } // Used to reuse a Fiber for a second pass.
-
- function resetWorkInProgress(workInProgress, renderLanes) {
- // This resets the Fiber to what createFiber or createWorkInProgress would
- // have set the values to before during the first pass. Ideally this wouldn't
- // be necessary but unfortunately many code paths reads from the workInProgress
- // when they should be reading from current and writing to workInProgress.
- // We assume pendingProps, index, key, ref, return are still untouched to
- // avoid doing another reconciliation.
- // Reset the effect tag but keep any Placement tags, since that's something
- // that child fiber is setting, not the reconciliation.
- workInProgress.flags &= Placement; // The effect list is no longer valid.
-
- workInProgress.nextEffect = null;
- workInProgress.firstEffect = null;
- workInProgress.lastEffect = null;
- var current = workInProgress.alternate;
-
- if (current === null) {
- // Reset to createFiber's initial values.
- workInProgress.childLanes = NoLanes;
- workInProgress.lanes = renderLanes;
- workInProgress.child = null;
- workInProgress.memoizedProps = null;
- workInProgress.memoizedState = null;
- workInProgress.updateQueue = null;
- workInProgress.dependencies = null;
- workInProgress.stateNode = null;
-
- {
- // Note: We don't reset the actualTime counts. It's useful to accumulate
- // actual time across multiple render passes.
- workInProgress.selfBaseDuration = 0;
- workInProgress.treeBaseDuration = 0;
- }
- } else {
- // Reset to the cloned values that createWorkInProgress would've.
- workInProgress.childLanes = current.childLanes;
- workInProgress.lanes = current.lanes;
- workInProgress.child = current.child;
- workInProgress.memoizedProps = current.memoizedProps;
- workInProgress.memoizedState = current.memoizedState;
- workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.
-
- workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so
- // it cannot be shared with the current fiber.
-
- var currentDependencies = current.dependencies;
- workInProgress.dependencies = currentDependencies === null ? null : {
- lanes: currentDependencies.lanes,
- firstContext: currentDependencies.firstContext
- };
-
- {
- // Note: We don't reset the actualTime counts. It's useful to accumulate
- // actual time across multiple render passes.
- workInProgress.selfBaseDuration = current.selfBaseDuration;
- workInProgress.treeBaseDuration = current.treeBaseDuration;
- }
- }
-
- return workInProgress;
- }
- function createHostRootFiber(tag) {
- var mode;
-
- if (tag === ConcurrentRoot) {
- mode = ConcurrentMode | BlockingMode | StrictMode;
- } else if (tag === BlockingRoot) {
- mode = BlockingMode | StrictMode;
- } else {
- mode = NoMode;
- }
-
- if ( isDevToolsPresent) {
- // Always collect profile timings when DevTools are present.
- // This enables DevTools to start capturing timing at any point–
- // Without some nodes in the tree having empty base times.
- mode |= ProfileMode;
- }
-
- return createFiber(HostRoot, null, null, mode);
- }
- function createFiberFromTypeAndProps(type, // React$ElementType
- key, pendingProps, owner, mode, lanes) {
- var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
-
- var resolvedType = type;
-
- if (typeof type === 'function') {
- if (shouldConstruct$1(type)) {
- fiberTag = ClassComponent;
-
- {
- resolvedType = resolveClassForHotReloading(resolvedType);
- }
- } else {
- {
- resolvedType = resolveFunctionForHotReloading(resolvedType);
- }
- }
- } else if (typeof type === 'string') {
- fiberTag = HostComponent;
- } else {
- getTag: switch (type) {
- case REACT_FRAGMENT_TYPE:
- return createFiberFromFragment(pendingProps.children, mode, lanes, key);
-
- case REACT_DEBUG_TRACING_MODE_TYPE:
- fiberTag = Mode;
- mode |= DebugTracingMode;
- break;
-
- case REACT_STRICT_MODE_TYPE:
- fiberTag = Mode;
- mode |= StrictMode;
- break;
-
- case REACT_PROFILER_TYPE:
- return createFiberFromProfiler(pendingProps, mode, lanes, key);
-
- case REACT_SUSPENSE_TYPE:
- return createFiberFromSuspense(pendingProps, mode, lanes, key);
-
- case REACT_SUSPENSE_LIST_TYPE:
- return createFiberFromSuspenseList(pendingProps, mode, lanes, key);
-
- case REACT_OFFSCREEN_TYPE:
- return createFiberFromOffscreen(pendingProps, mode, lanes, key);
-
- case REACT_LEGACY_HIDDEN_TYPE:
- return createFiberFromLegacyHidden(pendingProps, mode, lanes, key);
-
- case REACT_SCOPE_TYPE:
-
- // eslint-disable-next-line no-fallthrough
-
- default:
- {
- if (typeof type === 'object' && type !== null) {
- switch (type.$$typeof) {
- case REACT_PROVIDER_TYPE:
- fiberTag = ContextProvider;
- break getTag;
-
- case REACT_CONTEXT_TYPE:
- // This is a consumer
- fiberTag = ContextConsumer;
- break getTag;
-
- case REACT_FORWARD_REF_TYPE:
- fiberTag = ForwardRef;
-
- {
- resolvedType = resolveForwardRefForHotReloading(resolvedType);
- }
-
- break getTag;
-
- case REACT_MEMO_TYPE:
- fiberTag = MemoComponent;
- break getTag;
-
- case REACT_LAZY_TYPE:
- fiberTag = LazyComponent;
- resolvedType = null;
- break getTag;
-
- case REACT_BLOCK_TYPE:
- fiberTag = Block;
- break getTag;
- }
- }
-
- var info = '';
-
- {
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
- }
-
- var ownerName = owner ? getComponentName(owner.type) : null;
-
- if (ownerName) {
- info += '\n\nCheck the render method of `' + ownerName + '`.';
- }
- }
-
- {
- {
- throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info );
- }
- }
- }
- }
- }
-
- var fiber = createFiber(fiberTag, pendingProps, key, mode);
- fiber.elementType = type;
- fiber.type = resolvedType;
- fiber.lanes = lanes;
-
- {
- fiber._debugOwner = owner;
- }
-
- return fiber;
- }
- function createFiberFromElement(element, mode, lanes) {
- var owner = null;
-
- {
- owner = element._owner;
- }
-
- var type = element.type;
- var key = element.key;
- var pendingProps = element.props;
- var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);
-
- {
- fiber._debugSource = element._source;
- fiber._debugOwner = element._owner;
- }
-
- return fiber;
- }
- function createFiberFromFragment(elements, mode, lanes, key) {
- var fiber = createFiber(Fragment, elements, key, mode);
- fiber.lanes = lanes;
- return fiber;
- }
-
- function createFiberFromProfiler(pendingProps, mode, lanes, key) {
- {
- if (typeof pendingProps.id !== 'string') {
- error('Profiler must specify an "id" as a prop');
- }
- }
-
- var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.
-
- fiber.elementType = REACT_PROFILER_TYPE;
- fiber.type = REACT_PROFILER_TYPE;
- fiber.lanes = lanes;
-
- {
- fiber.stateNode = {
- effectDuration: 0,
- passiveEffectDuration: 0
- };
- }
-
- return fiber;
- }
-
- function createFiberFromSuspense(pendingProps, mode, lanes, key) {
- var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
- // This needs to be fixed in getComponentName so that it relies on the tag
- // instead.
-
- fiber.type = REACT_SUSPENSE_TYPE;
- fiber.elementType = REACT_SUSPENSE_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
- var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
-
- {
- // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
- // This needs to be fixed in getComponentName so that it relies on the tag
- // instead.
- fiber.type = REACT_SUSPENSE_LIST_TYPE;
- }
-
- fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
- var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); // TODO: The OffscreenComponent fiber shouldn't have a type. It has a tag.
- // This needs to be fixed in getComponentName so that it relies on the tag
- // instead.
-
- {
- fiber.type = REACT_OFFSCREEN_TYPE;
- }
-
- fiber.elementType = REACT_OFFSCREEN_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromLegacyHidden(pendingProps, mode, lanes, key) {
- var fiber = createFiber(LegacyHiddenComponent, pendingProps, key, mode); // TODO: The LegacyHidden fiber shouldn't have a type. It has a tag.
- // This needs to be fixed in getComponentName so that it relies on the tag
- // instead.
-
- {
- fiber.type = REACT_LEGACY_HIDDEN_TYPE;
- }
-
- fiber.elementType = REACT_LEGACY_HIDDEN_TYPE;
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromText(content, mode, lanes) {
- var fiber = createFiber(HostText, content, null, mode);
- fiber.lanes = lanes;
- return fiber;
- }
- function createFiberFromHostInstanceForDeletion() {
- var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.
-
- fiber.elementType = 'DELETED';
- fiber.type = 'DELETED';
- return fiber;
- }
- function createFiberFromPortal(portal, mode, lanes) {
- var pendingProps = portal.children !== null ? portal.children : [];
- var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
- fiber.lanes = lanes;
- fiber.stateNode = {
- containerInfo: portal.containerInfo,
- pendingChildren: null,
- // Used by persistent updates
- implementation: portal.implementation
- };
- return fiber;
- } // Used for stashing WIP properties to replay failed work in DEV.
-
- function assignFiberPropertiesInDEV(target, source) {
- if (target === null) {
- // This Fiber's initial properties will always be overwritten.
- // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
- target = createFiber(IndeterminateComponent, null, null, NoMode);
- } // This is intentionally written as a list of all properties.
- // We tried to use Object.assign() instead but this is called in
- // the hottest path, and Object.assign() was too slow:
- // https://github.com/facebook/react/issues/12502
- // This code is DEV-only so size is not a concern.
-
-
- target.tag = source.tag;
- target.key = source.key;
- target.elementType = source.elementType;
- target.type = source.type;
- target.stateNode = source.stateNode;
- target.return = source.return;
- target.child = source.child;
- target.sibling = source.sibling;
- target.index = source.index;
- target.ref = source.ref;
- target.pendingProps = source.pendingProps;
- target.memoizedProps = source.memoizedProps;
- target.updateQueue = source.updateQueue;
- target.memoizedState = source.memoizedState;
- target.dependencies = source.dependencies;
- target.mode = source.mode;
- target.flags = source.flags;
- target.nextEffect = source.nextEffect;
- target.firstEffect = source.firstEffect;
- target.lastEffect = source.lastEffect;
- target.lanes = source.lanes;
- target.childLanes = source.childLanes;
- target.alternate = source.alternate;
-
- {
- target.actualDuration = source.actualDuration;
- target.actualStartTime = source.actualStartTime;
- target.selfBaseDuration = source.selfBaseDuration;
- target.treeBaseDuration = source.treeBaseDuration;
- }
-
- target._debugID = source._debugID;
- target._debugSource = source._debugSource;
- target._debugOwner = source._debugOwner;
- target._debugNeedsRemount = source._debugNeedsRemount;
- target._debugHookTypes = source._debugHookTypes;
- return target;
- }
-
- function FiberRootNode(containerInfo, tag, hydrate) {
- this.tag = tag;
- this.containerInfo = containerInfo;
- this.pendingChildren = null;
- this.current = null;
- this.pingCache = null;
- this.finishedWork = null;
- this.timeoutHandle = noTimeout;
- this.context = null;
- this.pendingContext = null;
- this.hydrate = hydrate;
- this.callbackNode = null;
- this.callbackPriority = NoLanePriority;
- this.eventTimes = createLaneMap(NoLanes);
- this.expirationTimes = createLaneMap(NoTimestamp);
- this.pendingLanes = NoLanes;
- this.suspendedLanes = NoLanes;
- this.pingedLanes = NoLanes;
- this.expiredLanes = NoLanes;
- this.mutableReadLanes = NoLanes;
- this.finishedLanes = NoLanes;
- this.entangledLanes = NoLanes;
- this.entanglements = createLaneMap(NoLanes);
-
- {
- this.mutableSourceEagerHydrationData = null;
- }
-
- {
- this.interactionThreadID = unstable_getThreadID();
- this.memoizedInteractions = new Set();
- this.pendingInteractionMap = new Map();
- }
-
- {
- switch (tag) {
- case BlockingRoot:
- this._debugRootType = 'createBlockingRoot()';
- break;
-
- case ConcurrentRoot:
- this._debugRootType = 'createRoot()';
- break;
-
- case LegacyRoot:
- this._debugRootType = 'createLegacyRoot()';
- break;
- }
- }
- }
-
- function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
- var root = new FiberRootNode(containerInfo, tag, hydrate);
- // stateNode is any.
-
-
- var uninitializedFiber = createHostRootFiber(tag);
- root.current = uninitializedFiber;
- uninitializedFiber.stateNode = root;
- initializeUpdateQueue(uninitializedFiber);
- return root;
- }
-
- // This ensures that the version used for server rendering matches the one
- // that is eventually read during hydration.
- // If they don't match there's a potential tear and a full deopt render is required.
-
- function registerMutableSourceForHydration(root, mutableSource) {
- var getVersion = mutableSource._getVersion;
- var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.
- // Retaining it forever may interfere with GC.
-
- if (root.mutableSourceEagerHydrationData == null) {
- root.mutableSourceEagerHydrationData = [mutableSource, version];
- } else {
- root.mutableSourceEagerHydrationData.push(mutableSource, version);
- }
- }
-
- function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
- implementation) {
- var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
- return {
- // This tag allow us to uniquely identify this as a React Portal
- $$typeof: REACT_PORTAL_TYPE,
- key: key == null ? null : '' + key,
- children: children,
- containerInfo: containerInfo,
- implementation: implementation
- };
- }
-
- var didWarnAboutNestedUpdates;
- var didWarnAboutFindNodeInStrictMode;
-
- {
- didWarnAboutNestedUpdates = false;
- didWarnAboutFindNodeInStrictMode = {};
- }
-
- function getContextForSubtree(parentComponent) {
- if (!parentComponent) {
- return emptyContextObject;
- }
-
- var fiber = get(parentComponent);
- var parentContext = findCurrentUnmaskedContext(fiber);
-
- if (fiber.tag === ClassComponent) {
- var Component = fiber.type;
-
- if (isContextProvider(Component)) {
- return processChildContext(fiber, Component, parentContext);
- }
- }
-
- return parentContext;
- }
-
- function findHostInstanceWithWarning(component, methodName) {
- {
- var fiber = get(component);
-
- if (fiber === undefined) {
- if (typeof component.render === 'function') {
- {
- {
- throw Error( "Unable to find node on an unmounted component." );
- }
- }
- } else {
- {
- {
- throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
- }
- }
- }
- }
-
- var hostFiber = findCurrentHostFiber(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- if (hostFiber.mode & StrictMode) {
- var componentName = getComponentName(fiber.type) || 'Component';
-
- if (!didWarnAboutFindNodeInStrictMode[componentName]) {
- didWarnAboutFindNodeInStrictMode[componentName] = true;
- var previousFiber = current;
-
- try {
- setCurrentFiber(hostFiber);
-
- if (fiber.mode & StrictMode) {
- error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
- } else {
- error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
- }
- } finally {
- // Ideally this should reset to previous but this shouldn't be called in
- // render and there's another warning for that anyway.
- if (previousFiber) {
- setCurrentFiber(previousFiber);
- } else {
- resetCurrentFiber();
- }
- }
- }
- }
-
- return hostFiber.stateNode;
- }
- }
-
- function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
- return createFiberRoot(containerInfo, tag, hydrate);
- }
- function updateContainer(element, container, parentComponent, callback) {
- {
- onScheduleRoot(container, element);
- }
-
- var current$1 = container.current;
- var eventTime = requestEventTime();
-
- {
- // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
- if ('undefined' !== typeof jest) {
- warnIfUnmockedScheduler(current$1);
- warnIfNotScopedWithMatchingAct(current$1);
- }
- }
-
- var lane = requestUpdateLane(current$1);
-
- var context = getContextForSubtree(parentComponent);
-
- if (container.context === null) {
- container.context = context;
- } else {
- container.pendingContext = context;
- }
-
- {
- if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
- didWarnAboutNestedUpdates = true;
-
- error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
- }
- }
-
- var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property
- // being called "element".
-
- update.payload = {
- element: element
- };
- callback = callback === undefined ? null : callback;
-
- if (callback !== null) {
- {
- if (typeof callback !== 'function') {
- error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
- }
- }
-
- update.callback = callback;
- }
-
- enqueueUpdate(current$1, update);
- scheduleUpdateOnFiber(current$1, lane, eventTime);
- return lane;
- }
- function getPublicRootInstance(container) {
- var containerFiber = container.current;
-
- if (!containerFiber.child) {
- return null;
- }
-
- switch (containerFiber.child.tag) {
- case HostComponent:
- return getPublicInstance(containerFiber.child.stateNode);
-
- default:
- return containerFiber.child.stateNode;
- }
- }
-
- function markRetryLaneImpl(fiber, retryLane) {
- var suspenseState = fiber.memoizedState;
-
- if (suspenseState !== null && suspenseState.dehydrated !== null) {
- suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);
- }
- } // Increases the priority of thennables when they resolve within this boundary.
-
-
- function markRetryLaneIfNotHydrated(fiber, retryLane) {
- markRetryLaneImpl(fiber, retryLane);
- var alternate = fiber.alternate;
-
- if (alternate) {
- markRetryLaneImpl(alternate, retryLane);
- }
- }
-
- function attemptUserBlockingHydration$1(fiber) {
- if (fiber.tag !== SuspenseComponent) {
- // We ignore HostRoots here because we can't increase
- // their priority and they should not suspend on I/O,
- // since you have to wrap anything that might suspend in
- // Suspense.
- return;
- }
-
- var eventTime = requestEventTime();
- var lane = InputDiscreteHydrationLane;
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- markRetryLaneIfNotHydrated(fiber, lane);
- }
- function attemptContinuousHydration$1(fiber) {
- if (fiber.tag !== SuspenseComponent) {
- // We ignore HostRoots here because we can't increase
- // their priority and they should not suspend on I/O,
- // since you have to wrap anything that might suspend in
- // Suspense.
- return;
- }
-
- var eventTime = requestEventTime();
- var lane = SelectiveHydrationLane;
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- markRetryLaneIfNotHydrated(fiber, lane);
- }
- function attemptHydrationAtCurrentPriority$1(fiber) {
- if (fiber.tag !== SuspenseComponent) {
- // We ignore HostRoots here because we can't increase
- // their priority other than synchronously flush it.
- return;
- }
-
- var eventTime = requestEventTime();
- var lane = requestUpdateLane(fiber);
- scheduleUpdateOnFiber(fiber, lane, eventTime);
- markRetryLaneIfNotHydrated(fiber, lane);
- }
- function runWithPriority$2(priority, fn) {
-
- try {
- setCurrentUpdateLanePriority(priority);
- return fn();
- } finally {
- }
- }
- function findHostInstanceWithNoPortals(fiber) {
- var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- if (hostFiber.tag === FundamentalComponent) {
- return hostFiber.stateNode.instance;
- }
-
- return hostFiber.stateNode;
- }
-
- var shouldSuspendImpl = function (fiber) {
- return false;
- };
-
- function shouldSuspend(fiber) {
- return shouldSuspendImpl(fiber);
- }
- var overrideHookState = null;
- var overrideHookStateDeletePath = null;
- var overrideHookStateRenamePath = null;
- var overrideProps = null;
- var overridePropsDeletePath = null;
- var overridePropsRenamePath = null;
- var scheduleUpdate = null;
- var setSuspenseHandler = null;
-
- {
- var copyWithDeleteImpl = function (obj, path, index) {
- var key = path[index];
- var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
-
- if (index + 1 === path.length) {
- if (Array.isArray(updated)) {
- updated.splice(key, 1);
- } else {
- delete updated[key];
- }
-
- return updated;
- } // $FlowFixMe number or string is fine here
-
-
- updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);
- return updated;
- };
-
- var copyWithDelete = function (obj, path) {
- return copyWithDeleteImpl(obj, path, 0);
- };
-
- var copyWithRenameImpl = function (obj, oldPath, newPath, index) {
- var oldKey = oldPath[index];
- var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
-
- if (index + 1 === oldPath.length) {
- var newKey = newPath[index]; // $FlowFixMe number or string is fine here
-
- updated[newKey] = updated[oldKey];
-
- if (Array.isArray(updated)) {
- updated.splice(oldKey, 1);
- } else {
- delete updated[oldKey];
- }
- } else {
- // $FlowFixMe number or string is fine here
- updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here
- obj[oldKey], oldPath, newPath, index + 1);
- }
-
- return updated;
- };
-
- var copyWithRename = function (obj, oldPath, newPath) {
- if (oldPath.length !== newPath.length) {
- warn('copyWithRename() expects paths of the same length');
-
- return;
- } else {
- for (var i = 0; i < newPath.length - 1; i++) {
- if (oldPath[i] !== newPath[i]) {
- warn('copyWithRename() expects paths to be the same except for the deepest key');
-
- return;
- }
- }
- }
-
- return copyWithRenameImpl(obj, oldPath, newPath, 0);
- };
-
- var copyWithSetImpl = function (obj, path, index, value) {
- if (index >= path.length) {
- return value;
- }
-
- var key = path[index];
- var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here
-
- updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);
- return updated;
- };
-
- var copyWithSet = function (obj, path, value) {
- return copyWithSetImpl(obj, path, 0, value);
- };
-
- var findHook = function (fiber, id) {
- // For now, the "id" of stateful hooks is just the stateful hook index.
- // This may change in the future with e.g. nested hooks.
- var currentHook = fiber.memoizedState;
-
- while (currentHook !== null && id > 0) {
- currentHook = currentHook.next;
- id--;
- }
-
- return currentHook;
- }; // Support DevTools editable values for useState and useReducer.
-
-
- overrideHookState = function (fiber, id, path, value) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithSet(hook.memoizedState, path, value);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = _assign({}, fiber.memoizedProps);
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- }
- };
-
- overrideHookStateDeletePath = function (fiber, id, path) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithDelete(hook.memoizedState, path);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = _assign({}, fiber.memoizedProps);
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- }
- };
-
- overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {
- var hook = findHook(fiber, id);
-
- if (hook !== null) {
- var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
- hook.memoizedState = newState;
- hook.baseState = newState; // We aren't actually adding an update to the queue,
- // because there is no update we can add for useReducer hooks that won't trigger an error.
- // (There's no appropriate action type for DevTools overrides.)
- // As a result though, React will see the scheduled update as a noop and bailout.
- // Shallow cloning props works as a workaround for now to bypass the bailout check.
-
- fiber.memoizedProps = _assign({}, fiber.memoizedProps);
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- }
- }; // Support DevTools props for function components, forwardRef, memo, host components, etc.
-
-
- overrideProps = function (fiber, path, value) {
- fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- };
-
- overridePropsDeletePath = function (fiber, path) {
- fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- };
-
- overridePropsRenamePath = function (fiber, oldPath, newPath) {
- fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);
-
- if (fiber.alternate) {
- fiber.alternate.pendingProps = fiber.pendingProps;
- }
-
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- };
-
- scheduleUpdate = function (fiber) {
- scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
- };
-
- setSuspenseHandler = function (newShouldSuspendImpl) {
- shouldSuspendImpl = newShouldSuspendImpl;
- };
- }
-
- function findHostInstanceByFiber(fiber) {
- var hostFiber = findCurrentHostFiber(fiber);
-
- if (hostFiber === null) {
- return null;
- }
-
- return hostFiber.stateNode;
- }
-
- function emptyFindFiberByHostInstance(instance) {
- return null;
- }
-
- function getCurrentFiberForDevTools() {
- return current;
- }
-
- function injectIntoDevTools(devToolsConfig) {
- var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
- return injectInternals({
- bundleType: devToolsConfig.bundleType,
- version: devToolsConfig.version,
- rendererPackageName: devToolsConfig.rendererPackageName,
- rendererConfig: devToolsConfig.rendererConfig,
- overrideHookState: overrideHookState,
- overrideHookStateDeletePath: overrideHookStateDeletePath,
- overrideHookStateRenamePath: overrideHookStateRenamePath,
- overrideProps: overrideProps,
- overridePropsDeletePath: overridePropsDeletePath,
- overridePropsRenamePath: overridePropsRenamePath,
- setSuspenseHandler: setSuspenseHandler,
- scheduleUpdate: scheduleUpdate,
- currentDispatcherRef: ReactCurrentDispatcher,
- findHostInstanceByFiber: findHostInstanceByFiber,
- findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,
- // React Refresh
- findHostInstancesForRefresh: findHostInstancesForRefresh ,
- scheduleRefresh: scheduleRefresh ,
- scheduleRoot: scheduleRoot ,
- setRefreshHandler: setRefreshHandler ,
- // Enables DevTools to append owner stacks to error messages in DEV mode.
- getCurrentFiber: getCurrentFiberForDevTools
- });
- }
-
- function ReactDOMRoot(container, options) {
- this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
- }
-
- function ReactDOMBlockingRoot(container, tag, options) {
- this._internalRoot = createRootImpl(container, tag, options);
- }
-
- ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
- var root = this._internalRoot;
-
- {
- if (typeof arguments[1] === 'function') {
- error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
- }
-
- var container = root.containerInfo;
-
- if (container.nodeType !== COMMENT_NODE) {
- var hostInstance = findHostInstanceWithNoPortals(root.current);
-
- if (hostInstance) {
- if (hostInstance.parentNode !== container) {
- error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
- }
- }
- }
- }
-
- updateContainer(children, root, null, null);
- };
-
- ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
- {
- if (typeof arguments[0] === 'function') {
- error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
- }
- }
-
- var root = this._internalRoot;
- var container = root.containerInfo;
- updateContainer(null, root, null, function () {
- unmarkContainerAsRoot(container);
- });
- };
-
- function createRootImpl(container, tag, options) {
- // Tag is either LegacyRoot or Concurrent Root
- var hydrate = options != null && options.hydrate === true;
- var hydrationCallbacks = options != null && options.hydrationOptions || null;
- var mutableSources = options != null && options.hydrationOptions != null && options.hydrationOptions.mutableSources || null;
- var root = createContainer(container, tag, hydrate);
- markContainerAsRoot(root.current, container);
- var containerNodeType = container.nodeType;
-
- {
- var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
- listenToAllSupportedEvents(rootContainerElement);
- }
-
- if (mutableSources) {
- for (var i = 0; i < mutableSources.length; i++) {
- var mutableSource = mutableSources[i];
- registerMutableSourceForHydration(root, mutableSource);
- }
- }
-
- return root;
- }
- function createLegacyRoot(container, options) {
- return new ReactDOMBlockingRoot(container, LegacyRoot, options);
- }
- function isValidContainer(node) {
- return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
- }
-
- var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
- var topLevelUpdateWarnings;
- var warnedAboutHydrateAPI = false;
-
- {
- topLevelUpdateWarnings = function (container) {
- if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
- var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
-
- if (hostInstance) {
- if (hostInstance.parentNode !== container) {
- error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
- }
- }
- }
-
- var isRootRenderedBySomeReact = !!container._reactRootContainer;
- var rootEl = getReactRootElementInContainer(container);
- var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));
-
- if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
- error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
- }
-
- if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
- error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
- }
- };
- }
-
- function getReactRootElementInContainer(container) {
- if (!container) {
- return null;
- }
-
- if (container.nodeType === DOCUMENT_NODE) {
- return container.documentElement;
- } else {
- return container.firstChild;
- }
- }
-
- function shouldHydrateDueToLegacyHeuristic(container) {
- var rootElement = getReactRootElementInContainer(container);
- return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
- }
-
- function legacyCreateRootFromDOMContainer(container, forceHydrate) {
- var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.
-
- if (!shouldHydrate) {
- var warned = false;
- var rootSibling;
-
- while (rootSibling = container.lastChild) {
- {
- if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
- warned = true;
-
- error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
- }
- }
-
- container.removeChild(rootSibling);
- }
- }
-
- {
- if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
- warnedAboutHydrateAPI = true;
-
- warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v18. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
- }
- }
-
- return createLegacyRoot(container, shouldHydrate ? {
- hydrate: true
- } : undefined);
- }
-
- function warnOnInvalidCallback$1(callback, callerName) {
- {
- if (callback !== null && typeof callback !== 'function') {
- error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
- }
- }
- }
-
- function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
- {
- topLevelUpdateWarnings(container);
- warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
- } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
- // member of intersection type." Whyyyyyy.
-
-
- var root = container._reactRootContainer;
- var fiberRoot;
-
- if (!root) {
- // Initial mount
- root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
- fiberRoot = root._internalRoot;
-
- if (typeof callback === 'function') {
- var originalCallback = callback;
-
- callback = function () {
- var instance = getPublicRootInstance(fiberRoot);
- originalCallback.call(instance);
- };
- } // Initial mount should not be batched.
-
-
- unbatchedUpdates(function () {
- updateContainer(children, fiberRoot, parentComponent, callback);
- });
- } else {
- fiberRoot = root._internalRoot;
-
- if (typeof callback === 'function') {
- var _originalCallback = callback;
-
- callback = function () {
- var instance = getPublicRootInstance(fiberRoot);
-
- _originalCallback.call(instance);
- };
- } // Update
-
-
- updateContainer(children, fiberRoot, parentComponent, callback);
- }
-
- return getPublicRootInstance(fiberRoot);
- }
-
- function findDOMNode(componentOrElement) {
- {
- var owner = ReactCurrentOwner$3.current;
-
- if (owner !== null && owner.stateNode !== null) {
- var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
-
- if (!warnedAboutRefsInRender) {
- error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component');
- }
-
- owner.stateNode._warnedAboutRefsInRender = true;
- }
- }
-
- if (componentOrElement == null) {
- return null;
- }
-
- if (componentOrElement.nodeType === ELEMENT_NODE) {
- return componentOrElement;
- }
-
- {
- return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
- }
- }
- function hydrate(element, container, callback) {
- if (!isValidContainer(container)) {
- {
- throw Error( "Target container is not a DOM element." );
- }
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
- }
- } // TODO: throw or warn if we couldn't hydrate?
-
-
- return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
- }
- function render(element, container, callback) {
- if (!isValidContainer(container)) {
- {
- throw Error( "Target container is not a DOM element." );
- }
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
- }
- }
-
- return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
- }
- function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
- if (!isValidContainer(containerNode)) {
- {
- throw Error( "Target container is not a DOM element." );
- }
- }
-
- if (!(parentComponent != null && has(parentComponent))) {
- {
- throw Error( "parentComponent must be a valid React Component" );
- }
- }
-
- return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
- }
- function unmountComponentAtNode(container) {
- if (!isValidContainer(container)) {
- {
- throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
- }
- }
-
- {
- var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
-
- if (isModernRoot) {
- error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
- }
- }
-
- if (container._reactRootContainer) {
- {
- var rootEl = getReactRootElementInContainer(container);
- var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);
-
- if (renderedByDifferentReact) {
- error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
- }
- } // Unmount should not be batched.
-
-
- unbatchedUpdates(function () {
- legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
- // $FlowFixMe This should probably use `delete container._reactRootContainer`
- container._reactRootContainer = null;
- unmarkContainerAsRoot(container);
- });
- }); // If you call unmountComponentAtNode twice in quick succession, you'll
- // get `true` twice. That's probably fine?
-
- return true;
- } else {
- {
- var _rootEl = getReactRootElementInContainer(container);
-
- var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.
-
- var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
-
- if (hasNonRootReactChild) {
- error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
- }
- }
-
- return false;
- }
- }
-
- setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
- setAttemptContinuousHydration(attemptContinuousHydration$1);
- setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
- setAttemptHydrationAtPriority(runWithPriority$2);
- var didWarnAboutUnstableCreatePortal = false;
-
- {
- if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
- Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
- Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
- error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
- }
- }
-
- setRestoreImplementation(restoreControlledState$3);
- setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
-
- function createPortal$1(children, container) {
- var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
-
- if (!isValidContainer(container)) {
- {
- throw Error( "Target container is not a DOM element." );
- }
- } // TODO: pass ReactDOM portal implementation as third argument
- // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
-
-
- return createPortal(children, container, null, key);
- }
-
- function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
-
- return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
- }
-
- function unstable_createPortal(children, container) {
- var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
-
- {
- if (!didWarnAboutUnstableCreatePortal) {
- didWarnAboutUnstableCreatePortal = true;
-
- warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 18+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
- }
- }
-
- return createPortal$1(children, container, key);
- }
-
- var Internals = {
- // Keep in sync with ReactTestUtils.js, and ReactTestUtilsAct.js.
- // This is an array for better minification.
- Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, flushPassiveEffects, // TODO: This is related to `act`, not events. Move to separate key?
- IsThisRendererActing]
- };
- var foundDevTools = injectIntoDevTools({
- findFiberByHostInstance: getClosestInstanceFromNode,
- bundleType: 1 ,
- version: ReactVersion,
- rendererPackageName: 'react-dom'
- });
-
- {
- if (!foundDevTools && canUseDOM && window.top === window.self) {
- // If we're in Chrome or Firefox, provide a download link if not installed.
- if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
- var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
-
- if (/^(https?|file):$/.test(protocol)) {
- // eslint-disable-next-line react-internal/no-production-logging
- console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
- }
- }
- }
- }
-
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
- exports.createPortal = createPortal$1;
- exports.findDOMNode = findDOMNode;
- exports.flushSync = flushSync;
- exports.hydrate = hydrate;
- exports.render = render;
- exports.unmountComponentAtNode = unmountComponentAtNode;
- exports.unstable_batchedUpdates = batchedUpdates$1;
- exports.unstable_createPortal = unstable_createPortal;
- exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
- exports.version = ReactVersion;
-
-})));
diff --git a/libraries/excalidraw/umd/react-dom.production.min.js b/libraries/excalidraw/umd/react-dom.production.min.js
deleted file mode 100644
index e38d120b23..0000000000
--- a/libraries/excalidraw/umd/react-dom.production.min.js
+++ /dev/null
@@ -1,245 +0,0 @@
-/** @license React v17.0.2
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-(function(){/*
- Modernizr 3.0.0pre (Custom Build) | MIT
-*/
-'use strict';(function(M,ha){"object"===typeof exports&&"undefined"!==typeof module?ha(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],ha):(M=M||self,ha(M.ReactDOM={},M.React))})(this,function(M,ha){function m(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
-function Ta(a,b){gb(a,b);gb(a+"Capture",b)}function gb(a,b){Ib[a]=b;for(a=0;a<b.length;a++)zf.add(b[a])}function li(a){if(Af.call(Bf,a))return!0;if(Af.call(Cf,a))return!1;if(mi.test(a))return Bf[a]=!0;Cf[a]=!0;return!1}function ni(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function oi(a,b,c,d){if(null===
-b||"undefined"===typeof b||ni(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function Q(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}function Ed(a,b,c,d){var e=I.hasOwnProperty(b)?I[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||
-"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1]?!1:!0;f||(oi(b,c,e,d)&&(c=null),d||null===e?li(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}function Jb(a){if(null===a||"object"!==typeof a)return null;a=Df&&a[Df]||a["@@iterator"];return"function"===typeof a?a:null}
-function Kb(a,b,c){if(void 0===Fd)try{throw Error();}catch(d){Fd=(b=d.stack.trim().match(/\n( *(at )?)/))&&b[1]||""}return"\n"+Fd+a}function Bc(a,b){if(!a||Gd)return"";Gd=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,"props",{set:function(){throw Error();}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(k){var d=k}Reflect.construct(a,[],b)}else{try{b.call()}catch(k){d=k}a.call(b.prototype)}else{try{throw Error();
-}catch(k){d=k}a()}}catch(k){if(k&&d&&"string"===typeof k.stack){for(var e=k.stack.split("\n"),f=d.stack.split("\n"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h])return"\n"+e[g].replace(" at new "," at ");while(1<=g&&0<=h)}break}}}finally{Gd=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:"")?Kb(a):""}function pi(a){switch(a.tag){case 5:return Kb(a.type);case 16:return Kb("Lazy");case 13:return Kb("Suspense");
-case 19:return Kb("SuspenseList");case 0:case 2:case 15:return a=Bc(a.type,!1),a;case 11:return a=Bc(a.type.render,!1),a;case 22:return a=Bc(a.type._render,!1),a;case 1:return a=Bc(a.type,!0),a;default:return""}}function hb(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case wa:return"Fragment";case Ua:return"Portal";case Lb:return"Profiler";case Hd:return"StrictMode";case Mb:return"Suspense";case Cc:return"SuspenseList"}if("object"===
-typeof a)switch(a.$$typeof){case Id:return(a.displayName||"Context")+".Consumer";case Jd:return(a._context.displayName||"Context")+".Provider";case Dc:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case Ec:return hb(a.type);case Kd:return hb(a._render);case Ld:b=a._payload;a=a._init;try{return hb(a(b))}catch(c){}}return null}function xa(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;
-default:return""}}function Ef(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}function qi(a){var b=Ef(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a)}});Object.defineProperty(a,
-b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=null;delete a[b]}}}}function Fc(a){a._valueTracker||(a._valueTracker=qi(a))}function Ff(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=Ef(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Gc(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||
-a.body}catch(b){return a.body}}function Md(a,b){var c=b.checked;return B({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Gf(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=xa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function Hf(a,b){b=b.checked;null!=b&&Ed(a,"checked",
-b,!1)}function Nd(a,b){Hf(a,b);var c=xa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?Od(a,b.type,c):b.hasOwnProperty("defaultValue")&&Od(a,b.type,xa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}function If(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=
-b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c)}function Od(a,b,c){if("number"!==b||Gc(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c)}function ri(a){var b="";ha.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}
-function Pd(a,b){a=B({children:void 0},b);if(b=ri(b.children))a.children=b;return a}function ib(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=""+xa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}function Qd(a,b){if(null!=
-b.dangerouslySetInnerHTML)throw Error(m(91));return B({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Jf(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(m(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(m(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:xa(c)}}function Kf(a,b){var c=xa(b.value),d=xa(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==
-c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Lf(a,b){b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}function Mf(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rd(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Mf(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}function Nf(a,b,c){return null==
-b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||Nb.hasOwnProperty(a)&&Nb[a]?(""+b).trim():b+"px"}function Of(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=Nf(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}function Sd(a,b){if(b){if(si[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(m(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(m(60));if(!("object"===typeof b.dangerouslySetInnerHTML&&
-"__html"in b.dangerouslySetInnerHTML))throw Error(m(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(m(62));}}function Td(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1;default:return!0}}function Ud(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);
-return 3===a.nodeType?a.parentNode:a}function Pf(a){if(a=Ob(a)){if("function"!==typeof Vd)throw Error(m(280));var b=a.stateNode;b&&(b=Hc(b),Vd(a.stateNode,a.type,b))}}function Qf(a){jb?kb?kb.push(a):kb=[a]:jb=a}function Rf(){if(jb){var a=jb,b=kb;kb=jb=null;Pf(a);if(b)for(a=0;a<b.length;a++)Pf(b[a])}}function Wd(){if(null!==jb||null!==kb)Xd(),Rf()}function ti(a,b,c){if(Yd)return a(b,c);Yd=!0;try{return Sf(a,b,c)}finally{Yd=!1,Wd()}}function Pb(a,b){var c=a.stateNode;if(null===c)return null;var d=Hc(c);
-if(null===d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(m(231,b,typeof c));return c}function ui(a,b,c,d,e,
-f,g,h,k){Qb=!1;Ic=null;vi.apply(wi,arguments)}function xi(a,b,c,d,e,f,g,h,k){ui.apply(this,arguments);if(Qb){if(Qb){var v=Ic;Qb=!1;Ic=null}else throw Error(m(198));Jc||(Jc=!0,Zd=v)}}function Va(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.flags&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Tf(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Uf(a){if(Va(a)!==
-a)throw Error(m(188));}function yi(a){var b=a.alternate;if(!b){b=Va(a);if(null===b)throw Error(m(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Uf(e),a;if(f===d)return Uf(e),b;f=f.sibling}throw Error(m(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=
-f.child;h;){if(h===c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(m(189));}}if(c.alternate!==d)throw Error(m(190));}if(3!==c.tag)throw Error(m(188));return c.stateNode.current===c?a:b}function Vf(a){a=yi(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}function Wf(a,b){for(var c=
-a.alternate;null!==b;){if(b===a||b===c)return!0;b=b.return}return!1}function $d(a,b,c,d,e){return{blockedOn:a,domEventName:b,eventSystemFlags:c|16,nativeEvent:e,targetContainers:[d]}}function Xf(a,b){switch(a){case "focusin":case "focusout":ya=null;break;case "dragenter":case "dragleave":za=null;break;case "mouseover":case "mouseout":Aa=null;break;case "pointerover":case "pointerout":Rb.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":Sb.delete(b.pointerId)}}function Tb(a,
-b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a=$d(b,c,d,e,f),null!==b&&(b=Ob(b),null!==b&&Yf(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}function zi(a,b,c,d,e){switch(b){case "focusin":return ya=Tb(ya,a,b,c,d,e),!0;case "dragenter":return za=Tb(za,a,b,c,d,e),!0;case "mouseover":return Aa=Tb(Aa,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;Rb.set(f,Tb(Rb.get(f)||null,a,b,c,d,e));return!0;case "gotpointercapture":return f=e.pointerId,Sb.set(f,
-Tb(Sb.get(f)||null,a,b,c,d,e)),!0}return!1}function Ai(a){var b=Wa(a.target);if(null!==b){var c=Va(b);if(null!==c)if(b=c.tag,13===b){if(b=Tf(c),null!==b){a.blockedOn=b;Bi(a.lanePriority,function(){ae(a.priority,function(){Ci(c)})});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Kc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=be(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);
-if(null!==c)return b=Ob(c),null!==b&&Yf(b),a.blockedOn=c,!1;b.shift()}return!0}function Zf(a,b,c){Kc(a)&&c.delete(b)}function Di(){for(ce=!1;0<ia.length;){var a=ia[0];if(null!==a.blockedOn){a=Ob(a.blockedOn);null!==a&&Ei(a);break}for(var b=a.targetContainers;0<b.length;){var c=be(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null!==c){a.blockedOn=c;break}b.shift()}null===a.blockedOn&&ia.shift()}null!==ya&&Kc(ya)&&(ya=null);null!==za&&Kc(za)&&(za=null);null!==Aa&&Kc(Aa)&&(Aa=null);Rb.forEach(Zf);
-Sb.forEach(Zf)}function Ub(a,b){a.blockedOn===b&&(a.blockedOn=null,ce||(ce=!0,$f(ag,Di)))}function bg(a){if(0<ia.length){Ub(ia[0],a);for(var b=1;b<ia.length;b++){var c=ia[b];c.blockedOn===a&&(c.blockedOn=null)}}null!==ya&&Ub(ya,a);null!==za&&Ub(za,a);null!==Aa&&Ub(Aa,a);b=function(b){return Ub(b,a)};Rb.forEach(b);Sb.forEach(b);for(b=0;b<Vb.length;b++)c=Vb[b],c.blockedOn===a&&(c.blockedOn=null);for(;0<Vb.length&&(b=Vb[0],null===b.blockedOn);)Ai(b),null===b.blockedOn&&Vb.shift()}function Lc(a,b){var c=
-{};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}function Mc(a){if(de[a])return de[a];if(!lb[a])return a;var b=lb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in cg)return de[a]=b[c];return a}function ee(a,b){for(var c=0;c<a.length;c+=2){var d=a[c],e=a[c+1];e="on"+(e[0].toUpperCase()+e.slice(1));fe.set(d,b);dg.set(d,e);Ta(e,[d])}}function mb(a){if(0!==(1&a))return w=15,1;if(0!==(2&a))return w=14,2;if(0!==(4&a))return w=13,4;var b=24&a;if(0!==b)return w=12,b;
-if(0!==(a&32))return w=11,32;b=192&a;if(0!==b)return w=10,b;if(0!==(a&256))return w=9,256;b=3584&a;if(0!==b)return w=8,b;if(0!==(a&4096))return w=7,4096;b=4186112&a;if(0!==b)return w=6,b;b=62914560&a;if(0!==b)return w=5,b;if(a&67108864)return w=4,67108864;if(0!==(a&134217728))return w=3,134217728;b=805306368&a;if(0!==b)return w=2,b;if(0!==(1073741824&a))return w=1,1073741824;w=8;return a}function Fi(a){switch(a){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}
-function Gi(a){switch(a){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(m(358,a));}}function Wb(a,b){var c=a.pendingLanes;if(0===c)return w=0;var d=0,e=0,f=a.expiredLanes,g=a.suspendedLanes,h=a.pingedLanes;if(0!==f)d=f,e=w=15;else if(f=c&134217727,0!==f){var k=f&~g;0!==k?(d=mb(k),e=w):(h&=f,0!==h&&(d=mb(h),e=w))}else f=c&~g,0!==f?(d=mb(f),e=w):0!==h&&(d=mb(h),
-e=w);if(0===d)return 0;d=31-Ba(d);d=c&((0>d?0:1<<d)<<1)-1;if(0!==b&&b!==d&&0===(b&g)){mb(b);if(e<=w)return b;w=e}b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-Ba(b),e=1<<c,d|=a[c],b&=~e;return d}function eg(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function Nc(a,b){switch(a){case 15:return 1;case 14:return 2;case 12:return a=nb(24&~b),0===a?Nc(10,b):a;case 10:return a=nb(192&~b),0===a?Nc(8,b):a;case 8:return a=nb(3584&~b),0===a&&(a=nb(4186112&~b),
-0===a&&(a=512)),a;case 2:return b=nb(805306368&~b),0===b&&(b=268435456),b}throw Error(m(358,a));}function nb(a){return a&-a}function ge(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}function Oc(a,b,c){a.pendingLanes|=b;var d=b-1;a.suspendedLanes&=d;a.pingedLanes&=d;a=a.eventTimes;b=31-Ba(b);a[b]=c}function Hi(a){return 0===a?32:31-(Ii(a)/Ji|0)|0}function Ki(a,b,c,d){Xa||Xd();var e=he,f=Xa;Xa=!0;try{fg(e,a,b,c,d)}finally{(Xa=f)||Wd()}}function Li(a,b,c,d){Mi(Ni,he.bind(null,a,b,c,d))}function he(a,
-b,c,d){if(Pc){var e;if((e=0===(b&4))&&0<ia.length&&-1<gg.indexOf(a))a=$d(null,a,b,c,d),ia.push(a);else{var f=be(a,b,c,d);if(null===f)e&&Xf(a,d);else{if(e){if(-1<gg.indexOf(a)){a=$d(f,a,b,c,d);ia.push(a);return}if(zi(f,a,b,c,d))return;Xf(a,d)}hg(a,b,d,null,c)}}}}function be(a,b,c,d){var e=Ud(d);e=Wa(e);if(null!==e){var f=Va(e);if(null===f)e=null;else{var g=f.tag;if(13===g){e=Tf(f);if(null!==e)return e;e=null}else if(3===g){if(f.stateNode.hydrate)return 3===f.tag?f.stateNode.containerInfo:null;e=null}else f!==
-e&&(e=null)}}hg(a,b,d,e,c);return null}function ig(){if(Qc)return Qc;var a,b=ie,c=b.length,d,e="value"in Ca?Ca.value:Ca.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return Qc=e.slice(a,1<d?1-d:void 0)}function Rc(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function Sc(){return!0}function jg(){return!1}function V(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=
-d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?Sc:jg;this.isPropagationStopped=jg;return this}B(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=Sc)},stopPropagation:function(){var a=
-this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=Sc)},persist:function(){},isPersistent:Sc});return b}function Oi(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Pi[a])?!!b[a]:!1}function je(a){return Oi}function kg(a,b){switch(a){case "keyup":return-1!==Qi.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "focusout":return!0;default:return!1}}
-function lg(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}function Ri(a,b){switch(a){case "compositionend":return lg(b);case "keypress":if(32!==b.which)return null;mg=!0;return ng;case "textInput":return a=b.data,a===ng&&mg?null:a;default:return null}}function Si(a,b){if(ob)return"compositionend"===a||!ke&&kg(a,b)?(a=ig(),Qc=ie=Ca=null,ob=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;
-if(b.which)return String.fromCharCode(b.which)}return null;case "compositionend":return og&&"ko"!==b.locale?null:b.data;default:return null}}function pg(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!Ti[a.type]:"textarea"===b?!0:!1}function Ui(a){if(!oa)return!1;a="on"+a;var b=a in document;b||(b=document.createElement("div"),b.setAttribute(a,"return;"),b="function"===typeof b[a]);return b}function qg(a,b,c,d){Qf(d);b=Tc(b,"onChange");0<b.length&&(c=new le("onChange","change",
-null,c,d),a.push({event:c,listeners:b}))}function Vi(a){rg(a,0)}function Uc(a){var b=pb(a);if(Ff(b))return a}function Wi(a,b){if("change"===a)return b}function sg(){Xb&&(Xb.detachEvent("onpropertychange",tg),Yb=Xb=null)}function tg(a){if("value"===a.propertyName&&Uc(Yb)){var b=[];qg(b,Yb,a,Ud(a));a=Vi;if(Xa)a(b);else{Xa=!0;try{me(a,b)}finally{Xa=!1,Wd()}}}}function Xi(a,b,c){"focusin"===a?(sg(),Xb=b,Yb=c,Xb.attachEvent("onpropertychange",tg)):"focusout"===a&&sg()}function Yi(a,b){if("selectionchange"===
-a||"keyup"===a||"keydown"===a)return Uc(Yb)}function Zi(a,b){if("click"===a)return Uc(b)}function $i(a,b){if("input"===a||"change"===a)return Uc(b)}function aj(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}function Zb(a,b){if(X(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!bj.call(b,c[d])||!X(a[c[d]],b[c[d]]))return!1;return!0}function ug(a){for(;a&&a.firstChild;)a=
-a.firstChild;return a}function vg(a,b){var c=ug(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ug(c)}}function wg(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wg(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xg(){for(var a=window,b=Gc();b instanceof a.HTMLIFrameElement;){try{var c=
-"string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Gc(a.document)}return b}function ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}function yg(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;oe||null==qb||qb!==Gc(d)||(d=qb,"selectionStart"in d&&ne(d)?d={start:d.selectionStart,
-end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),$b&&Zb($b,d)||($b=d,d=Tc(pe,"onSelect"),0<d.length&&(b=new le("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=qb)))}function zg(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;xi(d,b,void 0,a);a.currentTarget=null}function rg(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=
-a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,v=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;zg(e,h,v);f=k}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;v=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;zg(e,h,v);f=k}}}if(Jc)throw a=Zd,Jc=!1,Zd=null,a;}function z(a,b){var c=Ag(b),d=a+"__bubble";c.has(d)||(Bg(b,a,2,!1),c.add(d))}function Cg(a){a[Dg]||(a[Dg]=!0,zf.forEach(function(b){Eg.has(b)||
-Fg(b,!1,a,null);Fg(b,!0,a,null)}))}function Fg(a,b,c,d){var e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,f=c;"selectionchange"===a&&9!==c.nodeType&&(f=c.ownerDocument);if(null!==d&&!b&&Eg.has(a)){if("scroll"!==a)return;e|=2;f=d}var g=Ag(f),h=a+"__"+(b?"capture":"bubble");g.has(h)||(b&&(e|=4),Bg(f,a,e,b),g.add(h))}function Bg(a,b,c,d,e){e=fe.get(b);switch(void 0===e?2:e){case 0:e=Ki;break;case 1:e=Li;break;default:e=he}c=e.bind(null,b,c,a);e=void 0;!qe||"touchstart"!==b&&"touchmove"!==
-b&&"wheel"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}function hg(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&
-k.parentNode===e)return;g=g.return}for(;null!==h;){g=Wa(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}ti(function(){var d=f,e=Ud(c),g=[];a:{var h=dg.get(a);if(void 0!==h){var k=le,m=a;switch(a){case "keypress":if(0===Rc(c))break a;case "keydown":case "keyup":k=cj;break;case "focusin":m="focus";k=re;break;case "focusout":m="blur";k=re;break;case "beforeblur":case "afterblur":k=re;break;case "click":if(2===c.button)break a;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":k=
-Gg;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":k=dj;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=ej;break;case Hg:case Ig:case Jg:k=fj;break;case Kg:k=gj;break;case "scroll":k=hj;break;case "wheel":k=ij;break;case "copy":case "cut":case "paste":k=jj;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=
-Lg}var l=0!==(b&4),C=!l&&"scroll"===a,x=l?null!==h?h+"Capture":null:h;l=[];for(var p=d,q;null!==p;){q=p;var u=q.stateNode;5===q.tag&&null!==u&&(q=u,null!==x&&(u=Pb(p,x),null!=u&&l.push(ac(p,u,q))));if(C)break;p=p.return}0<l.length&&(h=new k(h,m,null,c,e),g.push({event:h,listeners:l}))}}if(0===(b&7)){a:{h="mouseover"===a||"pointerover"===a;k="mouseout"===a||"pointerout"===a;if(h&&0===(b&16)&&(m=c.relatedTarget||c.fromElement)&&(Wa(m)||m[rb]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||
-h.parentWindow:window;if(k){if(m=c.relatedTarget||c.toElement,k=d,m=m?Wa(m):null,null!==m&&(C=Va(m),m!==C||5!==m.tag&&6!==m.tag))m=null}else k=null,m=d;if(k!==m){l=Gg;u="onMouseLeave";x="onMouseEnter";p="mouse";if("pointerout"===a||"pointerover"===a)l=Lg,u="onPointerLeave",x="onPointerEnter",p="pointer";C=null==k?h:pb(k);q=null==m?h:pb(m);h=new l(u,p+"leave",k,c,e);h.target=C;h.relatedTarget=q;u=null;Wa(e)===d&&(l=new l(x,p+"enter",m,c,e),l.target=q,l.relatedTarget=C,u=l);C=u;if(k&&m)b:{l=k;x=m;p=
-0;for(q=l;q;q=sb(q))p++;q=0;for(u=x;u;u=sb(u))q++;for(;0<p-q;)l=sb(l),p--;for(;0<q-p;)x=sb(x),q--;for(;p--;){if(l===x||null!==x&&l===x.alternate)break b;l=sb(l);x=sb(x)}l=null}else l=null;null!==k&&Mg(g,h,k,l,!1);null!==m&&null!==C&&Mg(g,C,m,l,!0)}}}a:{h=d?pb(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if("select"===k||"input"===k&&"file"===h.type)var n=Wi;else if(pg(h))if(Ng)n=$i;else{n=Yi;var da=Xi}else(k=h.nodeName)&&"input"===k.toLowerCase()&&("checkbox"===h.type||"radio"===h.type)&&(n=Zi);
-if(n&&(n=n(a,d))){qg(g,n,c,e);break a}da&&da(a,h,d);"focusout"===a&&(da=h._wrapperState)&&da.controlled&&"number"===h.type&&Od(h,"number",h.value)}da=d?pb(d):window;switch(a){case "focusin":if(pg(da)||"true"===da.contentEditable)qb=da,pe=d,$b=null;break;case "focusout":$b=pe=qb=null;break;case "mousedown":oe=!0;break;case "contextmenu":case "mouseup":case "dragend":oe=!1;yg(g,c,e);break;case "selectionchange":if(kj)break;case "keydown":case "keyup":yg(g,c,e)}var Ea;if(ke)b:{switch(a){case "compositionstart":var F=
-"onCompositionStart";break b;case "compositionend":F="onCompositionEnd";break b;case "compositionupdate":F="onCompositionUpdate";break b}F=void 0}else ob?kg(a,c)&&(F="onCompositionEnd"):"keydown"===a&&229===c.keyCode&&(F="onCompositionStart");F&&(og&&"ko"!==c.locale&&(ob||"onCompositionStart"!==F?"onCompositionEnd"===F&&ob&&(Ea=ig()):(Ca=e,ie="value"in Ca?Ca.value:Ca.textContent,ob=!0)),da=Tc(d,F),0<da.length&&(F=new Og(F,a,null,c,e),g.push({event:F,listeners:da}),Ea?F.data=Ea:(Ea=lg(c),null!==Ea&&
-(F.data=Ea))));if(Ea=lj?Ri(a,c):Si(a,c))d=Tc(d,"onBeforeInput"),0<d.length&&(e=new mj("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=Ea)}rg(g,b)})}function ac(a,b,c){return{instance:a,listener:b,currentTarget:c}}function Tc(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Pb(a,c),null!=f&&d.unshift(ac(a,f,e)),f=Pb(a,b),null!=f&&d.push(ac(a,f,e)));a=a.return}return d}function sb(a){if(null===a)return null;do a=a.return;while(a&&
-5!==a.tag);return a?a:null}function Mg(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,v=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==v&&(h=v,e?(k=Pb(c,f),null!=k&&g.unshift(ac(c,k,h))):e||(k=Pb(c,f),null!=k&&g.push(ac(c,k,h))));c=c.return}0!==g.length&&a.push({event:b,listeners:g})}function Vc(){}function Pg(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}function se(a,b){return"textarea"===a||"option"===
-a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}function te(a){1===a.nodeType?a.textContent="":9===a.nodeType&&(a=a.body,null!=a&&(a.textContent=""))}function tb(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}function Qg(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===
-c){if(0===b)return a;b--}else"/$"===c&&b++}a=a.previousSibling}return null}function nj(a){return{$$typeof:ue,toString:a,valueOf:a}}function Wa(a){var b=a[Fa];if(b)return b;for(var c=a.parentNode;c;){if(b=c[rb]||c[Fa]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Qg(a);null!==a;){if(c=a[Fa])return c;a=Qg(a)}return b}a=c;c=a.parentNode}return null}function Ob(a){a=a[Fa]||a[rb];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function pb(a){if(5===a.tag||6===a.tag)return a.stateNode;
-throw Error(m(33));}function Hc(a){return a[Wc]||null}function Ag(a){var b=a[Rg];void 0===b&&(b=a[Rg]=new Set);return b}function Ga(a){return{current:a}}function t(a,b){0>ub||(a.current=ve[ub],ve[ub]=null,ub--)}function A(a,b,c){ub++;ve[ub]=a.current;a.current=b}function vb(a,b){var c=a.type.contextTypes;if(!c)return Ha;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=
-b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function S(a){a=a.childContextTypes;return null!==a&&void 0!==a}function Sg(a,b,c){if(D.current!==Ha)throw Error(m(168));A(D,b);A(J,c)}function Tg(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(m(108,hb(b)||"Unknown",e));return B({},c,d)}function Xc(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Ha;Ya=D.current;
-A(D,a);A(J,J.current);return!0}function Ug(a,b,c){var d=a.stateNode;if(!d)throw Error(m(169));c?(a=Tg(a,b,Ya),d.__reactInternalMemoizedMergedChildContext=a,t(J),t(D),A(D,a)):t(J);A(J,c)}function wb(){switch(oj()){case Yc:return 99;case Vg:return 98;case Wg:return 97;case Xg:return 96;case Yg:return 95;default:throw Error(m(332));}}function Zg(a){switch(a){case 99:return Yc;case 98:return Vg;case 97:return Wg;case 96:return Xg;case 95:return Yg;default:throw Error(m(332));}}function Za(a,b){a=Zg(a);
-return pj(a,b)}function bc(a,b,c){a=Zg(a);return we(a,b,c)}function ja(){if(null!==Zc){var a=Zc;Zc=null;xe(a)}$g()}function $g(){if(!ye&&null!==pa){ye=!0;var a=0;try{var b=pa;Za(99,function(){for(;a<b.length;a++){var c=b[a];do c=c(!0);while(null!==c)}});pa=null}catch(c){throw null!==pa&&(pa=pa.slice(a+1)),we(Yc,ja),c;}finally{ye=!1}}}function ea(a,b){if(a&&a.defaultProps){b=B({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}function ze(){$c=xb=ad=null}function Ae(a){var b=
-bd.current;t(bd);a.type._context._currentValue=b}function ah(a,b){for(;null!==a;){var c=a.alternate;if((a.childLanes&b)===b)if(null===c||(c.childLanes&b)===b)break;else c.childLanes|=b;else a.childLanes|=b,null!==c&&(c.childLanes|=b);a=a.return}}function yb(a,b){ad=a;$c=xb=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(fa=!0),a.firstContext=null)}function Y(a,b){if($c!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)$c=a,b=1073741823;b={context:a,observedBits:b,
-next:null};if(null===xb){if(null===ad)throw Error(m(308));xb=b;ad.dependencies={lanes:0,firstContext:b,responders:null}}else xb=xb.next=b}return a._currentValue}function Be(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function bh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function Ia(a,b){return{eventTime:a,
-lane:b,tag:0,payload:null,callback:null,next:null}}function Ja(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}}function ch(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=
-f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=b;c.lastBaseUpdate=b}function cc(a,b,c,d){var e=a.updateQueue;Ka=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,v=k.next;k.next=null;null===g?f=v:g.next=v;g=k;var m=a.alternate;if(null!==m){m=m.updateQueue;var l=m.lastBaseUpdate;l!==g&&(null===l?m.firstBaseUpdate=
-v:l.next=v,m.lastBaseUpdate=k)}}if(null!==f){l=e.baseState;g=0;m=v=k=null;do{h=f.lane;var r=f.eventTime;if((d&h)===h){null!==m&&(m=m.next={eventTime:r,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});a:{var n=a,t=f;h=b;r=c;switch(t.tag){case 1:n=t.payload;if("function"===typeof n){l=n.call(r,l,h);break a}l=n;break a;case 3:n.flags=n.flags&-4097|64;case 0:n=t.payload;h="function"===typeof n?n.call(r,l,h):n;if(null===h||void 0===h)break a;l=B({},l,h);break a;case 2:Ka=!0}}null!==f.callback&&
-(a.flags|=32,h=e.effects,null===h?e.effects=[f]:h.push(f))}else r={eventTime:r,lane:h,tag:f.tag,payload:f.payload,callback:f.callback,next:null},null===m?(v=m=r,k=l):m=m.next=r,g|=h;f=f.next;if(null===f)if(h=e.shared.pending,null===h)break;else f=h.next,h.next=null,e.lastBaseUpdate=h,e.shared.pending=null}while(1);null===m&&(k=l);e.baseState=k;e.firstBaseUpdate=v;e.lastBaseUpdate=m;La|=g;a.lanes=g;a.memoizedState=l}}function dh(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=
-a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(m(191,e));e.call(d)}}}function cd(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:B({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c)}function eh(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Zb(c,d)||!Zb(e,f):!0}function fh(a,b,c){var d=!1,e=Ha;var f=b.contextType;"object"===
-typeof f&&null!==f?f=Y(f):(e=S(b)?Ya:D.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?vb(a,e):Ha);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=dd;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}function gh(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&
-b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&dd.enqueueReplaceState(b,b.state,null)}function Ce(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=hh;Be(a);var f=b.contextType;"object"===typeof f&&null!==f?e.context=Y(f):(f=S(b)?Ya:D.current,e.context=vb(a,f));cc(a,c,e,d);e.state=a.memoizedState;f=b.getDerivedStateFromProps;"function"===typeof f&&(cd(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||
-"function"!==typeof e.UNSAFE_componentWillMount&&"function"!==typeof e.componentWillMount||(b=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&dd.enqueueReplaceState(e,e.state,null),cc(a,c,e,d),e.state=a.memoizedState);"function"===typeof e.componentDidMount&&(a.flags|=4)}function dc(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==
-c.tag)throw Error(m(309));var d=c.stateNode}if(!d)throw Error(m(147,a));var e=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs;b===hh&&(b=d.refs={});null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}if("string"!==typeof a)throw Error(m(284));if(!c._owner)throw Error(m(290,a));}return a}function ed(a,b){if("textarea"!==a.type)throw Error(m(31,"[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+
-"}":b));}function ih(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.flags=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Ma(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags=
-2,c):d;b.flags=2;return c}function g(b){a&&null===b.alternate&&(b.flags=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=De(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){if(null!==b&&b.elementType===c.type)return d=e(b,c.props),d.ref=dc(a,b,c),d.return=a,d;d=fd(c.type,c.key,c.props,null,a.mode,d);d.ref=dc(a,b,c);d.return=a;return d}function v(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=
-Ee(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function l(a,b,c,d,f){if(null===b||7!==b.tag)return b=zb(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function n(a,b,c){if("string"===typeof b||"number"===typeof b)return b=De(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case ec:return c=fd(b.type,b.key,b.props,null,a.mode,c),c.ref=dc(a,null,b),c.return=a,c;case Ua:return b=Ee(b,a.mode,c),b.return=a,b}if(gd(b)||Jb(b))return b=zb(b,
-a.mode,c,null),b.return=a,b;ed(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case ec:return c.key===e?c.type===wa?l(a,b,c.props.children,d,e):k(a,b,c,d):null;case Ua:return c.key===e?v(a,b,c,d):null}if(gd(c)||Jb(c))return null!==e?null:l(a,b,c,d,null);ed(a,c)}return null}function t(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=a.get(c)||
-null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case ec:return a=a.get(null===d.key?c:d.key)||null,d.type===wa?l(b,a,d.props.children,e,d.key):k(b,a,d,e);case Ua:return a=a.get(null===d.key?c:d.key)||null,v(b,a,d,e)}if(gd(d)||Jb(d))return a=a.get(c)||null,l(b,a,d,e,null);ed(b,d)}return null}function w(e,g,h,k){for(var m=null,v=null,l=g,p=g=0,x=null;null!==l&&p<h.length;p++){l.index>p?(x=l,l=null):x=l.sibling;var C=r(e,l,h[p],k);if(null===C){null===l&&(l=x);break}a&&l&&null===
-C.alternate&&b(e,l);g=f(C,g,p);null===v?m=C:v.sibling=C;v=C;l=x}if(p===h.length)return c(e,l),m;if(null===l){for(;p<h.length;p++)l=n(e,h[p],k),null!==l&&(g=f(l,g,p),null===v?m=l:v.sibling=l,v=l);return m}for(l=d(e,l);p<h.length;p++)x=t(l,e,p,h[p],k),null!==x&&(a&&null!==x.alternate&&l.delete(null===x.key?p:x.key),g=f(x,g,p),null===v?m=x:v.sibling=x,v=x);a&&l.forEach(function(a){return b(e,a)});return m}function z(e,g,h,k){var l=Jb(h);if("function"!==typeof l)throw Error(m(150));h=l.call(h);if(null==
-h)throw Error(m(151));for(var v=l=null,p=g,x=g=0,C=null,q=h.next();null!==p&&!q.done;x++,q=h.next()){p.index>x?(C=p,p=null):C=p.sibling;var Da=r(e,p,q.value,k);if(null===Da){null===p&&(p=C);break}a&&p&&null===Da.alternate&&b(e,p);g=f(Da,g,x);null===v?l=Da:v.sibling=Da;v=Da;p=C}if(q.done)return c(e,p),l;if(null===p){for(;!q.done;x++,q=h.next())q=n(e,q.value,k),null!==q&&(g=f(q,g,x),null===v?l=q:v.sibling=q,v=q);return l}for(p=d(e,p);!q.done;x++,q=h.next())q=t(p,e,x,q.value,k),null!==q&&(a&&null!==
-q.alternate&&p.delete(null===q.key?x:q.key),g=f(q,g,x),null===v?l=q:v.sibling=q,v=q);a&&p.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===wa&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case ec:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===wa){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a,
-k.sibling);d=e(k,f.props);d.ref=dc(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===wa?(d=zb(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=fd(f.type,f.key,f.props,null,a.mode,h),h.ref=dc(a,d,f),h.return=a,a=h)}return g(a);case Ua:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=
-d.sibling}d=Ee(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=De(f,a.mode,h),d.return=a,a=d),g(a);if(gd(f))return w(a,d,f,h);if(Jb(f))return z(a,d,f,h);l&&ed(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 22:case 0:case 11:case 15:throw Error(m(152,hb(a.type)||"Component"));}return c(a,d)}}function $a(a){if(a===fc)throw Error(m(174));return a}function Fe(a,b){A(gc,
-b);A(hc,a);A(ka,fc);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Rd(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Rd(b,a)}t(ka);A(ka,b)}function Ab(a){t(ka);t(hc);t(gc)}function jh(a){$a(gc.current);var b=$a(ka.current);var c=Rd(b,a.type);b!==c&&(A(hc,a),A(ka,c))}function Ge(a){hc.current===a&&(t(ka),t(hc))}function hd(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||
-"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function kh(a,b){var c=Z(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.flags=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=
-a.lastEffect=c}function lh(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}function He(a){if(la){var b=Na;if(b){var c=b;if(!lh(a,b)){b=tb(c.nextSibling);if(!b||!lh(a,b)){a.flags=a.flags&-1025|2;la=!1;ra=a;return}kh(ra,c)}ra=a;Na=tb(b.firstChild)}else a.flags=a.flags&-1025|2,la=!1,
-ra=a}}function mh(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;ra=a}function id(a){if(a!==ra)return!1;if(!la)return mh(a),la=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!se(b,a.memoizedProps))for(b=Na;b;)kh(a,b),b=tb(b.nextSibling);mh(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(m(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){Na=tb(a.nextSibling);break a}b--}else"$"!==c&&"$!"!==
-c&&"$?"!==c||b++}a=a.nextSibling}Na=null}}else Na=ra?tb(a.stateNode.nextSibling):null;return!0}function Ie(){Na=ra=null;la=!1}function Je(){for(var a=0;a<Bb.length;a++)Bb[a]._workInProgressVersionPrimary=null;Bb.length=0}function T(){throw Error(m(321));}function Ke(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!X(a[c],b[c]))return!1;return!0}function Le(a,b,c,d,e,f){ic=f;y=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;jc.current=null===a||null===a.memoizedState?qj:rj;
-a=c(d,e);if(kc){f=0;do{kc=!1;if(!(25>f))throw Error(m(301));f+=1;K=N=null;b.updateQueue=null;jc.current=sj;a=c(d,e)}while(kc)}jc.current=jd;b=null!==N&&null!==N.next;ic=0;K=N=y=null;kd=!1;if(b)throw Error(m(300));return a}function ab(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===K?y.memoizedState=K=a:K=K.next=a;return K}function bb(){if(null===N){var a=y.alternate;a=null!==a?a.memoizedState:null}else a=N.next;var b=null===K?y.memoizedState:K.next;if(null!==
-b)K=b,N=a;else{if(null===a)throw Error(m(310));N=a;a={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null};null===K?y.memoizedState=K=a:K=K.next=a}return K}function ma(a,b){return"function"===typeof b?b(a):b}function lc(a,b,c){b=bb();c=b.queue;if(null===c)throw Error(m(311));c.lastRenderedReducer=a;var d=N,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;
-var h=g=f=null,k=e;do{var l=k.lane;if((ic&l)===l)null!==h&&(h=h.next={lane:0,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),d=k.eagerReducer===a?k.eagerState:a(d,k.action);else{var n={lane:l,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null};null===h?(g=h=n,f=d):h=h.next=n;y.lanes|=l;La|=l}k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;X(d,b.memoizedState)||(fa=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=
-d}return[b.memoizedState,c.dispatch]}function mc(a,b,c){b=bb();c=b.queue;if(null===c)throw Error(m(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);X(f,b.memoizedState)||(fa=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function nh(a,b,c){var d=b._getVersion;d=d(b._source);var e=b._workInProgressVersionPrimary;if(null!==e)a=e===d;else if(a=a.mutableReadLanes,
-a=(ic&a)===a)b._workInProgressVersionPrimary=d,Bb.push(b);if(a)return c(b._source);Bb.push(b);throw Error(m(350));}function oh(a,b,c,d){var e=R;if(null===e)throw Error(m(349));var f=b._getVersion,g=f(b._source),h=jc.current,k=h.useState(function(){return nh(e,b,c)}),l=k[1],n=k[0];k=K;var t=a.memoizedState,r=t.refs,w=r.getSnapshot,z=t.source;t=t.subscribe;var B=y;a.memoizedState={refs:r,source:b,subscribe:d};h.useEffect(function(){r.getSnapshot=c;r.setSnapshot=l;var a=f(b._source);if(!X(g,a)){a=c(b._source);
-X(n,a)||(l(a),a=Oa(B),e.mutableReadLanes|=a&e.pendingLanes);a=e.mutableReadLanes;e.entangledLanes|=a;for(var d=e.entanglements,h=a;0<h;){var k=31-Ba(h),m=1<<k;d[k]|=a;h&=~m}}},[c,b,d]);h.useEffect(function(){return d(b._source,function(){var a=r.getSnapshot,c=r.setSnapshot;try{c(a(b._source));var d=Oa(B);e.mutableReadLanes|=d&e.pendingLanes}catch(q){c(function(){throw q;})}})},[b,d]);X(w,c)&&X(z,b)&&X(t,d)||(a={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:n},a.dispatch=l=Me.bind(null,
-y,a),k.queue=a,k.baseQueue=null,n=nh(e,b,c),k.memoizedState=k.baseState=n);return n}function ph(a,b,c){var d=bb();return oh(d,a,b,c)}function nc(a){var b=ab();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a};a=a.dispatch=Me.bind(null,y,a);return[b.memoizedState,a]}function ld(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=y.updateQueue;null===b?(b={lastEffect:null},y.updateQueue=b,b.lastEffect=
-a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function qh(a){var b=ab();a={current:a};return b.memoizedState=a}function md(a){return bb().memoizedState}function Ne(a,b,c,d){var e=ab();y.flags|=a;e.memoizedState=ld(1|b,c,void 0,void 0===d?null:d)}function Oe(a,b,c,d){var e=bb();d=void 0===d?null:d;var f=void 0;if(null!==N){var g=N.memoizedState;f=g.destroy;if(null!==d&&Ke(d,g.deps)){ld(b,c,f,d);return}}y.flags|=a;e.memoizedState=ld(1|
-b,c,f,d)}function rh(a,b){return Ne(516,4,a,b)}function nd(a,b){return Oe(516,4,a,b)}function sh(a,b){return Oe(4,2,a,b)}function th(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function uh(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Oe(4,2,th.bind(null,b,a),c)}function Pe(a,b){}function vh(a,b){var c=bb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Ke(b,d[1]))return d[0];
-c.memoizedState=[a,b];return a}function wh(a,b){var c=bb();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Ke(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function tj(a,b){var c=wb();Za(98>c?98:c,function(){a(!0)});Za(97<c?97:c,function(){var c=aa.transition;aa.transition=1;try{a(!1),b()}finally{aa.transition=c}})}function Me(a,b,c){var d=W(),e=Oa(a),f={lane:e,action:c,eagerReducer:null,eagerState:null,next:null},g=b.pending;null===g?f.next=f:(f.next=g.next,g.next=f);
-b.pending=f;g=a.alternate;if(a===y||null!==g&&g===y)kc=kd=!0;else{if(0===a.lanes&&(null===g||0===g.lanes)&&(g=b.lastRenderedReducer,null!==g))try{var h=b.lastRenderedState,k=g(h,c);f.eagerReducer=g;f.eagerState=k;if(X(k,h))return}catch(v){}finally{}Pa(a,e,d)}}function U(a,b,c,d){b.child=null===a?xh(b,null,c,d):od(b,a.child,c,d)}function yh(a,b,c,d,e){c=c.render;var f=b.ref;yb(b,e);d=Le(a,b,c,d,f,e);if(null!==a&&!fa)return b.updateQueue=a.updateQueue,b.flags&=-517,a.lanes&=~e,sa(a,b,e);b.flags|=1;
-U(a,b,d,e);return b.child}function zh(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!Qe(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,Ah(a,b,g,d,e,f);a=fd(c.type,null,d,b,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(0===(e&f)&&(e=g.memoizedProps,c=c.compare,c=null!==c?c:Zb,c(e,d)&&a.ref===b.ref))return sa(a,b,f);b.flags|=1;a=Ma(g,d);a.ref=b.ref;a.return=b;return b.child=a}function Ah(a,b,c,d,e,f){if(null!==a&&Zb(a.memoizedProps,
-d)&&a.ref===b.ref)if(fa=!1,0!==(f&e))0!==(a.flags&16384)&&(fa=!0);else return b.lanes=a.lanes,sa(a,b,f);return Re(a,b,c,d,f)}function Se(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode||"unstable-defer-without-hiding"===d.mode)if(0===(b.mode&4))b.memoizedState={baseLanes:0},pd(b,c);else if(0!==(c&1073741824))b.memoizedState={baseLanes:0},pd(b,null!==f?f.baseLanes:c);else return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState=
-{baseLanes:a},pd(b,a),null;else null!==f?(d=f.baseLanes|c,b.memoizedState=null):d=c,pd(b,d);U(a,b,e,c);return b.child}function Bh(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=128}function Re(a,b,c,d,e){var f=S(c)?Ya:D.current;f=vb(b,f);yb(b,e);c=Le(a,b,c,d,f,e);if(null!==a&&!fa)return b.updateQueue=a.updateQueue,b.flags&=-517,a.lanes&=~e,sa(a,b,e);b.flags|=1;U(a,b,c,e);return b.child}function Ch(a,b,c,d,e){if(S(c)){var f=!0;Xc(b)}else f=!1;yb(b,e);if(null===b.stateNode)null!==
-a&&(a.alternate=null,b.alternate=null,b.flags|=2),fh(b,c,d),Ce(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=Y(l):(l=S(c)?Ya:D.current,l=vb(b,l));var m=c.getDerivedStateFromProps,n="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;n||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==d||k!==l)&&gh(b,g,d,l);Ka=!1;var r=b.memoizedState;
-g.state=r;cc(b,d,g,e);k=b.memoizedState;h!==d||r!==k||J.current||Ka?("function"===typeof m&&(cd(b,c,m,d),k=b.memoizedState),(h=Ka||eh(b,c,h,d,r,k,l))?(n||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.flags|=4)):("function"===typeof g.componentDidMount&&(b.flags|=4),
-b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4),d=!1)}else{g=b.stateNode;bh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:ea(b.type,h);g.props=l;n=b.pendingProps;r=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=Y(k):(k=S(c)?Ya:D.current,k=vb(b,k));var t=c.getDerivedStateFromProps;(m="function"===typeof t||"function"===typeof g.getSnapshotBeforeUpdate)||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&
-"function"!==typeof g.componentWillReceiveProps||(h!==n||r!==k)&&gh(b,g,d,k);Ka=!1;r=b.memoizedState;g.state=r;cc(b,d,g,e);var w=b.memoizedState;h!==n||r!==w||J.current||Ka?("function"===typeof t&&(cd(b,c,t,d),w=b.memoizedState),(l=Ka||eh(b,c,l,d,r,w,k))?(m||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,w,k),"function"===typeof g.UNSAFE_componentWillUpdate&&g.UNSAFE_componentWillUpdate(d,
-w,k)),"function"===typeof g.componentDidUpdate&&(b.flags|=4),"function"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=256)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=256),b.memoizedProps=d,b.memoizedState=w),g.props=d,g.state=w,g.context=k,d=l):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!==
-typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=256),d=!1)}return Te(a,b,c,d,f,e)}function Te(a,b,c,d,e,f){Bh(a,b);var g=0!==(b.flags&64);if(!d&&!g)return e&&Ug(b,c,!1),sa(a,b,f);d=b.stateNode;uj.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=od(b,a.child,null,f),b.child=od(b,null,h,f)):U(a,b,h,f);b.memoizedState=d.state;e&&Ug(b,c,!0);return b.child}function Dh(a){var b=a.stateNode;b.pendingContext?
-Sg(a,b.pendingContext,b.pendingContext!==b.context):b.context&&Sg(a,b.context,!1);Fe(a,b.containerInfo)}function Eh(a,b,c){var d=b.pendingProps,e=E.current,f=!1,g;(g=0!==(b.flags&64))||(g=null!==a&&null===a.memoizedState?!1:0!==(e&2));g?(f=!0,b.flags&=-65):null!==a&&null===a.memoizedState||void 0===d.fallback||!0===d.unstable_avoidThisFallback||(e|=1);A(E,e&1);if(null===a){void 0!==d.fallback&&He(b);a=d.children;e=d.fallback;if(f)return a=Fh(b,a,e,c),b.child.memoizedState={baseLanes:c},b.memoizedState=
-qd,a;if("number"===typeof d.unstable_expectedLoadTime)return a=Fh(b,a,e,c),b.child.memoizedState={baseLanes:c},b.memoizedState=qd,b.lanes=33554432,a;c=Ue({mode:"visible",children:a},b.mode,c,null);c.return=b;return b.child=c}if(null!==a.memoizedState){if(f)return d=Gh(a,b,d.children,d.fallback,c),f=b.child,e=a.child.memoizedState,f.memoizedState=null===e?{baseLanes:c}:{baseLanes:e.baseLanes|c},f.childLanes=a.childLanes&~c,b.memoizedState=qd,d;c=Hh(a,b,d.children,c);b.memoizedState=null;return c}if(f)return d=
-Gh(a,b,d.children,d.fallback,c),f=b.child,e=a.child.memoizedState,f.memoizedState=null===e?{baseLanes:c}:{baseLanes:e.baseLanes|c},f.childLanes=a.childLanes&~c,b.memoizedState=qd,d;c=Hh(a,b,d.children,c);b.memoizedState=null;return c}function Fh(a,b,c,d){var e=a.mode,f=a.child;b={mode:"hidden",children:b};0===(e&2)&&null!==f?(f.childLanes=0,f.pendingProps=b):f=Ue(b,e,0,null);c=zb(c,e,d,null);f.return=a;c.return=a;f.sibling=c;a.child=f;return c}function Hh(a,b,c,d){var e=a.child;a=e.sibling;c=Ma(e,
-{mode:"visible",children:c});0===(b.mode&2)&&(c.lanes=d);c.return=b;c.sibling=null;null!==a&&(a.nextEffect=null,a.flags=8,b.firstEffect=b.lastEffect=a);return b.child=c}function Gh(a,b,c,d,e){var f=b.mode,g=a.child;a=g.sibling;var h={mode:"hidden",children:c};0===(f&2)&&b.child!==g?(c=b.child,c.childLanes=0,c.pendingProps=h,g=c.lastEffect,null!==g?(b.firstEffect=c.firstEffect,b.lastEffect=g,g.nextEffect=null):b.firstEffect=b.lastEffect=null):c=Ma(g,h);null!==a?d=Ma(a,d):(d=zb(d,f,e,null),d.flags|=
-2);d.return=b;c.return=b;c.sibling=d;b.child=c;return d}function Ih(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);ah(a.return,b)}function Ve(a,b,c,d,e,f){var g=a.memoizedState;null===g?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e,lastEffect:f}:(g.isBackwards=b,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=c,g.tailMode=e,g.lastEffect=f)}function Jh(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;U(a,b,d.children,c);d=E.current;
-if(0!==(d&2))d=d&1|2,b.flags|=64;else{if(null!==a&&0!==(a.flags&64))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&Ih(a,c);else if(19===a.tag)Ih(a,c);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}A(E,d);if(0===(b.mode&2))b.memoizedState=null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===
-hd(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);Ve(b,!1,e,c,f,b.lastEffect);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===hd(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}Ve(b,!0,c,null,f,b.lastEffect);break;case "together":Ve(b,!1,null,null,void 0,b.lastEffect);break;default:b.memoizedState=null}return b.child}function sa(a,b,c){null!==a&&(b.dependencies=a.dependencies);La|=b.lanes;if(0!==(c&
-b.childLanes)){if(null!==a&&b.child!==a.child)throw Error(m(153));if(null!==b.child){a=b.child;c=Ma(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Ma(a,a.pendingProps),c.return=b;c.sibling=null}return b.child}return null}function oc(a,b){if(!la)switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&
-(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}function vj(a,b,c){var d=b.pendingProps;switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return S(b.type)&&(t(J),t(D)),null;case 3:Ab();t(J);t(D);Je();d=b.stateNode;d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)id(b)?b.flags|=4:d.hydrate||(b.flags|=256);Kh(b);return null;case 5:Ge(b);var e=$a(gc.current);
-c=b.type;if(null!==a&&null!=b.stateNode)wj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=128);else{if(!d){if(null===b.stateNode)throw Error(m(166));return null}a=$a(ka.current);if(id(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Fa]=b;d[Wc]=f;switch(c){case "dialog":z("cancel",d);z("close",d);break;case "iframe":case "object":case "embed":z("load",d);break;case "video":case "audio":for(a=0;a<pc.length;a++)z(pc[a],d);break;case "source":z("error",d);break;case "img":case "image":case "link":z("error",d);
-z("load",d);break;case "details":z("toggle",d);break;case "input":Gf(d,f);z("invalid",d);break;case "select":d._wrapperState={wasMultiple:!!f.multiple};z("invalid",d);break;case "textarea":Jf(d,f),z("invalid",d)}Sd(c,f);a=null;for(var g in f)f.hasOwnProperty(g)&&(e=f[g],"children"===g?"string"===typeof e?d.textContent!==e&&(a=["children",e]):"number"===typeof e&&d.textContent!==""+e&&(a=["children",""+e]):Ib.hasOwnProperty(g)&&null!=e&&"onScroll"===g&&z("scroll",d));switch(c){case "input":Fc(d);If(d,
-f,!0);break;case "textarea":Fc(d);Lf(d);break;case "select":case "option":break;default:"function"===typeof f.onClick&&(d.onclick=Vc)}d=a;b.updateQueue=d;null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument;"http://www.w3.org/1999/xhtml"===a&&(a=Mf(c));"http://www.w3.org/1999/xhtml"===a?"script"===c?(a=g.createElement("div"),a.innerHTML="<script>\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?
-g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Fa]=b;a[Wc]=d;xj(a,b,!1,!1);b.stateNode=a;g=Td(c,d);switch(c){case "dialog":z("cancel",a);z("close",a);e=d;break;case "iframe":case "object":case "embed":z("load",a);e=d;break;case "video":case "audio":for(e=0;e<pc.length;e++)z(pc[e],a);e=d;break;case "source":z("error",a);e=d;break;case "img":case "image":case "link":z("error",a);z("load",a);e=d;break;case "details":z("toggle",a);e=d;break;case "input":Gf(a,d);e=Md(a,d);z("invalid",
-a);break;case "option":e=Pd(a,d);break;case "select":a._wrapperState={wasMultiple:!!d.multiple};e=B({},d,{value:void 0});z("invalid",a);break;case "textarea":Jf(a,d);e=Qd(a,d);z("invalid",a);break;default:e=d}Sd(c,e);var h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?Of(a,k):"dangerouslySetInnerHTML"===f?(k=k?k.__html:void 0,null!=k&&Lh(a,k)):"children"===f?"string"===typeof k?("textarea"!==c||""!==k)&&qc(a,k):"number"===typeof k&&qc(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==
-f&&"autoFocus"!==f&&(Ib.hasOwnProperty(f)?null!=k&&"onScroll"===f&&z("scroll",a):null!=k&&Ed(a,f,k,g))}switch(c){case "input":Fc(a);If(a,d,!1);break;case "textarea":Fc(a);Lf(a);break;case "option":null!=d.value&&a.setAttribute("value",""+xa(d.value));break;case "select":a.multiple=!!d.multiple;f=d.value;null!=f?ib(a,!!d.multiple,f,!1):null!=d.defaultValue&&ib(a,!!d.multiple,d.defaultValue,!0);break;default:"function"===typeof e.onClick&&(a.onclick=Vc)}Pg(c,d)&&(b.flags|=4)}null!==b.ref&&(b.flags|=
-128)}return null;case 6:if(a&&null!=b.stateNode)yj(a,b,a.memoizedProps,d);else{if("string"!==typeof d&&null===b.stateNode)throw Error(m(166));c=$a(gc.current);$a(ka.current);id(b)?(d=b.stateNode,c=b.memoizedProps,d[Fa]=b,d.nodeValue!==c&&(b.flags|=4)):(d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Fa]=b,b.stateNode=d)}return null;case 13:t(E);d=b.memoizedState;if(0!==(b.flags&64))return b.lanes=c,b;d=null!==d;c=!1;null===a?void 0!==b.memoizedProps.fallback&&id(b):c=null!==a.memoizedState;
-if(d&&!c&&0!==(b.mode&2))if(null===a&&!0!==b.memoizedProps.unstable_avoidThisFallback||0!==(E.current&1))0===L&&(L=3);else{if(0===L||3===L)L=4;null===R||0===(La&134217727)&&0===(Cb&134217727)||Db(R,O)}if(d||c)b.flags|=4;return null;case 4:return Ab(),Kh(b),null===a&&Cg(b.stateNode.containerInfo),null;case 10:return Ae(b),null;case 17:return S(b.type)&&(t(J),t(D)),null;case 19:t(E);d=b.memoizedState;if(null===d)return null;f=0!==(b.flags&64);g=d.rendering;if(null===g)if(f)oc(d,!1);else{if(0!==L||null!==
-a&&0!==(a.flags&64))for(a=b.child;null!==a;){g=hd(a);if(null!==g){b.flags|=64;oc(d,!1);f=g.updateQueue;null!==f&&(b.updateQueue=f,b.flags|=4);null===d.lastEffect&&(b.firstEffect=null);b.lastEffect=d.lastEffect;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=
-g.lanes,f.child=g.child,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;A(E,E.current&1|2);return b.child}a=a.sibling}null!==d.tail&&P()>We&&(b.flags|=64,f=!0,oc(d,!1),b.lanes=33554432)}else{if(!f)if(a=hd(g),null!==a){if(b.flags|=64,f=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),oc(d,!0),null===d.tail&&"hidden"===d.tailMode&&
-!g.alternate&&!la)return b=b.lastEffect=d.lastEffect,null!==b&&(b.nextEffect=null),null}else 2*P()-d.renderingStartTime>We&&1073741824!==c&&(b.flags|=64,f=!0,oc(d,!1),b.lanes=33554432);d.isBackwards?(g.sibling=b.child,b.child=g):(c=d.last,null!==c?c.sibling=g:b.child=g,d.last=g)}return null!==d.tail?(c=d.tail,d.rendering=c,d.tail=c.sibling,d.lastEffect=b.lastEffect,d.renderingStartTime=P(),c.sibling=null,b=E.current,A(E,f?b&1|2:b&1),c):null;case 23:case 24:return ta=cb.current,t(cb),null!==a&&null!==
-a.memoizedState!==(null!==b.memoizedState)&&"unstable-defer-without-hiding"!==d.mode&&(b.flags|=4),null}throw Error(m(156,b.tag));}function zj(a,b){switch(a.tag){case 1:return S(a.type)&&(t(J),t(D)),b=a.flags,b&4096?(a.flags=b&-4097|64,a):null;case 3:Ab();t(J);t(D);Je();b=a.flags;if(0!==(b&64))throw Error(m(285));a.flags=b&-4097|64;return a;case 5:return Ge(a),null;case 13:return t(E),b=a.flags,b&4096?(a.flags=b&-4097|64,a):null;case 19:return t(E),null;case 4:return Ab(),null;case 10:return Ae(a),
-null;case 23:case 24:return ta=cb.current,t(cb),null;default:return null}}function Xe(a,b){try{var c="",d=b;do c+=pi(d),d=d.return;while(d);var e=c}catch(f){e="\nError generating stack: "+f.message+"\n"+f.stack}return{value:a,source:b,stack:e}}function Ye(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}function Mh(a,b,c){c=Ia(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){rd||(rd=!0,Ze=d);Ye(a,b)};return c}function Nh(a,b,c){c=Ia(-1,c);c.tag=
-3;var d=a.type.getDerivedStateFromError;if("function"===typeof d){var e=b.value;c.payload=function(){Ye(a,b);return d(e)}}var f=a.stateNode;null!==f&&"function"===typeof f.componentDidCatch&&(c.callback=function(){"function"!==typeof d&&(null===na?na=new Set([this]):na.add(this),Ye(a,b));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""})});return c}function Oh(a){var b=a.ref;if(null!==b)if("function"===typeof b)try{b(null)}catch(c){Qa(a,c)}else b.current=null}function Aj(a,
-b){switch(b.tag){case 0:case 11:case 15:case 22:return;case 1:if(b.flags&256&&null!==a){var c=a.memoizedProps,d=a.memoizedState;a=b.stateNode;b=a.getSnapshotBeforeUpdate(b.elementType===b.type?c:ea(b.type,c),d);a.__reactInternalSnapshotBeforeUpdate=b}return;case 3:b.flags&256&&te(b.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(m(163));}function Bj(a,b,c,d){switch(c.tag){case 0:case 11:case 15:case 22:b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;
-do 3===(a.tag&3)&&(d=a.create,a.destroy=d()),a=a.next;while(a!==b)}b=c.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){a=b=b.next;do{var e=a;d=e.next;e=e.tag;0!==(e&4)&&0!==(e&1)&&(Ph(c,a),Cj(c,a));a=d}while(a!==b)}return;case 1:a=c.stateNode;c.flags&4&&(null===b?a.componentDidMount():(d=c.elementType===c.type?b.memoizedProps:ea(c.type,b.memoizedProps),a.componentDidUpdate(d,b.memoizedState,a.__reactInternalSnapshotBeforeUpdate)));b=c.updateQueue;null!==b&&dh(c,b,a);return;case 3:b=c.updateQueue;
-if(null!==b){a=null;if(null!==c.child)switch(c.child.tag){case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}dh(c,b,a)}return;case 5:a=c.stateNode;null===b&&c.flags&4&&Pg(c.type,c.memoizedProps)&&a.focus();return;case 6:return;case 4:return;case 12:return;case 13:null===c.memoizedState&&(c=c.alternate,null!==c&&(c=c.memoizedState,null!==c&&(c=c.dehydrated,null!==c&&bg(c))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(m(163));}function Qh(a,b){for(var c=a;;){if(5===
-c.tag){var d=c.stateNode;if(b)d=d.style,"function"===typeof d.setProperty?d.setProperty("display","none","important"):d.display="none";else{d=c.stateNode;var e=c.memoizedProps.style;e=void 0!==e&&null!==e&&e.hasOwnProperty("display")?e.display:null;d.style.display=Nf("display",e)}}else if(6===c.tag)c.stateNode.nodeValue=b?"":c.memoizedProps;else if((23!==c.tag&&24!==c.tag||null===c.memoizedState||c===a)&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===a)break;for(;null===c.sibling;){if(null===
-c.return||c.return===a)return;c=c.return}c.sibling.return=c.return;c=c.sibling}}function Rh(a,b,c){if(db&&"function"===typeof db.onCommitFiberUnmount)try{db.onCommitFiberUnmount($e,b)}catch(f){}switch(b.tag){case 0:case 11:case 14:case 15:case 22:a=b.updateQueue;if(null!==a&&(a=a.lastEffect,null!==a)){c=a=a.next;do{var d=c,e=d.destroy;d=d.tag;if(void 0!==e)if(0!==(d&4))Ph(b,c);else{d=b;try{e()}catch(f){Qa(d,f)}}c=c.next}while(c!==a)}break;case 1:Oh(b);a=b.stateNode;if("function"===typeof a.componentWillUnmount)try{a.props=
-b.memoizedProps,a.state=b.memoizedState,a.componentWillUnmount()}catch(f){Qa(b,f)}break;case 5:Oh(b);break;case 4:Sh(a,b)}}function Th(a){a.alternate=null;a.child=null;a.dependencies=null;a.firstEffect=null;a.lastEffect=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.return=null;a.updateQueue=null}function Uh(a){return 5===a.tag||3===a.tag||4===a.tag}function Vh(a){a:{for(var b=a.return;null!==b;){if(Uh(b))break a;b=b.return}throw Error(m(160));}var c=b;b=c.stateNode;switch(c.tag){case 5:var d=
-!1;break;case 3:b=b.containerInfo;d=!0;break;case 4:b=b.containerInfo;d=!0;break;default:throw Error(m(161));}c.flags&16&&(qc(b,""),c.flags&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||Uh(c.return)){c=null;break a}c=c.return}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag&&18!==c.tag;){if(c.flags&2)continue b;if(null===c.child||4===c.tag)continue b;else c.child.return=c,c=c.child}if(!(c.flags&2)){c=c.stateNode;break a}}d?af(a,c,b):bf(a,c,b)}function af(a,b,c){var d=
-a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Vc));else if(4!==d&&(a=a.child,null!==a))for(af(a,b,c),a=a.sibling;null!==a;)af(a,b,c),a=a.sibling}function bf(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?c.insertBefore(a,b):c.appendChild(a);
-else if(4!==d&&(a=a.child,null!==a))for(bf(a,b,c),a=a.sibling;null!==a;)bf(a,b,c),a=a.sibling}function Sh(a,b,c){c=b;for(var d=!1,e,f;;){if(!d){e=c.return;a:for(;;){if(null===e)throw Error(m(160));f=e.stateNode;switch(e.tag){case 5:e=f;f=!1;break a;case 3:e=f.containerInfo;f=!0;break a;case 4:e=f.containerInfo;f=!0;break a}e=e.return}d=!0}if(5===c.tag||6===c.tag){a:for(var g=a,h=c,k=h;;)if(Rh(g,k),null!==k.child&&4!==k.tag)k.child.return=k,k=k.child;else{if(k===h)break a;for(;null===k.sibling;){if(null===
-k.return||k.return===h)break a;k=k.return}k.sibling.return=k.return;k=k.sibling}f?(g=e,h=c.stateNode,8===g.nodeType?g.parentNode.removeChild(h):g.removeChild(h)):e.removeChild(c.stateNode)}else if(4===c.tag){if(null!==c.child){e=c.stateNode.containerInfo;f=!0;c.child.return=c;c=c.child;continue}}else if(Rh(a,c),null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return;4===c.tag&&(d=!1)}c.sibling.return=c.return;c=
-c.sibling}}function cf(a,b){switch(b.tag){case 0:case 11:case 14:case 15:case 22:var c=b.updateQueue;c=null!==c?c.lastEffect:null;if(null!==c){var d=c=c.next;do 3===(d.tag&3)&&(a=d.destroy,d.destroy=void 0,void 0!==a&&a()),d=d.next;while(d!==c)}return;case 1:return;case 5:c=b.stateNode;if(null!=c){d=b.memoizedProps;var e=null!==a?a.memoizedProps:d;a=b.type;var f=b.updateQueue;b.updateQueue=null;if(null!==f){c[Wc]=d;"input"===a&&"radio"===d.type&&null!=d.name&&Hf(c,d);Td(a,e);b=Td(a,d);for(e=0;e<f.length;e+=
-2){var g=f[e],h=f[e+1];"style"===g?Of(c,h):"dangerouslySetInnerHTML"===g?Lh(c,h):"children"===g?qc(c,h):Ed(c,g,h,b)}switch(a){case "input":Nd(c,d);break;case "textarea":Kf(c,d);break;case "select":a=c._wrapperState.wasMultiple,c._wrapperState.wasMultiple=!!d.multiple,f=d.value,null!=f?ib(c,!!d.multiple,f,!1):a!==!!d.multiple&&(null!=d.defaultValue?ib(c,!!d.multiple,d.defaultValue,!0):ib(c,!!d.multiple,d.multiple?[]:"",!1))}}}return;case 6:if(null===b.stateNode)throw Error(m(162));b.stateNode.nodeValue=
-b.memoizedProps;return;case 3:c=b.stateNode;c.hydrate&&(c.hydrate=!1,bg(c.containerInfo));return;case 12:return;case 13:null!==b.memoizedState&&(df=P(),Qh(b.child,!0));Wh(b);return;case 19:Wh(b);return;case 17:return;case 23:case 24:Qh(b,null!==b.memoizedState);return}throw Error(m(163));}function Wh(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Dj);b.forEach(function(b){var d=Ej.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}function Fj(a,
-b){return null!==a&&(a=a.memoizedState,null===a||null!==a.dehydrated)?(b=b.memoizedState,null!==b&&null===b.dehydrated):!1}function Eb(){We=P()+500}function W(){return 0!==(n&48)?P():-1!==sd?sd:sd=P()}function Oa(a){a=a.mode;if(0===(a&2))return 1;if(0===(a&4))return 99===wb()?1:2;0===ua&&(ua=Fb);if(0!==Gj.transition){0!==td&&(td=null!==ef?ef.pendingLanes:0);a=ua;var b=4186112&~td;b&=-b;0===b&&(a=4186112&~a,b=a&-a,0===b&&(b=8192));return b}a=wb();0!==(n&4)&&98===a?a=Nc(12,ua):(a=Fi(a),a=Nc(a,ua));
-return a}function Pa(a,b,c){if(50<rc)throw rc=0,ff=null,Error(m(185));a=ud(a,b);if(null===a)return null;Oc(a,b,c);a===R&&(Cb|=b,4===L&&Db(a,O));var d=wb();1===b?0!==(n&8)&&0===(n&48)?gf(a):(ba(a,c),0===n&&(Eb(),ja())):(0===(n&4)||98!==d&&99!==d||(null===va?va=new Set([a]):va.add(a)),ba(a,c));ef=a}function ud(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}
-function ba(a,b){for(var c=a.callbackNode,d=a.suspendedLanes,e=a.pingedLanes,f=a.expirationTimes,g=a.pendingLanes;0<g;){var h=31-Ba(g),k=1<<h,l=f[h];if(-1===l){if(0===(k&d)||0!==(k&e)){l=b;mb(k);var m=w;f[h]=10<=m?l+250:6<=m?l+5E3:-1}}else l<=b&&(a.expiredLanes|=k);g&=~k}d=Wb(a,a===R?O:0);b=w;if(0===d)null!==c&&(c!==hf&&xe(c),a.callbackNode=null,a.callbackPriority=0);else{if(null!==c){if(a.callbackPriority===b)return;c!==hf&&xe(c)}15===b?(c=gf.bind(null,a),null===pa?(pa=[c],Zc=we(Yc,$g)):pa.push(c),
-c=hf):14===b?c=bc(99,gf.bind(null,a)):(c=Gi(b),c=bc(c,Xh.bind(null,a)));a.callbackPriority=b;a.callbackNode=c}}function Xh(a){sd=-1;td=ua=0;if(0!==(n&48))throw Error(m(327));var b=a.callbackNode;if(Ra()&&a.callbackNode!==b)return null;var c=Wb(a,a===R?O:0);if(0===c)return null;var d=c;var e=n;n|=16;var f=Yh();if(R!==a||O!==d)Eb(),Gb(a,d);do try{Hj();break}catch(h){Zh(a,h)}while(1);ze();vd.current=f;n=e;null!==G?d=0:(R=null,O=0,d=L);if(0!==(Fb&Cb))Gb(a,0);else if(0!==d){2===d&&(n|=64,a.hydrate&&(a.hydrate=
-!1,te(a.containerInfo)),c=eg(a),0!==c&&(d=sc(a,c)));if(1===d)throw b=wd,Gb(a,0),Db(a,c),ba(a,P()),b;a.finishedWork=a.current.alternate;a.finishedLanes=c;switch(d){case 0:case 1:throw Error(m(345));case 2:eb(a);break;case 3:Db(a,c);if((c&62914560)===c&&(d=df+500-P(),10<d)){if(0!==Wb(a,0))break;e=a.suspendedLanes;if((e&c)!==c){W();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=$h(eb.bind(null,a),d);break}eb(a);break;case 4:Db(a,c);if((c&4186112)===c)break;d=a.eventTimes;for(e=-1;0<c;){var g=
-31-Ba(c);f=1<<g;g=d[g];g>e&&(e=g);c&=~f}c=e;c=P()-c;c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3E3>c?3E3:4320>c?4320:1960*Ij(c/1960))-c;if(10<c){a.timeoutHandle=$h(eb.bind(null,a),c);break}eb(a);break;case 5:eb(a);break;default:throw Error(m(329));}}ba(a,P());return a.callbackNode===b?Xh.bind(null,a):null}function Db(a,b){b&=~jf;b&=~Cb;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-Ba(b),d=1<<c;a[c]=-1;b&=~d}}function gf(a){if(0!==(n&48))throw Error(m(327));Ra();
-if(a===R&&0!==(a.expiredLanes&O)){var b=O;var c=sc(a,b);0!==(Fb&Cb)&&(b=Wb(a,b),c=sc(a,b))}else b=Wb(a,0),c=sc(a,b);0!==a.tag&&2===c&&(n|=64,a.hydrate&&(a.hydrate=!1,te(a.containerInfo)),b=eg(a),0!==b&&(c=sc(a,b)));if(1===c)throw c=wd,Gb(a,0),Db(a,b),ba(a,P()),c;a.finishedWork=a.current.alternate;a.finishedLanes=b;eb(a);ba(a,P());return null}function Jj(){if(null!==va){var a=va;va=null;a.forEach(function(a){a.expiredLanes|=24&a.pendingLanes;ba(a,P())})}ja()}function ai(a,b){var c=n;n|=1;try{return a(b)}finally{n=
-c,0===n&&(Eb(),ja())}}function bi(a,b){var c=n;n&=-2;n|=8;try{return a(b)}finally{n=c,0===n&&(Eb(),ja())}}function pd(a,b){A(cb,ta);ta|=b;Fb|=b}function Gb(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Kj(c));if(null!==G)for(c=G.return;null!==c;){var d=c;switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&(t(J),t(D));break;case 3:Ab();t(J);t(D);Je();break;case 5:Ge(d);break;case 4:Ab();break;case 13:t(E);break;case 19:t(E);break;case 10:Ae(d);
-break;case 23:case 24:ta=cb.current,t(cb)}c=c.return}R=a;G=Ma(a.current,null);O=ta=Fb=b;L=0;wd=null;jf=Cb=La=0}function Zh(a,b){do{var c=G;try{ze();jc.current=jd;if(kd){for(var d=y.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next}kd=!1}ic=0;K=N=y=null;kc=!1;kf.current=null;if(null===c||null===c.return){L=1;wd=b;G=null;break}a:{var f=a,g=c.return,h=c,k=b;b=O;h.flags|=2048;h.firstEffect=h.lastEffect=null;if(null!==k&&"object"===typeof k&&"function"===typeof k.then){var l=k;
-if(0===(h.mode&2)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var n=0!==(E.current&1),r=g;do{var t;if(t=13===r.tag){var w=r.memoizedState;if(null!==w)t=null!==w.dehydrated?!0:!1;else{var z=r.memoizedProps;t=void 0===z.fallback?!1:!0!==z.unstable_avoidThisFallback?!0:n?!1:!0}}if(t){var C=r.updateQueue;if(null===C){var x=new Set;x.add(l);r.updateQueue=x}else C.add(l);if(0===(r.mode&2)){r.flags|=64;h.flags|=
-16384;h.flags&=-2981;if(1===h.tag)if(null===h.alternate)h.tag=17;else{var p=Ia(-1,1);p.tag=2;Ja(h,p)}h.lanes|=1;break a}k=void 0;h=b;var q=f.pingCache;null===q?(q=f.pingCache=new Lj,k=new Set,q.set(l,k)):(k=q.get(l),void 0===k&&(k=new Set,q.set(l,k)));if(!k.has(h)){k.add(h);var u=Mj.bind(null,f,l,h);l.then(u,u)}r.flags|=4096;r.lanes=b;break a}r=r.return}while(null!==r);k=Error((hb(h.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==
-L&&(L=2);k=Xe(k,h);r=g;do{switch(r.tag){case 3:f=k;r.flags|=4096;b&=-b;r.lanes|=b;var B=Mh(r,f,b);ch(r,B);break a;case 1:f=k;var A=r.type,D=r.stateNode;if(0===(r.flags&64)&&("function"===typeof A.getDerivedStateFromError||null!==D&&"function"===typeof D.componentDidCatch&&(null===na||!na.has(D)))){r.flags|=4096;b&=-b;r.lanes|=b;var F=Nh(r,f,b);ch(r,F);break a}}r=r.return}while(null!==r)}ci(c)}catch(qa){b=qa;G===c&&null!==c&&(G=c=c.return);continue}break}while(1)}function Yh(){var a=vd.current;vd.current=
-jd;return null===a?jd:a}function sc(a,b){var c=n;n|=16;var d=Yh();R===a&&O===b||Gb(a,b);do try{Nj();break}catch(e){Zh(a,e)}while(1);ze();n=c;vd.current=d;if(null!==G)throw Error(m(261));R=null;O=0;return L}function Nj(){for(;null!==G;)di(G)}function Hj(){for(;null!==G&&!Oj();)di(G)}function di(a){var b=Pj(a.alternate,a,ta);a.memoizedProps=a.pendingProps;null===b?ci(a):G=b;kf.current=null}function ci(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&2048)){c=vj(c,b,ta);if(null!==c){G=c;return}c=
-b;if(24!==c.tag&&23!==c.tag||null===c.memoizedState||0!==(ta&1073741824)||0===(c.mode&4)){for(var d=0,e=c.child;null!==e;)d|=e.lanes|e.childLanes,e=e.sibling;c.childLanes=d}null!==a&&0===(a.flags&2048)&&(null===a.firstEffect&&(a.firstEffect=b.firstEffect),null!==b.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=b.firstEffect),a.lastEffect=b.lastEffect),1<b.flags&&(null!==a.lastEffect?a.lastEffect.nextEffect=b:a.firstEffect=b,a.lastEffect=b))}else{c=zj(b);if(null!==c){c.flags&=2047;G=c;
-return}null!==a&&(a.firstEffect=a.lastEffect=null,a.flags|=2048)}b=b.sibling;if(null!==b){G=b;return}G=b=a}while(null!==b);0===L&&(L=5)}function eb(a){var b=wb();Za(99,Qj.bind(null,a,b));return null}function Qj(a,b){do Ra();while(null!==tc);if(0!==(n&48))throw Error(m(327));var c=a.finishedWork;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(m(177));a.callbackNode=null;var d=c.lanes|c.childLanes,e=d,f=a.pendingLanes&~e;a.pendingLanes=e;a.suspendedLanes=0;
-a.pingedLanes=0;a.expiredLanes&=e;a.mutableReadLanes&=e;a.entangledLanes&=e;e=a.entanglements;for(var g=a.eventTimes,h=a.expirationTimes;0<f;){var k=31-Ba(f),v=1<<k;e[k]=0;g[k]=-1;h[k]=-1;f&=~v}null!==va&&0===(d&24)&&va.has(a)&&va.delete(a);a===R&&(G=R=null,O=0);1<c.flags?null!==c.lastEffect?(c.lastEffect.nextEffect=c,d=c.firstEffect):d=c:d=c.firstEffect;if(null!==d){e=n;n|=32;kf.current=null;lf=Pc;g=xg();if(ne(g)){if("selectionStart"in g)h={start:g.selectionStart,end:g.selectionEnd};else a:if(h=
-(h=g.ownerDocument)&&h.defaultView||window,(v=h.getSelection&&h.getSelection())&&0!==v.rangeCount){h=v.anchorNode;f=v.anchorOffset;k=v.focusNode;v=v.focusOffset;try{h.nodeType,k.nodeType}catch(qa){h=null;break a}var t=0,w=-1,r=-1,z=0,B=0,y=g,C=null;b:for(;;){for(var x;;){y!==h||0!==f&&3!==y.nodeType||(w=t+f);y!==k||0!==v&&3!==y.nodeType||(r=t+v);3===y.nodeType&&(t+=y.nodeValue.length);if(null===(x=y.firstChild))break;C=y;y=x}for(;;){if(y===g)break b;C===h&&++z===f&&(w=t);C===k&&++B===v&&(r=t);if(null!==
-(x=y.nextSibling))break;y=C;C=y.parentNode}y=x}h=-1===w||-1===r?null:{start:w,end:r}}else h=null;h=h||{start:0,end:0}}else h=null;mf={focusedElem:g,selectionRange:h};Pc=!1;uc=null;xd=!1;l=d;do try{Rj()}catch(qa){if(null===l)throw Error(m(330));Qa(l,qa);l=l.nextEffect}while(null!==l);uc=null;l=d;do try{for(g=a;null!==l;){var p=l.flags;p&16&&qc(l.stateNode,"");if(p&128){var q=l.alternate;if(null!==q){var u=q.ref;null!==u&&("function"===typeof u?u(null):u.current=null)}}switch(p&1038){case 2:Vh(l);l.flags&=
--3;break;case 6:Vh(l);l.flags&=-3;cf(l.alternate,l);break;case 1024:l.flags&=-1025;break;case 1028:l.flags&=-1025;cf(l.alternate,l);break;case 4:cf(l.alternate,l);break;case 8:h=l;Sh(g,h);var A=h.alternate;Th(h);null!==A&&Th(A)}l=l.nextEffect}}catch(qa){if(null===l)throw Error(m(330));Qa(l,qa);l=l.nextEffect}while(null!==l);u=mf;q=xg();p=u.focusedElem;g=u.selectionRange;if(q!==p&&p&&p.ownerDocument&&wg(p.ownerDocument.documentElement,p)){null!==g&&ne(p)&&(q=g.start,u=g.end,void 0===u&&(u=q),"selectionStart"in
-p?(p.selectionStart=q,p.selectionEnd=Math.min(u,p.value.length)):(u=(q=p.ownerDocument||document)&&q.defaultView||window,u.getSelection&&(u=u.getSelection(),h=p.textContent.length,A=Math.min(g.start,h),g=void 0===g.end?A:Math.min(g.end,h),!u.extend&&A>g&&(h=g,g=A,A=h),h=vg(p,A),f=vg(p,g),h&&f&&(1!==u.rangeCount||u.anchorNode!==h.node||u.anchorOffset!==h.offset||u.focusNode!==f.node||u.focusOffset!==f.offset)&&(q=q.createRange(),q.setStart(h.node,h.offset),u.removeAllRanges(),A>g?(u.addRange(q),u.extend(f.node,
-f.offset)):(q.setEnd(f.node,f.offset),u.addRange(q))))));q=[];for(u=p;u=u.parentNode;)1===u.nodeType&&q.push({element:u,left:u.scrollLeft,top:u.scrollTop});"function"===typeof p.focus&&p.focus();for(p=0;p<q.length;p++)u=q[p],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}Pc=!!lf;mf=lf=null;a.current=c;l=d;do try{for(p=a;null!==l;){var D=l.flags;D&36&&Bj(p,l.alternate,l);if(D&128){q=void 0;var E=l.ref;if(null!==E){var F=l.stateNode;switch(l.tag){case 5:q=F;break;default:q=F}"function"===typeof E?
-E(q):E.current=q}}l=l.nextEffect}}catch(qa){if(null===l)throw Error(m(330));Qa(l,qa);l=l.nextEffect}while(null!==l);l=null;Sj();n=e}else a.current=c;if(Sa)Sa=!1,tc=a,vc=b;else for(l=d;null!==l;)b=l.nextEffect,l.nextEffect=null,l.flags&8&&(D=l,D.sibling=null,D.stateNode=null),l=b;d=a.pendingLanes;0===d&&(na=null);1===d?a===ff?rc++:(rc=0,ff=a):rc=0;c=c.stateNode;if(db&&"function"===typeof db.onCommitFiberRoot)try{db.onCommitFiberRoot($e,c,void 0,64===(c.current.flags&64))}catch(qa){}ba(a,P());if(rd)throw rd=
-!1,a=Ze,Ze=null,a;if(0!==(n&8))return null;ja();return null}function Rj(){for(;null!==l;){var a=l.alternate;xd||null===uc||(0!==(l.flags&8)?Wf(l,uc)&&(xd=!0):13===l.tag&&Fj(a,l)&&Wf(l,uc)&&(xd=!0));var b=l.flags;0!==(b&256)&&Aj(a,l);0===(b&512)||Sa||(Sa=!0,bc(97,function(){Ra();return null}));l=l.nextEffect}}function Ra(){if(90!==vc){var a=97<vc?97:vc;vc=90;return Za(a,Tj)}return!1}function Cj(a,b){nf.push(b,a);Sa||(Sa=!0,bc(97,function(){Ra();return null}))}function Ph(a,b){of.push(b,a);Sa||(Sa=
-!0,bc(97,function(){Ra();return null}))}function Tj(){if(null===tc)return!1;var a=tc;tc=null;if(0!==(n&48))throw Error(m(331));var b=n;n|=32;var c=of;of=[];for(var d=0;d<c.length;d+=2){var e=c[d],f=c[d+1],g=e.destroy;e.destroy=void 0;if("function"===typeof g)try{g()}catch(k){if(null===f)throw Error(m(330));Qa(f,k)}}c=nf;nf=[];for(d=0;d<c.length;d+=2){e=c[d];f=c[d+1];try{var h=e.create;e.destroy=h()}catch(k){if(null===f)throw Error(m(330));Qa(f,k)}}for(h=a.current.firstEffect;null!==h;)a=h.nextEffect,
-h.nextEffect=null,h.flags&8&&(h.sibling=null,h.stateNode=null),h=a;n=b;ja();return!0}function ei(a,b,c){b=Xe(c,b);b=Mh(a,b,1);Ja(a,b);b=W();a=ud(a,1);null!==a&&(Oc(a,1,b),ba(a,b))}function Qa(a,b){if(3===a.tag)ei(a,a,b);else for(var c=a.return;null!==c;){if(3===c.tag){ei(c,a,b);break}else if(1===c.tag){var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===na||!na.has(d))){a=Xe(b,a);var e=Nh(c,a,1);Ja(c,e);e=W();c=ud(c,1);if(null!==
-c)Oc(c,1,e),ba(c,e);else if("function"===typeof d.componentDidCatch&&(null===na||!na.has(d)))try{d.componentDidCatch(b,a)}catch(f){}break}}c=c.return}}function Mj(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=W();a.pingedLanes|=a.suspendedLanes&c;R===a&&(O&c)===c&&(4===L||3===L&&(O&62914560)===O&&500>P()-df?Gb(a,0):jf|=c);ba(a,b)}function Ej(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=0;0===b&&(b=a.mode,0===(b&2)?b=1:0===(b&4)?b=99===wb()?1:2:(0===ua&&(ua=Fb),b=nb(62914560&~ua),0===b&&(b=4194304)));
-c=W();a=ud(a,b);null!==a&&(Oc(a,b,c),ba(a,c))}function Uj(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.flags=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childLanes=this.lanes=0;this.alternate=null}function Qe(a){a=a.prototype;return!(!a||!a.isReactComponent)}function Vj(a){if("function"===
-typeof a)return Qe(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Dc)return 11;if(a===Ec)return 14}return 2}function Ma(a,b){var c=a.alternate;null===c?(c=Z(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=
-a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}function fd(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)Qe(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case wa:return zb(c.children,e,f,b);case fi:g=8;e|=16;break;case Hd:g=8;e|=1;break;case Lb:return a=Z(12,c,b,e|8),a.elementType=Lb,a.type=Lb,a.lanes=f,a;case Mb:return a=Z(13,c,b,e),a.type=Mb,a.elementType=Mb,a.lanes=
-f,a;case Cc:return a=Z(19,c,b,e),a.elementType=Cc,a.lanes=f,a;case pf:return Ue(c,e,f,b);case qf:return a=Z(24,c,b,e),a.elementType=qf,a.lanes=f,a;default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Jd:g=10;break a;case Id:g=9;break a;case Dc:g=11;break a;case Ec:g=14;break a;case Ld:g=16;d=null;break a;case Kd:g=22;break a}throw Error(m(130,null==a?a:typeof a,""));}b=Z(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function zb(a,b,c,d){a=Z(7,a,d,b);a.lanes=c;return a}function Ue(a,
-b,c,d){a=Z(23,a,d,b);a.elementType=pf;a.lanes=c;return a}function De(a,b,c){a=Z(6,a,null,b);a.lanes=c;return a}function Ee(a,b,c){b=Z(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}function Wj(a,b,c){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.pendingContext=this.context=null;this.hydrate=c;this.callbackNode=
-null;this.callbackPriority=0;this.eventTimes=ge(0);this.expirationTimes=ge(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=ge(0);this.mutableSourceEagerHydrationData=null}function Xj(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ua,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}function yd(a,b,c,d){var e=b.current,f=W(),g=Oa(e);
-a:if(c){c=c._reactInternals;b:{if(Va(c)!==c||1!==c.tag)throw Error(m(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(S(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(m(171));}if(1===c.tag){var k=c.type;if(S(k)){c=Tg(c,k,h);break a}}c=h}else c=Ha;null===b.context?b.context=c:b.pendingContext=c;b=Ia(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);Ja(e,b);Pa(e,g,f);return g}function rf(a){a=
-a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function gi(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function sf(a,b){gi(a,b);(a=a.alternate)&&gi(a,b)}function Yj(a){a=Vf(a);return null===a?null:a.stateNode}function Zj(a){return null}function tf(a,b,c){var d=null!=c&&null!=c.hydrationOptions&&c.hydrationOptions.mutableSources||null;c=new Wj(a,b,null!=c&&!0===c.hydrate);
-b=Z(3,null,null,2===b?7:1===b?3:0);c.current=b;b.stateNode=c;Be(b);a[rb]=c.current;Cg(8===a.nodeType?a.parentNode:a);if(d)for(a=0;a<d.length;a++){b=d[a];var e=b._getVersion;e=e(b._source);null==c.mutableSourceEagerHydrationData?c.mutableSourceEagerHydrationData=[b,e]:c.mutableSourceEagerHydrationData.push(b,e)}this._internalRoot=c}function wc(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function ak(a,b){b||(b=a?9===
-a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new tf(a,0,b?{hydrate:!0}:void 0)}function zd(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f._internalRoot;if("function"===typeof e){var h=e;e=function(){var a=rf(g);h.call(a)}}yd(b,g,a,e)}else{f=c._reactRootContainer=ak(c,d);g=f._internalRoot;if("function"===typeof e){var k=e;e=function(){var a=rf(g);k.call(a)}}bi(function(){yd(b,
-g,a,e)})}return rf(g)}function hi(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!wc(b))throw Error(m(200));return Xj(a,b,null,c)}if(!ha)throw Error(m(227));var zf=new Set,Ib={},oa=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),mi=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
-Af=Object.prototype.hasOwnProperty,Cf={},Bf={},I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){I[a]=new Q(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];I[b]=new Q(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){I[a]=
-new Q(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){I[a]=new Q(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){I[a]=new Q(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple",
-"muted","selected"].forEach(function(a){I[a]=new Q(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){I[a]=new Q(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){I[a]=new Q(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){I[a]=new Q(a,5,!1,a.toLowerCase(),null,!1,!1)});var uf=/[\-:]([a-z])/g,vf=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=
-a.replace(uf,vf);I[b]=new Q(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(uf,vf);I[b]=new Q(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(uf,vf);I[b]=new Q(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){I[a]=new Q(a,1,!1,a.toLowerCase(),null,!1,!1)});I.xlinkHref=new Q("xlinkHref",
-1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){I[a]=new Q(a,1,!1,a.toLowerCase(),null,!0,!0)});var B=ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,fb=ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ec=60103,Ua=60106,wa=60107,Hd=60108,Lb=60114,Jd=60109,Id=60110,Dc=60112,Mb=60113,Cc=60120,Ec=60115,Ld=60116,Kd=60121,ue=60128,fi=60129,pf=60130,qf=60131;if("function"===typeof Symbol&&Symbol.for){var H=Symbol.for;ec=
-H("react.element");Ua=H("react.portal");wa=H("react.fragment");Hd=H("react.strict_mode");Lb=H("react.profiler");Jd=H("react.provider");Id=H("react.context");Dc=H("react.forward_ref");Mb=H("react.suspense");Cc=H("react.suspense_list");Ec=H("react.memo");Ld=H("react.lazy");Kd=H("react.block");H("react.scope");ue=H("react.opaque.id");fi=H("react.debug_trace_mode");pf=H("react.offscreen");qf=H("react.legacy_hidden")}var Df="function"===typeof Symbol&&Symbol.iterator,Fd,Gd=!1,Ad,Lh=function(a){return"undefined"!==
-typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else{Ad=Ad||document.createElement("div");Ad.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=Ad.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}),qc=function(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=
-b;return}}a.textContent=b},Nb={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,
-zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bk=["Webkit","ms","Moz","O"];Object.keys(Nb).forEach(function(a){bk.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Nb[b]=Nb[a]})});var si=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Vd=null,jb=null,kb=null,me=function(a,b){return a(b)},fg=function(a,
-b,c,d,e){return a(b,c,d,e)},Xd=function(){},Sf=me,Xa=!1,Yd=!1,qe=!1;if(oa)try{var xc={};Object.defineProperty(xc,"passive",{get:function(){qe=!0}});window.addEventListener("test",xc,xc);window.removeEventListener("test",xc,xc)}catch(a){qe=!1}var vi=function(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(Da){this.onError(Da)}},Qb=!1,Ic=null,Jc=!1,Zd=null,wi={onError:function(a){Qb=!0;Ic=a}},ca=ha.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,
-ck=ca.unstable_cancelCallback,Bd=ca.unstable_now,$f=ca.unstable_scheduleCallback,dk=ca.unstable_shouldYield,ii=ca.unstable_requestPaint,ae=ca.unstable_runWithPriority,ek=ca.unstable_getCurrentPriorityLevel,fk=ca.unstable_ImmediatePriority,ji=ca.unstable_UserBlockingPriority,ag=ca.unstable_NormalPriority,gk=ca.unstable_LowPriority,hk=ca.unstable_IdlePriority,ce=!1,ia=[],ya=null,za=null,Aa=null,Rb=new Map,Sb=new Map,Vb=[],gg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),
-lb={animationend:Lc("Animation","AnimationEnd"),animationiteration:Lc("Animation","AnimationIteration"),animationstart:Lc("Animation","AnimationStart"),transitionend:Lc("Transition","TransitionEnd")},de={},cg={};oa&&(cg=document.createElement("div").style,"AnimationEvent"in window||(delete lb.animationend.animation,delete lb.animationiteration.animation,delete lb.animationstart.animation),"TransitionEvent"in window||delete lb.transitionend.transition);var Hg=Mc("animationend"),Ig=Mc("animationiteration"),
-Jg=Mc("animationstart"),Kg=Mc("transitionend"),dg=new Map,fe=new Map,ik=["abort","abort",Hg,"animationEnd",Ig,"animationIteration",Jg,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing",
-"playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Kg,"transitionEnd","waiting","waiting"];Bd();var w=8,Ba=Math.clz32?Math.clz32:Hi,Ii=Math.log,Ji=Math.LN2,Ni=ji,Mi=ae,Pc=!0,Ca=null,ie=null,Qc=null,Hb={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},le=V(Hb),yc=B({},Hb,{view:0,detail:0}),hj=V(yc),wf,xf,zc,Cd=B({},yc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,
-pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:je,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in a)return a.movementX;a!==zc&&(zc&&"mousemove"===a.type?(wf=a.screenX-zc.screenX,xf=a.screenY-zc.screenY):xf=wf=0,zc=a);return wf},movementY:function(a){return"movementY"in a?a.movementY:xf}}),Gg=V(Cd),jk=B({},Cd,{dataTransfer:0}),dj=V(jk),kk=B({},
-yc,{relatedTarget:0}),re=V(kk),lk=B({},Hb,{animationName:0,elapsedTime:0,pseudoElement:0}),fj=V(lk),mk=B({},Hb,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),jj=V(mk),nk=B({},Hb,{data:0}),Og=V(nk),mj=Og,ok={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",
-16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pi={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},qk=B({},yc,{key:function(a){if(a.key){var b=ok[a.key]||a.key;if("Unidentified"!==
-b)return b}return"keypress"===a.type?(a=Rc(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?pk[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:je,charCode:function(a){return"keypress"===a.type?Rc(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?Rc(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),cj=V(qk),rk=B({},
-Cd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lg=V(rk),sk=B({},yc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:je}),ej=V(sk),tk=B({},Hb,{propertyName:0,elapsedTime:0,pseudoElement:0}),gj=V(tk),uk=B({},Cd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in
-a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),ij=V(uk),Qi=[9,13,27,32],ke=oa&&"CompositionEvent"in window,Ac=null;oa&&"documentMode"in document&&(Ac=document.documentMode);var lj=oa&&"TextEvent"in window&&!Ac,og=oa&&(!ke||Ac&&8<Ac&&11>=Ac),ng=String.fromCharCode(32),mg=!1,ob=!1,Ti={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Xb=null,Yb=null,Ng=!1;oa&&(Ng=Ui("input")&&(!document.documentMode||9<document.documentMode));
-var X="function"===typeof Object.is?Object.is:aj,bj=Object.prototype.hasOwnProperty,kj=oa&&"documentMode"in document&&11>=document.documentMode,qb=null,pe=null,$b=null,oe=!1;ee("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),
-0);ee("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);ee(ik,2);(function(a,b){for(var c=0;c<a.length;c++)fe.set(a[c],b)})("change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),0);gb("onMouseEnter",["mouseout","mouseover"]);
-gb("onMouseLeave",["mouseout","mouseover"]);gb("onPointerEnter",["pointerout","pointerover"]);gb("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));
-Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Eg=new Set("cancel close invalid load scroll toggle".split(" ").concat(pc)),
-Dg="_reactListening"+Math.random().toString(36).slice(2),lf=null,mf=null,$h="function"===typeof setTimeout?setTimeout:void 0,Kj="function"===typeof clearTimeout?clearTimeout:void 0,yf=0,Dd=Math.random().toString(36).slice(2),Fa="__reactFiber$"+Dd,Wc="__reactProps$"+Dd,rb="__reactContainer$"+Dd,Rg="__reactEvents$"+Dd,ve=[],ub=-1,Ha={},D=Ga(Ha),J=Ga(!1),Ya=Ha,$e=null,db=null,pj=ae,we=$f,xe=ck,oj=ek,Yc=fk,Vg=ji,Wg=ag,Xg=gk,Yg=hk,hf={},Oj=dk,Sj=void 0!==ii?ii:function(){},pa=null,Zc=null,ye=!1,ki=Bd(),
-P=1E4>ki?Bd:function(){return Bd()-ki},Gj=fb.ReactCurrentBatchConfig,bd=Ga(null),ad=null,xb=null,$c=null,Ka=!1,hh=(new ha.Component).refs,dd={isMounted:function(a){return(a=a._reactInternals)?Va(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=W(),e=Oa(a),f=Ia(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);Ja(a,f);Pa(a,e,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=W(),e=Oa(a),f=Ia(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);Ja(a,f);
-Pa(a,e,d)},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=W(),d=Oa(a),e=Ia(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);Ja(a,e);Pa(a,d,c)}},gd=Array.isArray,od=ih(!0),xh=ih(!1),fc={},ka=Ga(fc),hc=Ga(fc),gc=Ga(fc),E=Ga(0),ra=null,Na=null,la=!1,Bb=[],jc=fb.ReactCurrentDispatcher,aa=fb.ReactCurrentBatchConfig,ic=0,y=null,N=null,K=null,kd=!1,kc=!1,jd={readContext:Y,useCallback:T,useContext:T,useEffect:T,useImperativeHandle:T,useLayoutEffect:T,useMemo:T,useReducer:T,useRef:T,useState:T,
-useDebugValue:T,useDeferredValue:T,useTransition:T,useMutableSource:T,useOpaqueIdentifier:T,unstable_isNewReconciler:!1},qj={readContext:Y,useCallback:function(a,b){ab().memoizedState=[a,void 0===b?null:b];return a},useContext:Y,useEffect:rh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Ne(4,2,th.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Ne(4,2,a,b)},useMemo:function(a,b){var c=ab();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,
-b,c){var d=ab();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Me.bind(null,y,a);return[d.memoizedState,a]},useRef:qh,useState:nc,useDebugValue:Pe,useDeferredValue:function(a){var b=nc(a),c=b[0],d=b[1];rh(function(){var b=aa.transition;aa.transition=1;try{d(a)}finally{aa.transition=b}},[a]);return c},useTransition:function(){var a=nc(!1),b=a[0];a=tj.bind(null,a[1]);qh(a);return[a,b]},useMutableSource:function(a,
-b,c){var d=ab();d.memoizedState={refs:{getSnapshot:b,setSnapshot:null},source:a,subscribe:c};return oh(d,a,b,c)},useOpaqueIdentifier:function(){if(la){var a=!1,b=nj(function(){a||(a=!0,c("r:"+(yf++).toString(36)));throw Error(m(355));}),c=nc(b)[1];0===(y.mode&2)&&(y.flags|=516,ld(5,function(){c("r:"+(yf++).toString(36))},void 0,null));return b}b="r:"+(yf++).toString(36);nc(b);return b},unstable_isNewReconciler:!1},rj={readContext:Y,useCallback:vh,useContext:Y,useEffect:nd,useImperativeHandle:uh,useLayoutEffect:sh,
-useMemo:wh,useReducer:lc,useRef:md,useState:function(a){return lc(ma)},useDebugValue:Pe,useDeferredValue:function(a){var b=lc(ma),c=b[0],d=b[1];nd(function(){var b=aa.transition;aa.transition=1;try{d(a)}finally{aa.transition=b}},[a]);return c},useTransition:function(){var a=lc(ma)[0];return[md().current,a]},useMutableSource:ph,useOpaqueIdentifier:function(){return lc(ma)[0]},unstable_isNewReconciler:!1},sj={readContext:Y,useCallback:vh,useContext:Y,useEffect:nd,useImperativeHandle:uh,useLayoutEffect:sh,
-useMemo:wh,useReducer:mc,useRef:md,useState:function(a){return mc(ma)},useDebugValue:Pe,useDeferredValue:function(a){var b=mc(ma),c=b[0],d=b[1];nd(function(){var b=aa.transition;aa.transition=1;try{d(a)}finally{aa.transition=b}},[a]);return c},useTransition:function(){var a=mc(ma)[0];return[md().current,a]},useMutableSource:ph,useOpaqueIdentifier:function(){return mc(ma)[0]},unstable_isNewReconciler:!1},uj=fb.ReactCurrentOwner,fa=!1,qd={dehydrated:null,retryLane:0};var xj=function(a,b,c,d){for(c=
-b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};var Kh=function(a){};var wj=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){a=b.stateNode;$a(ka.current);e=null;switch(c){case "input":f=Md(a,f);d=Md(a,d);e=[];break;case "option":f=Pd(a,f);d=Pd(a,d);e=[];break;case "select":f=
-B({},f,{value:void 0});d=B({},d,{value:void 0});e=[];break;case "textarea":f=Qd(a,f);d=Qd(a,d);e=[];break;default:"function"!==typeof f.onClick&&"function"===typeof d.onClick&&(a.onclick=Vc)}Sd(c,d);var g;c=null;for(l in f)if(!d.hasOwnProperty(l)&&f.hasOwnProperty(l)&&null!=f[l])if("style"===l){var h=f[l];for(g in h)h.hasOwnProperty(g)&&(c||(c={}),c[g]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(Ib.hasOwnProperty(l)?
-e||(e=[]):(e=e||[]).push(l,null));for(l in d){var k=d[l];h=null!=f?f[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(e||(e=[]),e.push(l,c)),c=k;else"dangerouslySetInnerHTML"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(e=e||[]).push(l,k)):"children"===l?"string"!==typeof k&&"number"!==typeof k||(e=
-e||[]).push(l,""+k):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(Ib.hasOwnProperty(l)?(null!=k&&"onScroll"===l&&z("scroll",a),e||h===k||(e=[])):"object"===typeof k&&null!==k&&k.$$typeof===ue?k.toString():(e=e||[]).push(l,k))}c&&(e=e||[]).push("style",c);var l=e;if(b.updateQueue=l)b.flags|=4}};var yj=function(a,b,c,d){c!==d&&(b.flags|=4)};var Lj="function"===typeof WeakMap?WeakMap:Map,Dj="function"===typeof WeakSet?WeakSet:Set,Ij=Math.ceil,vd=fb.ReactCurrentDispatcher,kf=
-fb.ReactCurrentOwner,n=0,R=null,G=null,O=0,ta=0,cb=Ga(0),L=0,wd=null,Fb=0,La=0,Cb=0,jf=0,ef=null,df=0,We=Infinity,l=null,rd=!1,Ze=null,na=null,Sa=!1,tc=null,vc=90,nf=[],of=[],va=null,rc=0,ff=null,sd=-1,ua=0,td=0,uc=null,xd=!1;var Pj=function(a,b,c){var d=b.lanes;if(null!==a)if(a.memoizedProps!==b.pendingProps||J.current)fa=!0;else if(0!==(c&d))fa=0!==(a.flags&16384)?!0:!1;else{fa=!1;switch(b.tag){case 3:Dh(b);Ie();break;case 5:jh(b);break;case 1:S(b.type)&&Xc(b);break;case 4:Fe(b,b.stateNode.containerInfo);
-break;case 10:d=b.memoizedProps.value;var e=b.type._context;A(bd,e._currentValue);e._currentValue=d;break;case 13:if(null!==b.memoizedState){if(0!==(c&b.child.childLanes))return Eh(a,b,c);A(E,E.current&1);b=sa(a,b,c);return null!==b?b.sibling:null}A(E,E.current&1);break;case 19:d=0!==(c&b.childLanes);if(0!==(a.flags&64)){if(d)return Jh(a,b,c);b.flags|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);A(E,E.current);if(d)break;else return null;case 23:case 24:return b.lanes=
-0,Se(a,b,c)}return sa(a,b,c)}else fa=!1;b.lanes=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);a=b.pendingProps;e=vb(b,D.current);yb(b,c);e=Le(null,b,d,a,e,c);b.flags|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(S(d)){var f=!0;Xc(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;Be(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&
-cd(b,d,g,a);e.updater=dd;b.stateNode=e;e._reactInternals=b;Ce(b,d,a,c);b=Te(null,b,d,!0,f,c)}else b.tag=0,U(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;a:{null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2);a=b.pendingProps;f=e._init;e=f(e._payload);b.type=e;f=b.tag=Vj(e);a=ea(e,a);switch(f){case 0:b=Re(null,b,e,a,c);break a;case 1:b=Ch(null,b,e,a,c);break a;case 11:b=yh(null,b,e,a,c);break a;case 14:b=zh(null,b,e,ea(e.type,a),d,c);break a}throw Error(m(306,e,""));}return b;case 0:return d=
-b.type,e=b.pendingProps,e=b.elementType===d?e:ea(d,e),Re(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ea(d,e),Ch(a,b,d,e,c);case 3:Dh(b);d=b.updateQueue;if(null===a||null===d)throw Error(m(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;bh(a,b);cc(b,d,null,c);d=b.memoizedState.element;if(d===e)Ie(),b=sa(a,b,c);else{e=b.stateNode;if(f=e.hydrate)Na=tb(b.stateNode.containerInfo.firstChild),ra=b,f=la=!0;if(f){a=e.mutableSourceEagerHydrationData;if(null!=
-a)for(e=0;e<a.length;e+=2)f=a[e],f._workInProgressVersionPrimary=a[e+1],Bb.push(f);c=xh(b,null,d,c);for(b.child=c;c;)c.flags=c.flags&-3|1024,c=c.sibling}else U(a,b,d,c),Ie();b=b.child}return b;case 5:return jh(b),null===a&&He(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,se(d,e)?g=null:null!==f&&se(d,f)&&(b.flags|=16),Bh(a,b),U(a,b,g,c),b.child;case 6:return null===a&&He(b),null;case 13:return Eh(a,b,c);case 4:return Fe(b,b.stateNode.containerInfo),d=b.pendingProps,null===
-a?b.child=od(b,null,d,c):U(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ea(d,e),yh(a,b,d,e,c);case 7:return U(a,b,b.pendingProps,c),b.child;case 8:return U(a,b,b.pendingProps.children,c),b.child;case 12:return U(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;A(bd,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=X(h,f)?0:("function"===typeof d._calculateChangedBits?
-d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!J.current){b=sa(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Ia(-1,c&-c),l.tag=2,Ja(h,l));h.lanes|=c;l=h.alternate;null!==l&&(l.lanes|=c);ah(h.return,c);k.lanes|=c;break}l=l.next}}else g=10===h.tag?h.type===b.type?null:h.child:h.child;if(null!==g)g.return=h;else for(g=
-h;null!==g;){if(g===b){g=null;break}h=g.sibling;if(null!==h){h.return=g.return;g=h;break}g=g.return}h=g}U(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,f=b.pendingProps,d=f.children,yb(b,c),e=Y(e,f.unstable_observedBits),d=d(e),b.flags|=1,U(a,b,d,c),b.child;case 14:return e=b.type,f=ea(e,b.pendingProps),f=ea(e.type,f),zh(a,b,e,f,d,c);case 15:return Ah(a,b,b.type,b.pendingProps,d,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ea(d,e),null!==a&&(a.alternate=null,b.alternate=
-null,b.flags|=2),b.tag=1,S(d)?(a=!0,Xc(b)):a=!1,yb(b,c),fh(b,d,e),Ce(b,d,e,c),Te(null,b,d,!0,a,c);case 19:return Jh(a,b,c);case 23:return Se(a,b,c);case 24:return Se(a,b,c)}throw Error(m(156,b.tag));};var Z=function(a,b,c,d){return new Uj(a,b,c,d)};tf.prototype.render=function(a){yd(a,this._internalRoot,null,null)};tf.prototype.unmount=function(){var a=this._internalRoot,b=a.containerInfo;yd(null,a,null,function(){b[rb]=null})};var Ei=function(a){if(13===a.tag){var b=W();Pa(a,4,b);sf(a,4)}};var Yf=
-function(a){if(13===a.tag){var b=W();Pa(a,67108864,b);sf(a,67108864)}};var Ci=function(a){if(13===a.tag){var b=W(),c=Oa(a);Pa(a,c,b);sf(a,c)}};var Bi=function(a,b){return b()};Vd=function(a,b,c){switch(b){case "input":Nd(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Hc(d);if(!e)throw Error(m(90));Ff(d);Nd(d,e)}}}break;case "textarea":Kf(a,
-c);break;case "select":b=c.value,null!=b&&ib(a,!!c.multiple,b,!1)}};(function(a,b,c,d){me=a;fg=b;Xd=c;Sf=d})(ai,function(a,b,c,d,e){var f=n;n|=4;try{return Za(98,a.bind(null,b,c,d,e))}finally{n=f,0===n&&(Eb(),ja())}},function(){0===(n&49)&&(Jj(),Ra())},function(a,b){var c=n;n|=2;try{return a(b)}finally{n=c,0===n&&(Eb(),ja())}});var vk={Events:[Ob,pb,Hc,Qf,Rf,Ra,{current:!1}]};(function(a){a={bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,
-overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fb.ReactCurrentDispatcher,findHostInstanceByFiber:Yj,findFiberByHostInstance:a.findFiberByHostInstance||Zj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)a=
-!1;else{var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!b.isDisabled&&b.supportsFiber)try{$e=b.inject(a),db=b}catch(c){}a=!0}return a})({findFiberByHostInstance:Wa,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"});M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vk;M.createPortal=hi;M.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(m(188));throw Error(m(268,Object.keys(a)));
-}a=Vf(b);a=null===a?null:a.stateNode;return a};M.flushSync=function(a,b){var c=n;if(0!==(c&48))return a(b);n|=1;try{if(a)return Za(99,a.bind(null,b))}finally{n=c,ja()}};M.hydrate=function(a,b,c){if(!wc(b))throw Error(m(200));return zd(null,a,b,!0,c)};M.render=function(a,b,c){if(!wc(b))throw Error(m(200));return zd(null,a,b,!1,c)};M.unmountComponentAtNode=function(a){if(!wc(a))throw Error(m(40));return a._reactRootContainer?(bi(function(){zd(null,null,a,!1,function(){a._reactRootContainer=null;a[rb]=
-null})}),!0):!1};M.unstable_batchedUpdates=ai;M.unstable_createPortal=function(a,b){return hi(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)};M.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!wc(c))throw Error(m(200));if(null==a||void 0===a._reactInternals)throw Error(m(38));return zd(a,b,c,!1,d)};M.version="17.0.2"});
-})();
diff --git a/libraries/excalidraw/umd/react.development.js b/libraries/excalidraw/umd/react.development.js
deleted file mode 100644
index 1124191bb6..0000000000
--- a/libraries/excalidraw/umd/react.development.js
+++ /dev/null
@@ -1,3357 +0,0 @@
-/** @license React v17.0.2
- * react.development.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (global = global || self, factory(global.React = {}));
-}(this, (function (exports) { 'use strict';
-
- // TODO: this is special because it gets imported during build.
- var ReactVersion = '17.0.2';
-
- // ATTENTION
- // When adding new symbols to this file,
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
- // nor polyfill, then a plain number is used for performance.
- var REACT_ELEMENT_TYPE = 0xeac7;
- var REACT_PORTAL_TYPE = 0xeaca;
- exports.Fragment = 0xeacb;
- exports.StrictMode = 0xeacc;
- exports.Profiler = 0xead2;
- var REACT_PROVIDER_TYPE = 0xeacd;
- var REACT_CONTEXT_TYPE = 0xeace;
- var REACT_FORWARD_REF_TYPE = 0xead0;
- exports.Suspense = 0xead1;
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
- var REACT_MEMO_TYPE = 0xead3;
- var REACT_LAZY_TYPE = 0xead4;
- var REACT_BLOCK_TYPE = 0xead9;
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
- var REACT_SCOPE_TYPE = 0xead7;
- var REACT_OPAQUE_ID_TYPE = 0xeae0;
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
- var REACT_OFFSCREEN_TYPE = 0xeae2;
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
-
- if (typeof Symbol === 'function' && Symbol.for) {
- var symbolFor = Symbol.for;
- REACT_ELEMENT_TYPE = symbolFor('react.element');
- REACT_PORTAL_TYPE = symbolFor('react.portal');
- exports.Fragment = symbolFor('react.fragment');
- exports.StrictMode = symbolFor('react.strict_mode');
- exports.Profiler = symbolFor('react.profiler');
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
- REACT_CONTEXT_TYPE = symbolFor('react.context');
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
- exports.Suspense = symbolFor('react.suspense');
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
- REACT_MEMO_TYPE = symbolFor('react.memo');
- REACT_LAZY_TYPE = symbolFor('react.lazy');
- REACT_BLOCK_TYPE = symbolFor('react.block');
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
- REACT_SCOPE_TYPE = symbolFor('react.scope');
- REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
- REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
- }
-
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
- function getIteratorFn(maybeIterable) {
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
- return null;
- }
-
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
-
- if (typeof maybeIterator === 'function') {
- return maybeIterator;
- }
-
- return null;
- }
-
- var hasOwnProperty = Object.prototype.hasOwnProperty;
-
- var _assign = function (to, from) {
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
- };
-
- var assign = Object.assign || function (target, sources) {
- if (target == null) {
- throw new TypeError('Object.assign target cannot be null or undefined');
- }
-
- var to = Object(target);
-
- for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) {
- var nextSource = arguments[nextIndex];
-
- if (nextSource != null) {
- _assign(to, Object(nextSource));
- }
- }
-
- return to;
- };
-
- /**
- * Keeps track of the current dispatcher.
- */
- var ReactCurrentDispatcher = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
- };
-
- /**
- * Keeps track of the current batch's configuration such as how long an update
- * should suspend for if it needs to.
- */
- var ReactCurrentBatchConfig = {
- transition: 0
- };
-
- /**
- * Keeps track of the current owner.
- *
- * The current owner is the component who should own any components that are
- * currently being constructed.
- */
- var ReactCurrentOwner = {
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
- };
-
- var ReactDebugCurrentFrame = {};
- var currentExtraStackFrame = null;
- function setExtraStackFrame(stack) {
- {
- currentExtraStackFrame = stack;
- }
- }
-
- {
- ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
- {
- currentExtraStackFrame = stack;
- }
- }; // Stack implementation injected by the current renderer.
-
-
- ReactDebugCurrentFrame.getCurrentStack = null;
-
- ReactDebugCurrentFrame.getStackAddendum = function () {
- var stack = ''; // Add an extra top frame while an element is being validated
-
- if (currentExtraStackFrame) {
- stack += currentExtraStackFrame;
- } // Delegate to the injected renderer-specific implementation
-
-
- var impl = ReactDebugCurrentFrame.getCurrentStack;
-
- if (impl) {
- stack += impl() || '';
- }
-
- return stack;
- };
- }
-
- /**
- * Used by act() to track whether you're inside an act() scope.
- */
- var IsSomeRendererActing = {
- current: false
- };
-
- var ReactSharedInternals = {
- ReactCurrentDispatcher: ReactCurrentDispatcher,
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
- ReactCurrentOwner: ReactCurrentOwner,
- IsSomeRendererActing: IsSomeRendererActing,
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
- assign: assign
- };
-
- {
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
- }
-
- // by calls to these methods by a Babel plugin.
- //
- // In PROD (or in packages without access to React internals),
- // they are left as they are instead.
-
- function warn(format) {
- {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- printWarning('warn', format, args);
- }
- }
- function error(format) {
- {
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- args[_key2 - 1] = arguments[_key2];
- }
-
- printWarning('error', format, args);
- }
- }
-
- function printWarning(level, format, args) {
- // When changing this logic, you might want to also
- // update consoleWithStackDev.www.js as well.
- {
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
- var stack = ReactDebugCurrentFrame.getStackAddendum();
-
- if (stack !== '') {
- format += '%s';
- args = args.concat([stack]);
- }
-
- var argsWithFormat = args.map(function (item) {
- return '' + item;
- }); // Careful: RN currently depends on this prefix
-
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
- // breaks IE9: https://github.com/facebook/react/issues/13610
- // eslint-disable-next-line react-internal/no-production-logging
-
- Function.prototype.apply.call(console[level], console, argsWithFormat);
- }
- }
-
- var didWarnStateUpdateForUnmountedComponent = {};
-
- function warnNoop(publicInstance, callerName) {
- {
- var _constructor = publicInstance.constructor;
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
- var warningKey = componentName + "." + callerName;
-
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
- return;
- }
-
- error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
-
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
- }
- }
- /**
- * This is the abstract API for an update queue.
- */
-
-
- var ReactNoopUpdateQueue = {
- /**
- * Checks whether or not this composite component is mounted.
- * @param {ReactClass} publicInstance The instance we want to test.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
- isMounted: function (publicInstance) {
- return false;
- },
-
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {?function} callback Called after component is updated.
- * @param {?string} callerName name of the calling function in the public API.
- * @internal
- */
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
- warnNoop(publicInstance, 'forceUpdate');
- },
-
- /**
- * Replaces all of the state. Always use this or `setState` to mutate state.
- * You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} completeState Next state.
- * @param {?function} callback Called after component is updated.
- * @param {?string} callerName name of the calling function in the public API.
- * @internal
- */
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
- warnNoop(publicInstance, 'replaceState');
- },
-
- /**
- * Sets a subset of the state. This only exists because _pendingState is
- * internal. This provides a merging strategy that is not available to deep
- * properties which is confusing. TODO: Expose pendingState or don't use it
- * during the merge.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} partialState Next partial state to be merged with state.
- * @param {?function} callback Called after component is updated.
- * @param {?string} Name of the calling function in the public API.
- * @internal
- */
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
- warnNoop(publicInstance, 'setState');
- }
- };
-
- var emptyObject = {};
-
- {
- Object.freeze(emptyObject);
- }
- /**
- * Base class helpers for the updating state of a component.
- */
-
-
- function Component(props, context, updater) {
- this.props = props;
- this.context = context; // If a component has string refs, we will assign a different object later.
-
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
- // renderer.
-
- this.updater = updater || ReactNoopUpdateQueue;
- }
-
- Component.prototype.isReactComponent = {};
- /**
- * Sets a subset of the state. Always use this to mutate
- * state. You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * There is no guarantee that calls to `setState` will run synchronously,
- * as they may eventually be batched together. You can provide an optional
- * callback that will be executed when the call to setState is actually
- * completed.
- *
- * When a function is provided to setState, it will be called at some point in
- * the future (not synchronously). It will be called with the up to date
- * component arguments (state, props, context). These values can be different
- * from this.* because your function may be called after receiveProps but before
- * shouldComponentUpdate, and this new state, props, and context will not yet be
- * assigned to this.
- *
- * @param {object|function} partialState Next partial state or function to
- * produce next partial state to be merged with current state.
- * @param {?function} callback Called after state is updated.
- * @final
- * @protected
- */
-
- Component.prototype.setState = function (partialState, callback) {
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
- {
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
- }
- }
-
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
- };
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {?function} callback Called after update is complete.
- * @final
- * @protected
- */
-
-
- Component.prototype.forceUpdate = function (callback) {
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
- };
- /**
- * Deprecated APIs. These APIs used to exist on classic React classes but since
- * we would like to deprecate them, we're not going to move them over to this
- * modern base class. Instead, we define a getter that warns if it's accessed.
- */
-
-
- {
- var deprecatedAPIs = {
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
- };
-
- var defineDeprecationWarning = function (methodName, info) {
- Object.defineProperty(Component.prototype, methodName, {
- get: function () {
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
-
- return undefined;
- }
- });
- };
-
- for (var fnName in deprecatedAPIs) {
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
- }
- }
- }
-
- function ComponentDummy() {}
-
- ComponentDummy.prototype = Component.prototype;
- /**
- * Convenience component with default shallow equality check for sCU.
- */
-
- function PureComponent(props, context, updater) {
- this.props = props;
- this.context = context; // If a component has string refs, we will assign a different object later.
-
- this.refs = emptyObject;
- this.updater = updater || ReactNoopUpdateQueue;
- }
-
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
-
- assign(pureComponentPrototype, Component.prototype);
-
- pureComponentPrototype.isPureReactComponent = true;
-
- // an immutable object with a single mutable value
- function createRef() {
- var refObject = {
- current: null
- };
-
- {
- Object.seal(refObject);
- }
-
- return refObject;
- }
-
- function getWrappedName(outerType, innerType, wrapperName) {
- var functionName = innerType.displayName || innerType.name || '';
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
- }
-
- function getContextName(type) {
- return type.displayName || 'Context';
- }
-
- function getComponentName(type) {
- if (type == null) {
- // Host root, text node or just invalid type.
- return null;
- }
-
- {
- if (typeof type.tag === 'number') {
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
- }
- }
-
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
-
- if (typeof type === 'string') {
- return type;
- }
-
- switch (type) {
- case exports.Fragment:
- return 'Fragment';
-
- case REACT_PORTAL_TYPE:
- return 'Portal';
-
- case exports.Profiler:
- return 'Profiler';
-
- case exports.StrictMode:
- return 'StrictMode';
-
- case exports.Suspense:
- return 'Suspense';
-
- case REACT_SUSPENSE_LIST_TYPE:
- return 'SuspenseList';
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_CONTEXT_TYPE:
- var context = type;
- return getContextName(context) + '.Consumer';
-
- case REACT_PROVIDER_TYPE:
- var provider = type;
- return getContextName(provider._context) + '.Provider';
-
- case REACT_FORWARD_REF_TYPE:
- return getWrappedName(type, type.render, 'ForwardRef');
-
- case REACT_MEMO_TYPE:
- return getComponentName(type.type);
-
- case REACT_BLOCK_TYPE:
- return getComponentName(type._render);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- return getComponentName(init(payload));
- } catch (x) {
- return null;
- }
- }
- }
- }
-
- return null;
- }
-
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
- var RESERVED_PROPS = {
- key: true,
- ref: true,
- __self: true,
- __source: true
- };
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
-
- {
- didWarnAboutStringRefs = {};
- }
-
- function hasValidRef(config) {
- {
- if (hasOwnProperty$1.call(config, 'ref')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
-
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
-
- return config.ref !== undefined;
- }
-
- function hasValidKey(config) {
- {
- if (hasOwnProperty$1.call(config, 'key')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
-
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
-
- return config.key !== undefined;
- }
-
- function defineKeyPropWarningGetter(props, displayName) {
- var warnAboutAccessingKey = function () {
- {
- if (!specialPropKeyWarningShown) {
- specialPropKeyWarningShown = true;
-
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
- }
- }
- };
-
- warnAboutAccessingKey.isReactWarning = true;
- Object.defineProperty(props, 'key', {
- get: warnAboutAccessingKey,
- configurable: true
- });
- }
-
- function defineRefPropWarningGetter(props, displayName) {
- var warnAboutAccessingRef = function () {
- {
- if (!specialPropRefWarningShown) {
- specialPropRefWarningShown = true;
-
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
- }
- }
- };
-
- warnAboutAccessingRef.isReactWarning = true;
- Object.defineProperty(props, 'ref', {
- get: warnAboutAccessingRef,
- configurable: true
- });
- }
-
- function warnIfStringRefCannotBeAutoConverted(config) {
- {
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
- var componentName = getComponentName(ReactCurrentOwner.current.type);
-
- if (!didWarnAboutStringRefs[componentName]) {
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
-
- didWarnAboutStringRefs[componentName] = true;
- }
- }
- }
- }
- /**
- * Factory method to create a new React element. This no longer adheres to
- * the class pattern, so do not use new to call it. Also, instanceof check
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
- * if something is a React Element.
- *
- * @param {*} type
- * @param {*} props
- * @param {*} key
- * @param {string|object} ref
- * @param {*} owner
- * @param {*} self A *temporary* helper to detect places where `this` is
- * different from the `owner` when React.createElement is called, so that we
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
- * functions, and as long as `this` and owner are the same, there will be no
- * change in behavior.
- * @param {*} source An annotation object (added by a transpiler or otherwise)
- * indicating filename, line number, and/or other information.
- * @internal
- */
-
-
- var ReactElement = function (type, key, ref, self, source, owner, props) {
- var element = {
- // This tag allows us to uniquely identify this as a React Element
- $$typeof: REACT_ELEMENT_TYPE,
- // Built-in properties that belong on the element
- type: type,
- key: key,
- ref: ref,
- props: props,
- // Record the component responsible for creating this element.
- _owner: owner
- };
-
- {
- // The validation flag is currently mutative. We put it on
- // an external backing store so that we can freeze the whole object.
- // This can be replaced with a WeakMap once they are implemented in
- // commonly used development environments.
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
- // the validation flag non-enumerable (where possible, which should
- // include every environment we run tests in), so the test framework
- // ignores it.
-
- Object.defineProperty(element._store, 'validated', {
- configurable: false,
- enumerable: false,
- writable: true,
- value: false
- }); // self and source are DEV only properties.
-
- Object.defineProperty(element, '_self', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: self
- }); // Two elements created in two different places should be considered
- // equal for testing purposes and therefore we hide it from enumeration.
-
- Object.defineProperty(element, '_source', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: source
- });
-
- if (Object.freeze) {
- Object.freeze(element.props);
- Object.freeze(element);
- }
- }
-
- return element;
- };
- /**
- * Create and return a new ReactElement of the given type.
- * See https://reactjs.org/docs/react-api.html#createelement
- */
-
- function createElement(type, config, children) {
- var propName; // Reserved names are extracted
-
- var props = {};
- var key = null;
- var ref = null;
- var self = null;
- var source = null;
-
- if (config != null) {
- if (hasValidRef(config)) {
- ref = config.ref;
-
- {
- warnIfStringRefCannotBeAutoConverted(config);
- }
- }
-
- if (hasValidKey(config)) {
- key = '' + config.key;
- }
-
- self = config.__self === undefined ? null : config.__self;
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
-
- for (propName in config) {
- if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- props[propName] = config[propName];
- }
- }
- } // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
-
-
- var childrenLength = arguments.length - 2;
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
-
- {
- if (Object.freeze) {
- Object.freeze(childArray);
- }
- }
-
- props.children = childArray;
- } // Resolve default props
-
-
- if (type && type.defaultProps) {
- var defaultProps = type.defaultProps;
-
- for (propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
- }
-
- {
- if (key || ref) {
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
-
- if (key) {
- defineKeyPropWarningGetter(props, displayName);
- }
-
- if (ref) {
- defineRefPropWarningGetter(props, displayName);
- }
- }
- }
-
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
- }
- function cloneAndReplaceKey(oldElement, newKey) {
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
- return newElement;
- }
- /**
- * Clone and return a new ReactElement using element as the starting point.
- * See https://reactjs.org/docs/react-api.html#cloneelement
- */
-
- function cloneElement(element, config, children) {
- if (!!(element === null || element === undefined)) {
- {
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
- }
- }
-
- var propName; // Original props are copied
-
- var props = assign({}, element.props); // Reserved names are extracted
-
-
- var key = element.key;
- var ref = element.ref; // Self is preserved since the owner is preserved.
-
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
- // transpiler, and the original source is probably a better indicator of the
- // true owner.
-
- var source = element._source; // Owner will be preserved, unless ref is overridden
-
- var owner = element._owner;
-
- if (config != null) {
- if (hasValidRef(config)) {
- // Silently steal the ref from the parent.
- ref = config.ref;
- owner = ReactCurrentOwner.current;
- }
-
- if (hasValidKey(config)) {
- key = '' + config.key;
- } // Remaining properties override existing props
-
-
- var defaultProps;
-
- if (element.type && element.type.defaultProps) {
- defaultProps = element.type.defaultProps;
- }
-
- for (propName in config) {
- if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- if (config[propName] === undefined && defaultProps !== undefined) {
- // Resolve default props
- props[propName] = defaultProps[propName];
- } else {
- props[propName] = config[propName];
- }
- }
- }
- } // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
-
-
- var childrenLength = arguments.length - 2;
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
-
- props.children = childArray;
- }
-
- return ReactElement(element.type, key, ref, self, source, owner, props);
- }
- /**
- * Verifies the object is a ReactElement.
- * See https://reactjs.org/docs/react-api.html#isvalidelement
- * @param {?object} object
- * @return {boolean} True if `object` is a ReactElement.
- * @final
- */
-
- function isValidElement(object) {
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
- }
-
- var SEPARATOR = '.';
- var SUBSEPARATOR = ':';
- /**
- * Escape and wrap key so it is safe to use as a reactid
- *
- * @param {string} key to be escaped.
- * @return {string} the escaped key.
- */
-
- function escape(key) {
- var escapeRegex = /[=:]/g;
- var escaperLookup = {
- '=': '=0',
- ':': '=2'
- };
- var escapedString = key.replace(escapeRegex, function (match) {
- return escaperLookup[match];
- });
- return '$' + escapedString;
- }
- /**
- * TODO: Test that a single child and an array with one item have the same key
- * pattern.
- */
-
-
- var didWarnAboutMaps = false;
- var userProvidedKeyEscapeRegex = /\/+/g;
-
- function escapeUserProvidedKey(text) {
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
- }
- /**
- * Generate a key string that identifies a element within a set.
- *
- * @param {*} element A element that could contain a manual key.
- * @param {number} index Index that is used if a manual key is not provided.
- * @return {string}
- */
-
-
- function getElementKey(element, index) {
- // Do some typechecking here since we call this blindly. We want to ensure
- // that we don't block potential future ES APIs.
- if (typeof element === 'object' && element !== null && element.key != null) {
- // Explicit key
- return escape('' + element.key);
- } // Implicit key determined by the index in the set
-
-
- return index.toString(36);
- }
-
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
- var type = typeof children;
-
- if (type === 'undefined' || type === 'boolean') {
- // All of the above are perceived as null.
- children = null;
- }
-
- var invokeCallback = false;
-
- if (children === null) {
- invokeCallback = true;
- } else {
- switch (type) {
- case 'string':
- case 'number':
- invokeCallback = true;
- break;
-
- case 'object':
- switch (children.$$typeof) {
- case REACT_ELEMENT_TYPE:
- case REACT_PORTAL_TYPE:
- invokeCallback = true;
- }
-
- }
- }
-
- if (invokeCallback) {
- var _child = children;
- var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
- // so that it's consistent if the number of children grows:
-
- var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
-
- if (Array.isArray(mappedChild)) {
- var escapedChildKey = '';
-
- if (childKey != null) {
- escapedChildKey = escapeUserProvidedKey(childKey) + '/';
- }
-
- mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
- return c;
- });
- } else if (mappedChild != null) {
- if (isValidElement(mappedChild)) {
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
- // traverseAllChildren used to do for objects as children
- escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
- mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
- escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
- }
-
- array.push(mappedChild);
- }
-
- return 1;
- }
-
- var child;
- var nextName;
- var subtreeCount = 0; // Count of children found in the current subtree.
-
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
-
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- child = children[i];
- nextName = nextNamePrefix + getElementKey(child, i);
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
- }
- } else {
- var iteratorFn = getIteratorFn(children);
-
- if (typeof iteratorFn === 'function') {
- var iterableChildren = children;
-
- {
- // Warn about using Maps as children
- if (iteratorFn === iterableChildren.entries) {
- if (!didWarnAboutMaps) {
- warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
- }
-
- didWarnAboutMaps = true;
- }
- }
-
- var iterator = iteratorFn.call(iterableChildren);
- var step;
- var ii = 0;
-
- while (!(step = iterator.next()).done) {
- child = step.value;
- nextName = nextNamePrefix + getElementKey(child, ii++);
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
- }
- } else if (type === 'object') {
- var childrenString = '' + children;
-
- {
- {
- throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead." );
- }
- }
- }
- }
-
- return subtreeCount;
- }
-
- /**
- * Maps children that are typically specified as `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
- *
- * The provided mapFunction(child, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} func The map function.
- * @param {*} context Context for mapFunction.
- * @return {object} Object containing the ordered map of results.
- */
- function mapChildren(children, func, context) {
- if (children == null) {
- return children;
- }
-
- var result = [];
- var count = 0;
- mapIntoArray(children, result, '', '', function (child) {
- return func.call(context, child, count++);
- });
- return result;
- }
- /**
- * Count the number of children that are typically specified as
- * `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
- *
- * @param {?*} children Children tree container.
- * @return {number} The number of children.
- */
-
-
- function countChildren(children) {
- var n = 0;
- mapChildren(children, function () {
- n++; // Don't return anything
- });
- return n;
- }
-
- /**
- * Iterates through children that are typically specified as `props.children`.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
- *
- * The provided forEachFunc(child, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} forEachFunc
- * @param {*} forEachContext Context for forEachContext.
- */
- function forEachChildren(children, forEachFunc, forEachContext) {
- mapChildren(children, function () {
- forEachFunc.apply(this, arguments); // Don't return anything.
- }, forEachContext);
- }
- /**
- * Flatten a children object (typically specified as `props.children`) and
- * return an array with appropriately re-keyed children.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
- */
-
-
- function toArray(children) {
- return mapChildren(children, function (child) {
- return child;
- }) || [];
- }
- /**
- * Returns the first child in a collection of children and verifies that there
- * is only one child in the collection.
- *
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
- *
- * The current implementation of this function assumes that a single child gets
- * passed without a wrapper, but the purpose of this helper function is to
- * abstract away the particular structure of children.
- *
- * @param {?object} children Child collection structure.
- * @return {ReactElement} The first and only `ReactElement` contained in the
- * structure.
- */
-
-
- function onlyChild(children) {
- if (!isValidElement(children)) {
- {
- throw Error( "React.Children.only expected to receive a single React element child." );
- }
- }
-
- return children;
- }
-
- function createContext(defaultValue, calculateChangedBits) {
- if (calculateChangedBits === undefined) {
- calculateChangedBits = null;
- } else {
- {
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
- }
- }
- }
-
- var context = {
- $$typeof: REACT_CONTEXT_TYPE,
- _calculateChangedBits: calculateChangedBits,
- // As a workaround to support multiple concurrent renderers, we categorize
- // some renderers as primary and others as secondary. We only expect
- // there to be two concurrent renderers at most: React Native (primary) and
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
- // Secondary renderers store their context values on separate fields.
- _currentValue: defaultValue,
- _currentValue2: defaultValue,
- // Used to track how many concurrent renderers this context currently
- // supports within in a single renderer. Such as parallel server rendering.
- _threadCount: 0,
- // These are circular
- Provider: null,
- Consumer: null
- };
- context.Provider = {
- $$typeof: REACT_PROVIDER_TYPE,
- _context: context
- };
- var hasWarnedAboutUsingNestedContextConsumers = false;
- var hasWarnedAboutUsingConsumerProvider = false;
- var hasWarnedAboutDisplayNameOnConsumer = false;
-
- {
- // A separate object, but proxies back to the original context object for
- // backwards compatibility. It has a different $$typeof, so we can properly
- // warn for the incorrect usage of Context as a Consumer.
- var Consumer = {
- $$typeof: REACT_CONTEXT_TYPE,
- _context: context,
- _calculateChangedBits: context._calculateChangedBits
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
-
- Object.defineProperties(Consumer, {
- Provider: {
- get: function () {
- if (!hasWarnedAboutUsingConsumerProvider) {
- hasWarnedAboutUsingConsumerProvider = true;
-
- error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
- }
-
- return context.Provider;
- },
- set: function (_Provider) {
- context.Provider = _Provider;
- }
- },
- _currentValue: {
- get: function () {
- return context._currentValue;
- },
- set: function (_currentValue) {
- context._currentValue = _currentValue;
- }
- },
- _currentValue2: {
- get: function () {
- return context._currentValue2;
- },
- set: function (_currentValue2) {
- context._currentValue2 = _currentValue2;
- }
- },
- _threadCount: {
- get: function () {
- return context._threadCount;
- },
- set: function (_threadCount) {
- context._threadCount = _threadCount;
- }
- },
- Consumer: {
- get: function () {
- if (!hasWarnedAboutUsingNestedContextConsumers) {
- hasWarnedAboutUsingNestedContextConsumers = true;
-
- error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
- }
-
- return context.Consumer;
- }
- },
- displayName: {
- get: function () {
- return context.displayName;
- },
- set: function (displayName) {
- if (!hasWarnedAboutDisplayNameOnConsumer) {
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
-
- hasWarnedAboutDisplayNameOnConsumer = true;
- }
- }
- }
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
-
- context.Consumer = Consumer;
- }
-
- {
- context._currentRenderer = null;
- context._currentRenderer2 = null;
- }
-
- return context;
- }
-
- var Uninitialized = -1;
- var Pending = 0;
- var Resolved = 1;
- var Rejected = 2;
-
- function lazyInitializer(payload) {
- if (payload._status === Uninitialized) {
- var ctor = payload._result;
- var thenable = ctor(); // Transition to the next state.
-
- var pending = payload;
- pending._status = Pending;
- pending._result = thenable;
- thenable.then(function (moduleObject) {
- if (payload._status === Pending) {
- var defaultExport = moduleObject.default;
-
- {
- if (defaultExport === undefined) {
- error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
- }
- } // Transition to the next state.
-
-
- var resolved = payload;
- resolved._status = Resolved;
- resolved._result = defaultExport;
- }
- }, function (error) {
- if (payload._status === Pending) {
- // Transition to the next state.
- var rejected = payload;
- rejected._status = Rejected;
- rejected._result = error;
- }
- });
- }
-
- if (payload._status === Resolved) {
- return payload._result;
- } else {
- throw payload._result;
- }
- }
-
- function lazy(ctor) {
- var payload = {
- // We use these fields to store the result.
- _status: -1,
- _result: ctor
- };
- var lazyType = {
- $$typeof: REACT_LAZY_TYPE,
- _payload: payload,
- _init: lazyInitializer
- };
-
- {
- // In production, this would just set it on the object.
- var defaultProps;
- var propTypes; // $FlowFixMe
-
- Object.defineProperties(lazyType, {
- defaultProps: {
- configurable: true,
- get: function () {
- return defaultProps;
- },
- set: function (newDefaultProps) {
- error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
-
- defaultProps = newDefaultProps; // Match production behavior more closely:
- // $FlowFixMe
-
- Object.defineProperty(lazyType, 'defaultProps', {
- enumerable: true
- });
- }
- },
- propTypes: {
- configurable: true,
- get: function () {
- return propTypes;
- },
- set: function (newPropTypes) {
- error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
-
- propTypes = newPropTypes; // Match production behavior more closely:
- // $FlowFixMe
-
- Object.defineProperty(lazyType, 'propTypes', {
- enumerable: true
- });
- }
- }
- });
- }
-
- return lazyType;
- }
-
- function forwardRef(render) {
- {
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
- } else if (typeof render !== 'function') {
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
- } else {
- if (render.length !== 0 && render.length !== 2) {
- error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
- }
- }
-
- if (render != null) {
- if (render.defaultProps != null || render.propTypes != null) {
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
- }
- }
- }
-
- var elementType = {
- $$typeof: REACT_FORWARD_REF_TYPE,
- render: render
- };
-
- {
- var ownName;
- Object.defineProperty(elementType, 'displayName', {
- enumerable: false,
- configurable: true,
- get: function () {
- return ownName;
- },
- set: function (name) {
- ownName = name;
-
- if (render.displayName == null) {
- render.displayName = name;
- }
- }
- });
- }
-
- return elementType;
- }
-
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
-
- var enableScopeAPI = false; // Experimental Create Event Handle API.
-
- function isValidElementType(type) {
- if (typeof type === 'string' || typeof type === 'function') {
- return true;
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
-
-
- if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
- return true;
- }
-
- if (typeof type === 'object' && type !== null) {
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
- return true;
- }
- }
-
- return false;
- }
-
- function memo(type, compare) {
- {
- if (!isValidElementType(type)) {
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
- }
- }
-
- var elementType = {
- $$typeof: REACT_MEMO_TYPE,
- type: type,
- compare: compare === undefined ? null : compare
- };
-
- {
- var ownName;
- Object.defineProperty(elementType, 'displayName', {
- enumerable: false,
- configurable: true,
- get: function () {
- return ownName;
- },
- set: function (name) {
- ownName = name;
-
- if (type.displayName == null) {
- type.displayName = name;
- }
- }
- });
- }
-
- return elementType;
- }
-
- function resolveDispatcher() {
- var dispatcher = ReactCurrentDispatcher.current;
-
- if (!(dispatcher !== null)) {
- {
- throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
- }
- }
-
- return dispatcher;
- }
-
- function useContext(Context, unstable_observedBits) {
- var dispatcher = resolveDispatcher();
-
- {
- if (unstable_observedBits !== undefined) {
- error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
- } // TODO: add a more generic warning for invalid values.
-
-
- if (Context._context !== undefined) {
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
- // and nobody should be using this in existing code.
-
- if (realContext.Consumer === Context) {
- error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
- } else if (realContext.Provider === Context) {
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
- }
- }
- }
-
- return dispatcher.useContext(Context, unstable_observedBits);
- }
- function useState(initialState) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useState(initialState);
- }
- function useReducer(reducer, initialArg, init) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useReducer(reducer, initialArg, init);
- }
- function useRef(initialValue) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useRef(initialValue);
- }
- function useEffect(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useEffect(create, deps);
- }
- function useLayoutEffect(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useLayoutEffect(create, deps);
- }
- function useCallback(callback, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useCallback(callback, deps);
- }
- function useMemo(create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useMemo(create, deps);
- }
- function useImperativeHandle(ref, create, deps) {
- var dispatcher = resolveDispatcher();
- return dispatcher.useImperativeHandle(ref, create, deps);
- }
- function useDebugValue(value, formatterFn) {
- {
- var dispatcher = resolveDispatcher();
- return dispatcher.useDebugValue(value, formatterFn);
- }
- }
-
- // Helpers to patch console.logs to avoid logging during side-effect free
- // replaying on render function. This currently only patches the object
- // lazily which won't cover if the log function was extracted eagerly.
- // We could also eagerly patch the method.
- var disabledDepth = 0;
- var prevLog;
- var prevInfo;
- var prevWarn;
- var prevError;
- var prevGroup;
- var prevGroupCollapsed;
- var prevGroupEnd;
-
- function disabledLog() {}
-
- disabledLog.__reactDisabledLog = true;
- function disableLogs() {
- {
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- prevLog = console.log;
- prevInfo = console.info;
- prevWarn = console.warn;
- prevError = console.error;
- prevGroup = console.group;
- prevGroupCollapsed = console.groupCollapsed;
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
-
- var props = {
- configurable: true,
- enumerable: true,
- value: disabledLog,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- info: props,
- log: props,
- warn: props,
- error: props,
- group: props,
- groupCollapsed: props,
- groupEnd: props
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- disabledDepth++;
- }
- }
- function reenableLogs() {
- {
- disabledDepth--;
-
- if (disabledDepth === 0) {
- /* eslint-disable react-internal/no-production-logging */
- var props = {
- configurable: true,
- enumerable: true,
- writable: true
- }; // $FlowFixMe Flow thinks console is immutable.
-
- Object.defineProperties(console, {
- log: assign({}, props, {
- value: prevLog
- }),
- info: assign({}, props, {
- value: prevInfo
- }),
- warn: assign({}, props, {
- value: prevWarn
- }),
- error: assign({}, props, {
- value: prevError
- }),
- group: assign({}, props, {
- value: prevGroup
- }),
- groupCollapsed: assign({}, props, {
- value: prevGroupCollapsed
- }),
- groupEnd: assign({}, props, {
- value: prevGroupEnd
- })
- });
- /* eslint-enable react-internal/no-production-logging */
- }
-
- if (disabledDepth < 0) {
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
- }
- }
- }
-
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
- var prefix;
- function describeBuiltInComponentFrame(name, source, ownerFn) {
- {
- if (prefix === undefined) {
- // Extract the VM specific prefix used by each line.
- try {
- throw Error();
- } catch (x) {
- var match = x.stack.trim().match(/\n( *(at )?)/);
- prefix = match && match[1] || '';
- }
- } // We use the prefix to ensure our stacks line up with native stack frames.
-
-
- return '\n' + prefix + name;
- }
- }
- var reentry = false;
- var componentFrameCache;
-
- {
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
- componentFrameCache = new PossiblyWeakMap();
- }
-
- function describeNativeComponentFrame(fn, construct) {
- // If something asked for a stack inside a fake render, it should get ignored.
- if (!fn || reentry) {
- return '';
- }
-
- {
- var frame = componentFrameCache.get(fn);
-
- if (frame !== undefined) {
- return frame;
- }
- }
-
- var control;
- reentry = true;
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
-
- Error.prepareStackTrace = undefined;
- var previousDispatcher;
-
- {
- previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
- // for warnings.
-
- ReactCurrentDispatcher$1.current = null;
- disableLogs();
- }
-
- try {
- // This should throw.
- if (construct) {
- // Something should be setting the props in the constructor.
- var Fake = function () {
- throw Error();
- }; // $FlowFixMe
-
-
- Object.defineProperty(Fake.prototype, 'props', {
- set: function () {
- // We use a throwing setter instead of frozen or non-writable props
- // because that won't throw in a non-strict mode function.
- throw Error();
- }
- });
-
- if (typeof Reflect === 'object' && Reflect.construct) {
- // We construct a different control for this case to include any extra
- // frames added by the construct call.
- try {
- Reflect.construct(Fake, []);
- } catch (x) {
- control = x;
- }
-
- Reflect.construct(fn, [], Fake);
- } else {
- try {
- Fake.call();
- } catch (x) {
- control = x;
- }
-
- fn.call(Fake.prototype);
- }
- } else {
- try {
- throw Error();
- } catch (x) {
- control = x;
- }
-
- fn();
- }
- } catch (sample) {
- // This is inlined manually because closure doesn't do it for us.
- if (sample && control && typeof sample.stack === 'string') {
- // This extracts the first frame from the sample that isn't also in the control.
- // Skipping one frame that we assume is the frame that calls the two.
- var sampleLines = sample.stack.split('\n');
- var controlLines = control.stack.split('\n');
- var s = sampleLines.length - 1;
- var c = controlLines.length - 1;
-
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
- // We expect at least one stack frame to be shared.
- // Typically this will be the root most one. However, stack frames may be
- // cut off due to maximum stack limits. In this case, one maybe cut off
- // earlier than the other. We assume that the sample is longer or the same
- // and there for cut off earlier. So we should find the root most frame in
- // the sample somewhere in the control.
- c--;
- }
-
- for (; s >= 1 && c >= 0; s--, c--) {
- // Next we find the first one that isn't the same which should be the
- // frame that called our sample function and the control.
- if (sampleLines[s] !== controlLines[c]) {
- // In V8, the first line is describing the message but other VMs don't.
- // If we're about to return the first line, and the control is also on the same
- // line, that's a pretty good indicator that our sample threw at same line as
- // the control. I.e. before we entered the sample frame. So we ignore this result.
- // This can happen if you passed a class to function component, or non-function.
- if (s !== 1 || c !== 1) {
- do {
- s--;
- c--; // We may still have similar intermediate frames from the construct call.
- // The next one that isn't the same should be our match though.
-
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, _frame);
- }
- } // Return the line we found.
-
-
- return _frame;
- }
- } while (s >= 1 && c >= 0);
- }
-
- break;
- }
- }
- }
- } finally {
- reentry = false;
-
- {
- ReactCurrentDispatcher$1.current = previousDispatcher;
- reenableLogs();
- }
-
- Error.prepareStackTrace = previousPrepareStackTrace;
- } // Fallback to just using the name if we couldn't make it throw.
-
-
- var name = fn ? fn.displayName || fn.name : '';
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
-
- {
- if (typeof fn === 'function') {
- componentFrameCache.set(fn, syntheticFrame);
- }
- }
-
- return syntheticFrame;
- }
- function describeFunctionComponentFrame(fn, source, ownerFn) {
- {
- return describeNativeComponentFrame(fn, false);
- }
- }
-
- function shouldConstruct(Component) {
- var prototype = Component.prototype;
- return !!(prototype && prototype.isReactComponent);
- }
-
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
-
- if (type == null) {
- return '';
- }
-
- if (typeof type === 'function') {
- {
- return describeNativeComponentFrame(type, shouldConstruct(type));
- }
- }
-
- if (typeof type === 'string') {
- return describeBuiltInComponentFrame(type);
- }
-
- switch (type) {
- case exports.Suspense:
- return describeBuiltInComponentFrame('Suspense');
-
- case REACT_SUSPENSE_LIST_TYPE:
- return describeBuiltInComponentFrame('SuspenseList');
- }
-
- if (typeof type === 'object') {
- switch (type.$$typeof) {
- case REACT_FORWARD_REF_TYPE:
- return describeFunctionComponentFrame(type.render);
-
- case REACT_MEMO_TYPE:
- // Memo may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
-
- case REACT_BLOCK_TYPE:
- return describeFunctionComponentFrame(type._render);
-
- case REACT_LAZY_TYPE:
- {
- var lazyComponent = type;
- var payload = lazyComponent._payload;
- var init = lazyComponent._init;
-
- try {
- // Lazy may contain any component type so we recursively resolve it.
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
- } catch (x) {}
- }
- }
- }
-
- return '';
- }
-
- var loggedTypeFailures = {};
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
-
- function setCurrentlyValidatingElement(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
- } else {
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
- }
- }
- }
-
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
- {
- // $FlowFixMe This is okay but Flow doesn't know it.
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
-
- for (var typeSpecName in typeSpecs) {
- if (has(typeSpecs, typeSpecName)) {
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
-
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- if (typeof typeSpecs[typeSpecName] !== 'function') {
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
- err.name = 'Invariant Violation';
- throw err;
- }
-
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
- } catch (ex) {
- error$1 = ex;
- }
-
- if (error$1 && !(error$1 instanceof Error)) {
- setCurrentlyValidatingElement(element);
-
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
-
- setCurrentlyValidatingElement(null);
- }
-
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error$1.message] = true;
- setCurrentlyValidatingElement(element);
-
- error('Failed %s type: %s', location, error$1.message);
-
- setCurrentlyValidatingElement(null);
- }
- }
- }
- }
- }
-
- function setCurrentlyValidatingElement$1(element) {
- {
- if (element) {
- var owner = element._owner;
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
- setExtraStackFrame(stack);
- } else {
- setExtraStackFrame(null);
- }
- }
- }
-
- var propTypesMisspellWarningShown;
-
- {
- propTypesMisspellWarningShown = false;
- }
-
- function getDeclarationErrorAddendum() {
- if (ReactCurrentOwner.current) {
- var name = getComponentName(ReactCurrentOwner.current.type);
-
- if (name) {
- return '\n\nCheck the render method of `' + name + '`.';
- }
- }
-
- return '';
- }
-
- function getSourceInfoErrorAddendum(source) {
- if (source !== undefined) {
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
- var lineNumber = source.lineNumber;
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
- }
-
- return '';
- }
-
- function getSourceInfoErrorAddendumForProps(elementProps) {
- if (elementProps !== null && elementProps !== undefined) {
- return getSourceInfoErrorAddendum(elementProps.__source);
- }
-
- return '';
- }
- /**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
-
-
- var ownerHasKeyUseWarning = {};
-
- function getCurrentComponentErrorInfo(parentType) {
- var info = getDeclarationErrorAddendum();
-
- if (!info) {
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
-
- if (parentName) {
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
- }
- }
-
- return info;
- }
- /**
- * Warn if the element doesn't have an explicit key assigned to it.
- * This element is in an array. The array could grow and shrink or be
- * reordered. All children that haven't already been validated are required to
- * have a "key" property assigned to it. Error statuses are cached so a warning
- * will only be shown once.
- *
- * @internal
- * @param {ReactElement} element Element that requires a key.
- * @param {*} parentType element's parent's type.
- */
-
-
- function validateExplicitKey(element, parentType) {
- if (!element._store || element._store.validated || element.key != null) {
- return;
- }
-
- element._store.validated = true;
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
-
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
- return;
- }
-
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
- // property, it may be the creator of the child that's responsible for
- // assigning it a key.
-
- var childOwner = '';
-
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
- // Give the component that originally created this child.
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
- }
-
- {
- setCurrentlyValidatingElement$1(element);
-
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
-
- setCurrentlyValidatingElement$1(null);
- }
- }
- /**
- * Ensure that every element either is passed in a static location, in an
- * array with an explicit keys property defined, or in an object literal
- * with valid key property.
- *
- * @internal
- * @param {ReactNode} node Statically passed child of any type.
- * @param {*} parentType node's parent's type.
- */
-
-
- function validateChildKeys(node, parentType) {
- if (typeof node !== 'object') {
- return;
- }
-
- if (Array.isArray(node)) {
- for (var i = 0; i < node.length; i++) {
- var child = node[i];
-
- if (isValidElement(child)) {
- validateExplicitKey(child, parentType);
- }
- }
- } else if (isValidElement(node)) {
- // This element was passed in a valid location.
- if (node._store) {
- node._store.validated = true;
- }
- } else if (node) {
- var iteratorFn = getIteratorFn(node);
-
- if (typeof iteratorFn === 'function') {
- // Entry iterators used to provide implicit keys,
- // but now we print a separate warning for them later.
- if (iteratorFn !== node.entries) {
- var iterator = iteratorFn.call(node);
- var step;
-
- while (!(step = iterator.next()).done) {
- if (isValidElement(step.value)) {
- validateExplicitKey(step.value, parentType);
- }
- }
- }
- }
- }
- }
- /**
- * Given an element, validate that its props follow the propTypes definition,
- * provided by the type.
- *
- * @param {ReactElement} element
- */
-
-
- function validatePropTypes(element) {
- {
- var type = element.type;
-
- if (type === null || type === undefined || typeof type === 'string') {
- return;
- }
-
- var propTypes;
-
- if (typeof type === 'function') {
- propTypes = type.propTypes;
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
- // Inner props are checked in the reconciler.
- type.$$typeof === REACT_MEMO_TYPE)) {
- propTypes = type.propTypes;
- } else {
- return;
- }
-
- if (propTypes) {
- // Intentionally inside to avoid triggering lazy initializers:
- var name = getComponentName(type);
- checkPropTypes(propTypes, element.props, 'prop', name, element);
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
-
- var _name = getComponentName(type);
-
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
- }
-
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
- }
- }
- }
- /**
- * Given a fragment, validate that it can only be provided with fragment props
- * @param {ReactElement} fragment
- */
-
-
- function validateFragmentProps(fragment) {
- {
- var keys = Object.keys(fragment.props);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
-
- if (key !== 'children' && key !== 'key') {
- setCurrentlyValidatingElement$1(fragment);
-
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
-
- setCurrentlyValidatingElement$1(null);
- break;
- }
- }
-
- if (fragment.ref !== null) {
- setCurrentlyValidatingElement$1(fragment);
-
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
-
- setCurrentlyValidatingElement$1(null);
- }
- }
- }
- function createElementWithValidation(type, props, children) {
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
- // succeed and there will likely be errors in render.
-
- if (!validType) {
- var info = '';
-
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
- }
-
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
-
- if (sourceInfo) {
- info += sourceInfo;
- } else {
- info += getDeclarationErrorAddendum();
- }
-
- var typeString;
-
- if (type === null) {
- typeString = 'null';
- } else if (Array.isArray(type)) {
- typeString = 'array';
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
- info = ' Did you accidentally export a JSX literal instead of a component?';
- } else {
- typeString = typeof type;
- }
-
- {
- error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
- }
- }
-
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
- // TODO: Drop this when these are no longer allowed as the type argument.
-
- if (element == null) {
- return element;
- } // Skip key warning if the type isn't valid since our key validation logic
- // doesn't expect a non-string/function type and can throw confusing errors.
- // We don't want exception behavior to differ between dev and prod.
- // (Rendering will throw with a helpful message and as soon as the type is
- // fixed, the key warnings will appear.)
-
-
- if (validType) {
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], type);
- }
- }
-
- if (type === exports.Fragment) {
- validateFragmentProps(element);
- } else {
- validatePropTypes(element);
- }
-
- return element;
- }
- var didWarnAboutDeprecatedCreateFactory = false;
- function createFactoryWithValidation(type) {
- var validatedFactory = createElementWithValidation.bind(null, type);
- validatedFactory.type = type;
-
- {
- if (!didWarnAboutDeprecatedCreateFactory) {
- didWarnAboutDeprecatedCreateFactory = true;
-
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
- } // Legacy hook: remove it
-
-
- Object.defineProperty(validatedFactory, 'type', {
- enumerable: false,
- get: function () {
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
-
- Object.defineProperty(this, 'type', {
- value: type
- });
- return type;
- }
- });
- }
-
- return validatedFactory;
- }
- function cloneElementWithValidation(element, props, children) {
- var newElement = cloneElement.apply(this, arguments);
-
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], newElement.type);
- }
-
- validatePropTypes(newElement);
- return newElement;
- }
-
- var enableSchedulerDebugging = false;
- var enableProfiling = false;
-
- var requestHostCallback;
- var requestHostTimeout;
- var cancelHostTimeout;
- var shouldYieldToHost;
- var requestPaint;
- var getCurrentTime;
- var forceFrameRate;
- var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
-
- if (hasPerformanceNow) {
- var localPerformance = performance;
-
- getCurrentTime = function () {
- return localPerformance.now();
- };
- } else {
- var localDate = Date;
- var initialTime = localDate.now();
-
- getCurrentTime = function () {
- return localDate.now() - initialTime;
- };
- }
-
- if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
- // implementation using setTimeout.
- typeof window === 'undefined' || // Check if MessageChannel is supported, too.
- typeof MessageChannel !== 'function') {
- // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
- // fallback to a naive implementation.
- var _callback = null;
- var _timeoutID = null;
-
- var _flushCallback = function () {
- if (_callback !== null) {
- try {
- var currentTime = getCurrentTime();
- var hasRemainingTime = true;
-
- _callback(hasRemainingTime, currentTime);
-
- _callback = null;
- } catch (e) {
- setTimeout(_flushCallback, 0);
- throw e;
- }
- }
- };
-
- requestHostCallback = function (cb) {
- if (_callback !== null) {
- // Protect against re-entrancy.
- setTimeout(requestHostCallback, 0, cb);
- } else {
- _callback = cb;
- setTimeout(_flushCallback, 0);
- }
- };
-
- requestHostTimeout = function (cb, ms) {
- _timeoutID = setTimeout(cb, ms);
- };
-
- cancelHostTimeout = function () {
- clearTimeout(_timeoutID);
- };
-
- shouldYieldToHost = function () {
- return false;
- };
-
- requestPaint = forceFrameRate = function () {};
- } else {
- // Capture local references to native APIs, in case a polyfill overrides them.
- var _setTimeout = window.setTimeout;
- var _clearTimeout = window.clearTimeout;
-
- if (typeof console !== 'undefined') {
- // TODO: Scheduler no longer requires these methods to be polyfilled. But
- // maybe we want to continue warning if they don't exist, to preserve the
- // option to rely on it in the future?
- var requestAnimationFrame = window.requestAnimationFrame;
- var cancelAnimationFrame = window.cancelAnimationFrame;
-
- if (typeof requestAnimationFrame !== 'function') {
- // Using console['error'] to evade Babel and ESLint
- console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
- }
-
- if (typeof cancelAnimationFrame !== 'function') {
- // Using console['error'] to evade Babel and ESLint
- console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
- }
- }
-
- var isMessageLoopRunning = false;
- var scheduledHostCallback = null;
- var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
- // thread, like user events. By default, it yields multiple times per frame.
- // It does not attempt to align with frame boundaries, since most tasks don't
- // need to be frame aligned; for those that do, use requestAnimationFrame.
-
- var yieldInterval = 5;
- var deadline = 0; // TODO: Make this configurable
-
- {
- // `isInputPending` is not available. Since we have no way of knowing if
- // there's pending input, always yield at the end of the frame.
- shouldYieldToHost = function () {
- return getCurrentTime() >= deadline;
- }; // Since we yield every frame regardless, `requestPaint` has no effect.
-
-
- requestPaint = function () {};
- }
-
- forceFrameRate = function (fps) {
- if (fps < 0 || fps > 125) {
- // Using console['error'] to evade Babel and ESLint
- console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
- return;
- }
-
- if (fps > 0) {
- yieldInterval = Math.floor(1000 / fps);
- } else {
- // reset the framerate
- yieldInterval = 5;
- }
- };
-
- var performWorkUntilDeadline = function () {
- if (scheduledHostCallback !== null) {
- var currentTime = getCurrentTime(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
- // cycle. This means there's always time remaining at the beginning of
- // the message event.
-
- deadline = currentTime + yieldInterval;
- var hasTimeRemaining = true;
-
- try {
- var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
-
- if (!hasMoreWork) {
- isMessageLoopRunning = false;
- scheduledHostCallback = null;
- } else {
- // If there's more work, schedule the next message event at the end
- // of the preceding one.
- port.postMessage(null);
- }
- } catch (error) {
- // If a scheduler task throws, exit the current browser task so the
- // error can be observed.
- port.postMessage(null);
- throw error;
- }
- } else {
- isMessageLoopRunning = false;
- } // Yielding to the browser will give it a chance to paint, so we can
- };
-
- var channel = new MessageChannel();
- var port = channel.port2;
- channel.port1.onmessage = performWorkUntilDeadline;
-
- requestHostCallback = function (callback) {
- scheduledHostCallback = callback;
-
- if (!isMessageLoopRunning) {
- isMessageLoopRunning = true;
- port.postMessage(null);
- }
- };
-
- requestHostTimeout = function (callback, ms) {
- taskTimeoutID = _setTimeout(function () {
- callback(getCurrentTime());
- }, ms);
- };
-
- cancelHostTimeout = function () {
- _clearTimeout(taskTimeoutID);
-
- taskTimeoutID = -1;
- };
- }
-
- function push(heap, node) {
- var index = heap.length;
- heap.push(node);
- siftUp(heap, node, index);
- }
- function peek(heap) {
- var first = heap[0];
- return first === undefined ? null : first;
- }
- function pop(heap) {
- var first = heap[0];
-
- if (first !== undefined) {
- var last = heap.pop();
-
- if (last !== first) {
- heap[0] = last;
- siftDown(heap, last, 0);
- }
-
- return first;
- } else {
- return null;
- }
- }
-
- function siftUp(heap, node, i) {
- var index = i;
-
- while (true) {
- var parentIndex = index - 1 >>> 1;
- var parent = heap[parentIndex];
-
- if (parent !== undefined && compare(parent, node) > 0) {
- // The parent is larger. Swap positions.
- heap[parentIndex] = node;
- heap[index] = parent;
- index = parentIndex;
- } else {
- // The parent is smaller. Exit.
- return;
- }
- }
- }
-
- function siftDown(heap, node, i) {
- var index = i;
- var length = heap.length;
-
- while (index < length) {
- var leftIndex = (index + 1) * 2 - 1;
- var left = heap[leftIndex];
- var rightIndex = leftIndex + 1;
- var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
-
- if (left !== undefined && compare(left, node) < 0) {
- if (right !== undefined && compare(right, left) < 0) {
- heap[index] = right;
- heap[rightIndex] = node;
- index = rightIndex;
- } else {
- heap[index] = left;
- heap[leftIndex] = node;
- index = leftIndex;
- }
- } else if (right !== undefined && compare(right, node) < 0) {
- heap[index] = right;
- heap[rightIndex] = node;
- index = rightIndex;
- } else {
- // Neither child is smaller. Exit.
- return;
- }
- }
- }
-
- function compare(a, b) {
- // Compare sort index first, then task id.
- var diff = a.sortIndex - b.sortIndex;
- return diff !== 0 ? diff : a.id - b.id;
- }
-
- // TODO: Use symbols?
- var ImmediatePriority = 1;
- var UserBlockingPriority = 2;
- var NormalPriority = 3;
- var LowPriority = 4;
- var IdlePriority = 5;
-
- function markTaskErrored(task, ms) {
- }
-
- /* eslint-disable no-var */
- // Math.pow(2, 30) - 1
- // 0b111111111111111111111111111111
-
- var maxSigned31BitInt = 1073741823; // Times out immediately
-
- var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
-
- var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
- var NORMAL_PRIORITY_TIMEOUT = 5000;
- var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
-
- var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap
-
- var taskQueue = [];
- var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
-
- var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
- var currentTask = null;
- var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
-
- var isPerformingWork = false;
- var isHostCallbackScheduled = false;
- var isHostTimeoutScheduled = false;
-
- function advanceTimers(currentTime) {
- // Check for tasks that are no longer delayed and add them to the queue.
- var timer = peek(timerQueue);
-
- while (timer !== null) {
- if (timer.callback === null) {
- // Timer was cancelled.
- pop(timerQueue);
- } else if (timer.startTime <= currentTime) {
- // Timer fired. Transfer to the task queue.
- pop(timerQueue);
- timer.sortIndex = timer.expirationTime;
- push(taskQueue, timer);
- } else {
- // Remaining timers are pending.
- return;
- }
-
- timer = peek(timerQueue);
- }
- }
-
- function handleTimeout(currentTime) {
- isHostTimeoutScheduled = false;
- advanceTimers(currentTime);
-
- if (!isHostCallbackScheduled) {
- if (peek(taskQueue) !== null) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- } else {
- var firstTimer = peek(timerQueue);
-
- if (firstTimer !== null) {
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
- }
- }
- }
- }
-
- function flushWork(hasTimeRemaining, initialTime) {
-
-
- isHostCallbackScheduled = false;
-
- if (isHostTimeoutScheduled) {
- // We scheduled a timeout but it's no longer needed. Cancel it.
- isHostTimeoutScheduled = false;
- cancelHostTimeout();
- }
-
- isPerformingWork = true;
- var previousPriorityLevel = currentPriorityLevel;
-
- try {
- if (enableProfiling) {
- try {
- return workLoop(hasTimeRemaining, initialTime);
- } catch (error) {
- if (currentTask !== null) {
- var currentTime = getCurrentTime();
- markTaskErrored(currentTask, currentTime);
- currentTask.isQueued = false;
- }
-
- throw error;
- }
- } else {
- // No catch in prod code path.
- return workLoop(hasTimeRemaining, initialTime);
- }
- } finally {
- currentTask = null;
- currentPriorityLevel = previousPriorityLevel;
- isPerformingWork = false;
- }
- }
-
- function workLoop(hasTimeRemaining, initialTime) {
- var currentTime = initialTime;
- advanceTimers(currentTime);
- currentTask = peek(taskQueue);
-
- while (currentTask !== null && !(enableSchedulerDebugging )) {
- if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
- // This currentTask hasn't expired, and we've reached the deadline.
- break;
- }
-
- var callback = currentTask.callback;
-
- if (typeof callback === 'function') {
- currentTask.callback = null;
- currentPriorityLevel = currentTask.priorityLevel;
- var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
-
- var continuationCallback = callback(didUserCallbackTimeout);
- currentTime = getCurrentTime();
-
- if (typeof continuationCallback === 'function') {
- currentTask.callback = continuationCallback;
- } else {
-
- if (currentTask === peek(taskQueue)) {
- pop(taskQueue);
- }
- }
-
- advanceTimers(currentTime);
- } else {
- pop(taskQueue);
- }
-
- currentTask = peek(taskQueue);
- } // Return whether there's additional work
-
-
- if (currentTask !== null) {
- return true;
- } else {
- var firstTimer = peek(timerQueue);
-
- if (firstTimer !== null) {
- requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
- }
-
- return false;
- }
- }
-
- function unstable_runWithPriority(priorityLevel, eventHandler) {
- switch (priorityLevel) {
- case ImmediatePriority:
- case UserBlockingPriority:
- case NormalPriority:
- case LowPriority:
- case IdlePriority:
- break;
-
- default:
- priorityLevel = NormalPriority;
- }
-
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = priorityLevel;
-
- try {
- return eventHandler();
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- }
-
- function unstable_next(eventHandler) {
- var priorityLevel;
-
- switch (currentPriorityLevel) {
- case ImmediatePriority:
- case UserBlockingPriority:
- case NormalPriority:
- // Shift down to normal priority
- priorityLevel = NormalPriority;
- break;
-
- default:
- // Anything lower than normal priority should remain at the current level.
- priorityLevel = currentPriorityLevel;
- break;
- }
-
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = priorityLevel;
-
- try {
- return eventHandler();
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- }
-
- function unstable_wrapCallback(callback) {
- var parentPriorityLevel = currentPriorityLevel;
- return function () {
- // This is a fork of runWithPriority, inlined for performance.
- var previousPriorityLevel = currentPriorityLevel;
- currentPriorityLevel = parentPriorityLevel;
-
- try {
- return callback.apply(this, arguments);
- } finally {
- currentPriorityLevel = previousPriorityLevel;
- }
- };
- }
-
- function unstable_scheduleCallback(priorityLevel, callback, options) {
- var currentTime = getCurrentTime();
- var startTime;
-
- if (typeof options === 'object' && options !== null) {
- var delay = options.delay;
-
- if (typeof delay === 'number' && delay > 0) {
- startTime = currentTime + delay;
- } else {
- startTime = currentTime;
- }
- } else {
- startTime = currentTime;
- }
-
- var timeout;
-
- switch (priorityLevel) {
- case ImmediatePriority:
- timeout = IMMEDIATE_PRIORITY_TIMEOUT;
- break;
-
- case UserBlockingPriority:
- timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
- break;
-
- case IdlePriority:
- timeout = IDLE_PRIORITY_TIMEOUT;
- break;
-
- case LowPriority:
- timeout = LOW_PRIORITY_TIMEOUT;
- break;
-
- case NormalPriority:
- default:
- timeout = NORMAL_PRIORITY_TIMEOUT;
- break;
- }
-
- var expirationTime = startTime + timeout;
- var newTask = {
- id: taskIdCounter++,
- callback: callback,
- priorityLevel: priorityLevel,
- startTime: startTime,
- expirationTime: expirationTime,
- sortIndex: -1
- };
-
- if (startTime > currentTime) {
- // This is a delayed task.
- newTask.sortIndex = startTime;
- push(timerQueue, newTask);
-
- if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
- // All tasks are delayed, and this is the task with the earliest delay.
- if (isHostTimeoutScheduled) {
- // Cancel an existing timeout.
- cancelHostTimeout();
- } else {
- isHostTimeoutScheduled = true;
- } // Schedule a timeout.
-
-
- requestHostTimeout(handleTimeout, startTime - currentTime);
- }
- } else {
- newTask.sortIndex = expirationTime;
- push(taskQueue, newTask);
- // wait until the next time we yield.
-
-
- if (!isHostCallbackScheduled && !isPerformingWork) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- }
- }
-
- return newTask;
- }
-
- function unstable_pauseExecution() {
- }
-
- function unstable_continueExecution() {
-
- if (!isHostCallbackScheduled && !isPerformingWork) {
- isHostCallbackScheduled = true;
- requestHostCallback(flushWork);
- }
- }
-
- function unstable_getFirstCallbackNode() {
- return peek(taskQueue);
- }
-
- function unstable_cancelCallback(task) {
- // remove from the queue because you can't remove arbitrary nodes from an
- // array based heap, only the first one.)
-
-
- task.callback = null;
- }
-
- function unstable_getCurrentPriorityLevel() {
- return currentPriorityLevel;
- }
-
- var unstable_requestPaint = requestPaint;
- var unstable_Profiling = null;
-
-
-
- var Scheduler = /*#__PURE__*/Object.freeze({
- __proto__: null,
- unstable_ImmediatePriority: ImmediatePriority,
- unstable_UserBlockingPriority: UserBlockingPriority,
- unstable_NormalPriority: NormalPriority,
- unstable_IdlePriority: IdlePriority,
- unstable_LowPriority: LowPriority,
- unstable_runWithPriority: unstable_runWithPriority,
- unstable_next: unstable_next,
- unstable_scheduleCallback: unstable_scheduleCallback,
- unstable_cancelCallback: unstable_cancelCallback,
- unstable_wrapCallback: unstable_wrapCallback,
- unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
- get unstable_shouldYield () { return shouldYieldToHost; },
- unstable_requestPaint: unstable_requestPaint,
- unstable_continueExecution: unstable_continueExecution,
- unstable_pauseExecution: unstable_pauseExecution,
- unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
- get unstable_now () { return getCurrentTime; },
- get unstable_forceFrameRate () { return forceFrameRate; },
- unstable_Profiling: unstable_Profiling
- });
-
- var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
-
- var interactionIDCounter = 0;
- var threadIDCounter = 0; // Set of currently traced interactions.
- // Interactions "stack"–
- // Meaning that newly traced interactions are appended to the previously active set.
- // When an interaction goes out of scope, the previous set (if any) is restored.
-
- var interactionsRef = null; // Listener(s) to notify when interactions begin and end.
-
- var subscriberRef = null;
-
- {
- interactionsRef = {
- current: new Set()
- };
- subscriberRef = {
- current: null
- };
- }
- function unstable_clear(callback) {
-
- var prevInteractions = interactionsRef.current;
- interactionsRef.current = new Set();
-
- try {
- return callback();
- } finally {
- interactionsRef.current = prevInteractions;
- }
- }
- function unstable_getCurrent() {
- {
- return interactionsRef.current;
- }
- }
- function unstable_getThreadID() {
- return ++threadIDCounter;
- }
- function unstable_trace(name, timestamp, callback) {
- var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
-
- var interaction = {
- __count: 1,
- id: interactionIDCounter++,
- name: name,
- timestamp: timestamp
- };
- var prevInteractions = interactionsRef.current; // Traced interactions should stack/accumulate.
- // To do that, clone the current interactions.
- // The previous set will be restored upon completion.
-
- var interactions = new Set(prevInteractions);
- interactions.add(interaction);
- interactionsRef.current = interactions;
- var subscriber = subscriberRef.current;
- var returnValue;
-
- try {
- if (subscriber !== null) {
- subscriber.onInteractionTraced(interaction);
- }
- } finally {
- try {
- if (subscriber !== null) {
- subscriber.onWorkStarted(interactions, threadID);
- }
- } finally {
- try {
- returnValue = callback();
- } finally {
- interactionsRef.current = prevInteractions;
-
- try {
- if (subscriber !== null) {
- subscriber.onWorkStopped(interactions, threadID);
- }
- } finally {
- interaction.__count--; // If no async work was scheduled for this interaction,
- // Notify subscribers that it's completed.
-
- if (subscriber !== null && interaction.__count === 0) {
- subscriber.onInteractionScheduledWorkCompleted(interaction);
- }
- }
- }
- }
- }
-
- return returnValue;
- }
- function unstable_wrap(callback) {
- var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
-
- var wrappedInteractions = interactionsRef.current;
- var subscriber = subscriberRef.current;
-
- if (subscriber !== null) {
- subscriber.onWorkScheduled(wrappedInteractions, threadID);
- } // Update the pending async work count for the current interactions.
- // Update after calling subscribers in case of error.
-
-
- wrappedInteractions.forEach(function (interaction) {
- interaction.__count++;
- });
- var hasRun = false;
-
- function wrapped() {
- var prevInteractions = interactionsRef.current;
- interactionsRef.current = wrappedInteractions;
- subscriber = subscriberRef.current;
-
- try {
- var returnValue;
-
- try {
- if (subscriber !== null) {
- subscriber.onWorkStarted(wrappedInteractions, threadID);
- }
- } finally {
- try {
- returnValue = callback.apply(undefined, arguments);
- } finally {
- interactionsRef.current = prevInteractions;
-
- if (subscriber !== null) {
- subscriber.onWorkStopped(wrappedInteractions, threadID);
- }
- }
- }
-
- return returnValue;
- } finally {
- if (!hasRun) {
- // We only expect a wrapped function to be executed once,
- // But in the event that it's executed more than once–
- // Only decrement the outstanding interaction counts once.
- hasRun = true; // Update pending async counts for all wrapped interactions.
- // If this was the last scheduled async work for any of them,
- // Mark them as completed.
-
- wrappedInteractions.forEach(function (interaction) {
- interaction.__count--;
-
- if (subscriber !== null && interaction.__count === 0) {
- subscriber.onInteractionScheduledWorkCompleted(interaction);
- }
- });
- }
- }
- }
-
- wrapped.cancel = function cancel() {
- subscriber = subscriberRef.current;
-
- try {
- if (subscriber !== null) {
- subscriber.onWorkCanceled(wrappedInteractions, threadID);
- }
- } finally {
- // Update pending async counts for all wrapped interactions.
- // If this was the last scheduled async work for any of them,
- // Mark them as completed.
- wrappedInteractions.forEach(function (interaction) {
- interaction.__count--;
-
- if (subscriber && interaction.__count === 0) {
- subscriber.onInteractionScheduledWorkCompleted(interaction);
- }
- });
- }
- };
-
- return wrapped;
- }
-
- var subscribers = null;
-
- {
- subscribers = new Set();
- }
-
- function unstable_subscribe(subscriber) {
- {
- subscribers.add(subscriber);
-
- if (subscribers.size === 1) {
- subscriberRef.current = {
- onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
- onInteractionTraced: onInteractionTraced,
- onWorkCanceled: onWorkCanceled,
- onWorkScheduled: onWorkScheduled,
- onWorkStarted: onWorkStarted,
- onWorkStopped: onWorkStopped
- };
- }
- }
- }
- function unstable_unsubscribe(subscriber) {
- {
- subscribers.delete(subscriber);
-
- if (subscribers.size === 0) {
- subscriberRef.current = null;
- }
- }
- }
-
- function onInteractionTraced(interaction) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onInteractionTraced(interaction);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
- function onInteractionScheduledWorkCompleted(interaction) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onInteractionScheduledWorkCompleted(interaction);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
- function onWorkScheduled(interactions, threadID) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onWorkScheduled(interactions, threadID);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
- function onWorkStarted(interactions, threadID) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onWorkStarted(interactions, threadID);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
- function onWorkStopped(interactions, threadID) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onWorkStopped(interactions, threadID);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
- function onWorkCanceled(interactions, threadID) {
- var didCatchError = false;
- var caughtError = null;
- subscribers.forEach(function (subscriber) {
- try {
- subscriber.onWorkCanceled(interactions, threadID);
- } catch (error) {
- if (!didCatchError) {
- didCatchError = true;
- caughtError = error;
- }
- }
- });
-
- if (didCatchError) {
- throw caughtError;
- }
- }
-
-
-
- var SchedulerTracing = /*#__PURE__*/Object.freeze({
- __proto__: null,
- get __interactionsRef () { return interactionsRef; },
- get __subscriberRef () { return subscriberRef; },
- unstable_clear: unstable_clear,
- unstable_getCurrent: unstable_getCurrent,
- unstable_getThreadID: unstable_getThreadID,
- unstable_trace: unstable_trace,
- unstable_wrap: unstable_wrap,
- unstable_subscribe: unstable_subscribe,
- unstable_unsubscribe: unstable_unsubscribe
- });
-
- var ReactSharedInternals$1 = {
- ReactCurrentDispatcher: ReactCurrentDispatcher,
- ReactCurrentOwner: ReactCurrentOwner,
- IsSomeRendererActing: IsSomeRendererActing,
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
- assign: assign,
- // Re-export the schedule API(s) for UMD bundles.
- // This avoids introducing a dependency on a new UMD global in a minor update,
- // Since that would be a breaking change (e.g. for all existing CodeSandboxes).
- // This re-export is only required for UMD bundles;
- // CJS bundles use the shared NPM package.
- Scheduler: Scheduler,
- SchedulerTracing: SchedulerTracing
- };
-
- {
- ReactSharedInternals$1.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
- }
-
- {
-
- try {
- var frozenObject = Object.freeze({});
- /* eslint-disable no-new */
-
- new Map([[frozenObject, null]]);
- new Set([frozenObject]);
- /* eslint-enable no-new */
- } catch (e) {
- }
- }
-
- var createElement$1 = createElementWithValidation ;
- var cloneElement$1 = cloneElementWithValidation ;
- var createFactory = createFactoryWithValidation ;
- var Children = {
- map: mapChildren,
- forEach: forEachChildren,
- count: countChildren,
- toArray: toArray,
- only: onlyChild
- };
-
- exports.Children = Children;
- exports.Component = Component;
- exports.PureComponent = PureComponent;
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals$1;
- exports.cloneElement = cloneElement$1;
- exports.createContext = createContext;
- exports.createElement = createElement$1;
- exports.createFactory = createFactory;
- exports.createRef = createRef;
- exports.forwardRef = forwardRef;
- exports.isValidElement = isValidElement;
- exports.lazy = lazy;
- exports.memo = memo;
- exports.useCallback = useCallback;
- exports.useContext = useContext;
- exports.useDebugValue = useDebugValue;
- exports.useEffect = useEffect;
- exports.useImperativeHandle = useImperativeHandle;
- exports.useLayoutEffect = useLayoutEffect;
- exports.useMemo = useMemo;
- exports.useReducer = useReducer;
- exports.useRef = useRef;
- exports.useState = useState;
- exports.version = ReactVersion;
-
-})));
diff --git a/libraries/excalidraw/umd/react.production.min.js b/libraries/excalidraw/umd/react.production.min.js
deleted file mode 100644
index 95f2ce7afb..0000000000
--- a/libraries/excalidraw/umd/react.production.min.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/** @license React v17.0.2
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-(function(){'use strict';(function(c,x){"object"===typeof exports&&"undefined"!==typeof module?x(exports):"function"===typeof define&&define.amd?define(["exports"],x):(c=c||self,x(c.React={}))})(this,function(c){function x(a){if(null===a||"object"!==typeof a)return null;a=Y&&a[Y]||a["@@iterator"];return"function"===typeof a?a:null}function y(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=1;e<arguments.length;e++)b+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+
-a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(a,b,e){this.props=a;this.context=b;this.refs=Z;this.updater=e||aa}function ba(){}function K(a,b,e){this.props=a;this.context=b;this.refs=Z;this.updater=e||aa}function ca(a,b,e){var l,f={},c=null,da=null;if(null!=b)for(l in void 0!==b.ref&&(da=b.ref),void 0!==b.key&&(c=""+b.key),b)ea.call(b,l)&&!fa.hasOwnProperty(l)&&(f[l]=b[l]);var k=arguments.length-2;if(1===
-k)f.children=e;else if(1<k){for(var h=Array(k),d=0;d<k;d++)h[d]=arguments[d+2];f.children=h}if(a&&a.defaultProps)for(l in k=a.defaultProps,k)void 0===f[l]&&(f[l]=k[l]);return{$$typeof:w,type:a,key:c,ref:da,props:f,_owner:L.current}}function va(a,b){return{$$typeof:w,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function M(a){return"object"===typeof a&&null!==a&&a.$$typeof===w}function wa(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function N(a,b){return"object"===
-typeof a&&null!==a&&null!=a.key?wa(""+a.key):b.toString(36)}function C(a,b,e,l,f){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var d=!1;if(null===a)d=!0;else switch(c){case "string":case "number":d=!0;break;case "object":switch(a.$$typeof){case w:case ha:d=!0}}if(d)return d=a,f=f(d),a=""===l?"."+N(d,0):l,Array.isArray(f)?(e="",null!=a&&(e=a.replace(ia,"$&/")+"/"),C(f,b,e,"",function(a){return a})):null!=f&&(M(f)&&(f=va(f,e+(!f.key||d&&d.key===f.key?"":(""+f.key).replace(ia,"$&/")+"/")+
-a)),b.push(f)),1;d=0;l=""===l?".":l+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var h=l+N(c,k);d+=C(c,b,e,h,f)}else if(h=x(a),"function"===typeof h)for(a=h.call(a),k=0;!(c=a.next()).done;)c=c.value,h=l+N(c,k++),d+=C(c,b,e,h,f);else if("object"===c)throw b=""+a,Error(y(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return d}function D(a,b,e){if(null==a)return a;var l=[],c=0;C(a,l,"","",function(a){return b.call(e,a,c++)});return l}function xa(a){if(-1===
-a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function n(){var a=ja.current;if(null===a)throw Error(y(321));return a}function O(a,b){var e=a.length;a.push(b);a:for(;;){var c=e-1>>>1,f=a[c];if(void 0!==f&&0<E(f,b))a[c]=b,a[e]=f,e=c;else break a}}function p(a){a=a[0];return void 0===a?null:a}function F(a){var b=
-a[0];if(void 0!==b){var e=a.pop();if(e!==b){a[0]=e;a:for(var c=0,f=a.length;c<f;){var d=2*(c+1)-1,g=a[d],k=d+1,h=a[k];if(void 0!==g&&0>E(g,e))void 0!==h&&0>E(h,g)?(a[c]=h,a[k]=e,c=k):(a[c]=g,a[d]=e,c=d);else if(void 0!==h&&0>E(h,e))a[c]=h,a[k]=e,c=k;else break a}}return b}return null}function E(a,b){var e=a.sortIndex-b.sortIndex;return 0!==e?e:a.id-b.id}function P(a){for(var b=p(r);null!==b;){if(null===b.callback)F(r);else if(b.startTime<=a)F(r),b.sortIndex=b.expirationTime,O(q,b);else break;b=p(r)}}
-function Q(a){z=!1;P(a);if(!u)if(null!==p(q))u=!0,A(R);else{var b=p(r);null!==b&&G(Q,b.startTime-a)}}function R(a,b){u=!1;z&&(z=!1,S());H=!0;var e=g;try{P(b);for(m=p(q);null!==m&&(!(m.expirationTime>b)||a&&!T());){var c=m.callback;if("function"===typeof c){m.callback=null;g=m.priorityLevel;var f=c(m.expirationTime<=b);b=t();"function"===typeof f?m.callback=f:m===p(q)&&F(q);P(b)}else F(q);m=p(q)}if(null!==m)var d=!0;else{var n=p(r);null!==n&&G(Q,n.startTime-b);d=!1}return d}finally{m=null,g=e,H=!1}}
-var w=60103,ha=60106;c.Fragment=60107;c.StrictMode=60108;c.Profiler=60114;var ka=60109,la=60110,ma=60112;c.Suspense=60113;var na=60115,oa=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;w=d("react.element");ha=d("react.portal");c.Fragment=d("react.fragment");c.StrictMode=d("react.strict_mode");c.Profiler=d("react.profiler");ka=d("react.provider");la=d("react.context");ma=d("react.forward_ref");c.Suspense=d("react.suspense");na=d("react.memo");oa=d("react.lazy")}var Y="function"===
-typeof Symbol&&Symbol.iterator,ya=Object.prototype.hasOwnProperty,U=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var e=Object(a),c=1;c<arguments.length;c++){var d=arguments[c];if(null!=d){var g=void 0;d=Object(d);for(g in d)ya.call(d,g)&&(e[g]=d[g])}}return e},aa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},Z={};v.prototype.isReactComponent=
-{};v.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(y(85));this.updater.enqueueSetState(this,a,b,"setState")};v.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ba.prototype=v.prototype;d=K.prototype=new ba;d.constructor=K;U(d,v.prototype);d.isPureReactComponent=!0;var L={current:null},ea=Object.prototype.hasOwnProperty,fa={key:!0,ref:!0,__self:!0,__source:!0},ia=/\/+/g,ja={current:null},V;if("object"===typeof performance&&
-"function"===typeof performance.now){var za=performance;var t=function(){return za.now()}}else{var pa=Date,Aa=pa.now();t=function(){return pa.now()-Aa}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var B=null,qa=null,ra=function(){if(null!==B)try{var a=t();B(!0,a);B=null}catch(b){throw setTimeout(ra,0),b;}};var A=function(a){null!==B?setTimeout(A,0,a):(B=a,setTimeout(ra,0))};var G=function(a,b){qa=setTimeout(a,b)};var S=function(){clearTimeout(qa)};var T=function(){return!1};
-d=V=function(){}}else{var Ba=window.setTimeout,Ca=window.clearTimeout;"undefined"!==typeof console&&(d=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));
-var I=!1,J=null,W=-1,sa=5,ta=0;T=function(){return t()>=ta};d=function(){};V=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):sa=0<a?Math.floor(1E3/a):5};var ua=new MessageChannel,X=ua.port2;ua.port1.onmessage=function(){if(null!==J){var a=t();ta=a+sa;try{J(!0,a)?X.postMessage(null):(I=!1,J=null)}catch(b){throw X.postMessage(null),b;}}else I=!1};A=function(a){J=a;I||(I=!0,X.postMessage(null))};G=
-function(a,b){W=Ba(function(){a(t())},b)};S=function(){Ca(W);W=-1}}var q=[],r=[],Da=1,m=null,g=3,H=!1,u=!1,z=!1,Ea=0;d={ReactCurrentDispatcher:ja,ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:{transition:0},assign:U,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=
-3}var c=g;g=a;try{return b()}finally{g=c}},unstable_next:function(a){switch(g){case 1:case 2:case 3:var b=3;break;default:b=g}var c=g;g=b;try{return a()}finally{g=c}},unstable_scheduleCallback:function(a,b,c){var d=t();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:Da++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=
-c,O(r,a),null===p(q)&&a===p(r)&&(z?S():z=!0,G(Q,c-d))):(a.sortIndex=e,O(q,a),u||H||(u=!0,A(R)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=g;return function(){var c=g;g=b;try{return a.apply(this,arguments)}finally{g=c}}},unstable_getCurrentPriorityLevel:function(){return g},get unstable_shouldYield(){return T},unstable_requestPaint:d,unstable_continueExecution:function(){u||H||(u=!0,A(R))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return p(q)},
-get unstable_now(){return t},get unstable_forceFrameRate(){return V},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Ea},unstable_trace:function(a,b,c){return c()},unstable_wrap:function(a){return a},unstable_subscribe:function(a){},unstable_unsubscribe:function(a){}}};c.Children={map:D,forEach:function(a,b,c){D(a,function(){b.apply(this,
-arguments)},c)},count:function(a){var b=0;D(a,function(){b++});return b},toArray:function(a){return D(a,function(a){return a})||[]},only:function(a){if(!M(a))throw Error(y(143));return a}};c.Component=v;c.PureComponent=K;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(y(267,a));var d=U({},a.props),e=a.key,g=a.ref,n=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,n=L.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var k=
-a.type.defaultProps;for(h in b)ea.call(b,h)&&!fa.hasOwnProperty(h)&&(d[h]=void 0===b[h]&&void 0!==k?k[h]:b[h])}var h=arguments.length-2;if(1===h)d.children=c;else if(1<h){k=Array(h);for(var m=0;m<h;m++)k[m]=arguments[m+2];d.children=k}return{$$typeof:w,type:a.type,key:e,ref:g,props:d,_owner:n}};c.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:la,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ka,_context:a};return a.Consumer=
-a};c.createElement=ca;c.createFactory=function(a){var b=ca.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:ma,render:a}};c.isValidElement=M;c.lazy=function(a){return{$$typeof:oa,_payload:{_status:-1,_result:a},_init:xa}};c.memo=function(a,b){return{$$typeof:na,type:a,compare:void 0===b?null:b}};c.useCallback=function(a,b){return n().useCallback(a,b)};c.useContext=function(a,b){return n().useContext(a,b)};c.useDebugValue=function(a,
-b){};c.useEffect=function(a,b){return n().useEffect(a,b)};c.useImperativeHandle=function(a,b,c){return n().useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return n().useLayoutEffect(a,b)};c.useMemo=function(a,b){return n().useMemo(a,b)};c.useReducer=function(a,b,c){return n().useReducer(a,b,c)};c.useRef=function(a){return n().useRef(a)};c.useState=function(a){return n().useState(a)};c.version="17.0.2"});
-})();
diff --git a/libraries/excalidraw/utils/excalidraw-utils.min.js b/libraries/excalidraw/utils/excalidraw-utils.min.js
deleted file mode 100644
index 3dc456dd7b..0000000000
--- a/libraries/excalidraw/utils/excalidraw-utils.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see excalidraw-utils.min.js.LICENSE.txt */
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ExcalidrawUtils=t():e.ExcalidrawUtils=t()}(self,(function(){return(()=>{var e,t,a={982:(e,t,a)=>{var r=a(487),n=a(8847);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},566:(e,t,a)=>{var r=a(487),n=a(6121);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7731:(e,t,a)=>{var r=a(487),n=a(5712);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8055:(e,t,a)=>{var r=a(487),n=a(3648);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},3211:(e,t,a)=>{var r=a(487),n=a(2510);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},5574:(e,t,a)=>{var r=a(487),n=a(7972);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7539:(e,t,a)=>{var r=a(487),n=a(3058);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},4518:(e,t,a)=>{var r=a(487),n=a(190);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},3040:(e,t,a)=>{var r=a(487),n=a(6718);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8623:(e,t,a)=>{var r=a(487),n=a(3623);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},4193:(e,t,a)=>{var r=a(487),n=a(103);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},341:(e,t,a)=>{var r=a(487),n=a(7061);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},9705:(e,t,a)=>{var r=a(487),n=a(1498);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7143:(e,t,a)=>{var r=a(487),n=a(666);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7428:(e,t,a)=>{var r=a(487),n=a(849);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8465:(e,t,a)=>{var r=a(487),n=a(6915);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7749:(e,t,a)=>{var r=a(487),n=a(3568);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},1234:(e,t,a)=>{var r=a(487),n=a(4783);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8680:(e,t,a)=>{var r=a(487),n=a(7030);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},205:(e,t,a)=>{var r=a(487),n=a(3994);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8416:(e,t,a)=>{var r=a(487),n=a(700);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},2816:(e,t,a)=>{var r=a(487),n=a(287);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},803:(e,t,a)=>{var r=a(487),n=a(1069);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},9555:(e,t,a)=>{var r=a(487),n=a(8392);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},5669:(e,t,a)=>{var r=a(487),n=a(5567);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7277:(e,t,a)=>{var r=a(487),n=a(7003);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},1575:(e,t,a)=>{var r=a(487),n=a(5657);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},7287:(e,t,a)=>{var r=a(487),n=a(7392);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},8518:(e,t,a)=>{var r=a(487),n=a(6065);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},5849:(e,t,a)=>{var r=a(487),n=a(83);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},9478:(e,t,a)=>{var r=a(487),n=a(1554);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},5892:(e,t,a)=>{var r=a(487),n=a(899);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},2680:(e,t,a)=>{var r=a(487),n=a(1970);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},3142:(e,t,a)=>{var r=a(487),n=a(961);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},2189:(e,t,a)=>{var r=a(487),n=a(3245);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},9482:(e,t,a)=>{var r=a(487),n=a(9277);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.id,n,""]]);r(n,{insert:"head",singleton:!1}),e.exports=n.locals||{}},487:(e,t,a)=>{"use strict";var r,n=function(){var e={};return function(t){if(void 0===e[t]){var a=document.querySelector(t);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[t]=a}return e[t]}}(),i=[];function o(e){for(var t=-1,a=0;a<i.length;a++)if(i[a].identifier===e){t=a;break}return t}function l(e,t){for(var a={},r=[],n=0;n<e.length;n++){var l=e[n],s=t.base?l[0]+t.base:l[0],c=a[s]||0,d="".concat(s," ").concat(c);a[s]=c+1;var u=o(d),p={css:l[1],media:l[2],sourceMap:l[3]};-1!==u?(i[u].references++,i[u].updater(p)):i.push({identifier:d,updater:g(p,t),references:1}),r.push(d)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=a.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=n(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function u(e,t,a,r){var n=a?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,n);else{var i=document.createTextNode(n),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function p(e,t,a){var r=a.css,n=a.media,i=a.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var a,r,n;if(t.singleton){var i=m++;a=h||(h=s(t)),r=u.bind(null,a,i,!1),n=u.bind(null,a,i,!0)}else a=s(t),r=p.bind(null,a,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var a=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<a.length;r++){var n=o(a[r]);i[n].references--}for(var s=l(e,t),c=0;c<a.length;c++){var d=o(a[c]);0===i[d].references&&(i[d].updater(),i.splice(d,1))}a=s}}}},788:(e,t,a)=>{var r={"./ar-SA.json":[7822,510],"./bg-BG.json":[1203,510],"./bn-BD.json":[8525,510],"./ca-ES.json":[510,510],"./cs-CZ.json":[7605,510],"./da-DK.json":[2392,510],"./de-DE.json":[2853,510],"./el-GR.json":[9876,510],"./en.json":[1463],"./es-ES.json":[2264,510],"./eu-ES.json":[5658,510],"./fa-IR.json":[3747,510],"./fi-FI.json":[9490,510],"./fr-FR.json":[7830,510],"./he-IL.json":[1994,510],"./hi-IN.json":[4646,510],"./hu-HU.json":[6373,510],"./id-ID.json":[3247,510],"./it-IT.json":[3257,510],"./ja-JP.json":[198,510],"./kab-KAB.json":[228,510],"./kk-KZ.json":[8972,510],"./ko-KR.json":[7596,510],"./lt-LT.json":[3755,510],"./lv-LV.json":[2327,510],"./my-MM.json":[7704,510],"./nb-NO.json":[1167,510],"./nl-NL.json":[290,510],"./nn-NO.json":[4481,510],"./oc-FR.json":[2284,510],"./pa-IN.json":[6773,510],"./percentages.json":[4451],"./pl-PL.json":[3661,510],"./pt-BR.json":[8881,510],"./pt-PT.json":[5622,510],"./ro-RO.json":[2013,510],"./ru-RU.json":[2253,510],"./si-LK.json":[5497,510],"./sk-SK.json":[4570,510],"./sv-SE.json":[6006,510],"./ta-IN.json":[3952,510],"./tr-TR.json":[7315,510],"./uk-UA.json":[334,510],"./zh-CN.json":[1037,510],"./zh-HK.json":[5334,510],"./zh-TW.json":[931,510]};function n(e){if(!a.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],n=t[0];return Promise.all(t.slice(1).map(a.e)).then((()=>a.t(n,19)))}n.keys=()=>Object.keys(r),n.id=788,e.exports=n},8847:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.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;margin-inline-end:.3em;transform:scaleY(0.9)}",""]);const l=o},6121:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .Avatar{width:2.5rem;height:2.5rem;border-radius:1.25rem;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;font-size:.8rem;font-weight:500}",""]);const l=o},5712:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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}",""]);const l=o},3648:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}.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:transparent;border-radius:4px;color:#1c7ed6}.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}",""]);const l=o},2510:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#40c057;color:#fff;font-size:.7em;font-family:var(--ui-font)}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}",""]);const l=o},7972:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i),l=a(7157),s=a.n(l),c=new URL(a(9669),a.b),d=o()(n()),u=s()(c);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:transparent transparent var(--popup-bg-color);position:absolute;top:-10px}:root[dir=ltr] .excalidraw .color-picker-triangle{left:12px}:root[dir=rtl] .excalidraw .color-picker-triangle{right:12px}.excalidraw .color-picker-triangle-shadow{border-color:transparent transparent rgba(0,0,0,.1);top:-11px}.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;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("+u+') left center}.excalidraw .color-picker-hash{background:var(--input-border-color);height:1.875rem;width:1.875rem;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:4px 0 0 4px}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 4px 4px 0}.excalidraw .color-input-container:focus-within .color-picker-hash{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-input-container:focus-within .color-picker-hash::before,.excalidraw .color-input-container:focus-within .color-picker-hash::after{content:"";width:1px;height:100%;position:absolute;top:0}.excalidraw .color-input-container:focus-within .color-picker-hash::before{background:var(--input-border-color)}:root[dir=ltr] .excalidraw .color-input-container:focus-within .color-picker-hash::before{right:-1px}:root[dir=rtl] .excalidraw .color-input-container:focus-within .color-picker-hash::before{left:-1px}.excalidraw .color-input-container:focus-within .color-picker-hash::after{background:var(--input-bg-color)}:root[dir=ltr] .excalidraw .color-input-container:focus-within .color-picker-hash::after{right:-2px}:root[dir=rtl] .excalidraw .color-input-container:focus-within .color-picker-hash::after{left:-2px}.excalidraw .color-input-container{display:flex}.excalidraw .color-picker-input{width:11ch;margin:0;font-size:1rem;background-color:var(--input-bg-color);color:var(--text-primary-color);border:0;outline:none;height:1.75em;box-shadow:var(--input-border-color) 0 0 0 1px inset;float:left;padding:1px;padding-inline-start:.5em;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 4px 4px 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:4px 0 0 4px}.excalidraw .color-picker-label-swatch{height:1.875rem;width:1.875rem;margin-inline-end:.25rem;border:1px solid #dee2e6;position:relative;overflow:hidden;background-color:transparent !important;filter:var(--theme-filter)}.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}',""]);const p=d},3058:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .confirm-dialog-buttons{display:flex;padding:.2rem 0;justify-content:flex-end}.excalidraw .confirm-dialog .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .confirm-dialog .ToolIcon_type_button{margin-left:.8rem;padding:0 .5rem}.excalidraw .confirm-dialog__content{font-size:1rem}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button{background-color:#fa5252}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button:hover{background-color:#e03131}.excalidraw .confirm-dialog--confirm.ToolIcon_type_button .ToolIcon__icon{color:#fff}",""]);const l=o},190:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style: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-option{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:transparent;border:none;white-space:nowrap;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-option.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-option.dangerous .context-menu-option__label{color:#f03e3e}.excalidraw .context-menu-option .context-menu-option__label{justify-self:start;margin-inline-end:20px}.excalidraw .context-menu-option .context-menu-option__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-option:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-option:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-option:hover.dangerous .context-menu-option__label{color:var(--popup-bg-color)}.excalidraw .context-menu-option:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-option{display:block}.excalidraw--mobile.excalidraw .context-menu-option .context-menu-option__label{margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-option .context-menu-option__shortcut{display:none}.excalidraw .context-menu-option-separator{border:none;border-top:1px solid #adb5bd}',""]);const l=o},6718:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .Dialog{user-select:text;cursor:auto}.excalidraw .Dialog__title{display:grid;align-items:center;margin-top:0;grid-template-columns:1fr calc(var(--space-factor)*7);grid-gap:var(--metric);padding:calc(var(--space-factor)*2);text-align:center;font-variant:small-caps;font-size:1.2em}.excalidraw .Dialog__titleContent{flex:1}.excalidraw .Dialog .Modal__close{color:var(--icon-fill-color);margin:0}.excalidraw .Dialog__content{padding:0 16px 16px}.excalidraw--mobile.excalidraw .Dialog{--metric: calc(var(--space-factor) * 4);--inset-left: max(var(--metric), var(--sal));--inset-right: max(var(--metric), var(--sar))}.excalidraw--mobile.excalidraw .Dialog__title{grid-template-columns:calc(var(--space-factor)*7) 1fr calc(var(--space-factor)*7);position:sticky;top:0;padding:calc(var(--space-factor)*2);background:var(--island-bg-color);font-size:1.25em;box-sizing:border-box;border-bottom:1px solid var(--button-gray-2);z-index:1}.excalidraw--mobile.excalidraw .Dialog__titleContent{text-align:center}.excalidraw--mobile.excalidraw .Dialog .Island{width:100vw;height:100%;box-sizing:border-box;overflow-y:auto;padding-left:max(calc(var(--padding) * var(--space-factor)), var(--sal));padding-right:max(calc(var(--padding) * var(--space-factor)), var(--sar));padding-bottom:max(calc(var(--padding) * var(--space-factor)), var(--sab))}.excalidraw--mobile.excalidraw .Dialog .Modal__close{order:-1}",""]);const l=o},3623:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i),l=a(7157),s=a.n(l),c=new URL(a(9669),a.b),d=o()(n()),u=s()(c);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+u+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3)}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{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: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{width:5rem;height:5rem;margin:0 .2em;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}",""]);const p=d},103:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:all}.excalidraw .FixedSideContainer_side_top{left:var(--space-factor);top:var(--space-factor);right:var(--space-factor);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]);const l=o},7061:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .HelpDialog h3{border-bottom:1px solid var(--button-gray-2);padding-bottom:4px}.excalidraw .HelpDialog--island{border:1px solid var(--button-gray-2);margin-bottom:16px}.excalidraw .HelpDialog--island-title{margin:0;padding:4px;background-color:var(--button-gray-1);text-align:center}.excalidraw .HelpDialog--shortcut{border-top:1px solid var(--button-gray-2)}.excalidraw .HelpDialog--key{word-break:keep-all;border:1px solid var(--button-gray-2);padding:2px 8px;margin:auto 4px;background-color:var(--button-gray-1);border-radius:2px;font-size:.8em;min-height:26px;box-sizing:border-box;display:flex;align-items:center;font-family:inherit}.excalidraw .HelpDialog--header{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:32px;padding-bottom:16px}.excalidraw .HelpDialog--btn{border:1px solid var(--link-color);padding:8px 32px;border-radius:4px}.excalidraw .HelpDialog--btn:hover{text-decoration:none}",""]);const l=o},1498:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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:6px;text-align:center;color:#868e96;font-size:.8rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2em}.excalidraw .HintViewer>span{padding:.2rem .4rem;background-color:var(--overlay-bg-color);border-radius:4px}",""]);const l=o},666:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg)}.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) 0 1px 4px;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:transparent;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;opacity:.6;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:transparent transparent rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:transparent transparent 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}',""]);const l=o},849:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .Island{--padding: 0;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}",""]);const l=o},6915:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .layer-ui__wrapper{z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex}.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:transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-left{transform:translate(-76px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-left{transform:translate(76px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{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-center{pointer-events:none}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-center>*{pointer-events:all}.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-left{margin-bottom:.2em}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto;margin-inline-end:1em}",""]);const l=o},3568:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .layer-ui__library{margin:auto;display:flex;align-items:center;justify-content:center}.excalidraw .layer-ui__library .layer-ui__library-header{display:flex;align-items:center;width:100%;margin:2px 0}.excalidraw .layer-ui__library .layer-ui__library-header button{margin:0 2px}.excalidraw .layer-ui__library .layer-ui__library-header a{margin-inline-start:auto;padding-inline-end:18px;white-space:nowrap}.excalidraw .layer-ui__library-message{padding:10px 20px;max-width:200px}.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}",""]);const l=o},4783:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .library-menu-items-container .library-actions{display:flex}.excalidraw .library-menu-items-container .library-actions button .library-actions-counter{position:absolute;right:2px;bottom:2px;border-radius:50%;width:1em;height:1em;padding:1px;font-size:.7rem;background:#fff}.excalidraw .library-menu-items-container .library-actions--remove{background-color:#f03e3e}.excalidraw .library-menu-items-container .library-actions--remove:hover{background-color:#e03131}.excalidraw .library-menu-items-container .library-actions--remove:active{background-color:#c92a2a}.excalidraw .library-menu-items-container .library-actions--remove svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--remove .library-actions-counter{color:#f03e3e}.excalidraw .library-menu-items-container .library-actions--export{background-color:#94d82d}.excalidraw .library-menu-items-container .library-actions--export:hover{background-color:#74b816}.excalidraw .library-menu-items-container .library-actions--export:active{background-color:#66a80f}.excalidraw .library-menu-items-container .library-actions--export svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--export .library-actions-counter{color:#94d82d}.excalidraw .library-menu-items-container .library-actions--publish{background-color:#15aabf}.excalidraw .library-menu-items-container .library-actions--publish:hover{background-color:#1098ad}.excalidraw .library-menu-items-container .library-actions--publish:active{background-color:#0b7285}.excalidraw .library-menu-items-container .library-actions--publish svg{color:#fff}.excalidraw .library-menu-items-container .library-actions--publish label{margin-left:-0.2em;margin-right:1.1em;color:#fff;font-size:.86em}.excalidraw .library-menu-items-container .library-actions--publish .library-actions-counter{color:#15aabf}.excalidraw .library-menu-items-container .library-actions--load{background-color:#228be6}.excalidraw .library-menu-items-container .library-actions--load:hover{background-color:#1c7ed6}.excalidraw .library-menu-items-container .library-actions--load:active{background-color:#1864ab}.excalidraw .library-menu-items-container .library-actions--load svg{color:#fff}.excalidraw .library-menu-items-container__items{max-height:50vh;overflow:auto;margin-top:.5rem}.excalidraw .library-menu-items-container .separator{font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}",""]);const l=o},7030:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .library-unit{align-items:center;border:1px solid var(--button-gray-2);display:flex;justify-content:center;position:relative;width:63px;height:63px}.excalidraw .library-unit--hover{box-shadow:inset 0px 0px 0px 2px #339af0;border-color:#339af0}.excalidraw .library-unit--selected{box-shadow:inset 0px 0px 0px 2px #1971c2;border-color:#1971c2}.excalidraw.theme--dark .library-unit{border-color:#303030}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{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;left:2.3rem;bottom:2.3rem}.excalidraw .library-unit__checkbox .Checkbox-box{width:13px;height:13px;border-radius:2px;margin:.5em .5em .2em .2em;background-color:#d0ebff}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{transform:scale(1);animation:library-unit__adder-animation 1s ease-in infinite}.excalidraw .library-unit__adder{position:absolute;left:40%;top:40%;width:2rem;height:2rem;margin-left:-10px;margin-top:-10px;pointer-events:none}.excalidraw .library-unit:hover .library-unit__adder{fill:#1c7ed6}.excalidraw .library-unit:active .library-unit__adder{animation:none;transform:scale(0.8);fill:#000}.excalidraw .library-unit__active{cursor:pointer}@keyframes library-unit__adder-animation{0%{transform:scale(0.85)}50%{transform:scale(1)}100%{transform:scale(0.85)}}",""]);const l=o},3994:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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__background{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(0,0,0,.7)}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;transform:translateY(10px);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:0 2px 10px rgba(0,0,0,.25);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}@keyframes Modal__content_fade-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.excalidraw .Modal__close{width:calc(var(--space-factor)*7);height:calc(var(--space-factor)*7);display:flex;align-items:center;justify-content:center}.excalidraw .Modal__close svg{height:calc(var(--space-factor)*5)}.excalidraw--mobile.excalidraw .Modal{padding:0}.excalidraw--mobile.excalidraw .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0}",""]);const l=o},700:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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:transparent}.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}",""]);const l=o},287:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .popover{position:absolute;z-index:10}",""]);const l=o},1069:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.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}",""]);const l=o},8392:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em;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}.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;padding:0 .8rem;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-note{padding:1em;font-style:italic;font-size:14px;display:block}",""]);const l=o},5567:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item__svg{width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2);margin:.3rem}.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:1.3rem}.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}",""]);const l=o},7003:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.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{animation:rotate 1.6s linear infinite;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@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}}",""]);const l=o},5657:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.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:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:min-content}",""]);const l=o},7392:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10}.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}",""]);const l=o},6065:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .TextInput{display:inline-block}",""]);const l=o},83:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .Toast{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__message{color:var(--popup-text-color);white-space:pre-wrap}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]);const l=o},1554:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw .ToolIcon{display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none}.excalidraw .ToolIcon--plain{background-color:transparent}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon{background-color:var(--button-gray-1)}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon:hover,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .ToolIcon_type_checkbox+.ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__icon{width:2.5rem;height:2.5rem;color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;height:1em;fill:var(--icon-fill-color);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 .excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit}.excalidraw .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 .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 .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 .excalidraw .ToolIcon_type_button:hover,.excalidraw .Modal .ToolIcon_type_button:hover,.excalidraw .ToolIcon_type_button:hover{background-color:var(--button-gray-2)}.excalidraw .excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{visibility:hidden}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon_type_radio:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_radio:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon:active,.excalidraw .ToolIcon_type_checkbox:not(.ToolIcon_toggle_opaque):checked+.ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_radio:focus-visible+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:focus-visible+.ToolIcon__icon{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_radio:active+.ToolIcon__icon,.excalidraw .ToolIcon_type_checkbox:active+.ToolIcon__icon{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_floating{background-color:transparent}.excalidraw .ToolIcon_type_floating:hover{background-color:transparent}.excalidraw .ToolIcon_type_floating:active{background-color:transparent}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2em}.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:.5em;color:var(--keybinding-color);font-family:var(--ui-font);user-select:none}@media(max-width: 425px){.excalidraw .Shape .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .Shape .ToolIcon__icon svg{height:.8em}}@media(max-width: 760px){.excalidraw .ToolIcon.ToolIcon_type_floating{display:inline-block;position:absolute;right:-8px;margin-left:0;border-radius:20px 0 0 20px;z-index:1;background-color:var(--button-gray-1)}.excalidraw .ToolIcon.ToolIcon_type_floating:hover{background-color:var(--button-gray-1)}.excalidraw .ToolIcon.ToolIcon_type_floating:active{background-color:var(--button-gray-2)}.excalidraw .ToolIcon.ToolIcon_type_floating .ToolIcon__icon{border-radius:inherit}.excalidraw .ToolIcon.ToolIcon_type_floating svg{position:static}.excalidraw .ToolIcon.ToolIcon__library{top:100px}.excalidraw .ToolIcon.ToolIcon__lock{margin-inline-end:0;top:60px}.excalidraw .ToolIcon.ToolIcon__penMode{margin-inline-end:0;top:140px}}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}",""]);const l=o},899:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,".excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox+.ToolIcon__icon:active{background:var(--color-primary-light)}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary);--icon-fill-color: #ffffff;--keybinding-color: #ffffff}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:checked+.ToolIcon__icon:active,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:checked+.ToolIcon__icon:active{background:var(--color-primary-darker)}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .App-toolbar-container .ToolIcon_type_floating:not(.is-mobile) .ToolIcon__icon{padding:1px;background-color:var(--island-bg-color);box-shadow:1px 3px 4px 0px rgba(0,0,0,.15);border-radius:50%;transition:box-shadow .5s ease,transform .5s ease}.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_radio:focus-within+.ToolIcon__icon,.excalidraw .App-toolbar-container .ToolIcon_type_floating .ToolIcon_type_checkbox:focus-within+.ToolIcon__icon{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .App-toolbar-container .ToolIcon__hidden{box-shadow:none !important;background-color:transparent !important;pointer-events:none !important}.excalidraw .App-toolbar-container .ToolIcon.ToolIcon__lock{margin-inline-end:var(--space-factor)}.excalidraw .App-toolbar-container .ToolIcon.ToolIcon__lock.ToolIcon_type_floating{margin-left:.1rem}.excalidraw .App-toolbar-container .ToolIcon__library{margin-inline-start:var(--space-factor)}.excalidraw .App-toolbar-container.zen-mode .ToolIcon_type_floating .ToolIcon__icon{box-shadow:none;transform:scale(0.9)}.excalidraw .App-toolbar-container.zen-mode .ToolIcon_type_floating .ToolIcon_type_checkbox:not(:checked):not(:hover):not(:active)+.ToolIcon__icon svg{fill:#adb5bd;color:#adb5bd}.excalidraw .App-toolbar{border-radius:var(--border-radius-lg);box-shadow:0 0 0 1px rgba(0,0,0,.01),1px 1px 5px rgba(0,0,0,.15)}.excalidraw .App-toolbar .ToolIcon:hover{--icon-fill-color: var( --color-primary-contrast-offset, var(--color-primary) );--keybinding-color: var( --color-primary-contrast-offset, var(--color-primary) )}.excalidraw .App-toolbar .ToolIcon:active{--icon-fill-color: #212529;--keybinding-color: #212529}.excalidraw .App-toolbar .ToolIcon .ToolIcon__icon{background:transparent;border-radius:var(--border-radius-lg)}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio+.ToolIcon__icon:active,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox+.ToolIcon__icon:active{background:var(--color-primary-light)}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary);--icon-fill-color: #ffffff;--keybinding-color: #ffffff}.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon:active,.excalidraw .App-toolbar .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon:active{background:var(--color-primary-darker)}.excalidraw .App-toolbar .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw.theme--dark .App-toolbar .ToolIcon:active{--icon-fill-color: #dee2e6;--keybinding-color: #dee2e6}",""]);const l=o},1970:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.excalidraw-tooltip{position:absolute;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}",""]);const l=o},961:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.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}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:all;margin:0 0 var(--space-factor) var(--space-factor)}.excalidraw .UserList_mobile{padding:0;justify-content:normal}.excalidraw .UserList_mobile>*{margin:0 var(--space-factor) var(--space-factor) 0}",""]);const l=o},3245:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,"",""]),o.locals={themeFilter:"invert(93%) hue-rotate(180deg)"};const l=o},9277:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5370),n=a.n(r),i=a(769),o=a.n(i)()(n());o.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg)}.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:transparent;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:transparent !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}",""]);const l=o},3868:(e,t)=>{var a;a=function(e){e.version="0.3.0";var t=function(){for(var e=0,t=new Array(256),a=0;256!=a;++a)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=a)?-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)?-306674912^e>>>1:e>>>1,t[a]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),a="undefined"!=typeof Buffer;function r(e){for(var a=-1,r=0,n=e.length-7;r<n;)a=(a=(a=(a=(a=(a=(a=(a=a>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])])>>>8^t[255&(a^e[r++])];for(;r<n+7;)a=a>>>8^t[255&(a^e[r++])];return-1^a}e.table=t,e.bstr=function(e){if(e.length>32768&&a)return r(new Buffer(e));for(var n=-1,i=e.length-1,o=0;o<i;)n=t[255&(n^e.charCodeAt(o++))]^n>>>8,n=t[255&(n^e.charCodeAt(o++))]^n>>>8;return o===i&&(n=n>>>8^t[255&(n^e.charCodeAt(o))]),-1^n},e.buf=function(e){if(e.length>1e4)return r(e);for(var a=-1,n=0,i=e.length-3;n<i;)a=(a=(a=(a=a>>>8^t[255&(a^e[n++])])>>>8^t[255&(a^e[n++])])>>>8^t[255&(a^e[n++])])>>>8^t[255&(a^e[n++])];for(;n<i+3;)a=a>>>8^t[255&(a^e[n++])];return-1^a},e.str=function(e){for(var a,r,n=-1,i=0,o=e.length;i<o;)(a=e.charCodeAt(i++))<128?n=n>>>8^t[255&(n^a)]:a<2048?n=(n=n>>>8^t[255&(n^(192|a>>6&31))])>>>8^t[255&(n^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),r=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[255&(n^(240|a>>8&7))])>>>8^t[255&(n^(128|a>>2&63))])>>>8^t[255&(n^(128|r>>6&15|3&a))])>>>8^t[255&(n^(128|63&r))]):n=(n=(n=n>>>8^t[255&(n^(224|a>>12&15))])>>>8^t[255&(n^(128|a>>6&63))])>>>8^t[255&(n^(128|63&a))];return-1^n}},"undefined"==typeof DO_NOT_EXPORT_CRC?a(t):a({})},8409:(e,t,a)=>{var r="Expected a function",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,g=function(){return u.Date.now()};function f(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]"==p.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=o.test(e);return a||l.test(e)?s(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,a){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return f(a)&&(n="leading"in a?!!a.leading:n,i="trailing"in a?!!a.trailing:i),function(e,t,a){var n,i,o,l,s,c,d=0,u=!1,p=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function y(t){var a=n,r=i;return n=i=void 0,d=t,l=e.apply(r,a)}function k(e){return d=e,s=setTimeout(x,t),u?y(e):l}function w(e){var a=e-c;return void 0===c||a>=t||a<0||p&&e-d>=o}function x(){var e=g();if(w(e))return S(e);s=setTimeout(x,function(e){var a=t-(e-c);return p?m(a,o-(e-d)):a}(e))}function S(e){return s=void 0,v&&n?y(e):(n=i=void 0,l)}function _(){var e=g(),a=w(e);if(n=arguments,i=this,c=e,a){if(void 0===s)return k(c);if(p)return s=setTimeout(x,t),y(c)}return void 0===s&&(s=setTimeout(x,t)),l}return t=b(t)||0,f(a)&&(u=!!a.leading,o=(p="maxWait"in a)?h(b(a.maxWait)||0,t):o,v="trailing"in a?!!a.trailing:v),_.cancel=function(){void 0!==s&&clearTimeout(s),d=0,n=c=i=s=void 0},_.flush=function(){return void 0===s?l:S(g())},_}(e,t,{leading:n,maxWait:t,trailing:i})}},6963:function(e,t,a){var r;e=a.nmd(e),function(){var n,i="Expected a function",o="__lodash_hash_undefined__",l="__lodash_placeholder__",s=32,c=128,d=1/0,u=9007199254740991,p=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],g="[object Arguments]",f="[object Array]",b="[object Boolean]",v="[object Date]",y="[object Error]",k="[object Function]",w="[object GeneratorFunction]",x="[object Map]",S="[object Number]",_="[object Object]",A="[object Promise]",E="[object RegExp]",C="[object Set]",T="[object String]",z="[object Symbol]",I="[object WeakMap]",L="[object ArrayBuffer]",j="[object DataView]",M="[object Float32Array]",B="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",O="[object Uint8Array]",F="[object Uint8ClampedArray]",R="[object Uint16Array]",H="[object Uint32Array]",G=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,q=RegExp(K.source),Z=RegExp(W.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(te.source),re=/^\s+/,ne=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\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",Ae="["+_e+"]",Ee="["+we+"]",Ce="\\d+",Te="["+xe+"]",ze="[^\\ud800-\\udfff"+_e+Ce+"\\u2700-\\u27bf"+xe+Se+"]",Ie="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Se+"]",Pe="(?:"+Te+"|"+ze+")",De="(?:"+Be+"|"+ze+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Oe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+Ee+"|"+Ie+")?",Re="[\\ufe0e\\ufe0f]?",He=Re+Fe+"(?:\\u200d(?:"+[Le,je,Me].join("|")+")"+Re+Fe+")*",Ge="(?:"+["[\\u2700-\\u27bf]",je,Me].join("|")+")"+He,Ve="(?:"+[Le+Ee+"?",Ee,je,Me,"[\\ud800-\\udfff]"].join("|")+")",Ue=RegExp("['’]","g"),Ke=RegExp(Ee,"g"),We=RegExp(Ie+"(?="+Ie+")|"+Ve+He,"g"),qe=RegExp([Be+"?"+Te+"+"+Ne+"(?="+[Ae,Be,"$"].join("|")+")",De+"+"+Oe+"(?="+[Ae,Be+Pe,"$"].join("|")+")",Be+"?"+Pe+"+"+Ne,Be+"+"+Oe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Ge].join("|"),"g"),Ze=RegExp("[\\u200d\\ud800-\\udfff"+we+"\\ufe0e\\ufe0f]"),Qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["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"],Je=-1,Xe={};Xe[M]=Xe[B]=Xe[P]=Xe[D]=Xe[N]=Xe[O]=Xe[F]=Xe[R]=Xe[H]=!0,Xe[g]=Xe[f]=Xe[L]=Xe[b]=Xe[j]=Xe[v]=Xe[y]=Xe[k]=Xe[x]=Xe[S]=Xe[_]=Xe[E]=Xe[C]=Xe[T]=Xe[I]=!1;var $e={};$e[g]=$e[f]=$e[L]=$e[j]=$e[b]=$e[v]=$e[M]=$e[B]=$e[P]=$e[D]=$e[N]=$e[x]=$e[S]=$e[_]=$e[E]=$e[C]=$e[T]=$e[z]=$e[O]=$e[F]=$e[R]=$e[H]=!0,$e[y]=$e[k]=$e[I]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,at=parseInt,rt="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,nt="object"==typeof self&&self&&self.Object===Object&&self,it=rt||nt||Function("return this")(),ot=t&&!t.nodeType&&t,lt=ot&&e&&!e.nodeType&&e,st=lt&&lt.exports===ot,ct=st&&rt.process,dt=function(){try{return lt&&lt.require&&lt.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ut=dt&&dt.isArrayBuffer,pt=dt&&dt.isDate,ht=dt&&dt.isMap,mt=dt&&dt.isRegExp,gt=dt&&dt.isSet,ft=dt&&dt.isTypedArray;function bt(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function vt(e,t,a,r){for(var n=-1,i=null==e?0:e.length;++n<i;){var o=e[n];t(r,o,a(o),e)}return r}function yt(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););return e}function kt(e,t){for(var a=null==e?0:e.length;a--&&!1!==t(e[a],a,e););return e}function wt(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(!t(e[a],a,e))return!1;return!0}function xt(e,t){for(var a=-1,r=null==e?0:e.length,n=0,i=[];++a<r;){var o=e[a];t(o,a,e)&&(i[n++]=o)}return i}function St(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function _t(e,t,a){for(var r=-1,n=null==e?0:e.length;++r<n;)if(a(t,e[r]))return!0;return!1}function At(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}function Et(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}function Ct(e,t,a,r){var n=-1,i=null==e?0:e.length;for(r&&i&&(a=e[++n]);++n<i;)a=t(a,e[n],n,e);return a}function Tt(e,t,a,r){var n=null==e?0:e.length;for(r&&n&&(a=e[--n]);n--;)a=t(a,e[n],n,e);return a}function zt(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}var It=Nt("length");function Lt(e,t,a){var r;return a(e,(function(e,a,n){if(t(e,a,n))return r=a,!1})),r}function jt(e,t,a,r){for(var n=e.length,i=a+(r?1:-1);r?i--:++i<n;)if(t(e[i],i,e))return i;return-1}function Mt(e,t,a){return t==t?function(e,t,a){for(var r=a-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t,a):jt(e,Pt,a)}function Bt(e,t,a,r){for(var n=a-1,i=e.length;++n<i;)if(r(e[n],t))return n;return-1}function Pt(e){return e!=e}function Dt(e,t){var a=null==e?0:e.length;return a?Rt(e,t)/a:p}function Nt(e){return function(t){return null==t?n:t[e]}}function Ot(e){return function(t){return null==e?n:e[t]}}function Ft(e,t,a,r,n){return n(e,(function(e,n,i){a=r?(r=!1,e):t(a,e,n,i)})),a}function Rt(e,t){for(var a,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==n&&(a=a===n?o:a+o)}return a}function Ht(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}function Gt(e){return e?e.slice(0,oa(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Ut(e,t){return At(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Wt(e,t){for(var a=-1,r=e.length;++a<r&&Mt(t,e[a],0)>-1;);return a}function qt(e,t){for(var a=e.length;a--&&Mt(t,e[a],0)>-1;);return a}function Zt(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&++r;return r}var Qt=Ot({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=Ot({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ze.test(e)}function $t(e){var t=-1,a=Array(e.size);return e.forEach((function(e,r){a[++t]=[r,e]})),a}function ea(e,t){return function(a){return e(t(a))}}function ta(e,t){for(var a=-1,r=e.length,n=0,i=[];++a<r;){var o=e[a];o!==t&&o!==l||(e[a]=l,i[n++]=a)}return i}function aa(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}function ra(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=[e,e]})),a}function na(e){return Xt(e)?function(e){for(var t=We.lastIndex=0;We.test(e);)++t;return t}(e):It(e)}function ia(e){return Xt(e)?function(e){return e.match(We)||[]}(e):function(e){return e.split("")}(e)}function oa(e){for(var t=e.length;t--&&ne.test(e.charAt(t)););return t}var la=Ot({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),sa=function e(t){var a,r=(t=null==t?it:sa.defaults(it.Object(),t,sa.pick(it,Ye))).Array,ne=t.Date,we=t.Error,xe=t.Function,Se=t.Math,_e=t.Object,Ae=t.RegExp,Ee=t.String,Ce=t.TypeError,Te=r.prototype,ze=xe.prototype,Ie=_e.prototype,Le=t["__core-js_shared__"],je=ze.toString,Me=Ie.hasOwnProperty,Be=0,Pe=(a=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",De=Ie.toString,Ne=je.call(_e),Oe=it._,Fe=Ae("^"+je.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=st?t.Buffer:n,He=t.Symbol,Ge=t.Uint8Array,Ve=Re?Re.allocUnsafe:n,We=ea(_e.getPrototypeOf,_e),Ze=_e.create,et=Ie.propertyIsEnumerable,rt=Te.splice,nt=He?He.isConcatSpreadable:n,ot=He?He.iterator:n,lt=He?He.toStringTag:n,ct=function(){try{var e=ci(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,It=ne&&ne.now!==it.Date.now&&ne.now,Ot=t.setTimeout!==it.setTimeout&&t.setTimeout,ca=Se.ceil,da=Se.floor,ua=_e.getOwnPropertySymbols,pa=Re?Re.isBuffer:n,ha=t.isFinite,ma=Te.join,ga=ea(_e.keys,_e),fa=Se.max,ba=Se.min,va=ne.now,ya=t.parseInt,ka=Se.random,wa=Te.reverse,xa=ci(t,"DataView"),Sa=ci(t,"Map"),_a=ci(t,"Promise"),Aa=ci(t,"Set"),Ea=ci(t,"WeakMap"),Ca=ci(_e,"create"),Ta=Ea&&new Ea,za={},Ia=Oi(xa),La=Oi(Sa),ja=Oi(_a),Ma=Oi(Aa),Ba=Oi(Ea),Pa=He?He.prototype:n,Da=Pa?Pa.valueOf:n,Na=Pa?Pa.toString:n;function Oa(e){if(al(e)&&!Ko(e)&&!(e instanceof Ga)){if(e instanceof Ha)return e;if(Me.call(e,"__wrapped__"))return Fi(e)}return new Ha(e)}var Fa=function(){function e(){}return function(t){if(!tl(t))return{};if(Ze)return Ze(t);e.prototype=t;var a=new e;return e.prototype=n,a}}();function Ra(){}function Ha(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Ga(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Va(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Ua(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Ka(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function Wa(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new Ka;++t<a;)this.add(e[t])}function qa(e){var t=this.__data__=new Ua(e);this.size=t.size}function Za(e,t){var a=Ko(e),r=!a&&Uo(e),n=!a&&!r&&Qo(e),i=!a&&!r&&!n&&dl(e),o=a||r||n||i,l=o?Ht(e.length,Ee):[],s=l.length;for(var c in e)!t&&!Me.call(e,c)||o&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fi(c,s))||l.push(c);return l}function Qa(e){var t=e.length;return t?e[Kr(0,t-1)]:n}function Ya(e,t){return Mi(Cn(e),ir(t,0,e.length))}function Ja(e){return Mi(Cn(e))}function Xa(e,t,a){(a!==n&&!Ho(e[t],a)||a===n&&!(t in e))&&rr(e,t,a)}function $a(e,t,a){var r=e[t];Me.call(e,t)&&Ho(r,a)&&(a!==n||t in e)||rr(e,t,a)}function er(e,t){for(var a=e.length;a--;)if(Ho(e[a][0],t))return a;return-1}function tr(e,t,a,r){return dr(e,(function(e,n,i){t(r,e,a(e),i)})),r}function ar(e,t){return e&&Tn(t,jl(t),e)}function rr(e,t,a){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function nr(e,t){for(var a=-1,i=t.length,o=r(i),l=null==e;++a<i;)o[a]=l?n:Cl(e,t[a]);return o}function ir(e,t,a){return e==e&&(a!==n&&(e=e<=a?e:a),t!==n&&(e=e>=t?e:t)),e}function or(e,t,a,r,i,o){var l,s=1&t,c=2&t,d=4&t;if(a&&(l=i?a(e,r,i,o):a(e)),l!==n)return l;if(!tl(e))return e;var u=Ko(e);if(u){if(l=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(e),!s)return Cn(e,l)}else{var p=pi(e),h=p==k||p==w;if(Qo(e))return wn(e,s);if(p==_||p==g||h&&!i){if(l=c||h?{}:mi(e),!s)return c?function(e,t){return Tn(e,ui(e),t)}(e,function(e,t){return e&&Tn(t,Ml(t),e)}(l,e)):function(e,t){return Tn(e,di(e),t)}(e,ar(l,e))}else{if(!$e[p])return i?e:{};l=function(e,t,a){var r,n=e.constructor;switch(t){case L:return xn(e);case b:case v:return new n(+e);case j:return function(e,t){var a=t?xn(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case M:case B:case P:case D:case N:case O:case F:case R:case H:return Sn(e,a);case x:return new n;case S:case T:return new n(e);case E:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new n;case z:return r=e,Da?_e(Da.call(r)):{}}}(e,p,s)}}o||(o=new qa);var m=o.get(e);if(m)return m;o.set(e,l),ll(e)?e.forEach((function(r){l.add(or(r,t,a,r,e,o))})):rl(e)&&e.forEach((function(r,n){l.set(n,or(r,t,a,n,e,o))}));var f=u?n:(d?c?ai:ti:c?Ml:jl)(e);return yt(f||e,(function(r,n){f&&(r=e[n=r]),$a(l,n,or(r,t,a,n,e,o))})),l}function lr(e,t,a){var r=a.length;if(null==e)return!r;for(e=_e(e);r--;){var i=a[r],o=t[i],l=e[i];if(l===n&&!(i in e)||!o(l))return!1}return!0}function sr(e,t,a){if("function"!=typeof e)throw new Ce(i);return zi((function(){e.apply(n,a)}),t)}function cr(e,t,a,r){var n=-1,i=St,o=!0,l=e.length,s=[],c=t.length;if(!l)return s;a&&(t=At(t,Vt(a))),r?(i=_t,o=!1):t.length>=200&&(i=Kt,o=!1,t=new Wa(t));e:for(;++n<l;){var d=e[n],u=null==a?d:a(d);if(d=r||0!==d?d:0,o&&u==u){for(var p=c;p--;)if(t[p]===u)continue e;s.push(d)}else i(t,u,r)||s.push(d)}return s}Oa.templateSettings={escape:Q,evaluate:Y,interpolate:J,variable:"",imports:{_:Oa}},Oa.prototype=Ra.prototype,Oa.prototype.constructor=Oa,Ha.prototype=Fa(Ra.prototype),Ha.prototype.constructor=Ha,Ga.prototype=Fa(Ra.prototype),Ga.prototype.constructor=Ga,Va.prototype.clear=function(){this.__data__=Ca?Ca(null):{},this.size=0},Va.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Va.prototype.get=function(e){var t=this.__data__;if(Ca){var a=t[e];return a===o?n:a}return Me.call(t,e)?t[e]:n},Va.prototype.has=function(e){var t=this.__data__;return Ca?t[e]!==n:Me.call(t,e)},Va.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Ca&&t===n?o:t,this},Ua.prototype.clear=function(){this.__data__=[],this.size=0},Ua.prototype.delete=function(e){var t=this.__data__,a=er(t,e);return!(a<0||(a==t.length-1?t.pop():rt.call(t,a,1),--this.size,0))},Ua.prototype.get=function(e){var t=this.__data__,a=er(t,e);return a<0?n:t[a][1]},Ua.prototype.has=function(e){return er(this.__data__,e)>-1},Ua.prototype.set=function(e,t){var a=this.__data__,r=er(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this},Ka.prototype.clear=function(){this.size=0,this.__data__={hash:new Va,map:new(Sa||Ua),string:new Va}},Ka.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Ka.prototype.get=function(e){return li(this,e).get(e)},Ka.prototype.has=function(e){return li(this,e).has(e)},Ka.prototype.set=function(e,t){var a=li(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this},Wa.prototype.add=Wa.prototype.push=function(e){return this.__data__.set(e,o),this},Wa.prototype.has=function(e){return this.__data__.has(e)},qa.prototype.clear=function(){this.__data__=new Ua,this.size=0},qa.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},qa.prototype.get=function(e){return this.__data__.get(e)},qa.prototype.has=function(e){return this.__data__.has(e)},qa.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Ua){var r=a.__data__;if(!Sa||r.length<199)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new Ka(r)}return a.set(e,t),this.size=a.size,this};var dr=Ln(vr),ur=Ln(yr,!0);function pr(e,t){var a=!0;return dr(e,(function(e,r,n){return a=!!t(e,r,n)})),a}function hr(e,t,a){for(var r=-1,i=e.length;++r<i;){var o=e[r],l=t(o);if(null!=l&&(s===n?l==l&&!cl(l):a(l,s)))var s=l,c=o}return c}function mr(e,t){var a=[];return dr(e,(function(e,r,n){t(e,r,n)&&a.push(e)})),a}function gr(e,t,a,r,n){var i=-1,o=e.length;for(a||(a=gi),n||(n=[]);++i<o;){var l=e[i];t>0&&a(l)?t>1?gr(l,t-1,a,r,n):Et(n,l):r||(n[n.length]=l)}return n}var fr=jn(),br=jn(!0);function vr(e,t){return e&&fr(e,t,jl)}function yr(e,t){return e&&br(e,t,jl)}function kr(e,t){return xt(t,(function(t){return Xo(e[t])}))}function wr(e,t){for(var a=0,r=(t=bn(t,e)).length;null!=e&&a<r;)e=e[Ni(t[a++])];return a&&a==r?e:n}function xr(e,t,a){var r=t(e);return Ko(e)?r:Et(r,a(e))}function Sr(e){return null==e?e===n?"[object Undefined]":"[object Null]":lt&&lt in _e(e)?function(e){var t=Me.call(e,lt),a=e[lt];try{e[lt]=n;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[lt]=a:delete e[lt]),i}(e):function(e){return De.call(e)}(e)}function _r(e,t){return e>t}function Ar(e,t){return null!=e&&Me.call(e,t)}function Er(e,t){return null!=e&&t in _e(e)}function Cr(e,t,a){for(var i=a?_t:St,o=e[0].length,l=e.length,s=l,c=r(l),d=1/0,u=[];s--;){var p=e[s];s&&t&&(p=At(p,Vt(t))),d=ba(p.length,d),c[s]=!a&&(t||o>=120&&p.length>=120)?new Wa(s&&p):n}p=e[0];var h=-1,m=c[0];e:for(;++h<o&&u.length<d;){var g=p[h],f=t?t(g):g;if(g=a||0!==g?g:0,!(m?Kt(m,f):i(u,f,a))){for(s=l;--s;){var b=c[s];if(!(b?Kt(b,f):i(e[s],f,a)))continue e}m&&m.push(f),u.push(g)}}return u}function Tr(e,t,a){var r=null==(e=Ai(e,t=bn(t,e)))?e:e[Ni(Yi(t))];return null==r?n:bt(r,e,a)}function zr(e){return al(e)&&Sr(e)==g}function Ir(e,t,a,r,i){return e===t||(null==e||null==t||!al(e)&&!al(t)?e!=e&&t!=t:function(e,t,a,r,i,o){var l=Ko(e),s=Ko(t),c=l?f:pi(e),d=s?f:pi(t),u=(c=c==g?_:c)==_,p=(d=d==g?_:d)==_,h=c==d;if(h&&Qo(e)){if(!Qo(t))return!1;l=!0,u=!1}if(h&&!u)return o||(o=new qa),l||dl(e)?$n(e,t,a,r,i,o):function(e,t,a,r,n,i,o){switch(a){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case b:case v:case S:return Ho(+e,+t);case y:return e.name==t.name&&e.message==t.message;case E:case T:return e==t+"";case x:var l=$t;case C:var s=1&r;if(l||(l=aa),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var d=$n(l(e),l(t),r,n,i,o);return o.delete(e),d;case z:if(Da)return Da.call(e)==Da.call(t)}return!1}(e,t,c,a,r,i,o);if(!(1&a)){var m=u&&Me.call(e,"__wrapped__"),k=p&&Me.call(t,"__wrapped__");if(m||k){var w=m?e.value():e,A=k?t.value():t;return o||(o=new qa),i(w,A,a,r,o)}}return!!h&&(o||(o=new qa),function(e,t,a,r,i,o){var l=1&a,s=ti(e),c=s.length;if(c!=ti(t).length&&!l)return!1;for(var d=c;d--;){var u=s[d];if(!(l?u in t:Me.call(t,u)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=l;++d<c;){var f=e[u=s[d]],b=t[u];if(r)var v=l?r(b,f,u,t,e,o):r(f,b,u,e,t,o);if(!(v===n?f===b||i(f,b,a,r,o):v)){m=!1;break}g||(g="constructor"==u)}if(m&&!g){var y=e.constructor,k=t.constructor;y==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof k&&k instanceof k||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,a,r,i,o))}(e,t,a,r,Ir,i))}function Lr(e,t,a,r){var i=a.length,o=i,l=!r;if(null==e)return!o;for(e=_e(e);i--;){var s=a[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=a[i])[0],d=e[c],u=s[1];if(l&&s[2]){if(d===n&&!(c in e))return!1}else{var p=new qa;if(r)var h=r(d,u,c,e,t,p);if(!(h===n?Ir(u,d,3,r,p):h))return!1}}return!0}function jr(e){return!(!tl(e)||(t=e,Pe&&Pe in t))&&(Xo(e)?Fe:ge).test(Oi(e));var t}function Mr(e){return"function"==typeof e?e:null==e?ns:"object"==typeof e?Ko(e)?Or(e[0],e[1]):Nr(e):hs(e)}function Br(e){if(!wi(e))return ga(e);var t=[];for(var a in _e(e))Me.call(e,a)&&"constructor"!=a&&t.push(a);return t}function Pr(e,t){return e<t}function Dr(e,t){var a=-1,n=qo(e)?r(e.length):[];return dr(e,(function(e,r,i){n[++a]=t(e,r,i)})),n}function Nr(e){var t=si(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(a){return a===e||Lr(a,e,t)}}function Or(e,t){return vi(e)&&xi(t)?Si(Ni(e),t):function(a){var r=Cl(a,e);return r===n&&r===t?Tl(a,e):Ir(t,r,3)}}function Fr(e,t,a,r,i){e!==t&&fr(t,(function(o,l){if(i||(i=new qa),tl(o))!function(e,t,a,r,i,o,l){var s=Ci(e,a),c=Ci(t,a),d=l.get(c);if(d)Xa(e,a,d);else{var u=o?o(s,c,a+"",e,t,l):n,p=u===n;if(p){var h=Ko(c),m=!h&&Qo(c),g=!h&&!m&&dl(c);u=c,h||m||g?Ko(s)?u=s:Zo(s)?u=Cn(s):m?(p=!1,u=wn(c,!0)):g?(p=!1,u=Sn(c,!0)):u=[]:il(c)||Uo(c)?(u=s,Uo(s)?u=vl(s):tl(s)&&!Xo(s)||(u=mi(c))):p=!1}p&&(l.set(c,u),i(u,c,r,o,l),l.delete(c)),Xa(e,a,u)}}(e,t,l,a,Fr,r,i);else{var s=r?r(Ci(e,l),o,l+"",e,t,i):n;s===n&&(s=o),Xa(e,l,s)}}),Ml)}function Rr(e,t){var a=e.length;if(a)return fi(t+=t<0?a:0,a)?e[t]:n}function Hr(e,t,a){t=t.length?At(t,(function(e){return Ko(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[ns];var r=-1;return t=At(t,Vt(oi())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,a){for(var r=-1,n=e.criteria,i=t.criteria,o=n.length,l=a.length;++r<o;){var s=_n(n[r],i[r]);if(s)return r>=l?s:s*("desc"==a[r]?-1:1)}return e.index-t.index}(e,t,a)}));r--;)e[r]=e[r].value;return e}(Dr(e,(function(e,a,n){return{criteria:At(t,(function(t){return t(e)})),index:++r,value:e}})))}function Gr(e,t,a){for(var r=-1,n=t.length,i={};++r<n;){var o=t[r],l=wr(e,o);a(l,o)&&Yr(i,bn(o,e),l)}return i}function Vr(e,t,a,r){var n=r?Bt:Mt,i=-1,o=t.length,l=e;for(e===t&&(t=Cn(t)),a&&(l=At(e,Vt(a)));++i<o;)for(var s=0,c=t[i],d=a?a(c):c;(s=n(l,d,s,r))>-1;)l!==e&&rt.call(l,s,1),rt.call(e,s,1);return e}function Ur(e,t){for(var a=e?t.length:0,r=a-1;a--;){var n=t[a];if(a==r||n!==i){var i=n;fi(n)?rt.call(e,n,1):cn(e,n)}}return e}function Kr(e,t){return e+da(ka()*(t-e+1))}function Wr(e,t){var a="";if(!e||t<1||t>u)return a;do{t%2&&(a+=e),(t=da(t/2))&&(e+=e)}while(t);return a}function qr(e,t){return Ii(_i(e,t,ns),e+"")}function Zr(e){return Qa(Hl(e))}function Qr(e,t){var a=Hl(e);return Mi(a,ir(t,0,a.length))}function Yr(e,t,a,r){if(!tl(e))return e;for(var i=-1,o=(t=bn(t,e)).length,l=o-1,s=e;null!=s&&++i<o;){var c=Ni(t[i]),d=a;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=l){var u=s[c];(d=r?r(u,c,s):n)===n&&(d=tl(u)?u:fi(t[i+1])?[]:{})}$a(s,c,d),s=s[c]}return e}var Jr=Ta?function(e,t){return Ta.set(e,t),e}:ns,Xr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:ns;function $r(e){return Mi(Hl(e))}function en(e,t,a){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(a=a>i?i:a)<0&&(a+=i),i=t>a?0:a-t>>>0,t>>>=0;for(var o=r(i);++n<i;)o[n]=e[n+t];return o}function tn(e,t){var a;return dr(e,(function(e,r,n){return!(a=t(e,r,n))})),!!a}function an(e,t,a){var r=0,n=null==e?r:e.length;if("number"==typeof t&&t==t&&n<=2147483647){for(;r<n;){var i=r+n>>>1,o=e[i];null!==o&&!cl(o)&&(a?o<=t:o<t)?r=i+1:n=i}return n}return rn(e,t,ns,a)}function rn(e,t,a,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var l=(t=a(t))!=t,s=null===t,c=cl(t),d=t===n;i<o;){var u=da((i+o)/2),p=a(e[u]),h=p!==n,m=null===p,g=p==p,f=cl(p);if(l)var b=r||g;else b=d?g&&(r||h):s?g&&h&&(r||!m):c?g&&h&&!m&&(r||!f):!m&&!f&&(r?p<=t:p<t);b?i=u+1:o=u}return ba(o,4294967294)}function nn(e,t){for(var a=-1,r=e.length,n=0,i=[];++a<r;){var o=e[a],l=t?t(o):o;if(!a||!Ho(l,s)){var s=l;i[n++]=0===o?0:o}}return i}function on(e){return"number"==typeof e?e:cl(e)?p:+e}function ln(e){if("string"==typeof e)return e;if(Ko(e))return At(e,ln)+"";if(cl(e))return Na?Na.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function sn(e,t,a){var r=-1,n=St,i=e.length,o=!0,l=[],s=l;if(a)o=!1,n=_t;else if(i>=200){var c=t?null:qn(e);if(c)return aa(c);o=!1,n=Kt,s=new Wa}else s=t?[]:l;e:for(;++r<i;){var d=e[r],u=t?t(d):d;if(d=a||0!==d?d:0,o&&u==u){for(var p=s.length;p--;)if(s[p]===u)continue e;t&&s.push(u),l.push(d)}else n(s,u,a)||(s!==l&&s.push(u),l.push(d))}return l}function cn(e,t){return null==(e=Ai(e,t=bn(t,e)))||delete e[Ni(Yi(t))]}function dn(e,t,a,r){return Yr(e,t,a(wr(e,t)),r)}function un(e,t,a,r){for(var n=e.length,i=r?n:-1;(r?i--:++i<n)&&t(e[i],i,e););return a?en(e,r?0:i,r?i+1:n):en(e,r?i+1:0,r?n:i)}function pn(e,t){var a=e;return a instanceof Ga&&(a=a.value()),Ct(t,(function(e,t){return t.func.apply(t.thisArg,Et([e],t.args))}),a)}function hn(e,t,a){var n=e.length;if(n<2)return n?sn(e[0]):[];for(var i=-1,o=r(n);++i<n;)for(var l=e[i],s=-1;++s<n;)s!=i&&(o[i]=cr(o[i]||l,e[s],t,a));return sn(gr(o,1),t,a)}function mn(e,t,a){for(var r=-1,i=e.length,o=t.length,l={};++r<i;){var s=r<o?t[r]:n;a(l,e[r],s)}return l}function gn(e){return Zo(e)?e:[]}function fn(e){return"function"==typeof e?e:ns}function bn(e,t){return Ko(e)?e:vi(e,t)?[e]:Di(yl(e))}var vn=qr;function yn(e,t,a){var r=e.length;return a=a===n?r:a,!t&&a>=r?e:en(e,t,a)}var kn=dt||function(e){return it.clearTimeout(e)};function wn(e,t){if(t)return e.slice();var a=e.length,r=Ve?Ve(a):new e.constructor(a);return e.copy(r),r}function xn(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Sn(e,t){var a=t?xn(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function _n(e,t){if(e!==t){var a=e!==n,r=null===e,i=e==e,o=cl(e),l=t!==n,s=null===t,c=t==t,d=cl(t);if(!s&&!d&&!o&&e>t||o&&l&&c&&!s&&!d||r&&l&&c||!a&&c||!i)return 1;if(!r&&!o&&!d&&e<t||d&&a&&i&&!r&&!o||s&&a&&i||!l&&i||!c)return-1}return 0}function An(e,t,a,n){for(var i=-1,o=e.length,l=a.length,s=-1,c=t.length,d=fa(o-l,0),u=r(c+d),p=!n;++s<c;)u[s]=t[s];for(;++i<l;)(p||i<o)&&(u[a[i]]=e[i]);for(;d--;)u[s++]=e[i++];return u}function En(e,t,a,n){for(var i=-1,o=e.length,l=-1,s=a.length,c=-1,d=t.length,u=fa(o-s,0),p=r(u+d),h=!n;++i<u;)p[i]=e[i];for(var m=i;++c<d;)p[m+c]=t[c];for(;++l<s;)(h||i<o)&&(p[m+a[l]]=e[i++]);return p}function Cn(e,t){var a=-1,n=e.length;for(t||(t=r(n));++a<n;)t[a]=e[a];return t}function Tn(e,t,a,r){var i=!a;a||(a={});for(var o=-1,l=t.length;++o<l;){var s=t[o],c=r?r(a[s],e[s],s,a,e):n;c===n&&(c=e[s]),i?rr(a,s,c):$a(a,s,c)}return a}function zn(e,t){return function(a,r){var n=Ko(a)?vt:tr,i=t?t():{};return n(a,e,oi(r,2),i)}}function In(e){return qr((function(t,a){var r=-1,i=a.length,o=i>1?a[i-1]:n,l=i>2?a[2]:n;for(o=e.length>3&&"function"==typeof o?(i--,o):n,l&&bi(a[0],a[1],l)&&(o=i<3?n:o,i=1),t=_e(t);++r<i;){var s=a[r];s&&e(t,s,r,o)}return t}))}function Ln(e,t){return function(a,r){if(null==a)return a;if(!qo(a))return e(a,r);for(var n=a.length,i=t?n:-1,o=_e(a);(t?i--:++i<n)&&!1!==r(o[i],i,o););return a}}function jn(e){return function(t,a,r){for(var n=-1,i=_e(t),o=r(t),l=o.length;l--;){var s=o[e?l:++n];if(!1===a(i[s],s,i))break}return t}}function Mn(e){return function(t){var a=Xt(t=yl(t))?ia(t):n,r=a?a[0]:t.charAt(0),i=a?yn(a,1).join(""):t.slice(1);return r[e]()+i}}function Bn(e){return function(t){return Ct(Xl(Ul(t).replace(Ue,"")),e,"")}}function Pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=Fa(e.prototype),r=e.apply(a,t);return tl(r)?r:a}}function Dn(e){return function(t,a,r){var i=_e(t);if(!qo(t)){var o=oi(a,3);t=jl(t),a=function(e){return o(i[e],e,i)}}var l=e(t,a,r);return l>-1?i[o?t[l]:l]:n}}function Nn(e){return ei((function(t){var a=t.length,r=a,o=Ha.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ce(i);if(o&&!s&&"wrapper"==ni(l))var s=new Ha([],!0)}for(r=s?r:a;++r<a;){var c=ni(l=t[r]),d="wrapper"==c?ri(l):n;s=d&&yi(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?s[ni(d[0])].apply(s,d[3]):1==l.length&&yi(l)?s[c]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ko(r))return s.plant(r).value();for(var n=0,i=a?t[n].apply(this,e):r;++n<a;)i=t[n].call(this,i);return i}}))}function On(e,t,a,i,o,l,s,d,u,p){var h=t&c,m=1&t,g=2&t,f=24&t,b=512&t,v=g?n:Pn(e);return function n(){for(var c=arguments.length,y=r(c),k=c;k--;)y[k]=arguments[k];if(f)var w=ii(n),x=Zt(y,w);if(i&&(y=An(y,i,o,f)),l&&(y=En(y,l,s,f)),c-=x,f&&c<p){var S=ta(y,w);return Kn(e,t,On,n.placeholder,a,y,S,d,u,p-c)}var _=m?a:this,A=g?_[e]:e;return c=y.length,d?y=Ei(y,d):b&&c>1&&y.reverse(),h&&u<c&&(y.length=u),this&&this!==it&&this instanceof n&&(A=v||Pn(A)),A.apply(_,y)}}function Fn(e,t){return function(a,r){return function(e,t,a,r){return vr(e,(function(e,n,i){t(r,a(e),n,i)})),r}(a,e,t(r),{})}}function Rn(e,t){return function(a,r){var i;if(a===n&&r===n)return t;if(a!==n&&(i=a),r!==n){if(i===n)return r;"string"==typeof a||"string"==typeof r?(a=ln(a),r=ln(r)):(a=on(a),r=on(r)),i=e(a,r)}return i}}function Hn(e){return ei((function(t){return t=At(t,Vt(oi())),qr((function(a){var r=this;return e(t,(function(e){return bt(e,r,a)}))}))}))}function Gn(e,t){var a=(t=t===n?" ":ln(t)).length;if(a<2)return a?Wr(t,e):t;var r=Wr(t,ca(e/na(t)));return Xt(t)?yn(ia(r),0,e).join(""):r.slice(0,e)}function Vn(e){return function(t,a,i){return i&&"number"!=typeof i&&bi(t,a,i)&&(a=i=n),t=ml(t),a===n?(a=t,t=0):a=ml(a),function(e,t,a,n){for(var i=-1,o=fa(ca((t-e)/(a||1)),0),l=r(o);o--;)l[n?o:++i]=e,e+=a;return l}(t,a,i=i===n?t<a?1:-1:ml(i),e)}}function Un(e){return function(t,a){return"string"==typeof t&&"string"==typeof a||(t=bl(t),a=bl(a)),e(t,a)}}function Kn(e,t,a,r,i,o,l,c,d,u){var p=8&t;t|=p?s:64,4&(t&=~(p?64:s))||(t&=-4);var h=[e,t,i,p?o:n,p?l:n,p?n:o,p?n:l,c,d,u],m=a.apply(n,h);return yi(e)&&Ti(m,h),m.placeholder=r,Li(m,e,t)}function Wn(e){var t=Se[e];return function(e,a){if(e=bl(e),(a=null==a?0:ba(gl(a),292))&&ha(e)){var r=(yl(e)+"e").split("e");return+((r=(yl(t(r[0]+"e"+(+r[1]+a)))+"e").split("e"))[0]+"e"+(+r[1]-a))}return t(e)}}var qn=Aa&&1/aa(new Aa([,-0]))[1]==d?function(e){return new Aa(e)}:cs;function Zn(e){return function(t){var a=pi(t);return a==x?$t(t):a==C?ra(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qn(e,t,a,o,d,u,p,h){var m=2&t;if(!m&&"function"!=typeof e)throw new Ce(i);var g=o?o.length:0;if(g||(t&=-97,o=d=n),p=p===n?p:fa(gl(p),0),h=h===n?h:gl(h),g-=d?d.length:0,64&t){var f=o,b=d;o=d=n}var v=m?n:ri(e),y=[e,t,a,o,d,f,b,u,p,h];if(v&&function(e,t){var a=e[1],r=t[1],n=a|r,i=n<131,o=r==c&&8==a||r==c&&256==a&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==a;if(!i&&!o)return e;1&r&&(e[2]=t[2],n|=1&a?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?An(d,s,t[4]):s,e[4]=d?ta(e[3],l):t[4]}(s=t[5])&&(d=e[5],e[5]=d?En(d,s,t[6]):s,e[6]=d?ta(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&c&&(e[8]=null==e[8]?t[8]:ba(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=n}(y,v),e=y[0],t=y[1],a=y[2],o=y[3],d=y[4],!(h=y[9]=y[9]===n?m?0:e.length:fa(y[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||16==t?function(e,t,a){var i=Pn(e);return function o(){for(var l=arguments.length,s=r(l),c=l,d=ii(o);c--;)s[c]=arguments[c];var u=l<3&&s[0]!==d&&s[l-1]!==d?[]:ta(s,d);return(l-=u.length)<a?Kn(e,t,On,o.placeholder,n,s,u,n,n,a-l):bt(this&&this!==it&&this instanceof o?i:e,this,s)}}(e,t,h):t!=s&&33!=t||d.length?On.apply(n,y):function(e,t,a,n){var i=1&t,o=Pn(e);return function t(){for(var l=-1,s=arguments.length,c=-1,d=n.length,u=r(d+s),p=this&&this!==it&&this instanceof t?o:e;++c<d;)u[c]=n[c];for(;s--;)u[c++]=arguments[++l];return bt(p,i?a:this,u)}}(e,t,a,o);else var k=function(e,t,a){var r=1&t,n=Pn(e);return function t(){return(this&&this!==it&&this instanceof t?n:e).apply(r?a:this,arguments)}}(e,t,a);return Li((v?Jr:Ti)(k,y),e,t)}function Yn(e,t,a,r){return e===n||Ho(e,Ie[a])&&!Me.call(r,a)?t:e}function Jn(e,t,a,r,i,o){return tl(e)&&tl(t)&&(o.set(t,e),Fr(e,t,n,Jn,o),o.delete(t)),e}function Xn(e){return il(e)?n:e}function $n(e,t,a,r,i,o){var l=1&a,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var d=o.get(e),u=o.get(t);if(d&&u)return d==t&&u==e;var p=-1,h=!0,m=2&a?new Wa:n;for(o.set(e,t),o.set(t,e);++p<s;){var g=e[p],f=t[p];if(r)var b=l?r(f,g,p,t,e,o):r(g,f,p,e,t,o);if(b!==n){if(b)continue;h=!1;break}if(m){if(!zt(t,(function(e,t){if(!Kt(m,t)&&(g===e||i(g,e,a,r,o)))return m.push(t)}))){h=!1;break}}else if(g!==f&&!i(g,f,a,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ei(e){return Ii(_i(e,n,Ki),e+"")}function ti(e){return xr(e,jl,di)}function ai(e){return xr(e,Ml,ui)}var ri=Ta?function(e){return Ta.get(e)}:cs;function ni(e){for(var t=e.name+"",a=za[t],r=Me.call(za,t)?a.length:0;r--;){var n=a[r],i=n.func;if(null==i||i==e)return n.name}return t}function ii(e){return(Me.call(Oa,"placeholder")?Oa:e).placeholder}function oi(){var e=Oa.iteratee||is;return e=e===is?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function si(e){for(var t=jl(e),a=t.length;a--;){var r=t[a],n=e[r];t[a]=[r,n,xi(n)]}return t}function ci(e,t){var a=function(e,t){return null==e?n:e[t]}(e,t);return jr(a)?a:n}var di=ua?function(e){return null==e?[]:(e=_e(e),xt(ua(e),(function(t){return et.call(e,t)})))}:fs,ui=ua?function(e){for(var t=[];e;)Et(t,di(e)),e=We(e);return t}:fs,pi=Sr;function hi(e,t,a){for(var r=-1,n=(t=bn(t,e)).length,i=!1;++r<n;){var o=Ni(t[r]);if(!(i=null!=e&&a(e,o)))break;e=e[o]}return i||++r!=n?i:!!(n=null==e?0:e.length)&&el(n)&&fi(o,n)&&(Ko(e)||Uo(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:Fa(We(e))}function gi(e){return Ko(e)||Uo(e)||!!(nt&&e&&e[nt])}function fi(e,t){var a=typeof e;return!!(t=null==t?u:t)&&("number"==a||"symbol"!=a&&be.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,a){if(!tl(a))return!1;var r=typeof t;return!!("number"==r?qo(a)&&fi(t,a.length):"string"==r&&t in a)&&Ho(a[t],e)}function vi(e,t){if(Ko(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!cl(e))||$.test(e)||!X.test(e)||null!=t&&e in _e(t)}function yi(e){var t=ni(e),a=Oa[t];if("function"!=typeof a||!(t in Ga.prototype))return!1;if(e===a)return!0;var r=ri(a);return!!r&&e===r[0]}(xa&&pi(new xa(new ArrayBuffer(1)))!=j||Sa&&pi(new Sa)!=x||_a&&pi(_a.resolve())!=A||Aa&&pi(new Aa)!=C||Ea&&pi(new Ea)!=I)&&(pi=function(e){var t=Sr(e),a=t==_?e.constructor:n,r=a?Oi(a):"";if(r)switch(r){case Ia:return j;case La:return x;case ja:return A;case Ma:return C;case Ba:return I}return t});var ki=Le?Xo:bs;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function xi(e){return e==e&&!tl(e)}function Si(e,t){return function(a){return null!=a&&a[e]===t&&(t!==n||e in _e(a))}}function _i(e,t,a){return t=fa(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=fa(n.length-t,0),l=r(o);++i<o;)l[i]=n[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=n[i];return s[t]=a(l),bt(e,this,s)}}function Ai(e,t){return t.length<2?e:wr(e,en(t,0,-1))}function Ei(e,t){for(var a=e.length,r=ba(t.length,a),i=Cn(e);r--;){var o=t[r];e[r]=fi(o,a)?i[o]:n}return e}function Ci(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=ji(Jr),zi=Ot||function(e,t){return it.setTimeout(e,t)},Ii=ji(Xr);function Li(e,t,a){var r=t+"";return Ii(e,function(e,t){var a=t.length;if(!a)return e;var r=a-1;return t[r]=(a>1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return yt(m,(function(a){var r="_."+a[0];t&a[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(le):[]}(r),a)))}function ji(e){var t=0,a=0;return function(){var r=va(),i=16-(r-a);if(a=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Mi(e,t){var a=-1,r=e.length,i=r-1;for(t=t===n?r:t;++a<t;){var o=Kr(a,i),l=e[o];e[o]=e[a],e[a]=l}return e.length=t,e}var Bi,Pi,Di=(Bi=Po((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,a,r,n){t.push(r?n.replace(de,"$1"):a||e)})),t}),(function(e){return 500===Pi.size&&Pi.clear(),e})),Pi=Bi.cache,Bi);function Ni(e){if("string"==typeof e||cl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Oi(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fi(e){if(e instanceof Ga)return e.clone();var t=new Ha(e.__wrapped__,e.__chain__);return t.__actions__=Cn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ri=qr((function(e,t){return Zo(e)?cr(e,gr(t,1,Zo,!0)):[]})),Hi=qr((function(e,t){var a=Yi(t);return Zo(a)&&(a=n),Zo(e)?cr(e,gr(t,1,Zo,!0),oi(a,2)):[]})),Gi=qr((function(e,t){var a=Yi(t);return Zo(a)&&(a=n),Zo(e)?cr(e,gr(t,1,Zo,!0),n,a):[]}));function Vi(e,t,a){var r=null==e?0:e.length;if(!r)return-1;var n=null==a?0:gl(a);return n<0&&(n=fa(r+n,0)),jt(e,oi(t,3),n)}function Ui(e,t,a){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return a!==n&&(i=gl(a),i=a<0?fa(r+i,0):ba(i,r-1)),jt(e,oi(t,3),i,!0)}function Ki(e){return null!=e&&e.length?gr(e,1):[]}function Wi(e){return e&&e.length?e[0]:n}var qi=qr((function(e){var t=At(e,gn);return t.length&&t[0]===e[0]?Cr(t):[]})),Zi=qr((function(e){var t=Yi(e),a=At(e,gn);return t===Yi(a)?t=n:a.pop(),a.length&&a[0]===e[0]?Cr(a,oi(t,2)):[]})),Qi=qr((function(e){var t=Yi(e),a=At(e,gn);return(t="function"==typeof t?t:n)&&a.pop(),a.length&&a[0]===e[0]?Cr(a,n,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ji=qr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var $i=ei((function(e,t){var a=null==e?0:e.length,r=nr(e,t);return Ur(e,At(t,(function(e){return fi(e,a)?+e:e})).sort(_n)),r}));function eo(e){return null==e?e:wa.call(e)}var to=qr((function(e){return sn(gr(e,1,Zo,!0))})),ao=qr((function(e){var t=Yi(e);return Zo(t)&&(t=n),sn(gr(e,1,Zo,!0),oi(t,2))})),ro=qr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,sn(gr(e,1,Zo,!0),n,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Zo(e))return t=fa(e.length,t),!0})),Ht(t,(function(t){return At(e,Nt(t))}))}function io(e,t){if(!e||!e.length)return[];var a=no(e);return null==t?a:At(a,(function(e){return bt(t,n,e)}))}var oo=qr((function(e,t){return Zo(e)?cr(e,t):[]})),lo=qr((function(e){return hn(xt(e,Zo))})),so=qr((function(e){var t=Yi(e);return Zo(t)&&(t=n),hn(xt(e,Zo),oi(t,2))})),co=qr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,hn(xt(e,Zo),n,t)})),uo=qr(no),po=qr((function(e){var t=e.length,a=t>1?e[t-1]:n;return a="function"==typeof a?(e.pop(),a):n,io(e,a)}));function ho(e){var t=Oa(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var go=ei((function(e){var t=e.length,a=t?e[0]:0,r=this.__wrapped__,i=function(t){return nr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ga&&fi(a)?((r=r.slice(a,+a+(t?1:0))).__actions__.push({func:mo,args:[i],thisArg:n}),new Ha(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),fo=zn((function(e,t,a){Me.call(e,a)?++e[a]:rr(e,a,1)})),bo=Dn(Vi),vo=Dn(Ui);function yo(e,t){return(Ko(e)?yt:dr)(e,oi(t,3))}function ko(e,t){return(Ko(e)?kt:ur)(e,oi(t,3))}var wo=zn((function(e,t,a){Me.call(e,a)?e[a].push(t):rr(e,a,[t])})),xo=qr((function(e,t,a){var n=-1,i="function"==typeof t,o=qo(e)?r(e.length):[];return dr(e,(function(e){o[++n]=i?bt(t,e,a):Tr(e,t,a)})),o})),So=zn((function(e,t,a){rr(e,a,t)}));function _o(e,t){return(Ko(e)?At:Dr)(e,oi(t,3))}var Ao=zn((function(e,t,a){e[a?0:1].push(t)}),(function(){return[[],[]]})),Eo=qr((function(e,t){if(null==e)return[];var a=t.length;return a>1&&bi(e,t[0],t[1])?t=[]:a>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,gr(t,1),[])})),Co=It||function(){return it.Date.now()};function To(e,t,a){return t=a?n:t,t=e&&null==t?e.length:t,Qn(e,c,n,n,n,n,t)}function zo(e,t){var a;if("function"!=typeof t)throw new Ce(i);return e=gl(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var Io=qr((function(e,t,a){var r=1;if(a.length){var n=ta(a,ii(Io));r|=s}return Qn(e,r,t,a,n)})),Lo=qr((function(e,t,a){var r=3;if(a.length){var n=ta(a,ii(Lo));r|=s}return Qn(t,r,e,a,n)}));function jo(e,t,a){var r,o,l,s,c,d,u=0,p=!1,h=!1,m=!0;if("function"!=typeof e)throw new Ce(i);function g(t){var a=r,i=o;return r=o=n,u=t,s=e.apply(i,a)}function f(e){return u=e,c=zi(v,t),p?g(e):s}function b(e){var a=e-d;return d===n||a>=t||a<0||h&&e-u>=l}function v(){var e=Co();if(b(e))return y(e);c=zi(v,function(e){var a=t-(e-d);return h?ba(a,l-(e-u)):a}(e))}function y(e){return c=n,m&&r?g(e):(r=o=n,s)}function k(){var e=Co(),a=b(e);if(r=arguments,o=this,d=e,a){if(c===n)return f(d);if(h)return kn(c),c=zi(v,t),g(d)}return c===n&&(c=zi(v,t)),s}return t=bl(t)||0,tl(a)&&(p=!!a.leading,l=(h="maxWait"in a)?fa(bl(a.maxWait)||0,t):l,m="trailing"in a?!!a.trailing:m),k.cancel=function(){c!==n&&kn(c),u=0,r=d=o=c=n},k.flush=function(){return c===n?s:y(Co())},k}var Mo=qr((function(e,t){return sr(e,1,t)})),Bo=qr((function(e,t,a){return sr(e,bl(t)||0,a)}));function Po(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(i);var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=a.cache;if(i.has(n))return i.get(n);var o=e.apply(this,r);return a.cache=i.set(n,o)||i,o};return a.cache=new(Po.Cache||Ka),a}function Do(e){if("function"!=typeof e)throw new Ce(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)}}Po.Cache=Ka;var No=vn((function(e,t){var a=(t=1==t.length&&Ko(t[0])?At(t[0],Vt(oi())):At(gr(t,1),Vt(oi()))).length;return qr((function(r){for(var n=-1,i=ba(r.length,a);++n<i;)r[n]=t[n].call(this,r[n]);return bt(e,this,r)}))})),Oo=qr((function(e,t){var a=ta(t,ii(Oo));return Qn(e,s,n,t,a)})),Fo=qr((function(e,t){var a=ta(t,ii(Fo));return Qn(e,64,n,t,a)})),Ro=ei((function(e,t){return Qn(e,256,n,n,n,t)}));function Ho(e,t){return e===t||e!=e&&t!=t}var Go=Un(_r),Vo=Un((function(e,t){return e>=t})),Uo=zr(function(){return arguments}())?zr:function(e){return al(e)&&Me.call(e,"callee")&&!et.call(e,"callee")},Ko=r.isArray,Wo=ut?Vt(ut):function(e){return al(e)&&Sr(e)==L};function qo(e){return null!=e&&el(e.length)&&!Xo(e)}function Zo(e){return al(e)&&qo(e)}var Qo=pa||bs,Yo=pt?Vt(pt):function(e){return al(e)&&Sr(e)==v};function Jo(e){if(!al(e))return!1;var t=Sr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xo(e){if(!tl(e))return!1;var t=Sr(e);return t==k||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $o(e){return"number"==typeof e&&e==gl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function al(e){return null!=e&&"object"==typeof e}var rl=ht?Vt(ht):function(e){return al(e)&&pi(e)==x};function nl(e){return"number"==typeof e||al(e)&&Sr(e)==S}function il(e){if(!al(e)||Sr(e)!=_)return!1;var t=We(e);if(null===t)return!0;var a=Me.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&je.call(a)==Ne}var ol=mt?Vt(mt):function(e){return al(e)&&Sr(e)==E},ll=gt?Vt(gt):function(e){return al(e)&&pi(e)==C};function sl(e){return"string"==typeof e||!Ko(e)&&al(e)&&Sr(e)==T}function cl(e){return"symbol"==typeof e||al(e)&&Sr(e)==z}var dl=ft?Vt(ft):function(e){return al(e)&&el(e.length)&&!!Xe[Sr(e)]},ul=Un(Pr),pl=Un((function(e,t){return e<=t}));function hl(e){if(!e)return[];if(qo(e))return sl(e)?ia(e):Cn(e);if(ot&&e[ot])return function(e){for(var t,a=[];!(t=e.next()).done;)a.push(t.value);return a}(e[ot]());var t=pi(e);return(t==x?$t:t==C?aa:Hl)(e)}function ml(e){return e?(e=bl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var t=ml(e),a=t%1;return t==t?a?t-a:t:0}function fl(e){return e?ir(gl(e),0,h):0}function bl(e){if("number"==typeof e)return e;if(cl(e))return p;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var a=me.test(e);return a||fe.test(e)?at(e.slice(2),a?2:8):he.test(e)?p:+e}function vl(e){return Tn(e,Ml(e))}function yl(e){return null==e?"":ln(e)}var kl=In((function(e,t){if(wi(t)||qo(t))Tn(t,jl(t),e);else for(var a in t)Me.call(t,a)&&$a(e,a,t[a])})),wl=In((function(e,t){Tn(t,Ml(t),e)})),xl=In((function(e,t,a,r){Tn(t,Ml(t),e,r)})),Sl=In((function(e,t,a,r){Tn(t,jl(t),e,r)})),_l=ei(nr),Al=qr((function(e,t){e=_e(e);var a=-1,r=t.length,i=r>2?t[2]:n;for(i&&bi(t[0],t[1],i)&&(r=1);++a<r;)for(var o=t[a],l=Ml(o),s=-1,c=l.length;++s<c;){var d=l[s],u=e[d];(u===n||Ho(u,Ie[d])&&!Me.call(e,d))&&(e[d]=o[d])}return e})),El=qr((function(e){return e.push(n,Jn),bt(Pl,n,e)}));function Cl(e,t,a){var r=null==e?n:wr(e,t);return r===n?a:r}function Tl(e,t){return null!=e&&hi(e,t,Er)}var zl=Fn((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=a}),ts(ns)),Il=Fn((function(e,t,a){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Me.call(e,t)?e[t].push(a):e[t]=[a]}),oi),Ll=qr(Tr);function jl(e){return qo(e)?Za(e):Br(e)}function Ml(e){return qo(e)?Za(e,!0):function(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var a in _e(e))t.push(a);return t}(e);var t=wi(e),a=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&a.push(r);return a}(e)}var Bl=In((function(e,t,a){Fr(e,t,a)})),Pl=In((function(e,t,a,r){Fr(e,t,a,r)})),Dl=ei((function(e,t){var a={};if(null==e)return a;var r=!1;t=At(t,(function(t){return t=bn(t,e),r||(r=t.length>1),t})),Tn(e,ai(e),a),r&&(a=or(a,7,Xn));for(var n=t.length;n--;)cn(a,t[n]);return a})),Nl=ei((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,a){return Tl(e,a)}))}(e,t)}));function Ol(e,t){if(null==e)return{};var a=At(ai(e),(function(e){return[e]}));return t=oi(t),Gr(e,a,(function(e,a){return t(e,a[0])}))}var Fl=Zn(jl),Rl=Zn(Ml);function Hl(e){return null==e?[]:Ut(e,jl(e))}var Gl=Bn((function(e,t,a){return t=t.toLowerCase(),e+(a?Vl(t):t)}));function Vl(e){return Jl(yl(e).toLowerCase())}function Ul(e){return(e=yl(e))&&e.replace(ve,Qt).replace(Ke,"")}var Kl=Bn((function(e,t,a){return e+(a?"-":"")+t.toLowerCase()})),Wl=Bn((function(e,t,a){return e+(a?" ":"")+t.toLowerCase()})),ql=Mn("toLowerCase"),Zl=Bn((function(e,t,a){return e+(a?"_":"")+t.toLowerCase()})),Ql=Bn((function(e,t,a){return e+(a?" ":"")+Jl(t)})),Yl=Bn((function(e,t,a){return e+(a?" ":"")+t.toUpperCase()})),Jl=Mn("toUpperCase");function Xl(e,t,a){return e=yl(e),(t=a?n:t)===n?function(e){return Qe.test(e)}(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var $l=qr((function(e,t){try{return bt(e,n,t)}catch(e){return Jo(e)?e:new we(e)}})),es=ei((function(e,t){return yt(t,(function(t){t=Ni(t),rr(e,t,Io(e[t],e))})),e}));function ts(e){return function(){return e}}var as=Nn(),rs=Nn(!0);function ns(e){return e}function is(e){return Mr("function"==typeof e?e:or(e,1))}var os=qr((function(e,t){return function(a){return Tr(a,e,t)}})),ls=qr((function(e,t){return function(a){return Tr(e,a,t)}}));function ss(e,t,a){var r=jl(t),n=kr(t,r);null!=a||tl(t)&&(n.length||!r.length)||(a=t,t=e,e=this,n=kr(t,jl(t)));var i=!(tl(a)&&"chain"in a&&!a.chain),o=Xo(e);return yt(n,(function(a){var r=t[a];e[a]=r,o&&(e.prototype[a]=function(){var t=this.__chain__;if(i||t){var a=e(this.__wrapped__),n=a.__actions__=Cn(this.__actions__);return n.push({func:r,args:arguments,thisArg:e}),a.__chain__=t,a}return r.apply(e,Et([this.value()],arguments))})})),e}function cs(){}var ds=Hn(At),us=Hn(wt),ps=Hn(zt);function hs(e){return vi(e)?Nt(Ni(e)):function(e){return function(t){return wr(t,e)}}(e)}var ms=Vn(),gs=Vn(!0);function fs(){return[]}function bs(){return!1}var vs,ys=Rn((function(e,t){return e+t}),0),ks=Wn("ceil"),ws=Rn((function(e,t){return e/t}),1),xs=Wn("floor"),Ss=Rn((function(e,t){return e*t}),1),_s=Wn("round"),As=Rn((function(e,t){return e-t}),0);return Oa.after=function(e,t){if("function"!=typeof t)throw new Ce(i);return e=gl(e),function(){if(--e<1)return t.apply(this,arguments)}},Oa.ary=To,Oa.assign=kl,Oa.assignIn=wl,Oa.assignInWith=xl,Oa.assignWith=Sl,Oa.at=_l,Oa.before=zo,Oa.bind=Io,Oa.bindAll=es,Oa.bindKey=Lo,Oa.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ko(e)?e:[e]},Oa.chain=ho,Oa.chunk=function(e,t,a){t=(a?bi(e,t,a):t===n)?1:fa(gl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,l=0,s=r(ca(i/t));o<i;)s[l++]=en(e,o,o+=t);return s},Oa.compact=function(e){for(var t=-1,a=null==e?0:e.length,r=0,n=[];++t<a;){var i=e[t];i&&(n[r++]=i)}return n},Oa.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),a=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Et(Ko(a)?Cn(a):[a],gr(t,1))},Oa.cond=function(e){var t=null==e?0:e.length,a=oi();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ce(i);return[a(e[0]),e[1]]})):[],qr((function(a){for(var r=-1;++r<t;){var n=e[r];if(bt(n[0],this,a))return bt(n[1],this,a)}}))},Oa.conforms=function(e){return function(e){var t=jl(e);return function(a){return lr(a,e,t)}}(or(e,1))},Oa.constant=ts,Oa.countBy=fo,Oa.create=function(e,t){var a=Fa(e);return null==t?a:ar(a,t)},Oa.curry=function e(t,a,r){var i=Qn(t,8,n,n,n,n,n,a=r?n:a);return i.placeholder=e.placeholder,i},Oa.curryRight=function e(t,a,r){var i=Qn(t,16,n,n,n,n,n,a=r?n:a);return i.placeholder=e.placeholder,i},Oa.debounce=jo,Oa.defaults=Al,Oa.defaultsDeep=El,Oa.defer=Mo,Oa.delay=Bo,Oa.difference=Ri,Oa.differenceBy=Hi,Oa.differenceWith=Gi,Oa.drop=function(e,t,a){var r=null==e?0:e.length;return r?en(e,(t=a||t===n?1:gl(t))<0?0:t,r):[]},Oa.dropRight=function(e,t,a){var r=null==e?0:e.length;return r?en(e,0,(t=r-(t=a||t===n?1:gl(t)))<0?0:t):[]},Oa.dropRightWhile=function(e,t){return e&&e.length?un(e,oi(t,3),!0,!0):[]},Oa.dropWhile=function(e,t){return e&&e.length?un(e,oi(t,3),!0):[]},Oa.fill=function(e,t,a,r){var i=null==e?0:e.length;return i?(a&&"number"!=typeof a&&bi(e,t,a)&&(a=0,r=i),function(e,t,a,r){var i=e.length;for((a=gl(a))<0&&(a=-a>i?0:i+a),(r=r===n||r>i?i:gl(r))<0&&(r+=i),r=a>r?0:fl(r);a<r;)e[a++]=t;return e}(e,t,a,r)):[]},Oa.filter=function(e,t){return(Ko(e)?xt:mr)(e,oi(t,3))},Oa.flatMap=function(e,t){return gr(_o(e,t),1)},Oa.flatMapDeep=function(e,t){return gr(_o(e,t),d)},Oa.flatMapDepth=function(e,t,a){return a=a===n?1:gl(a),gr(_o(e,t),a)},Oa.flatten=Ki,Oa.flattenDeep=function(e){return null!=e&&e.length?gr(e,d):[]},Oa.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===n?1:gl(t)):[]},Oa.flip=function(e){return Qn(e,512)},Oa.flow=as,Oa.flowRight=rs,Oa.fromPairs=function(e){for(var t=-1,a=null==e?0:e.length,r={};++t<a;){var n=e[t];r[n[0]]=n[1]}return r},Oa.functions=function(e){return null==e?[]:kr(e,jl(e))},Oa.functionsIn=function(e){return null==e?[]:kr(e,Ml(e))},Oa.groupBy=wo,Oa.initial=function(e){return null!=e&&e.length?en(e,0,-1):[]},Oa.intersection=qi,Oa.intersectionBy=Zi,Oa.intersectionWith=Qi,Oa.invert=zl,Oa.invertBy=Il,Oa.invokeMap=xo,Oa.iteratee=is,Oa.keyBy=So,Oa.keys=jl,Oa.keysIn=Ml,Oa.map=_o,Oa.mapKeys=function(e,t){var a={};return t=oi(t,3),vr(e,(function(e,r,n){rr(a,t(e,r,n),e)})),a},Oa.mapValues=function(e,t){var a={};return t=oi(t,3),vr(e,(function(e,r,n){rr(a,r,t(e,r,n))})),a},Oa.matches=function(e){return Nr(or(e,1))},Oa.matchesProperty=function(e,t){return Or(e,or(t,1))},Oa.memoize=Po,Oa.merge=Bl,Oa.mergeWith=Pl,Oa.method=os,Oa.methodOf=ls,Oa.mixin=ss,Oa.negate=Do,Oa.nthArg=function(e){return e=gl(e),qr((function(t){return Rr(t,e)}))},Oa.omit=Dl,Oa.omitBy=function(e,t){return Ol(e,Do(oi(t)))},Oa.once=function(e){return zo(2,e)},Oa.orderBy=function(e,t,a,r){return null==e?[]:(Ko(t)||(t=null==t?[]:[t]),Ko(a=r?n:a)||(a=null==a?[]:[a]),Hr(e,t,a))},Oa.over=ds,Oa.overArgs=No,Oa.overEvery=us,Oa.overSome=ps,Oa.partial=Oo,Oa.partialRight=Fo,Oa.partition=Ao,Oa.pick=Nl,Oa.pickBy=Ol,Oa.property=hs,Oa.propertyOf=function(e){return function(t){return null==e?n:wr(e,t)}},Oa.pull=Ji,Oa.pullAll=Xi,Oa.pullAllBy=function(e,t,a){return e&&e.length&&t&&t.length?Vr(e,t,oi(a,2)):e},Oa.pullAllWith=function(e,t,a){return e&&e.length&&t&&t.length?Vr(e,t,n,a):e},Oa.pullAt=$i,Oa.range=ms,Oa.rangeRight=gs,Oa.rearg=Ro,Oa.reject=function(e,t){return(Ko(e)?xt:mr)(e,Do(oi(t,3)))},Oa.remove=function(e,t){var a=[];if(!e||!e.length)return a;var r=-1,n=[],i=e.length;for(t=oi(t,3);++r<i;){var o=e[r];t(o,r,e)&&(a.push(o),n.push(r))}return Ur(e,n),a},Oa.rest=function(e,t){if("function"!=typeof e)throw new Ce(i);return qr(e,t=t===n?t:gl(t))},Oa.reverse=eo,Oa.sampleSize=function(e,t,a){return t=(a?bi(e,t,a):t===n)?1:gl(t),(Ko(e)?Ya:Qr)(e,t)},Oa.set=function(e,t,a){return null==e?e:Yr(e,t,a)},Oa.setWith=function(e,t,a,r){return r="function"==typeof r?r:n,null==e?e:Yr(e,t,a,r)},Oa.shuffle=function(e){return(Ko(e)?Ja:$r)(e)},Oa.slice=function(e,t,a){var r=null==e?0:e.length;return r?(a&&"number"!=typeof a&&bi(e,t,a)?(t=0,a=r):(t=null==t?0:gl(t),a=a===n?r:gl(a)),en(e,t,a)):[]},Oa.sortBy=Eo,Oa.sortedUniq=function(e){return e&&e.length?nn(e):[]},Oa.sortedUniqBy=function(e,t){return e&&e.length?nn(e,oi(t,2)):[]},Oa.split=function(e,t,a){return a&&"number"!=typeof a&&bi(e,t,a)&&(t=a=n),(a=a===n?h:a>>>0)?(e=yl(e))&&("string"==typeof t||null!=t&&!ol(t))&&!(t=ln(t))&&Xt(e)?yn(ia(e),0,a):e.split(t,a):[]},Oa.spread=function(e,t){if("function"!=typeof e)throw new Ce(i);return t=null==t?0:fa(gl(t),0),qr((function(a){var r=a[t],n=yn(a,0,t);return r&&Et(n,r),bt(e,this,n)}))},Oa.tail=function(e){var t=null==e?0:e.length;return t?en(e,1,t):[]},Oa.take=function(e,t,a){return e&&e.length?en(e,0,(t=a||t===n?1:gl(t))<0?0:t):[]},Oa.takeRight=function(e,t,a){var r=null==e?0:e.length;return r?en(e,(t=r-(t=a||t===n?1:gl(t)))<0?0:t,r):[]},Oa.takeRightWhile=function(e,t){return e&&e.length?un(e,oi(t,3),!1,!0):[]},Oa.takeWhile=function(e,t){return e&&e.length?un(e,oi(t,3)):[]},Oa.tap=function(e,t){return t(e),e},Oa.throttle=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw new Ce(i);return tl(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),jo(e,t,{leading:r,maxWait:t,trailing:n})},Oa.thru=mo,Oa.toArray=hl,Oa.toPairs=Fl,Oa.toPairsIn=Rl,Oa.toPath=function(e){return Ko(e)?At(e,Ni):cl(e)?[e]:Cn(Di(yl(e)))},Oa.toPlainObject=vl,Oa.transform=function(e,t,a){var r=Ko(e),n=r||Qo(e)||dl(e);if(t=oi(t,4),null==a){var i=e&&e.constructor;a=n?r?new i:[]:tl(e)&&Xo(i)?Fa(We(e)):{}}return(n?yt:vr)(e,(function(e,r,n){return t(a,e,r,n)})),a},Oa.unary=function(e){return To(e,1)},Oa.union=to,Oa.unionBy=ao,Oa.unionWith=ro,Oa.uniq=function(e){return e&&e.length?sn(e):[]},Oa.uniqBy=function(e,t){return e&&e.length?sn(e,oi(t,2)):[]},Oa.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?sn(e,n,t):[]},Oa.unset=function(e,t){return null==e||cn(e,t)},Oa.unzip=no,Oa.unzipWith=io,Oa.update=function(e,t,a){return null==e?e:dn(e,t,fn(a))},Oa.updateWith=function(e,t,a,r){return r="function"==typeof r?r:n,null==e?e:dn(e,t,fn(a),r)},Oa.values=Hl,Oa.valuesIn=function(e){return null==e?[]:Ut(e,Ml(e))},Oa.without=oo,Oa.words=Xl,Oa.wrap=function(e,t){return Oo(fn(t),e)},Oa.xor=lo,Oa.xorBy=so,Oa.xorWith=co,Oa.zip=uo,Oa.zipObject=function(e,t){return mn(e||[],t||[],$a)},Oa.zipObjectDeep=function(e,t){return mn(e||[],t||[],Yr)},Oa.zipWith=po,Oa.entries=Fl,Oa.entriesIn=Rl,Oa.extend=wl,Oa.extendWith=xl,ss(Oa,Oa),Oa.add=ys,Oa.attempt=$l,Oa.camelCase=Gl,Oa.capitalize=Vl,Oa.ceil=ks,Oa.clamp=function(e,t,a){return a===n&&(a=t,t=n),a!==n&&(a=(a=bl(a))==a?a:0),t!==n&&(t=(t=bl(t))==t?t:0),ir(bl(e),t,a)},Oa.clone=function(e){return or(e,4)},Oa.cloneDeep=function(e){return or(e,5)},Oa.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:n)},Oa.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:n)},Oa.conformsTo=function(e,t){return null==t||lr(e,t,jl(t))},Oa.deburr=Ul,Oa.defaultTo=function(e,t){return null==e||e!=e?t:e},Oa.divide=ws,Oa.endsWith=function(e,t,a){e=yl(e),t=ln(t);var r=e.length,i=a=a===n?r:ir(gl(a),0,r);return(a-=t.length)>=0&&e.slice(a,i)==t},Oa.eq=Ho,Oa.escape=function(e){return(e=yl(e))&&Z.test(e)?e.replace(W,Yt):e},Oa.escapeRegExp=function(e){return(e=yl(e))&&ae.test(e)?e.replace(te,"\\$&"):e},Oa.every=function(e,t,a){var r=Ko(e)?wt:pr;return a&&bi(e,t,a)&&(t=n),r(e,oi(t,3))},Oa.find=bo,Oa.findIndex=Vi,Oa.findKey=function(e,t){return Lt(e,oi(t,3),vr)},Oa.findLast=vo,Oa.findLastIndex=Ui,Oa.findLastKey=function(e,t){return Lt(e,oi(t,3),yr)},Oa.floor=xs,Oa.forEach=yo,Oa.forEachRight=ko,Oa.forIn=function(e,t){return null==e?e:fr(e,oi(t,3),Ml)},Oa.forInRight=function(e,t){return null==e?e:br(e,oi(t,3),Ml)},Oa.forOwn=function(e,t){return e&&vr(e,oi(t,3))},Oa.forOwnRight=function(e,t){return e&&yr(e,oi(t,3))},Oa.get=Cl,Oa.gt=Go,Oa.gte=Vo,Oa.has=function(e,t){return null!=e&&hi(e,t,Ar)},Oa.hasIn=Tl,Oa.head=Wi,Oa.identity=ns,Oa.includes=function(e,t,a,r){e=qo(e)?e:Hl(e),a=a&&!r?gl(a):0;var n=e.length;return a<0&&(a=fa(n+a,0)),sl(e)?a<=n&&e.indexOf(t,a)>-1:!!n&&Mt(e,t,a)>-1},Oa.indexOf=function(e,t,a){var r=null==e?0:e.length;if(!r)return-1;var n=null==a?0:gl(a);return n<0&&(n=fa(r+n,0)),Mt(e,t,n)},Oa.inRange=function(e,t,a){return t=ml(t),a===n?(a=t,t=0):a=ml(a),function(e,t,a){return e>=ba(t,a)&&e<fa(t,a)}(e=bl(e),t,a)},Oa.invoke=Ll,Oa.isArguments=Uo,Oa.isArray=Ko,Oa.isArrayBuffer=Wo,Oa.isArrayLike=qo,Oa.isArrayLikeObject=Zo,Oa.isBoolean=function(e){return!0===e||!1===e||al(e)&&Sr(e)==b},Oa.isBuffer=Qo,Oa.isDate=Yo,Oa.isElement=function(e){return al(e)&&1===e.nodeType&&!il(e)},Oa.isEmpty=function(e){if(null==e)return!0;if(qo(e)&&(Ko(e)||"string"==typeof e||"function"==typeof e.splice||Qo(e)||dl(e)||Uo(e)))return!e.length;var t=pi(e);if(t==x||t==C)return!e.size;if(wi(e))return!Br(e).length;for(var a in e)if(Me.call(e,a))return!1;return!0},Oa.isEqual=function(e,t){return Ir(e,t)},Oa.isEqualWith=function(e,t,a){var r=(a="function"==typeof a?a:n)?a(e,t):n;return r===n?Ir(e,t,n,a):!!r},Oa.isError=Jo,Oa.isFinite=function(e){return"number"==typeof e&&ha(e)},Oa.isFunction=Xo,Oa.isInteger=$o,Oa.isLength=el,Oa.isMap=rl,Oa.isMatch=function(e,t){return e===t||Lr(e,t,si(t))},Oa.isMatchWith=function(e,t,a){return a="function"==typeof a?a:n,Lr(e,t,si(t),a)},Oa.isNaN=function(e){return nl(e)&&e!=+e},Oa.isNative=function(e){if(ki(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Oa.isNil=function(e){return null==e},Oa.isNull=function(e){return null===e},Oa.isNumber=nl,Oa.isObject=tl,Oa.isObjectLike=al,Oa.isPlainObject=il,Oa.isRegExp=ol,Oa.isSafeInteger=function(e){return $o(e)&&e>=-9007199254740991&&e<=u},Oa.isSet=ll,Oa.isString=sl,Oa.isSymbol=cl,Oa.isTypedArray=dl,Oa.isUndefined=function(e){return e===n},Oa.isWeakMap=function(e){return al(e)&&pi(e)==I},Oa.isWeakSet=function(e){return al(e)&&"[object WeakSet]"==Sr(e)},Oa.join=function(e,t){return null==e?"":ma.call(e,t)},Oa.kebabCase=Kl,Oa.last=Yi,Oa.lastIndexOf=function(e,t,a){var r=null==e?0:e.length;if(!r)return-1;var i=r;return a!==n&&(i=(i=gl(a))<0?fa(r+i,0):ba(i,r-1)),t==t?function(e,t,a){for(var r=a+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Pt,i,!0)},Oa.lowerCase=Wl,Oa.lowerFirst=ql,Oa.lt=ul,Oa.lte=pl,Oa.max=function(e){return e&&e.length?hr(e,ns,_r):n},Oa.maxBy=function(e,t){return e&&e.length?hr(e,oi(t,2),_r):n},Oa.mean=function(e){return Dt(e,ns)},Oa.meanBy=function(e,t){return Dt(e,oi(t,2))},Oa.min=function(e){return e&&e.length?hr(e,ns,Pr):n},Oa.minBy=function(e,t){return e&&e.length?hr(e,oi(t,2),Pr):n},Oa.stubArray=fs,Oa.stubFalse=bs,Oa.stubObject=function(){return{}},Oa.stubString=function(){return""},Oa.stubTrue=function(){return!0},Oa.multiply=Ss,Oa.nth=function(e,t){return e&&e.length?Rr(e,gl(t)):n},Oa.noConflict=function(){return it._===this&&(it._=Oe),this},Oa.noop=cs,Oa.now=Co,Oa.pad=function(e,t,a){e=yl(e);var r=(t=gl(t))?na(e):0;if(!t||r>=t)return e;var n=(t-r)/2;return Gn(da(n),a)+e+Gn(ca(n),a)},Oa.padEnd=function(e,t,a){e=yl(e);var r=(t=gl(t))?na(e):0;return t&&r<t?e+Gn(t-r,a):e},Oa.padStart=function(e,t,a){e=yl(e);var r=(t=gl(t))?na(e):0;return t&&r<t?Gn(t-r,a)+e:e},Oa.parseInt=function(e,t,a){return a||null==t?t=0:t&&(t=+t),ya(yl(e).replace(re,""),t||0)},Oa.random=function(e,t,a){if(a&&"boolean"!=typeof a&&bi(e,t,a)&&(t=a=n),a===n&&("boolean"==typeof t?(a=t,t=n):"boolean"==typeof e&&(a=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ml(e),t===n?(t=e,e=0):t=ml(t)),e>t){var r=e;e=t,t=r}if(a||e%1||t%1){var i=ka();return ba(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Oa.reduce=function(e,t,a){var r=Ko(e)?Ct:Ft,n=arguments.length<3;return r(e,oi(t,4),a,n,dr)},Oa.reduceRight=function(e,t,a){var r=Ko(e)?Tt:Ft,n=arguments.length<3;return r(e,oi(t,4),a,n,ur)},Oa.repeat=function(e,t,a){return t=(a?bi(e,t,a):t===n)?1:gl(t),Wr(yl(e),t)},Oa.replace=function(){var e=arguments,t=yl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Oa.result=function(e,t,a){var r=-1,i=(t=bn(t,e)).length;for(i||(i=1,e=n);++r<i;){var o=null==e?n:e[Ni(t[r])];o===n&&(r=i,o=a),e=Xo(o)?o.call(e):o}return e},Oa.round=_s,Oa.runInContext=e,Oa.sample=function(e){return(Ko(e)?Qa:Zr)(e)},Oa.size=function(e){if(null==e)return 0;if(qo(e))return sl(e)?na(e):e.length;var t=pi(e);return t==x||t==C?e.size:Br(e).length},Oa.snakeCase=Zl,Oa.some=function(e,t,a){var r=Ko(e)?zt:tn;return a&&bi(e,t,a)&&(t=n),r(e,oi(t,3))},Oa.sortedIndex=function(e,t){return an(e,t)},Oa.sortedIndexBy=function(e,t,a){return rn(e,t,oi(a,2))},Oa.sortedIndexOf=function(e,t){var a=null==e?0:e.length;if(a){var r=an(e,t);if(r<a&&Ho(e[r],t))return r}return-1},Oa.sortedLastIndex=function(e,t){return an(e,t,!0)},Oa.sortedLastIndexBy=function(e,t,a){return rn(e,t,oi(a,2),!0)},Oa.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var a=an(e,t,!0)-1;if(Ho(e[a],t))return a}return-1},Oa.startCase=Ql,Oa.startsWith=function(e,t,a){return e=yl(e),a=null==a?0:ir(gl(a),0,e.length),t=ln(t),e.slice(a,a+t.length)==t},Oa.subtract=As,Oa.sum=function(e){return e&&e.length?Rt(e,ns):0},Oa.sumBy=function(e,t){return e&&e.length?Rt(e,oi(t,2)):0},Oa.template=function(e,t,a){var r=Oa.templateSettings;a&&bi(e,t,a)&&(t=n),e=yl(e),t=xl({},t,r,Yn);var i,o,l=xl({},t.imports,r.imports,Yn),s=jl(l),c=Ut(l,s),d=0,u=t.interpolate||ye,p="__p += '",h=Ae((t.escape||ye).source+"|"+u.source+"|"+(u===J?ue:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),m="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(h,(function(t,a,r,n,l,s){return r||(r=n),p+=e.slice(d,s).replace(ke,Jt),a&&(i=!0,p+="' +\n__e("+a+") +\n'"),l&&(o=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=s+t.length,t})),p+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(G,""):p).replace(V,"$1").replace(U,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var f=$l((function(){return xe(s,m+"return "+p).apply(n,c)}));if(f.source=p,Jo(f))throw f;return f},Oa.times=function(e,t){if((e=gl(e))<1||e>u)return[];var a=h,r=ba(e,h);t=oi(t),e-=h;for(var n=Ht(r,t);++a<e;)t(a);return n},Oa.toFinite=ml,Oa.toInteger=gl,Oa.toLength=fl,Oa.toLower=function(e){return yl(e).toLowerCase()},Oa.toNumber=bl,Oa.toSafeInteger=function(e){return e?ir(gl(e),-9007199254740991,u):0===e?e:0},Oa.toString=yl,Oa.toUpper=function(e){return yl(e).toUpperCase()},Oa.trim=function(e,t,a){if((e=yl(e))&&(a||t===n))return Gt(e);if(!e||!(t=ln(t)))return e;var r=ia(e),i=ia(t);return yn(r,Wt(r,i),qt(r,i)+1).join("")},Oa.trimEnd=function(e,t,a){if((e=yl(e))&&(a||t===n))return e.slice(0,oa(e)+1);if(!e||!(t=ln(t)))return e;var r=ia(e);return yn(r,0,qt(r,ia(t))+1).join("")},Oa.trimStart=function(e,t,a){if((e=yl(e))&&(a||t===n))return e.replace(re,"");if(!e||!(t=ln(t)))return e;var r=ia(e);return yn(r,Wt(r,ia(t))).join("")},Oa.truncate=function(e,t){var a=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;a="length"in t?gl(t.length):a,r="omission"in t?ln(t.omission):r}var o=(e=yl(e)).length;if(Xt(e)){var l=ia(e);o=l.length}if(a>=o)return e;var s=a-na(r);if(s<1)return r;var c=l?yn(l,0,s).join(""):e.slice(0,s);if(i===n)return c+r;if(l&&(s+=c.length-s),ol(i)){if(e.slice(s).search(i)){var d,u=c;for(i.global||(i=Ae(i.source,yl(pe.exec(i))+"g")),i.lastIndex=0;d=i.exec(u);)var p=d.index;c=c.slice(0,p===n?s:p)}}else if(e.indexOf(ln(i),s)!=s){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Oa.unescape=function(e){return(e=yl(e))&&q.test(e)?e.replace(K,la):e},Oa.uniqueId=function(e){var t=++Be;return yl(e)+t},Oa.upperCase=Yl,Oa.upperFirst=Jl,Oa.each=yo,Oa.eachRight=ko,Oa.first=Wi,ss(Oa,(vs={},vr(Oa,(function(e,t){Me.call(Oa.prototype,t)||(vs[t]=e)})),vs),{chain:!1}),Oa.VERSION="4.17.21",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Oa[e].placeholder=Oa})),yt(["drop","take"],(function(e,t){Ga.prototype[e]=function(a){a=a===n?1:fa(gl(a),0);var r=this.__filtered__&&!t?new Ga(this):this.clone();return r.__filtered__?r.__takeCount__=ba(a,r.__takeCount__):r.__views__.push({size:ba(a,h),type:e+(r.__dir__<0?"Right":"")}),r},Ga.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["filter","map","takeWhile"],(function(e,t){var a=t+1,r=1==a||3==a;Ga.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oi(e,3),type:a}),t.__filtered__=t.__filtered__||r,t}})),yt(["head","last"],(function(e,t){var a="take"+(t?"Right":"");Ga.prototype[e]=function(){return this[a](1).value()[0]}})),yt(["initial","tail"],(function(e,t){var a="drop"+(t?"":"Right");Ga.prototype[e]=function(){return this.__filtered__?new Ga(this):this[a](1)}})),Ga.prototype.compact=function(){return this.filter(ns)},Ga.prototype.find=function(e){return this.filter(e).head()},Ga.prototype.findLast=function(e){return this.reverse().find(e)},Ga.prototype.invokeMap=qr((function(e,t){return"function"==typeof e?new Ga(this):this.map((function(a){return Tr(a,e,t)}))})),Ga.prototype.reject=function(e){return this.filter(Do(oi(e)))},Ga.prototype.slice=function(e,t){e=gl(e);var a=this;return a.__filtered__&&(e>0||t<0)?new Ga(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==n&&(a=(t=gl(t))<0?a.dropRight(-t):a.take(t-e)),a)},Ga.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ga.prototype.toArray=function(){return this.take(h)},vr(Ga.prototype,(function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Oa[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Oa.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof Ga,c=l[0],d=s||Ko(t),u=function(e){var t=i.apply(Oa,Et([e],l));return r&&p?t[0]:t};d&&a&&"function"==typeof c&&1!=c.length&&(s=d=!1);var p=this.__chain__,h=!!this.__actions__.length,m=o&&!p,g=s&&!h;if(!o&&d){t=g?t:new Ga(this);var f=e.apply(t,l);return f.__actions__.push({func:mo,args:[u],thisArg:n}),new Ha(f,p)}return m&&g?e.apply(this,l):(f=this.thru(u),m?r?f.value()[0]:f.value():f)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Oa.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(Ko(n)?n:[],e)}return this[a]((function(a){return t.apply(Ko(a)?a:[],e)}))}})),vr(Ga.prototype,(function(e,t){var a=Oa[t];if(a){var r=a.name+"";Me.call(za,r)||(za[r]=[]),za[r].push({name:t,func:a})}})),za[On(n,2).name]=[{name:"wrapper",func:n}],Ga.prototype.clone=function(){var e=new Ga(this.__wrapped__);return e.__actions__=Cn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Cn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Cn(this.__views__),e},Ga.prototype.reverse=function(){if(this.__filtered__){var e=new Ga(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ga.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,a=Ko(e),r=t<0,n=a?e.length:0,i=function(e,t,a){for(var r=-1,n=a.length;++r<n;){var i=a[r],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=ba(t,e+o);break;case"takeRight":e=fa(e,t-o)}}return{start:e,end:t}}(0,n,this.__views__),o=i.start,l=i.end,s=l-o,c=r?l:o-1,d=this.__iteratees__,u=d.length,p=0,h=ba(s,this.__takeCount__);if(!a||!r&&n==s&&h==s)return pn(e,this.__actions__);var m=[];e:for(;s--&&p<h;){for(var g=-1,f=e[c+=t];++g<u;){var b=d[g],v=b.iteratee,y=b.type,k=v(f);if(2==y)f=k;else if(!k){if(1==y)continue e;break e}}m[p++]=f}return m},Oa.prototype.at=go,Oa.prototype.chain=function(){return ho(this)},Oa.prototype.commit=function(){return new Ha(this.value(),this.__chain__)},Oa.prototype.next=function(){this.__values__===n&&(this.__values__=hl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Oa.prototype.plant=function(e){for(var t,a=this;a instanceof Ra;){var r=Fi(a);r.__index__=0,r.__values__=n,t?i.__wrapped__=r:t=r;var i=r;a=a.__wrapped__}return i.__wrapped__=e,t},Oa.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ga){var t=e;return this.__actions__.length&&(t=new Ga(this)),(t=t.reverse()).__actions__.push({func:mo,args:[eo],thisArg:n}),new Ha(t,this.__chain__)}return this.thru(eo)},Oa.prototype.toJSON=Oa.prototype.valueOf=Oa.prototype.value=function(){return pn(this.__wrapped__,this.__actions__)},Oa.prototype.first=Oa.prototype.head,ot&&(Oa.prototype[ot]=function(){return this}),Oa}();it._=sa,(r=function(){return sa}.call(t,a,t,e))===n||(e.exports=r)}.call(this)},4920:e=>{"use strict";var t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,l,s=n(e),c=1;c<arguments.length;c++){for(var d in o=Object(arguments[c]))a.call(o,d)&&(s[d]=o[d]);if(t){l=t(o);for(var u=0;u<l.length;u++)r.call(o,l[u])&&(s[l[u]]=o[l[u]])}}return s}},6934:(e,t,a)=>{"use strict";var r={};(0,a(319).assign)(r,a(5186),a(9254),a(3417)),e.exports=r},5186:(e,t,a)=>{"use strict";var r=a(5926),n=a(319),i=a(1519),o=a(994),l=a(13),s=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=n.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 a=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==a)throw new Error(o[a]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var d;if(d="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===s.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(a=r.deflateSetDictionary(this.strm,d)))throw new Error(o[a]);this._dict_set=!0}}function d(e,t){var a=new c(t);if(a.push(e,!0),a.err)throw a.msg||o[a.err];return a.result}c.prototype.push=function(e,t){var a,o,l=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?l.input=i.string2buf(e):"[object ArrayBuffer]"===s.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 n.Buf8(c),l.next_out=0,l.avail_out=c),1!==(a=r.deflate(l,o))&&0!==a)return this.onEnd(a),this.ended=!0,!1;0!==l.avail_out&&(0!==l.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(i.buf2binstring(n.shrinkBuf(l.output,l.next_out))):this.onData(n.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||0===l.avail_out)&&1!==a);return 4===o?(a=r.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==o||(this.onEnd(0),l.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=c,t.deflate=d,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,d(e,t)}},9254:(e,t,a)=>{"use strict";var r=a(1361),n=a(319),i=a(1519),o=a(3417),l=a(994),s=a(13),c=a(4414),d=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=n.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 s,this.strm.avail_out=0;var a=r.inflateInit2(this.strm,t.windowBits);if(a!==o.Z_OK)throw new Error(l[a]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(a=r.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(l[a])}function p(e,t){var a=new u(t);if(a.push(e,!0),a.err)throw a.msg||l[a.err];return a.result}u.prototype.push=function(e,t){var a,l,s,c,u,p=this.strm,h=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;l=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new n.Buf8(h),p.next_out=0,p.avail_out=h),(a=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(a=r.inflateSetDictionary(this.strm,m)),a===o.Z_BUF_ERROR&&!0===g&&(a=o.Z_OK,g=!1),a!==o.Z_STREAM_END&&a!==o.Z_OK)return this.onEnd(a),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&a!==o.Z_STREAM_END&&(0!==p.avail_in||l!==o.Z_FINISH&&l!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(s=i.utf8border(p.output,p.next_out),c=p.next_out-s,u=i.buf2string(p.output,s),p.next_out=c,p.avail_out=h-c,c&&n.arraySet(p.output,p.output,s,c,0),this.onData(u)):this.onData(n.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(g=!0)}while((p.avail_in>0||0===p.avail_out)&&a!==o.Z_STREAM_END);return a===o.Z_STREAM_END&&(l=o.Z_FINISH),l===o.Z_FINISH?(a=r.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===o.Z_OK):l!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),p.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=u,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},319:(e,t)=>{"use strict";var a="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 a=t.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var n in a)r(a,n)&&(e[n]=a[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,a,r,n){if(t.subarray&&e.subarray)e.set(t.subarray(a,a+r),n);else for(var i=0;i<r;i++)e[n+i]=t[a+i]},flattenChunks:function(e){var t,a,r,n,i,o;for(r=0,t=0,a=e.length;t<a;t++)r+=e[t].length;for(o=new Uint8Array(r),n=0,t=0,a=e.length;t<a;t++)i=e[t],o.set(i,n),n+=i.length;return o}},i={arraySet:function(e,t,a,r,n){for(var i=0;i<r;i++)e[n+i]=t[a+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(a)},1519:(e,t,a)=>{"use strict";var r=a(319),n=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var o=new r.Buf8(256),l=0;l<256;l++)o[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function s(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&n))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var a="",o=0;o<t;o++)a+=String.fromCharCode(e[o]);return a}o[254]=o[254]=1,t.string2buf=function(e){var t,a,n,i,o,l=e.length,s=0;for(i=0;i<l;i++)55296==(64512&(a=e.charCodeAt(i)))&&i+1<l&&56320==(64512&(n=e.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(n-56320),i++),s+=a<128?1:a<2048?2:a<65536?3:4;for(t=new r.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(a=e.charCodeAt(i)))&&i+1<l&&56320==(64512&(n=e.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(n-56320),i++),a<128?t[o++]=a:a<2048?(t[o++]=192|a>>>6,t[o++]=128|63&a):a<65536?(t[o++]=224|a>>>12,t[o++]=128|a>>>6&63,t[o++]=128|63&a):(t[o++]=240|a>>>18,t[o++]=128|a>>>12&63,t[o++]=128|a>>>6&63,t[o++]=128|63&a);return t},t.buf2binstring=function(e){return s(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),a=0,n=t.length;a<n;a++)t[a]=e.charCodeAt(a);return t},t.buf2string=function(e,t){var a,r,n,i,l=t||e.length,c=new Array(2*l);for(r=0,a=0;a<l;)if((n=e[a++])<128)c[r++]=n;else if((i=o[n])>4)c[r++]=65533,a+=i-1;else{for(n&=2===i?31:3===i?15:7;i>1&&a<l;)n=n<<6|63&e[a++],i--;i>1?c[r++]=65533:n<65536?c[r++]=n:(n-=65536,c[r++]=55296|n>>10&1023,c[r++]=56320|1023&n)}return s(c,r)},t.utf8border=function(e,t){var a;for((t=t||e.length)>e.length&&(t=e.length),a=t-1;a>=0&&128==(192&e[a]);)a--;return a<0||0===a?t:a+o[e[a]]>t?a:t}},9643:e=>{"use strict";e.exports=function(e,t,a,r){for(var n=65535&e|0,i=e>>>16&65535|0,o=0;0!==a;){a-=o=a>2e3?2e3:a;do{i=i+(n=n+t[r++]|0)|0}while(--o);n%=65521,i%=65521}return n|i<<16|0}},3417: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}},7690:e=>{"use strict";var t=function(){for(var e,t=[],a=0;a<256;a++){e=a;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t}();e.exports=function(e,a,r,n){var i=t,o=n+r;e^=-1;for(var l=n;l<o;l++)e=e>>>8^i[255&(e^a[l])];return-1^e}},5926:(e,t,a)=>{"use strict";var r,n=a(319),i=a(762),o=a(9643),l=a(7690),s=a(994),c=-2,d=258,u=262,p=103,h=113,m=666;function g(e,t){return e.msg=s[t],t}function f(e){return(e<<1)-(e>4?9:0)}function b(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,a=t.pending;a>e.avail_out&&(a=e.avail_out),0!==a&&(n.arraySet(e.output,t.pending_buf,t.pending_out,a,e.next_out),e.next_out+=a,t.pending_out+=a,e.total_out+=a,e.avail_out-=a,t.pending-=a,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,v(e.strm)}function k(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 x(e,t){var a,r,n=e.max_chain_length,i=e.strstart,o=e.prev_length,l=e.nice_match,s=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,c=e.window,p=e.w_mask,h=e.prev,m=e.strstart+d,g=c[i+o-1],f=c[i+o];e.prev_length>=e.good_match&&(n>>=2),l>e.lookahead&&(l=e.lookahead);do{if(c[(a=t)+o]===f&&c[a+o-1]===g&&c[a]===c[i]&&c[++a]===c[i+1]){i+=2,a++;do{}while(c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&c[++i]===c[++a]&&i<m);if(r=d-(m-i),i=m-d,r>o){if(e.match_start=t,o=r,r>=l)break;g=c[i+o-1],f=c[i+o]}}}while((t=h[t&p])>s&&0!=--n);return o<=e.lookahead?o:e.lookahead}function S(e){var t,a,r,i,s,c,d,p,h,m,g=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-u)){n.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=a=e.hash_size;do{r=e.head[--t],e.head[t]=r>=g?r-g:0}while(--a);t=a=g;do{r=e.prev[--t],e.prev[t]=r>=g?r-g:0}while(--a);i+=g}if(0===e.strm.avail_in)break;if(c=e.strm,d=e.window,p=e.strstart+e.lookahead,h=i,m=void 0,(m=c.avail_in)>h&&(m=h),a=0===m?0:(c.avail_in-=m,n.arraySet(d,c.input,c.next_in,m,p),1===c.state.wrap?c.adler=o(c.adler,d,m,p):2===c.state.wrap&&(c.adler=l(c.adler,d,m,p)),c.next_in+=m,c.total_in+=m,m),e.lookahead+=a,e.lookahead+e.insert>=3)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+3-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<u&&0!==e.strm.avail_in)}function _(e,t){for(var a,r;;){if(e.lookahead<u){if(S(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(a=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==a&&e.strstart-a<=e.w_size-u&&(e.match_length=x(e,a)),e.match_length>=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<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,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}function A(e,t){for(var a,r,n;;){if(e.lookahead<u){if(S(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(a=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==a&&e.prev_length<e.max_lazy_match&&e.strstart-a<=e.w_size-u&&(e.match_length=x(e,a),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){n=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<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,a=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&y(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,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}function E(e,t,a,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=a,this.max_chain=r,this.func=n}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(1146),this.dyn_dtree=new n.Buf16(122),this.bl_tree=new n.Buf16(78),b(this.dyn_ltree),b(this.dyn_dtree),b(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(16),this.heap=new n.Buf16(573),b(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(573),b(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):g(e,c)}function z(e){var t,a=T(e);return 0===a&&((t=e.state).window_size=2*t.w_size,b(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),a}function I(e,t,a,r,i,o){if(!e)return c;var l=1;if(-1===t&&(t=6),r<0?(l=0,r=-r):r>15&&(l=2,r-=16),i<1||i>9||8!==a||r<8||r>15||t<0||t>9||o<0||o>4)return g(e,c);8===r&&(r=9);var s=new C;return e.state=s,s.strm=e,s.wrap=l,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new n.Buf8(2*s.w_size),s.head=new n.Buf16(s.hash_size),s.prev=new n.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new n.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=a,z(e)}r=[new E(0,0,0,0,(function(e,t){var a=65535;for(a>e.pending_buf_size-5&&(a=e.pending_buf_size-5);;){if(e.lookahead<=1){if(S(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+a;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-u&&(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 E(4,4,8,4,_),new E(4,5,16,8,_),new E(4,6,32,32,_),new E(4,4,16,16,A),new E(8,16,32,32,A),new E(8,16,128,128,A),new E(8,32,128,256,A),new E(32,128,258,1024,A),new E(32,258,258,4096,A)],t.deflateInit=function(e,t){return I(e,t,8,15,8,0)},t.deflateInit2=I,t.deflateReset=z,t.deflateResetKeep=T,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var a,n,o,s;if(!e||!e.state||t>5||t<0)return e?g(e,c):c;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===m&&4!==t)return g(e,0===e.avail_out?-5:c);if(n.strm=e,a=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,k(n,31),k(n,139),k(n,8),n.gzhead?(k(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),k(n,255&n.gzhead.time),k(n,n.gzhead.time>>8&255),k(n,n.gzhead.time>>16&255),k(n,n.gzhead.time>>24&255),k(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),k(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(k(n,255&n.gzhead.extra.length),k(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=l(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(k(n,0),k(n,0),k(n,0),k(n,0),k(n,0),k(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),k(n,3),n.status=h);else{var u=8+(n.w_bits-8<<4)<<8;u|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(u|=32),u+=31-u%31,n.status=h,w(n,u),0!==n.strstart&&(w(n,e.adler>>>16),w(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),v(e),o=n.pending,n.pending!==n.pending_buf_size));)k(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),v(e),o=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,k(n,s)}while(0!==s);n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),v(e),o=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,k(n,s)}while(0!==s);n.gzhead.hcrc&&n.pending>o&&(e.adler=l(e.adler,n.pending_buf,n.pending-o,o)),0===s&&(n.status=p)}else n.status=p;if(n.status===p&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&v(e),n.pending+2<=n.pending_buf_size&&(k(n,255&e.adler),k(n,e.adler>>8&255),e.adler=0,n.status=h)):n.status=h),0!==n.pending){if(v(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&f(t)<=f(a)&&4!==t)return g(e,-5);if(n.status===m&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==m){var x=2===n.strategy?function(e,t){for(var a;;){if(0===e.lookahead&&(S(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,a=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,a&&(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}(n,t):3===n.strategy?function(e,t){for(var a,r,n,o,l=e.window;;){if(e.lookahead<=d){if(S(e),e.lookahead<=d&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=l[n=e.strstart-1])===l[++n]&&r===l[++n]&&r===l[++n]){o=e.strstart+d;do{}while(r===l[++n]&&r===l[++n]&&r===l[++n]&&r===l[++n]&&r===l[++n]&&r===l[++n]&&r===l[++n]&&r===l[++n]&&n<o);e.match_length=d-(o-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(a=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(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}(n,t):r[n.level].func(n,t);if(3!==x&&4!==x||(n.status=m),1===x||3===x)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===x&&(1===t?i._tr_align(n):5!==t&&(i._tr_stored_block(n,0,0,!1),3===t&&(b(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),v(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(k(n,255&e.adler),k(n,e.adler>>8&255),k(n,e.adler>>16&255),k(n,e.adler>>24&255),k(n,255&e.total_in),k(n,e.total_in>>8&255),k(n,e.total_in>>16&255),k(n,e.total_in>>24&255)):(w(n,e.adler>>>16),w(n,65535&e.adler)),v(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.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!==p&&t!==h&&t!==m?g(e,c):(e.state=null,t===h?g(e,-3):0):c},t.deflateSetDictionary=function(e,t){var a,r,i,l,s,d,u,p,h=t.length;if(!e||!e.state)return c;if(2===(l=(a=e.state).wrap)||1===l&&42!==a.status||a.lookahead)return c;for(1===l&&(e.adler=o(e.adler,t,h,0)),a.wrap=0,h>=a.w_size&&(0===l&&(b(a.head),a.strstart=0,a.block_start=0,a.insert=0),p=new n.Buf8(a.w_size),n.arraySet(p,t,h-a.w_size,a.w_size,0),t=p,h=a.w_size),s=e.avail_in,d=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,S(a);a.lookahead>=3;){r=a.strstart,i=a.lookahead-2;do{a.ins_h=(a.ins_h<<a.hash_shift^a.window[r+3-1])&a.hash_mask,a.prev[r&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=r,r++}while(--i);a.strstart=r,a.lookahead=2,S(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,e.next_in=d,e.input=u,e.avail_in=s,a.wrap=l,0},t.deflateInfo="pako deflate (from Nodeca project)"},4414:e=>{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},3030:e=>{"use strict";e.exports=function(e,t){var a,r,n,i,o,l,s,c,d,u,p,h,m,g,f,b,v,y,k,w,x,S,_,A,E;a=e.state,r=e.next_in,A=e.input,n=r+(e.avail_in-5),i=e.next_out,E=e.output,o=i-(t-e.avail_out),l=i+(e.avail_out-257),s=a.dmax,c=a.wsize,d=a.whave,u=a.wnext,p=a.window,h=a.hold,m=a.bits,g=a.lencode,f=a.distcode,b=(1<<a.lenbits)-1,v=(1<<a.distbits)-1;e:do{m<15&&(h+=A[r++]<<m,m+=8,h+=A[r++]<<m,m+=8),y=g[h&b];t:for(;;){if(h>>>=k=y>>>24,m-=k,0==(k=y>>>16&255))E[i++]=65535&y;else{if(!(16&k)){if(0==(64&k)){y=g[(65535&y)+(h&(1<<k)-1)];continue t}if(32&k){a.mode=12;break e}e.msg="invalid literal/length code",a.mode=30;break e}w=65535&y,(k&=15)&&(m<k&&(h+=A[r++]<<m,m+=8),w+=h&(1<<k)-1,h>>>=k,m-=k),m<15&&(h+=A[r++]<<m,m+=8,h+=A[r++]<<m,m+=8),y=f[h&v];a:for(;;){if(h>>>=k=y>>>24,m-=k,!(16&(k=y>>>16&255))){if(0==(64&k)){y=f[(65535&y)+(h&(1<<k)-1)];continue a}e.msg="invalid distance code",a.mode=30;break e}if(x=65535&y,m<(k&=15)&&(h+=A[r++]<<m,(m+=8)<k&&(h+=A[r++]<<m,m+=8)),(x+=h&(1<<k)-1)>s){e.msg="invalid distance too far back",a.mode=30;break e}if(h>>>=k,m-=k,x>(k=i-o)){if((k=x-k)>d&&a.sane){e.msg="invalid distance too far back",a.mode=30;break e}if(S=0,_=p,0===u){if(S+=c-k,k<w){w-=k;do{E[i++]=p[S++]}while(--k);S=i-x,_=E}}else if(u<k){if(S+=c+u-k,(k-=u)<w){w-=k;do{E[i++]=p[S++]}while(--k);if(S=0,u<w){w-=k=u;do{E[i++]=p[S++]}while(--k);S=i-x,_=E}}}else if(S+=u-k,k<w){w-=k;do{E[i++]=p[S++]}while(--k);S=i-x,_=E}for(;w>2;)E[i++]=_[S++],E[i++]=_[S++],E[i++]=_[S++],w-=3;w&&(E[i++]=_[S++],w>1&&(E[i++]=_[S++]))}else{S=i-x;do{E[i++]=E[S++],E[i++]=E[S++],E[i++]=E[S++],w-=3}while(w>2);w&&(E[i++]=E[S++],w>1&&(E[i++]=E[S++]))}break}}break}}while(r<n&&i<l);r-=w=m>>3,h&=(1<<(m-=w<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=i<l?l-i+257:257-(i-l),a.hold=h,a.bits=m}},1361:(e,t,a)=>{"use strict";var r=a(319),n=a(9643),i=a(7690),o=a(3030),l=a(9853),s=-2,c=12,d=30;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){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 h(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):s}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):s}function g(e,t){var a,r;return e&&e.state?(r=e.state,t<0?(a=0,t=-t):(a=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?s:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=a,r.wbits=t,m(e))):s}function f(e,t){var a,r;return e?(r=new p,e.state=r,r.window=null,0!==(a=g(e,t))&&(e.state=null),a):s}var b,v,y=!0;function k(e){if(y){var t;for(b=new r.Buf32(512),v=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,b,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;l(2,e.lens,0,32,v,0,e.work,{bits:5}),y=!1}e.lencode=b,e.lenbits=9,e.distcode=v,e.distbits=5}function w(e,t,a,n){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),n>=o.wsize?(r.arraySet(o.window,t,a-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),r.arraySet(o.window,t,a-n,i,o.wnext),(n-=i)?(r.arraySet(o.window,t,a-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}t.inflateReset=m,t.inflateReset2=g,t.inflateResetKeep=h,t.inflateInit=function(e){return f(e,15)},t.inflateInit2=f,t.inflate=function(e,t){var a,p,h,m,g,f,b,v,y,x,S,_,A,E,C,T,z,I,L,j,M,B,P,D,N=0,O=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return s;(a=e.state).mode===c&&(a.mode=13),g=e.next_out,h=e.output,b=e.avail_out,m=e.next_in,p=e.input,f=e.avail_in,v=a.hold,y=a.bits,x=f,S=b,B=0;e:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;y<16;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(2&a.wrap&&35615===v){a.check=0,O[0]=255&v,O[1]=v>>>8&255,a.check=i(a.check,O,2,0),v=0,y=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",a.mode=d;break}if(8!=(15&v)){e.msg="unknown compression method",a.mode=d;break}if(y-=4,M=8+(15&(v>>>=4)),0===a.wbits)a.wbits=M;else if(M>a.wbits){e.msg="invalid window size",a.mode=d;break}a.dmax=1<<M,e.adler=a.check=1,a.mode=512&v?10:c,v=0,y=0;break;case 2:for(;y<16;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(a.flags=v,8!=(255&a.flags)){e.msg="unknown compression method",a.mode=d;break}if(57344&a.flags){e.msg="unknown header flags set",a.mode=d;break}a.head&&(a.head.text=v>>8&1),512&a.flags&&(O[0]=255&v,O[1]=v>>>8&255,a.check=i(a.check,O,2,0)),v=0,y=0,a.mode=3;case 3:for(;y<32;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.head&&(a.head.time=v),512&a.flags&&(O[0]=255&v,O[1]=v>>>8&255,O[2]=v>>>16&255,O[3]=v>>>24&255,a.check=i(a.check,O,4,0)),v=0,y=0,a.mode=4;case 4:for(;y<16;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.head&&(a.head.xflags=255&v,a.head.os=v>>8),512&a.flags&&(O[0]=255&v,O[1]=v>>>8&255,a.check=i(a.check,O,2,0)),v=0,y=0,a.mode=5;case 5:if(1024&a.flags){for(;y<16;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.length=v,a.head&&(a.head.extra_len=v),512&a.flags&&(O[0]=255&v,O[1]=v>>>8&255,a.check=i(a.check,O,2,0)),v=0,y=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&((_=a.length)>f&&(_=f),_&&(a.head&&(M=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),r.arraySet(a.head.extra,p,m,_,M)),512&a.flags&&(a.check=i(a.check,p,_,m)),f-=_,m+=_,a.length-=_),a.length))break e;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===f)break e;_=0;do{M=p[m+_++],a.head&&M&&a.length<65536&&(a.head.name+=String.fromCharCode(M))}while(M&&_<f);if(512&a.flags&&(a.check=i(a.check,p,_,m)),f-=_,m+=_,M)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(0===f)break e;_=0;do{M=p[m+_++],a.head&&M&&a.length<65536&&(a.head.comment+=String.fromCharCode(M))}while(M&&_<f);if(512&a.flags&&(a.check=i(a.check,p,_,m)),f-=_,m+=_,M)break e}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;y<16;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(v!==(65535&a.check)){e.msg="header crc mismatch",a.mode=d;break}v=0,y=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=c;break;case 10:for(;y<32;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}e.adler=a.check=u(v),v=0,y=0,a.mode=11;case 11:if(0===a.havedict)return e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=f,a.hold=v,a.bits=y,2;e.adler=a.check=1,a.mode=c;case c:if(5===t||6===t)break e;case 13:if(a.last){v>>>=7&y,y-=7&y,a.mode=27;break}for(;y<3;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}switch(a.last=1&v,y-=1,3&(v>>>=1)){case 0:a.mode=14;break;case 1:if(k(a),a.mode=20,6===t){v>>>=2,y-=2;break e}break;case 2:a.mode=17;break;case 3:e.msg="invalid block type",a.mode=d}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",a.mode=d;break}if(a.length=65535&v,v=0,y=0,a.mode=15,6===t)break e;case 15:a.mode=16;case 16:if(_=a.length){if(_>f&&(_=f),_>b&&(_=b),0===_)break e;r.arraySet(h,p,m,_,g),f-=_,m+=_,b-=_,g+=_,a.length-=_;break}a.mode=c;break;case 17:for(;y<14;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(a.nlen=257+(31&v),v>>>=5,y-=5,a.ndist=1+(31&v),v>>>=5,y-=5,a.ncode=4+(15&v),v>>>=4,y-=4,a.nlen>286||a.ndist>30){e.msg="too many length or distance symbols",a.mode=d;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;y<3;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.lens[F[a.have++]]=7&v,v>>>=3,y-=3}for(;a.have<19;)a.lens[F[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,P={bits:a.lenbits},B=l(0,a.lens,0,19,a.lencode,0,a.work,P),a.lenbits=P.bits,B){e.msg="invalid code lengths set",a.mode=d;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;T=(N=a.lencode[v&(1<<a.lenbits)-1])>>>16&255,z=65535&N,!((C=N>>>24)<=y);){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(z<16)v>>>=C,y-=C,a.lens[a.have++]=z;else{if(16===z){for(D=C+2;y<D;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(v>>>=C,y-=C,0===a.have){e.msg="invalid bit length repeat",a.mode=d;break}M=a.lens[a.have-1],_=3+(3&v),v>>>=2,y-=2}else if(17===z){for(D=C+3;y<D;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}y-=C,M=0,_=3+(7&(v>>>=C)),v>>>=3,y-=3}else{for(D=C+7;y<D;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}y-=C,M=0,_=11+(127&(v>>>=C)),v>>>=7,y-=7}if(a.have+_>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=d;break}for(;_--;)a.lens[a.have++]=M}}if(a.mode===d)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=d;break}if(a.lenbits=9,P={bits:a.lenbits},B=l(1,a.lens,0,a.nlen,a.lencode,0,a.work,P),a.lenbits=P.bits,B){e.msg="invalid literal/lengths set",a.mode=d;break}if(a.distbits=6,a.distcode=a.distdyn,P={bits:a.distbits},B=l(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,P),a.distbits=P.bits,B){e.msg="invalid distances set",a.mode=d;break}if(a.mode=20,6===t)break e;case 20:a.mode=21;case 21:if(f>=6&&b>=258){e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=f,a.hold=v,a.bits=y,o(e,S),g=e.next_out,h=e.output,b=e.avail_out,m=e.next_in,p=e.input,f=e.avail_in,v=a.hold,y=a.bits,a.mode===c&&(a.back=-1);break}for(a.back=0;T=(N=a.lencode[v&(1<<a.lenbits)-1])>>>16&255,z=65535&N,!((C=N>>>24)<=y);){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(T&&0==(240&T)){for(I=C,L=T,j=z;T=(N=a.lencode[j+((v&(1<<I+L)-1)>>I)])>>>16&255,z=65535&N,!(I+(C=N>>>24)<=y);){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}v>>>=I,y-=I,a.back+=I}if(v>>>=C,y-=C,a.back+=C,a.length=z,0===T){a.mode=26;break}if(32&T){a.back=-1,a.mode=c;break}if(64&T){e.msg="invalid literal/length code",a.mode=d;break}a.extra=15&T,a.mode=22;case 22:if(a.extra){for(D=a.extra;y<D;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.length+=v&(1<<a.extra)-1,v>>>=a.extra,y-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;T=(N=a.distcode[v&(1<<a.distbits)-1])>>>16&255,z=65535&N,!((C=N>>>24)<=y);){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(0==(240&T)){for(I=C,L=T,j=z;T=(N=a.distcode[j+((v&(1<<I+L)-1)>>I)])>>>16&255,z=65535&N,!(I+(C=N>>>24)<=y);){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}v>>>=I,y-=I,a.back+=I}if(v>>>=C,y-=C,a.back+=C,64&T){e.msg="invalid distance code",a.mode=d;break}a.offset=z,a.extra=15&T,a.mode=24;case 24:if(a.extra){for(D=a.extra;y<D;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}a.offset+=v&(1<<a.extra)-1,v>>>=a.extra,y-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=d;break}a.mode=25;case 25:if(0===b)break e;if(_=S-b,a.offset>_){if((_=a.offset-_)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=d;break}_>a.wnext?(_-=a.wnext,A=a.wsize-_):A=a.wnext-_,_>a.length&&(_=a.length),E=a.window}else E=h,A=g-a.offset,_=a.length;_>b&&(_=b),b-=_,a.length-=_;do{h[g++]=E[A++]}while(--_);0===a.length&&(a.mode=21);break;case 26:if(0===b)break e;h[g++]=a.length,b--,a.mode=21;break;case 27:if(a.wrap){for(;y<32;){if(0===f)break e;f--,v|=p[m++]<<y,y+=8}if(S-=b,e.total_out+=S,a.total+=S,S&&(e.adler=a.check=a.flags?i(a.check,h,S,g-S):n(a.check,h,S,g-S)),S=b,(a.flags?v:u(v))!==a.check){e.msg="incorrect data check",a.mode=d;break}v=0,y=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;y<32;){if(0===f)break e;f--,v+=p[m++]<<y,y+=8}if(v!==(4294967295&a.total)){e.msg="incorrect length check",a.mode=d;break}v=0,y=0}a.mode=29;case 29:B=1;break e;case d:B=-3;break e;case 31:return-4;case 32:default:return s}return e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=f,a.hold=v,a.bits=y,(a.wsize||S!==e.avail_out&&a.mode<d&&(a.mode<27||4!==t))&&w(e,e.output,e.next_out,S-e.avail_out)?(a.mode=31,-4):(x-=e.avail_in,S-=e.avail_out,e.total_in+=x,e.total_out+=S,a.total+=S,a.wrap&&S&&(e.adler=a.check=a.flags?i(a.check,h,S,e.next_out-S):n(a.check,h,S,e.next_out-S)),e.data_type=a.bits+(a.last?64:0)+(a.mode===c?128:0)+(20===a.mode||15===a.mode?256:0),(0===x&&0===S||4===t)&&0===B&&(B=-5),B)},t.inflateEnd=function(e){if(!e||!e.state)return s;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var a;return e&&e.state?0==(2&(a=e.state).wrap)?s:(a.head=t,t.done=!1,0):s},t.inflateSetDictionary=function(e,t){var a,r=t.length;return e&&e.state?0!==(a=e.state).wrap&&11!==a.mode?s:11===a.mode&&n(1,t,r,0)!==a.check?-3:w(e,t,r,r)?(a.mode=31,-4):(a.havedict=1,0):s},t.inflateInfo="pako inflate (from Nodeca project)"},9853:(e,t,a)=>{"use strict";var r=a(319),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,a,s,c,d,u,p){var h,m,g,f,b,v,y,k,w,x=p.bits,S=0,_=0,A=0,E=0,C=0,T=0,z=0,I=0,L=0,j=0,M=null,B=0,P=new r.Buf16(16),D=new r.Buf16(16),N=null,O=0;for(S=0;S<=15;S++)P[S]=0;for(_=0;_<s;_++)P[t[a+_]]++;for(C=x,E=15;E>=1&&0===P[E];E--);if(C>E&&(C=E),0===E)return c[d++]=20971520,c[d++]=20971520,p.bits=1,0;for(A=1;A<E&&0===P[A];A++);for(C<A&&(C=A),I=1,S=1;S<=15;S++)if(I<<=1,(I-=P[S])<0)return-1;if(I>0&&(0===e||1!==E))return-1;for(D[1]=0,S=1;S<15;S++)D[S+1]=D[S]+P[S];for(_=0;_<s;_++)0!==t[a+_]&&(u[D[t[a+_]]++]=_);if(0===e?(M=N=u,v=19):1===e?(M=n,B-=257,N=i,O-=257,v=256):(M=o,N=l,v=-1),j=0,_=0,S=A,b=d,T=C,z=0,g=-1,f=(L=1<<C)-1,1===e&&L>852||2===e&&L>592)return 1;for(;;){y=S-z,u[_]<v?(k=0,w=u[_]):u[_]>v?(k=N[O+u[_]],w=M[B+u[_]]):(k=96,w=0),h=1<<S-z,A=m=1<<T;do{c[b+(j>>z)+(m-=h)]=y<<24|k<<16|w|0}while(0!==m);for(h=1<<S-1;j&h;)h>>=1;if(0!==h?(j&=h-1,j+=h):j=0,_++,0==--P[S]){if(S===E)break;S=t[a+u[_]]}if(S>C&&(j&f)!==g){for(0===z&&(z=C),b+=A,I=1<<(T=S-z);T+z<E&&!((I-=P[T+z])<=0);)T++,I<<=1;if(L+=1<<T,1===e&&L>852||2===e&&L>592)return 1;c[g=j&f]=C<<24|T<<16|b-d|0}}return 0!==j&&(c[b+j]=S-z<<24|64<<16|0),p.bits=C,0}},994: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"}},762:(e,t,a)=>{"use strict";var r=a(319);function n(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[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],o=[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],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);n(c);var d=new Array(60);n(d);var u=new Array(512);n(u);var p=new Array(256);n(p);var h=new Array(29);n(h);var m,g,f,b=new Array(30);function v(e,t,a,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=a,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?u[e]:u[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,a){e.bi_valid>16-a?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=a-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=a)}function S(e,t,a){x(e,a[2*t],a[2*t+1])}function _(e,t){var a=0;do{a|=1&e,e>>>=1,a<<=1}while(--t>0);return a>>>1}function A(e,t,a){var r,n,i=new Array(16),o=0;for(r=1;r<=15;r++)i[r]=o=o+a[r-1]<<1;for(n=0;n<=t;n++){var l=e[2*n+1];0!==l&&(e[2*n]=_(i[l]++,l))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function C(e){e.bi_valid>8?w(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 T(e,t,a,r){var n=2*t,i=2*a;return e[n]<e[i]||e[n]===e[i]&&r[t]<=r[a]}function z(e,t,a){for(var r=e.heap[a],n=a<<1;n<=e.heap_len&&(n<e.heap_len&&T(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!T(t,r,e.heap[n],e.depth));)e.heap[a]=e.heap[n],a=n,n<<=1;e.heap[a]=r}function I(e,t,a){var r,n,l,s,c=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],n=e.pending_buf[e.l_buf+c],c++,0===r?S(e,n,t):(S(e,(l=p[n])+256+1,t),0!==(s=i[l])&&x(e,n-=h[l],s),S(e,l=k(--r),a),0!==(s=o[l])&&x(e,r-=b[l],s))}while(c<e.last_lit);S(e,256,t)}function L(e,t){var a,r,n,i=t.dyn_tree,o=t.stat_desc.static_tree,l=t.stat_desc.has_stree,s=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<s;a++)0!==i[2*a]?(e.heap[++e.heap_len]=c=a,e.depth[a]=0):i[2*a+1]=0;for(;e.heap_len<2;)i[2*(n=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[n]=0,e.opt_len--,l&&(e.static_len-=o[2*n+1]);for(t.max_code=c,a=e.heap_len>>1;a>=1;a--)z(e,i,a);n=s;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],z(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=r,i[2*n]=i[2*a]+i[2*r],e.depth[n]=(e.depth[a]>=e.depth[r]?e.depth[a]:e.depth[r])+1,i[2*a+1]=i[2*r+1]=n,e.heap[1]=n++,z(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var a,r,n,i,o,l,s=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(s[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;a<573;a++)(i=s[2*s[2*(r=e.heap[a])+1]+1]+1)>m&&(i=m,g++),s[2*r+1]=i,r>c||(e.bl_count[i]++,o=0,r>=h&&(o=p[r-h]),l=s[2*r],e.opt_len+=l*(i+o),u&&(e.static_len+=l*(d[2*r+1]+o)));if(0!==g){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(i=m;0!==i;i--)for(r=e.bl_count[i];0!==r;)(n=e.heap[--a])>c||(s[2*n+1]!==i&&(e.opt_len+=(i-s[2*n+1])*s[2*n],s[2*n+1]=i),r--)}}(e,t),A(i,c,e.bl_count)}function j(e,t,a){var r,n,i=-1,o=t[1],l=0,s=7,c=4;for(0===o&&(s=138,c=3),t[2*(a+1)+1]=65535,r=0;r<=a;r++)n=o,o=t[2*(r+1)+1],++l<s&&n===o||(l<c?e.bl_tree[2*n]+=l:0!==n?(n!==i&&e.bl_tree[2*n]++,e.bl_tree[32]++):l<=10?e.bl_tree[34]++:e.bl_tree[36]++,l=0,i=n,0===o?(s=138,c=3):n===o?(s=6,c=3):(s=7,c=4))}function M(e,t,a){var r,n,i=-1,o=t[1],l=0,s=7,c=4;for(0===o&&(s=138,c=3),r=0;r<=a;r++)if(n=o,o=t[2*(r+1)+1],!(++l<s&&n===o)){if(l<c)do{S(e,n,e.bl_tree)}while(0!=--l);else 0!==n?(n!==i&&(S(e,n,e.bl_tree),l--),S(e,16,e.bl_tree),x(e,l-3,2)):l<=10?(S(e,17,e.bl_tree),x(e,l-3,3)):(S(e,18,e.bl_tree),x(e,l-11,7));l=0,i=n,0===o?(s=138,c=3):n===o?(s=6,c=3):(s=7,c=4)}}n(b);var B=!1;function P(e,t,a,n){x(e,0+(n?1:0),3),function(e,t,a,n){C(e),w(e,a),w(e,~a),r.arraySet(e.pending_buf,e.window,t,a,e.pending),e.pending+=a}(e,t,a)}t._tr_init=function(e){B||(function(){var e,t,a,r,n,s=new Array(16);for(a=0,r=0;r<28;r++)for(h[r]=a,e=0;e<1<<i[r];e++)p[a++]=r;for(p[a-1]=r,n=0,r=0;r<16;r++)for(b[r]=n,e=0;e<1<<o[r];e++)u[n++]=r;for(n>>=7;r<30;r++)for(b[r]=n<<7,e=0;e<1<<o[r]-7;e++)u[256+n++]=r;for(t=0;t<=15;t++)s[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,s[8]++;for(;e<=255;)c[2*e+1]=9,e++,s[9]++;for(;e<=279;)c[2*e+1]=7,e++,s[7]++;for(;e<=287;)c[2*e+1]=8,e++,s[8]++;for(A(c,287,s),e=0;e<30;e++)d[2*e+1]=5,d[2*e]=_(e,5);m=new v(c,i,257,286,15),g=new v(d,o,0,30,15),f=new v(new Array(0),l,0,19,7)}(),B=!0),e.l_desc=new y(e.dyn_ltree,m),e.d_desc=new y(e.dyn_dtree,g),e.bl_desc=new y(e.bl_tree,f),e.bi_buf=0,e.bi_valid=0,E(e)},t._tr_stored_block=P,t._tr_flush_block=function(e,t,a,r){var n,i,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,a=4093624447;for(t=0;t<=31;t++,a>>>=1)if(1&a&&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<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),o=function(e){var t;for(j(e,e.dyn_ltree,e.l_desc.max_code),j(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*s[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),n=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=n&&(n=i)):n=i=a+5,a+4<=n&&-1!==t?P(e,t,a,r):4===e.strategy||i===n?(x(e,2+(r?1:0),3),I(e,c,d)):(x(e,4+(r?1:0),3),function(e,t,a,r){var n;for(x(e,t-257,5),x(e,a-1,5),x(e,r-4,4),n=0;n<r;n++)x(e,e.bl_tree[2*s[n]+1],3);M(e,e.dyn_ltree,t-1),M(e,e.dyn_dtree,a-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),I(e,e.dyn_ltree,e.dyn_dtree)),E(e),r&&C(e)},t._tr_tally=function(e,t,a){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>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&a,e.last_lit++,0===t?e.dyn_ltree[2*a]++:(e.matches++,t--,e.dyn_ltree[2*(p[a]+256+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){x(e,2,3),S(e,256,c),function(e){16===e.bi_valid?(w(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)}},13: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}},1852:e=>{e.exports=function e(t,a,r){function n(o,l){if(!a[o]){if(!t[o]){if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=a[o]={exports:{}};t[o][0].call(c.exports,(function(e){return n(t[o][1][e]||e)}),c,c.exports,e,t,a,r)}return a[o].exports}for(var i=void 0,o=0;o<r.length;o++)n(r[o]);return n}({1:[function(e,t,a){"use strict";var r=e("inherits"),n=e("multimath"),i=e("./mm_unsharp_mask"),o=e("./mm_resize");function l(e){var t=e||[],a={js:t.indexOf("js")>=0,wasm:t.indexOf("wasm")>=0};n.call(this,a),this.features={js:a.js,wasm:a.wasm&&this.has_wasm()},this.use(i),this.use(o)}r(l,n),l.prototype.resizeAndUnsharp=function(e,t){var a=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(a,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),a},t.exports=l},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(e,t,a){"use strict";function r(e){return e<0?0:e>255?255:e}t.exports={convolveHorizontally:function(e,t,a,n,i,o){var l,s,c,d,u,p,h,m,g,f,b,v=0,y=0;for(g=0;g<n;g++){for(u=0,f=0;f<i;f++){for(p=o[u++],h=o[u++],m=v+4*p|0,l=s=c=d=0;h>0;h--)d=d+(b=o[u++])*e[m+3]|0,c=c+b*e[m+2]|0,s=s+b*e[m+1]|0,l=l+b*e[m]|0,m=m+4|0;t[y+3]=r(d+8192>>14),t[y+2]=r(c+8192>>14),t[y+1]=r(s+8192>>14),t[y]=r(l+8192>>14),y=y+4*n|0}y=4*(g+1)|0,v=(g+1)*a*4|0}},convolveVertically:function(e,t,a,n,i,o){var l,s,c,d,u,p,h,m,g,f,b,v=0,y=0;for(g=0;g<n;g++){for(u=0,f=0;f<i;f++){for(p=o[u++],h=o[u++],m=v+4*p|0,l=s=c=d=0;h>0;h--)d=d+(b=o[u++])*e[m+3]|0,c=c+b*e[m+2]|0,s=s+b*e[m+1]|0,l=l+b*e[m]|0,m=m+4|0;t[y+3]=r(d+8192>>14),t[y+2]=r(c+8192>>14),t[y+1]=r(s+8192>>14),t[y]=r(l+8192>>14),y=y+4*n|0}y=4*(g+1)|0,v=(g+1)*a*4|0}}}},{}],3:[function(e,t,a){"use strict";t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(e,t,a){"use strict";t.exports={name:"resize",fn:e("./resize"),wasm_fn:e("./resize_wasm"),wasm_src:e("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(e,t,a){"use strict";var r=e("./resize_filter_gen"),n=e("./convolve").convolveHorizontally,i=e("./convolve").convolveVertically;t.exports=function(e){var t=e.src,a=e.width,o=e.height,l=e.toWidth,s=e.toHeight,c=e.scaleX||e.toWidth/e.width,d=e.scaleY||e.toHeight/e.height,u=e.offsetX||0,p=e.offsetY||0,h=e.dest||new Uint8Array(l*s*4),m=void 0===e.quality?3:e.quality,g=e.alpha||!1,f=r(m,a,l,c,u),b=r(m,o,s,d,p),v=new Uint8Array(l*o*4);return n(t,v,a,o,l,f),i(v,h,o,l,s,b),g||function(e,t,a){for(var r=3,n=t*a*4|0;r<n;)e[r]=255,r=r+4|0}(h,l,s),h}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(e,t,a){"use strict";var r=e("./resize_filter_info");function n(e){return Math.round(16383*e)}t.exports=function(e,t,a,i,o){var l,s,c,d,u,p,h,m,g,f,b,v,y,k,w,x,S,_=r[e].filter,A=1/i,E=Math.min(1,i),C=r[e].win/E,T=Math.floor(2*(C+1)),z=new Int16Array((T+2)*a),I=0,L=!z.subarray||!z.set;for(l=0;l<a;l++){for(s=(l+.5)*A+o,c=Math.max(0,Math.floor(s-C)),u=(d=Math.min(t-1,Math.ceil(s+C)))-c+1,p=new Float32Array(u),h=new Int16Array(u),m=0,g=c,f=0;g<=d;g++,f++)m+=b=_((g+.5-s)*E),p[f]=b;for(v=0,f=0;f<p.length;f++)v+=y=p[f]/m,h[f]=n(y);for(h[a>>1]+=n(1-v),k=0;k<h.length&&0===h[k];)k++;if(k<h.length){for(w=h.length-1;w>0&&0===h[w];)w--;if(x=c+k,S=w-k+1,z[I++]=x,z[I++]=S,L)for(f=k;f<=w;f++)z[I++]=h[f];else z.set(h.subarray(k,w+1),I),I+=S}else z[I++]=0,z[I++]=0}return z}},{"./resize_filter_info":7}],7:[function(e,t,a){"use strict";t.exports=[{win:.5,filter:function(e){return e>=-.5&&e<.5?1:0}},{win:1,filter:function(e){if(e<=-1||e>=1)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},{win:2,filter:function(e){if(e<=-2||e>=2)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},{win:3,filter:function(e){if(e<=-3||e>=3)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}}]},{}],8:[function(e,t,a){"use strict";var r=e("./resize_filter_gen");var n=!0;try{n=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(e){}function i(e,t,a){if(n)t.set(function(e){return new Uint8Array(e.buffer,0,e.byteLength)}(e),a);else for(var r=a,i=0;i<e.length;i++){var o=e[i];t[r++]=255&o,t[r++]=o>>8&255}}t.exports=function(e){var t=e.src,a=e.width,n=e.height,o=e.toWidth,l=e.toHeight,s=e.scaleX||e.toWidth/e.width,c=e.scaleY||e.toHeight/e.height,d=e.offsetX||0,u=e.offsetY||0,p=e.dest||new Uint8Array(o*l*4),h=void 0===e.quality?3:e.quality,m=e.alpha||!1,g=r(h,a,o,s,d),f=r(h,n,l,c,u),b=this.__align(0+Math.max(t.byteLength,p.byteLength)),v=this.__align(b+n*o*4),y=this.__align(v+g.byteLength),k=y+f.byteLength,w=this.__instance("resize",k),x=new Uint8Array(this.__memory.buffer),S=new Uint32Array(this.__memory.buffer),_=new Uint32Array(t.buffer);return S.set(_),i(g,x,v),i(f,x,y),(w.exports.convolveHV||w.exports._convolveHV)(v,y,b,a,n,o,l),new Uint32Array(p.buffer).set(new Uint32Array(this.__memory.buffer,0,l*o)),m||function(e,t,a){for(var r=3,n=t*a*4|0;r<n;)e[r]=255,r=r+4|0}(p,o,l),p}},{"./resize_filter_gen":6}],9:[function(e,t,a){"use strict";t.exports={name:"unsharp_mask",fn:e("./unsharp_mask"),wasm_fn:e("./unsharp_mask_wasm"),wasm_src:e("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(e,t,a){"use strict";var r=e("glur/mono16");t.exports=function(e,t,a,n,i,o){var l,s,c,d,u;if(!(0===n||i<.5)){i>2&&(i=2);var p=function(e,t,a){for(var r,n,i,o,l=t*a,s=new Uint16Array(l),c=0;c<l;c++)r=e[4*c],n=e[4*c+1],i=e[4*c+2],o=r>=n&&r>=i?r:n>=i&&n>=r?n:i,s[c]=o<<8;return s}(e,t,a),h=new Uint16Array(p);r(h,t,a,i);for(var m=n/100*4096+.5|0,g=o<<8,f=t*a,b=0;b<f;b++)d=(l=p[b])-h[b],Math.abs(d)>=g&&(c=((s=(s=(s=l+(m*d+2048>>12))>65280?65280:s)<0?0:s)<<12)/(l=0!==l?l:1)|0,e[u=4*b]=e[u]*c+2048>>12,e[u+1]=e[u+1]*c+2048>>12,e[u+2]=e[u+2]*c+2048>>12)}}},{"glur/mono16":18}],11:[function(e,t,a){"use strict";t.exports=function(e,t,a,r,n,i){if(!(0===r||n<.5)){n>2&&(n=2);var o=t*a,l=4*o,s=2*o,c=2*o,d=4*Math.max(t,a),u=l,p=u+s,h=p+c,m=h+c,g=m+d,f=this.__instance("unsharp_mask",l+s+2*c+d+32,{exp:Math.exp}),b=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(b);var v=f.exports.hsv_v16||f.exports._hsv_v16;v(0,u,t,a),(v=f.exports.blurMono16||f.exports._blurMono16)(u,p,h,m,g,t,a,n),(v=f.exports.unsharp||f.exports._unsharp)(0,0,u,p,t,a,r,i),b.set(new Uint32Array(this.__memory.buffer,0,o))}}},{}],12:[function(e,t,a){"use strict";t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(e,t,a){"use strict";function r(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}r.prototype.acquire=function(){var e,t=this;return 0!==this.available.length?e=this.available.pop():((e=this.create()).id=this.lastId++,e.release=function(){return t.release(e)}),this.acquired[e.id]=e,e},r.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),0===this.timeoutId&&(this.timeoutId=setTimeout((function(){return t.gc()}),100))},r.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter((function(a){return!(t-a.lastUsed>e.idle&&(a.destroy(),1))})),0!==this.available.length?this.timeoutId=setTimeout((function(){return e.gc()}),100):this.timeoutId=0},t.exports=r},{}],14:[function(e,t,a){"use strict";t.exports=function(e,t,a,r,n,i){var o=a/e,l=r/t,s=(2*i+2+1)/n;if(s>.5)return[[a,r]];var c=Math.ceil(Math.log(Math.min(o,l))/Math.log(s));if(c<=1)return[[a,r]];for(var d=[],u=0;u<c;u++){var p=Math.round(Math.pow(Math.pow(e,c-u-1)*Math.pow(a,u+1),1/c)),h=Math.round(Math.pow(Math.pow(t,c-u-1)*Math.pow(r,u+1),1/c));d.push([p,h])}return d}},{}],15:[function(e,t,a){"use strict";var r=1e-5;function n(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.floor(e)}function i(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.ceil(e)}t.exports=function(e){var t,a,r,o,l,s,c=e.toWidth/e.width,d=e.toHeight/e.height,u=n(e.srcTileSize*c)-2*e.destTileBorder,p=n(e.srcTileSize*d)-2*e.destTileBorder;if(u<1||p<1)throw new Error("Internal error in pica: target tile width/height is too small.");var h,m=[];for(o=0;o<e.toHeight;o+=p)for(r=0;r<e.toWidth;r+=u)(t=r-e.destTileBorder)<0&&(t=0),t+(l=r+u+e.destTileBorder-t)>=e.toWidth&&(l=e.toWidth-t),(a=o-e.destTileBorder)<0&&(a=0),a+(s=o+p+e.destTileBorder-a)>=e.toHeight&&(s=e.toHeight-a),h={toX:t,toY:a,toWidth:l,toHeight:s,toInnerX:r,toInnerY:o,toInnerWidth:u,toInnerHeight:p,offsetX:t/c-n(t/c),offsetY:a/d-n(a/d),scaleX:c,scaleY:d,x:n(t/c),y:n(a/d),width:i(l/c),height:i(s/d)},m.push(h);return m}},{}],16:[function(e,t,a){"use strict";function r(e){return Object.prototype.toString.call(e)}t.exports.isCanvas=function(e){var t=r(e);return"[object HTMLCanvasElement]"===t||"[object OffscreenCanvas]"===t||"[object Canvas]"===t},t.exports.isImage=function(e){return"[object HTMLImageElement]"===r(e)},t.exports.isImageBitmap=function(e){return"[object ImageBitmap]"===r(e)},t.exports.limiter=function(e){var t=0,a=[];function r(){t<e&&a.length&&(t++,a.shift()())}return function(e){return new Promise((function(n,i){a.push((function(){e().then((function(e){n(e),t--,r()}),(function(e){i(e),t--,r()}))})),r()}))}},t.exports.cib_quality_name=function(e){switch(e){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},t.exports.cib_support=function(e){return Promise.resolve().then((function(){if("undefined"==typeof createImageBitmap)return!1;var t=e(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then((function(e){var a=10===e.width;return e.close(),t=null,a}))})).catch((function(){return!1}))},t.exports.worker_offscreen_canvas_support=function(){return new Promise((function(e,t){if("undefined"!=typeof OffscreenCanvas){var a=btoa("(".concat(function(e){"undefined"!=typeof createImageBitmap?Promise.resolve().then((function(){var e=new OffscreenCanvas(10,10);return e.getContext("2d").rect(0,0,1,1),createImageBitmap(e,0,0,1,1)})).then((function(){return e.postMessage(!0)}),(function(){return e.postMessage(!1)})):e.postMessage(!1)}.toString(),")(self);")),r=new Worker("data:text/javascript;base64,".concat(a));r.onmessage=function(t){return e(t.data)},r.onerror=t}else e(!1)})).then((function(e){return e}),(function(){return!1}))},t.exports.can_use_canvas=function(e){var t=!1;try{var a=e(2,1).getContext("2d"),r=a.createImageData(2,1);r.data[0]=12,r.data[1]=23,r.data[2]=34,r.data[3]=255,r.data[4]=45,r.data[5]=56,r.data[6]=67,r.data[7]=255,a.putImageData(r,0,0),r=null,12===(r=a.getImageData(0,0,2,1)).data[0]&&23===r.data[1]&&34===r.data[2]&&255===r.data[3]&&45===r.data[4]&&56===r.data[5]&&67===r.data[6]&&255===r.data[7]&&(t=!0)}catch(e){}return t},t.exports.cib_can_use_region=function(){return new Promise((function(e){if("undefined"!=typeof createImageBitmap){var t=new Image;t.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",t.onload=function(){createImageBitmap(t,0,0,t.width,t.height).then((function(a){a.width===t.width&&a.height===t.height?e(!0):e(!1)}),(function(){return e(!1)}))},t.onerror=function(){return e(!1)}}else e(!1)}))}},{}],17:[function(e,t,a){"use strict";t.exports=function(){var t,a=e("./mathlib");onmessage=function(e){var r=e.data.opts,n=!1;if(!r.src&&r.srcBitmap){var i=new OffscreenCanvas(r.width,r.height),o=i.getContext("2d",{alpha:Boolean(r.alpha)});o.drawImage(r.srcBitmap,0,0),r.src=o.getImageData(0,0,r.width,r.height).data,i.width=i.height=0,i=null,r.srcBitmap.close(),r.srcBitmap=null,n=!0}t||(t=new a(e.data.features));var l=t.resizeAndUnsharp(r);if(n){var s=new ImageData(new Uint8ClampedArray(l),r.toWidth,r.toHeight),c=new OffscreenCanvas(r.toWidth,r.toHeight);c.getContext("2d",{alpha:Boolean(r.alpha)}).putImageData(s,0,0),createImageBitmap(c).then((function(e){postMessage({bitmap:e},[e])}))}else postMessage({data:l},[l.buffer])}}},{"./mathlib":1}],18:[function(e,t,a){var r,n,i,o,l,s;function c(e,t,a,r,n,i){var o,l,s,c,d,u,p,h,m,g,f,b,v,y;for(m=0;m<i;m++){for(p=m,h=0,c=d=(o=e[u=m*n])*r[6],f=r[0],b=r[1],v=r[4],y=r[5],g=0;g<n;g++)s=(l=e[u])*f+o*b+c*v+d*y,d=c,c=s,o=l,a[h]=c,h++,u++;for(h--,p+=i*(n-1),c=d=(o=e[--u])*r[7],l=o,f=r[2],b=r[3],g=n-1;g>=0;g--)s=l*f+o*b+c*v+d*y,d=c,c=s,o=l,l=e[u],t[p]=a[h]+c,u--,h--,p-=i}}t.exports=function(e,t,a,d){if(d){var u=new Uint16Array(e.length),p=new Float32Array(Math.max(t,a)),h=function(e){e<.5&&(e=.5);var t=Math.exp(.527076)/e,a=Math.exp(-t),c=Math.exp(-2*t),d=(1-a)*(1-a)/(1+2*t*a-c);return r=d,n=d*(t-1)*a,i=d*(t+1)*a,o=-d*c,l=2*a,s=-c,new Float32Array([r,n,i,o,l,s,(r+n)/(1-l-s),(i+o)/(1-l-s)])}(d);c(e,u,p,h,t,a),c(u,e,p,h,a,t)}}},{}],19:[function(e,t,a){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}},{}],20:[function(e,t,a){"use strict";var r=e("object-assign"),n=e("./lib/base64decode"),i=e("./lib/wa_detect"),o={js:!0,wasm:!0};function l(e){if(!(this instanceof l))return new l(e);var t=r({},o,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}l.prototype.has_wasm=i,l.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},l.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map((function(t){var a=e.__modules[t];return e.options.wasm&&e.has_wasm()&&a.wasm_fn?e.__wasm[t]?null:WebAssembly.compile(e.__base64decode(a.wasm_src)).then((function(a){e.__wasm[t]=a})):null}))).then((function(){return e})),this.__init_promise},l.prototype.__base64decode=n,l.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/65536)}),this.__memory;var t=this.__memory.buffer.byteLength;return t<e&&this.__memory.grow(Math.ceil((e-t)/65536)),this.__memory},l.prototype.__instance=function(e,t,a){if(t&&this.__reallocate(t),!this.__wasm[e]){var n=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(n.wasm_src))}if(!this.__cache[e]){var i={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:r(i,a||{})})}return this.__cache[e]},l.prototype.__align=function(e,t){var a=e%(t=t||8);return e+(a?t-a:0)},t.exports=l},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(e,t,a){"use strict";t.exports=function(e){for(var t=e.replace(/[\r\n=]/g,""),a=t.length,r=new Uint8Array(3*a>>2),n=0,i=0,o=0;o<a;o++)o%4==0&&o&&(r[i++]=n>>16&255,r[i++]=n>>8&255,r[i++]=255&n),n=n<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(o));var l=a%4*6;return 0===l?(r[i++]=n>>16&255,r[i++]=n>>8&255,r[i++]=255&n):18===l?(r[i++]=n>>10&255,r[i++]=n>>2&255):12===l&&(r[i++]=n>>4&255),r}},{}],22:[function(e,t,a){"use strict";var r;t.exports=function(){if(void 0!==r)return r;if(r=!1,"undefined"==typeof WebAssembly)return r;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e);return 0!==new WebAssembly.Instance(t,{}).exports.test(4)&&(r=!0),r}catch(e){}return r}},{}],23:[function(e,t,a){"use strict";var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,l,s=o(e),c=1;c<arguments.length;c++){for(var d in a=Object(arguments[c]))n.call(a,d)&&(s[d]=a[d]);if(r){l=r(a);for(var u=0;u<l.length;u++)i.call(a,l[u])&&(s[l[u]]=a[l[u]])}}return s}},{}],24:[function(e,t,a){var r=arguments[3],n=arguments[4],i=arguments[5],o=JSON.stringify;t.exports=function(e,t){for(var a,l=Object.keys(i),s=0,c=l.length;s<c;s++){var d=l[s],u=i[d].exports;if(u===e||u&&u.default===e){a=d;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var p={};for(s=0,c=l.length;s<c;s++)p[d=l[s]]=d;n[a]=["function(require,module,exports){"+e+"(self); }",p]}var h=Math.floor(Math.pow(16,8)*Math.random()).toString(16),m={};m[a]=a,n[h]=["function(require,module,exports){var f = require("+o(a)+");(f.default ? f.default : f)(self);}",m];var g={};!function e(t){for(var a in g[t]=!0,n[t][1]){var r=n[t][1][a];g[r]||e(r)}}(h);var f="("+r+")({"+Object.keys(g).map((function(e){return o(e)+":["+n[e][0]+","+o(n[e][1])+"]"})).join(",")+"},{},["+o(h)+"])",b=window.URL||window.webkitURL||window.mozURL||window.msURL,v=new Blob([f],{type:"text/javascript"});if(t&&t.bare)return v;var y=b.createObjectURL(v),k=new Worker(y);return k.objectURL=y,k}},{}],"/index.js":[function(e,t,a){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,i=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var i=e("object-assign"),o=e("webworkify"),l=e("./lib/mathlib"),s=e("./lib/pool"),c=e("./lib/utils"),d=e("./lib/worker"),u=e("./lib/stepper"),p=e("./lib/tiler"),h={},m=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(m=navigator.userAgent.indexOf("Safari")>=0)}catch(e){}var g=1;"undefined"!=typeof navigator&&(g=Math.min(navigator.hardwareConcurrency||1,4));var f={tile:1024,concurrency:g,features:["js","wasm","ww"],idle:2e3,createCanvas:function(e,t){var a=document.createElement("canvas");return a.width=e,a.height=t,a}},b={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},v=!1,y=!1,k=!1,w=!1,x=!1;function S(){return{value:o(d),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function _(e){if(!(this instanceof _))return new _(e);this.options=i({},f,e||{});var t="lk_".concat(this.options.concurrency);this.__limit=h[t]||c.limiter(this.options.concurrency),h[t]||(h[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}_.prototype.init=function(){var t=this;if(this.__initPromise)return this.__initPromise;if("undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray)try{new ImageData(new Uint8ClampedArray(400),10,10),v=!0}catch(e){}"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?y=!0:this.debug("ImageBitmap does not support .close(), disabled"));var a=this.options.features.slice();if(a.indexOf("all")>=0&&(a=["cib","wasm","js","ww"]),this.__requested_features=a,this.__mathlib=new l(a),a.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{e("webworkify")((function(){})).terminate(),this.features.ww=!0;var r="wp_".concat(JSON.stringify(this.options));h[r]?this.__workersPool=h[r]:(this.__workersPool=new s(S,this.options.idle),h[r]=this.__workersPool)}catch(e){}var n,o,d=this.__mathlib.init().then((function(e){i(t.features,e.features)}));n=y?c.cib_support(this.options.createCanvas).then((function(e){t.features.cib&&a.indexOf("cib")<0?t.debug("createImageBitmap() resize supported, but disabled by config"):a.indexOf("cib")>=0&&(t.features.cib=e)})):Promise.resolve(!1),k=c.can_use_canvas(this.options.createCanvas),o=(o=y&&v&&-1!==a.indexOf("ww")?c.worker_offscreen_canvas_support():Promise.resolve(!1)).then((function(e){w=e}));var u=c.cib_can_use_region().then((function(e){x=e}));return this.__initPromise=Promise.all([d,n,o,u]).then((function(){return t})),this.__initPromise},_.prototype.__invokeResize=function(e,t){var a=this;return t.__mathCache=t.__mathCache||{},Promise.resolve().then((function(){return a.features.ww?new Promise((function(r,n){var i=a.__workersPool.acquire();t.cancelToken&&t.cancelToken.catch((function(e){return n(e)})),i.value.onmessage=function(e){i.release(),e.data.err?n(e.data.err):r(e.data)};var o=[];e.src&&o.push(e.src.buffer),e.srcBitmap&&o.push(e.srcBitmap),i.value.postMessage({opts:e,features:a.__requested_features,preload:{wasm_nodule:a.__mathlib.__}},o)})):{data:a.__mathlib.resizeAndUnsharp(e,t.__mathCache)}}))},_.prototype.__extractTileData=function(e,t,a,r,n){if(this.features.ww&&w&&(c.isCanvas(t)||x))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(r.srcImageBitmap||t,e.x,e.y,e.width,e.height).then((function(e){return n.srcBitmap=e,n}));if(c.isCanvas(t))return r.srcCtx||(r.srcCtx=t.getContext("2d",{alpha:Boolean(a.alpha)})),this.debug("Get tile pixel data"),n.src=r.srcCtx.getImageData(e.x,e.y,e.width,e.height).data,n;this.debug("Draw tile imageBitmap/image to temporary canvas");var i=this.options.createCanvas(e.width,e.height),o=i.getContext("2d",{alpha:Boolean(a.alpha)});return o.globalCompositeOperation="copy",o.drawImage(r.srcImageBitmap||t,e.x,e.y,e.width,e.height,0,0,e.width,e.height),this.debug("Get tile pixel data"),n.src=o.getImageData(0,0,e.width,e.height).data,i.width=i.height=0,n},_.prototype.__landTileData=function(e,t,a){var r;if(this.debug("Convert raw rgba tile result to ImageData"),t.bitmap)return a.toCtx.drawImage(t.bitmap,e.toX,e.toY),null;if(v)r=new ImageData(new Uint8ClampedArray(t.data),e.toWidth,e.toHeight);else if((r=a.toCtx.createImageData(e.toWidth,e.toHeight)).data.set)r.data.set(t.data);else for(var n=r.data.length-1;n>=0;n--)r.data[n]=t.data[n];return this.debug("Draw tile"),m?a.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth+1e-5,e.toInnerHeight+1e-5):a.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth,e.toInnerHeight),null},_.prototype.__tileAndResize=function(e,t,a){var r=this,n={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null};return Promise.resolve().then((function(){if(n.toCtx=t.getContext("2d",{alpha:Boolean(a.alpha)}),c.isCanvas(e))return null;if(c.isImageBitmap(e))return n.srcImageBitmap=e,n.isImageBitmapReused=!0,null;if(c.isImage(e))return y?(r.debug("Decode image via createImageBitmap"),createImageBitmap(e).then((function(e){n.srcImageBitmap=e})).catch((function(e){return null}))):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')})).then((function(){if(a.canceled)return a.cancelToken;r.debug("Calculate tiles");var i=p({width:a.width,height:a.height,srcTileSize:r.options.tile,toWidth:a.toWidth,toHeight:a.toHeight,destTileBorder:a.__destTileBorder}).map((function(t){return function(t){return r.__limit((function(){if(a.canceled)return a.cancelToken;var i={width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,quality:a.quality,alpha:a.alpha,unsharpAmount:a.unsharpAmount,unsharpRadius:a.unsharpRadius,unsharpThreshold:a.unsharpThreshold};return r.debug("Invoke resize math"),Promise.resolve(i).then((function(i){return r.__extractTileData(t,e,a,n,i)})).then((function(e){return r.debug("Invoke resize math"),r.__invokeResize(e,a)})).then((function(e){return a.canceled?a.cancelToken:(n.srcImageData=null,r.__landTileData(t,e,n))}))}))}(t)}));function o(e){e.srcImageBitmap&&(e.isImageBitmapReused||e.srcImageBitmap.close(),e.srcImageBitmap=null)}return r.debug("Process tiles"),Promise.all(i).then((function(){return r.debug("Finished!"),o(n),t}),(function(e){throw o(n),e}))}))},_.prototype.__processStages=function(e,t,a,n){var o=this;if(n.canceled)return n.cancelToken;var l,s=r(e.shift(),2),c=s[0],d=s[1],u=0===e.length;return n=i({},n,{toWidth:c,toHeight:d,quality:u?n.quality:Math.min(1,n.quality)}),u||(l=this.options.createCanvas(c,d)),this.__tileAndResize(t,u?a:l,n).then((function(){return u?a:(n.width=c,n.height=d,o.__processStages(e,l,a,n))})).then((function(e){return l&&(l.width=l.height=0),e}))},_.prototype.__resizeViaCreateImageBitmap=function(e,t,a){var r=this,n=t.getContext("2d",{alpha:Boolean(a.alpha)});return this.debug("Resize via createImageBitmap()"),createImageBitmap(e,{resizeWidth:a.toWidth,resizeHeight:a.toHeight,resizeQuality:c.cib_quality_name(a.quality)}).then((function(e){if(a.canceled)return a.cancelToken;if(!a.unsharpAmount)return n.drawImage(e,0,0),e.close(),n=null,r.debug("Finished!"),t;r.debug("Unsharp result");var i=r.options.createCanvas(a.toWidth,a.toHeight),o=i.getContext("2d",{alpha:Boolean(a.alpha)});o.drawImage(e,0,0),e.close();var l=o.getImageData(0,0,a.toWidth,a.toHeight);return r.__mathlib.unsharp_mask(l.data,a.toWidth,a.toHeight,a.unsharpAmount,a.unsharpRadius,a.unsharpThreshold),n.putImageData(l,0,0),i.width=i.height=0,l=o=i=n=null,r.debug("Finished!"),t}))},_.prototype.resize=function(e,t,a){var r=this;this.debug("Start resize...");var n=i({},b);if(isNaN(a)?a&&(n=i(n,a)):n=i(n,{quality:a}),n.toWidth=t.width,n.toHeight=t.height,n.width=e.naturalWidth||e.width,n.height=e.naturalHeight||e.height,0===t.width||0===t.height)return Promise.reject(new Error("Invalid output size: ".concat(t.width,"x").concat(t.height)));n.unsharpRadius>2&&(n.unsharpRadius=2),n.canceled=!1,n.cancelToken&&(n.cancelToken=n.cancelToken.then((function(e){throw n.canceled=!0,e}),(function(e){throw n.canceled=!0,e})));return n.__destTileBorder=Math.ceil(Math.max(3,2.5*n.unsharpRadius|0)),this.init().then((function(){if(n.canceled)return n.cancelToken;if(r.features.cib)return r.__resizeViaCreateImageBitmap(e,t,n);if(!k){var a=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw a.code="ERR_GET_IMAGE_DATA",a}var i=u(n.width,n.height,n.toWidth,n.toHeight,r.options.tile,n.__destTileBorder);return r.__processStages(i,e,t,n)}))},_.prototype.resizeBuffer=function(e){var t=this,a=i({},b,e);return this.init().then((function(){return t.__mathlib.resizeAndUnsharp(a)}))},_.prototype.toBlob=function(e,t,a){return t=t||"image/png",new Promise((function(r){if(e.toBlob)e.toBlob((function(e){return r(e)}),t,a);else if(e.convertToBlob)r(e.convertToBlob({type:t,quality:a}));else{for(var n=atob(e.toDataURL(t,a).split(",")[1]),i=n.length,o=new Uint8Array(i),l=0;l<i;l++)o[l]=n.charCodeAt(l);r(new Blob([o],{type:t}))}}))},_.prototype.debug=function(){},t.exports=_},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")},8281:e=>{e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,a="",r="",n=0;n<e.length;n++){var i=e[n];if(t)i?r+=String.fromCharCode(i):t=!1;else{if(!i)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");a+=String.fromCharCode(i)}}return{keyword:r,text:a}}},5813:e=>{e.exports=function(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var a,r=e.length+t.length+1,n=new Uint8Array(r),i=0,o=0;o<e.length;o++){if(!(a=e.charCodeAt(o)))throw new Error("0x00 character is not permitted in tEXt keywords");n[i++]=a}n[i++]=0;for(var l=0;l<t.length;l++){if(!(a=t.charCodeAt(l)))throw new Error("0x00 character is not permitted in tEXt content");n[i++]=a}return{name:"tEXt",data:n}}},6927:(e,t,a)=>{t.encode=a(5813),t.decode=a(8281)},3070:(e,t,a)=>{var r=a(885),n=a(3868);e.exports=function(e){var t,a=8,s=a;for(t=0;t<e.length;t++)a+=e[t].data.length,a+=12;var c=new Uint8Array(a);for(c[0]=137,c[1]=80,c[2]=78,c[3]=71,c[4]=13,c[5]=10,c[6]=26,c[7]=10,t=0;t<e.length;t++){var d=e[t],u=d.name,p=d.data,h=p.length,m=[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3)];l[0]=h,c[s++]=i[3],c[s++]=i[2],c[s++]=i[1],c[s++]=i[0],c[s++]=m[0],c[s++]=m[1],c[s++]=m[2],c[s++]=m[3];for(var g=0;g<h;)c[s++]=p[g++];var f=m.concat(r(p)),b=n.buf(f);o[0]=b,c[s++]=i[3],c[s++]=i[2],c[s++]=i[1],c[s++]=i[0]}return c};var i=new Uint8Array(4),o=new Int32Array(i.buffer),l=new Uint32Array(i.buffer)},9567:(e,t,a)=>{var r=a(3868);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var t=!1,a=[],l=8;l<e.length;){n[3]=e[l++],n[2]=e[l++],n[1]=e[l++],n[0]=e[l++];var s=o[0]+4,c=new Uint8Array(s);c[0]=e[l++],c[1]=e[l++],c[2]=e[l++],c[3]=e[l++];var d=String.fromCharCode(c[0])+String.fromCharCode(c[1])+String.fromCharCode(c[2])+String.fromCharCode(c[3]);if(!a.length&&"IHDR"!==d)throw new Error("IHDR header missing");if("IEND"===d){t=!0,a.push({name:d,data:new Uint8Array(0)});break}for(var u=4;u<s;u++)c[u]=e[l++];n[3]=e[l++],n[2]=e[l++],n[1]=e[l++],n[0]=e[l++];var p=i[0];if(r.buf(c)!==p)throw new Error("CRC values for "+d+" header do not match, PNG file is likely corrupted");var h=new Uint8Array(c.buffer.slice(4));a.push({name:d,data:h})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return a};var n=new Uint8Array(4),i=new Int32Array(n.buffer),o=new Uint32Array(n.buffer)},2207:(e,t,a)=>{"use strict";var r=a(7723),n=a(4920),i=a(6847);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=new Set,s={};function c(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},g={};function f(e,t,a,r,n,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=n,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function k(e,t,a,r){var n=b.hasOwnProperty(t)?b[t]:null;(null!==n?0===n.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,a,r){if(null==t||function(e,t,a,r){if(null!==a&&0===a.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==a?!a.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,a,r))return!0;if(r)return!1;if(null!==a)switch(a.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,a,n,r)&&(a=null),r||null===n?function(e){return!!h.call(g,e)||!h.call(m,e)&&(p.test(e)?g[e]=!0:(m[e]=!0,!1))}(t)&&(null===a?e.removeAttribute(t):e.setAttribute(t,""+a)):n.mustUseProperty?e[n.propertyName]=null===a?3!==n.type&&"":a:(t=n.attributeName,r=n.attributeNamespace,null===a?e.removeAttribute(t):(a=3===(n=n.type)||4===n&&!0===a?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,S=60106,_=60107,A=60108,E=60114,C=60109,T=60110,z=60112,I=60113,L=60120,j=60115,M=60116,B=60121,P=60128,D=60129,N=60130,O=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;x=F("react.element"),S=F("react.portal"),_=F("react.fragment"),A=F("react.strict_mode"),E=F("react.profiler"),C=F("react.provider"),T=F("react.context"),z=F("react.forward_ref"),I=F("react.suspense"),L=F("react.suspense_list"),j=F("react.memo"),M=F("react.lazy"),B=F("react.block"),F("react.scope"),P=F("react.opaque.id"),D=F("react.debug_trace_mode"),N=F("react.offscreen"),O=F("react.legacy_hidden")}var R,H="function"==typeof Symbol&&Symbol.iterator;function G(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function V(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var U=!1;function K(e,t){if(!e||U)return"";U=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var n=e.stack.split("\n"),i=r.stack.split("\n"),o=n.length-1,l=i.length-1;1<=o&&0<=l&&n[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(n[o]!==i[l]){if(1!==o||1!==l)do{if(o--,0>--l||n[o]!==i[l])return"\n"+n[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{U=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?V(e):""}function W(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return K(e.type,!1);case 11:return K(e.type.render,!1);case 22:return K(e.type._render,!1);case 1:return K(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case E:return"Profiler";case A:return"StrictMode";case I:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case z:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return q(e.type);case B:return q(e._render);case M:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==a&&"function"==typeof a.get&&"function"==typeof a.set){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==a&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var a=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=a?a:e._wrapperState.initialChecked})}function ee(e,t){var a=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;a=Z(null!=t.value?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&k(e,"checked",t,!1)}function ae(e,t){te(e,t);var a=Z(t.value),r=t.type;if(null!=a)"number"===r?(0===a&&""===e.value||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ne(e,t.type,a):t.hasOwnProperty("defaultValue")&&ne(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}""!==(a=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==a&&(e.name=a)}function ne(e,t,a){"number"===t&&X(e.ownerDocument)===e||(null==a?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}function ie(e,t){return e=n({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,a,r){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Z(a),t=null,n=0;n<e.length;n++){if(e[n].value===a)return e[n].selected=!0,void(r&&(e[n].defaultSelected=!0));null!==t||e[n].disabled||(t=e[n])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var a=t.value;if(null==a){if(a=t.children,t=t.defaultValue,null!=a){if(null!=t)throw Error(o(92));if(Array.isArray(a)){if(!(1>=a.length))throw Error(o(93));a=a[0]}t=a}null==t&&(t=""),a=t}e._wrapperState={initialValue:Z(a)}}function ce(e,t){var a=Z(t.value),r=Z(t.defaultValue);null!=a&&((a=""+a)!==e.value&&(e.value=a),null==t.defaultValue&&e.defaultValue!==a&&(e.defaultValue=a)),null!=r&&(e.defaultValue=""+r)}function de(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var ue="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,fe=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,a,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function be(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&3===a.nodeType)return void(a.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function ke(e,t,a){return null==t||"boolean"==typeof t||""===t?"":a||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function we(e,t){for(var a in e=e.style,t)if(t.hasOwnProperty(a)){var r=0===a.indexOf("--"),n=ke(a,t[a],r);"float"===a&&(a="cssFloat"),r?e.setProperty(a,n):e[a]=n}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var xe=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Ce=null,Te=null;function ze(e){if(e=Jr(e)){if("function"!=typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=$r(t),Ee(e.stateNode,e.type,t))}}function Ie(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Le(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,ze(e),t)for(e=0;e<t.length;e++)ze(t[e])}}function je(e,t){return e(t)}function Me(e,t,a,r,n){return e(t,a,r,n)}function Be(){}var Pe=je,De=!1,Ne=!1;function Oe(){null===Ce&&null===Te||(Be(),Le())}function Fe(e,t){var a=e.stateNode;if(null===a)return null;var r=$r(a);if(null===r)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(a&&"function"!=typeof a)throw Error(o(231,t,typeof a));return a}var Re=!1;if(u)try{var He={};Object.defineProperty(He,"passive",{get:function(){Re=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ge){Re=!1}function Ge(e,t,a,r,n,i,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(a,c)}catch(e){this.onError(e)}}var Ve=!1,Ue=null,Ke=!1,We=null,qe={onError:function(e){Ve=!0,Ue=e}};function Ze(e,t,a,r,n,i,o,l,s){Ve=!1,Ue=null,Ge.apply(qe,arguments)}function Qe(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(a=t.return),e=t.return}while(e)}return 3===t.tag?a:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Qe(e)!==e)throw Error(o(188))}function Xe(e,t){for(var a=e.alternate;null!==t;){if(t===e||t===a)return!0;t=t.return}return!1}var $e,et,tt,at,rt=!1,nt=[],it=null,ot=null,lt=null,st=new Map,ct=new Map,dt=[],ut="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,a,r,n){return{blockedOn:e,domEventName:t,eventSystemFlags:16|a,nativeEvent:n,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,a,r,n,i){return null===e||e.nativeEvent!==i?(e=pt(t,a,r,n,i),null!==t&&null!==(t=Jr(t))&&et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==n&&-1===t.indexOf(n)&&t.push(n),e)}function gt(e){var t=Yr(e.target);if(null!==t){var a=Qe(t);if(null!==a)if(13===(t=a.tag)){if(null!==(t=Ye(a)))return e.blockedOn=t,void at(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){tt(a)}))}))}else if(3===t&&a.stateNode.hydrate)return void(e.blockedOn=3===a.tag?a.stateNode.containerInfo:null)}e.blockedOn=null}function ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var a=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==a)return null!==(t=Jr(a))&&et(t),e.blockedOn=a,!1;t.shift()}return!0}function bt(e,t,a){ft(e)&&a.delete(t)}function vt(){for(rt=!1;0<nt.length;){var e=nt[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&$e(e);break}for(var t=e.targetContainers;0<t.length;){var a=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==a){e.blockedOn=a;break}t.shift()}null===e.blockedOn&&nt.shift()}null!==it&&ft(it)&&(it=null),null!==ot&&ft(ot)&&(ot=null),null!==lt&&ft(lt)&&(lt=null),st.forEach(bt),ct.forEach(bt)}function yt(e,t){e.blockedOn===t&&(e.blockedOn=null,rt||(rt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,vt)))}function kt(e){function t(t){return yt(t,e)}if(0<nt.length){yt(nt[0],e);for(var a=1;a<nt.length;a++){var r=nt[a];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&yt(it,e),null!==ot&&yt(ot,e),null!==lt&&yt(lt,e),st.forEach(t),ct.forEach(t),a=0;a<dt.length;a++)(r=dt[a]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(a=dt[0]).blockedOn;)gt(a),null===a.blockedOn&&dt.shift()}function wt(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var xt={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},St={},_t={};function At(e){if(St[e])return St[e];if(!xt[e])return e;var t,a=xt[e];for(t in a)if(a.hasOwnProperty(t)&&t in _t)return St[e]=a[t];return e}u&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Et=At("animationend"),Ct=At("animationiteration"),Tt=At("animationstart"),zt=At("transitionend"),It=new Map,Lt=new Map,jt=["abort","abort",Et,"animationEnd",Ct,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",zt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var a=0;a<e.length;a+=2){var r=e[a],n=e[a+1];n="on"+(n[0].toUpperCase()+n.slice(1)),Lt.set(r,t),It.set(r,n),c(n,[r])}}(0,i.unstable_now)();var Bt=8;function Pt(e){if(0!=(1&e))return Bt=15,1;if(0!=(2&e))return Bt=14,2;if(0!=(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!=(32&e)?(Bt=11,32):0!=(t=192&e)?(Bt=10,t):0!=(256&e)?(Bt=9,256):0!=(t=3584&e)?(Bt=8,t):0!=(4096&e)?(Bt=7,4096):0!=(t=4186112&e)?(Bt=6,t):0!=(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!=(134217728&e)?(Bt=3,134217728):0!=(t=805306368&e)?(Bt=2,t):0!=(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function Dt(e,t){var a=e.pendingLanes;if(0===a)return Bt=0;var r=0,n=0,i=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,n=Bt=15;else if(0!=(i=134217727&a)){var s=i&~o;0!==s?(r=Pt(s),n=Bt):0!=(l&=i)&&(r=Pt(l),n=Bt)}else 0!=(i=a&~o)?(r=Pt(i),n=Bt):0!==l&&(r=Pt(l),n=Bt);if(0===r)return 0;if(r=a&((0>(r=31-Gt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Pt(t),n<=Bt)return t;Bt=n}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)n=1<<(a=31-Gt(t)),r|=e[a],t&=~n;return r}function Nt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ot(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ft(24&~t))?Ot(10,t):e;case 10:return 0===(e=Ft(192&~t))?Ot(8,t):e;case 8:return 0===(e=Ft(3584&~t))&&0===(e=Ft(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ft(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ft(e){return e&-e}function Rt(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ht(e,t,a){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=a}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Ut|0)|0},Vt=Math.log,Ut=Math.LN2,Kt=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,qt=!0;function Zt(e,t,a,r){De||Be();var n=Yt,i=De;De=!0;try{Me(n,e,t,a,r)}finally{(De=i)||Oe()}}function Qt(e,t,a,r){Wt(Kt,Yt.bind(null,e,t,a,r))}function Yt(e,t,a,r){var n;if(qt)if((n=0==(4&t))&&0<nt.length&&-1<ut.indexOf(e))e=pt(null,e,t,a,r),nt.push(e);else{var i=Jt(e,t,a,r);if(null===i)n&&ht(e,r);else{if(n){if(-1<ut.indexOf(e))return e=pt(i,e,t,a,r),void nt.push(e);if(function(e,t,a,r,n){switch(t){case"focusin":return it=mt(it,e,t,a,r,n),!0;case"dragenter":return ot=mt(ot,e,t,a,r,n),!0;case"mouseover":return lt=mt(lt,e,t,a,r,n),!0;case"pointerover":var i=n.pointerId;return st.set(i,mt(st.get(i)||null,e,t,a,r,n)),!0;case"gotpointercapture":return i=n.pointerId,ct.set(i,mt(ct.get(i)||null,e,t,a,r,n)),!0}return!1}(i,e,t,a,r))return;ht(e,r)}zr(e,t,r,null,a)}}}function Jt(e,t,a,r){var n=Ae(r);if(null!==(n=Yr(n))){var i=Qe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=Ye(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return zr(e,t,r,n,a),null}var Xt=null,$t=null,ea=null;function ta(){if(ea)return ea;var e,t,a=$t,r=a.length,n="value"in Xt?Xt.value:Xt.textContent,i=n.length;for(e=0;e<r&&a[e]===n[e];e++);var o=r-e;for(t=1;t<=o&&a[r-t]===n[i-t];t++);return ea=n.slice(e,1<t?1-t:void 0)}function aa(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ra(){return!0}function na(){return!1}function ia(e){function t(t,a,r,n,i){for(var o in this._reactName=t,this._targetInst=r,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(n):n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ra:na,this.isPropagationStopped=na,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ra)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ra)},persist:function(){},isPersistent:ra}),t}var oa,la,sa,ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},da=ia(ca),ua=n({},ca,{view:0,detail:0}),pa=ia(ua),ha=n({},ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_a,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sa&&(sa&&"mousemove"===e.type?(oa=e.screenX-sa.screenX,la=e.screenY-sa.screenY):la=oa=0,sa=e),oa)},movementY:function(e){return"movementY"in e?e.movementY:la}}),ma=ia(ha),ga=ia(n({},ha,{dataTransfer:0})),fa=ia(n({},ua,{relatedTarget:0})),ba=ia(n({},ca,{animationName:0,elapsedTime:0,pseudoElement:0})),va=ia(n({},ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ya=ia(n({},ca,{data:0})),ka={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wa={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xa={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sa(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xa[e])&&!!t[e]}function _a(){return Sa}var Aa=ia(n({},ua,{key:function(e){if(e.key){var t=ka[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=aa(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wa[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_a,charCode:function(e){return"keypress"===e.type?aa(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?aa(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ea=ia(n({},ha,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ca=ia(n({},ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_a})),Ta=ia(n({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0})),za=ia(n({},ha,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Ia=[9,13,27,32],La=u&&"CompositionEvent"in window,ja=null;u&&"documentMode"in document&&(ja=document.documentMode);var Ma=u&&"TextEvent"in window&&!ja,Ba=u&&(!La||ja&&8<ja&&11>=ja),Pa=String.fromCharCode(32),Da=!1;function Na(e,t){switch(e){case"keyup":return-1!==Ia.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oa(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fa=!1,Ra={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ha(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ra[e.type]:"textarea"===t}function Ga(e,t,a,r){Ie(r),0<(t=Lr(t,"onChange")).length&&(a=new da("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Va=null,Ua=null;function Ka(e){Sr(e,0)}function Wa(e){if(J(Xr(e)))return e}function qa(e,t){if("change"===e)return t}var Za=!1;if(u){var Qa;if(u){var Ya="oninput"in document;if(!Ya){var Ja=document.createElement("div");Ja.setAttribute("oninput","return;"),Ya="function"==typeof Ja.oninput}Qa=Ya}else Qa=!1;Za=Qa&&(!document.documentMode||9<document.documentMode)}function Xa(){Va&&(Va.detachEvent("onpropertychange",$a),Ua=Va=null)}function $a(e){if("value"===e.propertyName&&Wa(Ua)){var t=[];if(Ga(t,Ua,e,Ae(e)),e=Ka,De)e(t);else{De=!0;try{je(e,t)}finally{De=!1,Oe()}}}}function er(e,t,a){"focusin"===e?(Xa(),Ua=a,(Va=t).attachEvent("onpropertychange",$a)):"focusout"===e&&Xa()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wa(Ua)}function ar(e,t){if("click"===e)return Wa(t)}function rr(e,t){if("input"===e||"change"===e)return Wa(t)}var nr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ir=Object.prototype.hasOwnProperty;function or(e,t){if(nr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++)if(!ir.call(t,a[r])||!nr(e[a[r]],t[a[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var a,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function cr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var a="string"==typeof t.contentWindow.location.href}catch(e){a=!1}if(!a)break;t=X((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,fr=!1;function br(e,t,a){var r=a.window===a?a.document:9===a.nodeType?a:a.ownerDocument;fr||null==hr||hr!==X(r)||(r="selectionStart"in(r=hr)&&ur(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&or(gr,r)||(gr=r,0<(r=Lr(mr,"onSelect")).length&&(t=new da("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=hr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(jt,2);for(var vr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),yr=0;yr<vr.length;yr++)Lt.set(vr[yr],0);d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function xr(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,function(e,t,a,r,n,i,l,s,c){if(Ze.apply(this,arguments),Ve){if(!Ve)throw Error(o(198));var d=Ue;Ve=!1,Ue=null,Ke||(Ke=!0,We=d)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var a=0;a<e.length;a++){var r=e[a],n=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;xr(n,l,c),i=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;xr(n,l,c),i=s}}}if(Ke)throw e=We,Ke=!1,We=null,e}function _r(e,t){var a=en(t),r=e+"__bubble";a.has(r)||(Tr(t,e,2,!1),a.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Er(e){e[Ar]||(e[Ar]=!0,l.forEach((function(t){wr.has(t)||Cr(t,!1,e,null),Cr(t,!0,e,null)})))}function Cr(e,t,a,r){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=a;if("selectionchange"===e&&9!==a.nodeType&&(i=a.ownerDocument),null!==r&&!t&&wr.has(e)){if("scroll"!==e)return;n|=2,i=r}var o=en(i),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(n|=4),Tr(i,e,n,t),o.add(l))}function Tr(e,t,a,r){var n=Lt.get(t);switch(void 0===n?2:n){case 0:n=Zt;break;case 1:n=Qt;break;default:n=Yt}a=n.bind(null,t,a,e),n=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(n=!0),r?void 0!==n?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):void 0!==n?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function zr(e,t,a,r,n){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===n||8===l.nodeType&&l.parentNode===n)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===n||8===s.nodeType&&s.parentNode===n))return;o=o.return}for(;null!==l;){if(null===(o=Yr(l)))return;if(5===(s=o.tag)||6===s){r=i=o;continue e}l=l.parentNode}}r=r.return}!function(e,t,a){if(Ne)return e();Ne=!0;try{Pe(e,t,a)}finally{Ne=!1,Oe()}}((function(){var r=i,n=Ae(a),o=[];e:{var l=It.get(e);if(void 0!==l){var s=da,c=e;switch(e){case"keypress":if(0===aa(a))break e;case"keydown":case"keyup":s=Aa;break;case"focusin":c="focus",s=fa;break;case"focusout":c="blur",s=fa;break;case"beforeblur":case"afterblur":s=fa;break;case"click":if(2===a.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=ma;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=ga;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ca;break;case Et:case Ct:case Tt:s=ba;break;case zt:s=Ta;break;case"scroll":s=pa;break;case"wheel":s=za;break;case"copy":case"cut":case"paste":s=va;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ea}var d=0!=(4&t),u=!d&&"scroll"===e,p=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=(h=m).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==p&&null!=(g=Fe(m,p))&&d.push(Ir(m,g,h))),u)break;m=m.return}0<d.length&&(l=new s(l,c,null,a,n),o.push({event:l,listeners:d}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=a.relatedTarget||a.fromElement)||!Yr(c)&&!c[Zr])&&(s||l)&&(l=n.window===n?n:(l=n.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=a.relatedTarget||a.toElement)?Yr(c):null)&&(c!==(u=Qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(d=ma,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=Ea,g="onPointerLeave",p="onPointerEnter",m="pointer"),u=null==s?l:Xr(s),h=null==c?l:Xr(c),(l=new d(g,m+"leave",s,a,n)).target=u,l.relatedTarget=h,g=null,Yr(n)===r&&((d=new d(p,m+"enter",c,a,n)).target=h,d.relatedTarget=u,g=d),u=g,s&&c)e:{for(p=c,m=0,h=d=s;h;h=jr(h))m++;for(h=0,g=p;g;g=jr(g))h++;for(;0<m-h;)d=jr(d),m--;for(;0<h-m;)p=jr(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=jr(d),p=jr(p)}d=null}else d=null;null!==s&&Mr(o,l,s,d,!1),null!==c&&null!==u&&Mr(o,u,c,d,!0)}if("select"===(s=(l=r?Xr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var f=qa;else if(Ha(l))if(Za)f=rr;else{f=tr;var b=er}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(f=ar);switch(f&&(f=f(e,r))?Ga(o,f,a,n):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&ne(l,"number",l.value)),b=r?Xr(r):window,e){case"focusin":(Ha(b)||"true"===b.contentEditable)&&(hr=b,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,br(o,a,n);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":br(o,a,n)}var v;if(La)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fa?Na(e,a)&&(y="onCompositionEnd"):"keydown"===e&&229===a.keyCode&&(y="onCompositionStart");y&&(Ba&&"ko"!==a.locale&&(Fa||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fa&&(v=ta()):($t="value"in(Xt=n)?Xt.value:Xt.textContent,Fa=!0)),0<(b=Lr(r,y)).length&&(y=new ya(y,e,null,a,n),o.push({event:y,listeners:b}),(v||null!==(v=Oa(a)))&&(y.data=v))),(v=Ma?function(e,t){switch(e){case"compositionend":return Oa(t);case"keypress":return 32!==t.which?null:(Da=!0,Pa);case"textInput":return(e=t.data)===Pa&&Da?null:e;default:return null}}(e,a):function(e,t){if(Fa)return"compositionend"===e||!La&&Na(e,t)?(e=ta(),ea=$t=Xt=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ba&&"ko"!==t.locale?null:t.data;default:return null}}(e,a))&&0<(r=Lr(r,"onBeforeInput")).length&&(n=new ya("onBeforeInput","beforeinput",null,a,n),o.push({event:n,listeners:r}),n.data=v)}Sr(o,t)}))}function Ir(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Lr(e,t){for(var a=t+"Capture",r=[];null!==e;){var n=e,i=n.stateNode;5===n.tag&&null!==i&&(n=i,null!=(i=Fe(e,a))&&r.unshift(Ir(e,i,n)),null!=(i=Fe(e,t))&&r.push(Ir(e,i,n))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,a,r,n){for(var i=t._reactName,o=[];null!==a&&a!==r;){var l=a,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,n?null!=(s=Fe(a,i))&&o.unshift(Ir(a,s,l)):n||null!=(s=Fe(a,i))&&o.push(Ir(a,s,l))),a=a.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Pr=null,Dr=null;function Nr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Or(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Fr="function"==typeof setTimeout?setTimeout:void 0,Rr="function"==typeof clearTimeout?clearTimeout:void 0;function Hr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var a=e.data;if("$"===a||"$!"===a||"$?"===a){if(0===t)return e;t--}else"/$"===a&&t++}e=e.previousSibling}return null}var Ur=0,Kr=Math.random().toString(36).slice(2),Wr="__reactFiber$"+Kr,qr="__reactProps$"+Kr,Zr="__reactContainer$"+Kr,Qr="__reactEvents$"+Kr;function Yr(e){var t=e[Wr];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Zr]||a[Wr]){if(a=t.alternate,null!==t.child||null!==a&&null!==a.child)for(e=Vr(e);null!==e;){if(a=e[Wr])return a;e=Vr(e)}return t}a=(e=a).parentNode}return null}function Jr(e){return!(e=e[Wr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Xr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function $r(e){return e[qr]||null}function en(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var tn=[],an=-1;function rn(e){return{current:e}}function nn(e){0>an||(e.current=tn[an],tn[an]=null,an--)}function on(e,t){an++,tn[an]=e.current,e.current=t}var ln={},sn=rn(ln),cn=rn(!1),dn=ln;function un(e,t){var a=e.type.contextTypes;if(!a)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var n,i={};for(n in a)i[n]=t[n];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pn(e){return null!=e.childContextTypes}function hn(){nn(cn),nn(sn)}function mn(e,t,a){if(sn.current!==ln)throw Error(o(168));on(sn,t),on(cn,a)}function gn(e,t,a){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return a;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,q(t)||"Unknown",i));return n({},a,r)}function fn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,dn=sn.current,on(sn,e),on(cn,cn.current),!0}function bn(e,t,a){var r=e.stateNode;if(!r)throw Error(o(169));a?(e=gn(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,nn(cn),nn(sn),on(sn,e)):nn(cn),on(cn,a)}var vn=null,yn=null,kn=i.unstable_runWithPriority,wn=i.unstable_scheduleCallback,xn=i.unstable_cancelCallback,Sn=i.unstable_shouldYield,_n=i.unstable_requestPaint,An=i.unstable_now,En=i.unstable_getCurrentPriorityLevel,Cn=i.unstable_ImmediatePriority,Tn=i.unstable_UserBlockingPriority,zn=i.unstable_NormalPriority,In=i.unstable_LowPriority,Ln=i.unstable_IdlePriority,jn={},Mn=void 0!==_n?_n:function(){},Bn=null,Pn=null,Dn=!1,Nn=An(),On=1e4>Nn?An:function(){return An()-Nn};function Fn(){switch(En()){case Cn:return 99;case Tn:return 98;case zn:return 97;case In:return 96;case Ln:return 95;default:throw Error(o(332))}}function Rn(e){switch(e){case 99:return Cn;case 98:return Tn;case 97:return zn;case 96:return In;case 95:return Ln;default:throw Error(o(332))}}function Hn(e,t){return e=Rn(e),kn(e,t)}function Gn(e,t,a){return e=Rn(e),wn(e,t,a)}function Vn(){if(null!==Pn){var e=Pn;Pn=null,xn(e)}Un()}function Un(){if(!Dn&&null!==Bn){Dn=!0;var e=0;try{var t=Bn;Hn(99,(function(){for(;e<t.length;e++){var a=t[e];do{a=a(!0)}while(null!==a)}})),Bn=null}catch(t){throw null!==Bn&&(Bn=Bn.slice(e+1)),wn(Cn,Vn),t}finally{Dn=!1}}}var Kn=w.ReactCurrentBatchConfig;function Wn(e,t){if(e&&e.defaultProps){for(var a in t=n({},t),e=e.defaultProps)void 0===t[a]&&(t[a]=e[a]);return t}return t}var qn=rn(null),Zn=null,Qn=null,Yn=null;function Jn(){Yn=Qn=Zn=null}function Xn(e){var t=qn.current;nn(qn),e.type._context._currentValue=t}function $n(e,t){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)===t){if(null===a||(a.childLanes&t)===t)break;a.childLanes|=t}else e.childLanes|=t,null!==a&&(a.childLanes|=t);e=e.return}}function ei(e,t){Zn=e,Yn=Qn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(jo=!0),e.firstContext=null)}function ti(e,t){if(Yn!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Yn=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qn){if(null===Zn)throw Error(o(308));Qn=t,Zn.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var ai=!1;function ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ni(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oi(e,t){if(null!==(e=e.updateQueue)){var a=(e=e.shared).pending;null===a?t.next=t:(t.next=a.next,a.next=t),e.pending=t}}function li(e,t){var a=e.updateQueue,r=e.alternate;if(null!==r&&a===(r=r.updateQueue)){var n=null,i=null;if(null!==(a=a.firstBaseUpdate)){do{var o={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};null===i?n=i=o:i=i.next=o,a=a.next}while(null!==a);null===i?n=i=t:i=i.next=t}else n=i=t;return a={baseState:r.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=a)}null===(e=a.lastBaseUpdate)?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function si(e,t,a,r){var i=e.updateQueue;ai=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var c=s,d=c.next;c.next=null,null===l?o=d:l.next=d,l=c;var u=e.alternate;if(null!==u){var p=(u=u.updateQueue).lastBaseUpdate;p!==l&&(null===p?u.firstBaseUpdate=d:p.next=d,u.lastBaseUpdate=c)}}if(null!==o){for(p=i.baseState,l=0,u=d=c=null;;){s=o.lane;var h=o.eventTime;if((r&s)===s){null!==u&&(u=u.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,g=o;switch(s=t,h=a,g.tag){case 1:if("function"==typeof(m=g.payload)){p=m.call(h,p,s);break e}p=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(s="function"==typeof(m=g.payload)?m.call(h,p,s):m))break e;p=n({},p,s);break e;case 2:ai=!0}}null!==o.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[o]:s.push(o))}else h={eventTime:h,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(d=u=h,c=p):u=u.next=h,l|=s;if(null===(o=o.next)){if(null===(s=i.shared.pending))break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===u&&(c=p),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=u,Bl|=l,e.lanes=l,e.memoizedState=p}}function ci(e,t,a){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],n=r.callback;if(null!==n){if(r.callback=null,r=a,"function"!=typeof n)throw Error(o(191,n));n.call(r)}}}var di=(new r.Component).refs;function ui(e,t,a,r){a=null==(a=a(r,t=e.memoizedState))?t:n({},t,a),e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}var pi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=is(),n=os(e),i=ii(r,n);i.payload=t,null!=a&&(i.callback=a),oi(e,i),ls(e,n,r)},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=is(),n=os(e),i=ii(r,n);i.tag=1,i.payload=t,null!=a&&(i.callback=a),oi(e,i),ls(e,n,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=is(),r=os(e),n=ii(a,r);n.tag=2,null!=t&&(n.callback=t),oi(e,n),ls(e,r,a)}};function hi(e,t,a,r,n,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!(t.prototype&&t.prototype.isPureReactComponent&&or(a,r)&&or(n,i))}function mi(e,t,a){var r=!1,n=ln,i=t.contextType;return"object"==typeof i&&null!==i?i=ti(i):(n=pn(t)?dn:sn.current,i=(r=null!=(r=t.contextTypes))?un(e,n):ln),t=new t(a,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(e,t,a,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(a,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&pi.enqueueReplaceState(t,t.state,null)}function fi(e,t,a,r){var n=e.stateNode;n.props=a,n.state=e.memoizedState,n.refs=di,ri(e);var i=t.contextType;"object"==typeof i&&null!==i?n.context=ti(i):(i=pn(t)?dn:sn.current,n.context=un(e,i)),si(e,a,n,r),n.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ui(e,t,i,a),n.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof n.getSnapshotBeforeUpdate||"function"!=typeof n.UNSAFE_componentWillMount&&"function"!=typeof n.componentWillMount||(t=n.state,"function"==typeof n.componentWillMount&&n.componentWillMount(),"function"==typeof n.UNSAFE_componentWillMount&&n.UNSAFE_componentWillMount(),t!==n.state&&pi.enqueueReplaceState(n,n.state,null),si(e,a,n,r),n.state=e.memoizedState),"function"==typeof n.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function vi(e,t,a){if(null!==(e=a.ref)&&"function"!=typeof e&&"object"!=typeof e){if(a._owner){if(a=a._owner){if(1!==a.tag)throw Error(o(309));var r=a.stateNode}if(!r)throw Error(o(147,e));var n=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===n?t.ref:((t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[n]:t[n]=e})._stringRef=n,t)}if("string"!=typeof e)throw Error(o(284));if(!a._owner)throw Error(o(290,e))}return e}function yi(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,a){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=a,t.lastEffect=a):t.firstEffect=t.lastEffect=a,a.nextEffect=null,a.flags=8}}function a(a,r){if(!e)return null;for(;null!==r;)t(a,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function n(e,t){return(e=Fs(e,t)).index=0,e.sibling=null,e}function i(t,a,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<a?(t.flags=2,a):r:(t.flags=2,a):a}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,a,r){return null===t||6!==t.tag?((t=Vs(a,e.mode,r)).return=e,t):((t=n(t,a)).return=e,t)}function c(e,t,a,r){return null!==t&&t.elementType===a.type?((r=n(t,a.props)).ref=vi(e,t,a),r.return=e,r):((r=Rs(a.type,a.key,a.props,null,e.mode,r)).ref=vi(e,t,a),r.return=e,r)}function d(e,t,a,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==a.containerInfo||t.stateNode.implementation!==a.implementation?((t=Us(a,e.mode,r)).return=e,t):((t=n(t,a.children||[])).return=e,t)}function u(e,t,a,r,i){return null===t||7!==t.tag?((t=Hs(a,e.mode,r,i)).return=e,t):((t=n(t,a)).return=e,t)}function p(e,t,a){if("string"==typeof t||"number"==typeof t)return(t=Vs(""+t,e.mode,a)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(a=Rs(t.type,t.key,t.props,null,e.mode,a)).ref=vi(e,null,t),a.return=e,a;case S:return(t=Us(t,e.mode,a)).return=e,t}if(bi(t)||G(t))return(t=Hs(t,e.mode,a,null)).return=e,t;yi(e,t)}return null}function h(e,t,a,r){var n=null!==t?t.key:null;if("string"==typeof a||"number"==typeof a)return null!==n?null:s(e,t,""+a,r);if("object"==typeof a&&null!==a){switch(a.$$typeof){case x:return a.key===n?a.type===_?u(e,t,a.props.children,r,n):c(e,t,a,r):null;case S:return a.key===n?d(e,t,a,r):null}if(bi(a)||G(a))return null!==n?null:u(e,t,a,r,null);yi(e,a)}return null}function m(e,t,a,r,n){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(a)||null,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?a:r.key)||null,r.type===_?u(t,e,r.props.children,n,r.key):c(t,e,r,n);case S:return d(t,e=e.get(null===r.key?a:r.key)||null,r,n)}if(bi(r)||G(r))return u(t,e=e.get(a)||null,r,n,null);yi(t,r)}return null}function g(n,o,l,s){for(var c=null,d=null,u=o,g=o=0,f=null;null!==u&&g<l.length;g++){u.index>g?(f=u,u=null):f=u.sibling;var b=h(n,u,l[g],s);if(null===b){null===u&&(u=f);break}e&&u&&null===b.alternate&&t(n,u),o=i(b,o,g),null===d?c=b:d.sibling=b,d=b,u=f}if(g===l.length)return a(n,u),c;if(null===u){for(;g<l.length;g++)null!==(u=p(n,l[g],s))&&(o=i(u,o,g),null===d?c=u:d.sibling=u,d=u);return c}for(u=r(n,u);g<l.length;g++)null!==(f=m(u,n,g,l[g],s))&&(e&&null!==f.alternate&&u.delete(null===f.key?g:f.key),o=i(f,o,g),null===d?c=f:d.sibling=f,d=f);return e&&u.forEach((function(e){return t(n,e)})),c}function f(n,l,s,c){var d=G(s);if("function"!=typeof d)throw Error(o(150));if(null==(s=d.call(s)))throw Error(o(151));for(var u=d=null,g=l,f=l=0,b=null,v=s.next();null!==g&&!v.done;f++,v=s.next()){g.index>f?(b=g,g=null):b=g.sibling;var y=h(n,g,v.value,c);if(null===y){null===g&&(g=b);break}e&&g&&null===y.alternate&&t(n,g),l=i(y,l,f),null===u?d=y:u.sibling=y,u=y,g=b}if(v.done)return a(n,g),d;if(null===g){for(;!v.done;f++,v=s.next())null!==(v=p(n,v.value,c))&&(l=i(v,l,f),null===u?d=v:u.sibling=v,u=v);return d}for(g=r(n,g);!v.done;f++,v=s.next())null!==(v=m(g,n,f,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?f:v.key),l=i(v,l,f),null===u?d=v:u.sibling=v,u=v);return e&&g.forEach((function(e){return t(n,e)})),d}return function(e,r,i,s){var c="object"==typeof i&&null!==i&&i.type===_&&null===i.key;c&&(i=i.props.children);var d="object"==typeof i&&null!==i;if(d)switch(i.$$typeof){case x:e:{for(d=i.key,c=r;null!==c;){if(c.key===d){switch(c.tag){case 7:if(i.type===_){a(e,c.sibling),(r=n(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){a(e,c.sibling),(r=n(c,i.props)).ref=vi(e,c,i),r.return=e,e=r;break e}}a(e,c);break}t(e,c),c=c.sibling}i.type===_?((r=Hs(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Rs(i.type,i.key,i.props,null,e.mode,s)).ref=vi(e,r,i),s.return=e,e=s)}return l(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){a(e,r.sibling),(r=n(r,i.children||[])).return=e,e=r;break e}a(e,r);break}t(e,r),r=r.sibling}(r=Us(i,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(a(e,r.sibling),(r=n(r,i)).return=e,e=r):(a(e,r),(r=Vs(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,s);if(G(i))return f(e,r,i,s);if(d&&yi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return a(e,r)}}var wi=ki(!0),xi=ki(!1),Si={},_i=rn(Si),Ai=rn(Si),Ei=rn(Si);function Ci(e){if(e===Si)throw Error(o(174));return e}function Ti(e,t){switch(on(Ei,t),on(Ai,e),on(_i,Si),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}nn(_i),on(_i,t)}function zi(){nn(_i),nn(Ai),nn(Ei)}function Ii(e){Ci(Ei.current);var t=Ci(_i.current),a=he(t,e.type);t!==a&&(on(Ai,e),on(_i,a))}function Li(e){Ai.current===e&&(nn(_i),nn(Ai))}var ji=rn(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var a=t.memoizedState;if(null!==a&&(null===(a=a.dehydrated)||"$?"===a.data||"$!"===a.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Pi=null,Di=!1;function Ni(e,t){var a=Ns(5,null,null,0);a.elementType="DELETED",a.type="DELETED",a.stateNode=t,a.return=e,a.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=a,e.lastEffect=a):e.firstEffect=e.lastEffect=a}function Oi(e,t){switch(e.tag){case 5:var a=e.type;return null!==(t=1!==t.nodeType||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Fi(e){if(Di){var t=Pi;if(t){var a=t;if(!Oi(e,t)){if(!(t=Gr(a.nextSibling))||!Oi(e,t))return e.flags=-1025&e.flags|2,Di=!1,void(Bi=e);Ni(Bi,a)}Bi=e,Pi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Di=!1,Bi=e}}function Ri(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function Hi(e){if(e!==Bi)return!1;if(!Di)return Ri(e),Di=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Or(t,e.memoizedProps))for(t=Pi;t;)Ni(e,t),t=Gr(t.nextSibling);if(Ri(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var a=e.data;if("/$"===a){if(0===t){Pi=Gr(e.nextSibling);break e}t--}else"$"!==a&&"$!"!==a&&"$?"!==a||t++}e=e.nextSibling}Pi=null}}else Pi=Bi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){Pi=Bi=null,Di=!1}var Vi=[];function Ui(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Ki=w.ReactCurrentDispatcher,Wi=w.ReactCurrentBatchConfig,qi=0,Zi=null,Qi=null,Yi=null,Ji=!1,Xi=!1;function $i(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!nr(e[a],t[a]))return!1;return!0}function to(e,t,a,r,n,i){if(qi=i,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ki.current=null===e||null===e.memoizedState?To:zo,e=a(r,n),Xi){i=0;do{if(Xi=!1,!(25>i))throw Error(o(301));i+=1,Yi=Qi=null,t.updateQueue=null,Ki.current=Io,e=a(r,n)}while(Xi)}if(Ki.current=Co,t=null!==Qi&&null!==Qi.next,qi=0,Yi=Qi=Zi=null,Ji=!1,t)throw Error(o(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yi?Zi.memoizedState=Yi=e:Yi=Yi.next=e,Yi}function ro(){if(null===Qi){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Yi?Zi.memoizedState:Yi.next;if(null!==t)Yi=t,Qi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Yi?Zi.memoizedState=Yi=e:Yi=Yi.next=e}return Yi}function no(e,t){return"function"==typeof t?t(e):t}function io(e){var t=ro(),a=t.queue;if(null===a)throw Error(o(311));a.lastRenderedReducer=e;var r=Qi,n=r.baseQueue,i=a.pending;if(null!==i){if(null!==n){var l=n.next;n.next=i.next,i.next=l}r.baseQueue=n=i,a.pending=null}if(null!==n){n=n.next,r=r.baseState;var s=l=i=null,c=n;do{var d=c.lane;if((qi&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var u={lane:d,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=u,i=r):s=s.next=u,Zi.lanes|=d,Bl|=d}c=c.next}while(null!==c&&c!==n);null===s?i=r:s.next=l,nr(r,t.memoizedState)||(jo=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,a.lastRenderedState=r}return[t.memoizedState,a.dispatch]}function oo(e){var t=ro(),a=t.queue;if(null===a)throw Error(o(311));a.lastRenderedReducer=e;var r=a.dispatch,n=a.pending,i=t.memoizedState;if(null!==n){a.pending=null;var l=n=n.next;do{i=e(i,l.action),l=l.next}while(l!==n);nr(i,t.memoizedState)||(jo=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),a.lastRenderedState=i}return[i,r]}function lo(e,t,a){var r=t._getVersion;r=r(t._source);var n=t._workInProgressVersionPrimary;if(null!==n?e=n===r:(e=e.mutableReadLanes,(e=(qi&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return a(t._source);throw Vi.push(t),Error(o(350))}function so(e,t,a,r){var n=El;if(null===n)throw Error(o(349));var i=t._getVersion,l=i(t._source),s=Ki.current,c=s.useState((function(){return lo(n,t,a)})),d=c[1],u=c[0];c=Yi;var p=e.memoizedState,h=p.refs,m=h.getSnapshot,g=p.source;p=p.subscribe;var f=Zi;return e.memoizedState={refs:h,source:t,subscribe:r},s.useEffect((function(){h.getSnapshot=a,h.setSnapshot=d;var e=i(t._source);if(!nr(l,e)){e=a(t._source),nr(u,e)||(d(e),e=os(f),n.mutableReadLanes|=e&n.pendingLanes),e=n.mutableReadLanes,n.entangledLanes|=e;for(var r=n.entanglements,o=e;0<o;){var s=31-Gt(o),c=1<<s;r[s]|=e,o&=~c}}}),[a,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,a=h.setSnapshot;try{a(e(t._source));var r=os(f);n.mutableReadLanes|=r&n.pendingLanes}catch(e){a((function(){throw e}))}}))}),[t,r]),nr(m,a)&&nr(g,t)&&nr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:no,lastRenderedState:u}).dispatch=d=Eo.bind(null,Zi,e),c.queue=e,c.baseQueue=null,u=lo(n,t,a),c.memoizedState=c.baseState=u),u}function co(e,t,a){return so(ro(),e,t,a)}function uo(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:no,lastRenderedState:e}).dispatch=Eo.bind(null,Zi,e),[t.memoizedState,e]}function po(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},null===(t=Zi.updateQueue)?(t={lastEffect:null},Zi.updateQueue=t,t.lastEffect=e.next=e):null===(a=t.lastEffect)?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function ho(e){return e={current:e},ao().memoizedState=e}function mo(){return ro().memoizedState}function go(e,t,a,r){var n=ao();Zi.flags|=e,n.memoizedState=po(1|t,a,void 0,void 0===r?null:r)}function fo(e,t,a,r){var n=ro();r=void 0===r?null:r;var i=void 0;if(null!==Qi){var o=Qi.memoizedState;if(i=o.destroy,null!==r&&eo(r,o.deps))return void po(t,a,i,r)}Zi.flags|=e,n.memoizedState=po(1|t,a,i,r)}function bo(e,t){return go(516,4,e,t)}function vo(e,t){return fo(516,4,e,t)}function yo(e,t){return fo(4,2,e,t)}function ko(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,a){return a=null!=a?a.concat([e]):null,fo(4,2,ko.bind(null,t,e),a)}function xo(){}function So(e,t){var a=ro();t=void 0===t?null:t;var r=a.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function _o(e,t){var a=ro();t=void 0===t?null:t;var r=a.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Ao(e,t){var a=Fn();Hn(98>a?98:a,(function(){e(!0)})),Hn(97<a?97:a,(function(){var a=Wi.transition;Wi.transition=1;try{e(!1),t()}finally{Wi.transition=a}}))}function Eo(e,t,a){var r=is(),n=os(e),i={lane:n,action:a,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Zi||null!==o&&o===Zi)Xi=Ji=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,a);if(i.eagerReducer=o,i.eagerState=s,nr(s,l))return}catch(e){}ls(e,n,r)}}var Co={readContext:ti,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useLayoutEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useDeferredValue:$i,useTransition:$i,useMutableSource:$i,useOpaqueIdentifier:$i,unstable_isNewReconciler:!1},To={readContext:ti,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ti,useEffect:bo,useImperativeHandle:function(e,t,a){return a=null!=a?a.concat([e]):null,go(4,2,ko.bind(null,t,e),a)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var a=ao();return t=void 0===t?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=ao();return t=void 0!==a?a(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Eo.bind(null,Zi,e),[r.memoizedState,e]},useRef:ho,useState:uo,useDebugValue:xo,useDeferredValue:function(e){var t=uo(e),a=t[0],r=t[1];return bo((function(){var t=Wi.transition;Wi.transition=1;try{r(e)}finally{Wi.transition=t}}),[e]),a},useTransition:function(){var e=uo(!1),t=e[0];return ho(e=Ao.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,a){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:a},so(r,e,t,a)},useOpaqueIdentifier:function(){if(Di){var e=!1,t=function(e){return{$$typeof:P,toString:e,valueOf:e}}((function(){throw e||(e=!0,a("r:"+(Ur++).toString(36))),Error(o(355))})),a=uo(t)[1];return 0==(2&Zi.mode)&&(Zi.flags|=516,po(5,(function(){a("r:"+(Ur++).toString(36))}),void 0,null)),t}return uo(t="r:"+(Ur++).toString(36)),t},unstable_isNewReconciler:!1},zo={readContext:ti,useCallback:So,useContext:ti,useEffect:vo,useImperativeHandle:wo,useLayoutEffect:yo,useMemo:_o,useReducer:io,useRef:mo,useState:function(){return io(no)},useDebugValue:xo,useDeferredValue:function(e){var t=io(no),a=t[0],r=t[1];return vo((function(){var t=Wi.transition;Wi.transition=1;try{r(e)}finally{Wi.transition=t}}),[e]),a},useTransition:function(){var e=io(no)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return io(no)[0]},unstable_isNewReconciler:!1},Io={readContext:ti,useCallback:So,useContext:ti,useEffect:vo,useImperativeHandle:wo,useLayoutEffect:yo,useMemo:_o,useReducer:oo,useRef:mo,useState:function(){return oo(no)},useDebugValue:xo,useDeferredValue:function(e){var t=oo(no),a=t[0],r=t[1];return vo((function(){var t=Wi.transition;Wi.transition=1;try{r(e)}finally{Wi.transition=t}}),[e]),a},useTransition:function(){var e=oo(no)[0];return[mo().current,e]},useMutableSource:co,useOpaqueIdentifier:function(){return oo(no)[0]},unstable_isNewReconciler:!1},Lo=w.ReactCurrentOwner,jo=!1;function Mo(e,t,a,r){t.child=null===e?xi(t,null,a,r):wi(t,e.child,a,r)}function Bo(e,t,a,r,n){a=a.render;var i=t.ref;return ei(t,n),r=to(e,t,a,r,i,n),null===e||jo?(t.flags|=1,Mo(e,t,r,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,Xo(e,t,n))}function Po(e,t,a,r,n,i){if(null===e){var o=a.type;return"function"!=typeof o||Os(o)||void 0!==o.defaultProps||null!==a.compare||void 0!==a.defaultProps?((e=Rs(a.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,n,i))}return o=e.child,0==(n&i)&&(n=o.memoizedProps,(a=null!==(a=a.compare)?a:or)(n,r)&&e.ref===t.ref)?Xo(e,t,i):(t.flags|=1,(e=Fs(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,a,r,n,i){if(null!==e&&or(e.memoizedProps,r)&&e.ref===t.ref){if(jo=!1,0==(i&n))return t.lanes=e.lanes,Xo(e,t,i);0!=(16384&e.flags)&&(jo=!0)}return Fo(e,t,a,r,i)}function No(e,t,a){var r=t.pendingProps,n=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},gs(0,a);else{if(0==(1073741824&a))return e=null!==i?i.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},gs(0,e),null;t.memoizedState={baseLanes:0},gs(0,null!==i?i.baseLanes:a)}else null!==i?(r=i.baseLanes|a,t.memoizedState=null):r=a,gs(0,r);return Mo(e,t,n,a),t.child}function Oo(e,t){var a=t.ref;(null===e&&null!==a||null!==e&&e.ref!==a)&&(t.flags|=128)}function Fo(e,t,a,r,n){var i=pn(a)?dn:sn.current;return i=un(t,i),ei(t,n),a=to(e,t,a,r,i,n),null===e||jo?(t.flags|=1,Mo(e,t,a,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,Xo(e,t,n))}function Ro(e,t,a,r,n){if(pn(a)){var i=!0;fn(t)}else i=!1;if(ei(t,n),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mi(t,a,r),fi(t,a,r,n),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=a.contextType;c="object"==typeof c&&null!==c?ti(c):un(t,c=pn(a)?dn:sn.current);var d=a.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate;u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==c)&&gi(t,o,r,c),ai=!1;var p=t.memoizedState;o.state=p,si(t,r,o,n),s=t.memoizedState,l!==r||p!==s||cn.current||ai?("function"==typeof d&&(ui(t,a,d,r),s=t.memoizedState),(l=ai||hi(t,a,l,r,p,s,c))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=c,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ni(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Wn(t.type,l),o.props=c,u=t.pendingProps,p=o.context,s="object"==typeof(s=a.contextType)&&null!==s?ti(s):un(t,s=pn(a)?dn:sn.current);var h=a.getDerivedStateFromProps;(d="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==u||p!==s)&&gi(t,o,r,s),ai=!1,p=t.memoizedState,o.state=p,si(t,r,o,n);var m=t.memoizedState;l!==u||p!==m||cn.current||ai?("function"==typeof h&&(ui(t,a,h,r),m=t.memoizedState),(c=ai||hi(t,a,c,r,p,m,s))?(d||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=s,r=c):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Ho(e,t,a,r,i,n)}function Ho(e,t,a,r,n,i){Oo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return n&&bn(t,a,!1),Xo(e,t,i);r=t.stateNode,Lo.current=t;var l=o&&"function"!=typeof a.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):Mo(e,t,l,i),t.memoizedState=r.state,n&&bn(t,a,!0),t.child}function Go(e){var t=e.stateNode;t.pendingContext?mn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mn(0,t.context,!1),Ti(e,t.containerInfo)}var Vo,Uo,Ko,Wo={dehydrated:null,retryLane:0};function qo(e,t,a){var r,n=t.pendingProps,i=ji.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===n.fallback||!0===n.unstable_avoidThisFallback||(i|=1),on(ji,1&i),null===e?(void 0!==n.fallback&&Fi(t),e=n.children,i=n.fallback,o?(e=Zo(t,e,i,a),t.child.memoizedState={baseLanes:a},t.memoizedState=Wo,e):"number"==typeof n.unstable_expectedLoadTime?(e=Zo(t,e,i,a),t.child.memoizedState={baseLanes:a},t.memoizedState=Wo,t.lanes=33554432,e):((a=Gs({mode:"visible",children:e},t.mode,a,null)).return=t,t.child=a)):(e.memoizedState,o?(n=function(e,t,a,r,n){var i=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:a};return 0==(2&i)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=l,null!==(o=a.lastEffect)?(t.firstEffect=a.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):a=Fs(o,l),null!==e?r=Fs(e,r):(r=Hs(r,i,n,null)).flags|=2,r.return=t,a.return=t,a.sibling=r,t.child=a,r}(e,t,n.children,n.fallback,a),o=t.child,i=e.child.memoizedState,o.memoizedState=null===i?{baseLanes:a}:{baseLanes:i.baseLanes|a},o.childLanes=e.childLanes&~a,t.memoizedState=Wo,n):(a=function(e,t,a,r){var n=e.child;return e=n.sibling,a=Fs(n,{mode:"visible",children:a}),0==(2&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=a}(e,t,n.children,a),t.memoizedState=null,a))}function Zo(e,t,a,r){var n=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&n)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Gs(t,n,0,null),a=Hs(a,n,r,null),i.return=e,a.return=e,i.sibling=a,e.child=i,a}function Qo(e,t){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),$n(e.return,t)}function Yo(e,t,a,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:n,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=a,o.tailMode=n,o.lastEffect=i)}function Jo(e,t,a){var r=t.pendingProps,n=r.revealOrder,i=r.tail;if(Mo(e,t,r.children,a),0!=(2&(r=ji.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qo(e,a);else if(19===e.tag)Qo(e,a);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(on(ji,r),0==(2&t.mode))t.memoizedState=null;else switch(n){case"forwards":for(a=t.child,n=null;null!==a;)null!==(e=a.alternate)&&null===Mi(e)&&(n=a),a=a.sibling;null===(a=n)?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Yo(t,!1,n,a,i,t.lastEffect);break;case"backwards":for(a=null,n=t.child,t.child=null;null!==n;){if(null!==(e=n.alternate)&&null===Mi(e)){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Yo(t,!0,a,null,i,t.lastEffect);break;case"together":Yo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Xo(e,t,a){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0!=(a&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(a=Fs(e=t.child,e.pendingProps),t.child=a,a.return=t;null!==e.sibling;)e=e.sibling,(a=a.sibling=Fs(e,e.pendingProps)).return=t;a.sibling=null}return t.child}return null}function $o(e,t){if(!Di)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;null!==t;)null!==t.alternate&&(a=t),t=t.sibling;null===a?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;null!==a;)null!==a.alternate&&(r=a),a=a.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function el(e,t,a){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pn(t.type)&&hn(),null;case 3:return zi(),nn(cn),nn(sn),Ui(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Li(t);var i=Ci(Ei.current);if(a=t.type,null!==e&&null!=t.stateNode)Uo(e,t,a,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ci(_i.current),Hi(t)){r=t.stateNode,a=t.type;var l=t.memoizedProps;switch(r[Wr]=t,r[qr]=l,a){case"dialog":_r("cancel",r),_r("close",r);break;case"iframe":case"object":case"embed":_r("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)_r(kr[e],r);break;case"source":_r("error",r);break;case"img":case"image":case"link":_r("error",r),_r("load",r);break;case"details":_r("toggle",r);break;case"input":ee(r,l),_r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},_r("invalid",r);break;case"textarea":se(r,l),_r("invalid",r)}for(var c in Se(a,l),e=null,l)l.hasOwnProperty(c)&&(i=l[c],"children"===c?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&_r("scroll",r));switch(a){case"input":Y(r),re(r,l,!0);break;case"textarea":Y(r),de(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===ue&&(e=pe(a)),e===ue?"script"===a?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(a,{is:r.is}):(e=c.createElement(a),"select"===a&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,a),e[Wr]=t,e[qr]=r,Vo(e,t),t.stateNode=e,c=_e(a,r),a){case"dialog":_r("cancel",e),_r("close",e),i=r;break;case"iframe":case"object":case"embed":_r("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)_r(kr[i],e);i=r;break;case"source":_r("error",e),i=r;break;case"img":case"image":case"link":_r("error",e),_r("load",e),i=r;break;case"details":_r("toggle",e),i=r;break;case"input":ee(e,r),i=$(e,r),_r("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=n({},r,{value:void 0}),_r("invalid",e);break;case"textarea":se(e,r),i=le(e,r),_r("invalid",e);break;default:i=r}Se(a,i);var d=i;for(l in d)if(d.hasOwnProperty(l)){var u=d[l];"style"===l?we(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===l?"string"==typeof u?("textarea"!==a||""!==u)&&be(e,u):"number"==typeof u&&be(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=u&&"onScroll"===l&&_r("scroll",e):null!=u&&k(e,l,u,c))}switch(a){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),de(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?oe(e,!!r.multiple,l,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Nr(a,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ko(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));a=Ci(Ei.current),Ci(_i.current),Hi(t)?(r=t.stateNode,a=t.memoizedProps,r[Wr]=t,r.nodeValue!==a&&(t.flags|=4)):((r=(9===a.nodeType?a:a.ownerDocument).createTextNode(r))[Wr]=t,t.stateNode=r)}return null;case 13:return nn(ji),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=a,t):(r=null!==r,a=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):a=null!==e.memoizedState,r&&!a&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ji.current)?0===Ll&&(Ll=3):(0!==Ll&&3!==Ll||(Ll=4),null===El||0==(134217727&Bl)&&0==(134217727&Pl)||us(El,Tl))),(r||a)&&(t.flags|=4),null);case 4:return zi(),null===e&&Er(t.stateNode.containerInfo),null;case 10:return Xn(t),null;case 17:return pn(t.type)&&hn(),null;case 19:if(nn(ji),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(c=r.rendering))if(l)$o(r,!1);else{if(0!==Ll||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Mi(e))){for(t.flags|=64,$o(r,!1),null!==(l=c.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=a,a=t.child;null!==a;)e=r,(l=a).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return on(ji,1&ji.current|2),t.child}e=e.sibling}null!==r.tail&&On()>Fl&&(t.flags|=64,l=!0,$o(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Mi(c))){if(t.flags|=64,l=!0,null!==(a=e.updateQueue)&&(t.updateQueue=a,t.flags|=4),$o(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Di)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*On()-r.renderingStartTime>Fl&&1073741824!==a&&(t.flags|=64,l=!0,$o(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(a=r.last)?a.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(a=r.tail,r.rendering=a,r.tail=a.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=On(),a.sibling=null,t=ji.current,on(ji,l?1&t|2:1&t),a):null;case 23:case 24:return fs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function tl(e){switch(e.tag){case 1:pn(e.type)&&hn();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(zi(),nn(cn),nn(sn),Ui(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return nn(ji),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return nn(ji),null;case 4:return zi(),null;case 10:return Xn(e),null;case 23:case 24:return fs(),null;default:return null}}function al(e,t){try{var a="",r=t;do{a+=W(r),r=r.return}while(r);var n=a}catch(e){n="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:n}}function rl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Vo=function(e,t){for(var a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Uo=function(e,t,a,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ci(_i.current);var o,l=null;switch(a){case"input":i=$(e,i),r=$(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=n({},i,{value:void 0}),r=n({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(u in Se(a,r),a=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var c=i[u];for(o in c)c.hasOwnProperty(o)&&(a||(a={}),a[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var d=r[u];if(c=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&d!==c&&(null!=d||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||d&&d.hasOwnProperty(o)||(a||(a={}),a[o]="");for(o in d)d.hasOwnProperty(o)&&c[o]!==d[o]&&(a||(a={}),a[o]=d[o])}else a||(l||(l=[]),l.push(u,a)),a=d;else"dangerouslySetInnerHTML"===u?(d=d?d.__html:void 0,c=c?c.__html:void 0,null!=d&&c!==d&&(l=l||[]).push(u,d)):"children"===u?"string"!=typeof d&&"number"!=typeof d||(l=l||[]).push(u,""+d):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=d&&"onScroll"===u&&_r("scroll",e),l||c===d||(l=[])):"object"==typeof d&&null!==d&&d.$$typeof===P?d.toString():(l=l||[]).push(u,d))}a&&(l=l||[]).push("style",a);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Ko=function(e,t,a,r){a!==r&&(t.flags|=4)};var nl="function"==typeof WeakMap?WeakMap:Map;function il(e,t,a){(a=ii(-1,a)).tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){Vl||(Vl=!0,Ul=r),rl(0,t)},a}function ol(e,t,a){(a=ii(-1,a)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var n=t.value;a.payload=function(){return rl(0,t),r(n)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(a.callback=function(){"function"!=typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this),rl(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),a}var ll="function"==typeof WeakSet?WeakSet:Set;function sl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ms(e,t)}else t.current=null}function cl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var a=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?a:Wn(t.type,a),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function dl(e,t,a){switch(a.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=a.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=a.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var n=e;r=n.next,0!=(4&(n=n.tag))&&0!=(1&n)&&(Is(a,e),zs(a,e)),e=r}while(e!==t)}return;case 1:return e=a.stateNode,4&a.flags&&(null===t?e.componentDidMount():(r=a.elementType===a.type?t.memoizedProps:Wn(a.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=a.updateQueue)&&ci(a,t,e));case 3:if(null!==(t=a.updateQueue)){if(e=null,null!==a.child)switch(a.child.tag){case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}ci(a,t,e)}return;case 5:return e=a.stateNode,void(null===t&&4&a.flags&&Nr(a.type,a.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===a.memoizedState&&(a=a.alternate,null!==a&&(a=a.memoizedState,null!==a&&(a=a.dehydrated,null!==a&&kt(a)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function ul(e,t){for(var a=e;;){if(5===a.tag){var r=a.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=a.stateNode;var n=a.memoizedProps.style;n=null!=n&&n.hasOwnProperty("display")?n.display:null,r.style.display=ke("display",n)}}else if(6===a.tag)a.stateNode.nodeValue=t?"":a.memoizedProps;else if((23!==a.tag&&24!==a.tag||null===a.memoizedState||a===e)&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function pl(e,t){if(yn&&"function"==typeof yn.onCommitFiberUnmount)try{yn.onCommitFiberUnmount(vn,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var a=e=e.next;do{var r=a,n=r.destroy;if(r=r.tag,void 0!==n)if(0!=(4&r))Is(t,a);else{r=t;try{n()}catch(e){Ms(r,e)}}a=a.next}while(a!==e)}break;case 1:if(sl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ms(t,e)}break;case 5:sl(t);break;case 4:vl(e,t)}}function hl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ml(e){return 5===e.tag||3===e.tag||4===e.tag}function gl(e){e:{for(var t=e.return;null!==t;){if(ml(t))break e;t=t.return}throw Error(o(160))}var a=t;switch(t=a.stateNode,a.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&a.flags&&(be(t,""),a.flags&=-17);e:t:for(a=e;;){for(;null===a.sibling;){if(null===a.return||ml(a.return)){a=null;break e}a=a.return}for(a.sibling.return=a.return,a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(2&a.flags)continue t;if(null===a.child||4===a.tag)continue t;a.child.return=a,a=a.child}if(!(2&a.flags)){a=a.stateNode;break e}}r?fl(e,a,t):bl(e,a,t)}function fl(e,t,a){var r=e.tag,n=5===r||6===r;if(n)e=n?e.stateNode:e.stateNode.instance,t?8===a.nodeType?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(8===a.nodeType?(t=a.parentNode).insertBefore(e,a):(t=a).appendChild(e),null!=(a=a._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(fl(e,t,a),e=e.sibling;null!==e;)fl(e,t,a),e=e.sibling}function bl(e,t,a){var r=e.tag,n=5===r||6===r;if(n)e=n?e.stateNode:e.stateNode.instance,t?a.insertBefore(e,t):a.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bl(e,t,a),e=e.sibling;null!==e;)bl(e,t,a),e=e.sibling}function vl(e,t){for(var a,r,n=t,i=!1;;){if(!i){i=n.return;e:for(;;){if(null===i)throw Error(o(160));switch(a=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:a=a.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===n.tag||6===n.tag){e:for(var l=e,s=n,c=s;;)if(pl(l,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===s)break e;for(;null===c.sibling;){if(null===c.return||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(l=a,s=n.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):a.removeChild(n.stateNode)}else if(4===n.tag){if(null!==n.child){a=n.stateNode.containerInfo,r=!0,n.child.return=n,n=n.child;continue}}else if(pl(e,n),null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;4===(n=n.return).tag&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function yl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var a=t.updateQueue;if(null!==(a=null!==a?a.lastEffect:null)){var r=a=a.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==a)}return;case 1:return;case 5:if(null!=(a=t.stateNode)){r=t.memoizedProps;var n=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(a[qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(a,r),_e(e,n),t=_e(e,r),n=0;n<i.length;n+=2){var l=i[n],s=i[n+1];"style"===l?we(a,s):"dangerouslySetInnerHTML"===l?fe(a,s):"children"===l?be(a,s):k(a,l,s,t)}switch(e){case"input":ae(a,r);break;case"textarea":ce(a,r);break;case"select":e=a._wrapperState.wasMultiple,a._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?oe(a,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(a,!!r.multiple,r.defaultValue,!0):oe(a,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((a=t.stateNode).hydrate&&(a.hydrate=!1,kt(a.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Ol=On(),ul(t.child,!0)),void kl(t);case 19:return void kl(t);case 17:return;case 23:case 24:return void ul(t,null!==t.memoizedState)}throw Error(o(163))}function kl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var a=e.stateNode;null===a&&(a=e.stateNode=new ll),t.forEach((function(t){var r=Ps.bind(null,e,t);a.has(t)||(a.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var xl=Math.ceil,Sl=w.ReactCurrentDispatcher,_l=w.ReactCurrentOwner,Al=0,El=null,Cl=null,Tl=0,zl=0,Il=rn(0),Ll=0,jl=null,Ml=0,Bl=0,Pl=0,Dl=0,Nl=null,Ol=0,Fl=1/0;function Rl(){Fl=On()+500}var Hl,Gl=null,Vl=!1,Ul=null,Kl=null,Wl=!1,ql=null,Zl=90,Ql=[],Yl=[],Jl=null,Xl=0,$l=null,es=-1,ts=0,as=0,rs=null,ns=!1;function is(){return 0!=(48&Al)?On():-1!==es?es:es=On()}function os(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Fn()?1:2;if(0===ts&&(ts=Ml),0!==Kn.transition){0!==as&&(as=null!==Nl?Nl.pendingLanes:0),e=ts;var t=4186112&~as;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Fn(),e=Ot(0!=(4&Al)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts)}function ls(e,t,a){if(50<Xl)throw Xl=0,$l=null,Error(o(185));if(null===(e=ss(e,t)))return null;Ht(e,t,a),e===El&&(Pl|=t,4===Ll&&us(e,Tl));var r=Fn();1===t?0!=(8&Al)&&0==(48&Al)?ps(e):(cs(e,a),0===Al&&(Rl(),Vn())):(0==(4&Al)||98!==r&&99!==r||(null===Jl?Jl=new Set([e]):Jl.add(e)),cs(e,a)),Nl=e}function ss(e,t){e.lanes|=t;var a=e.alternate;for(null!==a&&(a.lanes|=t),a=e,e=e.return;null!==e;)e.childLanes|=t,null!==(a=e.alternate)&&(a.childLanes|=t),a=e,e=e.return;return 3===a.tag?a.stateNode:null}function cs(e,t){for(var a=e.callbackNode,r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Gt(l),c=1<<s,d=i[s];if(-1===d){if(0==(c&r)||0!=(c&n)){d=t,Pt(c);var u=Bt;i[s]=10<=u?d+250:6<=u?d+5e3:-1}}else d<=t&&(e.expiredLanes|=c);l&=~c}if(r=Dt(e,e===El?Tl:0),t=Bt,0===r)null!==a&&(a!==jn&&xn(a),e.callbackNode=null,e.callbackPriority=0);else{if(null!==a){if(e.callbackPriority===t)return;a!==jn&&xn(a)}15===t?(a=ps.bind(null,e),null===Bn?(Bn=[a],Pn=wn(Cn,Un)):Bn.push(a),a=jn):a=14===t?Gn(99,ps.bind(null,e)):Gn(a=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),ds.bind(null,e)),e.callbackPriority=t,e.callbackNode=a}}function ds(e){if(es=-1,as=ts=0,0!=(48&Al))throw Error(o(327));var t=e.callbackNode;if(Ts()&&e.callbackNode!==t)return null;var a=Dt(e,e===El?Tl:0);if(0===a)return null;var r=a,n=Al;Al|=16;var i=ys();for(El===e&&Tl===r||(Rl(),bs(e,r));;)try{xs();break}catch(t){vs(e,t)}if(Jn(),Sl.current=i,Al=n,null!==Cl?r=0:(El=null,Tl=0,r=Ll),0!=(Ml&Pl))bs(e,0);else if(0!==r){if(2===r&&(Al|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(a=Nt(e))&&(r=ks(e,a))),1===r)throw t=jl,bs(e,0),us(e,a),cs(e,On()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=a,r){case 0:case 1:throw Error(o(345));case 2:As(e);break;case 3:if(us(e,a),(62914560&a)===a&&10<(r=Ol+500-On())){if(0!==Dt(e,0))break;if(((n=e.suspendedLanes)&a)!==a){is(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Fr(As.bind(null,e),r);break}As(e);break;case 4:if(us(e,a),(4186112&a)===a)break;for(r=e.eventTimes,n=-1;0<a;){var l=31-Gt(a);i=1<<l,(l=r[l])>n&&(n=l),a&=~i}if(a=n,10<(a=(120>(a=On()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*xl(a/1960))-a)){e.timeoutHandle=Fr(As.bind(null,e),a);break}As(e);break;case 5:As(e);break;default:throw Error(o(329))}}return cs(e,On()),e.callbackNode===t?ds.bind(null,e):null}function us(e,t){for(t&=~Dl,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-Gt(t),r=1<<a;e[a]=-1,t&=~r}}function ps(e){if(0!=(48&Al))throw Error(o(327));if(Ts(),e===El&&0!=(e.expiredLanes&Tl)){var t=Tl,a=ks(e,t);0!=(Ml&Pl)&&(a=ks(e,t=Dt(e,t)))}else a=ks(e,t=Dt(e,0));if(0!==e.tag&&2===a&&(Al|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Nt(e))&&(a=ks(e,t))),1===a)throw a=jl,bs(e,0),us(e,t),cs(e,On()),a;return e.finishedWork=e.current.alternate,e.finishedLanes=t,As(e),cs(e,On()),null}function hs(e,t){var a=Al;Al|=1;try{return e(t)}finally{0===(Al=a)&&(Rl(),Vn())}}function ms(e,t){var a=Al;Al&=-2,Al|=8;try{return e(t)}finally{0===(Al=a)&&(Rl(),Vn())}}function gs(e,t){on(Il,zl),zl|=t,Ml|=t}function fs(){zl=Il.current,nn(Il)}function bs(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(-1!==a&&(e.timeoutHandle=-1,Rr(a)),null!==Cl)for(a=Cl.return;null!==a;){var r=a;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&hn();break;case 3:zi(),nn(cn),nn(sn),Ui();break;case 5:Li(r);break;case 4:zi();break;case 13:case 19:nn(ji);break;case 10:Xn(r);break;case 23:case 24:fs()}a=a.return}El=e,Cl=Fs(e.current,null),Tl=zl=Ml=t,Ll=0,jl=null,Dl=Pl=Bl=0}function vs(e,t){for(;;){var a=Cl;try{if(Jn(),Ki.current=Co,Ji){for(var r=Zi.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}Ji=!1}if(qi=0,Yi=Qi=Zi=null,Xi=!1,_l.current=null,null===a||null===a.return){Ll=1,jl=t,Cl=null;break}e:{var i=e,o=a.return,l=a,s=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&l.mode)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var u=0!=(1&ji.current),p=o;do{var h;if(h=13===p.tag){var m=p.memoizedState;if(null!==m)h=null!==m.dehydrated;else{var g=p.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!u)}}if(h){var f=p.updateQueue;if(null===f){var b=new Set;b.add(c),p.updateQueue=b}else f.add(c);if(0==(2&p.mode)){if(p.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=ii(-1,1);v.tag=2,oi(l,v)}l.lanes|=1;break e}s=void 0,l=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new nl,s=new Set,y.set(c,s)):void 0===(s=y.get(c))&&(s=new Set,y.set(c,s)),!s.has(l)){s.add(l);var k=Bs.bind(null,i,c,l);c.then(k,k)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);s=Error((q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ll&&(Ll=2),s=al(s,l),p=o;do{switch(p.tag){case 3:i=s,p.flags|=4096,t&=-t,p.lanes|=t,li(p,il(0,i,t));break e;case 1:i=s;var w=p.type,x=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Kl||!Kl.has(x)))){p.flags|=4096,t&=-t,p.lanes|=t,li(p,ol(p,i,t));break e}}p=p.return}while(null!==p)}_s(a)}catch(e){t=e,Cl===a&&null!==a&&(Cl=a=a.return);continue}break}}function ys(){var e=Sl.current;return Sl.current=Co,null===e?Co:e}function ks(e,t){var a=Al;Al|=16;var r=ys();for(El===e&&Tl===t||bs(e,t);;)try{ws();break}catch(t){vs(e,t)}if(Jn(),Al=a,Sl.current=r,null!==Cl)throw Error(o(261));return El=null,Tl=0,Ll}function ws(){for(;null!==Cl;)Ss(Cl)}function xs(){for(;null!==Cl&&!Sn();)Ss(Cl)}function Ss(e){var t=Hl(e.alternate,e,zl);e.memoizedProps=e.pendingProps,null===t?_s(e):Cl=t,_l.current=null}function _s(e){var t=e;do{var a=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(a=el(a,t,zl)))return void(Cl=a);if(24!==(a=t).tag&&23!==a.tag||null===a.memoizedState||0!=(1073741824&zl)||0==(4&a.mode)){for(var r=0,n=a.child;null!==n;)r|=n.lanes|n.childLanes,n=n.sibling;a.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(a=tl(t)))return a.flags&=2047,void(Cl=a);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Ll&&(Ll=5)}function As(e){var t=Fn();return Hn(99,Es.bind(null,e,t)),null}function Es(e,t){do{Ts()}while(null!==ql);if(0!=(48&Al))throw Error(o(327));var a=e.finishedWork;if(null===a)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(o(177));e.callbackNode=null;var r=a.lanes|a.childLanes,n=r,i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var c=31-Gt(i),d=1<<c;n[c]=0,l[c]=-1,s[c]=-1,i&=~d}if(null!==Jl&&0==(24&r)&&Jl.has(e)&&Jl.delete(e),e===El&&(Cl=El=null,Tl=0),1<a.flags?null!==a.lastEffect?(a.lastEffect.nextEffect=a,r=a.firstEffect):r=a:r=a.firstEffect,null!==r){if(n=Al,Al|=32,_l.current=null,Pr=qt,ur(l=dr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(d=s.getSelection&&s.getSelection())&&0!==d.rangeCount){s=d.anchorNode,i=d.anchorOffset,c=d.focusNode,d=d.focusOffset;try{s.nodeType,c.nodeType}catch(e){s=null;break e}var u=0,p=-1,h=-1,m=0,g=0,f=l,b=null;t:for(;;){for(var v;f!==s||0!==i&&3!==f.nodeType||(p=u+i),f!==c||0!==d&&3!==f.nodeType||(h=u+d),3===f.nodeType&&(u+=f.nodeValue.length),null!==(v=f.firstChild);)b=f,f=v;for(;;){if(f===l)break t;if(b===s&&++m===i&&(p=u),b===c&&++g===d&&(h=u),null!==(v=f.nextSibling))break;b=(f=b).parentNode}f=v}s=-1===p||-1===h?null:{start:p,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Dr={focusedElem:l,selectionRange:s},qt=!1,rs=null,ns=!1,Gl=r;do{try{Cs()}catch(e){if(null===Gl)throw Error(o(330));Ms(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);rs=null,Gl=r;do{try{for(l=e;null!==Gl;){var y=Gl.flags;if(16&y&&be(Gl.stateNode,""),128&y){var k=Gl.alternate;if(null!==k){var w=k.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&y){case 2:gl(Gl),Gl.flags&=-3;break;case 6:gl(Gl),Gl.flags&=-3,yl(Gl.alternate,Gl);break;case 1024:Gl.flags&=-1025;break;case 1028:Gl.flags&=-1025,yl(Gl.alternate,Gl);break;case 4:yl(Gl.alternate,Gl);break;case 8:vl(l,s=Gl);var x=s.alternate;hl(s),null!==x&&hl(x)}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(o(330));Ms(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);if(w=Dr,k=dr(),y=w.focusedElem,l=w.selectionRange,k!==y&&y&&y.ownerDocument&&cr(y.ownerDocument.documentElement,y)){null!==l&&ur(y)&&(k=l.start,void 0===(w=l.end)&&(w=k),"selectionStart"in y?(y.selectionStart=k,y.selectionEnd=Math.min(w,y.value.length)):(w=(k=y.ownerDocument||document)&&k.defaultView||window).getSelection&&(w=w.getSelection(),s=y.textContent.length,x=Math.min(l.start,s),l=void 0===l.end?x:Math.min(l.end,s),!w.extend&&x>l&&(s=l,l=x,x=s),s=sr(y,x),i=sr(y,l),s&&i&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((k=k.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),x>l?(w.addRange(k),w.extend(i.node,i.offset)):(k.setEnd(i.node,i.offset),w.addRange(k))))),k=[];for(w=y;w=w.parentNode;)1===w.nodeType&&k.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<k.length;y++)(w=k[y]).element.scrollLeft=w.left,w.element.scrollTop=w.top}qt=!!Pr,Dr=Pr=null,e.current=a,Gl=r;do{try{for(y=e;null!==Gl;){var S=Gl.flags;if(36&S&&dl(y,Gl.alternate,Gl),128&S){k=void 0;var _=Gl.ref;if(null!==_){var A=Gl.stateNode;switch(Gl.tag){case 5:k=A;break;default:k=A}"function"==typeof _?_(k):_.current=k}}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(o(330));Ms(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);Gl=null,Mn(),Al=n}else e.current=a;if(Wl)Wl=!1,ql=e,Zl=t;else for(Gl=r;null!==Gl;)t=Gl.nextEffect,Gl.nextEffect=null,8&Gl.flags&&((S=Gl).sibling=null,S.stateNode=null),Gl=t;if(0===(r=e.pendingLanes)&&(Kl=null),1===r?e===$l?Xl++:(Xl=0,$l=e):Xl=0,a=a.stateNode,yn&&"function"==typeof yn.onCommitFiberRoot)try{yn.onCommitFiberRoot(vn,a,void 0,64==(64&a.current.flags))}catch(e){}if(cs(e,On()),Vl)throw Vl=!1,e=Ul,Ul=null,e;return 0!=(8&Al)||Vn(),null}function Cs(){for(;null!==Gl;){var e=Gl.alternate;ns||null===rs||(0!=(8&Gl.flags)?Xe(Gl,rs)&&(ns=!0):13===Gl.tag&&wl(e,Gl)&&Xe(Gl,rs)&&(ns=!0));var t=Gl.flags;0!=(256&t)&&cl(e,Gl),0==(512&t)||Wl||(Wl=!0,Gn(97,(function(){return Ts(),null}))),Gl=Gl.nextEffect}}function Ts(){if(90!==Zl){var e=97<Zl?97:Zl;return Zl=90,Hn(e,Ls)}return!1}function zs(e,t){Ql.push(t,e),Wl||(Wl=!0,Gn(97,(function(){return Ts(),null})))}function Is(e,t){Yl.push(t,e),Wl||(Wl=!0,Gn(97,(function(){return Ts(),null})))}function Ls(){if(null===ql)return!1;var e=ql;if(ql=null,0!=(48&Al))throw Error(o(331));var t=Al;Al|=32;var a=Yl;Yl=[];for(var r=0;r<a.length;r+=2){var n=a[r],i=a[r+1],l=n.destroy;if(n.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(o(330));Ms(i,e)}}for(a=Ql,Ql=[],r=0;r<a.length;r+=2){n=a[r],i=a[r+1];try{var s=n.create;n.destroy=s()}catch(e){if(null===i)throw Error(o(330));Ms(i,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Al=t,Vn(),!0}function js(e,t,a){oi(e,t=il(0,t=al(a,t),1)),t=is(),null!==(e=ss(e,1))&&(Ht(e,1,t),cs(e,t))}function Ms(e,t){if(3===e.tag)js(e,e,t);else for(var a=e.return;null!==a;){if(3===a.tag){js(a,e,t);break}if(1===a.tag){var r=a.stateNode;if("function"==typeof a.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){var n=ol(a,e=al(t,e),1);if(oi(a,n),n=is(),null!==(a=ss(a,1)))Ht(a,1,n),cs(a,n);else if("function"==typeof r.componentDidCatch&&(null===Kl||!Kl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}a=a.return}}function Bs(e,t,a){var r=e.pingCache;null!==r&&r.delete(t),t=is(),e.pingedLanes|=e.suspendedLanes&a,El===e&&(Tl&a)===a&&(4===Ll||3===Ll&&(62914560&Tl)===Tl&&500>On()-Ol?bs(e,0):Dl|=a),cs(e,t)}function Ps(e,t){var a=e.stateNode;null!==a&&a.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Fn()?1:2:(0===ts&&(ts=Ml),0===(t=Ft(62914560&~ts))&&(t=4194304))),a=is(),null!==(e=ss(e,t))&&(Ht(e,t,a),cs(e,a))}function Ds(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ns(e,t,a,r){return new Ds(e,t,a,r)}function Os(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fs(e,t){var a=e.alternate;return null===a?((a=Ns(e.tag,t,e.key,e.mode)).elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Rs(e,t,a,r,n,i){var l=2;if(r=e,"function"==typeof e)Os(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case _:return Hs(a.children,n,i,t);case D:l=8,n|=16;break;case A:l=8,n|=1;break;case E:return(e=Ns(12,a,t,8|n)).elementType=E,e.type=E,e.lanes=i,e;case I:return(e=Ns(13,a,t,n)).type=I,e.elementType=I,e.lanes=i,e;case L:return(e=Ns(19,a,t,n)).elementType=L,e.lanes=i,e;case N:return Gs(a,n,i,t);case O:return(e=Ns(24,a,t,n)).elementType=O,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case T:l=9;break e;case z:l=11;break e;case j:l=14;break e;case M:l=16,r=null;break e;case B:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ns(l,a,t,n)).elementType=e,t.type=r,t.lanes=i,t}function Hs(e,t,a,r){return(e=Ns(7,e,r,t)).lanes=a,e}function Gs(e,t,a,r){return(e=Ns(23,e,r,t)).elementType=N,e.lanes=a,e}function Vs(e,t,a){return(e=Ns(6,e,null,t)).lanes=a,e}function Us(e,t,a){return(t=Ns(4,null!==e.children?e.children:[],e.key,t)).lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ks(e,t,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=a,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Rt(0),this.expirationTimes=Rt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.mutableSourceEagerHydrationData=null}function Ws(e,t,a){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:a}}function qs(e,t,a,r){var n=t.current,i=is(),l=os(n);e:if(a){t:{if(Qe(a=a._reactInternals)!==a||1!==a.tag)throw Error(o(170));var s=a;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(pn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===a.tag){var c=a.type;if(pn(c)){a=gn(a,c,s);break e}}a=s}else a=ln;return null===t.context?t.context=a:t.pendingContext=a,(t=ii(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oi(n,t),ls(n,l,i),l}function Zs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var a=e.retryLane;e.retryLane=0!==a&&a<t?a:t}}function Ys(e,t){Qs(e,t),(e=e.alternate)&&Qs(e,t)}function Js(e,t,a){var r=null!=a&&null!=a.hydrationOptions&&a.hydrationOptions.mutableSources||null;if(a=new Ks(e,t,null!=a&&!0===a.hydrate),t=Ns(3,null,null,2===t?7:1===t?3:0),a.current=t,t.stateNode=a,ri(t),e[Zr]=a.current,Er(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var n=(t=r[e])._getVersion;n=n(t._source),null==a.mutableSourceEagerHydrationData?a.mutableSourceEagerHydrationData=[t,n]:a.mutableSourceEagerHydrationData.push(t,n)}this._internalRoot=a}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $s(e,t,a,r,n){var i=a._reactRootContainer;if(i){var o=i._internalRoot;if("function"==typeof n){var l=n;n=function(){var e=Zs(o);l.call(e)}}qs(t,o,e,n)}else{if(i=a._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var a;a=e.lastChild;)e.removeChild(a);return new Js(e,0,t?{hydrate:!0}:void 0)}(a,r),o=i._internalRoot,"function"==typeof n){var s=n;n=function(){var e=Zs(o);s.call(e)}}ms((function(){qs(t,o,e,n)}))}return Zs(o)}Hl=function(e,t,a){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||cn.current)jo=!0;else{if(0==(a&r)){switch(jo=!1,t.tag){case 3:Go(t),Gi();break;case 5:Ii(t);break;case 1:pn(t.type)&&fn(t);break;case 4:Ti(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var n=t.type._context;on(qn,n._currentValue),n._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(a&t.child.childLanes)?qo(e,t,a):(on(ji,1&ji.current),null!==(t=Xo(e,t,a))?t.sibling:null);on(ji,1&ji.current);break;case 19:if(r=0!=(a&t.childLanes),0!=(64&e.flags)){if(r)return Jo(e,t,a);t.flags|=64}if(null!==(n=t.memoizedState)&&(n.rendering=null,n.tail=null,n.lastEffect=null),on(ji,ji.current),r)break;return null;case 23:case 24:return t.lanes=0,No(e,t,a)}return Xo(e,t,a)}jo=0!=(16384&e.flags)}else jo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=un(t,sn.current),ei(t,a),n=to(null,t,r,e,n,a),t.flags|=1,"object"==typeof n&&null!==n&&"function"==typeof n.render&&void 0===n.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pn(r)){var i=!0;fn(t)}else i=!1;t.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,ri(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&ui(t,r,l,e),n.updater=pi,t.stateNode=n,n._reactInternals=t,fi(t,r,e,a),t=Ho(null,t,r,!0,i,a)}else t.tag=0,Mo(null,t,n,a),t=t.child;return t;case 16:n=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Os(e)?1:0;if(null!=e){if((e=e.$$typeof)===z)return 11;if(e===j)return 14}return 2}(n),e=Wn(n,e),i){case 0:t=Fo(null,t,n,e,a);break e;case 1:t=Ro(null,t,n,e,a);break e;case 11:t=Bo(null,t,n,e,a);break e;case 14:t=Po(null,t,n,Wn(n.type,e),r,a);break e}throw Error(o(306,n,""))}return t;case 0:return r=t.type,n=t.pendingProps,Fo(e,t,r,n=t.elementType===r?n:Wn(r,n),a);case 1:return r=t.type,n=t.pendingProps,Ro(e,t,r,n=t.elementType===r?n:Wn(r,n),a);case 3:if(Go(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,n=null!==(n=t.memoizedState)?n.element:null,ni(e,t),si(t,r,null,a),(r=t.memoizedState.element)===n)Gi(),t=Xo(e,t,a);else{if((i=(n=t.stateNode).hydrate)&&(Pi=Gr(t.stateNode.containerInfo.firstChild),Bi=t,i=Di=!0),i){if(null!=(e=n.mutableSourceEagerHydrationData))for(n=0;n<e.length;n+=2)(i=e[n])._workInProgressVersionPrimary=e[n+1],Vi.push(i);for(a=xi(t,null,r,a),t.child=a;a;)a.flags=-3&a.flags|1024,a=a.sibling}else Mo(e,t,r,a),Gi();t=t.child}return t;case 5:return Ii(t),null===e&&Fi(t),r=t.type,n=t.pendingProps,i=null!==e?e.memoizedProps:null,l=n.children,Or(r,n)?l=null:null!==i&&Or(r,i)&&(t.flags|=16),Oo(e,t),Mo(e,t,l,a),t.child;case 6:return null===e&&Fi(t),null;case 13:return qo(e,t,a);case 4:return Ti(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,a):Mo(e,t,r,a),t.child;case 11:return r=t.type,n=t.pendingProps,Bo(e,t,r,n=t.elementType===r?n:Wn(r,n),a);case 7:return Mo(e,t,t.pendingProps,a),t.child;case 8:case 12:return Mo(e,t,t.pendingProps.children,a),t.child;case 10:e:{r=t.type._context,n=t.pendingProps,l=t.memoizedProps,i=n.value;var s=t.type._context;if(on(qn,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=nr(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===n.children&&!cn.current){t=Xo(e,t,a);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var d=c.firstContext;null!==d;){if(d.context===r&&0!=(d.observedBits&i)){1===s.tag&&((d=ii(-1,a&-a)).tag=2,oi(s,d)),s.lanes|=a,null!==(d=s.alternate)&&(d.lanes|=a),$n(s.return,a),c.lanes|=a;break}d=d.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Mo(e,t,n.children,a),t=t.child}return t;case 9:return n=t.type,r=(i=t.pendingProps).children,ei(t,a),r=r(n=ti(n,i.unstable_observedBits)),t.flags|=1,Mo(e,t,r,a),t.child;case 14:return i=Wn(n=t.type,t.pendingProps),Po(e,t,n,i=Wn(n.type,i),r,a);case 15:return Do(e,t,t.type,t.pendingProps,r,a);case 17:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:Wn(r,n),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pn(r)?(e=!0,fn(t)):e=!1,ei(t,a),mi(t,r,n),fi(t,r,n,a),Ho(null,t,r,!0,e,a);case 19:return Jo(e,t,a);case 23:case 24:return No(e,t,a)}throw Error(o(156,t.tag))},Js.prototype.render=function(e){qs(e,this._internalRoot,null,null)},Js.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qs(null,e,null,(function(){t[Zr]=null}))},$e=function(e){13===e.tag&&(ls(e,4,is()),Ys(e,4))},et=function(e){13===e.tag&&(ls(e,67108864,is()),Ys(e,67108864))},tt=function(e){if(13===e.tag){var t=is(),a=os(e);ls(e,a,t),Ys(e,a)}},at=function(e,t){return t()},Ee=function(e,t,a){switch(t){case"input":if(ae(e,a),t=a.name,"radio"===a.type&&null!=t){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var n=$r(r);if(!n)throw Error(o(90));J(r),ae(r,n)}}}break;case"textarea":ce(e,a);break;case"select":null!=(t=a.value)&&oe(e,!!a.multiple,t,!1)}},je=hs,Me=function(e,t,a,r,n){var i=Al;Al|=4;try{return Hn(98,e.bind(null,t,a,r,n))}finally{0===(Al=i)&&(Rl(),Vn())}},Be=function(){0==(49&Al)&&(function(){if(null!==Jl){var e=Jl;Jl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cs(e,On())}))}Vn()}(),Ts())},Pe=function(e,t){var a=Al;Al|=2;try{return e(t)}finally{0===(Al=a)&&(Rl(),Vn())}};var ec={findFiberByHostInstance:Yr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var a=e,r=t;;){var n=a.return;if(null===n)break;var i=n.alternate;if(null===i){if(null!==(r=n.return)){a=r;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return Je(n),e;if(i===r)return Je(n),t;i=i.sibling}throw Error(o(188))}if(a.return!==r.return)a=n,r=i;else{for(var l=!1,s=n.child;s;){if(s===a){l=!0,a=n,r=i;break}if(s===r){l=!0,r=n,a=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===a){l=!0,a=i,r=n;break}if(s===r){l=!0,r=i,a=n;break}s=s.sibling}if(!l)throw Error(o(189))}}if(a.alternate!==r)throw Error(o(190))}if(3!==a.tag)throw Error(o(188));return a.stateNode.current===a?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{vn=ac.inject(tc),yn=ac}catch(ge){}}t.createPortal=function(e,t){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(o(200));return Ws(e,t,null,a)},t.render=function(e,t,a){if(!Xs(t))throw Error(o(200));return $s(null,e,t,!1,a)},t.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(o(40));return!!e._reactRootContainer&&(ms((function(){$s(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=hs},2750:(e,t,a)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=a(2207)},9636:(e,t,a)=>{"use strict";a(4920);var r=a(7723),n=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),t.Fragment=i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,a){var r,i={},c=null,d=null;for(r in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)l.call(t,r)&&!s.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:n,type:e,key:c,ref:d,props:i,_owner:o.current}}t.jsx=c,t.jsxs=c},5147:(e,t,a)=>{"use strict";var r=a(4920),n=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var c=60115,d=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;n=u("react.element"),i=u("react.portal"),t.Fragment=u("react.fragment"),t.StrictMode=u("react.strict_mode"),t.Profiler=u("react.profiler"),o=u("react.provider"),l=u("react.context"),s=u("react.forward_ref"),t.Suspense=u("react.suspense"),c=u("react.memo"),d=u("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function f(e,t,a){this.props=e,this.context=t,this.refs=g,this.updater=a||m}function b(){}function v(e,t,a){this.props=e,this.context=t,this.refs=g,this.updater=a||m}f.prototype.isReactComponent={},f.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=f.prototype;var y=v.prototype=new b;y.constructor=v,r(y,f.prototype),y.isPureReactComponent=!0;var k={current:null},w=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,a){var r,i={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=a;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:n,type:e,key:o,ref:l,props:i,_owner:k.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,a,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case i:s=!0}}if(s)return o=o(s=e),e=""===r?"."+E(s,0):r,Array.isArray(o)?(a="",null!=e&&(a=e.replace(A,"$&/")+"/"),C(o,t,a,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var d=r+E(l=e[c],c);s+=C(l,t,a,d,o)}else if("function"==typeof(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=d.call(e),c=0;!(l=e.next()).done;)s+=C(l=l.value,t,a,d=r+E(l,c++),o);else if("object"===l)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,a){if(null==e)return e;var r=[],n=0;return C(e,r,"","",(function(e){return t.call(a,e,n++)})),r}function z(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function L(){var e=I.current;if(null===e)throw Error(h(321));return e}var j={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,a){T(e,(function(){t.apply(this,arguments)}),a)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(h(143));return e}},t.Component=f,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,a){if(null==e)throw Error(h(267,e));var i=r({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)w.call(t,d)&&!x.hasOwnProperty(d)&&(i[d]=void 0===t[d]&&void 0!==c?c[d]:t[d])}var d=arguments.length-2;if(1===d)i.children=a;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:n,type:e.type,key:o,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:z}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,a){return L().useImperativeHandle(e,t,a)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,a){return L().useReducer(e,t,a)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="17.0.2"},7723:(e,t,a)=>{"use strict";e.exports=a(5147)},1337:(e,t,a)=>{"use strict";e.exports=a(9636)},3577:(e,t)=>{"use strict";var a,r,n,i;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,d=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}};a=function(e){null!==c?setTimeout(a,0,e):(c=e,setTimeout(u,0))},r=function(e,t){d=setTimeout(e,t)},n=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,f=null,b=-1,v=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,w=k.port2;k.port1.onmessage=function(){if(null!==f){var e=t.unstable_now();y=e+v;try{f(!0,e)?w.postMessage(null):(g=!1,f=null)}catch(e){throw w.postMessage(null),e}}else g=!1},a=function(e){f=e,g||(g=!0,w.postMessage(null))},r=function(e,a){b=p((function(){e(t.unstable_now())}),a)},n=function(){h(b),b=-1}}function x(e,t){var a=e.length;e.push(t);e:for(;;){var r=a-1>>>1,n=e[r];if(!(void 0!==n&&0<A(n,t)))break e;e[r]=t,e[a]=n,a=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,n=e.length;r<n;){var i=2*(r+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>A(o,a))void 0!==s&&0>A(s,o)?(e[r]=s,e[l]=a,r=l):(e[r]=o,e[i]=a,r=i);else{if(!(void 0!==s&&0>A(s,a)))break e;e[r]=s,e[l]=a,r=l}}}return t}return null}function A(e,t){var a=e.sortIndex-t.sortIndex;return 0!==a?a:e.id-t.id}var E=[],C=[],T=1,z=null,I=3,L=!1,j=!1,M=!1;function B(e){for(var t=S(C);null!==t;){if(null===t.callback)_(C);else{if(!(t.startTime<=e))break;_(C),t.sortIndex=t.expirationTime,x(E,t)}t=S(C)}}function P(e){if(M=!1,B(e),!j)if(null!==S(E))j=!0,a(D);else{var t=S(C);null!==t&&r(P,t.startTime-e)}}function D(e,a){j=!1,M&&(M=!1,n()),L=!0;var i=I;try{for(B(a),z=S(E);null!==z&&(!(z.expirationTime>a)||e&&!t.unstable_shouldYield());){var o=z.callback;if("function"==typeof o){z.callback=null,I=z.priorityLevel;var l=o(z.expirationTime<=a);a=t.unstable_now(),"function"==typeof l?z.callback=l:z===S(E)&&_(E),B(a)}else _(E);z=S(E)}if(null!==z)var s=!0;else{var c=S(C);null!==c&&r(P,c.startTime-a),s=!1}return s}finally{z=null,I=i,L=!1}}var N=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||L||(j=!0,a(D))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(E)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var a=I;I=t;try{return e()}finally{I=a}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=I;I=e;try{return t()}finally{I=a}},t.unstable_scheduleCallback=function(e,i,o){var l=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?l+o:l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:T++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,x(C,e),null===S(E)&&e===S(C)&&(M?n():M=!0,r(P,o-l))):(e.sortIndex=s,x(E,e),j||L||(j=!0,a(D))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var a=I;I=t;try{return e.apply(this,arguments)}finally{I=a}}}},6847:(e,t,a)=>{"use strict";e.exports=a(3577)},885:e=>{e.exports=function(e,t,a){var r=[],n=e.length;if(0===n)return r;var i=t<0?Math.max(0,t+n):t||0;for(void 0!==a&&(n=a<0?a+n:a);n-- >i;)r[n-i]=e[n];return r}},8288:(e,t,a)=>{"use strict";a.d(t,{iC:()=>i,f:()=>o,qx:()=>l,Iw:()=>s,$e:()=>c,wZ:()=>d,ay:()=>u,oc:()=>p,Oh:()=>h,Ks:()=>m,Vi:()=>g,$C:()=>f,ut:()=>b,C6:()=>v,_D:()=>y,n5:()=>k,rk:()=>w,Hg:()=>x,hs:()=>S,k:()=>_,LO:()=>A,r8:()=>E,pb:()=>C,LL:()=>T,Gj:()=>z,nM:()=>I,Lg:()=>L,HM:()=>j,V4:()=>M,sA:()=>B,EH:()=>P,ZF:()=>D,UO:()=>N,ah:()=>O,cW:()=>F,kV:()=>R,sS:()=>H,Yx:()=>G,zK:()=>V,ZB:()=>U,qy:()=>K,h6:()=>W,jo:()=>q,$n:()=>Z,hR:()=>Q,Kr:()=>Y,gK:()=>J,oX:()=>X});var r=a(2189),n=a.n(r);const i="Excalidraw",o=10,l=8,s=5,c=1,d=30,u=Math.PI/12,p={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},h={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1};let m;!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"}(m||(m={}));const g={TEST:"test",DEVELOPMENT:"development"},f={SHAPE_ACTIONS_MENU:"App-menu__left"},b={Virgil:1,Helvetica:2,Cascadia:3},v={LIGHT:"light",DARK:"dark"},y="Segoe UI Emoji",k=20,w=b.Virgil,x="left",S="top",_=20,A={excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json",json:"application/json",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",binary:"application/octet-stream"},E={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib"},C=window.location.origin,T=500,z=300,I=500,L=5e3,j=100,M=.1,B=300,P={VIEW:"viewMode",ZEN:"zenMode",GRID:"gridMode"},D=n().themeFilter,N={addLibrary:"addLibrary"},O={addLibrary:"addLibrary"},F={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,theme:!0,saveAsImage:!0}},R=730,H=1e3,G=500,V=2,U=[1,2,3],K=10,W=1440,q=[A.png,A.jpg,A.svg,A.gif],Z=2097152,Q="http://www.w3.org/2000/svg",Y={excalidraw:2,excalidrawLibrary:2},J=5,X={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"}},9506:(e,t,a)=>{"use strict";a.r(t),a.d(t,{decodePngMetadata:()=>v,decodeSvgMetadata:()=>k,encodePngMetadata:()=>b,encodeSvgMetadata:()=>y,getTEXtChunk:()=>f});var r=a(9567),n=a.n(r),i=a(6927),o=a(3070),l=a.n(o),s=a(6934),c=a(8288);const d=e=>new Promise(((t,a)=>{const r="string"==typeof e?new Blob([(new TextEncoder).encode(e)]):new Blob([e instanceof Uint8Array?e:new Uint8Array(e)]),n=new FileReader;n.onload=e=>{if(!e.target||"string"!=typeof e.target.result)return a(new Error("couldn't convert to byte string"));t(e.target.result)},n.readAsBinaryString(r)})),u=e=>{const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0,r=e.length;t<r;t++)a[t]=e.charCodeAt(t);return t},p=e=>new TextDecoder("utf-8").decode(u(e)),h=async e=>{let t,{text:a,compress:r}=e;if(!1!==r)try{t=await d((0,s.deflate)(a))}catch(e){console.error("encode: cannot deflate",e)}return{version:"1",encoding:"bstring",compressed:!!t,encoded:t||await d(a)}},m=async e=>{let t;switch(e.encoding){case"bstring":t=e.compressed?e.encoded:await p(e.encoded);break;default:throw new Error('decode: unknown encoding "'.concat(e.encoding,'"'))}return e.compressed?(0,s.inflate)(new Uint8Array(u(t)),{to:"string"}):t},g=e=>"arrayBuffer"in e?e.arrayBuffer():new Promise(((t,a)=>{const r=new FileReader;r.onload=e=>{var r;if(null===(r=e.target)||void 0===r||!r.result)return a(new Error("couldn't convert blob to ArrayBuffer"));t(e.target.result)},r.readAsArrayBuffer(e)})),f=async e=>{const t=n()(new Uint8Array(await g(e))).find((e=>"tEXt"===e.name));return t?i.decode(t.data):null},b=async e=>{let{blob:t,metadata:a}=e;const r=n()(new Uint8Array(await g(t))),o=i.encode(c.LO.excalidraw,JSON.stringify(await h({text:a,compress:!0})));return r.splice(-1,0,o),new Blob([l()(r)],{type:c.LO.png})},v=async e=>{const t=await f(e);if((null==t?void 0:t.keyword)===c.LO.excalidraw)try{const e=JSON.parse(t.text);if(!("encoded"in e)){if("type"in e&&e.type===c.r8.excalidraw)return t.text;throw new Error("FAILED")}return await m(e)}catch(e){throw console.error(e),new Error("FAILED")}throw new Error("INVALID")},y=async e=>{let{text:t}=e;const a=await async function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?window.btoa(e):window.btoa(await d(e))}(JSON.stringify(await h({text:t})),!0);let r="";return r+="\x3c!-- payload-type:".concat(c.LO.excalidraw," --\x3e"),r+="\x3c!-- payload-version:2 --\x3e",r+="\x3c!-- payload-start --\x3e",r+=a,r+="\x3c!-- payload-end --\x3e",r},k=async e=>{let{svg:t}=e;if(t.includes("payload-type:".concat(c.LO.excalidraw))){const e=t.match(/<!-- payload-start -->(.+?)<!-- payload-end -->/);if(!e)throw new Error("INVALID");const a=t.match(/<!-- payload-version:(\d+) -->/),r="1"!==((null==a?void 0:a[1])||"1");try{const t=await async function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?window.atob(e):p(window.atob(e))}(e[1],r),a=JSON.parse(t);if(!("encoded"in a)){if("type"in a&&a.type===c.r8.excalidraw)return t;throw new Error("FAILED")}return await m(a)}catch(e){throw console.error(e),new Error("FAILED")}}throw new Error("INVALID")}},6340:(e,t,a)=>{"use strict";function r(e,t,a){if(e&&e.length){const[r,n]=t,i=Math.PI/180*a,o=Math.cos(i),l=Math.sin(i);e.forEach((e=>{const[t,a]=e;e[0]=(t-r)*o-(a-n)*l+r,e[1]=(t-r)*l+(a-n)*o+n}))}}function n(e){const t=e[0],a=e[1];return Math.sqrt(Math.pow(t[0]-a[0],2)+Math.pow(t[1]-a[1],2))}function i(e,t){const a=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const i=[0,0];if(a)for(const t of e)r(t,i,a);const o=function(e,t){const a=[];for(const t of e){const e=[...t];e[0].join(",")!==e[e.length-1].join(",")&&e.push([e[0][0],e[0][1]]),e.length>2&&a.push(e)}const r=[];t=Math.max(t,.1);const n=[];for(const e of a)for(let t=0;t<e.length-1;t++){const a=e[t],r=e[t+1];if(a[1]!==r[1]){const e=Math.min(a[1],r[1]);n.push({ymin:e,ymax:Math.max(a[1],r[1]),x:e===a[1]?a[0]:r[0],islope:(r[0]-a[0])/(r[1]-a[1])})}}if(n.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!n.length)return r;let i=[],o=n[0].ymin;for(;i.length||n.length;){if(n.length){let e=-1;for(let t=0;t<n.length&&!(n[t].ymin>o);t++)e=t;n.splice(0,e+1).forEach((e=>{i.push({s:o,edge:e})}))}if(i=i.filter((e=>!(e.edge.ymax<=o))),i.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),i.length>1)for(let e=0;e<i.length;e+=2){const t=e+1;if(t>=i.length)break;const a=i[e].edge,n=i[t].edge;r.push([[Math.round(a.x),o],[Math.round(n.x),o]])}o+=t,i.forEach((e=>{e.edge.x=e.edge.x+t*e.edge.islope}))}return r}(e,n);if(a){for(const t of e)r(t,i,-a);!function(e,t,a){const n=[];e.forEach((e=>n.push(...e))),r(n,t,a)}(o,i,-a)}return o}a.r(t),a.d(t,{exportToBlob:()=>Pp,exportToCanvas:()=>Bp,exportToSvg:()=>Dp});class o{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const a=i(e,t);return{type:"fillSketch",ops:this.renderLines(a,t)}}renderLines(e,t){const a=[];for(const r of e)a.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return a}}class l extends o{fillPolygons(e,t){let a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.max(a,.1);const r=i(e,Object.assign({},t,{hachureGap:a})),o=Math.PI/180*t.hachureAngle,l=[],s=.5*a*Math.cos(o),c=.5*a*Math.sin(o);for(const[e,t]of r)n([e,t])&&l.push([[e[0]-s,e[1]+c],[...t]],[[e[0]+s,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(l,t)}}}class s extends o{fillPolygons(e,t){const a=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),n=this._fillPolygons(e,r);return a.ops=a.ops.concat(n.ops),a}}class c{constructor(e){this.helper=e}fillPolygons(e,t){const a=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(a,t)}dotsOnLines(e,t){const a=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const o=r/4;for(const l of e){const e=n(l),s=e/r,c=Math.ceil(s)-1,d=e-c*r,u=(l[0][0]+l[1][0])/2-r/4,p=Math.min(l[0][1],l[1][1]);for(let e=0;e<c;e++){const n=p+d+e*r,l=u-o+2*Math.random()*o,s=n-o+2*Math.random()*o,c=this.helper.ellipse(l,s,i,i,t);a.push(...c.ops)}}return{type:"fillSketch",ops:a}}}class d{constructor(e){this.helper=e}fillPolygons(e,t){const a=i(e,t);return{type:"fillSketch",ops:this.dashedLine(a,t)}}dashedLine(e,t){const a=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{const o=n(e),l=Math.floor(o/(a+r)),s=(o+r-l*(a+r))/2;let c=e[0],d=e[1];c[0]>d[0]&&(c=e[1],d=e[0]);const u=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let e=0;e<l;e++){const n=e*(a+r),o=n+a,l=[c[0]+n*Math.cos(u)+s*Math.cos(u),c[1]+n*Math.sin(u)+s*Math.sin(u)],d=[c[0]+o*Math.cos(u)+s*Math.cos(u),c[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],t))}})),i}}class u{constructor(e){this.helper=e}fillPolygons(e,t){const a=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?a:t.zigzagOffset,n=i(e,t=Object.assign({},t,{hachureGap:a+r}));return{type:"fillSketch",ops:this.zigzagLines(n,r,t)}}zigzagLines(e,t,a){const r=[];return e.forEach((e=>{const i=n(e),o=Math.round(i/(2*t));let l=e[0],s=e[1];l[0]>s[0]&&(l=e[1],s=e[0]);const c=Math.atan((s[1]-l[1])/(s[0]-l[0]));for(let e=0;e<o;e++){const n=2*e*t,i=2*(e+1)*t,o=Math.sqrt(2*Math.pow(t,2)),s=[l[0]+n*Math.cos(c),l[1]+n*Math.sin(c)],d=[l[0]+i*Math.cos(c),l[1]+i*Math.sin(c)],u=[s[0]+o*Math.cos(c+Math.PI/4),s[1]+o*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],a),...this.helper.doubleLineOps(u[0],u[1],d[0],d[1],a))}})),r}}const p={};class h{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const m={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(e,t){return e.type===t}function f(e){const t=[],a=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:"".concat(parseFloat(RegExp.$1))},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",n=0,i=a[n];for(;!g(i,2);){let o=0;const l=[];if("BOD"===r){if("M"!==i.text&&"m"!==i.text)return f("M0,0"+e);n++,o=m[i.text],r=i.text}else g(i,1)?o=m[r]:(n++,o=m[i.text],r=i.text);if(!(n+o<a.length))throw new Error("Path data ended short");for(let e=n;e<n+o;e++){const t=a[e];if(!g(t,1))throw new Error("Param not a number: "+r+","+t.text);l[l.length]=+t.text}if("number"!=typeof m[r])throw new Error("Bad segment: "+r);{const e={key:r,data:l};t.push(e),n+=o,i=a[n],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function b(e){let t=0,a=0,r=0,n=0;const i=[];for(const{key:o,data:l}of e)switch(o){case"M":i.push({key:"M",data:[...l]}),[t,a]=l,[r,n]=l;break;case"m":t+=l[0],a+=l[1],i.push({key:"M",data:[t,a]}),r=t,n=a;break;case"L":i.push({key:"L",data:[...l]}),[t,a]=l;break;case"l":t+=l[0],a+=l[1],i.push({key:"L",data:[t,a]});break;case"C":i.push({key:"C",data:[...l]}),t=l[4],a=l[5];break;case"c":{const e=l.map(((e,r)=>r%2?e+a:e+t));i.push({key:"C",data:e}),t=e[4],a=e[5];break}case"Q":i.push({key:"Q",data:[...l]}),t=l[2],a=l[3];break;case"q":{const e=l.map(((e,r)=>r%2?e+a:e+t));i.push({key:"Q",data:e}),t=e[2],a=e[3];break}case"A":i.push({key:"A",data:[...l]}),t=l[5],a=l[6];break;case"a":t+=l[5],a+=l[6],i.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,a]});break;case"H":i.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...l]}),a=l[0];break;case"v":a+=l[0],i.push({key:"V",data:[a]});break;case"S":i.push({key:"S",data:[...l]}),t=l[2],a=l[3];break;case"s":{const e=l.map(((e,r)=>r%2?e+a:e+t));i.push({key:"S",data:e}),t=e[2],a=e[3];break}case"T":i.push({key:"T",data:[...l]}),t=l[0],a=l[1];break;case"t":t+=l[0],a+=l[1],i.push({key:"T",data:[t,a]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=r,a=n}return i}function v(e){const t=[];let a="",r=0,n=0,i=0,o=0,l=0,s=0;for(const{key:c,data:d}of e){switch(c){case"M":t.push({key:"M",data:[...d]}),[r,n]=d,[i,o]=d;break;case"C":t.push({key:"C",data:[...d]}),r=d[4],n=d[5],l=d[2],s=d[3];break;case"L":t.push({key:"L",data:[...d]}),[r,n]=d;break;case"H":r=d[0],t.push({key:"L",data:[r,n]});break;case"V":n=d[0],t.push({key:"L",data:[r,n]});break;case"S":{let e=0,i=0;"C"===a||"S"===a?(e=r+(r-l),i=n+(n-s)):(e=r,i=n),t.push({key:"C",data:[e,i,...d]}),l=d[0],s=d[1],r=d[2],n=d[3];break}case"T":{const[e,i]=d;let o=0,c=0;"Q"===a||"T"===a?(o=r+(r-l),c=n+(n-s)):(o=r,c=n);const u=r+2*(o-r)/3,p=n+2*(c-n)/3,h=e+2*(o-e)/3,m=i+2*(c-i)/3;t.push({key:"C",data:[u,p,h,m,e,i]}),l=o,s=c,r=e,n=i;break}case"Q":{const[e,a,i,o]=d,c=r+2*(e-r)/3,u=n+2*(a-n)/3,p=i+2*(e-i)/3,h=o+2*(a-o)/3;t.push({key:"C",data:[c,u,p,h,i,o]}),l=e,s=a,r=i,n=o;break}case"A":{const e=Math.abs(d[0]),a=Math.abs(d[1]),i=d[2],o=d[3],l=d[4],s=d[5],c=d[6];0===e||0===a?(t.push({key:"C",data:[r,n,s,c,s,c]}),r=s,n=c):r===s&&n===c||(k(r,n,s,c,e,a,i,o,l).forEach((function(e){t.push({key:"C",data:e})})),r=s,n=c);break}case"Z":t.push({key:"Z",data:[]}),r=i,n=o}a=c}return t}function y(e,t,a){return[e*Math.cos(a)-t*Math.sin(a),e*Math.sin(a)+t*Math.cos(a)]}function k(e,t,a,r,n,i,o,l,s,c){const d=(u=o,Math.PI*u/180);var u;let p=[],h=0,m=0,g=0,f=0;if(c)[h,m,g,f]=c;else{[e,t]=y(e,t,-d),[a,r]=y(a,r,-d);const o=(e-a)/2,c=(t-r)/2;let u=o*o/(n*n)+c*c/(i*i);u>1&&(u=Math.sqrt(u),n*=u,i*=u);const p=n*n,b=i*i,v=p*b-p*c*c-b*o*o,k=p*c*c+b*o*o,w=(l===s?-1:1)*Math.sqrt(Math.abs(v/k));g=w*n*c/i+(e+a)/2,f=w*-i*o/n+(t+r)/2,h=Math.asin(parseFloat(((t-f)/i).toFixed(9))),m=Math.asin(parseFloat(((r-f)/i).toFixed(9))),e<g&&(h=Math.PI-h),a<g&&(m=Math.PI-m),h<0&&(h=2*Math.PI+h),m<0&&(m=2*Math.PI+m),s&&h>m&&(h-=2*Math.PI),!s&&m>h&&(m-=2*Math.PI)}let b=m-h;if(Math.abs(b)>120*Math.PI/180){const e=m,t=a,l=r;m=s&&m>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,p=k(a=g+n*Math.cos(m),r=f+i*Math.sin(m),t,l,n,i,o,0,s,[m,e,g,f])}b=m-h;const v=Math.cos(h),w=Math.sin(h),x=Math.cos(m),S=Math.sin(m),_=Math.tan(b/4),A=4/3*n*_,E=4/3*i*_,C=[e,t],T=[e+A*w,t-E*v],z=[a+A*S,r-E*x],I=[a,r];if(T[0]=2*C[0]-T[0],T[1]=2*C[1]-T[1],c)return[T,z,I].concat(p);{p=[T,z,I].concat(p);const e=[];for(let t=0;t<p.length;t+=3){const a=y(p[t][0],p[t][1],d),r=y(p[t+1][0],p[t+1][1],d),n=y(p[t+2][0],p[t+2][1],d);e.push([a[0],a[1],r[0],r[1],n[0],n[1]])}return e}}const w={randOffset:function(e,t){return L(e,t)},randOffsetWithRange:function(e,t,a){return I(e,t,a)},ellipse:function(e,t,a,r,n){return A(e,t,n,_(a,r,n)).opset},doubleLineOps:function(e,t,a,r,n){return j(e,t,a,r,n,!0)}};function x(e,t,a,r,n){return{type:"path",ops:j(e,t,a,r,n)}}function S(e,t,a){const r=(e||[]).length;if(r>2){const n=[];for(let t=0;t<r-1;t++)n.push(...j(e[t][0],e[t][1],e[t+1][0],e[t+1][1],a));return t&&n.push(...j(e[r-1][0],e[r-1][1],e[0][0],e[0][1],a)),{type:"path",ops:n}}return 2===r?x(e[0][0],e[0][1],e[1][0],e[1][1],a):{type:"path",ops:[]}}function _(e,t,a){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(a.curveStepCount,a.curveStepCount/Math.sqrt(200)*r)),i=2*Math.PI/n;let o=Math.abs(e/2),l=Math.abs(t/2);const s=1-a.curveFitting;return o+=L(o*s,a),l+=L(l*s,a),{increment:i,rx:o,ry:l}}function A(e,t,a,r){const[n,i]=D(r.increment,e,t,r.rx,r.ry,1,r.increment*I(.1,I(.4,1,a),a),a);let o=P(n,null,a);if(!a.disableMultiStroke&&0!==a.roughness){const[n]=D(r.increment,e,t,r.rx,r.ry,1.5,0,a),i=P(n,null,a);o=o.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function E(e,t,a,r,n,i,o,l,s){const c=e,d=t;let u=Math.abs(a/2),p=Math.abs(r/2);u+=L(.01*u,s),p+=L(.01*p,s);let h=n,m=i;for(;h<0;)h+=2*Math.PI,m+=2*Math.PI;m-h>2*Math.PI&&(h=0,m=2*Math.PI);const g=2*Math.PI/s.curveStepCount,f=Math.min(g/2,(m-h)/2),b=N(f,c,d,u,p,h,m,1,s);if(!s.disableMultiStroke){const e=N(f,c,d,u,p,h,m,1.5,s);b.push(...e)}return o&&(l?b.push(...j(c,d,c+u*Math.cos(h),d+p*Math.sin(h),s),...j(c,d,c+u*Math.cos(m),d+p*Math.sin(m),s)):b.push({op:"lineTo",data:[c,d]},{op:"lineTo",data:[c+u*Math.cos(h),d+p*Math.sin(h)]})),{type:"path",ops:b}}function C(e,t){const a=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,n=r.length;if(n>2){a.push({op:"move",data:[r[0][0]+L(e,t),r[0][1]+L(e,t)]});for(let i=1;i<n;i++)a.push({op:"lineTo",data:[r[i][0]+L(e,t),r[i][1]+L(e,t)]})}}return{type:"fillPath",ops:a}}function T(e,t){return function(e,t){let a=e.fillStyle||"hachure";if(!p[a])switch(a){case"zigzag":p[a]||(p[a]=new l(t));break;case"cross-hatch":p[a]||(p[a]=new s(t));break;case"dots":p[a]||(p[a]=new c(t));break;case"dashed":p[a]||(p[a]=new d(t));break;case"zigzag-line":p[a]||(p[a]=new u(t));break;case"hachure":default:a="hachure",p[a]||(p[a]=new o(t))}return p[a]}(t,w).fillPolygons(e,t)}function z(e){return e.randomizer||(e.randomizer=new h(e.seed||0)),e.randomizer.next()}function I(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return a.roughness*r*(z(a)*(t-e)+e)}function L(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return I(-e,e,t,a)}function j(e,t,a,r,n){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const o=i?n.disableMultiStrokeFill:n.disableMultiStroke,l=M(e,t,a,r,n,!0,!1);if(o)return l;const s=M(e,t,a,r,n,!0,!0);return l.concat(s)}function M(e,t,a,r,n,i,o){const l=Math.pow(e-a,2)+Math.pow(t-r,2),s=Math.sqrt(l);let c=1;c=s<200?1:s>500?.4:-.0016668*s+1.233334;let d=n.maxRandomnessOffset||0;d*d*100>l&&(d=s/10);const u=d/2,p=.2+.2*z(n);let h=n.bowing*n.maxRandomnessOffset*(r-t)/200,m=n.bowing*n.maxRandomnessOffset*(e-a)/200;h=L(h,n,c),m=L(m,n,c);const g=[],f=()=>L(u,n,c),b=()=>L(d,n,c),v=n.preserveVertices;return i&&(o?g.push({op:"move",data:[e+(v?0:f()),t+(v?0:f())]}):g.push({op:"move",data:[e+(v?0:L(d,n,c)),t+(v?0:L(d,n,c))]})),o?g.push({op:"bcurveTo",data:[h+e+(a-e)*p+f(),m+t+(r-t)*p+f(),h+e+2*(a-e)*p+f(),m+t+2*(r-t)*p+f(),a+(v?0:f()),r+(v?0:f())]}):g.push({op:"bcurveTo",data:[h+e+(a-e)*p+b(),m+t+(r-t)*p+b(),h+e+2*(a-e)*p+b(),m+t+2*(r-t)*p+b(),a+(v?0:b()),r+(v?0:b())]}),g}function B(e,t,a){const r=[];r.push([e[0][0]+L(t,a),e[0][1]+L(t,a)]),r.push([e[0][0]+L(t,a),e[0][1]+L(t,a)]);for(let n=1;n<e.length;n++)r.push([e[n][0]+L(t,a),e[n][1]+L(t,a)]),n===e.length-1&&r.push([e[n][0]+L(t,a),e[n][1]+L(t,a)]);return P(r,null,a)}function P(e,t,a){const r=e.length,n=[];if(r>3){const i=[],o=1-a.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){const a=e[t];i[0]=[a[0],a[1]],i[1]=[a[0]+(o*e[t+1][0]-o*e[t-1][0])/6,a[1]+(o*e[t+1][1]-o*e[t-1][1])/6],i[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],i[3]=[e[t+1][0],e[t+1][1]],n.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(t&&2===t.length){const e=a.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+L(e,a),t[1]+L(e,a)]})}}else 3===r?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&n.push(...j(e[0][0],e[0][1],e[1][0],e[1][1],a));return n}function D(e,t,a,r,n,i,o,l){const s=[],c=[];if(0===l.roughness){e/=4,c.push([t+r*Math.cos(-e),a+n*Math.sin(-e)]);for(let i=0;i<=2*Math.PI;i+=e){const e=[t+r*Math.cos(i),a+n*Math.sin(i)];s.push(e),c.push(e)}c.push([t+r*Math.cos(0),a+n*Math.sin(0)]),c.push([t+r*Math.cos(e),a+n*Math.sin(e)])}else{const d=L(.5,l)-Math.PI/2;c.push([L(i,l)+t+.9*r*Math.cos(d-e),L(i,l)+a+.9*n*Math.sin(d-e)]);const u=2*Math.PI+d-.01;for(let o=d;o<u;o+=e){const e=[L(i,l)+t+r*Math.cos(o),L(i,l)+a+n*Math.sin(o)];s.push(e),c.push(e)}c.push([L(i,l)+t+r*Math.cos(d+2*Math.PI+.5*o),L(i,l)+a+n*Math.sin(d+2*Math.PI+.5*o)]),c.push([L(i,l)+t+.98*r*Math.cos(d+o),L(i,l)+a+.98*n*Math.sin(d+o)]),c.push([L(i,l)+t+.9*r*Math.cos(d+.5*o),L(i,l)+a+.9*n*Math.sin(d+.5*o)])}return[c,s]}function N(e,t,a,r,n,i,o,l,s){const c=i+L(.1,s),d=[];d.push([L(l,s)+t+.9*r*Math.cos(c-e),L(l,s)+a+.9*n*Math.sin(c-e)]);for(let i=c;i<=o;i+=e)d.push([L(l,s)+t+r*Math.cos(i),L(l,s)+a+n*Math.sin(i)]);return d.push([t+r*Math.cos(o),a+n*Math.sin(o)]),d.push([t+r*Math.cos(o),a+n*Math.sin(o)]),P(d,null,s)}function O(e,t,a,r,n,i,o,l){const s=[],c=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let d=[0,0];const u=l.disableMultiStroke?1:2,p=l.preserveVertices;for(let h=0;h<u;h++)0===h?s.push({op:"move",data:[o[0],o[1]]}):s.push({op:"move",data:[o[0]+(p?0:L(c[0],l)),o[1]+(p?0:L(c[0],l))]}),d=p?[n,i]:[n+L(c[h],l),i+L(c[h],l)],s.push({op:"bcurveTo",data:[e+L(c[h],l),t+L(c[h],l),a+L(c[h],l),r+L(c[h],l),d[0],d[1]]});return s}function F(e){return[...e]}function R(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function H(e,t,a){const r=R(t,a);if(0===r)return R(e,t);let n=((e[0]-t[0])*(a[0]-t[0])+(e[1]-t[1])*(a[1]-t[1]))/r;return n=Math.max(0,Math.min(1,n)),R(e,G(t,a,n))}function G(e,t,a){return[e[0]+(t[0]-e[0])*a,e[1]+(t[1]-e[1])*a]}function V(e,t,a,r){const n=r||[];if(function(e,t){const a=e[t+0],r=e[t+1],n=e[t+2],i=e[t+3];let o=3*r[0]-2*a[0]-i[0];o*=o;let l=3*r[1]-2*a[1]-i[1];l*=l;let s=3*n[0]-2*i[0]-a[0];s*=s;let c=3*n[1]-2*i[1]-a[1];return c*=c,o<s&&(o=s),l<c&&(l=c),o+l}(e,t)<a){const a=e[t+0];n.length?(i=n[n.length-1],o=a,Math.sqrt(R(i,o))>1&&n.push(a)):n.push(a),n.push(e[t+3])}else{const r=.5,i=e[t+0],o=e[t+1],l=e[t+2],s=e[t+3],c=G(i,o,r),d=G(o,l,r),u=G(l,s,r),p=G(c,d,r),h=G(d,u,r),m=G(p,h,r);V([i,c,p,m],0,a,n),V([m,h,u,s],0,a,n)}var i,o;return n}function U(e,t){return K(e,0,e.length,t)}function K(e,t,a,r,n){const i=n||[],o=e[t],l=e[a-1];let s=0,c=1;for(let r=t+1;r<a-1;++r){const t=H(e[r],o,l);t>s&&(s=t,c=r)}return Math.sqrt(s)>r?(K(e,t,c+1,r,i),K(e,c,a,r,i)):(i.length||i.push(o),i.push(l)),i}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15,a=arguments.length>2?arguments[2]:void 0;const r=[],n=(e.length-1)/3;for(let a=0;a<n;a++)V(e,3*a,t,r);return a&&a>0?K(r,0,r.length,a):r}const q="none";class Z{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,a){return{shape:e,sets:t||[],options:a||this.defaultOptions}}line(e,t,a,r,n){const i=this._o(n);return this._d("line",[x(e,t,a,r,i)],i)}rectangle(e,t,a,r,n){const i=this._o(n),o=[],l=function(e,t,a,r,n){return function(e,t){return S(e,!0,t)}([[e,t],[e+a,t],[e+a,t+r],[e,t+r]],n)}(e,t,a,r,i);if(i.fill){const n=[[e,t],[e+a,t],[e+a,t+r],[e,t+r]];"solid"===i.fillStyle?o.push(C([n],i)):o.push(T([n],i))}return i.stroke!==q&&o.push(l),this._d("rectangle",o,i)}ellipse(e,t,a,r,n){const i=this._o(n),o=[],l=_(a,r,i),s=A(e,t,i,l);if(i.fill)if("solid"===i.fillStyle){const a=A(e,t,i,l).opset;a.type="fillPath",o.push(a)}else o.push(T([s.estimatedPoints],i));return i.stroke!==q&&o.push(s.opset),this._d("ellipse",o,i)}circle(e,t,a,r){const n=this.ellipse(e,t,a,a,r);return n.shape="circle",n}linearPath(e,t){const a=this._o(t);return this._d("linearPath",[S(e,!1,a)],a)}arc(e,t,a,r,n,i){let o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;const s=this._o(l),c=[],d=E(e,t,a,r,n,i,o,!0,s);if(o&&s.fill)if("solid"===s.fillStyle){const o=Object.assign({},s);o.disableMultiStroke=!0;const l=E(e,t,a,r,n,i,!0,!1,o);l.type="fillPath",c.push(l)}else c.push(function(e,t,a,r,n,i,o){const l=e,s=t;let c=Math.abs(a/2),d=Math.abs(r/2);c+=L(.01*c,o),d+=L(.01*d,o);let u=n,p=i;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);const h=(p-u)/o.curveStepCount,m=[];for(let e=u;e<=p;e+=h)m.push([l+c*Math.cos(e),s+d*Math.sin(e)]);return m.push([l+c*Math.cos(p),s+d*Math.sin(p)]),m.push([l,s]),T([m],o)}(e,t,a,r,n,i,s));return s.stroke!==q&&c.push(d),this._d("arc",c,s)}curve(e,t){const a=this._o(t),r=[],n=function(e,t){let a=B(e,1*(1+.2*t.roughness),t);if(!t.disableMultiStroke){const r=B(e,1.5*(1+.22*t.roughness),function(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}(t));a=a.concat(r)}return{type:"path",ops:a}}(e,a);if(a.fill&&a.fill!==q&&e.length>=3){const t=W(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=e.length;if(a<3)throw new Error("A curve must have at least three points.");const r=[];if(3===a)r.push(F(e[0]),F(e[1]),F(e[2]),F(e[2]));else{const a=[];a.push(e[0],e[0]);for(let t=1;t<e.length;t++)a.push(e[t]),t===e.length-1&&a.push(e[t]);const n=[],i=1-t;r.push(F(a[0]));for(let e=1;e+2<a.length;e++){const t=a[e];n[0]=[t[0],t[1]],n[1]=[t[0]+(i*a[e+1][0]-i*a[e-1][0])/6,t[1]+(i*a[e+1][1]-i*a[e-1][1])/6],n[2]=[a[e+1][0]+(i*a[e][0]-i*a[e+2][0])/6,a[e+1][1]+(i*a[e][1]-i*a[e+2][1])/6],n[3]=[a[e+1][0],a[e+1][1]],r.push(n[1],n[2],n[3])}}return r}(e),10,(1+a.roughness)/2);"solid"===a.fillStyle?r.push(C([t],a)):r.push(T([t],a))}return a.stroke!==q&&r.push(n),this._d("curve",r,a)}polygon(e,t){const a=this._o(t),r=[],n=S(e,!0,a);return a.fill&&("solid"===a.fillStyle?r.push(C([e],a)):r.push(T([e],a))),a.stroke!==q&&r.push(n),this._d("polygon",r,a)}path(e,t){const a=this._o(t),r=[];if(!e)return this._d("path",r,a);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const n=a.fill&&"transparent"!==a.fill&&a.fill!==q,i=a.stroke!==q,o=!!(a.simplification&&a.simplification<1),l=function(e,t,a){const r=v(b(f(e))),n=[];let i=[],o=[0,0],l=[];const s=()=>{l.length>=4&&i.push(...W(l,1)),l=[]},c=()=>{s(),i.length&&(n.push(i),i=[])};for(const{key:e,data:t}of r)switch(e){case"M":c(),o=[t[0],t[1]],i.push(o);break;case"L":s(),i.push([t[0],t[1]]);break;case"C":if(!l.length){const e=i.length?i[i.length-1]:o;l.push([e[0],e[1]])}l.push([t[0],t[1]]),l.push([t[2],t[3]]),l.push([t[4],t[5]]);break;case"Z":s(),i.push([o[0],o[1]])}if(c(),!a)return n;const d=[];for(const e of n){const t=U(e,a);t.length&&d.push(t)}return d}(e,0,o?4-4*a.simplification:(1+a.roughness)/2);return n&&("solid"===a.fillStyle?r.push(C(l,a)):r.push(T(l,a))),i&&(o?l.forEach((e=>{r.push(S(e,!1,a))})):r.push(function(e,t){const a=v(b(f(e))),r=[];let n=[0,0],i=[0,0];for(const{key:e,data:o}of a)switch(e){case"M":{const e=1*(t.maxRandomnessOffset||0),a=t.preserveVertices;r.push({op:"move",data:o.map((r=>r+(a?0:L(e,t))))}),i=[o[0],o[1]],n=[o[0],o[1]];break}case"L":r.push(...j(i[0],i[1],o[0],o[1],t)),i=[o[0],o[1]];break;case"C":{const[e,a,n,l,s,c]=o;r.push(...O(e,a,n,l,s,c,i,t)),i=[s,c];break}case"Z":r.push(...j(i[0],i[1],n[0],n[1],t)),i=[n[0],n[1]]}return{type:"path",ops:r}}(e,a))),this._d("path",r,a)}opsToPath(e,t){let a="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case"move":a+="M".concat(e[0]," ").concat(e[1]," ");break;case"bcurveTo":a+="C".concat(e[0]," ").concat(e[1],", ").concat(e[2]," ").concat(e[3],", ").concat(e[4]," ").concat(e[5]," ");break;case"lineTo":a+="L".concat(e[0]," ").concat(e[1]," ")}}return a.trim()}toPaths(e){const t=e.sets||[],a=e.options||this.defaultOptions,r=[];for(const e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:a.stroke,strokeWidth:a.strokeWidth,fill:q};break;case"fillPath":t={d:this.opsToPath(e),stroke:q,strokeWidth:0,fill:a.fill||q};break;case"fillSketch":t=this.fillSketch(e,a)}t&&r.push(t)}return r}fillSketch(e,t){let a=t.fillWeight;return a<0&&(a=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||q,strokeWidth:a,fill:q}}}class Q{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Z(t)}draw(e){const t=e.sets||[],a=e.options||this.getDefaultOptions(),r=this.ctx,n=e.options.fixedDecimalPlaceDigits;for(const i of t)switch(i.type){case"path":r.save(),r.strokeStyle="none"===a.stroke?"transparent":a.stroke,r.lineWidth=a.strokeWidth,a.strokeLineDash&&r.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(r.lineDashOffset=a.strokeLineDashOffset),this._drawToContext(r,i,n),r.restore();break;case"fillPath":{r.save(),r.fillStyle=a.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,i,n,t),r.restore();break}case"fillSketch":this.fillSketch(r,i,a)}}fillSketch(e,t,a){let r=a.fillWeight;r<0&&(r=a.strokeWidth/2),e.save(),a.fillLineDash&&e.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(e.lineDashOffset=a.fillLineDashOffset),e.strokeStyle=a.fill||"",e.lineWidth=r,this._drawToContext(e,t,a.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nonzero";e.beginPath();for(const r of t.ops){const t="number"==typeof a&&a>=0?r.data.map((e=>+e.toFixed(a))):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,a,r,n){const i=this.gen.line(e,t,a,r,n);return this.draw(i),i}rectangle(e,t,a,r,n){const i=this.gen.rectangle(e,t,a,r,n);return this.draw(i),i}ellipse(e,t,a,r,n){const i=this.gen.ellipse(e,t,a,r,n);return this.draw(i),i}circle(e,t,a,r){const n=this.gen.circle(e,t,a,r);return this.draw(n),n}linearPath(e,t){const a=this.gen.linearPath(e,t);return this.draw(a),a}polygon(e,t){const a=this.gen.polygon(e,t);return this.draw(a),a}arc(e,t,a,r,n,i){let o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;const s=this.gen.arc(e,t,a,r,n,i,o,l);return this.draw(s),s}curve(e,t){const a=this.gen.curve(e,t);return this.draw(a),a}path(e,t){const a=this.gen.path(e,t);return this.draw(a),a}}const Y="http://www.w3.org/2000/svg";class J{constructor(e,t){this.svg=e,this.gen=new Z(t)}draw(e){const t=e.sets||[],a=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,n=r.createElementNS(Y,"g"),i=e.options.fixedDecimalPlaceDigits;for(const o of t){let t=null;switch(o.type){case"path":t=r.createElementNS(Y,"path"),t.setAttribute("d",this.opsToPath(o,i)),t.setAttribute("stroke",a.stroke),t.setAttribute("stroke-width",a.strokeWidth+""),t.setAttribute("fill","none"),a.strokeLineDash&&t.setAttribute("stroke-dasharray",a.strokeLineDash.join(" ").trim()),a.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset","".concat(a.strokeLineDashOffset));break;case"fillPath":t=r.createElementNS(Y,"path"),t.setAttribute("d",this.opsToPath(o,i)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",a.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,o,a)}t&&n.appendChild(t)}return n}fillSketch(e,t,a){let r=a.fillWeight;r<0&&(r=a.strokeWidth/2);const n=e.createElementNS(Y,"path");return n.setAttribute("d",this.opsToPath(t,a.fixedDecimalPlaceDigits)),n.setAttribute("stroke",a.fill||""),n.setAttribute("stroke-width",r+""),n.setAttribute("fill","none"),a.fillLineDash&&n.setAttribute("stroke-dasharray",a.fillLineDash.join(" ").trim()),a.fillLineDashOffset&&n.setAttribute("stroke-dashoffset","".concat(a.fillLineDashOffset)),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,a,r,n){const i=this.gen.line(e,t,a,r,n);return this.draw(i)}rectangle(e,t,a,r,n){const i=this.gen.rectangle(e,t,a,r,n);return this.draw(i)}ellipse(e,t,a,r,n){const i=this.gen.ellipse(e,t,a,r,n);return this.draw(i)}circle(e,t,a,r){const n=this.gen.circle(e,t,a,r);return this.draw(n)}linearPath(e,t){const a=this.gen.linearPath(e,t);return this.draw(a)}polygon(e,t){const a=this.gen.polygon(e,t);return this.draw(a)}arc(e,t,a,r,n,i){let o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;const s=this.gen.arc(e,t,a,r,n,i,o,l);return this.draw(s)}curve(e,t){const a=this.gen.curve(e,t);return this.draw(a)}path(e,t){const a=this.gen.path(e,t);return this.draw(a)}}const X=(e,t)=>new Q(e,t),$=(e,t)=>new J(e,t),ee=e=>new Z(e);var te=a(8288);const ae=(e,t,a,r,n)=>[(e-a)*Math.cos(n)-(t-r)*Math.sin(n)+a,(e-a)*Math.sin(n)+(t-r)*Math.cos(n)+r],re=(e,t,a)=>ae(e[0],e[1],t[0],t[1],a),ne=(e,t,a,r,n,i,o,l)=>{const s=Math.cos(r),c=Math.sin(r);return e.e&&e.w?t+=n+o:e.e?(t+=n*(1+s),a+=n*c,t+=o*(1-s),a+=o*-c):e.w&&(t+=n*(1-s),a+=n*-c,t+=o*(1+s),a+=o*c),e.n&&e.s?a+=i+l:e.n?(t+=i*c,a+=i*(1-s),t+=l*-c,a+=l*(1+s)):e.s&&(t+=i*-c,a+=i*(1+s),t+=l*c,a+=l*(1-s)),[t,a]},ie=(e,t,a,r)=>{const n=a-e,i=r-t;return Math.hypot(n,i)},oe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.length>=3){const[a,r]=[e[0],e[e.length-1]];return ie(a[0],a[1],r[0],r[1])<=te.qx/t}return!1},le=(e,t,a)=>{const r=e.length;if(r<3)return!1;const n=[Number.MAX_SAFE_INTEGER,a],i=[t,a];let o=0;for(let t=0;t<r;t++){const a=e[t],l=e[(t+1)%r];if(de(a,l,i,n)){if(0===ce(a,i,l))return se(a,i,l);o++}}return o%2==1},se=(e,t,a)=>t[0]<=Math.max(e[0],a[0])&&t[0]>=Math.min(e[0],a[0])&&t[1]<=Math.max(e[1],a[1])&&t[1]>=Math.min(e[1],a[1]),ce=(e,t,a)=>{const r=(t[1]-e[1])*(a[0]-t[0])-(t[0]-e[0])*(a[1]-t[1]);return 0===r?0:r>0?1:2},de=(e,t,a,r)=>{const n=ce(e,t,a),i=ce(e,t,r),o=ce(a,r,e),l=ce(a,r,t);return n!==i&&o!==l||!(0!==n||!se(e,a,t))||!(0!==i||!se(e,r,t))||!(0!==o||!se(a,e,r))||!(0!==l||!se(a,t,r))},ue=(e,t,a)=>a?[Math.round(e/a)*a,Math.round(t/a)*a]:[e,t],pe=e=>!!e&&"image"===e.type&&!!e.fileId,he=e=>!!e&&"image"===e.type,me=e=>null!=e&&"text"===e.type,ge=e=>null!=e&&fe(e.type),fe=e=>"freedraw"===e,be=e=>null!=e&&ve(e.type),ve=e=>"arrow"===e||"line"===e,ye=e=>null!=e&&ke(e.type),ke=e=>"arrow"===e,we=e=>null!=e&&("rectangle"===e.type||"diamond"===e.type||"ellipse"===e.type||"image"===e.type||"text"===e.type&&!e.containerId),xe=e=>null!=e&&("rectangle"===e.type||"diamond"===e.type||"ellipse"===e.type||"image"===e.type),Se=e=>{var t;return we(e)&&!(null===(t=e.boundElements)||void 0===t||!t.some((e=>{let{type:t}=e;return"text"===t})))},_e=e=>null!==e&&me(e)&&null!==e.containerId,Ae=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"]}'),Ee=e=>[Ae.red[e],Ae.pink[e],Ae.grape[e],Ae.violet[e],Ae.indigo[e],Ae.blue[e],Ae.cyan[e],Ae.teal[e],Ae.green[e],Ae.lime[e],Ae.yellow[e],Ae.orange[e]],Ce={canvasBackground:[Ae.white,Ae.gray[0],Ae.gray[1],...Ee(0)],elementBackground:["transparent",Ae.gray[4],Ae.gray[6],...Ee(6)],elementStroke:[Ae.black,Ae.gray[8],Ae.gray[7],...Ee(9)]};var Te=a(2750);const ze=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ie=/^Win/.test(window.navigator.platform),Le=/\b(android)\b/i.test(navigator.userAgent),je="BracketRight",Me="BracketLeft",Be="Digit0",Pe="KeyC",De="KeyG",Ne="KeyV",Oe={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",ALT:"Alt",CTRL_OR_CMD:ze?"metaKey":"ctrlKey",DELETE:"Delete",ENTER:"Enter",ESCAPE:"Escape",QUESTION_MARK:"?",SPACE:" ",TAB:"Tab",CHEVRON_LEFT:"<",CHEVRON_RIGHT:">",PERIOD:".",COMMA:",",A:"a",D:"d",E:"e",G:"g",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"},Fe=e=>e===Oe.ARROW_LEFT||e===Oe.ARROW_RIGHT||e===Oe.ARROW_DOWN||e===Oe.ARROW_UP,Re=e=>e.altKey,He=e=>e.shiftKey,Ge=e=>e.shiftKey;const Ve=()=>{const e=new Date,t=e.getFullYear(),a="".concat(e.getMonth()+1).padStart(2,"0"),r="".concat(e.getDate()).padStart(2,"0"),n="".concat(e.getHours()).padStart(2,"0"),i="".concat(e.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(r,"-").concat(n).concat(i)},Ue=e=>e.charAt(0).toUpperCase()+e.slice(1),Ke=e=>e instanceof HTMLElement&&"wysiwyg"===e.dataset.type||e instanceof HTMLBRElement||e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&("text"===e.type||"number"===e.type),We=e=>{let{fontFamily:t}=e;for(const[e,a]of Object.entries(te.ut))if(a===t)return"".concat(e,", ").concat(te._D);return te._D},qe=e=>{let{fontSize:t,fontFamily:a}=e;return"".concat(t,"px ").concat(We({fontFamily:a}))},Ze=(e,t)=>{let a=0,r=null;const n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r=i,clearTimeout(a),a=window.setTimeout((()=>{r=null,e(...i)}),t)};return n.flush=()=>{if(clearTimeout(a),r){const t=r;r=null,e(...t)}},n.cancel=()=>{r=null,clearTimeout(a)},n},Qe=(e,t)=>Math.abs(e-t),Ye=e=>{e&&(e.style.cursor="")},Je=(e,t)=>{e&&(e.style.cursor=t)},Xe=(e,t)=>{e&&("selection"===t?Ye(e):"image"!==t&&(e.style.cursor=te.oc.CROSSHAIR))},$e=()=>{var e;return"HTML"===(null===(e=document.fullscreenElement)||void 0===e?void 0:e.nodeName)},et=e=>(e=e.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter").replace(/\bDel\b/i,"Delete"),ze?e.replace(/\bCtrlOrCmd\b/i,"Cmd").replace(/\bAlt\b/i,"Option"):e.replace(/\bCtrlOrCmd\b/i,"Ctrl")),tt=(e,t)=>{let{clientX:a,clientY:r}=e,{zoom:n,offsetLeft:i,offsetTop:o,scrollX:l,scrollY:s}=t;const c=1/n.value;return{x:(a-i)*c-l,y:(r-o)*c-s}},at=(e,t)=>{let{sceneX:a,sceneY:r}=e,{zoom:n,offsetLeft:i,offsetTop:o,scrollX:l,scrollY:s}=t;return{x:(a+l)*n.value+i,y:(r+s)*n.value+o}},rt=e=>getComputedStyle(document.documentElement).getPropertyValue("--".concat(e)),nt=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),it=e=>nt.test(e),ot=e=>{const[t,a]=e;return{x:t,y:a}},lt=e=>{if("AbortError"!==(null==e?void 0:e.name))throw e;console.warn(e)},st=e=>{const t=5===e.length&&"0"===e.substr(4,1),a=9===e.length&&"00"===e.substr(7,2);return t||a||e===Ce.elementBackground[0]},ct=e=>t=>{(0,Te.unstable_batchedUpdates)(e,t)},dt=e=>(e=>{let t=null,a=null,r=null;const n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];a=i,r=e,null===t&&(t=window.requestAnimationFrame((()=>{t=null,a=null,r=null,e(...i)})))};return n.flush=()=>{if(null!==t&&(cancelAnimationFrame(t),t=null),a){const e=a,t=r;a=null,r=null,null!==t&&t(...e)}},n.cancel=()=>{a=null,r=null,null!==t&&(cancelAnimationFrame(t),t=null)},n})((t=>{(0,Te.unstable_batchedUpdates)(e,t)})),ut=()=>ht()?1:Date.now(),pt=e=>e.reduce(((e,t)=>(e.set("string"==typeof t?t:t.id,t),e)),new Map),ht=()=>{var e;return"undefined"!=typeof process&&"test"===(null===(e=process.env)||void 0===e?void 0:"production")},mt=(e,t)=>new CustomEvent(e,{detail:{nativeEvent:t},cancelable:!0});var gt=a(1463),ft=a(4451);const bt={code:"en",label:"English"},vt=[{code:"ar-SA",label:"العربية",rtl:!0},{code:"bg-BG",label:"Български"},{code:"ca-ES",label:"Català"},{code:"cs-CZ",label:"Česky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"Ελληνικά"},{code:"es-ES",label:"Español"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"فارسی",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Français"},{code:"he-IL",label:"עברית",rtl:!0},{code:"hi-IN",label:"हिन्दी"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"日本語"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"Қазақ тілі"},{code:"ko-KR",label:"한국어"},{code:"lt-LT",label:"Lietuvių"},{code:"lv-LV",label:"Latviešu"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokmål"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"ਪੰਜਾਬੀ"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Português Brasileiro"},{code:"pt-PT",label:"Português"},{code:"ro-RO",label:"Română"},{code:"ru-RU",label:"Русский"},{code:"sk-SK",label:"Slovenčina"},{code:"sv-SE",label:"Svenska"},{code:"tr-TR",label:"Türkçe"},{code:"uk-UA",label:"Українська"},{code:"zh-CN",label:"简体中文"},{code:"zh-TW",label:"繁體中文"}].concat([bt]).sort(((e,t)=>e.label>t.label?1:-1)).filter((e=>ft[e.code]>=85)),yt="__test__";"production"===te.Vi.DEVELOPMENT&&vt.unshift({code:yt,label:"test language"},{code:"".concat(yt,".rtl"),label:"‪test language (rtl)‬",rtl:!0});let kt=bt,wt={};const xt=async e=>{kt=e,document.documentElement.dir=kt.rtl?"rtl":"ltr",document.documentElement.lang=kt.code,wt=e.code.startsWith(yt)?{}:await a(788)("./".concat(kt.code,".json"))},St=()=>kt,_t=(e,t)=>{for(let a=0;a<t.length;++a){const r=t[a];if(void 0===e[r])return;e=e[r]}if("string"==typeof e)return e},At=(e,t)=>{if(kt.code.startsWith(yt)){const a=t?"".concat(e,"(").concat(JSON.stringify(t).slice(1,-1),")"):e;return"‪[[".concat(a,"]]‬")}const a=e.split(".");let r=_t(wt,a)||_t(gt,a);if(void 0===r)throw new Error("Can't find translation for ".concat(e));if(t)for(const e in t)r=r.replace("{{".concat(e,"}}"),String(t[e]));return r},Et=te.ZB.includes(devicePixelRatio)?devicePixelRatio:1,Ct=()=>({theme:te.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:"transparent",currentItemEndArrowhead:"arrow",currentItemFillStyle:"hachure",currentItemFontFamily:te.rk,currentItemFontSize:te.n5,currentItemLinearStrokeSharpness:"round",currentItemOpacity:100,currentItemRoughness:1,currentItemStartArrowhead:null,currentItemStrokeColor:Ae.black,currentItemStrokeSharpness:"sharp",currentItemStrokeStyle:"solid",currentItemStrokeWidth:1,currentItemTextAlign:te.Hg,cursorButton:"up",draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,elementLocked:!1,elementType:"selection",penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:Et,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,isLibraryOpen:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat(At("labels.untitled"),"-").concat(Ve()),openMenu:null,openPopup:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectionElement:null,shouldCacheIgnoreZoom:!1,showHelpDialog:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],toastMessage:null,viewBackgroundColor:Ae.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElement:null,showHyperlinkPopup:!1}),Tt={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},currentItemLinearStrokeSharpness:{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},currentItemStrokeSharpness:{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},elementLocked:{browser:!0,export:!1,server:!1},elementType:{browser:!0,export:!1,server:!1},penMode:{browser:!1,export:!1,server:!1},penDetected:{browser:!1,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},isLibraryOpen:{browser:!1,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},openMenu:{browser:!0,export:!1,server:!1},openPopup:{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},showHelpDialog:{browser:!1,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},toastMessage:{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},pendingImageElement:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1}},zt=(e,t)=>{const a={};for(const r of Object.keys(e)){const n=Tt[r];if(null!=n&&n[t]){const t=e[r];a[r]=t}}return a},It=e=>zt(e,"export"),Lt=e=>zt(e,"server");function jt(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e;return e*r(.5-t*(.5-a))}function Mt(e){return[-e[0],-e[1]]}function Bt(e,t){return[e[0]+t[0],e[1]+t[1]]}function Pt(e,t){return[e[0]-t[0],e[1]-t[1]]}function Dt(e,t){return[e[0]*t,e[1]*t]}function Nt(e){return[e[1],-e[0]]}function Ot(e,t){return e[0]*t[0]+e[1]*t[1]}function Ft(e,t){return e[0]===t[0]&&e[1]===t[1]}function Rt(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(Pt(e,t))}function Ht(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function Gt(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function Vt(e,t,a){let r=Math.sin(a),n=Math.cos(a),i=e[0]-t[0],o=e[1]-t[1],l=i*r+o*n;return[i*n-o*r+t[0],l+t[1]]}function Ut(e,t,a){return Bt(e,Dt(Pt(t,e),a))}function Kt(e,t,a){return Bt(e,Dt(t,a))}var{min:Wt,PI:qt}=Math,Zt=.275,Qt=qt+1e-4;function Yt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{size:a=16,smoothing:r=.5,thinning:n=.5,simulatePressure:i=!0,easing:o=(e=>e),start:l={},end:s={},last:c=!1}=t,{cap:d=!0,taper:u=0,easing:p=(e=>e*(2-e))}=l,{cap:h=!0,taper:m=0,easing:g=(e=>--e*e*e+1)}=s;if(0===e.length||a<=0)return[];let f,b=e[e.length-1].runningLength,v=Math.pow(a*r,2),y=[],k=[],w=e.slice(0,10).reduce(((e,t)=>{let r=t.pressure;if(i){let n=Wt(1,t.distance/a),i=Wt(1,1-n);r=Wt(1,e+n*Zt*(i-e))}return(e+r)/2}),e[0].pressure),x=jt(a,n,e[e.length-1].pressure,o),S=e[0].vector,_=e[0].point,A=_,E=_,C=A;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:l,vector:s,distance:c,runningLength:d}=e[t];if(t<e.length-1&&b-d<3)continue;if(n){if(i){let e=Wt(1,c/a),t=Wt(1,1-e);r=Wt(1,w+e*Zt*(t-w))}x=jt(a,n,r,o)}else x=a/2;void 0===f&&(f=x);let h=d<u?p(d/u):1,T=b-d<m?g((b-d)/m):1;if(x=Math.max(.01,x*Math.min(h,T)),t===e.length-1){let e=Dt(Nt(s),x);y.push(Pt(l,e)),k.push(Bt(l,e));continue}let z=e[t+1].vector,I=Ot(s,z);if(I<0){let e=Dt(Nt(S),x);for(let t=1/13,a=0;a<=1;a+=t)E=Vt(Pt(l,e),l,Qt*a),y.push(E),C=Vt(Bt(l,e),l,Qt*-a),k.push(C);_=E,A=C;continue}let L=Dt(Nt(Ut(z,s,I)),x);E=Pt(l,L),(t<=1||Rt(_,E)>v)&&(y.push(E),_=E),C=Bt(l,L),(t<=1||Rt(A,C)>v)&&(k.push(C),A=C),w=r,S=s}let T=e[0].point.slice(0,2),z=e.length>1?e[e.length-1].point.slice(0,2):Bt(e[0].point,[1,1]),I=[],L=[];if(1===e.length){if(!u&&!m||c){let e=Kt(T,Ht(Nt(Pt(T,z))),-(f||x)),t=[];for(let a=1/13,r=a;r<=1;r+=a)t.push(Vt(e,T,2*Qt*r));return t}}else{if(!(u||m&&1===e.length))if(d)for(let e=1/13,t=e;t<=1;t+=e){let e=Vt(k[0],T,Qt*t);I.push(e)}else{let e=Pt(y[0],k[0]),t=Dt(e,.5),a=Dt(e,.51);I.push(Pt(T,t),Pt(T,a),Bt(T,a),Bt(T,t))}let t=Nt(Mt(e[e.length-1].vector));if(m||u&&1===e.length)L.push(z);else if(h){let e=Kt(z,t,x);for(let t=1/29,a=t;a<1;a+=t)L.push(Vt(e,z,3*Qt*a))}else L.push(Bt(z,Dt(t,x)),Bt(z,Dt(t,.99*x)),Pt(z,Dt(t,.99*x)),Pt(z,Dt(t,x)))}return y.concat(L,k.reverse(),I)}function Jt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var a;let{streamline:r=.5,size:n=16,last:i=!1}=t;if(0===e.length)return[];let o=.15+.85*(1-r),l=Array.isArray(e[0])?e:e.map((e=>{let{x:t,y:a,pressure:r=.5}=e;return[t,a,r]}));if(2===l.length){let e=l[1];l=l.slice(0,-1);for(let t=1;t<5;t++)l.push(Ut(l[0],e,t/4))}1===l.length&&(l=[...l,[...Bt(l[0],[1,1]),...l[0].slice(2)]]);let s=[{point:[l[0][0],l[0][1]],pressure:l[0][2]>=0?l[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,d=0,u=s[0],p=l.length-1;for(let e=1;e<l.length;e++){let t=i&&e===p?l[e].slice(0,2):Ut(u.point,l[e],o);if(Ft(u.point,t))continue;let a=Gt(t,u.point);if(d+=a,e<p&&!c){if(d<n)continue;c=!0}u={point:t,pressure:l[e][2]>=0?l[e][2]:.5,vector:Ht(Pt(u.point,t)),distance:a,runningLength:d},s.push(u)}return s[0].vector=(null==(a=s[1])?void 0:a.vector)||[0,0],s}function Xt(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const $t=e=>be(e)||ge(e)?e.points.length<2:0===e.width&&0===e.height,ea=(e,t,a)=>{const r=Math.abs(t),n=Math.abs(a);if("line"===e||"arrow"===e||"freedraw"===e){const e=Math.round(Math.atan(n/r)/te.ay)*te.ay;0===e?a=0:e===Math.PI/2?t=0:a=Math.round(r*Math.tan(e))*Math.sign(a)||a}else"selection"!==e&&(a=r*Math.sign(a));return{width:t,height:a}},ta=e=>{const t={width:e.width,height:e.height,x:e.x,y:e.y};if(e.width<0){const a=Math.abs(e.width);t.width=a,t.x=e.x-a}if(e.height<0){const a=Math.abs(e.height);t.height=a,t.y=e.y-a}return t};let aa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",a=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&a[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},ra=new h(Date.now()),na=0;const ia=()=>Math.floor(ra.next()*2**31),oa=()=>ht()?"id".concat(na++):aa(),la=(e,t,a)=>{const[r,n]=[e.horizontal,e.vertical].map((e=>null!=e&&e.x<=t&&t<=e.x+e.width&&e.y<=a&&a<=e.y+e.height));return{isOverEither:r||n,isOverHorizontal:r,isOverVertical:n}},sa=(e,t)=>e.some((e=>t.selectedElementIds[e.id])),ca=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((e=>t.selectedElementIds[e.id]||a&&_e(e)&&t.selectedElementIds[null==e?void 0:e.containerId]?e:null))},da=(e,t)=>t.editingElement?[t.editingElement]:ca(e,t,!0),ua=e=>{let{scenePoint:t,viewportDimensions:a,zoom:r}=e;return{scrollX:a.width/2*(1/r.value)-t.x,scrollY:a.height/2*(1/r.value)-t.y}},pa=(e,t,a)=>{if(!(e=pu(e)).length)return{scrollX:0,scrollY:0};let[r,n,i,o]=_p(e);return((e,t,a)=>{const[r,n,i,o]=a,{x:l,y:s}=at({sceneX:r,sceneY:n},e),{x:c,y:d}=at({sceneX:i,sceneY:o},e);return c-l>e.width||d-s>e.height})(t,0,[r,n,i,o])&&([r,n,i,o]=Cp(e,tt({clientX:t.scrollX,clientY:t.scrollY},t))),ua({scenePoint:{x:(r+i)/2,y:(n+o)/2},viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})},ha=e=>"rectangle"===e||"ellipse"===e||"diamond"===e||"line"===e||"freedraw"===e,ma=e=>"image"!==e,ga=e=>"rectangle"===e||"ellipse"===e||"diamond"===e||"freedraw"===e||"arrow"===e||"line"===e,fa=e=>"rectangle"===e||"ellipse"===e||"diamond"===e||"arrow"===e||"line"===e,ba=e=>"rectangle"===e||"arrow"===e||"line"===e||"diamond"===e,va=e=>"text"===e,ya=e=>"arrow"===e,ka=(e,t,a)=>{let r=null;for(let n=e.length-1;n>=0;--n){if(e[n].isDeleted)continue;const[i,o,l,s]=gp(e[n]);if(i<t&&t<l&&o<a&&a<s){r=e[n];break}}return xe(r)?r:null},wa=e=>Math.max(.1,Math.min(e,30)),xa=(e,t)=>{let{viewportX:a,viewportY:r,nextZoom:n}=e;const i=a-t.offsetLeft,o=r-t.offsetTop,l=t.zoom.value;return{scrollX:t.scrollX+(i-i/l)+-(i-i/n),scrollY:t.scrollY+(o-o/l)+-(o-o/n),zoom:{value:n}}},Sa=(e,t,a)=>{const r=a.filter((t=>t.groupIds.includes(e)));return r.length<2?t.selectedGroupIds[e]||t.editingGroupId===e?Object.assign(Object.assign({},t),{selectedGroupIds:Object.assign(Object.assign({},t.selectedGroupIds),{[e]:!1}),editingGroupId:null}):t:Object.assign(Object.assign({},t),{selectedGroupIds:Object.assign(Object.assign({},t.selectedGroupIds),{[e]:!0}),selectedElementIds:Object.assign(Object.assign({},t.selectedElementIds),Object.fromEntries(r.map((e=>[e.id,!0]))))})},_a=(e,t)=>null!=Aa(e,t),Aa=(e,t)=>t.groupIds.filter((t=>t!==e.editingGroupId)).find((t=>e.selectedGroupIds[t])),Ea=e=>Object.entries(e.selectedGroupIds).filter((e=>{let[t,a]=e;return a})).map((e=>{let[t,a]=e;return t})),Ca=(e,t)=>{let a=Object.assign(Object.assign({},e),{selectedGroupIds:{}});const r=ca(t,e);if(!r.length)return Object.assign(Object.assign({},a),{editingGroupId:null});for(const n of r){let r=n.groupIds;if(e.editingGroupId){const t=r.indexOf(e.editingGroupId);t>-1&&(r=r.slice(0,t))}if(r.length>0){const e=r[r.length-1];a=Sa(e,a,t)}}return a},Ta=(e,t)=>e.groupIds.includes(t),za=(e,t)=>e.filter((e=>Ta(e,t))),Ia=(e,t,a)=>{const r=[...e],n=a?r.indexOf(a):-1,i=n>-1?n:r.length;return r.splice(i,0,t),r},La=e=>{const t=new Map;return e.forEach((e=>{const a=0===e.groupIds.length?e.id:e.groupIds[e.groupIds.length-1],r=t.get(a)||[],n=Fu(e);n&&r.push(n),t.set(a,[...r,e])})),Array.from(t.values())};const ja=(e,t)=>{var a,r;let{x:n,y:i,strokeColor:o,backgroundColor:l,fillStyle:s,strokeWidth:c,strokeStyle:d,roughness:u,opacity:p,width:h=0,height:m=0,angle:g=0,groupIds:f=[],strokeSharpness:b,boundElements:v=null,link:y=null}=t,k=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}(t,["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","strokeSharpness","boundElements","link"]);return{id:k.id||oa(),type:e,x:n,y:i,width:h,height:m,angle:g,strokeColor:o,backgroundColor:l,fillStyle:s,strokeWidth:c,strokeStyle:d,roughness:u,opacity:p,groupIds:f,strokeSharpness:b,seed:null!==(a=k.seed)&&void 0!==a?a:ia(),version:k.version||1,versionNonce:null!==(r=k.versionNonce)&&void 0!==r?r:0,isDeleted:!1,boundElements:v,updated:ut(),link:y}},Ma=e=>ja(e.type,e),Ba=(e,t)=>({x:"center"===e.textAlign?t.width/2:"right"===e.textAlign?t.width:0,y:"middle"===e.verticalAlign?t.height/2:0}),Pa=e=>{const t=Cu(e.text,qe(e)),a=Ba(e,t);return xu(Object.assign(Object.assign({},ja("text",e)),{text:e.text,fontSize:e.fontSize,fontFamily:e.fontFamily,textAlign:e.textAlign,verticalAlign:e.verticalAlign,x:e.x-a.x,y:e.y-a.y,width:t.width,height:t.height,baseline:t.baseline,containerId:e.containerId||null,originalText:e.text}),{})},Da=e=>Object.assign(Object.assign({},ja(e.type,e)),{points:e.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:e.startArrowhead,endArrowhead:e.endArrowhead}),Na=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null==e||"object"!=typeof e)return e;if("[object Object]"===Object.prototype.toString.call(e)){const a="function"==typeof e.constructor?Object.create(Object.getPrototypeOf(e)):{};for(const r in e)if(e.hasOwnProperty(r)){if(0===t&&("shape"===r||"canvas"===r))continue;a[r]=Na(e[r],t+1)}return a}if(Array.isArray(e)){let a=e.length;const r=new Array(a);for(;a--;)r[a]=Na(e[a],t+1);return r}return e},Oa=(e,t,a,r)=>{let n=Na(a);var i,o;return ht()?(n.id="".concat(n.id,"_copy"),null!==(i=window.h)&&void 0!==i&&null!==(o=i.app)&&void 0!==o&&o.getSceneElementsIncludingDeleted().find((e=>e.id===n.id))&&(n.id+="_copy")):n.id=oa(),n.updated=ut(),n.seed=ia(),n.groupIds=((e,a,r)=>{const n=[...e],i=a?e.indexOf(a):-1,o=i>-1?i:e.length;for(let e=0;e<o;e++)n[e]=(l=n[e],t.has(l)||t.set(l,oa()),t.get(l));var l;return n})(n.groupIds,e),r&&(n=Object.assign(n,r)),n},Fa={mouse:8,pen:16,touch:28},Ra={e:!0,s:!0,n:!0,w:!0},Ha={e:!0,s:!0,n:!0,w:!0},Ga={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},Va={e:!0,s:!0,n:!0,w:!0,ne:!0,sw:!0},Ua=(e,t,a,r,n,i,o)=>{const[l,s]=ae(e+a/2,t+r/2,n,i,o);return[l-a/2,s-r/2,a,r]},Ka=function(e,t,a,r){let[n,i,o,l]=e,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const c=Fa[r],d=c/a.value,u=c/a.value,p=c/a.value,h=c/a.value,m=o-n,g=l-i,f=(n+o)/2,b=(i+l)/2,v=4/a.value,y=(c-8)/(2*a.value),k={nw:s.nw?void 0:Ua(n-v-p+y,i-v-h+y,d,u,f,b,t),ne:s.ne?void 0:Ua(o+v-y,i-v-h+y,d,u,f,b,t),sw:s.sw?void 0:Ua(n-v-p+y,l+v-y,d,u,f,b,t),se:s.se?void 0:Ua(o+v-y,l+v-y,d,u,f,b,t),rotation:s.rotation?void 0:Ua(n+m/2-d/2,i-v-h+y-16/a.value,d,u,f,b,t)},w=5*Fa.mouse/a.value;return Math.abs(m)>w&&(s.n||(k.n=Ua(n+m/2-d/2,i-v-h+y,d,u,f,b,t)),s.s||(k.s=Ua(n+m/2-d/2,l+v-y,d,u,f,b,t))),Math.abs(g)>w&&(s.w||(k.w=Ua(n-v-p+y,i+g/2-u/2,d,u,f,b,t)),s.e||(k.e=Ua(o+v-y,i+g/2-u/2,d,u,f,b,t))),k},Wa=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mouse",r={};if("arrow"===e.type||"line"===e.type||"freedraw"===e.type){if(2===e.points.length){const[,t]=e.points;0===t[0]||0===t[1]?r=Va:t[0]>0&&t[1]<0?r=Ga:t[0]>0&&t[1]>0?r=Va:t[0]<0&&t[1]>0?r=Ga:t[0]<0&&t[1]<0&&(r=Va)}}else me(e)&&(r=Ha);return Ka(gp(e),e.angle,t,a,r)},qa=(e,t)=>[0,0,0,0,t,e,1,0],Za=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=[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&&(a[t]=e),a},Qa=e=>[e[0],e[1],e[2],e[3],-e[4],-e[5],-e[6],-e[7]],Ya=(e,t)=>rr(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]],Ja=(e,t)=>rr(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]:[Xa(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]],Xa=(e,t)=>t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6],$a=(e,t)=>[er(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]],er=(e,t)=>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],tr=e=>Math.sqrt(Math.abs(e[0]*e[0]-e[2]*e[2]-e[3]*e[3]+e[6]*e[6])),ar=e=>{const t=tr(e);if(0===t||1===t)return e;const a=e[6]<0?-1:1;return Ja(e,a/t)},rr=e=>"number"==typeof e,nr=(Za(1,1),Za(1,2),Za(1,3),Za(1,4),Za(1,5),Za(1,6),Za(1,7),(e,t,a)=>ar([0,a,e,t,0,0,0,0])),ir=(e,t)=>ar($a(t,e)),or=(e,t)=>((e,t)=>[t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6],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[7]*e[3]+t[0]*e[4]+t[3]*e[7],t[5]*e[0]+t[7]*e[2]+t[0]*e[5]+t[2]*e[7],t[6]*e[0]+t[0]*e[6],t[7]*e[0]+t[0]*e[7]])(e,t),lr=e=>{let[t,a]=e;return[0,0,0,0,a,t,1,0]},sr=e=>[e[5],e[4]],cr=(e,t)=>tr($a(e,t)),dr=(e,t)=>er(e,t),ur=e=>[0,0,0,0,e[4],e[5],0,0],pr=(e,t)=>((e,t)=>rr(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]])(Ja(e,Math.sin(t/2)),Math.cos(t/2)),hr=(e,t)=>ar(Ja(Ja(e,t),Qa(e))),mr=(e,t,a,r)=>{const n=10/t.zoom.value;return!gr(e,t,[a,r])&&fr(e,[a,r],n)},gr=(e,t,a)=>{const r=10/t.zoom.value,n=me(e)?wr:(e=>{if("arrow"===e.type)return!1;if("freedraw"===e.type)return!0;const t=!st(e.backgroundColor)||Se(e);return"line"===e.type?t&&oe(e.points):t||he(e)})(e)?xr:Sr;return yr({element:e,point:a,threshold:r,check:n})},fr=(e,t,a)=>{let[r,n]=t;const[i,o,l,s]=gp(e),c=(i+l)/2,d=(o+s)/2,[u,p]=ae(r,n,c,d,-e.angle);return u>i-a&&u<l+a&&p>o-a&&p<s+a},br=(e,t)=>{let{x:a,y:r}=t;const n=vr(e,e.width,e.height);return yr({element:e,point:[a,r],threshold:n,check:_r})},vr=(e,t,a)=>{const r=("diamond"===e.type?1/Math.sqrt(2):1)*Math.min(t,a);return Math.max(16,Math.min(.25*r,32))},yr=e=>{switch(e.element.type){case"rectangle":case"image":case"text":case"diamond":case"ellipse":const t=kr(e.element,e.point);return e.check(t,e.threshold);case"freedraw":return!!e.check(Ar(e.element,e.point),e.threshold)&&zr(e.element,e.point,e.threshold);case"arrow":case"line":return Ir(e);case"selection":return console.warn("This should not happen, we need to investigate why it does."),!1}},kr=(e,t)=>{switch(e.type){case"rectangle":case"image":case"text":return Ar(e,t);case"diamond":return Er(e,t);case"ellipse":return Cr(e,t)}},wr=(e,t)=>e<0,xr=(e,t)=>e<t,Sr=(e,t)=>Math.abs(e)<t,_r=(e,t)=>0<=e&&e<t,Ar=(e,t)=>{const[,a,r,n]=Lr(e,t);return Math.max(dr(a,nr(0,1,-n)),dr(a,nr(1,0,-r)))},Er=(e,t)=>{const[,a,r,n]=Lr(e,t),i=nr(n,r,-n*r);return dr(a,i)},Cr=(e,t)=>{const[a,r]=Tr(e,t);return-(e=>Math.sign(e[1]))(r)*dr(a,r)},Tr=(e,t)=>{const[,a,r,n]=Lr(e,t),[i,o]=sr(a);let l=.707,s=.707;const c=r,d=n;[0,1,2,3].forEach((e=>{const t=(c*c-d*d)*l**3/c,a=(d*d-c*c)*s**3/d,r=c*l-t,n=d*s-a,u=i-t,p=o-a,h=Math.hypot(n,r),m=Math.hypot(p,u);l=Math.min(1,Math.max(0,(u*h/m+t)/c)),s=Math.min(1,Math.max(0,(p*h/m+a)/d));const g=Math.hypot(s,l);l/=g,s/=g}));const u=qa(c*l,d*s);var p;return[a,or(ir(a,p=u),p)]},zr=(e,t,a)=>{let r,n;if(0===e.angle)r=t[0]-e.x,n=t[1]-e.y;else{const[a,i,o,l]=gp(e),s=re(t,[a+(o-a)/2,i+(l-i)/2],-e.angle);r=s[0]-e.x,n=s[1]-e.y}let i,[o,l]=e.points;if(ie(o[0],o[1],r,n)<a||ie(l[0],l[1],r,n)<a)return!0;for(let t=0;t<e.points.length;t++){const s=[l[0]-o[0],l[1]-o[1]],c=Math.hypot(s[1],s[0]),d=[s[0]/c,s[1]/c],u=[r-o[0],n-o[1]],p=(u[0]*d[0]+u[1]*d[1])/Math.hypot(d[1],d[0]);i=[o[0]+d[0]*p,o[1]+d[1]*p];const h=ie(i[0],i[1],o[0],o[1]),m=ie(i[0],i[1],l[0],l[1]);if(i=m<h&&h>c?l:h<m&&m>c?o:i,Math.hypot(n-i[1],r-i[0])<a)return!0;o=l,l=e.points[t+1]}const s=ep(e);return!(!s||!s.sets.length)&&Gr(s,r,n,a)},Ir=e=>{const{element:t,threshold:a}=e;if(!ep(t))return!1;const[r,n,i,o]=Lr(e.element,e.point),l=nr(0,1,-o),s=nr(1,0,-i);if(!xr(dr(n,l),a)||!xr(dr(n,s),a))return!1;const[c,d]=sr(r),u=ep(t);return!!u&&(!(e.check!==xr||!u.some((e=>Hr(e,c,d,t.strokeSharpness))))||u.some((e=>Gr(e,c,d,a))))},Lr=(e,t)=>{const a=lr(t),r=gp(e),n=Mr(r),i=pr(n,e.angle),o=hr(i,a),l=(e=>[0,0,0,0,Math.abs(e[4]),Math.abs(e[5]),1,0])(Ya(o,ur(n))),s=((e,t)=>[0,0,0,0,t,e,0,0])(e.x,e.y),c=Ya(o,s),[d,u,p,h]=r;return[c,l,(p-d)/2,(h-u)/2]},jr=e=>{const t=gp(e),a=Mr(t),r=pr(a,e.angle),n=Qa([1,0,0,0,-.5*(i=ur(a))[5],.5*i[4],0,0]);var i;return Ja(n,r)},Mr=e=>{let[t,a,r,n]=e;return qa((t+r)/2,(a+n)/2)},Br=(e,t,a)=>{const r=jr(e),n=hr(r,lr(t)),i=hr(r,lr(a)),o=ir(n,i),l=e.height/e.width,s=e.width/2,c=e.height/2,d=o[2],u=o[3],p=o[1],h=Math.abs(u),m=Math.abs(d);switch(e.type){case"rectangle":case"image":case"text":return p/(s*(m+l*h));case"diamond":return h<m?p/(m*s):p/(h*c);case"ellipse":return p/(s*Math.sqrt(d**2+l**2*u**2))}},Pr=function(e,t,a){let r,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;switch(e.type){case"rectangle":case"image":case"text":case"diamond":const a=Dr(e);r=a.flatMap(((e,r)=>{const i=[e,a[(r+1)%4]];return Nr(t,Or(i,n))})).concat(a.flatMap((e=>Rr(e,n,t))));break;case"ellipse":r=Fr(e,n,t)}if(r.length<2)return[];const i=r.sort(((e,t)=>cr(e,a)-cr(t,a)));return[i[0],i[i.length-1]]},Dr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const a=t*e.width/2,r=t*e.height/2;switch(e.type){case"rectangle":case"image":case"text":return[qa(a,r),qa(a,-r),qa(-a,-r),qa(-a,r)];case"diamond":return[qa(0,r),qa(a,0),qa(0,-r),qa(-a,0)]}},Nr=(e,t)=>{const[a,r]=t;return dr(a,e)*dr(r,e)>=0?[]:[(n=e,i=ir(a,r),ar(((e,t)=>[t[0]*e[0],t[1]*e[0]+t[0]*e[1],t[2]*e[0]+t[0]*e[2],t[3]*e[0]+t[0]*e[3],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[0]*e[4],t[5]*e[0]-t[3]*e[1]+t[1]*e[3]+t[0]*e[5],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]])(n,i)))];var n,i},Or=(e,t)=>{const[a,r]=e,n=((e,t)=>{const a=.5*t;return[1,0,0,0,a*e[4],a*e[5],0,0]})(((e,t)=>(e=>{const t=(e=>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:Ja(e,1/t)})([0,0,0,0,t[4]-e[4],t[5]-e[5],0,0]))(a,r),t);return[hr(n,a),hr(n,r)]},Fr=(e,t,a)=>{const r=e.width/2+t,n=e.height/2+t,i=a[2],o=a[3],l=a[1],s=r*r*i*i+n*n*o*o,c=s-l*l;if(0===s||c<=0)return[];const d=Math.sqrt(c),u=-r*r*i*l,p=-n*n*o*l;return[qa((u+r*n*o*d)/s,(p-r*n*i*d)/s),qa((u-r*n*o*d)/s,(p+r*n*i*d)/s)]},Rr=(e,t,a)=>{if(0===t)return 0===dr(a,e)?[e]:[];const r=a[2],n=a[3],i=a[1],[o,l]=sr(e),s=r*r+n*n,c=t*t*s-(r*o+n*l+i)**2;if(0===s||c<=0)return[];const d=Math.sqrt(c),u=o*n*n-l*r*n-r*i,p=l*r*r-o*r*n-n*i;return[qa((u+n*d)/s,(p-r*d)/s),qa((u-n*d)/s,(p+r*d)/s)]},Hr=(e,t,a,r)=>{const n=bp(e),i=[];let o=!1;for(const e of n)"move"===e.op?(o=!o,o&&i.push([e.data[0],e.data[1]])):"bcurveTo"===e.op?o&&(i.push([e.data[0],e.data[1]]),i.push([e.data[2],e.data[3]]),i.push([e.data[4],e.data[5]])):"lineTo"===e.op&&o&&i.push([e.data[0],e.data[1]]);if(i.length>=4){if("sharp"===r)return le(i,t,a);const e=W(i,10,5);return le(e,t,a)}return!1},Gr=(e,t,a,r)=>{const n=bp(e);let i=[0,0];return n.some(((n,o)=>{let{op:l,data:s}=n;if("move"===l)i=s;else{if("bcurveTo"===l){const e=[s[0],s[1]],n=[s[2],s[3]],o=[s[4],s[5]],l=i;return i=o,((e,t,a,r,n,i)=>{let[o,l]=n;const s=(n,i)=>Math.pow(1-n,3)*r[i]+3*n*Math.pow(1-n,2)*a[i]+3*Math.pow(n,2)*(1-n)*t[i]+e[i]*Math.pow(n,3);let c=0;for(;c<=1;){const e=s(c,0),t=s(c,1);if(Math.sqrt(Math.pow(e-o,2)+Math.pow(t-l,2))<i)return!0;c+=.01}return!1})(l,e,n,o,[t,a],r)}if("lineTo"===l)return Hr(e,t,a,"sharp");"qcurveTo"===l&&console.warn("qcurveTo is not implemented yet")}return!1}))};const Vr=(e,t,a)=>t>=e[0]&&t<=e[0]+e[2]&&a>=e[1]&&a<=e[1]+e[3],Ur=(e,t,a,r,n,i)=>e.reduce(((e,o)=>{if(e)return e;const l=((e,t,a,r,n,i)=>{if(!t.selectedElementIds[e.id])return!1;const o=Wa(e,n,i),{rotation:l}=o,s=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}(o,["rotation"]);if(l&&Vr(l,a,r))return"rotation";const c=Object.keys(s).filter((e=>{const t=s[e];return!!t&&Vr(t,a,r)}));return c.length>0&&c[0]})(o,t,a,r,n,i);return l?{element:o,transformHandleType:l}:null}),null),Kr=(e,t,a,r,n)=>{let[i,o,l,s]=e;const c=Ka([i,o,l,s],0,r,n,Ra);return Object.keys(c).find((e=>{const r=c[e];return r&&Vr(r,t,a)}))||!1},Wr=["ns","nesw","ew","nwse"],qr=e=>{const{element:t,transformHandleType:a}=e,r=t&&Math.sign(t.height)*Math.sign(t.width)==-1;let n=null;switch(a){case"n":case"s":n="ns";break;case"w":case"e":n="ew";break;case"nw":case"se":n=r?"nesw":"nwse";break;case"ne":case"sw":n=r?"nwse":"nesw";break;case"rotation":return"grab"}return n&&t&&(n=((e,t)=>{const a=Wr.indexOf(e);if(a>=0){const r=Math.round(t/(Math.PI/4));e=Wr[(a+r)%Wr.length]}return e})(n,t.angle)),n?"".concat(n,"-resize"):""},Zr=e=>{const t=e.map((e=>e[0])),a=e.map((e=>e[1]));return{width:Math.max(...t)-Math.min(...t),height:Math.max(...a)-Math.min(...a)}},Qr=(e,t,a)=>{const r=a.map((t=>t[e])),n=Math.max(...r),i=Math.min(...r),o=n-i,l=0===o?1:t/o;let s=1/0;const c=a.map((t=>t.map(((t,a)=>{if(a!==e)return t;const r=t*l;return s=Math.min(r,s),r}))));if(2===c.length)return c;const d=i-s;return c.map((t=>t.map(((t,a)=>a===e?t+d:t))))};class Yr{constructor(e,t){this.elementId=e.id,ku.mapElementToScene(this.elementId,t),Yr.normalizePoints(e),this.selectedPointsIndices=null,this.lastUncommittedPoint=null,this.isDragging=!1,this.pointerOffset={x:0,y:0},this.startBindingElement="keep",this.endBindingElement="keep",this.pointerDownState={prevSelectedPointsIndices:null,lastClickedPoint:-1}}static getElement(e){var t;return(null===(t=ku.getScene(e))||void 0===t?void 0:t.getNonDeletedElement(e))||null}static handleBoxSelection(e,t,a){var r;if(!t.editingLinearElement||"selection"!==(null===(r=t.draggingElement)||void 0===r?void 0:r.type))return!1;const{editingLinearElement:n}=t,{selectedPointsIndices:i,elementId:o}=n,l=Yr.getElement(o);if(!l)return!1;const[s,c,d,u]=gp(t.draggingElement),p=Yr.getPointsGlobalCoordinates(l).reduce(((t,a,r)=>((a[0]>=s&&a[0]<=d&&a[1]>=c&&a[1]<=u||e.shiftKey&&null!=i&&i.includes(r))&&t.push(r),t)),[]);a({editingLinearElement:Object.assign(Object.assign({},n),{selectedPointsIndices:p.length?p:null})})}static handlePointDragging(e,t,a,r,n){if(!e.editingLinearElement)return!1;const{editingLinearElement:i}=e,{selectedPointsIndices:o,elementId:l,isDragging:s}=i,c=Yr.getElement(l);if(!c)return!1;const d=c.points[i.pointerDownState.lastClickedPoint];if(o&&d){!1===s&&t({editingLinearElement:Object.assign(Object.assign({},i),{isDragging:!0})});const l=Yr.createPointAt(c,a-i.pointerOffset.x,r-i.pointerOffset.y,e.gridSize),u=l[0]-d[0],p=l[1]-d[1];if(Yr.movePoints(c,o.map((t=>({index:t,point:t===i.pointerDownState.lastClickedPoint?Yr.createPointAt(c,a-i.pointerOffset.x,r-i.pointerOffset.y,e.gridSize):[c.points[t][0]+u,c.points[t][1]+p],isDragging:t===i.pointerDownState.lastClickedPoint})))),ye(c)){const e=[];0===o[0]&&e.push(ot(Yr.getPointGlobalCoordinates(c,c.points[0])));const t=o[o.length-1];t===c.points.length-1&&e.push(ot(Yr.getPointGlobalCoordinates(c,c.points[t]))),e.length&&n(c,e)}return!0}return!1}static handlePointerUp(e,t,a){var r;const{elementId:n,selectedPointsIndices:i,isDragging:o,pointerDownState:l}=t,s=Yr.getElement(n);if(!s)return t;const c={};if(o&&i)for(const e of i)if(0===e||e===s.points.length-1){oe(s.points,a.zoom.value)&&Yr.movePoints(s,[{index:e,point:0===e?s.points[s.points.length-1]:s.points[0]}]);const t=Xr(a)?dn(ot(Yr.getPointAtIndexGlobalCoordinates(s,e)),ku.getScene(s)):null;c[0===e?"startBindingElement":"endBindingElement"]=t}return Object.assign(Object.assign(Object.assign({},t),c),{selectedPointsIndices:o||e.shiftKey?!o&&e.shiftKey&&null!==(r=l.prevSelectedPointsIndices)&&void 0!==r&&r.includes(l.lastClickedPoint)?i&&i.filter((e=>e!==l.lastClickedPoint)):i:null!=i&&i.includes(l.lastClickedPoint)?[l.lastClickedPoint]:i,isDragging:!1,pointerOffset:{x:0,y:0}})}static handlePointerDown(e,t,a,r,n){var i;const o={didAddPoint:!1,hitElement:null};if(!t.editingLinearElement)return o;const{elementId:l}=t.editingLinearElement,s=Yr.getElement(l);if(!s)return o;if(e.altKey)return null==t.editingLinearElement.lastUncommittedPoint&&wu(s,{points:[...s.points,Yr.createPointAt(s,n.x,n.y,t.gridSize)]}),r.resumeRecording(),a({editingLinearElement:Object.assign(Object.assign({},t.editingLinearElement),{pointerDownState:{prevSelectedPointsIndices:t.editingLinearElement.selectedPointsIndices,lastClickedPoint:-1},selectedPointsIndices:[s.points.length-1],lastUncommittedPoint:null,endBindingElement:dn(n,ku.getScene(s))})}),o.didAddPoint=!0,o;const c=Yr.getPointIndexUnderCursor(s,t.zoom,n.x,n.y);if(c>-1)o.hitElement=s;else{const{startBindingElement:e,endBindingElement:a}=t.editingLinearElement;Xr(t)&&ye(s)&&$r(s,e,a)}const[d,u,p,h]=gp(s),m=(d+p)/2,g=(u+h)/2,f=c>-1&&ae(s.x+s.points[c][0],s.y+s.points[c][1],m,g,s.angle),b=c>-1||e.shiftKey?e.shiftKey||null!==(i=t.editingLinearElement.selectedPointsIndices)&&void 0!==i&&i.includes(c)?Jr([...t.editingLinearElement.selectedPointsIndices||[],c]):[c]:null;return a({editingLinearElement:Object.assign(Object.assign({},t.editingLinearElement),{pointerDownState:{prevSelectedPointsIndices:t.editingLinearElement.selectedPointsIndices,lastClickedPoint:c},selectedPointsIndices:b,pointerOffset:f?{x:n.x-f[0],y:n.y-f[1]}:{x:0,y:0}})}),o}static handlePointerMove(e,t,a,r,n){const{elementId:i,lastUncommittedPoint:o}=r,l=Yr.getElement(i);if(!l)return r;const{points:s}=l,c=s[s.length-1];if(!e.altKey)return c===o&&Yr.deletePoints(l,[s.length-1]),Object.assign(Object.assign({},r),{lastUncommittedPoint:null});const d=Yr.createPointAt(l,t-r.pointerOffset.x,a-r.pointerOffset.y,n);return c===o?Yr.movePoints(l,[{index:l.points.length-1,point:d}]):Yr.addPoints(l,[{point:d}]),Object.assign(Object.assign({},r),{lastUncommittedPoint:l.points[l.points.length-1]})}static getPointGlobalCoordinates(e,t){const[a,r,n,i]=gp(e),o=(a+n)/2,l=(r+i)/2;let{x:s,y:c}=e;return[s,c]=ae(s+t[0],c+t[1],o,l,e.angle),[s,c]}static getPointsGlobalCoordinates(e){const[t,a,r,n]=gp(e),i=(t+r)/2,o=(a+n)/2;return e.points.map((t=>{let{x:a,y:r}=e;return[a,r]=ae(a+t[0],r+t[1],i,o,e.angle),[a,r]}))}static getPointAtIndexGlobalCoordinates(e,t){const a=t<0?e.points.length+t:t,[r,n,i,o]=gp(e),l=(r+i)/2,s=(n+o)/2,c=e.points[a],{x:d,y:u}=e;return ae(d+c[0],u+c[1],l,s,e.angle)}static pointFromAbsoluteCoords(e,t){const[a,r,n,i]=gp(e),o=(a+n)/2,l=(r+i)/2,[s,c]=ae(t[0],t[1],o,l,-e.angle);return[s-e.x,c-e.y]}static getPointIndexUnderCursor(e,t,a,r){const n=this.getPointsGlobalCoordinates(e);let i=n.length;for(;--i>-1;){const e=n[i];if(ie(a,r,e[0],e[1])*t.value<this.POINT_HANDLE_SIZE/2+1)return i}return-1}static createPointAt(e,t,a,r){const n=ue(t,a,r),[i,o,l,s]=gp(e),c=(i+l)/2,d=(o+s)/2,[u,p]=ae(n[0],n[1],c,d,-e.angle);return[u-e.x,p-e.y]}static getNormalizedPoints(e){const{points:t}=e,a=t[0][0],r=t[0][1];return{points:t.map(((e,t)=>[e[0]-a,e[1]-r])),x:e.x+a,y:e.y+r}}static normalizePoints(e){wu(e,Yr.getNormalizedPoints(e))}static duplicateSelectedPoints(e){if(!e.editingLinearElement)return!1;const{selectedPointsIndices:t,elementId:a}=e.editingLinearElement,r=Yr.getElement(a);if(!r||null===t)return!1;const{points:n}=r,i=[];let o=!1,l=-1;const s=n.reduce(((e,a,r)=>{if(++l,e.push(a),t.includes(r)){const t=n[r+1];t||(o=!0),e.push(t?[(a[0]+t[0])/2,(a[1]+t[1])/2]:[a[0],a[1]]),i.push(l+1),++l}return e}),[]);if(wu(r,{points:s}),o){const e=r.points[r.points.length-1];Yr.movePoints(r,[{index:r.points.length-1,point:[e[0]+30,e[1]+30]}])}return{appState:Object.assign(Object.assign({},e),{editingLinearElement:Object.assign(Object.assign({},e.editingLinearElement),{selectedPointsIndices:i})})}}static deletePoints(e,t){let a=0,r=0;if(t.includes(0)){const n=e.points.find(((e,a)=>!t.includes(a)));n&&(a=n[0],r=n[1])}const n=e.points.reduce(((e,n,i)=>(t.includes(i)||e.push(e.length?[n[0]-a,n[1]-r]:[0,0]),e)),[]);Yr._updatePoints(e,n,a,r)}static addPoints(e,t){const a=[...e.points,...t.map((e=>e.point))];Yr._updatePoints(e,a,0,0)}static movePoints(e,t,a){const{points:r}=e;let n=0,i=0;const o=t.find((e=>{let{index:t}=e;return 0===t}));o&&(n=o.point[0]-r[o.index][0],i=o.point[1]-r[o.index][1]);const l=r.map(((e,a)=>{const l=t.find((e=>e.index===a));if(l){if(o)return e;const t=l.point[0]-r[l.index][0],a=l.point[1]-r[l.index][1];return[e[0]+t,e[1]+a]}return n||i?[e[0]-n,e[1]-i]:e}));Yr._updatePoints(e,l,n,i,a)}static _updatePoints(e,t,a,r,n){const i=Ep(e,t,e.strokeSharpness||"round"),o=Ep(e,e.points,e.strokeSharpness||"round"),l=(i[0]+i[2])/2,s=(i[1]+i[3])/2,c=(o[0]+o[2])/2,d=(o[1]+o[3])/2,u=ae(a,r,c-l,d-s,e.angle);wu(e,Object.assign(Object.assign({},n),{points:t,x:e.x+u[0],y:e.y+u[1]}))}}Xt(Yr,"POINT_HANDLE_SIZE",20);const Jr=e=>{let t=[...new Set(e.filter((e=>null!==e&&-1!==e)))];return t=t.sort(((e,t)=>e-t)),t.length?t:null},Xr=e=>e.isBindingEnabled,$r=(e,t,a)=>{const r=new Set,n=new Set;en(e,t,a,"start",r,n),en(e,a,t,"end",r,n);const i=Array.from(n).filter((e=>!r.has(e)));ku.getScene(e).getNonDeletedElements(i).forEach((t=>{var a;wu(t,{boundElements:null===(a=t.boundElements)||void 0===a?void 0:a.filter((t=>"arrow"!==t.type||t.id!==e.id))})}))},en=(e,t,a,r,n,i)=>{if("keep"!==t)if(null!=t)null!=a&&("keep"===a?on(e,t,r):"start"!==r&&a.id===t.id)||(nn(e,t,r),n.add(t.id));else{const t=cn(e,r);null!=t&&i.add(t)}},tn=e=>{e.forEach((e=>{ye(e)?$r(e,bn(e,"start"),bn(e,"end")):we(e)&&an(e)}))},an=e=>{yn(e).forEach((t=>{let[a,r]=t;return $r(a,"end"===r?"keep":e,"start"===r?"keep":e)}))},rn=(e,t,a,r)=>{null!=t.startBoundElement&&nn(e,t.startBoundElement,"start");const n=dn(r,a);null==n||on(e,n,"end")||nn(e,n,"end")},nn=(e,t,a)=>{wu(e,{["start"===a?"startBinding":"endBinding"]:Object.assign({elementId:t.id},un(e,t,a))}),pt(t.boundElements||[]).has(e.id)||wu(t,{boundElements:(t.boundElements||[]).concat({id:e.id,type:"arrow"})})},on=(e,t,a)=>{const r=e["start"===a?"endBinding":"startBinding"];return ln(e,null==r?void 0:r.elementId,t)},ln=(e,t,a)=>t===a.id&&e.points.length<3,sn=e=>{e.forEach((e=>{ye(e)&&$r(e,null,null)}))},cn=(e,t)=>{const a="start"===t?"startBinding":"endBinding",r=e[a];return null==r?null:(wu(e,{[a]:null}),r.elementId)},dn=(e,t)=>((e,t)=>{let a=null;for(let r=e.length-1;r>=0;--r){const n=e[r];if(!n.isDeleted&&t(n)){a=n;break}}return a})(t.getElements(),(t=>we(t)&&br(t,e))),un=(e,t,a)=>{const r="start"===a?-1:1,n=-1===r?0:e.points.length-1,i=n-r,o=Yr.getPointAtIndexGlobalCoordinates(e,n),l=Yr.getPointAtIndexGlobalCoordinates(e,i);return{focus:Br(t,l,o),gap:Math.max(1,kr(t,o))}},pn=(e,t)=>{var a;const r=(null!==(a=e.boundElements)&&void 0!==a?a:[]).filter((e=>"arrow"===e.type));if(0===r.length)return;const{newSize:n,simultaneouslyUpdated:i}=null!=t?t:{},o=mn(i);ku.getScene(e).getNonDeletedElements(r.map((e=>e.id))).forEach((t=>{if(!be(t))return;const a=e;if(!hn(t,a))return;const r=fn(a,t.startBinding,n),i=fn(a,t.endBinding,n);o.has(t.id)?wu(t,{startBinding:r,endBinding:i}):(gn(t,"start",r,e),gn(t,"end",i,e))}))},hn=(e,t)=>{var a,r;return(null===(a=e.startBinding)||void 0===a?void 0:a.elementId)===t.id||(null===(r=e.endBinding)||void 0===r?void 0:r.elementId)===t.id},mn=e=>new Set((e||[]).map((e=>e.id))),gn=(e,t,a,r)=>{if(null==a||a.elementId!==r.id&&e.points.length>2)return;const n=ku.getScene(e).getElement(a.elementId);if(null==n)return;const i="start"===t?-1:1,o=-1===i?0:e.points.length-1,l=o-i,s=Yr.getPointAtIndexGlobalCoordinates(e,l),c=((e,t,a)=>{if(0===t){const t=gp(e),a=Mr(t);return sr(a)}const r=jr(e),n=hr(r,lr(a)),i=Qa(r);let o;switch(e.type){case"rectangle":case"image":case"text":case"diamond":o=((e,t,a)=>{const r=Math.abs(t),n=Math.sign(t),i=Dr(e,r);let o=0,l=null;return i.forEach((e=>{const t=n*ir(a,e)[1];t>o&&(o=t,l=e)})),l})(e,t,n);break;case"ellipse":o=((e,t,a)=>{const r=Math.abs(t),n=e.width*r/2,i=e.height*r/2,o=Math.sign(t),[l,s]=sr(a),c=0===s?1e-4:s,d=l**2*i**2+c**2*n**2,u=(-l*i**2+o*c*Math.sqrt(Math.max(0,d-n**2*i**2)))/d,p=(-u*l-1)/c,h=-(n**2)*u/(p**2*i**2+u**2*n**2);return qa(h,(-u*h-1)/p)})(e,t,n)}return sr(hr(i,o))})(n,a.focus,s);let d;if(0===a.gap)d=c;else{const e=function(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const n=jr(e),i=hr(n,lr(t)),o=hr(n,lr(a)),l=ir(i,o),s=Qa(n);return Pr(e,l,i,r).map((e=>sr(hr(s,e))))}(n,s,c,a.gap);d=0===e.length?c:e[0]}Yr.movePoints(e,[{index:o,point:Yr.pointFromAbsoluteCoords(e,d)}],{["start"===t?"startBinding":"endBinding"]:a})},fn=(e,t,a)=>{if(null==t||null==a)return t;const{gap:r,focus:n,elementId:i}=t,{width:o,height:l}=a,{width:s,height:c}=e;return{elementId:i,gap:Math.max(1,Math.min(vr(e,o,l),r*(o<l?o/s:l/c))),focus:n}},bn=(e,t)=>dn(vn(e,t),ku.getScene(e)),vn=(e,t)=>{const a="start"===t?0:-1;return ot(Yr.getPointAtIndexGlobalCoordinates(e,a))},yn=e=>ku.getScene(e).getElements().map((t=>{if(!ye(t))return null;const a=kn(t,"start",e),r=kn(t,"end",e);return a||r?[t,a&&r?"both":a?"start":"end",e]:null})).filter((e=>null!=e)),kn=(e,t,a)=>null==e["start"===t?"startBinding":"endBinding"]&&!on(e,a,t)&&br(a,vn(e,t)),wn=(e,t,a,r)=>{const n=new Set,i=new Set,o="duplicatesServeAsOld"===r;t.forEach((e=>{const{boundElements:t}=e;if(null!=t&&t.length>0&&(t.forEach((e=>{o&&!a.has(e.id)&&n.add(e.id)})),i.add(a.get(e.id))),ye(e)){if(null!=e.startBinding){const{elementId:t}=e.startBinding;o&&!a.has(t)&&i.add(t)}if(null!=e.endBinding){const{elementId:t}=e.endBinding;o&&!a.has(t)&&i.add(t)}null==e.startBinding&&null==e.endBinding||n.add(a.get(e.id))}})),e.filter((e=>{let{id:t}=e;return n.has(t)})).forEach((e=>{const{startBinding:t,endBinding:r}=e;wu(e,{startBinding:xn(t,a),endBinding:xn(r,a)})})),e.filter((e=>{let{id:t}=e;return i.has(t)})).forEach((e=>{const{boundElements:t}=e;null!=t&&t.length>0&&wu(e,{boundElements:t.map((e=>a.has(e.id)?{id:a.get(e.id),type:e.type}:e))})}))},xn=(e,t)=>{var a;if(null==e)return null;const{elementId:r,focus:n,gap:i}=e;return{focus:n,gap:i,elementId:null!==(a=t.get(r))&&void 0!==a?a:r}},Sn=(e,t)=>{const a=new Set(t.map((e=>e.id))),r=new Set;t.forEach((e=>{var t;we(e)&&(null===(t=e.boundElements)||void 0===t||t.forEach((e=>{a.has(e.id)||r.add(e.id)})))})),e.filter((e=>{let{id:t}=e;return r.has(t)})).forEach((e=>{const{startBinding:t,endBinding:r}=e;wu(e,{startBinding:_n(t,a),endBinding:_n(r,a)})}))},_n=(e,t)=>null==e||t.has(e.elementId)?null:e,An=e=>e>=2*Math.PI?e-2*Math.PI:e,En=(e,t,a)=>be(e)||ge(e)?{points:Qr(0,t,Qr(1,a,e.points))}:{},Cn=(e,t,a)=>{const r=e.fontSize*(t/e.width);if(r<1)return null;const n=Cu(e.text,qe({fontSize:r,fontFamily:e.fontFamily}),e.containerId?e.width:null);return{size:r,baseline:n.baseline+(a-n.height)}},Tn=(e,t,a,r,n,i,o)=>{const l=e.get(a.id),[s,c,d,u]=Ap(l,l.width,l.height),p=[s,c],h=[d,u],m=((e,t)=>[(e[0]+t[0])/2,(e[1]+t[1])/2])(p,h),g=re([i,o],m,-l.angle),[f,b,v,y]=Ap(a,a.width,a.height),k=v-f,w=y-b;let x=(h[0]-p[0])/k,S=(h[1]-p[1])/w,_={};const A=Fu(a);r.includes("e")&&(x=(g[0]-p[0])/k),r.includes("s")&&(S=(g[1]-p[1])/w),r.includes("w")&&(x=(h[0]-g[0])/k),r.includes("n")&&(S=(h[1]-g[1])/w);const E=l.width,C=l.height;let T=a.width*x,z=a.height*S;if(n&&(T=2*T-E,z=2*z-C),t){const e=Math.abs(T)/E,t=Math.abs(z)/C;if(1===r.length&&(z*=e,T*=t),2===r.length){const a=Math.max(e,t);T=E*a*Math.sign(T),z=C*a*Math.sign(z)}}if(A){const a=e.get(A.id);if(a&&(_={fontSize:a.fontSize,baseline:a.baseline}),t){const e=Cn(A,T-2*te.gK,z-2*te.gK);if(null===e)return;_={fontSize:e.size,baseline:e.baseline}}else{const e=Pu(qe(A)),t=Du(qe(A));T=Math.ceil(Math.max(T,e)),z=Math.ceil(Math.max(z,t))}}const[I,L,j,M]=Ap(l,T,z),B=j-I,P=M-L;let D=[...p];if(["n","w","nw"].includes(r)&&(D=[h[0]-Math.abs(B),h[1]-Math.abs(P)]),"ne"===r){const e=[p[0],h[1]];D=[e[0],e[1]-Math.abs(P)]}if("sw"===r){const e=[h[0],p[1]];D=[e[0]-Math.abs(B),e[1]]}t&&(["s","n"].includes(r)&&(D[0]=m[0]-B/2),["e","w"].includes(r)&&(D[1]=m[1]-P/2)),T<0&&(r.includes("e")&&(D[0]-=Math.abs(B)),r.includes("w")&&(D[0]+=Math.abs(B))),z<0&&(r.includes("s")&&(D[1]-=Math.abs(P)),r.includes("n")&&(D[1]+=Math.abs(P))),n&&(D[0]=m[0]-Math.abs(B)/2,D[1]=m[1]-Math.abs(P)/2);const N=l.angle,O=re(D,m,N),F=[D[0]+Math.abs(B)/2,D[1]+Math.abs(P)/2],R=re(F,m,N);D=re(O,R,-N);const H=En(l,T,z),G=[...D];G[0]+=l.x-I,G[1]+=l.y-L;const V=Object.assign({width:Math.abs(T),height:Math.abs(z),x:G[0],y:G[1]},H);"scale"in a&&"scale"in l&&wu(a,{scale:[(Math.sign(x)||l.scale[0])*l.scale[0],(Math.sign(S)||l.scale[1])*l.scale[1]]}),0!==V.width&&0!==V.height&&Number.isFinite(V.x)&&Number.isFinite(V.y)&&(pn(a,{newSize:{width:V.width,height:V.height}}),wu(a,V),A&&_&&wu(A,{fontSize:_.fontSize}),Eu(a,r))},zn=(e,t,a,r,n,i)=>{let o,l;if(e){const s=e&&t<a,c=e&&t>a,d=r.originalElements.get(n.id);o=s&&d?d.x:n.x+i.x,l=c&&d?d.y:n.y+i.y}else o=n.x+i.x,l=n.y+i.y;wu(n,{x:o,y:l})},In=(e,t,a,r,n,i,o,l,s,c,d)=>{s&&(d?l=o/d:(({width:o,height:l}=ea(t,o,i<r?-l:l)),l<0&&(l=-l)));let u=n<a?a-o:a,p=i<r?r-l:r;c&&(u=a-(o+=o)/2,p=r-(l+=l)/2),0!==o&&0!==l&&wu(e,{x:u,y:p,width:o,height:l})};function Ln(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(a=Ln(e[t]))&&(r&&(r+=" "),r+=a);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jn(){for(var e,t,a=0,r="";a<arguments.length;)(e=arguments[a++])&&(t=Ln(e))&&(r&&(r+=" "),r+=t);return r}var Mn=a(1337);const Bn=e=>{let{options:t,value:a,onChange:r,group:n}=e;return(0,Mn.jsx)("div",{className:"buttonList buttonListIcon",children:t.map((e=>(0,Mn.jsxs)("label",{className:jn({active:a===e.value}),title:e.text,children:[(0,Mn.jsx)("input",{type:"radio",name:n,onChange:()=>r(e.value),checked:a===e.value,"data-testid":e.testId}),e.icon]},e.text)))})};var Pn=a(7723);a(2816);const Dn=e=>{let{children:t,left:a,top:r,onCloseRequest:n,fitInViewport:i=!1,offsetLeft:o=0,offsetTop:l=0,viewportWidth:s=window.innerWidth,viewportHeight:c=window.innerHeight}=e;const d=(0,Pn.useRef)(null);return(0,Pn.useLayoutEffect)((()=>{if(i&&d.current){const e=d.current,{x:t,y:a,width:r,height:n}=e.getBoundingClientRect();t+r-o>s&&(e.style.left="".concat(s-r,"px")),a+n-l>c&&(e.style.top="".concat(c-n,"px"))}}),[i,s,c,o,l]),(0,Pn.useEffect)((()=>{if(n){const e=e=>{var t;null!==(t=d.current)&&void 0!==t&&t.contains(e.target)||(0,Te.unstable_batchedUpdates)((()=>n(e)))};return document.addEventListener("pointerdown",e,!1),()=>document.removeEventListener("pointerdown",e,!1)}}),[n]),(0,Mn.jsx)("div",{className:"popover",style:{top:r,left:a},ref:d,children:t})};a(5574);const Nn=(e,t)=>!Ce[t].includes(e),On=e=>{const t=(new Option).style;return t.color=e,!!t.color},Fn=[["1","2","3","4","5"],["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),Rn=e=>{let{colors:t,color:a,onChange:r,onClose:n,label:i,showInput:o=!0,type:l,elements:s}=e;const c=Pn.useRef(),d=Pn.useRef(),u=Pn.useRef(),p=Pn.useRef(),[h]=Pn.useState((()=>"canvasBackground"===l?[]:((e,t)=>{const a=[],r=e.filter((e=>!e.isDeleted)).sort(((e,t)=>t.updated-e.updated));let n=0;const i={elementBackground:"backgroundColor",elementStroke:"strokeColor"}[t];for(;n<r.length&&a.length<5;){const e=r[n];a.length<5&&Nn(e[i],t)&&!a.includes(e[i])&&a.push(e[i]),n++}return a})(s,l)));Pn.useEffect((()=>{d.current?d.current.focus():p.current?p.current.focus():u.current&&u.current.focus()}),[]);const m=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map(((e,n)=>{const i=e.replace("#",""),o=t?Fn[n+15]:Fn[n],l=t?i:At("colors.".concat(i));return(0,Mn.jsxs)("button",{className:"color-picker-swatch",onClick:t=>{t.currentTarget.focus(),r(e)},title:"".concat(l).concat(st(e)?"":" (".concat(e,")")," — ").concat(o.toUpperCase()),"aria-label":l,"aria-keyshortcuts":Fn[n],style:{color:e},ref:r=>{!t&&r&&0===n&&(c.current=r),r&&e===a&&(d.current=r)},onFocus:()=>{r(e)},children:[st(e)?(0,Mn.jsx)("div",{className:"color-picker-transparent"}):void 0,(0,Mn.jsx)("span",{className:"color-picker-keybinding",children:o})]},e)}))};return(0,Mn.jsxs)("div",{className:"color-picker color-picker-type-".concat(l),role:"dialog","aria-modal":"true","aria-label":At("labels.colorPicker"),onKeyDown:e=>{if(e.key===Oe.TAB){const{activeElement:r}=document;var t;if(e.shiftKey)r===c.current&&(null===(t=p.current)||void 0===t||t.focus(),e.preventDefault());else if(r===p.current){var a;null===(a=c.current)||void 0===a||a.focus(),e.preventDefault()}}else if(Fe(e.key)){const{activeElement:t}=document,a=St().rtl;let n=!1,i=Array.prototype.indexOf.call(u.current.querySelector(".color-picker-content--default").children,t);-1===i&&(i=Array.prototype.indexOf.call(u.current.querySelector(".color-picker-content--canvas-colors").children,t),-1!==i&&(n=!0));const l=n?u.current.querySelector(".color-picker-content--canvas-colors"):u.current.querySelector(".color-picker-content--default");if(-1!==i){var r;const t=l.children.length-(o?1:0),s=e.key===(a?Oe.ARROW_LEFT:Oe.ARROW_RIGHT)?(i+1)%t:e.key===(a?Oe.ARROW_RIGHT:Oe.ARROW_LEFT)?(t+i-1)%t:n||e.key!==Oe.ARROW_DOWN?n||e.key!==Oe.ARROW_UP?i:(t+i-5)%t:(i+5)%t;null===(r=l.children[s])||void 0===r||r.focus()}e.preventDefault()}else if(Fn.includes(e.key.toLowerCase())&&!Ke(e.target)){var i;const t=Fn.indexOf(e.key.toLowerCase()),a=t>=15,r=a?t-15:t;null===(i=(a?u.current.querySelector(".color-picker-content--canvas-colors"):u.current.querySelector(".color-picker-content--default")).children[r])||void 0===i||i.focus(),e.preventDefault()}else e.key!==Oe.ESCAPE&&e.key!==Oe.ENTER||(e.preventDefault(),n());e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},children:[(0,Mn.jsx)("div",{className:"color-picker-triangle color-picker-triangle-shadow"}),(0,Mn.jsx)("div",{className:"color-picker-triangle"}),(0,Mn.jsxs)("div",{className:"color-picker-content",ref:e=>{e&&(u.current=e)},tabIndex:0,children:[(0,Mn.jsx)("div",{className:"color-picker-content--default",children:m(t)}),!!h.length&&(0,Mn.jsxs)("div",{className:"color-picker-content--canvas",children:[(0,Mn.jsx)("span",{className:"color-picker-content--canvas-title",children:At("labels.canvasColors")}),(0,Mn.jsx)("div",{className:"color-picker-content--canvas-colors",children:m(h,!0)})]}),o&&(0,Mn.jsx)(Hn,{color:a,label:i,onChange:e=>{r(e)},ref:p})]})]})},Hn=Pn.forwardRef(((e,t)=>{let{color:a,onChange:r,label:n}=e;const[i,o]=Pn.useState(a),l=Pn.useRef(null);Pn.useEffect((()=>{o(a)}),[a]),Pn.useImperativeHandle(t,(()=>l.current));const s=Pn.useCallback((e=>{const t=e.toLowerCase(),a=(e=>st(e)||On(e)?e:On("#".concat(e))?"#".concat(e):null)(t);a&&r(a),o(t)}),[r]);return(0,Mn.jsxs)("label",{className:"color-input-container",children:[(0,Mn.jsx)("div",{className:"color-picker-hash",children:"#"}),(0,Mn.jsx)("input",{spellCheck:!1,className:"color-picker-input","aria-label":n,onChange:e=>s(e.target.value),value:(i||"").replace(/^#/,""),onBlur:()=>o(a),ref:l})]})})),Gn=e=>{let{type:t,color:a,onChange:r,label:n,isActive:i,setActive:o,elements:l,appState:s}=e;const c=Pn.useRef(null);return(0,Mn.jsxs)("div",{children:[(0,Mn.jsxs)("div",{className:"color-picker-control-container",children:[(0,Mn.jsx)("button",{className:"color-picker-label-swatch","aria-label":n,style:a?{"--swatch-color":a}:void 0,onClick:()=>o(!i),ref:c}),(0,Mn.jsx)(Hn,{color:a,label:n,onChange:e=>{r(e)}})]}),(0,Mn.jsx)(Pn.Suspense,{fallback:"",children:i?(0,Mn.jsx)(Dn,{onCloseRequest:e=>e.target!==c.current&&o(!1),children:(0,Mn.jsx)(Rn,{colors:Ce[t],color:a||null,onChange:e=>{r(e)},onClose:()=>{var e;o(!1),null===(e=c.current)||void 0===e||e.focus()},label:n,showInput:!1,type:t,elements:l})}):null})]})};function Vn(e){let{options:t,value:a,label:r,onChange:n,onClose:i}=e;const o=Pn.useRef(),l=Pn.useRef(),s=Pn.useRef(null);return Pn.useEffect((()=>{l.current?l.current.focus():s.current&&s.current.focus()}),[]),(0,Mn.jsx)("div",{className:"picker",role:"dialog","aria-modal":"true","aria-label":r,onKeyDown:e=>{const a=t.find((t=>t.keyBinding===e.key.toLowerCase()));if(e.metaKey||e.altKey||e.ctrlKey||!a)if(e.key===Oe.TAB)setTimeout((()=>{l.current!==document.activeElement&&i()}),0);else if(Fe(e.key)){const{activeElement:a}=document,r=St().rtl,n=Array.prototype.indexOf.call(s.current.children,a);if(-1!==n){const a=t.length;let i=n;switch(e.key){case r?Oe.ARROW_LEFT:Oe.ARROW_RIGHT:case Oe.ARROW_DOWN:i=(n+1)%a;break;case r?Oe.ARROW_RIGHT:Oe.ARROW_LEFT:case Oe.ARROW_UP:i=(a+n-1)%a}s.current.children[i].focus()}e.preventDefault()}else e.key!==Oe.ESCAPE&&e.key!==Oe.ENTER||(e.preventDefault(),i());else{const r=t.indexOf(a);s.current.children[r].focus(),e.preventDefault()}e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},children:(0,Mn.jsx)("div",{className:"picker-content",ref:s,children:t.map(((e,t)=>(0,Mn.jsxs)("button",{className:"picker-option",onClick:t=>{t.currentTarget.focus(),n(e.value)},title:"".concat(e.text," — ").concat(e.keyBinding.toUpperCase()),"aria-label":e.text||"none","aria-keyshortcuts":e.keyBinding,ref:r=>{r&&0===t&&(o.current=r),r&&e.value===a&&(l.current=r)},onFocus:()=>{n(e.value)},children:[e.icon,(0,Mn.jsx)("span",{className:"picker-keybinding",children:e.keyBinding})]},e.text)))})})}function Un(e){var t;let{value:a,label:r,options:n,onChange:i,group:o=""}=e;const[l,s]=Pn.useState(!1),c=Pn.useRef(null),d=St().rtl;return(0,Mn.jsxs)("label",{className:"picker-container",children:[(0,Mn.jsx)("button",{name:o,className:l?"active":"","aria-label":r,onClick:()=>s(!l),ref:c,children:null===(t=n.find((e=>e.value===a)))||void 0===t?void 0:t.icon}),(0,Mn.jsx)(Pn.Suspense,{fallback:"",children:l?(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(Dn,Object.assign(Object.assign({onCloseRequest:e=>e.target!==c.current&&s(!1)},d?{right:5.5}:{left:-5.5}),{children:(0,Mn.jsx)(Vn,{options:n,value:a,label:r,onChange:i,onClose:()=>{var e;s(!1),null===(e=c.current)||void 0===e||e.focus()}})})),(0,Mn.jsx)("div",{className:"picker-triangle"})]}):null})]})}a(7143);const Kn=e=>e===te.C6.LIGHT?Ae.orange[4]:Ae.orange[9],Wn=e=>e===te.C6.LIGHT?Ae.white:"#1e1e1e",qn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;const{width:a=512,height:r=a,mirror:n,style:i}="number"==typeof t?{width:t}:t;return(0,Mn.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(a," ").concat(r),className:jn({"rtl-mirror":n}),style:i,children:"string"==typeof e?(0,Mn.jsx)("path",{fill:"currentColor",d:e}):e})},Zn=qn((0,Mn.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),Qn=qn("M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z",{mirror:!0}),Yn=qn("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}),Jn=qn("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}),Xn=qn("M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z",{width:576,height:512,mirror:!0}),$n=qn("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}),ei=qn("M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z",{width:448,height:512}),ti=qn("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"),ai=qn("M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z",{width:576,height:512,mirror:!0}),ri=qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-187 44v-64 64z"}),(0,Mn.jsx)("path",{d:"M384 121.941V128H256V0h6.059c6.362 0 12.471 2.53 16.97 7.029l97.941 97.941a24.01 24.01 0 017.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"})]}),{width:576,height:512,mirror:!0}),ni=qn("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}),ii=qn("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}),oi=qn("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}),li=qn("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"),si=qn("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"),ci=qn("M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z",{mirror:!0}),di=qn("M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z",{mirror:!0}),ui=qn("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}),pi=(qn("M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",{width:24,height:24}),qn("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}),qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{stroke:"currentColor",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,Mn.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}),qn((0,Mn.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}),Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H16v8H8v4.444C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24,mirror:!0})}))),hi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M16 3.556C16 2.696 15.303 2 14.444 2H3.556C2.696 2 2 2.697 2 3.556v10.888C2 15.304 2.697 16 3.556 16h10.888c.86 0 1.556-.697 1.556-1.556V3.556z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M22 9.556C22 8.696 21.303 8 20.444 8H9.556C8.696 8 8 8.697 8 9.556v10.888C8 21.304 8.697 22 9.556 22h10.888c.86 0 1.556-.697 1.556-1.556V9.556z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"})]}),{width:24,mirror:!0})})),mi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M13 21a1 1 0 001 1h7a1 1 0 001-1v-7a1 1 0 00-1-1h-3v5h-5v3zM11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h3V6h5V3z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),gi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M18 7.333C18 6.597 17.403 6 16.667 6H7.333C6.597 6 6 6.597 6 7.333v9.334C6 17.403 6.597 18 7.333 18h9.334c.736 0 1.333-.597 1.333-1.333V7.333z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M11 3a1 1 0 00-1-1H3a1 1 0 00-1 1v7a1 1 0 001 1h8V3zM22 14a1 1 0 00-1-1h-7a1 1 0 00-1 1v7a1 1 0 001 1h8v-8z",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2"})]}),{width:24,mirror:!0})})),fi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M 2,5 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"M 6,7 C 5.446,7 5,7.446 5,8 v 9.999992 c 0,0.554 0.446,1 1,1 h 3.0000001 c 0.554,0 0.9999999,-0.446 0.9999999,-1 V 8 C 10,7.446 9.5540001,7 9.0000001,7 Z m 9,0 c -0.554,0 -1,0.446 -1,1 v 5.999992 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 V 8 C 19,7.446 18.554,7 18,7 Z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),bi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M 2,19 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"m 6,16.999992 c -0.554,0 -1,-0.446 -1,-1 V 6 C 5,5.446 5.446,5 6,5 H 9.0000001 C 9.5540001,5 10,5.446 10,6 v 9.999992 c 0,0.554 -0.4459999,1 -0.9999999,1 z m 9,0 c -0.554,0 -1,-0.446 -1,-1 V 10 c 0,-0.554 0.446,-1 1,-1 h 3 c 0.554,0 1,0.446 1,1 v 5.999992 c 0,0.554 -0.446,1 -1,1 z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24,mirror:!0})})),vi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M 5,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"m 7.000004,5.999996 c 0,-0.554 0.446,-1 1,-1 h 9.999992 c 0.554,0 1,0.446 1,1 v 3.0000001 c 0,0.554 -0.446,0.9999999 -1,0.9999999 H 8.000004 c -0.554,0 -1,-0.4459999 -1,-0.9999999 z m 0,9 c 0,-0.554 0.446,-1 1,-1 h 5.999992 c 0.554,0 1,0.446 1,1 v 3 c 0,0.554 -0.446,1 -1,1 H 8.000004 c -0.554,0 -1,-0.446 -1,-1 z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24})})),yi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M 19,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"m 16.999996,5.999996 c 0,-0.554 -0.446,-1 -1,-1 H 6.000004 c -0.554,0 -1,0.446 -1,1 v 3.0000001 c 0,0.554 0.446,0.9999999 1,0.9999999 h 9.999992 c 0.554,0 1,-0.4459999 1,-0.9999999 z m 0,9 c 0,-0.554 -0.446,-1 -1,-1 h -5.999992 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 5.999992 c 0.554,0 1,-0.446 1,-1 z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24})})),ki=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M19 5V19M5 5V19",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"M15 9C15.554 9 16 9.446 16 10V14C16 14.554 15.554 15 15 15H9C8.446 15 8 14.554 8 14V10C8 9.446 8.446 9 9 9H15Z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24})})),wi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M5 5L19 5M5 19H19",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeLinecap:"round"}),(0,Mn.jsx)("path",{d:"M15 9C15.554 9 16 9.446 16 10V14C16 14.554 15.554 15 15 15H9C8.446 15 8 14.554 8 14V10C8 9.446 8.446 9 9 9H15Z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"})]}),{width:24})})),xi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"m 5.000004,16.999996 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 v -10 c 0,-0.554 -0.446,-1 -1,-1 h -3 c -0.554,0 -1,0.446 -1,1 z m 9,-2 c 0,0.554 0.446,1 1,1 h 3 c 0.554,0 1,-0.446 1,-1 v -6 c 0,-0.554 -0.446,-1 -1,-1 h -3 c -0.554,0 -1,0.446 -1,1 z",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M 2,12 H 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeDasharray:"1, 2.8",strokeLinecap:"round"})]}),{width:24,mirror:!0})})),Si=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M 7 5 C 6.446 5 6 5.446 6 6 L 6 9 C 6 9.554 6.446 10 7 10 L 17 10 C 17.554 10 18 9.554 18 9 L 18 6 C 18 5.446 17.554 5 17 5 L 7 5 z M 9 14 C 8.446 14 8 14.446 8 15 L 8 18 C 8 18.554 8.446 19 9 19 L 15 19 C 15.554 19 16 18.554 16 18 L 16 15 C 16 14.446 15.554 14 15 14 L 9 14 z ",fill:Kn(t),stroke:Kn(t),strokeWidth:"2"}),(0,Mn.jsx)("path",{d:"M 12,2 V 22",fill:"var(--icon-fill-color)",stroke:"var(--icon-fill-color)",strokeWidth:"2",strokeDasharray:"1, 2.8",strokeLinecap:"round"})]}),{width:24})})),_i=qn("M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z",{width:640,height:512,mirror:!0}),Ai=(qn("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"),qn("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"),qn("M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",{width:352,height:512})),Ei=qn("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}),Ci=qn("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}),Ti=(qn("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}),qn("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})),zi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,Mn.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,Mn.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,Mn.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,Mn.jsxs)("g",{fill:Wn(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,Mn.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Ii=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,Mn.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,Mn.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,Mn.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,Mn.jsxs)("g",{fill:Wn(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,Mn.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,Mn.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Li=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.101 16H28.0934L36 8.95989V4H33.5779L20.101 16ZM30.5704 4L17.0935 16H9.10101L22.5779 4H30.5704ZM19.5704 4L6.09349 16H4V10.7475L11.5779 4H19.5704ZM8.57036 4H4V8.06952L8.57036 4ZM36 11.6378L31.101 16H36V11.6378ZM2 2V18H38V2H2Z",fill:"var(--icon-fill-color)"}),{width:40,height:20})})),ji=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)("g",{fill:"var(--icon-fill-color)",fillRule:"evenodd",clipRule:"evenodd",children:[(0,Mn.jsx)("path",{d:"M20.101 16H28.0934L36 8.95989V4H33.5779L20.101 16ZM30.5704 4L17.0935 16H9.10101L22.5779 4H30.5704ZM19.5704 4L6.09349 16H4V10.7475L11.5779 4H19.5704ZM8.57036 4H4V8.06952L8.57036 4ZM36 11.6378L31.101 16H36V11.6378ZM2 2V18H38V2H2Z"}),(0,Mn.jsx)("path",{d:"M14.0001 18L3.00006 4.00002L4.5727 2.76438L15.5727 16.7644L14.0001 18ZM25.0001 18L14.0001 4.00002L15.5727 2.76438L26.5727 16.7644L25.0001 18ZM36.0001 18L25.0001 4.00002L26.5727 2.76438L37.5727 16.7644L36.0001 18Z"})]}),{width:40,height:20})})),Mi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M2 2H38V18H2V2Z",fill:"var(--icon-fill-color)"}),{width:40,height:20})})),Bi=Pn.memo((e=>{let{theme:t,strokeWidth:a}=e;return qn((0,Mn.jsx)("path",{d:"M6 10H32",stroke:"var(--icon-fill-color)",strokeWidth:a,strokeLinecap:"round",fill:"none"}),{width:40,height:20})})),Pi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),Di=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2.5,strokeDasharray:"10, 8",fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),Ni=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M6 10H36",stroke:"var(--icon-fill-color)",strokeWidth:2.5,strokeDasharray:"2, 4.5",fill:"none",strokeLinecap:"round"}),{width:40,height:20})})),Oi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M3.00098 16.1691C6.28774 13.9744 19.6399 2.8905 22.7215 3.00082C25.8041 3.11113 19.1158 15.5488 21.4962 16.8309C23.8757 18.1131 34.4155 11.7148 37.0001 10.6919",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),Fi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M3 17C6.68158 14.8752 16.1296 9.09849 22.0648 6.54922C28 3.99995 22.2896 13.3209 25 14C27.7104 14.6791 36.3757 9.6471 36.3757 9.6471M6.40706 15C13 11.1918 20.0468 1.51045 23.0234 3.0052C26 4.49995 20.457 12.8659 22.7285 16.4329C25 20 36.3757 13 36.3757 13",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),Ri=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M3 15.6468C6.93692 13.5378 22.5544 2.81528 26.6206 3.00242C30.6877 3.18956 25.6708 15.3346 27.4009 16.7705C29.1309 18.2055 35.4001 12.4762 37 11.6177M3.97143 10.4917C6.61158 9.24563 16.3706 2.61886 19.8104 3.01724C23.2522 3.41472 22.0773 12.2013 24.6181 12.8783C27.1598 13.5536 33.3179 8.04068 35.0571 7.07244",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),Hi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M10 17L10 5L35 5",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),Gi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M10 17V15C10 8 13 5 21 5L33.5 5",stroke:"var(--icon-fill-color)",strokeWidth:2,strokeLinecap:"round",fill:"none"}),{width:40,height:20,mirror:!0})})),Vi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M6 10H34",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none"}),{width:40,height:20})})),Ui=Pn.memo((e=>{let{theme:t,flip:a=!1}=e;return qn((0,Mn.jsxs)("g",{transform:a?"translate(40, 0) scale(-1, 1)":"",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none",children:[(0,Mn.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,Mn.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})})),Ki=Pn.memo((e=>{let{theme:t,flip:a=!1}=e;return qn((0,Mn.jsxs)("g",{stroke:"var(--icon-fill-color)",fill:"var(--icon-fill-color)",transform:a?"translate(40, 0) scale(-1, 1)":"",children:[(0,Mn.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,Mn.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})})),Wi=Pn.memo((e=>{let{theme:t,flip:a=!1}=e;return qn((0,Mn.jsx)("g",{transform:a?"translate(40, 0) scale(-1, 1)":"",children:(0,Mn.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"var(--icon-fill-color)",strokeWidth:2,fill:"none"})}),{width:40,height:20})})),qi=Pn.memo((e=>{let{theme:t,flip:a=!1}=e;return qn((0,Mn.jsxs)("g",{stroke:"var(--icon-fill-color)",fill:"var(--icon-fill-color)",transform:a?"translate(40, 0) scale(-1, 1)":"",children:[(0,Mn.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,Mn.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})})),Zi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 0 69.092 L 0 55.03 A 124.24 124.24 0 0 0 4.706 57.02 Q 6.826 57.863 8.708 58.5 A 53.466 53.466 0 0 0 12.231 59.571 Q 17.236 60.889 21.387 60.889 A 20.909 20.909 0 0 0 24.265 60.704 Q 25.719 60.502 26.903 60.077 A 8.649 8.649 0 0 0 29.028 58.985 Q 31.689 57.08 31.689 53.321 Q 31.689 51.221 30.518 49.585 A 10.126 10.126 0 0 0 29.282 48.177 Q 28.352 47.287 27.075 46.436 A 23.719 23.719 0 0 0 25.752 45.627 Q 23.774 44.492 20.176 42.735 A 254.44 254.44 0 0 0 17.822 41.602 Q 11.503 38.631 8.236 35.888 A 19.742 19.742 0 0 1 8.008 35.694 A 22.18 22.18 0 0 1 2.783 29.102 Q 0.83 25.342 0.83 20.313 A 22.471 22.471 0 0 1 1.733 13.778 A 17.283 17.283 0 0 1 7.251 5.42 A 21.486 21.486 0 0 1 15.177 1.272 Q 18.361 0.338 22.166 0.09 A 43.573 43.573 0 0 1 25 0 A 42.399 42.399 0 0 1 34.349 1.01 A 39.075 39.075 0 0 1 35.62 1.319 A 67.407 67.407 0 0 1 42.108 3.382 A 83.357 83.357 0 0 1 46.191 5.03 L 41.309 16.797 Q 35.596 14.453 31.86 13.526 A 30.762 30.762 0 0 0 25.417 12.612 A 28.337 28.337 0 0 0 24.512 12.598 A 14.846 14.846 0 0 0 22.022 12.793 Q 19.498 13.224 17.92 14.6 Q 15.625 16.602 15.625 19.824 Q 15.625 21.826 16.553 23.316 Q 17.48 24.805 19.507 26.197 A 18.343 18.343 0 0 0 20.659 26.912 Q 22.596 28.035 26.516 29.953 A 299.99 299.99 0 0 0 29.102 31.201 Q 37.91 35.412 41.841 39.642 A 16.553 16.553 0 0 1 42.822 40.796 A 17.675 17.675 0 0 1 46.301 49.233 A 23.517 23.517 0 0 1 46.533 52.588 A 21.581 21.581 0 0 1 45.471 59.515 A 17.733 17.733 0 0 1 39.575 67.823 Q 33.745 72.486 24.094 73.243 A 49.683 49.683 0 0 1 20.215 73.389 A 51.712 51.712 0 0 1 9.448 72.315 A 40.672 40.672 0 0 1 0 69.092 Z"}),{width:47,height:77})})),Qi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 44.092 71.387 L 30.225 71.387 L 13.037 15.381 L 12.598 15.381 A 1505.093 1505.093 0 0 1 12.959 22.313 Q 13.426 31.715 13.508 36.4 A 102.991 102.991 0 0 1 13.525 38.184 L 13.525 71.387 L 0 71.387 L 0 0 L 20.605 0 L 37.5 54.59 L 37.793 54.59 L 55.713 0 L 76.318 0 L 76.318 71.387 L 62.207 71.387 L 62.207 37.598 Q 62.207 35.205 62.28 32.08 A 160.703 160.703 0 0 1 62.326 30.544 Q 62.452 26.754 62.866 17.168 A 5390.536 5390.536 0 0 1 62.939 15.479 L 62.5 15.479 L 44.092 71.387 Z"}),{width:77,height:75})})),Yi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 44.092 71.387 L 0 71.387 L 0 0 L 15.137 0 L 15.137 58.887 L 44.092 58.887 L 44.092 71.387 Z"}),{width:45,height:75})})),Ji=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 42.578 35.4 L 66.699 71.387 L 49.414 71.387 L 32.813 44.385 L 16.211 71.387 L 0 71.387 L 23.682 34.57 L 1.514 0 L 18.213 0 L 33.594 25.684 L 48.682 0 L 64.99 0 L 42.578 35.4 Z M 119.775 71.387 L 75.684 71.387 L 75.684 0 L 90.82 0 L 90.82 58.887 L 119.775 58.887 L 119.775 71.387 Z"}),{width:120,height:75})})),Xi=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"}),{width:448,height:512})})),$i=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 63.818 71.68 L 54.492 71.68 L 45.898 49.561 L 17.578 49.561 L 9.082 71.68 L 0 71.68 L 27.881 0 L 35.986 0 L 63.818 71.68 Z M 20.605 41.602 L 43.213 41.602 L 35.205 19.971 L 31.787 9.277 Q 30.322 15.137 28.711 19.971 L 20.605 41.602 Z"}),(0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M 68.994 71.68 L 52.686 71.68 L 47.51 54.688 L 21.484 54.688 L 16.309 71.68 L 0 71.68 L 25.195 0 L 43.701 0 L 68.994 71.68 Z M 25.293 41.992 L 43.896 41.992 A 27590.463 27590.463 0 0 1 42.2 36.532 Q 36.965 19.676 35.937 16.273 A 120.932 120.932 0 0 1 35.815 15.869 A 131.65 131.65 0 0 1 35.396 14.435 Q 34.951 12.879 34.675 11.741 A 34.866 34.866 0 0 1 34.521 11.084 A 141.762 141.762 0 0 1 33.706 14.075 Q 31.482 21.957 25.293 41.992 Z"})]}),{width:70,height:78})})),eo=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)("path",{fill:"var(--icon-fill-color)",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),{width:640,height:512})})),to=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M12.83 352h262.34A12.82 12.82 0 00288 339.17v-38.34A12.82 12.82 0 00275.17 288H12.83A12.82 12.82 0 000 300.83v38.34A12.82 12.82 0 0012.83 352zm0-256h262.34A12.82 12.82 0 00288 83.17V44.83A12.82 12.82 0 00275.17 32H12.83A12.82 12.82 0 000 44.83v38.34A12.82 12.82 0 0012.83 96zM432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),ao=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M432 160H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm0 256H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zM108.1 96h231.81A12.09 12.09 0 00352 83.9V44.09A12.09 12.09 0 00339.91 32H108.1A12.09 12.09 0 0096 44.09V83.9A12.1 12.1 0 00108.1 96zm231.81 256A12.09 12.09 0 00352 339.9v-39.81A12.09 12.09 0 00339.91 288H108.1A12.09 12.09 0 0096 300.09v39.81a12.1 12.1 0 0012.1 12.1z",fill:"var(--icon-fill-color)"}),{width:448,height:512})})),ro=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M16 224h416a16 16 0 0016-16v-32a16 16 0 00-16-16H16a16 16 0 00-16 16v32a16 16 0 0016 16zm416 192H16a16 16 0 00-16 16v32a16 16 0 0016 16h416a16 16 0 0016-16v-32a16 16 0 00-16-16zm3.17-384H172.83A12.82 12.82 0 00160 44.83v38.34A12.82 12.82 0 00172.83 96h262.34A12.82 12.82 0 00448 83.17V44.83A12.82 12.82 0 00435.17 32zm0 256H172.83A12.82 12.82 0 00160 300.83v38.34A12.82 12.82 0 00172.83 352h262.34A12.82 12.82 0 00448 339.17v-38.34A12.82 12.82 0 00435.17 288z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),no=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"m16,132l416,0c8.837,0 16,-7.163 16,-16l0,-40c0,-8.837 -7.163,-16 -16,-16l-416,0c-8.837,0 -16,7.163 -16,16l0,40c0,8.837 7.163,16 16,16zm0,160l416,0c8.837,0 16,-7.163 16,-16l0,-40c0,-8.837 -7.163,-16 -16,-16l-416,0c-8.837,0 -16,7.163 -16,16l0,40c0,8.837 7.163,16 16,16z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),io=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{d:"M16,292L432,292C440.837,292 448,284.837 448,276L448,236C448,227.163 440.837,220 432,220L16,220C7.163,220 0,227.163 0,236L0,276C0,284.837 7.163,292 16,292ZM16,452L432,452C440.837,452 448,444.837 448,436L448,396C448,387.163 440.837,380 432,380L16,380C7.163,380 0,387.163 0,396L0,436C0,444.837 7.163,452 16,452Z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),oo=Pn.memo((e=>{let{theme:t}=e;return qn((0,Mn.jsx)("path",{transform:"matrix(1,0,0,1,0,80)",d:"M16,132L432,132C440.837,132 448,124.837 448,116L448,76C448,67.163 440.837,60 432,60L16,60C7.163,60 0,67.163 0,76L0,116C0,124.837 7.163,132 16,132ZM16,292L432,292C440.837,292 448,284.837 448,276L448,236C448,227.163 440.837,220 432,220L16,220C7.163,220 0,227.163 0,236L0,276C0,284.837 7.163,292 16,292Z",fill:"var(--icon-fill-color)",strokeLinecap:"round"}),{width:448,height:512})})),lo=qn((0,Mn.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}),so=qn((0,Mn.jsx)("path",{fill:"currentColor",d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}),{width:640,height:512});let co=[];const uo=e=>(co=co.concat(e),e),po=function(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=pt(ca(e,t,r));return e.map((e=>{var r;return n.get(e.id)||e.id===(null===(r=t.editingElement)||void 0===r?void 0:r.id)?a(e):e}))},ho=function(e,t,a,r){var n,i;const o=t.editingElement,l=hu(e);return null!==(n=null!==(i=o&&a(o))&&void 0!==i?i:sa(l,t)?((e,t,a)=>{const r=Array.from(new Set(ca(e,t).map((e=>a(e)))));return 1===r.length?r[0]:null})(l,t,a):r)&&void 0!==n?n:null},mo=(e,t,a,r)=>{const n=new Set;return{elements:po(e,t,(e=>{if(me(e)){const o=a(e);n.add(o);let l=xu(e,{fontSize:o});return _u(l,Ru(e),t),r=e,l=_e(i=l)?i:wu(i,{x:"left"===r.textAlign?r.x:r.x+(r.width-i.width)/("center"===r.textAlign?2:1),y:r.y+(r.height-i.height)/2},!1),l}var r,i;return e}),!0),appState:Object.assign(Object.assign({},t),{currentItemFontSize:1===n.size?[...n][0]:null!=r?r:t.currentItemFontSize}),commitToHistory:!0}},go=(uo({name:"changeStrokeColor",perform:(e,t,a)=>Object.assign(Object.assign({},a.currentItemStrokeColor&&{elements:po(e,t,(e=>ma(e.type)?xu(e,{strokeColor:a.currentItemStrokeColor}):e),!0)}),{appState:Object.assign(Object.assign({},t),a),commitToHistory:!!a.currentItemStrokeColor}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("h3",{"aria-hidden":"true",children:At("labels.stroke")}),(0,Mn.jsx)(Gn,{type:"elementStroke",label:At("labels.stroke"),color:ho(t,a,(e=>e.strokeColor),a.currentItemStrokeColor),onChange:e=>r({currentItemStrokeColor:e}),isActive:"strokeColorPicker"===a.openPopup,setActive:e=>r({openPopup:e?"strokeColorPicker":null}),elements:t,appState:a})]})}}),uo({name:"changeBackgroundColor",perform:(e,t,a)=>Object.assign(Object.assign({},a.currentItemBackgroundColor&&{elements:po(e,t,(e=>xu(e,{backgroundColor:a.currentItemBackgroundColor})))}),{appState:Object.assign(Object.assign({},t),a),commitToHistory:!!a.currentItemBackgroundColor}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("h3",{"aria-hidden":"true",children:At("labels.background")}),(0,Mn.jsx)(Gn,{type:"elementBackground",label:At("labels.background"),color:ho(t,a,(e=>e.backgroundColor),a.currentItemBackgroundColor),onChange:e=>r({currentItemBackgroundColor:e}),isActive:"backgroundColorPicker"===a.openPopup,setActive:e=>r({openPopup:e?"backgroundColorPicker":null}),elements:t,appState:a})]})}}),uo({name:"changeFillStyle",perform:(e,t,a)=>({elements:po(e,t,(e=>xu(e,{fillStyle:a}))),appState:Object.assign(Object.assign({},t),{currentItemFillStyle:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.fill")}),(0,Mn.jsx)(Bn,{options:[{value:"hachure",text:At("labels.hachure"),icon:(0,Mn.jsx)(Li,{theme:a.theme})},{value:"cross-hatch",text:At("labels.crossHatch"),icon:(0,Mn.jsx)(ji,{theme:a.theme})},{value:"solid",text:At("labels.solid"),icon:(0,Mn.jsx)(Mi,{theme:a.theme})}],group:"fill",value:ho(t,a,(e=>e.fillStyle),a.currentItemFillStyle),onChange:e=>{r(e)}})]})}}),uo({name:"changeStrokeWidth",perform:(e,t,a)=>({elements:po(e,t,(e=>xu(e,{strokeWidth:a}))),appState:Object.assign(Object.assign({},t),{currentItemStrokeWidth:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.strokeWidth")}),(0,Mn.jsx)(Bn,{group:"stroke-width",options:[{value:1,text:At("labels.thin"),icon:(0,Mn.jsx)(Bi,{theme:a.theme,strokeWidth:2})},{value:2,text:At("labels.bold"),icon:(0,Mn.jsx)(Bi,{theme:a.theme,strokeWidth:6})},{value:4,text:At("labels.extraBold"),icon:(0,Mn.jsx)(Bi,{theme:a.theme,strokeWidth:10})}],value:ho(t,a,(e=>e.strokeWidth),a.currentItemStrokeWidth),onChange:e=>r(e)})]})}}),uo({name:"changeSloppiness",perform:(e,t,a)=>({elements:po(e,t,(e=>xu(e,{seed:ia(),roughness:a}))),appState:Object.assign(Object.assign({},t),{currentItemRoughness:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.sloppiness")}),(0,Mn.jsx)(Bn,{group:"sloppiness",options:[{value:0,text:At("labels.architect"),icon:(0,Mn.jsx)(Oi,{theme:a.theme})},{value:1,text:At("labels.artist"),icon:(0,Mn.jsx)(Fi,{theme:a.theme})},{value:2,text:At("labels.cartoonist"),icon:(0,Mn.jsx)(Ri,{theme:a.theme})}],value:ho(t,a,(e=>e.roughness),a.currentItemRoughness),onChange:e=>r(e)})]})}}),uo({name:"changeStrokeStyle",perform:(e,t,a)=>({elements:po(e,t,(e=>xu(e,{strokeStyle:a}))),appState:Object.assign(Object.assign({},t),{currentItemStrokeStyle:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.strokeStyle")}),(0,Mn.jsx)(Bn,{group:"strokeStyle",options:[{value:"solid",text:At("labels.strokeStyle_solid"),icon:(0,Mn.jsx)(Pi,{theme:a.theme})},{value:"dashed",text:At("labels.strokeStyle_dashed"),icon:(0,Mn.jsx)(Di,{theme:a.theme})},{value:"dotted",text:At("labels.strokeStyle_dotted"),icon:(0,Mn.jsx)(Ni,{theme:a.theme})}],value:ho(t,a,(e=>e.strokeStyle),a.currentItemStrokeStyle),onChange:e=>r(e)})]})}}),uo({name:"changeOpacity",perform:(e,t,a)=>({elements:po(e,t,(e=>xu(e,{opacity:a}))),appState:Object.assign(Object.assign({},t),{currentItemOpacity:a}),commitToHistory:!0}),PanelComponent:e=>{var t;let{elements:a,appState:r,updateData:n}=e;return(0,Mn.jsxs)("label",{className:"control-label",children:[At("labels.opacity"),(0,Mn.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:e=>n(+e.target.value),onWheel:e=>{e.stopPropagation();const t=+e.target.value;e.deltaY<0&&t<100?n(t+10):e.deltaY>0&&t>0&&n(t-10)},value:null!==(t=ho(a,r,(e=>e.opacity),r.currentItemOpacity))&&void 0!==t?t:void 0})]})}}),uo({name:"changeFontSize",perform:(e,t,a)=>mo(e,t,(()=>a),a),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.fontSize")}),(0,Mn.jsx)(Bn,{group:"font-size",options:[{value:16,text:At("labels.small"),icon:(0,Mn.jsx)(Zi,{theme:a.theme}),testId:"fontSize-small"},{value:20,text:At("labels.medium"),icon:(0,Mn.jsx)(Qi,{theme:a.theme}),testId:"fontSize-medium"},{value:28,text:At("labels.large"),icon:(0,Mn.jsx)(Yi,{theme:a.theme}),testId:"fontSize-large"},{value:36,text:At("labels.veryLarge"),icon:(0,Mn.jsx)(Ji,{theme:a.theme}),testId:"fontSize-veryLarge"}],value:ho(t,a,(e=>{if(me(e))return e.fontSize;const t=Fu(e);return t?t.fontSize:null}),a.currentItemFontSize||te.n5),onChange:e=>r(e)})]})}}),uo({name:"decreaseFontSize",perform:(e,t,a)=>mo(e,t,(e=>Math.round(1/1.1*e.fontSize))),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&(e.key===Oe.CHEVRON_LEFT||e.key===Oe.COMMA)})),fo=uo({name:"increaseFontSize",perform:(e,t,a)=>mo(e,t,(e=>Math.round(1.1*e.fontSize))),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&(e.key===Oe.CHEVRON_RIGHT||e.key===Oe.PERIOD)});uo({name:"changeFontFamily",perform:(e,t,a)=>({elements:po(e,t,(e=>{if(me(e)){const r=xu(e,{fontFamily:a});return _u(r,Ru(e),t),r}return e}),!0),appState:Object.assign(Object.assign({},t),{currentItemFontFamily:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;const n=[{value:te.ut.Virgil,text:At("labels.handDrawn"),icon:(0,Mn.jsx)(Xi,{theme:a.theme})},{value:te.ut.Helvetica,text:At("labels.normal"),icon:(0,Mn.jsx)($i,{theme:a.theme})},{value:te.ut.Cascadia,text:At("labels.code"),icon:(0,Mn.jsx)(eo,{theme:a.theme})}];return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.fontFamily")}),(0,Mn.jsx)(Bn,{group:"font-family",options:n,value:ho(t,a,(e=>{if(me(e))return e.fontFamily;const t=Fu(e);return t?t.fontFamily:null}),a.currentItemFontFamily||te.rk),onChange:e=>r(e)})]})}}),uo({name:"changeTextAlign",perform:(e,t,a)=>({elements:po(e,t,(e=>{if(me(e)){const r=xu(e,{textAlign:a});return _u(r,Ru(e),t),r}return e}),!0),appState:Object.assign(Object.assign({},t),{currentItemTextAlign:a}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.textAlign")}),(0,Mn.jsx)(Bn,{group:"text-align",options:[{value:"left",text:At("labels.left"),icon:(0,Mn.jsx)(to,{theme:a.theme})},{value:"center",text:At("labels.center"),icon:(0,Mn.jsx)(ao,{theme:a.theme})},{value:"right",text:At("labels.right"),icon:(0,Mn.jsx)(ro,{theme:a.theme})}],value:ho(t,a,(e=>{if(me(e))return e.textAlign;const t=Fu(e);return t?t.textAlign:null}),a.currentItemTextAlign),onChange:e=>r(e)})]})}}),uo({name:"changeVerticalAlign",perform:(e,t,a)=>({elements:po(e,t,(e=>{if(me(e)){const r=xu(e,{verticalAlign:a});return _u(r,Ru(e),t),r}return e}),!0),appState:Object.assign({},t),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)("fieldset",{children:(0,Mn.jsx)(Bn,{group:"text-align",options:[{value:te.oX.TOP,text:At("labels.alignTop"),icon:(0,Mn.jsx)(no,{theme:a.theme})},{value:te.oX.MIDDLE,text:At("labels.centerVertically"),icon:(0,Mn.jsx)(oo,{theme:a.theme})},{value:te.oX.BOTTOM,text:At("labels.alignBottom"),icon:(0,Mn.jsx)(io,{theme:a.theme})}],value:ho(t,a,(e=>{if(me(e)&&e.containerId)return e.verticalAlign;const t=Fu(e);return t?t.verticalAlign:null})),onChange:e=>r(e)})})}}),uo({name:"changeSharpness",perform:(e,t,a)=>{const r=da(hu(e),t),n=r.length?r.every((e=>!be(e))):!ve(t.elementType),i=r.length?r.every(be):ve(t.elementType);return{elements:po(e,t,(e=>xu(e,{strokeSharpness:a}))),appState:Object.assign(Object.assign({},t),{currentItemStrokeSharpness:n?a:t.currentItemStrokeSharpness,currentItemLinearStrokeSharpness:i?a:t.currentItemLinearStrokeSharpness}),commitToHistory:!0}},PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.edges")}),(0,Mn.jsx)(Bn,{group:"edges",options:[{value:"sharp",text:At("labels.sharp"),icon:(0,Mn.jsx)(Hi,{theme:a.theme})},{value:"round",text:At("labels.round"),icon:(0,Mn.jsx)(Gi,{theme:a.theme})}],value:ho(t,a,(e=>e.strokeSharpness),ba(a.elementType)&&(ve(a.elementType)?a.currentItemLinearStrokeSharpness:a.currentItemStrokeSharpness)||null),onChange:e=>r(e)})]})}}),uo({name:"changeArrowhead",perform:(e,t,a)=>({elements:po(e,t,(e=>{if(be(e)){const{position:t,type:r}=a;if("start"===t)return xu(e,{startArrowhead:r});if("end"===t)return xu(e,{endArrowhead:r})}return e})),appState:Object.assign(Object.assign({},t),{["start"===a.position?"currentItemStartArrowhead":"currentItemEndArrowhead"]:a.type}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;const n=St().rtl;return(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.arrowheads")}),(0,Mn.jsxs)("div",{className:"iconSelectList",children:[(0,Mn.jsx)(Un,{label:"arrowhead_start",options:[{value:null,text:At("labels.arrowhead_none"),icon:(0,Mn.jsx)(Vi,{theme:a.theme}),keyBinding:"q"},{value:"arrow",text:At("labels.arrowhead_arrow"),icon:(0,Mn.jsx)(Ui,{theme:a.theme,flip:!n}),keyBinding:"w"},{value:"bar",text:At("labels.arrowhead_bar"),icon:(0,Mn.jsx)(Wi,{theme:a.theme,flip:!n}),keyBinding:"e"},{value:"dot",text:At("labels.arrowhead_dot"),icon:(0,Mn.jsx)(Ki,{theme:a.theme,flip:!n}),keyBinding:"r"},{value:"triangle",text:At("labels.arrowhead_triangle"),icon:(0,Mn.jsx)(qi,{theme:a.theme,flip:!n}),keyBinding:"t"}],value:ho(t,a,(e=>be(e)&&ya(e.type)?e.startArrowhead:a.currentItemStartArrowhead),a.currentItemStartArrowhead),onChange:e=>r({position:"start",type:e})}),(0,Mn.jsx)(Un,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:At("labels.arrowhead_none"),keyBinding:"q",icon:(0,Mn.jsx)(Vi,{theme:a.theme})},{value:"arrow",text:At("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,Mn.jsx)(Ui,{theme:a.theme,flip:n})},{value:"bar",text:At("labels.arrowhead_bar"),keyBinding:"e",icon:(0,Mn.jsx)(Wi,{theme:a.theme,flip:n})},{value:"dot",text:At("labels.arrowhead_dot"),keyBinding:"r",icon:(0,Mn.jsx)(Ki,{theme:a.theme,flip:n})},{value:"triangle",text:At("labels.arrowhead_triangle"),icon:(0,Mn.jsx)(qi,{theme:a.theme,flip:n}),keyBinding:"t"}],value:ho(t,a,(e=>be(e)&&ya(e.type)?e.endArrowhead:a.currentItemEndArrowhead),a.currentItemEndArrowhead),onChange:e=>r({position:"end",type:e})})]})]})}}),a(9478);const bo=(e,t)=>{if(e.editingGroupId){const a=za(hu(t),e.editingGroupId);if(a.length)return Object.assign(Object.assign({},e),{selectedElementIds:{[a[0].id]:!0}})}return e},vo=uo({name:"deleteSelectedElements",perform:(e,t)=>{if(t.editingLinearElement){const{elementId:a,selectedPointsIndices:r,startBindingElement:n,endBindingElement:i}=t.editingLinearElement,o=Yr.getElement(a);if(!o)return!1;if(null==r||o.points.length<2){const a=e.filter((e=>e.id!==o.id)),r=bo(t,a);return{elements:a,appState:Object.assign(Object.assign({},r),{editingLinearElement:null}),commitToHistory:!1}}const l={startBindingElement:null!=r&&r.includes(0)?null:n,endBindingElement:null!=r&&r.includes(o.points.length-1)?null:i};return Yr.deletePoints(o,r),{elements:e,appState:Object.assign(Object.assign({},t),{editingLinearElement:Object.assign(Object.assign(Object.assign({},t.editingLinearElement),l),{selectedPointsIndices:(null==r?void 0:r[0])>0?[r[0]-1]:[0]})}),commitToHistory:!0}}let{elements:a,appState:r}=((e,t)=>({elements:e.map((e=>t.selectedElementIds[e.id]||_e(e)&&t.selectedElementIds[e.containerId]?xu(e,{isDeleted:!0}):e)),appState:Object.assign(Object.assign({},t),{selectedElementIds:{}})}))(e,t);return Sn(a,e.filter((e=>{let{id:a}=e;return t.selectedElementIds[a]}))),r=bo(r,a),{elements:a,appState:Object.assign(Object.assign({},r),{elementType:"selection",multiElement:null}),commitToHistory:sa(hu(e),t)}},contextItemLabel:"labels.delete",keyTest:e=>e.key===Oe.BACKSPACE||e.key===Oe.DELETE,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{type:"button",icon:ei,title:At("labels.delete"),"aria-label":At("labels.delete"),onClick:()=>r(null),visible:sa(hu(t),a)})}}),yo=(e,t)=>{let a=[],r=[],n=null,i=-1;const o=pt(ca(e,t,!0));for(;++i<e.length;)o.get(e[i].id)?(r.length&&(a=a.concat(r),r=[]),a.push(i),n=i+1):e[i].isDeleted&&n===i?(n=i+1,r.push(i)):r=[];return a},ko=(e,t,a)=>{if("containerId"in e&&e.containerId){if("left"!==a)return t.indexOf(e);{const a=ku.getScene(e).getElement(e.containerId);if(a)return t.indexOf(a)}}else{var r,n;const i=null===(r=e.boundElements)||void 0===r||null===(n=r.find((e=>"arrow"!==e.type)))||void 0===n?void 0:n.id;if(i){if("left"===a)return t.indexOf(e);const r=ku.getScene(e).getElement(i);if(r)return t.indexOf(r)}}},wo=(e,t)=>t.reduce(((t,a)=>{const r=e[a];return t[r.id]=r,t}),{}),xo=(e,t,a)=>{const r=yo(t,e),n=wo(t,r);let i=(e=>{let t=0;return e.reduce(((a,r,n)=>(n>0&&e[n-1]!==r-1&&(t=++t),(a[t]||(a[t]=[])).push(r),a)),[])})(r);return"right"===a&&(i=i.reverse()),i.forEach(((r,n)=>{const i=r[0],o=r[r.length-1],l="left"===a?i:o,s=((e,t,a,r)=>{const n=t[a],i=t=>!t.isDeleted&&(!e.editingGroupId||t.groupIds.includes(e.editingGroupId)),o="left"===r?function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;a<0&&(a=e.length+a),a=Math.min(e.length-1,Math.max(a,0));let r=a+1;for(;--r>-1;)if(t(e[r],r,e))return r;return-1}(t,i,Math.max(0,a-1)):function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;a<0&&(a=e.length+a),a=Math.min(e.length,Math.max(a,0));let r=a-1;for(;++r<e.length;)if(t(e[r],r,e))return r;return-1}(t,i,a+1),l=t[o];if(!l)return-1;if(e.editingGroupId){var s;if((null==n?void 0:n.groupIds.join(""))===(null==l?void 0:l.groupIds.join("")))return null!==(s=ko(l,t,r))&&void 0!==s?s:o;if(null==l||!l.groupIds.includes(e.editingGroupId))return-1}var c;if(!l.groupIds.length)return null!==(c=ko(l,t,r))&&void 0!==c?c:o;const d=e.editingGroupId?l.groupIds[l.groupIds.indexOf(e.editingGroupId)-1]:l.groupIds[l.groupIds.length-1],u=za(t,d);return u.length?"left"===r?t.indexOf(u[0]):t.indexOf(u[u.length-1]):o})(e,t,l,a);if(-1===s||l===s)return;const c="left"===a?t.slice(0,s):t.slice(0,i),d=t.slice(i,o+1),u="left"===a?t.slice(s,i):t.slice(o+1,s+1),p="left"===a?t.slice(o+1):t.slice(s+1);t="left"===a?[...c,...d,...u,...p]:[...c,...u,...d,...p]})),t.map((e=>n[e.id]?Su(e):e))},So=(e,t,a)=>{const r=yo(e,t),n=wo(e,r),i=[];let o,l;if("left"===a){if(t.editingGroupId){const a=za(e,t.editingGroupId);if(!a.length)return e;o=e.indexOf(a[0])}else o=0;l=r[r.length-1]}else{if(t.editingGroupId){const a=za(e,t.editingGroupId);if(!a.length)return e;l=e.indexOf(a[a.length-1])}else l=e.length-1;o=r[0]}for(let t=o;t<l+1;t++)r.includes(t)||i.push(e[t]);const s=Object.values(n).map((e=>Su(e))),c=e.slice(0,o),d=e.slice(l+1);return"left"===a?[...c,...s,...i,...d]:[...c,...i,...s,...d]},_o=(e,t)=>xo(t,e,"left"),Ao=(e,t)=>xo(t,e,"right"),Eo=(e,t)=>So(e,t,"left"),Co=(e,t)=>So(e,t,"right"),To=uo({name:"sendBackward",perform:(e,t)=>({elements:_o(e,t),appState:t,commitToHistory:!0}),contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:e=>e[Oe.CTRL_OR_CMD]&&!e.shiftKey&&e.code===Me,PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)("button",{type:"button",className:"zIndexButton",onClick:()=>t(null),title:"".concat(At("labels.sendBackward")," — ").concat(et("CtrlOrCmd+[")),children:(0,Mn.jsx)(hi,{theme:a.theme})})}}),zo=uo({name:"bringForward",perform:(e,t)=>({elements:Ao(e,t),appState:t,commitToHistory:!0}),contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:e=>e[Oe.CTRL_OR_CMD]&&!e.shiftKey&&e.code===je,PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)("button",{type:"button",className:"zIndexButton",onClick:()=>t(null),title:"".concat(At("labels.bringForward")," — ").concat(et("CtrlOrCmd+]")),children:(0,Mn.jsx)(pi,{theme:a.theme})})}}),Io=uo({name:"sendToBack",perform:(e,t)=>({elements:Eo(e,t),appState:t,commitToHistory:!0}),contextItemLabel:"labels.sendToBack",keyTest:e=>ze?e[Oe.CTRL_OR_CMD]&&e.altKey&&e.code===Me:e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.code===Me,PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)("button",{type:"button",className:"zIndexButton",onClick:()=>t(null),title:"".concat(At("labels.sendToBack")," — ").concat(et(ze?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")),children:(0,Mn.jsx)(gi,{theme:a.theme})})}}),Lo=uo({name:"bringToFront",perform:(e,t)=>({elements:Co(e,t),appState:t,commitToHistory:!0}),contextItemLabel:"labels.bringToFront",keyTest:e=>ze?e[Oe.CTRL_OR_CMD]&&e.altKey&&e.code===je:e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.code===je,PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)("button",{type:"button",className:"zIndexButton",onClick:e=>t(null),title:"".concat(At("labels.bringToFront")," — ").concat(et(ze?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")),children:(0,Mn.jsx)(mi,{theme:a.theme})})}}),jo=uo({name:"selectAll",perform:(e,t)=>!t.editingLinearElement&&{appState:Ca(Object.assign(Object.assign({},t),{editingGroupId:null,selectedElementIds:e.reduce(((e,t)=>(t.isDeleted||me(t)&&t.containerId||(e[t.id]=!0),e)),{})}),hu(e)),commitToHistory:!0},contextItemLabel:"labels.selectAll",keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.key===Oe.A}),Mo=uo({name:"duplicateSelection",perform:(e,t)=>{if(t.editingLinearElement){const a=Yr.duplicateSelectedPoints(t);return!!a&&{elements:e,appState:a.appState,commitToHistory:!0}}return Object.assign(Object.assign({},Bo(e,t)),{commitToHistory:!0})},contextItemLabel:"labels.duplicateSelection",keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.key===Oe.D,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{type:"button",icon:Ci,title:"".concat(At("labels.duplicateSelection")," — ").concat(et("CtrlOrCmd+D")),"aria-label":At("labels.duplicateSelection"),onClick:()=>r(null),visible:sa(hu(t),a)})}}),Bo=(e,t)=>{const a=new Map,r=[],n=[],i=new Map,o=e=>{const o=Oa(t.editingGroupId,a,e,{x:e.x+te.k/2,y:e.y+te.k/2});return i.set(e.id,o.id),n.push(e),r.push(o),o},l=[];let s=0;const c=pt(ca(e,t,!0));for(;s<e.length;){const a=e[s];if(c.get(a.id)){if(a.groupIds.length){const r=Aa(t,a);if(r){const t=za(e,r);l.push(...t,...t.map((e=>o(e)))),s+=t.length;continue}}l.push(a,o(a))}else l.push(a);s++}return Au(l,n,i),wn(l,n,i),{elements:l,appState:Ca(Object.assign(Object.assign({},t),{selectedGroupIds:{},selectedElementIds:r.reduce(((e,t)=>(_e(t)||(e[t.id]=!0),e)),{})}),hu(l))}},Po=uo({name:"finalize",perform:(e,t,a,r)=>{var n;let{canvas:i,focusContainer:o}=r;if(t.editingLinearElement){const{elementId:a,startBindingElement:r,endBindingElement:n}=t.editingLinearElement,i=Yr.getElement(a);if(i)return ye(i)&&$r(i,r,n),{elements:i.points.length<2||$t(i)?e.filter((e=>e.id!==i.id)):void 0,appState:Object.assign(Object.assign({},t),{editingLinearElement:null}),commitToHistory:!0}}let l=e;t.pendingImageElement&&wu(t.pendingImageElement,{isDeleted:!0},!1),window.document.activeElement instanceof HTMLElement&&o();const s=t.multiElement?t.multiElement:"freedraw"===(null===(n=t.editingElement)||void 0===n?void 0:n.type)?t.editingElement:null;if(s){if("freedraw"!==s.type&&"touch"!==t.lastPointerDownWith){const{points:e,lastCommittedPoint:t}=s;t&&e[e.length-1]===t||wu(s,{points:s.points.slice(0,-1)})}$t(s)&&(l=l.slice(0,-1));const e=oe(s.points,t.zoom.value);if(("line"===s.type||"freedraw"===s.type)&&e){const e=s.points,t=e[0];wu(s,{points:e.map(((a,r)=>r===e.length-1?[t[0],t[1]]:a))})}if(ye(s)&&!e&&s.points.length>1){const[e,a]=Yr.getPointAtIndexGlobalCoordinates(s,-1);rn(s,t,ku.getScene(s),{x:e,y:a})}t.elementLocked||"freedraw"===t.elementType||(t.selectedElementIds[s.id]=!0)}return(t.elementLocked||"freedraw"===t.elementType)&&s||Ye(i),{elements:l,appState:Object.assign(Object.assign({},t),{elementType:(t.elementLocked||"freedraw"===t.elementType)&&s?t.elementType:"selection",draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:s&&!t.elementLocked&&"freedraw"!==t.elementType?Object.assign(Object.assign({},t.selectedElementIds),{[s.id]:!0}):t.selectedElementIds,pendingImageElement:null}),commitToHistory:"freedraw"===t.elementType}},keyTest:(e,t)=>e.key===Oe.ESCAPE&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===Oe.ESCAPE||e.key===Oe.ENTER)&&null!==t.multiElement,PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsx)(ru,{type:"button",icon:li,title:At("buttons.done"),"aria-label":At("buttons.done"),onClick:a,visible:null!=t.multiElement})}});var Do,No;const Oo="undefined"!=typeof process&&null!==(Do=process.env)&&void 0!==Do&&Do.REACT_APP_GOOGLE_ANALYTICS_ID&&"undefined"!=typeof window&&window.gtag?(e,t,a,r)=>{window.gtag("event",t,{event_category:e,event_label:a,value:r})}:("undefined"!=typeof process&&null!==(No=process.env)&&void 0!==No&&No.JEST_WORKER_ID,(e,t,a,r)=>{});a(8518),a(803);const Fo=e=>{const{id:t}=Gd(),[a,r]=(0,Pn.useState)(e.value);return(0,Mn.jsxs)("div",{className:"ProjectName",children:[(0,Mn.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(e.label).concat(e.isNameEditable?"":":")}),e.isNameEditable?(0,Mn.jsx)("input",{type:"text",className:"TextInput",onBlur:t=>{(e=>{let t=e.parentElement;for(;t;){if(t.tabIndex>-1)return void t.focus();t=t.parentElement}})(t.target);const a=t.target.value;a!==e.value&&e.onChange(a)},onKeyDown:e=>{if("Enter"===e.key){if(e.preventDefault(),e.nativeEvent.isComposing||229===e.keyCode)return;e.currentTarget.blur()}},id:"".concat(t,"-filename"),value:a,onChange:e=>r(e.target.value)}):(0,Mn.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(t,"-filename"),children:e.value})]})};a(2680);const Ro=()=>{const e=document.querySelector(".excalidraw-tooltip");if(e)return e;const t=document.createElement("div");return document.body.appendChild(t),t.classList.add("excalidraw-tooltip"),t},Ho=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom";const r=e.getBoundingClientRect(),n=window.innerWidth,i=window.innerHeight,o=5;let l,s=t.left+t.width/2-r.width/2;s<0?s=o:s+r.width>=n&&(s=n-r.width-o),"bottom"===a?(l=t.top+t.height+o,l+r.height>=i&&(l=t.top-r.height-o)):(l=t.top-r.height-o,l<0&&(l=t.top+t.height+o)),Object.assign(e.style,{top:"".concat(l,"px"),left:"".concat(s,"px")})},Go=e=>{let{children:t,label:a,long:r=!1,style:n}=e;return(0,Pn.useEffect)((()=>()=>Ro().classList.remove("excalidraw-tooltip--visible")),[]),(0,Mn.jsx)("div",{className:"excalidraw-tooltip-wrapper",onPointerEnter:e=>((e,t,a,r)=>{t.classList.add("excalidraw-tooltip--visible"),t.style.minWidth=r?"50ch":"10ch",t.style.maxWidth=r?"50ch":"15ch",t.textContent=a;const n=e.getBoundingClientRect();Ho(t,n)})(e.currentTarget,Ro(),a,r),onPointerLeave:()=>Ro().classList.remove("excalidraw-tooltip--visible"),style:n,children:t})},Vo=e=>{const t=e.title||("dark"===e.value?At("buttons.lightMode"):At("buttons.darkMode"));return(0,Mn.jsx)(ru,{type:"icon",icon:e.value===te.C6.LIGHT?Uo.MOON:Uo.SUN,title:t,"aria-label":t,onClick:()=>e.onChange(e.value===te.C6.DARK?te.C6.LIGHT:te.C6.DARK),"data-testid":"toggle-dark-mode"})},Uo={SUN:(0,Mn.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,Mn.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,Mn.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,Mn.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"})})},Ko=12,Wo=256,qo="NOT_SPREADSHEET",Zo="VALID_SPREADSHEET",Qo=e=>{const t=/^[$€£¥₩]?([0-9,]+(\.[0-9]+)?)$/.exec(e);return t?parseFloat(t[1].replace(/,/g,"")):null},Yo=(e,t)=>e.slice(1).every((e=>null!==Qo(e[t]))),Jo=e=>{const t=e[0].length;if(t>2)return{type:qo,reason:"More than 2 columns"};if(1===t){if(!Yo(e,0))return{type:qo,reason:"Value is not numeric"};const t=null===Qo(e[0][0]),a=(t?e.slice(1):e).map((e=>Qo(e[0])));return a.length<2?{type:qo,reason:"Less than two rows"}:{type:Zo,spreadsheet:{title:t?e[0][0]:null,labels:null,values:a}}}const a=Yo(e,0)?0:1;if(!Yo(e,a))return{type:qo,reason:"Value is not numeric"};const r=(a+1)%2,n=null===Qo(e[0][a]),i=n?e.slice(1):e;return i.length<2?{type:qo,reason:"Less than 2 rows"}:{type:Zo,spreadsheet:{title:n?e[0][a]:null,labels:i.map((e=>e[r])),values:i.map((e=>Qo(e[a])))}}},Xo=Ce.elementBackground.slice(2,Ce.elementBackground.length),$o={fillStyle:"hachure",fontFamily:te.rk,fontSize:te.n5,opacity:100,roughness:1,strokeColor:Ce.elementStroke[0],strokeSharpness:"sharp",strokeStyle:"solid",strokeWidth:1,verticalAlign:te.oX.MIDDLE},el=e=>({chartWidth:44*e.values.length+Ko,chartHeight:280}),tl=(e,t,a,r,n)=>{var i;return(null===(i=e.labels)||void 0===i?void 0:i.map(((e,i)=>Pa(Object.assign(Object.assign({groupIds:[r],backgroundColor:n},$o),{text:e.length>8?"".concat(e.slice(0,5),"..."):e,x:t+44*i+24,y:a+6,width:32,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"})))))||[]},al=(e,t,a,r,n)=>{const i=Pa(Object.assign(Object.assign({groupIds:[r],backgroundColor:n},$o),{x:t-Ko,y:a-Ko,text:"0",textAlign:"right"}));return[i,Pa(Object.assign(Object.assign({groupIds:[r],backgroundColor:n},$o),{x:t-Ko,y:a-Wo-i.height/2,text:Math.max(...e.values).toLocaleString(),textAlign:"right"}))]},rl=(e,t,a,r,n)=>{const{chartWidth:i,chartHeight:o}=el(e);return[Da(Object.assign(Object.assign({backgroundColor:n,groupIds:[r]},$o),{type:"line",x:t,y:a,startArrowhead:null,endArrowhead:null,width:i,points:[[0,0],[i,0]]})),Da(Object.assign(Object.assign({backgroundColor:n,groupIds:[r]},$o),{type:"line",x:t,y:a,startArrowhead:null,endArrowhead:null,height:o,points:[[0,0],[0,-o]]})),Da(Object.assign(Object.assign({backgroundColor:n,groupIds:[r]},$o),{type:"line",x:t,y:a-Wo-Ko,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:i,opacity:50,points:[[0,0],[i,0]]}))]},nl=(e,t,a,r,n,i)=>{const{chartWidth:o,chartHeight:l}=el(e),s=e.title?Pa(Object.assign(Object.assign({backgroundColor:n,groupIds:[r]},$o),{text:e.title,x:t+o/2,y:a-Wo-24-te.n5,strokeSharpness:"sharp",strokeStyle:"solid",textAlign:"center"})):null,c=i?Ma(Object.assign(Object.assign({backgroundColor:n,groupIds:[r]},$o),{type:"rectangle",x:t,y:a-l,width:o,height:l,strokeColor:Ce.elementStroke[0],fillStyle:"solid",opacity:6})):null;return[...c?[c]:[],...s?[s]:[],...tl(e,t,a,r,n),...al(e,t,a,r,n),...rl(e,t,a,r,n)]};let il="",ol=!1;const ll="clipboard"in navigator&&"readText"in navigator.clipboard,sl="clipboard"in navigator&&"writeText"in navigator.clipboard,cl="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,dl=async(e,t,a)=>{const r=ca(e,t,!0),n={type:te.r8.excalidrawClipboard,elements:r,files:r.reduce(((e,t)=>(pe(t)&&a[t.fileId]&&(e[t.fileId]=a[t.fileId]),e)),{})},i=JSON.stringify(n);il=i;try{ol=!1,await hl(i)}catch(e){ol=!0,console.error(e)}},ul=()=>{if(!il)return{};try{return JSON.parse(il)}catch(e){return console.error(e),{}}},pl=async e=>{const t=await(async e=>{try{var t;return(e?null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain").trim():ll&&await navigator.clipboard.readText())||""}catch(e){return""}})(e);if(!t||t.includes(zp))return ul();const a=(e=>{const t=(e=>{let t=e.trim().split("\n").map((e=>e.trim().split("\t")));if(t.length&&2!==t[0].length&&(t=e.trim().split("\n").map((e=>e.trim().split(",")))),0===t.length)return{type:qo,reason:"No values"};const a=t[0].length;if(!t.every((e=>e.length===a)))return{type:qo,reason:"All rows don't have same number of columns"};const r=Jo(t);if(r.type!==Zo){const e=Jo((e=>{const t=[];for(let a=0;a<e[0].length;a++){const r=[];for(let t=0;t<e.length;t++)r.push(e[t][a]);t.push(r)}return t})(t));if(e.type===Zo)return e}return r})(e);return t.type===Zo?{spreadsheet:t.spreadsheet}:null})(t);if(a)return a;const r=ul();try{const e=JSON.parse(t);return n=e,[te.r8.excalidraw,te.r8.excalidrawClipboard].includes(null==n?void 0:n.type)&&Array.isArray(n.elements)?{elements:e.elements,files:e.files}:r}catch(e){return ol&&r.elements?r:{text:t}}var n},hl=async e=>{let t=!1;if(sl)try{await navigator.clipboard.writeText(e||""),t=!0}catch(e){console.error(e)}if(!t&&!ml(e||" "))throw new Error("couldn't copy")},ml=e=>{const t="rtl"===document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[t?"right":"left"]="-9999px";const r=window.pageYOffset||document.documentElement.scrollTop;a.style.top="".concat(r,"px"),a.style.fontSize="12pt",a.setAttribute("readonly",""),a.value=e,document.body.appendChild(a);let n=!1;try{a.select(),a.setSelectionRange(0,a.value.length),n=document.execCommand("copy")}catch(e){console.error(e)}return a.remove(),n};class gl extends Error{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Couldn't export canvas.",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CANVAS_ERROR";super(),this.name=t,this.message=e}}class fl extends DOMException{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Request Aborted","AbortError")}}var bl=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,a=e[Symbol.asyncIterator];return a?a.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=e[a]&&function(t){return new Promise((function(r,n){!function(e,t,a,r){Promise.resolve(r).then((function(t){e({value:t,done:a})}),t)}(r,n,(t=e[a](t)).done,t.value)}))}}},vl=Object.defineProperty,yl=(e,t)=>()=>(e&&(t=e(e=0)),t),kl=(e,t)=>{for(var a in(e=>{vl(e,"__esModule",{value:!0})})(e),t)vl(e,a,{get:t[a],enumerable:!0})},wl={};kl(wl,{default:()=>xl});var xl,Sl=yl((()=>{xl=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{}];return Array.isArray(e)||(e=[e]),new Promise(((t,a)=>{let r=document.createElement("input");r.type="file";let n=[...e.map((e=>e.mimeTypes||[])).join(),e.map((e=>e.extensions||[])).join()].join();r.multiple=e[0].multiple||!1,r.accept=n||"";let i=e=>{"function"==typeof o&&o(),t(e)},o=e[0].legacySetup&&e[0].legacySetup(i,(()=>o(a)),r);r.addEventListener("change",(()=>{i(r.multiple?Array.from(r.files):r.files[0])})),r.click()}))}})),_l={};kl(_l,{default:()=>El});var Al,El,Cl=yl((()=>{Al=async e=>{let t=await e.getFile();return t.handle=e,t},El=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{}];Array.isArray(e)||(e=[e]);let t=[];e.forEach(((e,a)=>{t[a]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map((r=>{t[a].accept[r]=e.extensions||[]})):t[a].accept["*/*"]=e.extensions||[]}));let a=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(a.map(Al));return e[0].multiple?r:r[0]}})),Tl={};kl(Tl,{default:()=>zl});var zl,Il=yl((()=>{zl=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[{}];return Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise(((t,a)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let n=e=>{"function"==typeof i&&i(),t(e)},i=e[0].legacySetup&&e[0].legacySetup(n,(()=>i(a)),r);r.addEventListener("change",(()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter((t=>t.webkitRelativePath.split("/").every((t=>!e[0].skipDirectory({name:t,kind:"directory"})))))):t=t.filter((e=>2===e.webkitRelativePath.split("/").length)),n(t)})),r.click()}))}})),Ll={};kl(Ll,{default:()=>Ml});var jl,Ml,Bl=yl((()=>{jl=async function(e,t){var a,r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.name,i=arguments.length>3?arguments[3]:void 0,o=[],l=[];try{for(var s,c=bl(e.values());!(s=await c.next()).done;){let a=s.value,r="".concat(n,"/").concat(a.name);"file"===a.kind?l.push(a.getFile().then((t=>(t.directoryHandle=e,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>r}))))):"directory"===a.kind&&t&&(!i||!i(a))&&o.push(jl(a,t,r,i))}}catch(e){a={error:e}}finally{try{s&&!s.done&&(r=c.return)&&await r.call(c)}finally{if(a)throw a.error}}return[...(await Promise.all(o)).flat(),...await Promise.all(l)]},Ml=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.recursive=e.recursive||!1;let t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return jl(t,e.recursive,void 0,e.skipDirectory)}})),Pl={};async function Dl(e,t){let a=e.getReader(),r=new ReadableStream({start:e=>async function t(){return a.read().then((a=>{let{done:r,value:n}=a;if(!r)return e.enqueue(n),t();e.close()}))}()}),n=new Response(r);return a.releaseLock(),new Blob([await n.blob()],{type:t})}kl(Pl,{default:()=>Nl});var Nl,Ol=yl((()=>{Nl=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(t)&&(t=t[0]);let a=document.createElement("a"),r=e;"body"in e&&(r=await Dl(e.body,e.headers.get("content-type"))),a.download=t.fileName||"Untitled",a.href=URL.createObjectURL(r);let n=()=>o(reject),i=()=>{"function"==typeof o&&o()},o=t.legacySetup&&t.legacySetup(i,n,a);return a.addEventListener("click",(()=>{setTimeout((()=>URL.revokeObjectURL(a.href)),3e4),i(null)})),a.click(),null}})),Fl={};kl(Fl,{default:()=>Rl});var Rl,Hl=yl((()=>{Rl=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[{}],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let n=[];if(t.forEach(((t,a)=>{n[a]={description:t.description||"",accept:{}},t.mimeTypes?(0===a&&(e.type?t.mimeTypes.push(e.type):e.headers&&e.headers.get("content-type")&&t.mimeTypes.push(e.headers.get("content-type"))),t.mimeTypes.map((e=>{n[a].accept[e]=t.extensions||[]}))):e.type&&(n[a].accept[e.type]=t.extensions||[])})),a)try{await a.getFile()}catch(e){if(a=null,r)throw e}let i=a||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:n,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),o=await i.createWritable();return"stream"in e?(await e.stream().pipeTo(o),i):"body"in e?(await e.body.pipeTo(o),i):(await o.write(blob),await o.close(),i)}})),Gl=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top.location}catch(e){return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),Vl=Gl?Promise.resolve().then((()=>(Cl(),_l))):Promise.resolve().then((()=>(Sl(),wl)));Gl?Promise.resolve().then((()=>(Bl(),Ll))):Promise.resolve().then((()=>(Il(),Tl)));var Ul=Gl?Promise.resolve().then((()=>(Hl(),Fl))):Promise.resolve().then((()=>(Ol(),Pl)));const Kl=e=>{var t,a,r;const n=null===(t=e.extensions)||void 0===t?void 0:t.reduce(((e,t)=>(e.push(te.LO[t]),e)),[]),i=null===(a=e.extensions)||void 0===a?void 0:a.reduce(((e,t)=>"jpg"===t?e.concat(".jpg",".jpeg"):e.concat(".".concat(t))),[]);return async function(){return(await Vl).default(...arguments)}({description:e.description,extensions:i,mimeTypes:n,multiple:null!==(r=e.multiple)&&void 0!==r&&r,legacySetup:(t,a,r)=>{const n=Ze(a,500),i=()=>{o(),document.addEventListener(te.Ks.KEYUP,n),document.addEventListener(te.Ks.POINTER_UP,n),n()},o=()=>{var a;if(null!==(a=r.files)&&void 0!==a&&a.length){const a=e.multiple?[...r.files]:r.files[0];t(a)}};requestAnimationFrame((()=>{window.addEventListener(te.Ks.FOCUS,i)}));const l=window.setInterval((()=>{o()}),500);return e=>{clearInterval(l),n.cancel(),window.removeEventListener(te.Ks.FOCUS,i),document.removeEventListener(te.Ks.KEYUP,n),document.removeEventListener(te.Ks.POINTER_UP,n),e&&(console.warn("Opening the file was canceled (legacy-fs)."),e(new fl))}}})},Wl=(e,t)=>async function(){return(await Ul).default(...arguments)}(e,{fileName:"".concat(t.name,".").concat(t.extension),description:t.description,extensions:[".".concat(t.extension)]},t.fileHandle),ql=(e,t)=>{const a={};for(const r of e)!r.isDeleted&&"fileId"in r&&r.fileId&&t[r.fileId]&&(a[r.fileId]=t[r.fileId]);return a},Zl=(e,t,a,r)=>{const n={type:te.r8.excalidraw,version:te.Kr.excalidraw,source:te.pb,elements:"local"===r?bu(e):fu(e),appState:"local"===r?It(t):Lt(t),files:"local"===r?ql(e,a):void 0};return JSON.stringify(n,null,2)},Ql=async(e,t,a)=>{const r=Zl(e,t,a,"local"),n=new Blob([r],{type:te.LO.excalidraw});return{fileHandle:await Wl(n,{name:t.name,extension:"excalidraw",description:"Excalidraw file",fileHandle:ns(t.fileHandle)?null:t.fileHandle})}},Yl={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0},Jl=(e,t)=>{var a,r,n,i,o,l,s,c,d,u,p,h,m,g;const f={type:t.type||e.type,version:e.version||1,versionNonce:null!==(a=e.versionNonce)&&void 0!==a?a:0,isDeleted:null!==(r=e.isDeleted)&&void 0!==r&&r,id:e.id||oa(),fillStyle:e.fillStyle||"hachure",strokeWidth:e.strokeWidth||1,strokeStyle:null!==(n=e.strokeStyle)&&void 0!==n?n:"solid",roughness:null!==(i=e.roughness)&&void 0!==i?i:1,opacity:null==e.opacity?100:e.opacity,angle:e.angle||0,x:null!==(o=null!==(l=t.x)&&void 0!==l?l:e.x)&&void 0!==o?o:0,y:null!==(s=null!==(c=t.y)&&void 0!==c?c:e.y)&&void 0!==s?s:0,strokeColor:e.strokeColor,backgroundColor:e.backgroundColor,width:e.width||0,height:e.height||0,seed:null!==(d=e.seed)&&void 0!==d?d:1,groupIds:null!==(u=e.groupIds)&&void 0!==u?u:[],strokeSharpness:null!==(p=e.strokeSharpness)&&void 0!==p?p:ve(e.type)?"round":"sharp",boundElements:e.boundElementIds?e.boundElementIds.map((e=>({type:"arrow",id:e}))):null!==(h=e.boundElements)&&void 0!==h?h:[],updated:null!==(m=e.updated)&&void 0!==m?m:ut(),link:null!==(g=e.link)&&void 0!==g?g:null};return Object.assign(Object.assign(Object.assign({},f),ta(f)),t)},Xl=(e,t)=>{const a=t?pt(t):null;return(e||[]).reduce(((e,t)=>{if("selection"!==t.type&&!$t(t)){let r=(e=>{var t,a,r;switch(e.type){case"text":let n=e.fontSize,i=e.fontFamily;if("font"in e){const[t,a]=e.font.split(" ");n=parseInt(t,10),r=a,i=Object.keys(te.ut).includes(r)?te.ut[r]:te.rk}return Jl(e,{fontSize:n,fontFamily:i,text:null!==(t=e.text)&&void 0!==t?t:"",baseline:e.baseline,textAlign:e.textAlign||te.Hg,verticalAlign:e.verticalAlign||te.hs,containerId:null!==(a=e.containerId)&&void 0!==a?a:null,originalText:e.originalText||e.text});case"freedraw":return Jl(e,{points:e.points,lastCommittedPoint:null,simulatePressure:e.simulatePressure,pressures:e.pressures});case"image":return Jl(e,{status:e.status||"pending",fileId:e.fileId,scale:e.scale||[1,1]});case"line":case"draw":case"arrow":{const{startArrowhead:t=null,endArrowhead:a=("arrow"===e.type?"arrow":null)}=e;let r=e.x,n=e.y,i=!Array.isArray(e.points)||e.points.length<2?[[0,0],[e.width,e.height]]:e.points;return 0===i[0][0]&&0===i[0][1]||({points:i,x:r,y:n}=Yr.getNormalizedPoints(e)),Jl(e,{type:"draw"===e.type?"line":e.type,startBinding:e.startBinding,endBinding:e.endBinding,lastCommittedPoint:null,startArrowhead:t,endArrowhead:a,points:i,x:r,y:n})}case"ellipse":case"rectangle":case"diamond":return Jl(e,{})}})(t);if(r){const n=null==a?void 0:a.get(t.id);n&&n.version>r.version&&(r=Su(r,n.version)),e.push(r)}}return e}),[])},$l=(e,t)=>{e=e||{};const a=Ct(),r={};for(const[n,i]of Object.entries(a)){const a=e[n],o=t?t[n]:void 0;r[n]=void 0!==a?a:void 0!==o?o:i}return Object.assign(Object.assign({},r),{elementType:Yl[r.elementType]?r.elementType:"selection",zoom:"number"==typeof e.zoom?{value:e.zoom}:e.zoom||a.zoom})},es=(e,t,a)=>({elements:Xl(null==e?void 0:e.elements,a),appState:$l(null==e?void 0:e.appState,t||null),files:(null==e?void 0:e.files)||{}}),ts=(e,t)=>{const a=[];for(const r of e)if(Array.isArray(r))a.push({status:t,elements:r,id:oa(),created:Date.now()});else{const e=r;a.push(Object.assign(Object.assign({},e),{id:e.id||oa(),status:e.status||t,created:e.created||Date.now()}))}return a},as=async e=>{let t;if(e.type===te.LO.png)try{return await(await Promise.resolve().then(a.bind(a,9506))).decodePngMetadata(e)}catch(e){throw"INVALID"===e.message?new DOMException(At("alerts.imageDoesNotContainScene"),"EncodingError"):new DOMException(At("alerts.cannotRestoreFromImage"),"EncodingError")}else if(t="text"in Blob?await e.text():await new Promise((t=>{const a=new FileReader;a.readAsText(e,"utf8"),a.onloadend=()=>{a.readyState===FileReader.DONE&&t(a.result)}})),e.type===te.LO.svg)try{return await(await Promise.resolve().then(a.bind(a,9506))).decodeSvgMetadata({svg:t})}catch(e){throw"INVALID"===e.message?new DOMException(At("alerts.imageDoesNotContainScene"),"EncodingError"):new DOMException(At("alerts.cannotRestoreFromImage"),"EncodingError")}return t},rs=e=>{var t;return e&&(null===(t=e.name.match(/\.(json|excalidraw|png|svg)$/))||void 0===t?void 0:t[1])||null},ns=e=>{const t=rs(e);return"png"===t||"svg"===t},is=e=>{const{type:t}=e||{};return!!t&&te.jo.includes(t)},os=async(e,t,a)=>{const r=await as(e);try{const n=JSON.parse(r);if(!(e=>(null==e?void 0:e.type)===te.r8.excalidraw&&(!e.elements||Array.isArray(e.elements)&&(!e.appState||"object"==typeof e.appState)))(n))throw new Error(At("alerts.couldNotLoadInvalidFile"));return es({elements:bu(n.elements||[]),appState:Object.assign(Object.assign({theme:null==t?void 0:t.theme,fileHandle:e.handle||null},It(n.appState||{})),t?pa(n.elements||[],t):{}),files:n.files},t,a)}catch(e){throw console.error(e.message),new Error(At("alerts.couldNotLoadInvalidFile"))}},ls=async e=>new Promise(((t,a)=>{try{e.toBlob((e=>{if(!e)return a(new gl(At("canvasError.canvasTooBig"),"CANVAS_POSSIBLY_TOO_BIG"));t(e)}))}catch(e){a(e)}})),ss=async e=>new Promise(((t,a)=>{const r=new FileReader;r.onload=()=>{const e=r.result;t(e)},r.onerror=e=>a(e),r.readAsDataURL(e)})),cs=async(e,t)=>{if(e.type===te.LO.svg)return e;const[r,n]=await Promise.all([Promise.resolve().then(a.t.bind(a,1852,23)).then((e=>e.default)),Promise.resolve().then(a.bind(a,100)).then((e=>e.default))]),i=n({pica:r({features:["js","wasm"]})});if(t.outputType){const{outputType:e}=t;i._create_blob=function(t){return this.pica.toBlob(t.out_canvas,e,.8).then((e=>(t.out_blob=e,t)))}}if(!is(e))throw new Error(At("errors.unsupportedFileType"));return new File([await i.toBlob(e,{max:t.maxWidthOrHeight})],e.name,{type:t.outputType||e.type})},ds=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new File([(new TextEncoder).encode(e)],t,{type:te.LO.svg})},us=async(e,t,r,n,i)=>{let{exportBackground:o,exportPadding:l=te.qy,viewBackgroundColor:s,name:c,fileHandle:d=null}=i;if(0===t.length)throw new Error(At("alerts.cannotExportEmptyCanvas"));if("svg"===e||"clipboard-svg"===e){const a=await Lp(t,{exportBackground:o,exportWithDarkMode:r.exportWithDarkMode,viewBackgroundColor:s,exportPadding:l,exportScale:r.exportScale,exportEmbedScene:r.exportEmbedScene&&"svg"===e},n);if("svg"===e)return await Wl(new Blob([a.outerHTML],{type:te.LO.svg}),{description:"Export to SVG",name:c,extension:"svg",fileHandle:d});if("clipboard-svg"===e)return void await hl(a.outerHTML)}const u=await Ip(t,r,n,{exportBackground:o,viewBackgroundColor:s,exportPadding:l});u.style.display="none",document.body.appendChild(u);let p=await ls(u);if(u.remove(),"png"===e)return r.exportEmbedScene&&(p=await(await Promise.resolve().then(a.bind(a,9506))).encodePngMetadata({blob:p,metadata:Zl(t,r,n,"local")})),await Wl(p,{description:"Export to PNG",name:c,extension:"png",fileHandle:d});if("clipboard"===e)try{await(async e=>{await navigator.clipboard.write([new window.ClipboardItem({[te.LO.png]:e})])})(p)}catch(e){if("CANVAS_POSSIBLY_TOO_BIG"===e.name)throw e;throw new Error(At("alerts.couldNotCopyToClipboard"))}};a(8055);const ps=e=>{let{children:t,checked:a,onChange:r,className:n}=e;return(0,Mn.jsxs)("div",{className:jn("Checkbox",n,{"is-checked":a}),onClick:e=>{r(!a,e),e.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,Mn.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":a,children:Zn}),(0,Mn.jsx)("div",{className:"Checkbox-label",children:t})]})};a(1575);const hs=e=>{let{children:t,gap:a,align:r,justifyContent:n,className:i,style:o}=e;return(0,Mn.jsx)("div",{className:jn("Stack Stack_horizontal",i),style:Object.assign({"--gap":a,alignItems:r,justifyContent:n},o),children:t})},ms=e=>{let{children:t,gap:a,align:r,justifyContent:n,className:i}=e;return(0,Mn.jsx)("div",{className:jn("Stack Stack_vertical",i),style:{"--gap":a,justifyItems:r,justifyContent:n},children:t})};a(982);const gs=e=>{let{fileName:t,onSave:a}=e;return(0,Mn.jsxs)(hs,{className:"ActiveFile",gap:1,align:"center",children:[(0,Mn.jsxs)("span",{className:"ActiveFile__fileName",children:[Ti,(0,Mn.jsx)("span",{children:t})]}),(0,Mn.jsx)(ru,{type:"icon",icon:Yn,title:At("buttons.save"),"aria-label":At("buttons.save"),onClick:a,"data-testid":"save-button"})]})},fs=(uo({name:"changeProjectName",perform:(e,t,a)=>(Oo("change","title"),{appState:Object.assign(Object.assign({},t),{name:a}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a,appProps:r}=e;return(0,Mn.jsx)(Fo,{label:At("labels.fileTitle"),value:t.name||"Unnamed",onChange:e=>a(e),isNameEditable:void 0===r.name&&!t.viewModeEnabled})}}),uo({name:"changeExportScale",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),{exportScale:a}),commitToHistory:!1}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;const n=hu(t),i=sa(n,a)?ca(n,a):n;return(0,Mn.jsx)(Mn.Fragment,{children:te.ZB.map((e=>{const[t,n]=Mp(i,te.qy,e),o="".concat(At("buttons.scale")," ").concat(e,"x (").concat(t,"x").concat(n,")");return(0,Mn.jsx)(ru,{size:"small",type:"radio",icon:"".concat(e,"x"),name:"export-canvas-scale",title:o,"aria-label":o,id:"export-canvas-scale",checked:e===a.exportScale,onChange:()=>r(e)},e)}))})}}),uo({name:"changeExportBackground",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),{exportBackground:a}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsx)(ps,{checked:t.exportBackground,onChange:e=>a(e),children:At("labels.withBackground")})}}),uo({name:"changeExportEmbedScene",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),{exportEmbedScene:a}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsxs)(ps,{checked:t.exportEmbedScene,onChange:e=>a(e),children:[At("labels.exportEmbedScene"),(0,Mn.jsx)(Go,{label:At("labels.exportEmbedScene_details"),long:!0,children:(0,Mn.jsx)("div",{className:"excalidraw-tooltip-icon",children:ui})})]})}}),uo({name:"saveToActiveFile",perform:async(e,t,a,r)=>{const n=!!t.fileHandle;try{const{fileHandle:a}=ns(t.fileHandle)?await(async(e,t,a)=>{const{exportBackground:r,viewBackgroundColor:n,name:i,fileHandle:o}=t,l=rs(o);if(!o||"png"!==(s=l)&&"svg"!==s)throw new Error("fileHandle should exist and should be of type svg or png when resaving");var s;return t=Object.assign(Object.assign({},t),{exportEmbedScene:!0}),await us(l,hu(e),t,a,{exportBackground:r,viewBackgroundColor:n,name:i,fileHandle:o}),{fileHandle:o}})(e,t,r.files):await Ql(e,t,r.files);return{commitToHistory:!1,appState:Object.assign(Object.assign({},t),{fileHandle:a,toastMessage:n?null!=a&&a.name?At("toast.fileSavedToFilename").replace("{filename}",'"'.concat(a.name,'"')):At("toast.fileSaved"):null})}}catch(e){return"AbortError"!==(null==e?void 0:e.name)?console.error(e):console.warn(e),{commitToHistory:!1}}},keyTest:e=>e.key===Oe.S&&e[Oe.CTRL_OR_CMD]&&!e.shiftKey,PanelComponent:e=>{var t;let{updateData:a,appState:r}=e;return(0,Mn.jsx)(gs,{onSave:()=>a(null),fileName:null===(t=r.fileHandle)||void 0===t?void 0:t.name})}}),uo({name:"saveFileToDisk",perform:async(e,t,a,r)=>{try{const{fileHandle:a}=await Ql(e,Object.assign(Object.assign({},t),{fileHandle:null}),r.files);return{commitToHistory:!1,appState:Object.assign(Object.assign({},t),{fileHandle:a})}}catch(e){return"AbortError"!==(null==e?void 0:e.name)?console.error(e):console.warn(e),{commitToHistory:!1}}},keyTest:e=>e.key===Oe.S&&e.shiftKey&&e[Oe.CTRL_OR_CMD],PanelComponent:e=>{let{updateData:t}=e;return(0,Mn.jsx)(ru,{type:"button",icon:Jn,title:At("buttons.saveAs"),"aria-label":At("buttons.saveAs"),showAriaLabel:Rd(),hidden:!Gl,onClick:()=>t(null),"data-testid":"save-as-button"})}}));uo({name:"loadScene",perform:async(e,t,a,r)=>{try{const{elements:a,appState:r,files:n}=await(async(e,t)=>{const a=await Kl({description:"Excalidraw files"});return os(a,e,t)})(t,e);return{elements:a,appState:r,files:n,commitToHistory:!0}}catch(a){return"AbortError"===(null==a?void 0:a.name)?(console.warn(a),!1):{elements:e,appState:Object.assign(Object.assign({},t),{errorMessage:a.message}),files:r.files,commitToHistory:!1}}},keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.key===Oe.O,PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)(ru,{type:"button",icon:Xn,title:At("buttons.load"),"aria-label":At("buttons.load"),showAriaLabel:Rd(),onClick:t,"data-testid":"load-button"})}}),uo({name:"exportWithDarkMode",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),{exportWithDarkMode:a}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:(0,Mn.jsx)(Vo,{value:t.exportWithDarkMode?te.C6.DARK:te.C6.LIGHT,onChange:e=>{a(e===te.C6.DARK)},title:At("labels.toggleExportColorScheme")})})}});let bs="{}";const vs=uo({name:"copyStyles",perform:(e,t)=>{const a=e.find((e=>t.selectedElementIds[e.id]));return a&&(bs=JSON.stringify(a)),{appState:Object.assign(Object.assign({},t),{toastMessage:At("toast.copyStyles")}),commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.altKey&&e.code===Pe}),ys=uo({name:"pasteStyles",perform:(e,t)=>{const a=JSON.parse(bs);return"text"!==(null==(r=a)?void 0:r.type)&&"diamond"!==(null==r?void 0:r.type)&&"rectangle"!==(null==r?void 0:r.type)&&"ellipse"!==(null==r?void 0:r.type)&&"arrow"!==(null==r?void 0:r.type)&&"freedraw"!==(null==r?void 0:r.type)&&"line"!==(null==r?void 0:r.type)?{elements:e,commitToHistory:!1}:{elements:e.map((e=>{if(t.selectedElementIds[e.id]){const r=xu(e,{backgroundColor:null==a?void 0:a.backgroundColor,strokeWidth:null==a?void 0:a.strokeWidth,strokeColor:null==a?void 0:a.strokeColor,strokeStyle:null==a?void 0:a.strokeStyle,fillStyle:null==a?void 0:a.fillStyle,opacity:null==a?void 0:a.opacity,roughness:null==a?void 0:a.roughness});return me(r)&&me(e)&&(wu(r,{fontSize:(null==a?void 0:a.fontSize)||te.n5,fontFamily:(null==a?void 0:a.fontFamily)||te.rk,textAlign:(null==a?void 0:a.textAlign)||te.Hg}),_u(r,Ru(r),t)),r}return e})),commitToHistory:!0};var r},contextItemLabel:"labels.pasteStyles",keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.altKey&&e.code===Ne}),ks=e=>(0,Mn.jsx)("button",{className:"help-icon",onClick:e.onClick,type:"button",title:"".concat(e.title," — ?"),"aria-label":e.title,children:ui}),ws=(uo({name:"toggleCanvasMenu",perform:(e,t)=>({appState:Object.assign(Object.assign({},t),{openMenu:"canvas"===t.openMenu?null:"canvas"}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsx)(ru,{type:"button",icon:si,"aria-label":At("buttons.menu"),onClick:a,selected:"canvas"===t.openMenu})}}),uo({name:"toggleEditMenu",perform:(e,t)=>({appState:Object.assign(Object.assign({},t),{openMenu:"shape"===t.openMenu?null:"shape"}),commitToHistory:!1}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{visible:uu(a,hu(t)),type:"button",icon:ti,"aria-label":At("buttons.edit"),onClick:r,selected:"shape"===a.openMenu})}}),uo({name:"toggleFullScreen",perform:()=>($e()||document.documentElement.requestFullscreen(),$e()&&document.exitFullscreen(),{commitToHistory:!1}),keyTest:e=>"KeyF"===e.code&&!e[Oe.CTRL_OR_CMD]}),uo({name:"toggleShortcuts",perform:(e,t,a,r)=>{let{focusContainer:n}=r;return t.showHelpDialog&&n(),{appState:Object.assign(Object.assign({},t),{showHelpDialog:!t.showHelpDialog}),commitToHistory:!1}},PanelComponent:e=>{let{updateData:t}=e;return(0,Mn.jsx)(ks,{title:At("helpDialog.title"),onClick:t})},keyTest:e=>e.key===Oe.QUESTION_MARK}),(e,t)=>{const a=ca(hu(e),t,!0);return a.length>=2&&!(e=>{if(e.length>=2){const t=e[0].groupIds;for(const a of t)if(e.reduce(((e,t)=>e&&Ta(t,a)),!0))return!0}return!1})(a)}),xs=uo({name:"group",perform:(e,t)=>{const a=ca(hu(e),t,!0);if(a.length<2)return{appState:t,elements:e,commitToHistory:!1};const r=Ea(t);if(1===r.length){const n=r[0],i=new Set(za(e,n).map((e=>e.id))),o=new Set(a.map((e=>e.id)));if(new Set([...Array.from(i),...Array.from(o)]).size===i.size)return{appState:t,elements:e,commitToHistory:!1}}const n=oa(),i=pt(a),o=e.map((e=>i.get(e.id)?xu(e,{groupIds:Ia(e.groupIds,n,t.editingGroupId)}):e)),l=za(o,n),s=l[l.length-1],c=o.lastIndexOf(s),d=o.slice(c+1),u=[...o.slice(0,c).filter((e=>!Ta(e,n))),...l,...d];return{appState:Sa(n,Object.assign(Object.assign({},t),{selectedGroupIds:{}}),hu(u)),elements:u,commitToHistory:!0}},contextItemLabel:"labels.group",contextItemPredicate:(e,t)=>ws(e,t),keyTest:e=>!e.shiftKey&&e[Oe.CTRL_OR_CMD]&&e.code===De,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!ws(t,a),type:"button",icon:(0,Mn.jsx)(zi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.group")," — ").concat(et("CtrlOrCmd+G")),"aria-label":At("labels.group"),visible:sa(hu(t),a)})}}),Ss=uo({name:"ungroup",perform:(e,t)=>{if(0===Ea(t).length)return{appState:t,elements:e,commitToHistory:!1};const a=[],r=e.map((e=>{_e(e)&&a.push(e.id);const r=(n=e.groupIds,i=t.selectedGroupIds,n.filter((e=>!i[e])));var n,i;return r.length===e.groupIds.length?e:xu(e,{groupIds:r})})),n=Ca(Object.assign(Object.assign({},t),{selectedGroupIds:{}}),hu(r));return a.forEach((e=>n.selectedElementIds[e]=!1)),{appState:n,elements:r,commitToHistory:!0}},keyTest:e=>e.shiftKey&&e[Oe.CTRL_OR_CMD]&&e.code===De,contextItemLabel:"labels.ungroup",contextItemPredicate:(e,t)=>Ea(t).length>0,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{type:"button",hidden:0===Ea(a).length,icon:(0,Mn.jsx)(Ii,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.ungroup")," — ").concat(et("CtrlOrCmd+Shift+G")),"aria-label":At("labels.ungroup"),visible:sa(hu(t),a)})}}),_s=(e,t)=>{if(null!=t&&t.collaborators){const a=t.collaborators.get(e);if(null!=a&&a.color)return a.color}const a=e.split("").reduce(((e,t)=>e+t.charCodeAt(0)),0),r=Ce.elementBackground.slice(1),n=Ce.elementStroke.slice(1);return{background:r[a%r.length],stroke:n[a%n.length]}};a(566);const As=e=>{let{children:t,color:a,border:r,onClick:n}=e;return(0,Mn.jsx)("div",{className:"Avatar",style:{background:a,border:"1px solid ".concat(r)},onClick:n,children:t})},Es=(uo({name:"goToCollaborator",perform:(e,t,a)=>{const r=a;return r?{appState:Object.assign(Object.assign(Object.assign({},t),ua({scenePoint:r,viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})),{openMenu:"canvas"===t.openMenu?null:t.openMenu}),commitToHistory:!1}:{appState:t,commitToHistory:!1}},PanelComponent:e=>{let{appState:t,updateData:a,data:r}=e;const n=null==r?void 0:r.id;if(!n)return null;const i=t.collaborators.get(n);if(!i)return null;const{background:o,stroke:l}=_s(n,t),s=(e=>{if(!e)return"?";const t=e.trim().split(" ");if(t.length<2)return t[0].substring(0,2).toUpperCase();const a=t[0],r=t[t.length-1];return(a[0]+r[0]).toUpperCase()})(i.username);return(0,Mn.jsx)(As,{color:o,border:l,onClick:()=>a(i.pointer),children:s})}}),uo({name:"addToLibrary",perform:(e,t,a,r)=>{const n=ca(hu(e),t,!0);return n.some((e=>"image"===e.type))?{commitToHistory:!1,appState:Object.assign(Object.assign({},t),{errorMessage:"Support for adding images to the library coming soon!"})}:r.library.loadLibrary().then((e=>r.library.saveLibrary([{id:oa(),status:"unpublished",elements:n.map(Na),created:Date.now()},...e]))).then((()=>({commitToHistory:!1,appState:Object.assign(Object.assign({},t),{toastMessage:At("toast.addedToLibrary")})}))).catch((e=>({commitToHistory:!1,appState:Object.assign(Object.assign({},t),{errorMessage:e.message})})))},contextItemLabel:"labels.addToLibrary"})),Cs=(e,t)=>ca(hu(e),t).length>1,Ts=(e,t,a)=>{const r=((e,t)=>{const a=La(e),r=Tp(e);return a.flatMap((e=>{const a=((e,t,a)=>{let{axis:r,position:n}=a;const i=Tp(e),[o,l]="x"===r?["minX","maxX"]:["minY","maxY"],s={x:0,y:0};return"start"===n?Object.assign(Object.assign({},s),{[r]:t[o]-i[o]}):"end"===n?Object.assign(Object.assign({},s),{[r]:t[l]-i[l]}):Object.assign(Object.assign({},s),{[r]:(t[o]+t[l])/2-(i[o]+i[l])/2})})(e,r,t);return e.map((e=>xu(e,{x:e.x+a.x,y:e.y+a.y})))}))})(ca(hu(e),t),a),n=pt(r);return e.map((e=>n.get(e.id)||e))},zs=(uo({name:"alignTop",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"start",axis:"y"}),commitToHistory:!0}),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.key===Oe.ARROW_UP,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(fi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.alignTop")," — ").concat(et("CtrlOrCmd+Shift+Up")),"aria-label":At("labels.alignTop"),visible:sa(hu(t),a)})}}),uo({name:"alignBottom",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"end",axis:"y"}),commitToHistory:!0}),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.key===Oe.ARROW_DOWN,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(bi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.alignBottom")," — ").concat(et("CtrlOrCmd+Shift+Down")),"aria-label":At("labels.alignBottom"),visible:sa(hu(t),a)})}}),uo({name:"alignLeft",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"start",axis:"x"}),commitToHistory:!0}),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.key===Oe.ARROW_LEFT,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(vi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.alignLeft")," — ").concat(et("CtrlOrCmd+Shift+Left")),"aria-label":At("labels.alignLeft"),visible:sa(hu(t),a)})}}),uo({name:"alignRight",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"end",axis:"x"}),commitToHistory:!0}),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.key===Oe.ARROW_RIGHT,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(yi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.alignRight")," — ").concat(et("CtrlOrCmd+Shift+Right")),"aria-label":At("labels.alignRight"),visible:sa(hu(t),a)})}}),uo({name:"alignVerticallyCentered",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"center",axis:"y"}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(xi,{theme:a.theme}),onClick:()=>r(null),title:At("labels.centerVertically"),"aria-label":At("labels.centerVertically"),visible:sa(hu(t),a)})}}),uo({name:"alignHorizontallyCentered",perform:(e,t)=>({appState:t,elements:Ts(e,t,{position:"center",axis:"x"}),commitToHistory:!0}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!Cs(t,a),type:"button",icon:(0,Mn.jsx)(Si,{theme:a.theme}),onClick:()=>r(null),title:At("labels.centerHorizontally"),"aria-label":At("labels.centerHorizontally"),visible:sa(hu(t),a)})}}),(e,t)=>ca(hu(e),t).length>1),Is=(e,t,a)=>{const r=((e,t)=>{const[a,r,n,i]="x"===t.axis?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],o=Tp(e),l=La(e).map((e=>[e,Tp(e)])).sort(((e,t)=>e[1][r]-t[1][r]));let s=0;for(const e of l)s+=e[1][i];const c=(o[i]-s)/(l.length-1);if(c<0){const e=l.findIndex((e=>e[1][a]===o[a])),i=l.findIndex((e=>e[1][n]===o[n])),s=(l[i][1][r]-l[e][1][r])/(l.length-1);let c=l[e][1][r];return l.flatMap(((a,n)=>{let[o,l]=a;const d={x:0,y:0};return n!==e&&n!==i&&(c+=s,d[t.axis]=c-l[r]),o.map((e=>xu(e,{x:e.x+d.x,y:e.y+d.y})))}))}let d=o[a];return l.flatMap((e=>{let[r,n]=e;const o={x:0,y:0};return o[t.axis]=d-n[a],d+=c,d+=n[i],r.map((e=>xu(e,{x:e.x+o.x,y:e.y+o.y})))}))})(ca(hu(e),t),a),n=pt(r);return e.map((e=>n.get(e.id)||e))},Ls=(uo({name:"distributeHorizontally",perform:(e,t)=>({appState:t,elements:Is(e,t,{space:"between",axis:"x"}),commitToHistory:!0}),keyTest:e=>e.altKey&&"KeyH"===e.code,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!zs(t,a),type:"button",icon:(0,Mn.jsx)(ki,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.distributeHorizontally")," — ").concat(et("Alt+H")),"aria-label":At("labels.distributeHorizontally"),visible:sa(hu(t),a)})}}),uo({name:"distributeVertically",perform:(e,t)=>({appState:t,elements:Is(e,t,{space:"between",axis:"y"}),commitToHistory:!0}),keyTest:e=>e.altKey&&e.code===Ne,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)(ru,{hidden:!zs(t,a),type:"button",icon:(0,Mn.jsx)(wi,{theme:a.theme}),onClick:()=>r(null),title:"".concat(At("labels.distributeVertically")," — ").concat(et("Alt+V")),"aria-label":At("labels.distributeVertically"),visible:sa(hu(t),a)})}}),uo({name:"flipHorizontal",perform:(e,t)=>({elements:Ms(e,t,"horizontal"),appState:t,commitToHistory:!0}),keyTest:e=>e.shiftKey&&"KeyH"===e.code,contextItemLabel:"labels.flipHorizontal",contextItemPredicate:(e,t)=>((e,t)=>{const a=ca(hu(e),t);return 1===a.length&&"text"!==a[0].type})(e,t)})),js=uo({name:"flipVertical",perform:(e,t)=>({elements:Ms(e,t,"vertical"),appState:t,commitToHistory:!0}),keyTest:e=>e.shiftKey&&"KeyV"===e.code,contextItemLabel:"labels.flipVertical",contextItemPredicate:(e,t)=>((e,t)=>1===ca(hu(e),t).length)(e,t)}),Ms=(e,t,a)=>{const r=ca(hu(e),t);if(r.length>1)return e;const n=Bs(r,t,a),i=pt(n);return e.map((e=>i.get(e.id)||e))},Bs=(e,t,a)=>(e.forEach((e=>{Ps(e,t),"vertical"===a&&Ds(e,Math.PI)})),e),Ps=(e,t)=>{const a=e.x,r=e.y,n=e.width,i=e.height,o=An(e.angle);let l=0;(be(e)||ge(e))&&(l=2*e.points.reduce(((e,t)=>Math.max(e,t[0])),0)-e.width),wu(e,{angle:An(0)});const s=Wa(e,t.zoom);let c=!0,d=0,u=s.nw;if(!u&&(c=!1,u=s.ne,!u))return void wu(e,{angle:o});if(be(e)){for(let t=1;t<e.points.length;t++)Yr.movePoints(e,[{index:t,point:[-e.points[t][0],e.points[t][1]]}]);Yr.normalizePoints(e)}else d=c?e.x+2*n:e.x-2*n,Tn((new Map).set(e.id,e),!0,e,c?"nw":"ne",!1,d,u[1]),wu(e,{width:n,height:i});let p=An(2*Math.PI-o);p<0&&(p=An(p+2*Math.PI)),wu(e,{angle:p}),wu(e,{x:a+l,y:r}),pn(e)},Ds=(e,t)=>{const a=e.x,r=e.y;let n=An(e.angle+t);n<0&&(n=An(2*Math.PI+n)),wu(e,{angle:n}),wu(e,{x:a,y:r})},Ns=uo({name:"copy",perform:(e,t,a,r)=>(dl(hu(e),t,r.files),{commitToHistory:!1}),contextItemLabel:"labels.copy",keyTest:void 0}),Os=uo({name:"cut",perform:(e,t,a,r)=>(Ns.perform(e,t,a,r),vo.perform(e,t)),contextItemLabel:"labels.cut",keyTest:e=>e[Oe.CTRL_OR_CMD]&&"KeyX"===e.code}),Fs=uo({name:"copyAsSvg",perform:async(e,t,a,r)=>{if(!r.canvas)return{commitToHistory:!1};const n=ca(hu(e),t,!0);try{return await us("clipboard-svg",n.length?n:hu(e),t,r.files,t),{commitToHistory:!1}}catch(e){return console.error(e),{appState:Object.assign(Object.assign({},t),{errorMessage:e.message}),commitToHistory:!1}}},contextItemLabel:"labels.copyAsSvg"}),Rs=uo({name:"copyAsPng",perform:async(e,t,a,r)=>{if(!r.canvas)return{commitToHistory:!1};const n=ca(hu(e),t,!0);try{return await us("clipboard",n.length?n:hu(e),t,r.files,t),{appState:Object.assign(Object.assign({},t),{toastMessage:At("toast.copyToClipboardAsPng",{exportSelection:n.length?At("toast.selection"):At("toast.canvas"),exportColorScheme:t.exportWithDarkMode?At("buttons.darkMode"):At("buttons.lightMode")})}),commitToHistory:!1}}catch(e){return console.error(e),{appState:Object.assign(Object.assign({},t),{errorMessage:e.message}),commitToHistory:!1}}},contextItemLabel:"labels.copyAsPng",keyTest:e=>e.code===Pe&&e.altKey&&e.shiftKey}),Hs=uo({name:"gridMode",perform(e,t){return Oo("view","mode","grid"),{appState:Object.assign(Object.assign({},t),{gridSize:this.checked(t)?null:te.k}),commitToHistory:!1}},checked:e=>null!==e.gridSize,contextItemLabel:"labels.showGrid",keyTest:e=>e[Oe.CTRL_OR_CMD]&&"Quote"===e.code}),Gs=uo({name:"zenMode",perform(e,t){return Oo("view","mode","zen"),{appState:Object.assign(Object.assign({},t),{zenModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:e=>e.zenModeEnabled,contextItemLabel:"buttons.zenMode",keyTest:e=>!e[Oe.CTRL_OR_CMD]&&e.altKey&&"KeyZ"===e.code}),Vs=uo({name:"stats",perform(e,t){return{appState:Object.assign(Object.assign({},t),{showStats:!this.checked(t)}),commitToHistory:!1}},checked:e=>e.showStats,contextItemLabel:"stats.title",keyTest:e=>!e[Oe.CTRL_OR_CMD]&&e.altKey&&"Slash"===e.code}),Us=uo({name:"unbindText",contextItemLabel:"labels.unbindText",perform:(e,t)=>(ca(hu(e),t).forEach((e=>{const t=Fu(e);if(t){var a;const{width:r,height:n,baseline:i}=Cu(t.originalText,qe(t));wu(t,{containerId:null,width:r,height:n,baseline:i,text:t.originalText}),wu(e,{boundElements:null===(a=e.boundElements)||void 0===a?void 0:a.filter((e=>e.id!==t.id))})}})),{elements:e,appState:t,commitToHistory:!0})});a(9482);const Ks=document.createElement("img");Ks.src="data:".concat(te.LO.svg,", ").concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1971c2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>'));let Ws=!1;const qs=e=>{let{element:t,appState:a,setAppState:r,onLinkOpen:n}=e;const i=t.link||"",[o,l]=(0,Pn.useState)(i),s=(0,Pn.useRef)(null),c="editor"===a.showHyperlinkPopup||!i,d=(0,Pn.useCallback)((()=>{if(!s.current)return;const e=Qs(s.current.value);!t.link&&e&&Oo("hyperlink","create"),wu(t,{link:e}),r({showHyperlinkPopup:"info"})}),[t,r]);(0,Pn.useLayoutEffect)((()=>()=>{d()}),[d]),(0,Pn.useEffect)((()=>{let e=null;const n=n=>{c||(e&&clearTimeout(e),ac(t,a,[n.clientX,n.clientY])&&(e=window.setTimeout((()=>{r({showHyperlinkPopup:!1})}),500)))};return window.addEventListener(te.Ks.POINTER_MOVE,n,!1),()=>{window.removeEventListener(te.Ks.POINTER_MOVE,n,!1),e&&clearTimeout(e)}}),[a,t,c,r]);const u=(0,Pn.useCallback)((()=>{Oo("hyperlink","delete"),wu(t,{link:null}),c&&(s.current.value=""),r({showHyperlinkPopup:!1})}),[r,t,c]),{x:p,y:h}=Zs(t,a);return a.draggingElement||a.resizingElement||a.isRotating||a.openMenu?null:(0,Mn.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(h,"px"),left:"".concat(p,"px"),width:320,padding:5},children:[c?(0,Mn.jsx)("input",{className:jn("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:s,value:o,onChange:e=>l(e.target.value),autoFocus:!0,onKeyDown:e=>{e.stopPropagation(),e[Oe.CTRL_OR_CMD]&&e.key===Oe.K&&e.preventDefault(),e.key!==Oe.ENTER&&e.key!==Oe.ESCAPE||d()}}):(0,Mn.jsx)("a",{href:t.link||"",className:jn("excalidraw-hyperlinkContainer-link",{"d-none":c}),target:Ys(t.link)?"_self":"_blank",onClick:e=>{if(t.link&&n){const a=mt(te.Ks.EXCALIDRAW_LINK,e.nativeEvent);n(t,a),a.defaultPrevented&&e.preventDefault()}},rel:"noopener noreferrer",children:t.link}),(0,Mn.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!c&&(0,Mn.jsx)(ru,{type:"button",title:At("buttons.edit"),"aria-label":At("buttons.edit"),label:At("buttons.edit"),onClick:()=>{Oo("hyperlink","edit","popup-ui"),r({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:so}),i&&(0,Mn.jsx)(ru,{type:"button",title:At("buttons.remove"),"aria-label":At("buttons.remove"),label:At("buttons.remove"),onClick:u,className:"excalidraw-hyperlinkContainer--remove",icon:ei})]})]})},Zs=(e,t)=>{const[a,r]=gp(e),{x:n,y:i}=at({sceneX:a+e.width/2,sceneY:r},t);return{x:n-t.offsetLeft-160,y:i-t.offsetTop-85}},Qs=e=>((e=e.trim())&&(e.includes("://")||/^[[\\/]/.test(e)||(e="https://".concat(e))),e),Ys=e=>!!(null!=e&&e.includes(location.origin)||null!=e&&e.startsWith("/")),Js=uo({name:"hyperlink",perform:(e,t)=>"editor"!==t.showHyperlinkPopup&&{elements:e,appState:Object.assign(Object.assign({},t),{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0},trackEvent:(e,t)=>{Oo("hyperlink","edit",t)},keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.key===Oe.K,contextItemLabel:(e,t)=>Xs(e,t),contextItemPredicate:(e,t)=>1===ca(e,t).length,PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;const n=ca(t,a);return(0,Mn.jsx)(ru,{type:"button",icon:Qn,"aria-label":At(Xs(t,a)),title:"".concat(At("labels.link.label")," - ").concat(et("CtrlOrCmd+K")),onClick:()=>r(null),selected:1===n.length&&!!n[0].link})}}),Xs=(e,t)=>ca(e,t)[0].link?"labels.link.edit":"labels.link.create",$s=(e,t,a)=>{let[r,n,i,o]=e;const l=Zu,s=l/a.zoom.value,c=l/a.zoom.value,d=l/a.zoom.value,u=(r+i)/2,p=(n+o)/2,h=(l-8)/(2*a.zoom.value),m=4/a.zoom.value,g=i+m-h,f=n-m-d+h,[b,v]=ae(g+s/2,f+c/2,u,p,t);return[b-s/2,v-c/2,s,c]},ec=(e,t,a,r)=>{let[n,i]=a;const o=4/t.zoom.value;if(!r&&t.viewModeEnabled&&fr(e,[n,i],o))return!0;const[l,s,c,d]=gp(e),[u,p,h,m]=$s([l,s,c,d],e.angle,t);return n>u-o&&n<u+o+h&&i>p-o&&i<p+m+o};let tc=null;const ac=(e,t,a)=>{let[r,n]=a;const{x:i,y:o}=tt({clientX:r,clientY:n},t),l=15/t.zoom.value;if(fr(e,[i,o],l))return!1;const[s,c,d]=gp(e);if(i>=s&&i<=d&&o>=c-85&&o<=c)return!1;const{x:u,y:p}=Zs(e,t);return!(r>=u-l&&r<=u+320+10+l&&n>=p-l&&n<=p+l+10+42)},rc=(e,t,a)=>{const r=!1;if(!(t.multiElement||t.resizingElement||t.editingElement||t.draggingElement)){const n=a();if(null===n)return{commitToHistory:r};const i=pt(e),o=n.elements,l=pt(o),s=e.filter((e=>!l.has(e.id))),c=o.map((e=>xu(i.get(e.id)||e,e))).concat(s.map((e=>xu(e,{isDeleted:!0}))));return Sn(c,s),{elements:c,appState:Object.assign(Object.assign({},t),n.appState),commitToHistory:r,syncHistory:!0}}return{commitToHistory:r}},nc=(e,t,a)=>{if(!1!==e.trackEvent)try{var r;!0===e.trackEvent?Oo(e.name,t,"number"==typeof a||"string"==typeof a?String(a):void 0):null===(r=e.trackEvent)||void 0===r||r.call(e,e,t,a)}catch(e){console.error("error while logging action:",e)}};class ic{constructor(e,t,a,r){Xt(this,"actions",{}),Xt(this,"renderAction",((e,t)=>{const a=this.app.props.UIOptions.canvasActions;if(this.actions[e]&&"PanelComponent"in this.actions[e]&&(!(e in a)||a[e])){const a=this.actions[e],r=a.PanelComponent,n=e=>{this.updater(a.perform(this.getElementsIncludingDeleted(),this.getAppState(),e,this.app)),nc(a,"ui",e)};return(0,Mn.jsx)(r,{elements:this.getElementsIncludingDeleted(),appState:this.getAppState(),updateData:n,appProps:this.app.props,data:t})}return null})),this.updater=t=>{if(!t||!("then"in t))return e(t);t.then((t=>e(t)))},this.getAppState=t,this.getElementsIncludingDeleted=a,this.app=r}registerAction(e){this.actions[e.name]=e}registerAll(e){e.forEach((e=>this.registerAction(e)))}handleKeyDown(e){const t=this.app.props.UIOptions.canvasActions,a=Object.values(this.actions).sort(((e,t)=>(t.keyPriority||0)-(e.keyPriority||0))).filter((a=>(!(a.name in t)||t[a.name])&&a.keyTest&&a.keyTest(e,this.getAppState(),this.getElementsIncludingDeleted())));if(1!==a.length)return!1;const r=a[0],{viewModeEnabled:n}=this.getAppState();return!(n&&!Object.values(te.EH).includes(a[0].name)||(nc(r,"keyboard",null),e.preventDefault(),this.updater(a[0].perform(this.getElementsIncludingDeleted(),this.getAppState(),null,this.app)),0))}executeAction(e){this.updater(e.perform(this.getElementsIncludingDeleted(),this.getAppState(),null,this.app)),nc(e,"api",null)}}const oc=e=>{const t=Array.from(e.values());return{x:sc(t,(e=>e.x))/t.length,y:sc(t,(e=>e.y))/t.length}},lc=e=>{let[t,a]=e;return Math.hypot(t.x-a.x,t.y-a.y)},sc=(e,t)=>e.reduce(((e,a)=>e+t(a)),0),cc=e=>({selectedElementIds:e.selectedElementIds,selectedGroupIds:e.selectedGroupIds,viewBackgroundColor:e.viewBackgroundColor,editingLinearElement:e.editingLinearElement,editingGroupId:e.editingGroupId,name:e.name});let dc;!function(e){e.ACTIVE="active",e.AWAY="away",e.IDLE="idle"}(dc||(dc={}));const uc=(()=>{const e=document.createElement("canvas").getContext("2d");return!!e&&(e.fillStyle="#f00",e.textBaseline="top",e.font="32px Arial",e.fillText("😀",0,0),0!==e.getImageData(12,12,1,1).data[0])})(),pc=function(e,t,a,r,n,i,o,l){let s=arguments.length>8&&void 0!==arguments[8]&&arguments[8];e.save(),e.translate(i,o),e.rotate(l),s&&e.fillRect(t-i,a-o,r,n),e.strokeRect(t-i,a-o,r,n),e.restore()},hc=(e,t,a,r)=>{e.beginPath(),e.arc(t,a,r,0,2*Math.PI),e.fill(),e.stroke()},mc=(e,t,a,r,n,i,o)=>{if(null===i)return{atLeastOneVisibleElement:!1};const{renderScrollbars:l=!0,renderSelection:s=!0,renderGrid:c=!0,isExporting:d}=o,u=i.getContext("2d");u.setTransform(1,0,0,1,0,0),u.save(),u.scale(r,r);const p=i.width/r,h=i.height/r;d&&"dark"===o.theme&&(u.filter=te.ZF),"string"==typeof o.viewBackgroundColor?(("transparent"===o.viewBackgroundColor||5===o.viewBackgroundColor.length||9===o.viewBackgroundColor.length||/(hsla|rgba)\(/.test(o.viewBackgroundColor))&&u.clearRect(0,0,p,h),u.save(),u.fillStyle=o.viewBackgroundColor,u.fillRect(0,0,p,h),u.restore()):u.clearRect(0,0,p,h),u.save(),u.scale(o.zoom.value,o.zoom.value),c&&t.gridSize&&((e,t,a,r,n,i)=>{e.save(),e.strokeStyle="rgba(0,0,0,0.1)",e.beginPath();for(let o=a;o<a+n+2*t;o+=t)e.moveTo(o,r-t),e.lineTo(o,r+i+2*t);for(let o=r;o<r+i+2*t;o+=t)e.moveTo(a-t,o),e.lineTo(a+n+2*t,o);e.stroke(),e.restore()})(u,t.gridSize,-Math.ceil(o.zoom.value/t.gridSize)*t.gridSize+o.scrollX%t.gridSize,-Math.ceil(o.zoom.value/t.gridSize)*t.gridSize+o.scrollY%t.gridSize,p/o.zoom.value,h/o.zoom.value);const m=e.filter((e=>xc(e,p,h,{zoom:o.zoom,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,scrollX:o.scrollX,scrollY:o.scrollY})));if(m.forEach((e=>{try{lp(e,n,u,o),d||wc(e,u,t)}catch(e){console.error(e)}})),t.editingLinearElement){const e=Yr.getElement(t.editingLinearElement.elementId);e&&((e,t,a,r)=>{e.save(),e.translate(a.scrollX,a.scrollY),e.lineWidth=1/a.zoom.value,Yr.getPointsGlobalCoordinates(r).forEach(((r,n)=>{var i,o;e.strokeStyle="red",e.setLineDash([]),e.fillStyle=null!==(i=t.editingLinearElement)&&void 0!==i&&null!==(o=i.selectedPointsIndices)&&void 0!==o&&o.includes(n)?"rgba(255, 127, 127, 0.9)":"rgba(255, 255, 255, 0.9)";const{POINT_HANDLE_SIZE:l}=Yr;hc(e,r[0],r[1],l/2/a.zoom.value)})),e.restore()})(u,t,o,e)}if(a)try{lp(a,n,u,o)}catch(e){console.error(e)}if(Xr(t)&&t.suggestedBindings.filter((e=>null!=e)).forEach((e=>{bc(u,o,e)})),s&&!t.multiElement&&!t.editingLinearElement){const a=e.reduce(((e,a)=>{const r=[];if(t.selectedElementIds[a.id]&&!_a(t,a)&&r.push(Ae.black),o.remoteSelectedElementIds[a.id]&&r.push(...o.remoteSelectedElementIds[a.id].map((e=>{const{background:a}=_s(e,t);return a}))),r.length){const[t,n,i,o]=gp(a);e.push({angle:a.angle,elementX1:t,elementY1:n,elementX2:i,elementY2:o,selectionColors:r})}return e}),[]),r=t=>{const r=za(e,t),[n,i,o,l]=_p(r);a.push({angle:0,elementX1:n,elementX2:o,elementY1:i,elementY2:l,selectionColors:[Ae.black]})};for(const e of Ea(t))r(e);t.editingGroupId&&r(t.editingGroupId),a.forEach((e=>fc(u,o,e)));const n=ca(e,t);if(u.save(),u.translate(o.scrollX,o.scrollY),1===n.length){u.fillStyle=Ae.white;const e=Wa(n[0],o.zoom,"mouse");t.viewModeEnabled||gc(u,o,e,n[0].angle)}else if(n.length>1&&!t.isRotating){const e=4/o.zoom.value;u.fillStyle=Ae.white;const[t,a,r,i]=_p(n),l=u.getLineDash();u.setLineDash([2/o.zoom.value]);const s=u.lineWidth;u.lineWidth=1/o.zoom.value,pc(u,t-e,a-e,r-t+2*e,i-a+2*e,(t+r)/2,(a+i)/2,0),u.lineWidth=s,u.setLineDash(l);const c=Ka([t,a,r,i],0,o.zoom,"mouse",Ra);gc(u,o,c,0)}u.restore()}u.restore();for(const e in o.remotePointerViewportCoords){let{x:a,y:r}=o.remotePointerViewportCoords[e];a-=t.offsetLeft,r-=t.offsetTop;const n=9,i=14,l=a<0||a>p-n||r<0||r>h-i;a=Math.max(a,0),a=Math.min(a,p-n),r=Math.max(r,0),r=Math.min(r,h-i);const{background:s,stroke:c}=_s(e,t);u.save(),u.strokeStyle=c,u.fillStyle=s;const d=o.remotePointerUserStates[e];(l||d===dc.AWAY)&&(u.globalAlpha=.48),o.remotePointerButton&&"down"===o.remotePointerButton[e]&&(u.beginPath(),u.arc(a,r,15,0,2*Math.PI,!1),u.lineWidth=3,u.strokeStyle="#ffffff88",u.stroke(),u.closePath(),u.beginPath(),u.arc(a,r,15,0,2*Math.PI,!1),u.lineWidth=1,u.strokeStyle=c,u.stroke(),u.closePath()),u.beginPath(),u.moveTo(a,r),u.lineTo(a+1,r+14),u.lineTo(a+4,r+9),u.lineTo(a+9,r+10),u.lineTo(a,r),u.fill(),u.stroke();const m=o.remotePointerUsernames[e];let g="";d===dc.AWAY?g=uc?"⚫️":" (".concat(dc.AWAY,")"):d===dc.IDLE?g=uc?"💤":" (".concat(dc.IDLE,")"):d===dc.ACTIVE&&(g=uc?"🟢":"");const f="".concat(m?"".concat(m," "):"").concat(g);if(!l&&f){const e=a+n,t=r+i,o=4,l=4,d=u.measureText(f),p=d.actualBoundingBoxDescent+d.actualBoundingBoxAscent;u.fillStyle=c,u.fillRect(e-1,t-1,d.width+2*o+2,p+2*l+2),u.fillStyle=s,u.fillRect(e,t,d.width+2*o,p+2*l),u.fillStyle=Ae.white,u.fillText(f,e+o,t+l+d.actualBoundingBoxAscent)}u.restore(),u.closePath()}let g;return l&&(g=((e,t,a,r)=>{let{scrollX:n,scrollY:i,zoom:o}=r;if(0===e.length)return{horizontal:null,vertical:null};const[l,s,c,d]=_p(e),u=t/o.value,p=a/o.value,h=t-u,m=a-p,g={top:parseInt(rt("sat")),bottom:parseInt(rt("sab")),left:parseInt(rt("sal")),right:parseInt(rt("sar"))},f=St().rtl,b=h/2-n+g.left,v=m/2-i+g.top,y=b+u-g.right,k=v+p-g.bottom,w=Math.min(l,b),x=Math.min(s,v),S=Math.max(c,y),_=Math.max(d,k);return{horizontal:b===w&&y===S?null:{x:Math.max(g.left,4)+(b-w)/(S-w)*t,y:a-6-Math.max(4,g.bottom),width:(y-b)/(S-w)*t-Math.max(8,g.left+g.right),height:6},vertical:v===x&&k===_?null:{x:f?Math.max(g.left,4):t-6-Math.max(g.right,4),y:(v-x)/(_-x)*a+Math.max(g.top,4),width:6,height:(k-v)/(_-x)*a-Math.max(8,g.top+g.bottom)}}})(e,p,h,o),u.save(),u.fillStyle="rgba(0,0,0,0.3)",u.strokeStyle="rgba(255,255,255,0.8)",[g.horizontal,g.vertical].forEach((e=>{e&&((e,t,a,r,n,i)=>{e.beginPath(),e.moveTo(t+3,a),e.lineTo(t+r-3,a),e.quadraticCurveTo(t+r,a,t+r,a+3),e.lineTo(t+r,a+n-3),e.quadraticCurveTo(t+r,a+n,t+r-3,a+n),e.lineTo(t+3,a+n),e.quadraticCurveTo(t,a+n,t,a+n-3),e.lineTo(t,a+3),e.quadraticCurveTo(t,a,t+3,a),e.closePath(),e.fill(),e.stroke()})(u,e.x,e.y,e.width,e.height)})),u.restore()),u.restore(),{atLeastOneVisibleElement:m.length>0,scrollBars:g}},gc=(e,t,a,r)=>{Object.keys(a).forEach((n=>{const i=a[n];void 0!==i&&(e.save(),e.lineWidth=1/t.zoom.value,"rotation"===n?hc(e,i[0]+i[2]/2,i[1]+i[3]/2,i[2]/2):pc(e,i[0],i[1],i[2],i[3],i[0]+i[2]/2,i[1]+i[3]/2,r,!0),e.restore())}))},fc=(e,t,a)=>{const{angle:r,elementX1:n,elementY1:i,elementX2:o,elementY2:l,selectionColors:s}=a,c=o-n,d=l-i,u=4/t.zoom.value,p=8/t.zoom.value,h=4/t.zoom.value;e.save(),e.translate(t.scrollX,t.scrollY),e.lineWidth=1/t.zoom.value;const m=s.length;for(let t=0;t<m;++t)e.strokeStyle=s[t],e.setLineDash([p,h+(p+h)*(m-1)]),e.lineDashOffset=(p+h)*t,pc(e,n-u,i-u,c+2*u,d+2*u,n+c/2,i+d/2,r);e.restore()},bc=(e,t,a)=>{const r=Array.isArray(a)?yc:vc;e.save(),e.translate(t.scrollX,t.scrollY),r(e,a),e.restore()},vc=(e,t)=>{const[a,r,n,i]=gp(t),o=n-a,l=i-r,s=vr(t,o,l);e.strokeStyle="rgba(0,0,0,.05)",e.lineWidth=s-4;const c=2+s/2;switch(t.type){case"rectangle":case"text":case"image":pc(e,a-c,r-c,o+2*c,l+2*c,a+o/2,r+l/2,t.angle);break;case"diamond":const n=Math.hypot(o,l);((e,t,a,r,n,i)=>{e.save(),e.translate(r,n),e.rotate(i),e.beginPath(),e.moveTo(0,a/2),e.lineTo(t/2,0),e.lineTo(0,-a/2),e.lineTo(-t/2,0),e.closePath(),e.stroke(),e.restore()})(e,o+c*n/l*2,l+c*n/o*2,a+o/2,r+l/2,t.angle);break;case"ellipse":((e,t,a,r,n,i)=>{e.beginPath(),e.ellipse(r,n,t/2,a/2,i,0,2*Math.PI),e.stroke()})(e,o+2*c,l+2*c,a+o/2,r+l/2,t.angle)}},yc=(e,t)=>{const[a,r,n]=t,i=vr(n,n.width,n.height);e.strokeStyle="rgba(0,0,0,0)",e.fillStyle="rgba(0,0,0,.05)",("both"===r?[0,-1]:"start"===r?[0]:[-1]).forEach((t=>{const[r,n]=Yr.getPointAtIndexGlobalCoordinates(a,t);hc(e,r,n,i)}))};let kc;const wc=(e,t,a)=>{if(e.link&&!a.selectedElementIds[e.id]){const[r,n,i,o]=gp(e),[l,s,c,d]=$s([r,n,i,o],e.angle,a),u=l+c/2,p=s+d/2;if(t.save(),t.translate(a.scrollX+u,a.scrollY+p),t.rotate(e.angle),kc&&kc.zoom===a.zoom.value)t.drawImage(kc,l-u,s-p,c,d);else{kc=document.createElement("canvas"),kc.zoom=a.zoom.value,kc.width=c*window.devicePixelRatio*a.zoom.value,kc.height=d*window.devicePixelRatio*a.zoom.value;const e=kc.getContext("2d");e.scale(window.devicePixelRatio*a.zoom.value,window.devicePixelRatio*a.zoom.value),e.fillStyle="#fff",e.fillRect(0,0,c,d),e.drawImage(Ks,0,0,c,d),e.restore(),t.drawImage(kc,l-u,s-p,c,d)}t.restore()}},xc=(e,t,a,r)=>{const[n,i,o,l]=Sp(e),s=tt({clientX:r.offsetLeft,clientY:r.offsetTop},r),c=tt({clientX:r.offsetLeft+t,clientY:r.offsetTop+a},r);return s.x<=o&&s.y<=l&&c.x>=n&&c.y>=i},Sc=[{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 320 512",className:"",children:(0,Mn.jsx)("path",{d:"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"})}),value:"selection",key:Oe.V},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 448 512",children:(0,Mn.jsx)("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"})}),value:"rectangle",key:Oe.R},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 223.646 223.646",children:(0,Mn.jsx)("path",{d:"M111.823 0L16.622 111.823 111.823 223.646 207.025 111.823z"})}),value:"diamond",key:Oe.D},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"})}),value:"ellipse",key:Oe.E},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 448 512",className:"rtl-mirror",children:(0,Mn.jsx)("path",{d:"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"})}),value:"arrow",key:Oe.A},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 6 6",children:(0,Mn.jsx)("line",{x1:"0",y1:"3",x2:"6",y2:"3",stroke:"currentColor",strokeLinecap:"round"})}),value:"line",key:[Oe.P,Oe.L]},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"})}),value:"freedraw",key:[Oe.X,Oe.P.toUpperCase()]},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 448 512",children:(0,Mn.jsx)("path",{d:"M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"})}),value:"text",key:Oe.T},{icon:(0,Mn.jsx)("svg",{viewBox:"0 0 512 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"})}),value:"image",key:null}];a(4518);const _c={cut:[et("CtrlOrCmd+X")],copy:[et("CtrlOrCmd+C")],paste:[et("CtrlOrCmd+V")],copyStyles:[et("CtrlOrCmd+Alt+C")],pasteStyles:[et("CtrlOrCmd+Alt+V")],selectAll:[et("CtrlOrCmd+A")],deleteSelectedElements:[et("Del")],duplicateSelection:[et("CtrlOrCmd+D"),et("Alt+".concat(At("helpDialog.drag")))],sendBackward:[et("CtrlOrCmd+[")],bringForward:[et("CtrlOrCmd+]")],sendToBack:[et(ze?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")],bringToFront:[et(ze?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")],copyAsPng:[et("Shift+Alt+C")],copyAsSvg:[],group:[et("CtrlOrCmd+G")],ungroup:[et("CtrlOrCmd+Shift+G")],gridMode:[et("CtrlOrCmd+'")],zenMode:[et("Alt+Z")],stats:[et("Alt+/")],addToLibrary:[],flipHorizontal:[et("Shift+H")],flipVertical:[et("Shift+V")],viewMode:[et("Alt+R")],hyperlink:[et("CtrlOrCmd+K")]},Ac=e=>{const t=_c[e];return t&&t.length>0?t[0]:""},Ec=e=>{let{options:t,onCloseRequest:a,top:r,left:n,actionManager:i,appState:o,elements:l}=e;return(0,Mn.jsx)(Dn,{onCloseRequest:a,top:r,left:n,fitInViewport:!0,offsetLeft:o.offsetLeft,offsetTop:o.offsetTop,viewportWidth:o.width,viewportHeight:o.height,children:(0,Mn.jsx)("ul",{className:"context-menu",onContextMenu:e=>e.preventDefault(),children:t.map(((e,t)=>{var r;if("separator"===e)return(0,Mn.jsx)("hr",{className:"context-menu-option-separator"},t);const n=e.name;let s="";return e.contextItemLabel&&(s="function"==typeof e.contextItemLabel?At(e.contextItemLabel(l,o)):At(e.contextItemLabel)),(0,Mn.jsx)("li",{"data-testid":n,onClick:a,children:(0,Mn.jsxs)("button",{className:jn("context-menu-option",{dangerous:"deleteSelectedElements"===n,checkmark:null===(r=e.checked)||void 0===r?void 0:r.call(e,o)}),onClick:()=>i.executeAction(e),children:[(0,Mn.jsx)("div",{className:"context-menu-option__label",children:s}),(0,Mn.jsx)("kbd",{className:"context-menu-option__shortcut",children:n?Ac(n):""})]})},t)}))})})},Cc=new WeakMap,Tc={push(e){const t=Array.of();e.options.forEach((e=>{e&&t.push(e)})),t.length&&(0,Te.render)((0,Mn.jsx)(Ec,{top:e.top,left:e.left,options:t,onCloseRequest:()=>(e=>{const t=Cc.get(e);t&&((0,Te.unmountComponentAtNode)(t),t.remove(),Cc.delete(e))})(e.container),actionManager:e.actionManager,appState:e.appState,elements:e.elements}),(e=>{let t=Cc.get(e);return t||(t=document.createElement("div"),e.querySelector(".excalidraw-contextMenuContainer").appendChild(t),Cc.set(e,t),t)})(e.container))}},zc=e=>{var t;let{appState:a,elements:r,renderAction:n,elementType:i}=e;const o=da(hu(r),a);let l=!1;2===o.length&&(Se(o[0])||Se(o[1]))&&(l=!0);const s=Boolean(a.editingElement),c=Rd(),d="rtl"===document.documentElement.getAttribute("dir"),u=ha(i)||o.some((e=>ha(e.type)&&!st(e.backgroundColor))),p=ha(i)||o.some((e=>ha(e.type)));let h=(null===(t=o[0])||void 0===t?void 0:t.type)||null;for(const e of o)if(e.type!==h){h=null;break}return(0,Mn.jsxs)("div",{className:"panelColumn",children:[(ma(i)&&"image"!==i&&"image"!==h||o.some((e=>ma(e.type))))&&n("changeStrokeColor"),p&&n("changeBackgroundColor"),u&&n("changeFillStyle"),(ga(i)||o.some((e=>ga(e.type))))&&n("changeStrokeWidth"),("freedraw"===i||o.some((e=>"freedraw"===e.type)))&&n("changeStrokeShape"),(fa(i)||o.some((e=>fa(e.type))))&&(0,Mn.jsxs)(Mn.Fragment,{children:[n("changeStrokeStyle"),n("changeSloppiness")]}),(ba(i)||o.some((e=>ba(e.type))))&&(0,Mn.jsx)(Mn.Fragment,{children:n("changeSharpness")}),(va(i)||o.some((e=>va(e.type))))&&(0,Mn.jsxs)(Mn.Fragment,{children:[n("changeFontSize"),n("changeFontFamily"),n("changeTextAlign")]}),o.some((e=>Se(e)||_e(e)))&&n("changeVerticalAlign"),(ya(i)||o.some((e=>ya(e.type))))&&(0,Mn.jsx)(Mn.Fragment,{children:n("changeArrowhead")}),n("changeOpacity"),(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.layers")}),(0,Mn.jsxs)("div",{className:"buttonList",children:[n("sendToBack"),n("sendBackward"),n("bringToFront"),n("bringForward")]})]}),o.length>1&&!l&&(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.align")}),(0,Mn.jsxs)("div",{className:"buttonList",children:[d?(0,Mn.jsxs)(Mn.Fragment,{children:[n("alignRight"),n("alignHorizontallyCentered"),n("alignLeft")]}):(0,Mn.jsxs)(Mn.Fragment,{children:[n("alignLeft"),n("alignHorizontallyCentered"),n("alignRight")]}),o.length>2&&n("distributeHorizontally"),(0,Mn.jsxs)("div",{className:"iconRow",children:[n("alignTop"),n("alignVerticallyCentered"),n("alignBottom"),o.length>2&&n("distributeVertically")]})]})]}),!s&&o.length>0&&(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.actions")}),(0,Mn.jsxs)("div",{className:"buttonList",children:[!c&&n("duplicateSelection"),!c&&n("deleteSelectedElements"),n("group"),n("ungroup"),1===o.length&&n("hyperlink")]})]})]})},Ic=e=>{let{canvas:t,elementType:a,setAppState:r,onImageAction:n}=e;return(0,Mn.jsx)(Mn.Fragment,{children:Sc.map(((e,i)=>{let{value:o,icon:l,key:s}=e;const c=At("toolBar.".concat(o)),d=s&&("string"==typeof s?s:s[0]),u=d?"".concat(Ue(d)," ").concat(At("helpDialog.or")," ").concat(i+1):"".concat(i+1);return(0,Mn.jsx)(ru,{className:"Shape",type:"radio",icon:l,checked:a===o,name:"editor-current-shape",title:"".concat(Ue(c)," — ").concat(u),keyBindingLabel:"".concat(i+1),"aria-label":Ue(c),"aria-keyshortcuts":u,"data-testid":o,onChange:e=>{let{pointerType:a}=e;r({elementType:o,multiElement:null,selectedElementIds:{}}),Xe(t,o),"image"===o&&n({pointerType:a})}},o)}))})},Lc=e=>{let{renderAction:t,zoom:a}=e;return(0,Mn.jsx)(ms,{gap:1,children:(0,Mn.jsxs)(hs,{gap:1,align:"center",children:[t("zoomOut"),t("zoomIn"),t("resetZoom")]})})},jc=e=>{let{appState:t,setAppState:a,actionManager:r,showThemeBtn:n}=e;return(0,Mn.jsxs)("div",{style:{display:"flex"},children:[r.renderAction("changeViewBackgroundColor"),n&&r.renderAction("toggleTheme")]})};a(3211);const Mc=e=>{let{isCollaborating:t,collaboratorCount:a,onClick:r}=e;return(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsx)(ru,{className:jn("CollabButton",{"is-collaborating":t}),onClick:r,icon:_i,type:"button",title:At("labels.liveCollaboration"),"aria-label":At("labels.liveCollaboration"),showAriaLabel:Rd(),children:a>0&&(0,Mn.jsx)("div",{className:"CollabButton-collaborators",children:a})})})};a(3040),a(7428);const Bc=Pn.forwardRef(((e,t)=>{let{children:a,padding:r,className:n,style:i}=e;return(0,Mn.jsx)("div",{className:jn("Island",n),style:Object.assign({"--padding":r},i),ref:t,children:a})}));a(205);const Pc=e=>{const{theme:t=te.C6.LIGHT,closeOnClickOutside:a=!0}=e,r=Dc(t);return r?(0,Te.createPortal)((0,Mn.jsxs)("div",{className:jn("Modal",e.className),role:"dialog","aria-modal":"true",onKeyDown:t=>{t.key===Oe.ESCAPE&&(t.nativeEvent.stopImmediatePropagation(),t.stopPropagation(),e.onCloseRequest())},"aria-labelledby":e.labelledBy,children:[(0,Mn.jsx)("div",{className:"Modal__background",onClick:a?e.onCloseRequest:void 0}),(0,Mn.jsx)("div",{className:"Modal__content",style:{"--max-width":"".concat(e.maxWidth,"px")},tabIndex:0,children:e.children})]}),r):null},Dc=e=>{const[t,a]=(0,Pn.useState)(null),r=Rd(),n=(0,Pn.useRef)(r);n.current=r;const{container:i}=Gd();return(0,Pn.useLayoutEffect)((()=>{t&&t.classList.toggle("excalidraw--mobile",r)}),[t,r]),(0,Pn.useLayoutEffect)((()=>{const t=!(null==i||!i.classList.contains("theme--dark"))||"dark"===e,r=document.createElement("div");return r.classList.add("excalidraw","excalidraw-modal-container"),r.classList.toggle("excalidraw--mobile",n.current),t&&(r.classList.add("theme--dark"),r.classList.add("theme--dark-background-none")),document.body.appendChild(r),a(r),()=>{document.body.removeChild(r)}}),[i,e]),t},Nc=e=>{const[t,a]=(()=>{const[e,t]=(0,Pn.useState)(null);return[e,(0,Pn.useCallback)((e=>t(e)),[])]})(),[r]=(0,Pn.useState)(document.activeElement),{id:n}=Gd();(0,Pn.useEffect)((()=>{if(!t)return;const a=i(t);a.length>0&&!1!==e.autofocus&&(a[1]||a[0]).focus();const r=e=>{if(e.key===Oe.TAB){const a=i(t),{activeElement:r}=document,n=a.findIndex((e=>e===r));0===n&&e.shiftKey?(a[a.length-1].focus(),e.preventDefault()):n!==a.length-1||e.shiftKey||(a[0].focus(),e.preventDefault())}};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)}),[t,e.autofocus]);const i=e=>{const t=e.querySelectorAll("button, a, input, select, textarea, div[tabindex]");return t?Array.from(t):[]},o=()=>{r.focus(),e.onCloseRequest()};return(0,Mn.jsx)(Pc,{className:jn("Dialog",e.className),labelledBy:"dialog-title",maxWidth:e.small?550:800,onCloseRequest:o,theme:e.theme,closeOnClickOutside:e.closeOnClickOutside,children:(0,Mn.jsxs)(Bc,{ref:a,children:[(0,Mn.jsxs)("h2",{id:"".concat(n,"-dialog-title"),className:"Dialog__title",children:[(0,Mn.jsx)("span",{className:"Dialog__titleContent",children:e.title}),(0,Mn.jsx)("button",{className:"Modal__close",onClick:o,"aria-label":At("buttons.close"),children:Rd()?Ei:Ai})]}),(0,Mn.jsx)("div",{className:"Dialog__content",children:e.children})]})})},Oc=e=>{let{message:t,onClose:a}=e;const[r,n]=(0,Pn.useState)(!!t),{container:i}=Gd(),o=Pn.useCallback((()=>{n(!1),a&&a(),null==i||i.focus()}),[a,i]);return(0,Mn.jsx)(Mn.Fragment,{children:r&&(0,Mn.jsx)(Nc,{small:!0,onCloseRequest:o,title:At("errorDialog.title"),children:(0,Mn.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})})})};a(8623);const Fc="filter"in document.createElement("canvas").getContext("2d"),Rc=()=>(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("h3",{children:At("canvasError.cannotShowPreview")}),(0,Mn.jsx)("p",{children:(0,Mn.jsx)("span",{children:At("canvasError.canvasTooBig")})}),(0,Mn.jsxs)("em",{children:["(",At("canvasError.canvasTooBigTip"),")"]})]}),Hc=(e,t)=>{(0,Te.unmountComponentAtNode)(t),t.innerHTML="",e instanceof HTMLCanvasElement?t.appendChild(e):(0,Te.render)((0,Mn.jsx)(Rc,{}),t)},Gc=e=>{let{children:t,title:a,onClick:r,color:n,shade:i=6}=e;return(0,Mn.jsx)("button",{className:"ExportDialog-imageExportButton",style:{"--button-color":Ae[n][i],"--button-color-darker":Ae[n][i+1],"--button-color-darkest":Ae[n][i+2]},title:a,"aria-label":a,onClick:r,children:t})},Vc=e=>{let{elements:t,appState:a,files:r,exportPadding:n=te.qy,actionManager:i,onExportToPng:o,onExportToSvg:l,onExportToClipboard:s}=e;const c=sa(t,a),[d,u]=(0,Pn.useState)(c),p=(0,Pn.useRef)(null),{exportBackground:h,viewBackgroundColor:m}=a,g=d?ca(t,a,!0):t;return(0,Pn.useEffect)((()=>{u(c)}),[c]),(0,Pn.useEffect)((()=>{const e=p.current;e&&Ip(g,a,r,{exportBackground:h,viewBackgroundColor:m,exportPadding:n}).then((t=>ls(t).then((()=>{Hc(t,e)})))).catch((t=>{console.error(t),Hc(new gl,e)}))}),[a,r,g,h,n,m]),(0,Mn.jsxs)("div",{className:"ExportDialog",children:[(0,Mn.jsx)("div",{className:"ExportDialog__preview",ref:p}),Fc&&i.renderAction("exportWithDarkMode"),(0,Mn.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr"},children:(0,Mn.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(190px, 1fr))",overflow:"hidden"},children:[i.renderAction("changeExportBackground"),c&&(0,Mn.jsx)(ps,{checked:d,onChange:e=>u(e),children:At("labels.onlySelected")}),i.renderAction("changeExportEmbedScene")]})}),(0,Mn.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:".6em"},children:[(0,Mn.jsx)(hs,{gap:2,children:i.renderAction("changeExportScale")}),(0,Mn.jsx)("p",{style:{marginLeft:"1em",userSelect:"none"},children:"Scale"})]}),(0,Mn.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",margin:".6em 0"},children:!Gl&&i.renderAction("changeProjectName")}),(0,Mn.jsxs)(hs,{gap:2,justifyContent:"center",style:{margin:"2em 0"},children:[(0,Mn.jsx)(Gc,{color:"indigo",title:At("buttons.exportToPng"),"aria-label":At("buttons.exportToPng"),onClick:()=>o(g),children:"PNG"}),(0,Mn.jsx)(Gc,{color:"red",title:At("buttons.exportToSvg"),"aria-label":At("buttons.exportToSvg"),onClick:()=>l(g),children:"SVG"}),cl&&(0,Mn.jsx)(Gc,{title:At("buttons.copyPngToClipboard"),onClick:()=>s(g),color:"gray",shade:7,children:$n})]})]})},Uc=e=>{let{elements:t,appState:a,files:r,exportPadding:n=te.qy,actionManager:i,onExportToPng:o,onExportToSvg:l,onExportToClipboard:s}=e;const[c,d]=(0,Pn.useState)(!1),u=Pn.useCallback((()=>{d(!1)}),[]);return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(ru,{onClick:()=>{d(!0)},"data-testid":"image-export-button",icon:ri,type:"button","aria-label":At("buttons.exportImage"),showAriaLabel:Rd(),title:At("buttons.exportImage")}),c&&(0,Mn.jsx)(Nc,{onCloseRequest:u,title:At("buttons.exportImage"),children:(0,Mn.jsx)(Vc,{elements:t,appState:a,files:r,exportPadding:n,actionManager:i,onExportToPng:o,onExportToSvg:l,onExportToClipboard:s,onCloseRequest:u})})]})};a(4193);const Kc=e=>{let{children:t,side:a,className:r}=e;return(0,Mn.jsx)("div",{className:jn("FixedSideContainer","FixedSideContainer_side_".concat(a),r),children:t})};a(9705);const Wc=e=>{let{appState:t,elements:a,isMobile:r}=e,n=(e=>{let{appState:t,elements:a,isMobile:r}=e;const{elementType:n,isResizing:i,isRotating:o,lastPointerDownWith:l}=t,s=null!==t.multiElement;if("arrow"===n||"line"===n)return At(s?"hints.linearElementMulti":"hints.linearElement");if("freedraw"===n)return At("hints.freeDraw");if("text"===n)return At("hints.text");if("image"===t.elementType&&t.pendingImageElement)return At("hints.placeImage");const c=ca(a,t);if(i&&"mouse"===l&&1===c.length){const e=c[0];return be(e)&&2===e.points.length?At("hints.lockAngle"):he(e)?At("hints.resizeImage"):At("hints.resize")}if(o&&"mouse"===l)return At("hints.rotate");if(1===c.length&&me(c[0]))return At("hints.text_selected");if(t.editingElement&&me(t.editingElement))return At("hints.text_editing");if("selection"===n){var d;if("selection"===(null===(d=t.draggingElement)||void 0===d?void 0:d.type)&&!t.editingElement&&!t.editingLinearElement)return At("hints.deepBoxSelect");if(!c.length&&!r)return At("hints.canvasPanning")}if(1===c.length){if(be(c[0]))return t.editingLinearElement?t.editingLinearElement.selectedPointsIndices?At("hints.lineEditor_pointSelected"):At("hints.lineEditor_nothingSelected"):At("hints.lineEditor_info");if(xe(c[0]))return At("hints.bindTextToElement")}return null})({appState:t,elements:a,isMobile:r});return n?(n=et(n),(0,Mn.jsx)("div",{className:"HintViewer",children:(0,Mn.jsx)("span",{children:n})})):null},qc=()=>(0,Mn.jsx)("div",{className:"LoadingMessage",children:(0,Mn.jsx)("span",{children:At("labels.loadingScene")})}),Zc={CHECKED:(0,Mn.jsx)("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",children:(0,Mn.jsx)("path",{d:"M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"})}),UNCHECKED:(0,Mn.jsx)("svg",{width:"1792",height:"1792",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",className:"unlocked-icon rtl-mirror",children:(0,Mn.jsx)("path",{d:"M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"})})},Qc=e=>(0,Mn.jsxs)("label",{className:jn("ToolIcon ToolIcon__lock ToolIcon_type_floating","ToolIcon_size_".concat("medium"),{"is-mobile":e.isMobile}),title:"".concat(e.title," — Q"),children:[(0,Mn.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),(0,Mn.jsx)("div",{className:"ToolIcon__icon",children:e.checked?Zc.CHECKED:Zc.UNCHECKED})]});const Yc=e=>{let{heading:t,children:a}=e,r=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}(e,["heading","children"]);const{id:n}=Gd(),i=(0,Mn.jsx)("h2",{className:"visually-hidden",id:"".concat(n,"-").concat(t,"-title"),children:At("headings.".concat(t))});return(0,Mn.jsx)("section",Object.assign(Object.assign({},r),{"aria-labelledby":"".concat(n,"-").concat(t,"-title"),children:"function"==typeof a?a(i):(0,Mn.jsxs)(Mn.Fragment,{children:[i,a]})}))};a(3142);const Jc=e=>{let{children:t,className:a,mobile:r}=e;return(0,Mn.jsx)("div",{className:jn("UserList",a,{UserList_mobile:r}),children:t})},Xc=(0,Mn.jsx)("svg",{viewBox:"0 0 576 512",children:(0,Mn.jsx)("path",{fill:"currentColor",d:"M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"})}),$c=e=>{let{appState:t,setAppState:a,isMobile:r}=e;return(0,Mn.jsxs)("label",{className:jn("ToolIcon ToolIcon_type_floating ToolIcon__library","ToolIcon_size_medium",{"is-mobile":r}),title:"".concat(Ue(At("toolBar.library"))," — 0"),children:[(0,Mn.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:"editor-library",onChange:e=>{a({isLibraryOpen:e.target.checked})},checked:t.isLibraryOpen,"aria-label":Ue(At("toolBar.library")),"aria-keyshortcuts":"0"}),(0,Mn.jsx)("div",{className:"ToolIcon__icon",children:Xc})]})},ed="medium",td={CHECKED:(0,Mn.jsxs)("svg",{width:"205",height:"205",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",children:[(0,Mn.jsx)("path",{d:"m35 195-25-29.17V50h50v115l-25 30"}),(0,Mn.jsx)("path",{d:"M10 40V10h50v30H10"}),(0,Mn.jsx)("path",{d:"M125 145h70v50h-70"}),(0,Mn.jsx)("path",{d:"M190 145v-30l-10-20h-40l-10 20v30h15v-30l5-5h20l5 5v30h15"})]}),UNCHECKED:(0,Mn.jsxs)("svg",{width:"205",height:"205",viewBox:"0 0 205 205",xmlns:"http://www.w3.org/2000/svg",className:"unlocked-icon rtl-mirror",children:[(0,Mn.jsx)("path",{d:"m35 195-25-29.17V50h50v115l-25 30"}),(0,Mn.jsx)("path",{d:"M10 40V10h50v30H10"}),(0,Mn.jsx)("path",{d:"M125 145h70v50h-70"}),(0,Mn.jsx)("path",{d:"M145 145v-30l-10-20H95l-10 20v30h15v-30l5-5h20l5 5v30h15"})]})},ad=e=>e.penDetected?(0,Mn.jsxs)("label",{className:jn("ToolIcon ToolIcon__penMode ToolIcon_type_floating","ToolIcon_size_".concat(ed),{"is-mobile":e.isMobile}),title:"".concat(e.title),children:[(0,Mn.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),(0,Mn.jsx)("div",{className:"ToolIcon__icon",children:e.checked?td.CHECKED:td.UNCHECKED})]}):e.isMobile?null:(0,Mn.jsx)("label",{className:jn("ToolIcon ToolIcon__penMode ToolIcon_type_floating","ToolIcon_size_".concat(ed),{"is-mobile":e.isMobile}),children:(0,Mn.jsx)("div",{className:"ToolIcon__icon ToolIcon__hidden"})}),rd=e=>{let{appState:t,elements:a,libraryMenu:r,actionManager:n,renderJSONExportDialog:i,renderImageExportDialog:o,setAppState:l,onCollabButtonClick:s,onLockToggle:c,onPenModeToggle:d,canvas:u,isCollaborating:p,renderCustomFooter:h,viewModeEnabled:m,showThemeBtn:g,onImageAction:f,renderTopRightUI:b}=e;return(0,Mn.jsxs)(Mn.Fragment,{children:[!m&&(0,Mn.jsxs)(Kc,{side:"top",className:"App-top-bar",children:[(0,Mn.jsx)(Yc,{heading:"shapes",children:e=>(0,Mn.jsxs)(ms,{gap:4,align:"center",children:[(0,Mn.jsxs)(hs,{gap:1,className:"App-toolbar-container",children:[(0,Mn.jsxs)(Bc,{padding:1,className:"App-toolbar",children:[e,(0,Mn.jsx)(hs,{gap:1,children:(0,Mn.jsx)(Ic,{canvas:u,elementType:t.elementType,setAppState:l,onImageAction:e=>{let{pointerType:t}=e;f({insertOnCanvasDirectly:"mouse"!==t})}})})]}),b&&b(!0,t),(0,Mn.jsx)(Qc,{checked:t.elementLocked,onChange:c,title:At("toolBar.lock"),isMobile:!0}),(0,Mn.jsx)($c,{appState:t,setAppState:l,isMobile:!0}),(0,Mn.jsx)(ad,{checked:t.penMode,onChange:d,title:At("toolBar.penMode"),isMobile:!0,penDetected:t.penDetected})]}),r]})}),(0,Mn.jsx)(Wc,{appState:t,elements:a,isMobile:!0})]}),(0,Mn.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:14,marginLeft:14,marginRight:14},children:(0,Mn.jsxs)(Bc,{padding:0,children:["canvas"===t.openMenu?(0,Mn.jsx)(Yc,{className:"App-mobile-menu",heading:"canvasActions",children:(0,Mn.jsx)("div",{className:"panelColumn",children:(0,Mn.jsxs)(ms,{gap:4,children:[m?(0,Mn.jsxs)(Mn.Fragment,{children:[i(),o()]}):(0,Mn.jsxs)(Mn.Fragment,{children:[n.renderAction("clearCanvas"),n.renderAction("loadScene"),i(),o(),s&&(0,Mn.jsx)(Mc,{isCollaborating:p,collaboratorCount:t.collaborators.size,onClick:s}),(0,Mn.jsx)(jc,{actionManager:n,appState:t,setAppState:l,showThemeBtn:g})]}),null==h?void 0:h(!0,t),t.collaborators.size>0&&(0,Mn.jsxs)("fieldset",{children:[(0,Mn.jsx)("legend",{children:At("labels.collaborators")}),(0,Mn.jsx)(Jc,{mobile:!0,children:Array.from(t.collaborators).filter((e=>{let[t,a]=e;return 0!==Object.keys(a).length})).map((e=>{let[t,a]=e;return(0,Mn.jsx)(Pn.Fragment,{children:n.renderAction("goToCollaborator",{id:t})},t)}))})]})]})})}):"shape"===t.openMenu&&!m&&uu(t,a)?(0,Mn.jsx)(Yc,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,Mn.jsx)(zc,{appState:t,elements:a,renderAction:n.renderAction,elementType:t.elementType})}):null,(0,Mn.jsxs)("footer",{className:"App-toolbar",children:[m?(0,Mn.jsx)("div",{className:"App-toolbar-content",children:n.renderAction("toggleCanvasMenu")}):(0,Mn.jsxs)("div",{className:"App-toolbar-content",children:[n.renderAction("toggleCanvasMenu"),n.renderAction("toggleEditMenu"),n.renderAction("undo"),n.renderAction("redo"),n.renderAction(t.multiElement?"finalize":"duplicateSelection"),n.renderAction("deleteSelectedElements")]}),t.scrolledOutside&&!t.openMenu&&(0,Mn.jsx)("button",{className:"scroll-back-to-content",onClick:()=>{l(Object.assign({},pa(a,t)))},children:At("buttons.scrollBackToContent")})]})]})})]})};a(8416);const nd=e=>{const t=(0,Pn.useRef)(null),[a,r]=(0,Pn.useState)(null);return(0,Pn.useLayoutEffect)((()=>{if(!e.spreadsheet)return;const a=((e,t,a,r)=>"line"===e?((e,t,a)=>{const r=Math.max(...e.values),n=oa(),i=Xo[Math.floor(Math.random()*Xo.length)];let o=0;const l=[];for(const t of e.values){const e=44*o,a=-t/r*Wo;l.push([e,a]),o++}const s=Math.max(...l.map((e=>e[0]))),c=Math.max(...l.map((e=>e[1]))),d=Math.min(...l.map((e=>e[0]))),u=Math.min(...l.map((e=>e[1]))),p=Da(Object.assign(Object.assign({backgroundColor:i,groupIds:[n]},$o),{type:"line",x:t+Ko+16,y:a-Ko,startArrowhead:null,endArrowhead:null,height:c-u,width:s-d,strokeWidth:2,points:l})),h=e.values.map(((e,o)=>{const l=44*o+6,s=-e/r*Wo+6;return Ma(Object.assign(Object.assign({backgroundColor:i,groupIds:[n]},$o),{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+l+16,y:a+s-24,width:Ko,height:Ko}))})),m=e.values.map(((e,o)=>{const l=44*o+6,s=e/r*Wo+6+Ko;return Da(Object.assign(Object.assign({backgroundColor:i,groupIds:[n]},$o),{type:"line",x:t+l+16+6,y:a-s,startArrowhead:null,endArrowhead:null,height:s,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,s]]}))}));return[...nl(e,t,a,n,i,"production"===te.Vi.DEVELOPMENT),p,...m,...h]})(t,a,r):((e,t,a)=>{const r=Math.max(...e.values),n=oa(),i=Xo[Math.floor(Math.random()*Xo.length)];return[...e.values.map(((e,o)=>{const l=e/r*Wo;return Ma(Object.assign(Object.assign({backgroundColor:i,groupIds:[n]},$o),{type:"rectangle",x:t+44*o+Ko,y:a-l-Ko,width:32,height:l}))})),...nl(e,t,a,n,i,"production"===te.Vi.DEVELOPMENT)]})(t,a,r))(e.chartType,e.spreadsheet,0,0);let n;r(a);const i=t.current;return(async()=>{n=await Lp(a,{exportBackground:!1,viewBackgroundColor:Ae.white},null),i.appendChild(n),e.selected&&i.parentNode.focus()})(),()=>{i.removeChild(n)}}),[e.spreadsheet,e.chartType,e.selected]),(0,Mn.jsx)("button",{className:"ChartPreview",onClick:()=>{a&&e.onClick(e.chartType,a)},children:(0,Mn.jsx)("div",{ref:t})})},id=e=>{let{setAppState:t,appState:a,onClose:r,onInsertChart:n}=e;const i=Pn.useCallback((()=>{r&&r()}),[r]),o=(e,a)=>{n(a),Oo("magic","chart",e),t({currentChartType:e,pasteDialog:{shown:!1,data:null}})};return(0,Mn.jsx)(Nc,{small:!0,onCloseRequest:i,title:At("labels.pasteCharts"),className:"PasteChartDialog",autofocus:!1,children:(0,Mn.jsxs)("div",{className:"container",children:[(0,Mn.jsx)(nd,{chartType:"bar",spreadsheet:a.pasteDialog.data,selected:"bar"===a.currentChartType,onClick:o}),(0,Mn.jsx)(nd,{chartType:"line",spreadsheet:a.pasteDialog.data,selected:"line"===a.currentChartType,onClick:o})]})})};a(341);const od=()=>(0,Mn.jsxs)("div",{className:"HelpDialog--header",children:[(0,Mn.jsx)("a",{className:"HelpDialog--btn",href:"https://github.com/excalidraw/excalidraw#documentation",target:"_blank",rel:"noopener noreferrer",children:At("helpDialog.documentation")}),(0,Mn.jsx)("a",{className:"HelpDialog--btn",href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:At("helpDialog.blog")}),(0,Mn.jsx)("a",{className:"HelpDialog--btn",href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer",children:At("helpDialog.github")})]}),ld=e=>(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("h3",{children:e.title}),e.children]}),sd=e=>(0,Mn.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},children:e.children}),cd=e=>(0,Mn.jsx)("div",{style:{width:"49%"},children:e.children}),dd=e=>(0,Mn.jsxs)("div",{className:"HelpDialog--island",children:[(0,Mn.jsx)("h3",{className:"HelpDialog--island-title",children:e.caption}),e.children]}),ud=e=>(0,Mn.jsx)("div",{className:"HelpDialog--shortcut",children:(0,Mn.jsxs)("div",{style:{display:"flex",margin:"0",padding:"4px 8px",alignItems:"center"},children:[(0,Mn.jsx)("div",{style:{lineHeight:1.4},children:e.label}),(0,Mn.jsx)("div",{style:{display:"flex",flex:"0 0 auto",justifyContent:"flex-end",marginInlineStart:"auto",minWidth:"30%"},children:e.shortcuts.map(((t,a)=>(0,Mn.jsxs)(Pn.Fragment,{children:[(0,Mn.jsx)(pd,{children:t}),e.isOr&&a!==e.shortcuts.length-1&&At("helpDialog.or")]},a)))})]})});ud.defaultProps={isOr:!0};const pd=e=>(0,Mn.jsx)("kbd",Object.assign({className:"HelpDialog--key"},e)),hd=e=>{let{onClose:t}=e;const a=Pn.useCallback((()=>{t&&t()}),[t]);return(0,Mn.jsx)(Mn.Fragment,{children:(0,Mn.jsxs)(Nc,{onCloseRequest:a,title:At("helpDialog.title"),className:"HelpDialog",children:[(0,Mn.jsx)(od,{}),(0,Mn.jsx)(ld,{title:At("helpDialog.shortcuts"),children:(0,Mn.jsxs)(sd,{children:[(0,Mn.jsxs)(cd,{children:[(0,Mn.jsxs)(dd,{caption:At("helpDialog.shapes"),children:[(0,Mn.jsx)(ud,{label:At("toolBar.selection"),shortcuts:["V","1"]}),(0,Mn.jsx)(ud,{label:At("toolBar.rectangle"),shortcuts:["R","2"]}),(0,Mn.jsx)(ud,{label:At("toolBar.diamond"),shortcuts:["D","3"]}),(0,Mn.jsx)(ud,{label:At("toolBar.ellipse"),shortcuts:["E","4"]}),(0,Mn.jsx)(ud,{label:At("toolBar.arrow"),shortcuts:["A","5"]}),(0,Mn.jsx)(ud,{label:At("toolBar.line"),shortcuts:["P","6"]}),(0,Mn.jsx)(ud,{label:At("toolBar.freedraw"),shortcuts:["Shift + P","X","7"]}),(0,Mn.jsx)(ud,{label:At("toolBar.text"),shortcuts:["T","8"]}),(0,Mn.jsx)(ud,{label:At("toolBar.image"),shortcuts:["9"]}),(0,Mn.jsx)(ud,{label:At("toolBar.library"),shortcuts:["0"]}),(0,Mn.jsx)(ud,{label:At("helpDialog.editSelectedShape"),shortcuts:[et("Enter"),At("helpDialog.doubleClick")]}),(0,Mn.jsx)(ud,{label:At("helpDialog.textNewLine"),shortcuts:[et("Enter"),et("Shift+Enter")]}),(0,Mn.jsx)(ud,{label:At("helpDialog.textFinish"),shortcuts:[et("Esc"),et("CtrlOrCmd+Enter")]}),(0,Mn.jsx)(ud,{label:At("helpDialog.curvedArrow"),shortcuts:["A",At("helpDialog.click"),At("helpDialog.click"),At("helpDialog.click")],isOr:!1}),(0,Mn.jsx)(ud,{label:At("helpDialog.curvedLine"),shortcuts:["L",At("helpDialog.click"),At("helpDialog.click"),At("helpDialog.click")],isOr:!1}),(0,Mn.jsx)(ud,{label:At("toolBar.lock"),shortcuts:["Q"]}),(0,Mn.jsx)(ud,{label:At("helpDialog.preventBinding"),shortcuts:[et("CtrlOrCmd")]}),(0,Mn.jsx)(ud,{label:At("toolBar.link"),shortcuts:[et("CtrlOrCmd+K")]})]}),(0,Mn.jsxs)(dd,{caption:At("helpDialog.view"),children:[(0,Mn.jsx)(ud,{label:At("buttons.zoomIn"),shortcuts:[et("CtrlOrCmd++")]}),(0,Mn.jsx)(ud,{label:At("buttons.zoomOut"),shortcuts:[et("CtrlOrCmd+-")]}),(0,Mn.jsx)(ud,{label:At("buttons.resetZoom"),shortcuts:[et("CtrlOrCmd+0")]}),(0,Mn.jsx)(ud,{label:At("helpDialog.zoomToFit"),shortcuts:["Shift+1"]}),(0,Mn.jsx)(ud,{label:At("helpDialog.zoomToSelection"),shortcuts:["Shift+2"]}),(0,Mn.jsx)(ud,{label:At("buttons.fullScreen"),shortcuts:["F"]}),(0,Mn.jsx)(ud,{label:At("buttons.zenMode"),shortcuts:[et("Alt+Z")]}),(0,Mn.jsx)(ud,{label:At("labels.showGrid"),shortcuts:[et("CtrlOrCmd+'")]}),(0,Mn.jsx)(ud,{label:At("labels.viewMode"),shortcuts:[et("Alt+R")]}),(0,Mn.jsx)(ud,{label:At("labels.toggleTheme"),shortcuts:[et("Alt+Shift+D")]}),(0,Mn.jsx)(ud,{label:At("stats.title"),shortcuts:[et("Alt+/")]})]})]}),(0,Mn.jsx)(cd,{children:(0,Mn.jsxs)(dd,{caption:At("helpDialog.editor"),children:[(0,Mn.jsx)(ud,{label:At("labels.selectAll"),shortcuts:[et("CtrlOrCmd+A")]}),(0,Mn.jsx)(ud,{label:At("labels.multiSelect"),shortcuts:[et("Shift+".concat(At("helpDialog.click")))]}),(0,Mn.jsx)(ud,{label:At("helpDialog.deepSelect"),shortcuts:[et("CtrlOrCmd+".concat(At("helpDialog.click")))]}),(0,Mn.jsx)(ud,{label:At("helpDialog.deepBoxSelect"),shortcuts:[et("CtrlOrCmd+".concat(At("helpDialog.drag")))]}),(0,Mn.jsx)(ud,{label:At("labels.moveCanvas"),shortcuts:[et("Space+".concat(At("helpDialog.drag"))),et("Wheel+".concat(At("helpDialog.drag")))],isOr:!0}),(0,Mn.jsx)(ud,{label:At("labels.cut"),shortcuts:[et("CtrlOrCmd+X")]}),(0,Mn.jsx)(ud,{label:At("labels.copy"),shortcuts:[et("CtrlOrCmd+C")]}),(0,Mn.jsx)(ud,{label:At("labels.paste"),shortcuts:[et("CtrlOrCmd+V")]}),(0,Mn.jsx)(ud,{label:At("labels.copyAsPng"),shortcuts:[et("Shift+Alt+C")]}),(0,Mn.jsx)(ud,{label:At("labels.copyStyles"),shortcuts:[et("CtrlOrCmd+Alt+C")]}),(0,Mn.jsx)(ud,{label:At("labels.pasteStyles"),shortcuts:[et("CtrlOrCmd+Alt+V")]}),(0,Mn.jsx)(ud,{label:At("labels.delete"),shortcuts:[et("Del")]}),(0,Mn.jsx)(ud,{label:At("labels.sendToBack"),shortcuts:[et(ze?"CtrlOrCmd+Alt+[":"CtrlOrCmd+Shift+[")]}),(0,Mn.jsx)(ud,{label:At("labels.bringToFront"),shortcuts:[et(ze?"CtrlOrCmd+Alt+]":"CtrlOrCmd+Shift+]")]}),(0,Mn.jsx)(ud,{label:At("labels.sendBackward"),shortcuts:[et("CtrlOrCmd+[")]}),(0,Mn.jsx)(ud,{label:At("labels.bringForward"),shortcuts:[et("CtrlOrCmd+]")]}),(0,Mn.jsx)(ud,{label:At("labels.alignTop"),shortcuts:[et("CtrlOrCmd+Shift+Up")]}),(0,Mn.jsx)(ud,{label:At("labels.alignBottom"),shortcuts:[et("CtrlOrCmd+Shift+Down")]}),(0,Mn.jsx)(ud,{label:At("labels.alignLeft"),shortcuts:[et("CtrlOrCmd+Shift+Left")]}),(0,Mn.jsx)(ud,{label:At("labels.alignRight"),shortcuts:[et("CtrlOrCmd+Shift+Right")]}),(0,Mn.jsx)(ud,{label:At("labels.duplicateSelection"),shortcuts:[et("CtrlOrCmd+D"),et("Alt+".concat(At("helpDialog.drag")))]}),(0,Mn.jsx)(ud,{label:At("buttons.undo"),shortcuts:[et("CtrlOrCmd+Z")]}),(0,Mn.jsx)(ud,{label:At("buttons.redo"),shortcuts:Ie?[et("CtrlOrCmd+Y"),et("CtrlOrCmd+Shift+Z")]:[et("CtrlOrCmd+Shift+Z")]}),(0,Mn.jsx)(ud,{label:At("labels.group"),shortcuts:[et("CtrlOrCmd+G")]}),(0,Mn.jsx)(ud,{label:At("labels.ungroup"),shortcuts:[et("CtrlOrCmd+Shift+G")]}),(0,Mn.jsx)(ud,{label:At("labels.flipHorizontal"),shortcuts:[et("Shift+H")]}),(0,Mn.jsx)(ud,{label:At("labels.flipVertical"),shortcuts:[et("Shift+V")]}),(0,Mn.jsx)(ud,{label:At("labels.showStroke"),shortcuts:[et("S")]}),(0,Mn.jsx)(ud,{label:At("labels.showBackground"),shortcuts:[et("G")]}),(0,Mn.jsx)(ud,{label:At("labels.decreaseFontSize"),shortcuts:[et("CtrlOrCmd+Shift+<")]}),(0,Mn.jsx)(ud,{label:At("labels.increaseFontSize"),shortcuts:[et("CtrlOrCmd+Shift+>")]})]})})]})})]})})};a(7731);const md=e=>{let{children:t,color:a}=e;return(0,Mn.jsx)("div",{className:"Card",style:{"--card-color":"primary"===a?"var(--color-primary)":Ae[a][7],"--card-color-darker":"primary"===a?"var(--color-primary-darker)":Ae[a][8],"--card-color-darkest":"primary"===a?"var(--color-primary-darkest)":Ae[a][9]},children:t})},gd=e=>{let{elements:t,appState:a,files:r,actionManager:n,exportOpts:i,canvas:o}=e;const{onExportToBackend:l}=i;return(0,Mn.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,Mn.jsxs)("div",{className:"ExportDialog-cards",children:[i.saveFileToDisk&&(0,Mn.jsxs)(md,{color:"lime",children:[(0,Mn.jsx)("div",{className:"Card-icon",children:ni}),(0,Mn.jsx)("h2",{children:At("exportDialog.disk_title")}),(0,Mn.jsxs)("div",{className:"Card-details",children:[At("exportDialog.disk_details"),!Gl&&n.renderAction("changeProjectName")]}),(0,Mn.jsx)(ru,{className:"Card-button",type:"button",title:At("exportDialog.disk_button"),"aria-label":At("exportDialog.disk_button"),showAriaLabel:!0,onClick:()=>{n.executeAction(fs)}})]}),l&&(0,Mn.jsxs)(md,{color:"pink",children:[(0,Mn.jsx)("div",{className:"Card-icon",children:Qn}),(0,Mn.jsx)("h2",{children:At("exportDialog.link_title")}),(0,Mn.jsx)("div",{className:"Card-details",children:At("exportDialog.link_details")}),(0,Mn.jsx)(ru,{className:"Card-button",type:"button",title:At("exportDialog.link_button"),"aria-label":At("exportDialog.link_button"),showAriaLabel:!0,onClick:()=>l(t,a,r,o)})]}),i.renderCustomUI&&i.renderCustomUI(t,a,r,o)]})})},fd=e=>{let{elements:t,appState:a,files:r,actionManager:n,exportOpts:i,canvas:o}=e;const[l,s]=(0,Pn.useState)(!1),c=Pn.useCallback((()=>{s(!1)}),[]);return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(ru,{onClick:()=>{s(!0)},"data-testid":"json-export-button",icon:ai,type:"button","aria-label":At("buttons.export"),showAriaLabel:Rd(),title:At("buttons.export")}),l&&(0,Mn.jsx)(Nc,{onCloseRequest:c,title:At("buttons.export"),children:(0,Mn.jsx)(gd,{elements:t,appState:a,files:r,actionManager:n,onCloseRequest:c,exportOpts:i,canvas:o})})]})};a(9555),a(5669);const bd=e=>{let{libItem:t,appState:a,index:r,onChange:n,onRemove:i}=e;const o=(0,Pn.useRef)(null),l=(0,Pn.useRef)(null);return(0,Pn.useEffect)((()=>{const e=o.current;e&&(async()=>{const r=await Dp({elements:t.elements,appState:Object.assign(Object.assign({},a),{viewBackgroundColor:Ae.white,exportBackground:!0}),files:null});e.innerHTML=r.outerHTML})()}),[t.elements,a]),(0,Mn.jsxs)("div",{className:"single-library-item",children:[(0,Mn.jsx)("div",{ref:o,className:"single-library-item__svg"}),(0,Mn.jsx)(ru,{"aria-label":At("buttons.remove"),type:"button",icon:Ai,className:"single-library-item--remove",onClick:i.bind(null,t.id),title:At("buttons.remove")}),(0,Mn.jsxs)("div",{style:{display:"flex",margin:"0.8rem 0.3rem",width:"100%",fontSize:"14px",fontWeight:500,flexDirection:"column"},children:[(0,Mn.jsxs)("label",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column"},children:[(0,Mn.jsxs)("div",{style:{padding:"0.5em 0"},children:[(0,Mn.jsx)("span",{style:{fontWeight:500,color:Ae.gray[6]},children:At("publishDialog.itemName")}),(0,Mn.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,Mn.jsx)("input",{type:"text",ref:l,style:{width:"80%",padding:"0.2rem"},defaultValue:t.name,placeholder:"Item name",onChange:e=>{n(e.target.value,r)}})]}),(0,Mn.jsx)("span",{className:"error",children:t.error})]})]})},vd="publish-library-data",yd=e=>{let{onClose:t,libraryItems:a,appState:r,onSuccess:n,onError:i,updateItemsInStorage:o,onRemove:l}=e;const[s,c]=(0,Pn.useState)({authorName:"",githubHandle:"",name:"",description:"",twitterHandle:"",website:""}),[d,u]=(0,Pn.useState)(!1);(0,Pn.useEffect)((()=>{const e=(()=>{try{const e=localStorage.getItem(vd);if(e)return JSON.parse(e)}catch(e){console.error(e)}return null})();e&&c(e)}),[]);const[p,h]=(0,Pn.useState)(a.slice());(0,Pn.useEffect)((()=>{h(a.slice())}),[a]);const m=e=>{c(Object.assign(Object.assign({},s),{[e.target.name]:e.target.value}))},g=(0,Pn.useCallback)((()=>{o(p),(e=>{try{localStorage.setItem(vd,JSON.stringify(e))}catch(e){console.error(e)}})(s),t()}),[p,t,o,s]),f=!!a.length;return(0,Mn.jsx)(Nc,{onCloseRequest:g,title:At("publishDialog.title"),className:"publish-library",children:f?(0,Mn.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),u(!0);const t=[];let a=!1;if(p.forEach((e=>{let r="";e.name||(r=At("publishDialog.errors.required"),a=!0),t.push(Object.assign(Object.assign({},e),{error:r}))})),a)return h(t),void u(!1);const r=await(async e=>{const t=128,a=Math.round(8),r=Math.max(Math.round(2),2),n=((e,t)=>{if(!e.length)return[];let a=0,r=0;const n=Array(Math.ceil(e.length/6));for(;a<e.length;)n[r++]=e.slice(a,a+=6);return n})(e),i=document.createElement("canvas");i.width=n[0].length*t+(n[0].length+1)*(2*a)-2*a,i.height=n.length*t+(n.length+1)*(2*a)-2*a;const o=i.getContext("2d");o.fillStyle=Ae.white,o.fillRect(0,0,i.width,i.height);for(const[n,i]of e.entries()){const e=await Bp({elements:i.elements,files:null,maxWidthOrHeight:t}),{width:l,height:s}=e,c=Math.floor(n/6)*(t+2*a),d=n%6*(t+2*a);o.drawImage(e,d+(t-l)/2+a,c+(t-s)/2+a),o.lineWidth=r,o.strokeStyle=Ae.gray[4],o.strokeRect(d+a/2,c+a/2,t+a,t+a)}return await cs(new File([await ls(i)],"preview",{type:te.LO.png}),{outputType:te.LO.jpg,maxWidthOrHeight:5e3})})(p),o={type:te.r8.excalidrawLibrary,version:te.Kr.excalidrawLibrary,source:te.pb,libraryItems:p},l=JSON.stringify(o,null,2),c=new Blob([l],{type:"application/json"}),d=new FormData;d.append("excalidrawLib",c),d.append("previewImage",r),d.append("previewImageType",r.type),d.append("title",s.name),d.append("authorName",s.authorName),d.append("githubHandle",s.githubHandle),d.append("name",s.name),d.append("description",s.description),d.append("twitterHandle",s.twitterHandle),d.append("website",s.website),fetch("".concat(process.env.REACT_APP_LIBRARY_BACKEND,"/submit"),{method:"post",body:d}).then((e=>e.ok?e.json().then((e=>{let{url:t}=e;localStorage.removeItem(vd),n({url:t,authorName:s.authorName,items:p})})):e.json().catch((()=>{throw new Error(e.statusText||"something went wrong")})).then((t=>{throw new Error(t.message||e.statusText||"something went wrong")}))),(e=>{console.error(e),i(e),u(!1)})).catch((e=>{console.error(e),i(e),u(!1)}))},children:[(0,Mn.jsxs)("div",{className:"publish-library-note",children:[At("publishDialog.noteDescription.pre"),(0,Mn.jsx)("a",{href:"https://libraries.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:At("publishDialog.noteDescription.link")})," ",At("publishDialog.noteDescription.post")]}),(0,Mn.jsxs)("span",{className:"publish-library-note",children:[At("publishDialog.noteGuidelines.pre"),(0,Mn.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries#guidelines",target:"_blank",rel:"noopener noreferrer",children:At("publishDialog.noteGuidelines.link")}),At("publishDialog.noteGuidelines.post")]}),(0,Mn.jsx)("div",{className:"publish-library-note",children:At("publishDialog.noteItems")}),(()=>{const e=[];return p.forEach(((t,a)=>{e.push((0,Mn.jsx)("div",{className:"single-library-item-wrapper",children:(0,Mn.jsx)(bd,{libItem:t,appState:r,index:a,onChange:(e,t)=>{const a=p.slice();a[t].name=e,h(a)},onRemove:l})},a))})),(0,Mn.jsx)("div",{className:"selected-library-items",children:e})})(),(0,Mn.jsxs)("div",{className:"publish-library__fields",children:[(0,Mn.jsxs)("label",{children:[(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.libraryName")}),(0,Mn.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,Mn.jsx)("input",{type:"text",name:"name",required:!0,value:s.name,onChange:m,placeholder:At("publishDialog.placeholder.libraryName")})]}),(0,Mn.jsxs)("label",{style:{alignItems:"flex-start"},children:[(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.libraryDesc")}),(0,Mn.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,Mn.jsx)("textarea",{name:"description",rows:4,required:!0,value:s.description,onChange:m,placeholder:At("publishDialog.placeholder.libraryDesc")})]}),(0,Mn.jsxs)("label",{children:[(0,Mn.jsxs)("div",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.authorName")}),(0,Mn.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,Mn.jsx)("input",{type:"text",name:"authorName",required:!0,value:s.authorName,onChange:m,placeholder:At("publishDialog.placeholder.authorName")})]}),(0,Mn.jsxs)("label",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.githubUsername")}),(0,Mn.jsx)("input",{type:"text",name:"githubHandle",value:s.githubHandle,onChange:m,placeholder:At("publishDialog.placeholder.githubHandle")})]}),(0,Mn.jsxs)("label",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.twitterUsername")}),(0,Mn.jsx)("input",{type:"text",name:"twitterHandle",value:s.twitterHandle,onChange:m,placeholder:At("publishDialog.placeholder.twitterHandle")})]}),(0,Mn.jsxs)("label",{children:[(0,Mn.jsx)("span",{children:At("publishDialog.website")}),(0,Mn.jsx)("input",{type:"text",name:"website",pattern:"https?://.+",title:At("publishDialog.errors.website"),value:s.website,onChange:m,placeholder:At("publishDialog.placeholder.website")})]}),(0,Mn.jsxs)("span",{className:"publish-library-note",children:[At("publishDialog.noteLicense.pre"),(0,Mn.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:At("publishDialog.noteLicense.link")}),At("publishDialog.noteLicense.post")]})]}),(0,Mn.jsxs)("div",{className:"publish-library__buttons",children:[(0,Mn.jsx)(ru,{type:"button",title:At("buttons.cancel"),"aria-label":At("buttons.cancel"),label:At("buttons.cancel"),onClick:g,"data-testid":"cancel-clear-canvas-button",className:"publish-library__buttons--cancel"}),(0,Mn.jsx)(ru,{type:"submit",title:At("buttons.submit"),"aria-label":At("buttons.submit"),label:At("buttons.submit"),className:"publish-library__buttons--confirm",isLoading:d})]})]}):(0,Mn.jsx)("p",{style:{padding:"1em",textAlign:"center",fontWeight:500},children:At("publishDialog.atleastOneLibItem")})})};a(7749);var kd=a(6963),wd=(a(7539),function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a});const xd=e=>{const{onConfirm:t,onCancel:a,children:r,confirmText:n=At("buttons.confirm"),cancelText:i=At("buttons.cancel"),className:o=""}=e,l=wd(e,["onConfirm","onCancel","children","confirmText","cancelText","className"]);return(0,Mn.jsxs)(Nc,Object.assign(Object.assign({onCloseRequest:a,small:!0},l),{className:"confirm-dialog ".concat(o),children:[r,(0,Mn.jsxs)("div",{className:"confirm-dialog-buttons",children:[(0,Mn.jsx)(ru,{type:"button",title:i,"aria-label":i,label:i,onClick:a,className:"confirm-dialog--cancel"}),(0,Mn.jsx)(ru,{type:"button",title:n,"aria-label":n,label:n,onClick:t,className:"confirm-dialog--confirm"})]})]}))};a(8680);const Sd=(0,Mn.jsx)("svg",{viewBox:"0 0 1792 1792",children:(0,Mn.jsx)("path",{d:"M1600 736v192c0 26.667-9.33 49.333-28 68-18.67 18.67-41.33 28-68 28h-416v416c0 26.67-9.33 49.33-28 68s-41.33 28-68 28H800c-26.667 0-49.333-9.33-68-28s-28-41.33-28-68v-416H288c-26.667 0-49.333-9.33-68-28-18.667-18.667-28-41.333-28-68V736c0-26.667 9.333-49.333 28-68s41.333-28 68-28h416V224c0-26.667 9.333-49.333 28-68s41.333-28 68-28h192c26.67 0 49.33 9.333 68 28s28 41.333 28 68v416h416c26.67 0 49.33 9.333 68 28s28 41.333 28 68Z",style:{stroke:"#fff",strokeWidth:140},transform:"translate(0 64)"})}),_d=e=>{let{id:t,elements:a,files:r,isPending:n,onClick:i,selected:o,onToggle:l}=e;const s=(0,Pn.useRef)(null);(0,Pn.useEffect)((()=>{const e=s.current;if(e)return(async()=>{if(!a)return;const t=await Lp(a,{exportBackground:!1,viewBackgroundColor:Ae.white},r);e.innerHTML=t.outerHTML})(),()=>{e.innerHTML=""}}),[a,r]);const[c,d]=(0,Pn.useState)(!1),u=Rd(),p=n&&(0,Mn.jsx)("div",{className:"library-unit__adder",children:Sd});return(0,Mn.jsxs)("div",{className:jn("library-unit",{"library-unit__active":a,"library-unit--hover":a&&c,"library-unit--selected":o}),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[(0,Mn.jsx)("div",{className:jn("library-unit__dragger",{"library-unit__pulse":!!n}),ref:s,draggable:!!a,onClick:a||n?e=>{t&&e.shiftKey?l(t,e):i()}:void 0,onDragStart:e=>{d(!1),e.dataTransfer.setData(te.LO.excalidrawlib,JSON.stringify(a))}}),p,t&&a&&(c||u||o)&&(0,Mn.jsx)(ps,{checked:o,onChange:(e,a)=>l(t,a),className:"library-unit__checkbox"})]})};a(1234);const Ad=e=>{let{libraryItems:t,onRemoveFromLibrary:a,onAddToLibrary:r,onInsertShape:n,pendingElements:i,theme:o,setAppState:l,libraryReturnUrl:s,library:c,files:d,id:u,selectedItems:p,onToggle:h,onPublish:m,resetLibrary:g}=e;const f=(0,Pn.useCallback)((()=>{const e=p.length?At("alerts.removeItemsFromsLibrary",{count:p.length}):At("alerts.resetLibrary"),t=p.length?At("confirmDialog.removeItemsFromLib"):At("confirmDialog.resetLibrary");return(0,Mn.jsx)(xd,{onConfirm:()=>{p.length?a():g(),v(!1)},onCancel:()=>{v(!1)},title:t,children:(0,Mn.jsx)("p",{children:e})})}),[p,a,g]),[b,v]=(0,Pn.useState)(!1),y=Rd(),k=y?4:6,w=s||window.location.origin+window.location.pathname,x=p.some((e=>{var a;return"published"===(null===(a=t.find((t=>t.id===e)))||void 0===a?void 0:a.status)})),S=e=>{var t,a,r,n,i;return(0,Mn.jsx)(ms,{children:(0,Mn.jsx)(_d,{elements:null===(t=e.item)||void 0===t?void 0:t.elements,files:d,isPending:!(null!==(a=e.item)&&void 0!==a&&a.id||null===(r=e.item)||void 0===r||!r.elements),onClick:e.onClick||(()=>{}),id:(null===(n=e.item)||void 0===n?void 0:n.id)||null,selected:!(null===(i=e.item)||void 0===i||!i.id)&&p.includes(e.item.id),onToggle:(e,t)=>{h(e,t)}})},e.key)},_=e=>{const t=e.map((e=>e.id?S({item:e,onClick:()=>n(e.elements),key:e.id}):S({key:"__pending__item__",item:e,onClick:()=>r(i)})));let a=(0,kd.chunk)(t,k);return a.length||(a=[[]]),a.map(((e,t,a)=>(t===a.length-1&&(e=e.concat(new Array(k-e.length).fill(null).map(((e,t)=>S({key:"empty_".concat(t),item:null}))))),(0,Mn.jsx)(hs,{align:"center",gap:1,children:e},t))))},A=t.filter((e=>"published"===e.status)),E=[...i.length?[{id:null,elements:i}]:[],...t.filter((e=>"published"!==e.status))];return(0,Mn.jsxs)("div",{className:"library-menu-items-container",children:[b&&f(),(0,Mn.jsxs)("div",{className:"layer-ui__library-header",children:[(()=>{const e=!!p.length,a=e?t.filter((e=>p.includes(e.id))):t,r=At(e?"buttons.remove":"buttons.resetLibrary");return(0,Mn.jsxs)("div",{className:"library-actions",children:[(!e||!y)&&(0,Mn.jsx)(ru,{type:"button",title:At("buttons.load"),"aria-label":At("buttons.load"),icon:Xn,onClick:()=>{(async e=>{const t=await Kl({description:"Excalidraw library files"});await e.importLibrary(t)})(c).then((()=>{l({isLibraryOpen:!1}),l({isLibraryOpen:!0})})).catch(lt).catch((e=>{l({errorMessage:e.message})}))},className:"library-actions--load"},"import"),!!a.length&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(ru,{type:"button",title:At("buttons.export"),"aria-label":At("buttons.export"),icon:ni,onClick:async()=>{(async e=>{const t={type:te.r8.excalidrawLibrary,version:te.Kr.excalidrawLibrary,source:te.pb,libraryItems:e},a=JSON.stringify(t,null,2);await Wl(new Blob([a],{type:te.LO.excalidrawlib}),{name:"library",extension:"excalidrawlib",description:"Excalidraw library file"})})(e?a:await c.loadLibrary()).catch(lt).catch((e=>{l({errorMessage:e.message})}))},className:"library-actions--export",children:p.length>0&&(0,Mn.jsx)("span",{className:"library-actions-counter",children:p.length})},"export"),(0,Mn.jsx)(ru,{type:"button",title:r,"aria-label":r,icon:ei,onClick:()=>v(!0),className:"library-actions--remove",children:p.length>0&&(0,Mn.jsx)("span",{className:"library-actions-counter",children:p.length})},"reset")]}),e&&!x&&(0,Mn.jsx)(Go,{label:At("hints.publishLibrary"),children:(0,Mn.jsxs)(ru,{type:"button","aria-label":At("buttons.publishLibrary"),label:At("buttons.publishLibrary"),icon:lo,className:"library-actions--publish",onClick:m,children:[!y&&(0,Mn.jsx)("label",{children:At("buttons.publishLibrary")}),p.length>0&&(0,Mn.jsx)("span",{className:"library-actions-counter",children:p.length})]})})]})})(),(0,Mn.jsx)("a",{href:"".concat(process.env.REACT_APP_LIBRARY_URL,"?target=").concat(window.name||"_blank","&referrer=").concat(w,"&useHash=true&token=").concat(u,"&theme=").concat(o,"&version=").concat(te.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:At("labels.libraries")})]},"library-header"),(0,Mn.jsxs)(ms,{className:"library-menu-items-container__items",align:"start",gap:1,children:[(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("div",{className:"separator",children:At("labels.personalLib")}),_(E)]}),(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsxs)("div",{className:"separator",children:[At("labels.excalidrawLib")," "]}),_(A)]})]})]})},Ed=(e,t)=>e.filter((e=>t.includes(e.id))),Cd=e=>{let{onClose:t,onInsertShape:a,pendingElements:r,onAddToLibrary:n,theme:i,setAppState:o,files:l,libraryReturnUrl:s,focusContainer:c,library:d,id:u,appState:p}=e;const h=(0,Pn.useRef)(null);((e,t)=>{(0,Pn.useEffect)((()=>{const a=a=>{e.current&&(a.target instanceof Element&&(e.current.contains(a.target)||!document.body.contains(a.target))||t(a))};return document.addEventListener("pointerdown",a,!1),()=>{document.removeEventListener("pointerdown",a)}}),[e,t])})(h,(e=>{e.target.closest(".ToolIcon__library")||t()})),(0,Pn.useEffect)((()=>{const e=e=>{e.key===Oe.ESCAPE&&t()};return document.addEventListener(te.Ks.KEYDOWN,e),()=>{document.removeEventListener(te.Ks.KEYDOWN,e)}}),[t]);const[m,g]=(0,Pn.useState)([]),[f,b]=(0,Pn.useState)("preloading"),[v,y]=(0,Pn.useState)([]),[k,w]=(0,Pn.useState)(!1),[x,S]=(0,Pn.useState)(null),_=(0,Pn.useRef)(null);(0,Pn.useEffect)((()=>(Promise.race([new Promise((e=>{_.current=window.setTimeout((()=>{e("loading")}),100)})),d.loadLibrary().then((e=>{g(e),b("ready")}))]).then((e=>{"loading"===e&&b("loading")})),()=>{clearTimeout(_.current)})),[d]);const A=(0,Pn.useCallback)((async()=>{const e=await d.loadLibrary(),t=e.filter((e=>!v.includes(e.id)));d.saveLibrary(t).catch((t=>{g(e),o({errorMessage:At("alerts.errorRemovingFromLibrary")})})),y([]),g(t)}),[d,o,v,y]),E=(0,Pn.useCallback)((()=>{d.resetLibrary(),g([]),c()}),[d,c]),C=(0,Pn.useCallback)((async e=>{if(e.some((e=>"image"===e.type)))return o({errorMessage:"Support for adding images to the library coming soon!"});const t=await d.loadLibrary(),a=[{status:"unpublished",elements:e,id:oa(),created:Date.now()},...t];n(),d.saveLibrary(a).catch((e=>{g(t),o({errorMessage:At("alerts.errorAddingToLibrary")})})),g(a)}),[n,d,o]),T=(0,Pn.useCallback)((()=>(0,Mn.jsxs)(Nc,{onCloseRequest:()=>S(null),title:At("publishSuccessDialog.title"),className:"publish-library-success",small:!0,children:[(0,Mn.jsxs)("p",{children:[At("publishSuccessDialog.content",{authorName:x.authorName})," ",(0,Mn.jsx)("a",{href:null==x?void 0:x.url,target:"_blank",rel:"noopener noreferrer",children:At("publishSuccessDialog.link")})]}),(0,Mn.jsx)(ru,{type:"button",title:At("buttons.close"),"aria-label":At("buttons.close"),label:At("buttons.close"),onClick:()=>S(null),"data-testid":"publish-library-success-close",className:"publish-library-success-close"})]})),[S,x]),z=(0,Pn.useCallback)((e=>{w(!1),S({url:e.url,authorName:e.authorName});const t=m.slice();t.forEach((e=>{v.includes(e.id)&&(e.status="published")})),d.saveLibrary(t),g(t)}),[w,S,m,v,d]),[I,L]=(0,Pn.useState)(null);return"preloading"===f?null:(0,Mn.jsxs)(Bc,{padding:1,ref:h,className:"layer-ui__library",children:[k&&(0,Mn.jsx)(yd,{onClose:()=>w(!1),libraryItems:Ed(m,v),appState:p,onSuccess:z,onError:e=>window.alert(e),updateItemsInStorage:()=>d.saveLibrary(m),onRemove:e=>y(v.filter((t=>t!==e)))}),x&&T(),"loading"===f?(0,Mn.jsx)("div",{className:"layer-ui__library-message",children:At("labels.libraryLoadingMessage")}):(0,Mn.jsx)(Ad,{libraryItems:m,onRemoveFromLibrary:A,onAddToLibrary:C,onInsertShape:a,pendingElements:r,setAppState:o,libraryReturnUrl:s,library:d,theme:i,files:l,id:u,selectedItems:v,onToggle:(e,t)=>{if(v.includes(e))L(null),y(v.filter((t=>t!==e)));else{if(t.shiftKey&&I){const t=m.findIndex((e=>e.id===I)),a=m.findIndex((t=>t.id===e));if(-1===t||-1===a)return void y([...v,e]);const r=pt(v),n=m.reduce(((e,n,i)=>((i>=t&&i<=a||r.has(n.id))&&e.push(n.id),e)),[]);y(n)}else y([...v,e]);L(e)}},onPublish:()=>w(!0),resetLibrary:E})]})};a(8465),a(5892);const Td=e=>{let{actionManager:t,appState:a,files:r,setAppState:n,canvas:i,elements:o,onCollabButtonClick:l,onLockToggle:s,onPenModeToggle:c,onInsertElements:d,zenModeEnabled:u,showExitZenModeBtn:p,showThemeBtn:h,toggleZenMode:m,isCollaborating:g,renderTopRightUI:f,renderCustomFooter:b,viewModeEnabled:v,libraryReturnUrl:y,UIOptions:k,focusContainer:w,library:x,id:S,onImageAction:_}=e;const A=Rd(),E=()=>k.canvasActions.export?(0,Mn.jsx)(fd,{elements:o,appState:a,files:r,actionManager:t,exportOpts:k.canvasActions.export,canvas:i}):null,C=()=>{if(!k.canvasActions.saveAsImage)return null;const e=e=>async t=>{const i=await us(e,t,a,r,{exportBackground:a.exportBackground,name:a.name,viewBackgroundColor:a.viewBackgroundColor}).catch(lt).catch((e=>{console.error(e),n({errorMessage:e.message})}));a.exportEmbedScene&&i&&ns(i)&&n({fileHandle:i})};return(0,Mn.jsx)(Uc,{elements:o,appState:a,files:r,actionManager:t,onExportToPng:e("png"),onExportToSvg:e("svg"),onExportToClipboard:e("clipboard")})},T=()=>(0,Mn.jsx)("div",{style:{width:".625em"}}),z=(0,Pn.useCallback)((()=>{document.querySelector(".Dialog")||n({isLibraryOpen:!1})}),[n]),I=(0,Pn.useCallback)((()=>{n({selectedElementIds:{},selectedGroupIds:{}})}),[n]),L=a.isLibraryOpen?(0,Mn.jsx)(Cd,{pendingElements:ca(o,a,!0),onClose:z,onInsertShape:d,onAddToLibrary:I,setAppState:n,libraryReturnUrl:y,focusContainer:w,library:x,theme:a.theme,files:r,id:S,appState:a}):null,j=(0,Mn.jsxs)(Mn.Fragment,{children:[a.isLoading&&(0,Mn.jsx)(qc,{}),a.errorMessage&&(0,Mn.jsx)(Oc,{message:a.errorMessage,onClose:()=>n({errorMessage:null})}),a.showHelpDialog&&(0,Mn.jsx)(hd,{onClose:()=>{n({showHelpDialog:!1})}}),a.pasteDialog.shown&&(0,Mn.jsx)(id,{setAppState:n,appState:a,onInsertChart:d,onClose:()=>n({pasteDialog:{shown:!1,data:null}})})]});return A?(0,Mn.jsxs)(Mn.Fragment,{children:[j,(0,Mn.jsx)(rd,{appState:a,elements:o,actionManager:t,libraryMenu:L,renderJSONExportDialog:E,renderImageExportDialog:C,setAppState:n,onCollabButtonClick:l,onLockToggle:s,onPenModeToggle:c,canvas:i,isCollaborating:g,renderCustomFooter:b,viewModeEnabled:v,showThemeBtn:h,onImageAction:_,renderTopRightUI:f})]}):(0,Mn.jsxs)("div",{className:jn("layer-ui__wrapper",{"disable-pointerEvents":a.draggingElement||a.resizingElement||a.editingElement&&!me(a.editingElement)}),children:[j,(()=>{const e=uu(a,o);return(0,Mn.jsx)(Kc,{side:"top",children:(0,Mn.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,Mn.jsxs)(ms,{gap:4,className:jn({"disable-pointerEvents":u}),children:[v?(0,Mn.jsx)(Yc,{heading:"canvasActions",className:jn("zen-mode-transition",{"transition-left":u}),children:(0,Mn.jsx)(Bc,{padding:2,style:{zIndex:1},children:(0,Mn.jsx)(ms,{gap:4,children:(0,Mn.jsxs)(hs,{gap:1,justifyContent:"space-between",children:[E(),C()]})})})}):(0,Mn.jsx)(Yc,{heading:"canvasActions",className:jn("zen-mode-transition",{"transition-left":u}),children:(0,Mn.jsx)(Bc,{padding:2,style:{zIndex:1},children:(0,Mn.jsxs)(ms,{gap:4,children:[(0,Mn.jsxs)(hs,{gap:1,justifyContent:"space-between",children:[t.renderAction("clearCanvas"),(0,Mn.jsx)(T,{}),t.renderAction("loadScene"),E(),C(),(0,Mn.jsx)(T,{}),l&&(0,Mn.jsx)(Mc,{isCollaborating:g,collaboratorCount:a.collaborators.size,onClick:l})]}),(0,Mn.jsx)(jc,{actionManager:t,appState:a,setAppState:n,showThemeBtn:h}),a.fileHandle&&(0,Mn.jsx)(Mn.Fragment,{children:t.renderAction("saveToActiveFile")})]})})}),e&&(0,Mn.jsx)(Yc,{heading:"selectedShapeActions",className:jn("zen-mode-transition",{"transition-left":u}),children:(0,Mn.jsx)(Bc,{className:te.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(a.height-(a.fileHandle?248:200),"px")},children:(0,Mn.jsx)(zc,{appState:a,elements:o,renderAction:t.renderAction,elementType:a.elementType})})})]}),!v&&(0,Mn.jsx)(Yc,{heading:"shapes",children:e=>(0,Mn.jsxs)(ms,{gap:4,align:"start",children:[(0,Mn.jsxs)(hs,{gap:1,className:jn("App-toolbar-container",{"zen-mode":u}),children:[(0,Mn.jsx)(ad,{zenModeEnabled:u,checked:a.penMode,onChange:c,title:At("toolBar.penMode"),penDetected:a.penDetected}),(0,Mn.jsx)(Qc,{zenModeEnabled:u,checked:a.elementLocked,onChange:s,title:At("toolBar.lock")}),(0,Mn.jsxs)(Bc,{padding:1,className:jn("App-toolbar",{"zen-mode":u}),children:[(0,Mn.jsx)(Wc,{appState:a,elements:o,isMobile:A}),e,(0,Mn.jsx)(hs,{gap:1,children:(0,Mn.jsx)(Ic,{canvas:i,elementType:a.elementType,setAppState:n,onImageAction:e=>{let{pointerType:t}=e;_({insertOnCanvasDirectly:"mouse"!==t})}})})]}),(0,Mn.jsx)($c,{appState:a,setAppState:n})]}),L]})}),(0,Mn.jsxs)("div",{className:jn("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":u}),children:[(0,Mn.jsx)(Jc,{children:a.collaborators.size>0&&Array.from(a.collaborators).filter((e=>{let[t,a]=e;return 0!==Object.keys(a).length})).map((e=>{let[a,r]=e;return(0,Mn.jsx)(Go,{label:r.username||"Unknown user",children:t.renderAction("goToCollaborator",{id:a})},a)}))}),null==f?void 0:f(A,a)]})]})})})(),(0,Mn.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,Mn.jsx)("div",{className:jn("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":u}),children:(0,Mn.jsx)(ms,{gap:2,children:(0,Mn.jsxs)(Yc,{heading:"canvasActions",children:[(0,Mn.jsx)(Bc,{padding:1,children:(0,Mn.jsx)(Lc,{renderAction:t.renderAction,zoom:a.zoom})}),!v&&(0,Mn.jsxs)("div",{className:jn("undo-redo-buttons zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":u}),children:[t.renderAction("undo",{size:"small"}),t.renderAction("redo",{size:"small"})]})]})})}),(0,Mn.jsx)("div",{className:jn("layer-ui__wrapper__footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":u}),children:null==b?void 0:b(!1,a)}),(0,Mn.jsx)("div",{className:jn("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right disable-pointerEvents":u}),children:t.renderAction("toggleShortcuts")}),(0,Mn.jsx)("button",{className:jn("disable-zen-mode",{"disable-zen-mode--visible":p}),onClick:m,children:At("buttons.exitZenMode")})]}),a.scrolledOutside&&(0,Mn.jsx)("button",{className:"scroll-back-to-content",onClick:()=>{n(Object.assign({},pa(o,a)))},children:At("buttons.scrollBackToContent")})]})},zd=(e,t)=>{const a=e=>{const{suggestedBindings:t,startBoundElement:a}=e;return function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a}(e,["suggestedBindings","startBoundElement"])},r=a(e.appState),n=a(t.appState),i=Object.keys(r);return e.renderCustomFooter===t.renderCustomFooter&&e.langCode===t.langCode&&e.elements===t.elements&&e.files===t.files&&i.every((e=>r[e]===n[e]))},Id=Pn.memo(Td,zd);a(7287);const Ld=e=>{var t;const a=Rd(),r=_p(e.elements),n=da(e.elements,e.appState),i=_p(n);return a&&e.appState.openMenu?null:(0,Mn.jsx)("div",{className:"Stats",children:(0,Mn.jsxs)(Bc,{padding:2,children:[(0,Mn.jsx)("div",{className:"close",onClick:e.onClose,children:Ai}),(0,Mn.jsx)("h3",{children:At("stats.title")}),(0,Mn.jsx)("table",{children:(0,Mn.jsxs)("tbody",{children:[(0,Mn.jsx)("tr",{children:(0,Mn.jsx)("th",{colSpan:2,children:At("stats.scene")})}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.elements")}),(0,Mn.jsx)("td",{children:e.elements.length})]}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.width")}),(0,Mn.jsx)("td",{children:Math.round(r[2])-Math.round(r[0])})]}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.height")}),(0,Mn.jsx)("td",{children:Math.round(r[3])-Math.round(r[1])})]}),1===n.length&&(0,Mn.jsx)("tr",{children:(0,Mn.jsx)("th",{colSpan:2,children:At("stats.element")})}),n.length>1&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)("tr",{children:(0,Mn.jsx)("th",{colSpan:2,children:At("stats.selected")})}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.elements")}),(0,Mn.jsx)("td",{children:n.length})]})]}),n.length>0&&(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:"x"}),(0,Mn.jsx)("td",{children:Math.round(i[0])})]}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:"y"}),(0,Mn.jsx)("td",{children:Math.round(i[1])})]}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.width")}),(0,Mn.jsx)("td",{children:Math.round(i[2]-i[0])})]}),(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.height")}),(0,Mn.jsx)("td",{children:Math.round(i[3]-i[1])})]})]}),1===n.length&&(0,Mn.jsxs)("tr",{children:[(0,Mn.jsx)("td",{children:At("stats.angle")}),(0,Mn.jsx)("td",{children:"".concat(Math.round(180*n[0].angle/Math.PI),"°")})]}),null===(t=e.renderCustomStats)||void 0===t?void 0:t.call(e,e.elements,e.appState)]})})]})})};a(5849);const jd=e=>{let{message:t,clearToast:a}=e;const r=(0,Pn.useRef)(0),n=(0,Pn.useCallback)((()=>r.current=window.setTimeout((()=>a()),te.Lg)),[a]);return(0,Pn.useEffect)((()=>(n(),()=>clearTimeout(r.current))),[n,t]),(0,Mn.jsx)("div",{className:"Toast",onMouseEnter:()=>clearTimeout(null==r?void 0:r.current),onMouseLeave:n,children:(0,Mn.jsx)("p",{className:"Toast__message",children:t})})},Md=uo({name:"viewMode",perform(e,t){return Oo("view","mode","view"),{appState:Object.assign(Object.assign({},t),{viewModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:e=>e.viewModeEnabled,contextItemLabel:"labels.viewMode",keyTest:e=>!e[Oe.CTRL_OR_CMD]&&e.altKey&&"KeyR"===e.code}),Bd=e=>new Promise(((t,a)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=e=>{a(e)},r.src=e})),Pd=async e=>{let{fileIds:t,files:a,imageCache:r}=e;const n=new Map,i=new Map;return await Promise.all(t.reduce(((e,t)=>{const o=a[t];return o&&!n.has(t)?(n.set(t,!0),e.concat((async()=>{try{if(o.mimeType===te.LO.binary)throw new Error("Only images can be added to ImageCache");const e=Bd(o.dataURL),a={image:e,mimeType:o.mimeType};r.set(t,a);const n=await e;r.set(t,Object.assign(Object.assign({},a),{image:n}))}catch(e){i.set(t,!0)}})())):e}),[])),{imageCache:r,updatedFiles:n,erroredFiles:i}},Dd=e=>e.filter((e=>pe(e)));var Nd=a(8409),Od=a.n(Nd);const Fd=Pn.createContext(!1),Rd=()=>(0,Pn.useContext)(Fd),Hd=Pn.createContext({container:null,id:null}),Gd=()=>(0,Pn.useContext)(Hd);let Vd=!1,Ud=0,Kd=0,Wd=0,qd=!1,Zd=!1,Qd=!1,Yd={horizontal:null,vertical:null},Jd=0,Xd=!1,$d=null;const eu={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null};class tu extends Pn.Component{constructor(e){var t;super(e),t=this,Xt(this,"canvas",null),Xt(this,"rc",null),Xt(this,"unmounted",!1),Xt(this,"isMobile",!1),Xt(this,"excalidrawContainerRef",Pn.createRef()),Xt(this,"files",{}),Xt(this,"imageCache",new Map),Xt(this,"lastPointerDown",null),Xt(this,"lastPointerUp",null),Xt(this,"contextMenuOpen",!1),Xt(this,"focusContainer",(()=>{var e;this.props.autoFocus&&(null===(e=this.excalidrawContainerRef.current)||void 0===e||e.focus())})),Xt(this,"getSceneElementsIncludingDeleted",(()=>this.scene.getElementsIncludingDeleted())),Xt(this,"getSceneElements",(()=>this.scene.getElements())),Xt(this,"syncActionResult",ct((e=>{if(this.contextMenuOpen=!1,this.unmounted||!1===e)return;let t=null;if(e.elements&&(e.elements.forEach((e=>{var a;(null===(a=this.state.editingElement)||void 0===a?void 0:a.id)===e.id&&this.state.editingElement!==e&&mu(e)&&(t=e)})),this.scene.replaceAllElements(e.elements),e.commitToHistory&&this.history.resumeRecording()),e.files&&(this.files=e.replaceFiles?e.files:Object.assign(Object.assign({},this.files),e.files),this.addNewImagesToImageCache()),e.appState||t){var a,r,n,i,o,l;e.commitToHistory&&this.history.resumeRecording();let s=(null==e||null===(a=e.appState)||void 0===a?void 0:a.viewModeEnabled)||!1,c=(null==e||null===(r=e.appState)||void 0===r?void 0:r.zenModeEnabled)||!1,d=(null==e||null===(n=e.appState)||void 0===n?void 0:n.gridSize)||null,u=(null==e||null===(i=e.appState)||void 0===i?void 0:i.theme)||te.C6.LIGHT,p=null!==(o=null==e||null===(l=e.appState)||void 0===l?void 0:l.name)&&void 0!==o?o:this.state.name;void 0!==this.props.viewModeEnabled&&(s=this.props.viewModeEnabled),void 0!==this.props.zenModeEnabled&&(c=this.props.zenModeEnabled),void 0!==this.props.gridModeEnabled&&(d=this.props.gridModeEnabled?te.k:null),void 0!==this.props.theme&&(u=this.props.theme),void 0!==this.props.name&&(p=this.props.name),this.setState((a=>{var r;return Object.assign(e.appState||{},{editingElement:t||(null===(r=e.appState)||void 0===r?void 0:r.editingElement)||null,viewModeEnabled:s,zenModeEnabled:c,gridSize:d,theme:u,name:p})}),(()=>{e.syncHistory&&this.history.setCurrentState(this.state,this.scene.getElementsIncludingDeleted())}))}}))),Xt(this,"onBlur",ct((()=>{qd=!1,this.setState({isBindingEnabled:!0})}))),Xt(this,"onUnload",(()=>{this.onBlur()})),Xt(this,"disableEvent",(e=>{e.preventDefault()})),Xt(this,"onFontLoaded",(()=>{this.scene.getElementsIncludingDeleted().forEach((e=>{me(e)&&ap(e)})),this.onSceneUpdated()})),Xt(this,"importLibraryFromUrl",(async(e,t)=>{if(window.location.hash.includes(te.ah.addLibrary)){const e=new URLSearchParams(window.location.hash.slice(1));e.delete(te.ah.addLibrary),window.history.replaceState({},te.iC,"#".concat(e.toString()))}else if(window.location.search.includes(te.UO.addLibrary)){const e=new URLSearchParams(window.location.search);e.delete(te.UO.addLibrary),window.history.replaceState({},te.iC,"?".concat(e.toString()))}try{const a=await fetch(decodeURIComponent(e)),r=await a.blob(),n=JSON.parse(await r.text());if(!(e=>"object"==typeof e&&e&&e.type===te.r8.excalidrawLibrary&&(1===e.version||2===e.version))(n))throw new Error;(t===this.id||window.confirm(At("alerts.confirmAddLibrary",{numShapes:(n.libraryItems||n.library||[]).length})))&&(await this.library.importLibrary(r,"published"),this.state.isLibraryOpen&&this.setState({isLibraryOpen:!1}),this.setState({isLibraryOpen:!0}))}catch(e){window.alert(At("alerts.errorLoadingLibrary")),console.error(e)}finally{this.focusContainer()}})),Xt(this,"resetHistory",(()=>{this.history.clear()})),Xt(this,"resetScene",ct((e=>{this.scene.replaceAllElements([]),this.setState((t=>Object.assign(Object.assign({},Ct()),{isLoading:(null==e||!e.resetLoadingState)&&t.isLoading,theme:this.state.theme}))),this.resetHistory()}))),Xt(this,"initializeScene",(async()=>{var e;"launchQueue"in window&&"LaunchParams"in window&&window.launchQueue.setConsumer((async e=>{if(!e.files.length)return;const t=e.files[0],a=await t.getFile();a.handle=t,os(a,this.state,this.scene.getElementsIncludingDeleted()).then((e=>{this.syncActionResult(Object.assign(Object.assign({},e),{appState:Object.assign(Object.assign({},e.appState||this.state),{isLoading:!1}),commitToHistory:!0}))})).catch((e=>{this.setState({isLoading:!1,errorMessage:e.message})}))})),this.state.isLoading||this.setState({isLoading:!0});let t=null;try{var a;t=await this.props.initialData||null,null!==(a=t)&&void 0!==a&&a.libraryItems&&(this.libraryItemsFromStorage=ts(t.libraryItems,"unpublished"))}catch(e){console.error(e),t={appState:{errorMessage:e.message||"Encountered an error during importing or restoring scene data"}}}const r=es(t,null,null);r.appState=Object.assign(Object.assign({},r.appState),{elementType:"image"===r.appState.elementType?"selection":r.appState.elementType,isLoading:!1}),null!==(e=t)&&void 0!==e&&e.scrollToContent&&(r.appState=Object.assign(Object.assign({},r.appState),pa(r.elements,Object.assign(Object.assign({},r.appState),{width:this.state.width,height:this.state.height,offsetTop:this.state.offsetTop,offsetLeft:this.state.offsetLeft})))),this.resetHistory(),this.syncActionResult(Object.assign(Object.assign({},r),{commitToHistory:!0}));const n=new URLSearchParams(window.location.hash.slice(1)).get(te.ah.addLibrary)||new URLSearchParams(window.location.search).get(te.UO.addLibrary);n&&await this.importLibraryFromUrl(n)})),Xt(this,"onResize",ct((()=>{this.scene.getElementsIncludingDeleted().forEach((e=>ap(e))),this.setState({})}))),Xt(this,"onScroll",Ze((()=>{const{offsetTop:e,offsetLeft:t}=this.getCanvasOffsets();this.setState((a=>a.offsetLeft===t&&a.offsetTop===e?null:{offsetTop:e,offsetLeft:t}))}),te.HM)),Xt(this,"onCut",ct((e=>{var t;(null===(t=this.excalidrawContainerRef.current)||void 0===t?void 0:t.contains(document.activeElement))&&!Ke(e.target)&&(this.cutAll(),e.preventDefault())}))),Xt(this,"onCopy",ct((e=>{var t;(null===(t=this.excalidrawContainerRef.current)||void 0===t?void 0:t.contains(document.activeElement))&&!Ke(e.target)&&(this.copyAll(),e.preventDefault())}))),Xt(this,"cutAll",(()=>{this.copyAll(),this.actionManager.executeAction(vo)})),Xt(this,"copyAll",(()=>{dl(this.scene.getElements(),this.state,this.files)})),Xt(this,"onTapStart",(e=>{if(Le||e.preventDefault(),!Vd)return Vd=!0,clearTimeout(Ud),void(Ud=window.setTimeout(tu.resetTapTwice,te.Gj));if(Vd&&1===e.touches.length){const[t]=e.touches;this.handleCanvasDoubleClick({clientX:t.clientX,clientY:t.clientY}),Vd=!1,clearTimeout(Ud)}Le&&e.preventDefault(),2===e.touches.length&&this.setState({selectedElementIds:{}})})),Xt(this,"onTapEnd",(e=>{this.resetContextMenuTimer(),e.touches.length>0?this.setState({previousSelectedElementIds:{},selectedElementIds:this.state.previousSelectedElementIds}):eu.pointers.clear()})),Xt(this,"pasteFromClipboard",ct((async e=>{var t,a;const r=document.activeElement;if(!(null===(t=this.excalidrawContainerRef.current)||void 0===t?void 0:t.contains(r)))return;const n=document.elementFromPoint(Kd,Wd);if(e&&(!(n instanceof HTMLCanvasElement)||Ke(r)))return;let i=null==e||null===(a=e.clipboardData)||void 0===a?void 0:a.files[0];const o=await pl(e);if(!i&&o.text){const e=o.text.trim();e.startsWith("<svg")&&e.endsWith("</svg>")&&(i=ds(e))}if(is(i)&&!o.spreadsheet){const{x:e,y:t}=tt({clientX:Kd,clientY:Wd},this.state),a=this.createImageElement({sceneX:e,sceneY:t});return this.insertImageElement(a,i),this.initializeImageDimensions(a),void this.setState({selectedElementIds:{[a.id]:!0}})}if(this.props.onPaste)try{if(!1===await this.props.onPaste(o,e))return}catch(e){console.error(e)}o.errorMessage?this.setState({errorMessage:o.errorMessage}):o.spreadsheet?this.setState({pasteDialog:{data:o.spreadsheet,shown:!0}}):o.elements?this.addElementsFromPasteOrLibrary({elements:o.elements,files:o.files||null,position:"cursor"}):o.text&&this.addTextFromPaste(o.text),this.selectShapeTool("selection"),null==e||e.preventDefault()}))),Xt(this,"addElementsFromPasteOrLibrary",(e=>{const t=Xl(e.elements,null),[a,r,n,i]=_p(t),o=Qe(a,n)/2,l=Qe(r,i)/2,s="object"==typeof e.position?e.position.clientX:"cursor"===e.position?Kd:this.state.width/2+this.state.offsetLeft,c="object"==typeof e.position?e.position.clientY:"cursor"===e.position?Wd:this.state.height/2+this.state.offsetTop,{x:d,y:u}=tt({clientX:s,clientY:c},this.state),p=d-o,h=u-l,m=new Map,[g,f]=ue(p,h,this.state.gridSize),b=new Map,v=t.map((e=>{const t=Oa(this.state.editingGroupId,m,e,{x:e.x+g-a,y:e.y+f-r});return b.set(e.id,t.id),t}));Au(v,t,b);const y=[...this.scene.getElementsIncludingDeleted(),...v];wn(y,t,b),e.files&&(this.files=Object.assign(Object.assign({},this.files),e.files)),this.scene.replaceAllElements(y),this.history.resumeRecording(),this.setState(Ca(Object.assign(Object.assign({},this.state),{isLibraryOpen:!1,selectedElementIds:v.reduce(((e,t)=>(_e(t)||(e[t.id]=!0),e)),{}),selectedGroupIds:{}}),this.scene.getElements()),(()=>{e.files&&this.addNewImagesToImageCache()})),this.selectShapeTool("selection")})),Xt(this,"setAppState",(e=>{this.setState(e)})),Xt(this,"removePointer",(e=>{Jd&&this.resetContextMenuTimer(),eu.pointers.delete(e.pointerId)})),Xt(this,"toggleLock",(()=>{this.setState((e=>({elementLocked:!e.elementLocked,elementType:e.elementLocked?"selection":e.elementType})))})),Xt(this,"togglePenMode",(()=>{this.setState((e=>({penMode:!e.penMode})))})),Xt(this,"toggleZenMode",(()=>{this.actionManager.executeAction(Gs)})),Xt(this,"toggleStats",(()=>{this.state.showStats||Oo("dialog","stats"),this.actionManager.executeAction(Vs)})),Xt(this,"scrollToContent",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.scene.getElements();t.setState(Object.assign({},pa(Array.isArray(e)?e:[e],t.state,t.canvas)))})),Xt(this,"clearToast",(()=>{this.setState({toastMessage:null})})),Xt(this,"setToastMessage",(e=>{this.setState({toastMessage:e})})),Xt(this,"restoreFileFromShare",(async()=>{try{const e=await caches.open("web-share-target"),t=await e.match("shared-file");if(t){const a=await t.blob();this.loadFileToCanvas(a),await e.delete("shared-file"),window.history.replaceState(null,te.iC,window.location.pathname)}}catch(e){this.setState({errorMessage:e.message})}})),Xt(this,"addFiles",ct((e=>{const t=e.reduce(((e,t)=>(e.set(t.id,t),e)),new Map);this.files=Object.assign(Object.assign({},this.files),Object.fromEntries(t)),this.scene.getElements().forEach((e=>{pe(e)&&t.has(e.fileId)&&(this.imageCache.delete(e.fileId),ap(e))})),this.scene.informMutation(),this.addNewImagesToImageCache()}))),Xt(this,"updateScene",ct((e=>{e.commitToHistory&&this.history.resumeRecording(),e.appState&&this.setState(e.appState),e.elements&&this.scene.replaceAllElements(e.elements),e.collaborators&&this.setState({collaborators:e.collaborators}),e.libraryItems&&this.library.saveLibrary(ts(e.libraryItems,"unpublished"))}))),Xt(this,"onSceneUpdated",(()=>{this.setState({})})),Xt(this,"updateCurrentCursorPosition",ct((e=>{Kd=e.clientX,Wd=e.clientY}))),Xt(this,"onKeyDown",ct((e=>{var t;if(!("Proxy"in window&&(!e.shiftKey&&/^[A-Z]$/.test(e.key)||e.shiftKey&&/^[a-z]$/.test(e.key))&&(e=new Proxy(e,{get(t,a){const r=t[a];return"function"==typeof r?r.bind(t):"key"===a?e.shiftKey?t.key.toUpperCase():t.key.toLowerCase():r}})),Ke(e.target)&&e.key!==Oe.ESCAPE||Fe(e.key)&&(t=e.target,t instanceof HTMLElement&&"wysiwyg"===t.dataset.type||t instanceof HTMLBRElement||t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)||(e.key===Oe.QUESTION_MARK&&this.setState({showHelpDialog:!0}),this.actionManager.handleKeyDown(e)||this.state.viewModeEnabled))){if(e[Oe.CTRL_OR_CMD]&&this.state.isBindingEnabled&&this.setState({isBindingEnabled:!1}),e.code===Be&&this.setState({isLibraryOpen:!this.state.isLibraryOpen}),Fe(e.key)){const t=this.state.gridSize&&(e.shiftKey?te.$e:this.state.gridSize)||(e.shiftKey?te.Iw:te.$e),a=ca(this.scene.getElements(),this.state,!0);let r=0,n=0;e.key===Oe.ARROW_LEFT?r=-t:e.key===Oe.ARROW_RIGHT?r=t:e.key===Oe.ARROW_UP?n=-t:e.key===Oe.ARROW_DOWN&&(n=t),a.forEach((e=>{wu(e,{x:e.x+r,y:e.y+n}),pn(e,{simultaneouslyUpdated:a})})),this.maybeSuggestBindingForAll(a),e.preventDefault()}else if(e.key===Oe.ENTER){const t=ca(this.scene.getElements(),this.state);if(1===t.length&&be(t[0]))this.state.editingLinearElement&&this.state.editingLinearElement.elementId===t[0].id||(this.history.resumeRecording(),this.setState({editingLinearElement:new Yr(t[0],this.scene)}));else if(1===t.length&&!be(t[0])){const a=t[0];return this.startTextEditing({sceneX:a.x+a.width/2,sceneY:a.y+a.height/2,shouldBind:!0}),void e.preventDefault()}}else if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&null===this.state.draggingElement){const t=(e=>{const t=Sc.find(((t,a)=>e===(a+1).toString()||t.key&&("string"==typeof t.key?t.key===e:t.key.includes(e))));return(null==t?void 0:t.value)||null})(e.key);t?this.selectShapeTool(t):e.key===Oe.Q&&this.toggleLock()}if(e.key===Oe.SPACE&&0===eu.pointers.size&&(qd=!0,Je(this.canvas,te.oc.GRABBING),e.preventDefault()),e.key===Oe.G||e.key===Oe.S){const t=ca(this.scene.getElements(),this.state);if("selection"===this.state.elementType&&!t.length)return;e.key===Oe.G&&(ha(this.state.elementType)||t.some((e=>ha(e.type))))&&this.setState({openPopup:"backgroundColorPicker"}),e.key===Oe.S&&this.setState({openPopup:"strokeColorPicker"})}}}))),Xt(this,"onKeyUp",ct((e=>{if(e.key===Oe.SPACE&&(this.state.viewModeEnabled?Je(this.canvas,te.oc.GRAB):"selection"===this.state.elementType?Ye(this.canvas):(Xe(this.canvas,this.state.elementType),this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),qd=!1),e[Oe.CTRL_OR_CMD]||this.state.isBindingEnabled||this.setState({isBindingEnabled:!0}),Fe(e.key)){const e=ca(this.scene.getElements(),this.state);Xr(this.state)?tn(e):sn(e),this.setState({suggestedBindings:[]})}}))),Xt(this,"onGestureStart",ct((e=>{e.preventDefault(),this.setState({selectedElementIds:{}}),eu.initialScale=this.state.zoom.value}))),Xt(this,"onGestureChange",ct((e=>{if(e.preventDefault(),eu.pointers.size>=2)return;const t=eu.initialScale;t&&this.setState((a=>Object.assign({},xa({viewportX:Kd,viewportY:Wd,nextZoom:wa(t*e.scale)},a))))}))),Xt(this,"onGestureEnd",ct((e=>{e.preventDefault(),this.setState({previousSelectedElementIds:{},selectedElementIds:this.state.previousSelectedElementIds}),eu.initialScale=null}))),Xt(this,"startTextEditing",(e=>{var t,a,r,n,i;let{sceneX:o,sceneY:l,shouldBind:s,insertAtParentCenter:c=!0}=e,d=c&&this.getTextWysiwygSnappedToCenterPosition(o,l,this.state,this.canvas,window.devicePixelRatio),u=null,p=null;const h=ca(this.scene.getElements(),this.state);if(1===h.length&&(me(h[0])?u=h[0]:xe(h[0])&&(p=h[0],u=Fu(p))),u=null!==(t=u)&&void 0!==t?t:this.getTextElementAtPosition(o,l),p||u||!s&&!d||(p=ka(this.scene.getElements().filter((e=>!me(e))),o,l)),!u&&p){const e={fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily},t=Pu(qe(e)),a=Du(qe(e)),r=Math.max(p.height,a),n=Math.max(p.width,t);wu(p,{height:r,width:n}),o=p.x+n/2,l=p.y+r/2,d&&(d=this.getTextWysiwygSnappedToCenterPosition(o,l,this.state,this.canvas,window.devicePixelRatio))}const m=u||Pa({x:d?d.elementCenterX:o,y:d?d.elementCenterY:l,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemStrokeSharpness,text:"",fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:d?"center":this.state.currentItemTextAlign,verticalAlign:d?te.oX.MIDDLE:te.hs,containerId:null!==(a=null===(r=p)||void 0===r?void 0:r.id)&&void 0!==a?a:void 0,groupIds:null!==(n=null===(i=p)||void 0===i?void 0:i.groupIds)&&void 0!==n?n:[]});this.setState({editingElement:m}),u||(this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),m]),d||wu(m,{y:m.y-m.baseline/2})),this.setState({editingElement:m}),this.handleTextWysiwyg(m,{isExistingElement:!!u})})),Xt(this,"handleCanvasDoubleClick",(e=>{if(this.state.multiElement)return;if("selection"!==this.state.elementType)return;const t=ca(this.scene.getElements(),this.state);if(1===t.length&&be(t[0]))return void(this.state.editingLinearElement&&this.state.editingLinearElement.elementId===t[0].id||(this.history.resumeRecording(),this.setState({editingLinearElement:new Yr(t[0],this.scene)})));Ye(this.canvas);let{x:a,y:r}=tt(e,this.state);if(Ea(this.state).length>0){const e=this.getElementAtPosition(a,r),t=e&&(n=e,i=this.state.selectedGroupIds,n.groupIds.find((e=>i[e])));if(t)return void this.setState((a=>Ca(Object.assign(Object.assign({},a),{editingGroupId:t,selectedElementIds:{[e.id]:!0},selectedGroupIds:{}}),this.scene.getElements())))}var n,i;if(Ye(this.canvas),!e[Oe.CTRL_OR_CMD]&&!this.state.viewModeEnabled){const t=ca(this.scene.getElements(),this.state);if(1===t.length){const e=t[0];Se(e)&&(a=e.x+e.width/2,r=e.y+e.height/2)}this.startTextEditing({sceneX:a,sceneY:r,shouldBind:!1,insertAtParentCenter:!e.altKey})}})),Xt(this,"getElementLinkAtPosition",((e,t)=>{const a=this.scene.getElements().slice().reverse();let r=1/0;return a.find(((a,n)=>(t&&a.id===t.id&&(r=n),a.link&&ec(a,this.state,[e.x,e.y],this.isMobile)&&n<=r)))})),Xt(this,"redirectToLink",((e,t)=>{const a=ie(this.lastPointerDown.clientX,this.lastPointerDown.clientY,this.lastPointerUp.clientX,this.lastPointerUp.clientY);if(!this.hitLinkElement||t&&a>te.f||!t&&0!==a)return;const r=tt(this.lastPointerDown,this.state),n=ec(this.hitLinkElement,this.state,[r.x,r.y],this.isMobile),i=tt(this.lastPointerUp,this.state),o=ec(this.hitLinkElement,this.state,[i.x,i.y],this.isMobile);if(n&&o){const t=this.hitLinkElement.link;if(t){var l;let a;if(this.props.onLinkOpen&&(a=mt(te.Ks.EXCALIDRAW_LINK,e.nativeEvent),this.props.onLinkOpen(this.hitLinkElement,a)),null===(l=a)||void 0===l||!l.defaultPrevented){const e=Ys(t)?"_self":"_blank",a=window.open(void 0,e);a&&(a.opener=null,a.location=Qs(t))}}}})),Xt(this,"handleCanvasPointerMove",(e=>{this.savePointer(e.clientX,e.clientY,this.state.cursorButton),eu.pointers.has(e.pointerId)&&eu.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY});const t=eu.initialScale;if(2===eu.pointers.size&&eu.lastCenter&&t&&eu.initialDistance){const e=oc(eu.pointers),a=e.x-eu.lastCenter.x,r=e.y-eu.lastCenter.y;eu.lastCenter=e;const n=lc(Array.from(eu.pointers.values())),i="freedraw"===this.state.elementType&&this.state.penMode?1:n/eu.initialDistance,o=i?wa(t*i):this.state.zoom.value;this.setState((t=>{const n=xa({viewportX:e.x,viewportY:e.y,nextZoom:o},t);return{zoom:n.zoom,scrollX:n.scrollX+a/o,scrollY:n.scrollY+r/o,shouldCacheIgnoreZoom:!0}})),this.resetShouldCacheIgnoreZoomDebounced()}else eu.lastCenter=eu.initialDistance=eu.initialScale=null;if(qd||Zd||Qd)return;const a=la(Yd,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop).isOverEither;this.state.draggingElement||this.state.multiElement||(a?Ye(this.canvas):Xe(this.canvas,this.state.elementType));const r=tt(e,this.state),{x:n,y:i}=r;if(this.state.editingLinearElement&&!this.state.editingLinearElement.isDragging){const t=Yr.handlePointerMove(e,n,i,this.state.editingLinearElement,this.state.gridSize);t!==this.state.editingLinearElement&&this.setState({editingLinearElement:t}),null!=t.lastUncommittedPoint?this.maybeSuggestBindingAtCursor(r):this.setState({suggestedBindings:[]})}if(ke(this.state.elementType)){const{draggingElement:e}=this.state;ye(e)?this.maybeSuggestBindingsForLinearElementAtCoords(e,[r],this.state.startBoundElement):this.maybeSuggestBindingAtCursor(r)}if(this.state.multiElement){const{multiElement:e}=this.state,{x:t,y:a}=e,{points:r,lastCommittedPoint:o}=e,l=r[r.length-1];return Xe(this.canvas,this.state.elementType),void(l===o?ie(n-t,i-a,l[0],l[1])>=te.qx?wu(e,{points:[...r,[n-t,i-a]]}):Je(this.canvas,te.oc.POINTER):r.length>2&&o&&ie(n-t,i-a,o[0],o[1])<te.qx?(Je(this.canvas,te.oc.POINTER),wu(e,{points:r.slice(0,-1)})):(oe(r,this.state.zoom.value)&&Je(this.canvas,te.oc.POINTER),wu(e,{points:[...r.slice(0,-1),[n-t,i-a]]})))}if(Boolean(e.buttons)||"selection"!==this.state.elementType&&"text"!==this.state.elementType)return;const o=this.scene.getElements(),l=ca(o,this.state);if(1!==l.length||a||this.state.editingLinearElement){if(l.length>1&&!a){const t=Kr(_p(l),n,i,this.state.zoom,e.pointerType);if(t)return void Je(this.canvas,qr({transformHandleType:t}))}}else{const t=Ur(o,this.state,n,i,this.state.zoom,e.pointerType);if(t&&t.transformHandleType)return void Je(this.canvas,qr(t))}const s=this.getElementAtPosition(r.x,r.y);if(this.hitLinkElement=this.getElementLinkAtPosition(r,s),this.hitLinkElement&&!this.state.selectedElementIds[this.hitLinkElement.id])Je(this.canvas,te.oc.POINTER),c=this.hitLinkElement,d=this.state,tc&&clearTimeout(tc),tc=window.setTimeout((()=>((e,t)=>{if(!e.link)return;const a=Ro();a.classList.add("excalidraw-tooltip--visible"),a.style.maxWidth="20rem",a.textContent=e.link;const[r,n,i,o]=gp(e),[l,s,c,d]=$s([r,n,i,o],e.angle,t),u=at({sceneX:l,sceneY:s},t);Ho(a,{left:u.x,top:u.y,width:c,height:d},"top"),Oo("hyperlink","tooltip","link-icon"),Ws=!0})(c,d)),te.sA);else if(tc&&clearTimeout(tc),Ws&&(Ws=!1,Ro().classList.remove("excalidraw-tooltip--visible")),s&&s.link&&this.state.selectedElementIds[s.id]&&!this.contextMenuOpen&&!this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:"info"}),"text"===this.state.elementType)Je(this.canvas,me(s)?te.oc.TEXT:te.oc.CROSSHAIR);else if(this.state.viewModeEnabled)Je(this.canvas,te.oc.GRAB);else if(a)Je(this.canvas,te.oc.AUTO);else if(this.state.editingLinearElement){const e=Yr.getElement(this.state.editingLinearElement.elementId);e&&gr(e,this.state,[r.x,r.y])?Je(this.canvas,te.oc.MOVE):Je(this.canvas,te.oc.AUTO)}else e[Oe.CTRL_OR_CMD]||!s&&!this.isHittingCommonBoundingBoxOfSelectedElements(r,l)?Je(this.canvas,te.oc.AUTO):Je(this.canvas,te.oc.MOVE);var c,d})),Xt(this,"handleTouchMove",(e=>{Xd=!0})),Xt(this,"handleCanvasPointerDown",(e=>{const t=document.getSelection();if(null!=t&&t.anchorNode&&t.removeAllRanges(),this.maybeOpenContextMenuAfterPointerDownOnTouchDevices(e),this.maybeCleanupAfterMissingPointerUp(e),this.state.penDetected||"pen"!==e.pointerType||this.setState((e=>({penMode:!0,penDetected:!0}))),Zd)return;if(this.lastPointerDown=e,this.setState({lastPointerDownWith:e.pointerType,cursorButton:"down"}),this.savePointer(e.clientX,e.clientY,"down"),this.handleCanvasPanUsingWheelOrSpaceDrag(e))return;if(e.button!==te.Oh.MAIN&&e.button!==te.Oh.TOUCH)return;if(this.updateGestureOnPointerDown(e),eu.pointers.size>1)return;const a=this.initialPointerDownState(e);if(this.handleDraggingScrollBar(e,a))return;if(this.contextMenuOpen=!1,this.clearSelectionIfNotUsingSelection(),this.updateBindingEnabledOnPointerMove(e),this.handleSelectionOnPointerDown(e,a))return;if(this.state.penMode&&"touch"===e.pointerType&&"selection"!==this.state.elementType&&"text"!==this.state.elementType&&"image"!==this.state.elementType)return;if("text"===this.state.elementType)return void this.handleTextOnPointerDown(e,a);if("arrow"===this.state.elementType||"line"===this.state.elementType)this.handleLinearElementOnPointerDown(e,this.state.elementType,a);else if("image"===this.state.elementType){if(Je(this.canvas,te.oc.CROSSHAIR),!this.state.pendingImageElement)return;this.setState({draggingElement:this.state.pendingImageElement,editingElement:this.state.pendingImageElement,pendingImageElement:null,multiElement:null});const{x:t,y:a}=tt(e,this.state);wu(this.state.pendingImageElement,{x:t,y:a})}else"freedraw"===this.state.elementType?this.handleFreeDrawElementOnPointerDown(e,this.state.elementType,a):this.createGenericElementOnPointerDown(this.state.elementType,a);const r=this.onPointerMoveFromPointerDownHandler(a),n=this.onPointerUpFromPointerDownHandler(a),i=this.onKeyDownFromPointerDownHandler(a),o=this.onKeyUpFromPointerDownHandler(a);$d=n,this.state.viewModeEnabled||(window.addEventListener(te.Ks.POINTER_MOVE,r),window.addEventListener(te.Ks.POINTER_UP,n),window.addEventListener(te.Ks.KEYDOWN,i),window.addEventListener(te.Ks.KEYUP,o),a.eventListeners.onMove=r,a.eventListeners.onUp=n,a.eventListeners.onKeyUp=o,a.eventListeners.onKeyDown=i)})),Xt(this,"handleCanvasPointerUp",(e=>{this.lastPointerUp=e;const t=["pen","touch"].includes(e.pointerType);if(t){const t=tt({clientX:e.clientX,clientY:e.clientY},this.state),a=this.getElementAtPosition(t.x,t.y);this.hitLinkElement=this.getElementLinkAtPosition(t,a)}this.hitLinkElement&&!this.state.selectedElementIds[this.hitLinkElement.id]&&this.redirectToLink(e,t),this.removePointer(e)})),Xt(this,"maybeOpenContextMenuAfterPointerDownOnTouchDevices",(e=>{"touch"===e.pointerType&&(Xd=!1,Jd?Xd=!0:Jd=window.setTimeout((()=>{Jd=0,Xd||this.handleCanvasContextMenu(e)}),te.nM))})),Xt(this,"resetContextMenuTimer",(()=>{clearTimeout(Jd),Jd=0,Xd=!1})),Xt(this,"handleCanvasPanUsingWheelOrSpaceDrag",(e=>{if(0!==eu.pointers.size||!(e.button===te.Oh.WHEEL||e.button===te.Oh.MAIN&&qd||this.state.viewModeEnabled)||me(this.state.editingElement))return!1;Zd=!0,e.preventDefault();let t=!1;const a=/Linux/.test(window.navigator.platform);Je(this.canvas,te.oc.GRABBING);let{clientX:r,clientY:n}=e;const i=dt((e=>{const i=r-e.clientX,o=n-e.clientY;if(r=e.clientX,n=e.clientY,a&&!t&&(Math.abs(i)>1||Math.abs(o)>1)){t=!0;const e=t=>{document.body.removeEventListener(te.Ks.PASTE,e),t.stopPropagation()},a=()=>{setTimeout((()=>{document.body.removeEventListener(te.Ks.PASTE,e),window.removeEventListener(te.Ks.POINTER_UP,a)}),100)};document.body.addEventListener(te.Ks.PASTE,e),window.addEventListener(te.Ks.POINTER_UP,a)}this.setState({scrollX:this.state.scrollX-i/this.state.zoom.value,scrollY:this.state.scrollY-o/this.state.zoom.value})})),o=ct($d=()=>{$d=null,Zd=!1,qd||(this.state.viewModeEnabled?Je(this.canvas,te.oc.GRAB):Xe(this.canvas,this.state.elementType)),this.setState({cursorButton:"up"}),this.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(te.Ks.POINTER_MOVE,i),window.removeEventListener(te.Ks.POINTER_UP,o),window.removeEventListener(te.Ks.BLUR,o),i.flush()});return window.addEventListener(te.Ks.BLUR,o),window.addEventListener(te.Ks.POINTER_MOVE,i,{passive:!0}),window.addEventListener(te.Ks.POINTER_UP,o),!0})),Xt(this,"clearSelectionIfNotUsingSelection",(()=>{"selection"!==this.state.elementType&&this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})})),Xt(this,"handleSelectionOnPointerDown",((e,t)=>{if("selection"===this.state.elementType){const r=this.scene.getElements(),n=ca(r,this.state);if(1!==n.length||this.state.editingLinearElement)n.length>1&&(t.resize.handleType=Kr(_p(n),t.origin.x,t.origin.y,this.state.zoom,e.pointerType));else{const a=Ur(r,this.state,t.origin.x,t.origin.y,this.state.zoom,e.pointerType);null!=a&&(this.setState({resizingElement:a.element}),t.resize.handleType=a.transformHandleType)}if(t.resize.handleType)Je(this.canvas,qr({transformHandleType:t.resize.handleType})),t.resize.isResizing=!0,t.resize.offset=ot(((e,t,a,r)=>{const[n,i,o,l]=1===t.length?gp(t[0]):_p(t),s=(n+o)/2,c=(i+l)/2,d=1===t.length?t[0].angle:0;switch([a,r]=ae(a,r,s,c,-d),e){case"n":return ae(a-(n+o)/2,r-i,0,0,d);case"s":return ae(a-(n+o)/2,r-l,0,0,d);case"w":return ae(a-n,r-(i+l)/2,0,0,d);case"e":return ae(a-o,r-(i+l)/2,0,0,d);case"nw":return ae(a-n,r-i,0,0,d);case"ne":return ae(a-o,r-i,0,0,d);case"sw":return ae(a-n,r-l,0,0,d);case"se":return ae(a-o,r-l,0,0,d);default:return[0,0]}})(t.resize.handleType,n,t.origin.x,t.origin.y)),1===n.length&&be(n[0])&&2===n[0].points.length&&(t.resize.arrowDirection=((e,t)=>{const[,[a,r]]=t.points;return"nw"===e&&(a<0||r<0)||"ne"===e&&a>=0||"sw"===e&&a<=0||"se"===e&&(a>0||r>0)?"end":"origin"})(t.resize.handleType,n[0]));else{var a;if(this.state.editingLinearElement){const a=Yr.handlePointerDown(e,this.state,(e=>this.setState(e)),this.history,t.origin);if(a.hitElement&&(t.hit.element=a.hitElement),a.didAddPoint)return!0}if(t.hit.element=null!==(a=t.hit.element)&&void 0!==a?a:this.getElementAtPosition(t.origin.x,t.origin.y),t.hit.element){if(ec(t.hit.element,this.state,[t.origin.x,t.origin.y],this.isMobile))return!1;t.hit.hasHitElementInside=gr(t.hit.element,this.state,[t.origin.x,t.origin.y])}t.hit.allHitElements=this.getElementsAtPosition(t.origin.x,t.origin.y);const r=t.hit.element,n=t.hit.allHitElements.some((e=>this.isASelectedElement(e)));if(null!==r&&n||e.shiftKey||t.hit.hasHitCommonBoundingBoxOfSelectedElements||this.clearSelection(r),this.state.editingLinearElement)this.setState({selectedElementIds:{[this.state.editingLinearElement.elementId]:!0}});else if(null!=r){if(e[Oe.CTRL_OR_CMD])return this.state.selectedElementIds[r.id]||(t.hit.wasAddedToSelection=!0),this.setState((e=>{return Object.assign(Object.assign({},(t=e,a=r,Object.assign(Object.assign({},t),{editingGroupId:a.groupIds.length?a.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:{[a.id]:!0}}))),{previousSelectedElementIds:this.state.selectedElementIds});var t,a})),!1;this.state.selectedElementIds[r.id]||(this.state.editingGroupId&&!Ta(r,this.state.editingGroupId)&&this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}),n||t.hit.hasHitCommonBoundingBoxOfSelectedElements||(this.setState((e=>Ca(Object.assign(Object.assign({},e),{selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[r.id]:!0}),showHyperlinkPopup:!!r.link&&"info"}),this.scene.getElements()))),t.hit.wasAddedToSelection=!0))}this.setState({previousSelectedElementIds:this.state.selectedElementIds})}}return!1})),Xt(this,"handleTextOnPointerDown",((e,t)=>{if(me(this.state.editingElement))return;let a=t.origin.x,r=t.origin.y;const n=this.getElementAtPosition(a,r,{includeBoundTextElement:!0});Se(n)&&(a=n.x+n.width/2,r=n.y+n.height/2),this.startTextEditing({sceneX:a,sceneY:r,shouldBind:!1,insertAtParentCenter:!e.altKey}),Ye(this.canvas),this.state.elementLocked||this.setState({elementType:"selection"})})),Xt(this,"handleFreeDrawElementOnPointerDown",((e,t,a)=>{const[r,n]=ue(a.origin.x,a.origin.y,null),i=(o={type:t,x:r,y:n,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemLinearStrokeSharpness,simulatePressure:.5===e.pressure},Object.assign(Object.assign({},ja(o.type,o)),{points:o.points||[],pressures:[],simulatePressure:o.simulatePressure,lastCommittedPoint:null}));var o;this.setState((e=>({selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[i.id]:!1})})));const l=i.simulatePressure?i.pressures:[...i.pressures,e.pressure];wu(i,{points:[[0,0]],pressures:l});const s=dn(a.origin,this.scene);this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),i]),this.setState({draggingElement:i,editingElement:i,startBoundElement:s,suggestedBindings:[]})})),Xt(this,"createImageElement",(e=>{let{sceneX:t,sceneY:a}=e;const[r,n]=ue(t,a,this.state.gridSize);var i;return i={type:"image",x:r,y:n,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemLinearStrokeSharpness},Object.assign(Object.assign({},ja("image",i)),{strokeColor:"transparent",status:"pending",fileId:null,scale:[1,1]})})),Xt(this,"handleLinearElementOnPointerDown",((e,t,a)=>{if(this.state.multiElement){const{multiElement:e}=this.state;if("line"===e.type&&oe(e.points,this.state.zoom.value))return wu(e,{lastCommittedPoint:e.points[e.points.length-1]}),void this.actionManager.executeAction(Po);const{x:t,y:r,lastCommittedPoint:n}=e;if(e.points.length>1&&n&&ie(a.origin.x-t,a.origin.y-r,n[0],n[1])<te.qx)return void this.actionManager.executeAction(Po);this.setState((t=>({selectedElementIds:Object.assign(Object.assign({},t.selectedElementIds),{[e.id]:!0})}))),wu(e,{lastCommittedPoint:e.points[e.points.length-1]}),Je(this.canvas,te.oc.POINTER)}else{const[e,r]=ue(a.origin.x,a.origin.y,this.state.gridSize),{currentItemStartArrowhead:n,currentItemEndArrowhead:i}=this.state,[o,l]="arrow"===t?[n,i]:[null,null],s=Da({type:t,x:e,y:r,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemLinearStrokeSharpness,startArrowhead:o,endArrowhead:l});this.setState((e=>({selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[s.id]:!1})}))),wu(s,{points:[...s.points,[0,0]]});const c=dn(a.origin,this.scene);this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),s]),this.setState({draggingElement:s,editingElement:s,startBoundElement:c,suggestedBindings:[]})}})),Xt(this,"createGenericElementOnPointerDown",((e,t)=>{const[a,r]=ue(t.origin.x,t.origin.y,this.state.gridSize),n=Ma({type:e,x:a,y:r,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemStrokeSharpness});"selection"===n.type?this.setState({selectionElement:n,draggingElement:n}):(this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),n]),this.setState({multiElement:null,draggingElement:n,editingElement:n}))})),Xt(this,"initializeImage",(async e=>{var t,a,r;let{imageFile:n,imageElement:i,showCursorImagePreview:o=!1}=e;if(!is(n))throw new Error(At("errors.unsupportedFileType"));const l=n.type;if(Je(this.canvas,"wait"),l===te.LO.svg)try{n=ds(await(async e=>{const t=(new DOMParser).parseFromString(e,te.LO.svg),a=t.querySelector("svg");if(t.querySelector("parsererror")||"svg"!==(null==(r=a)?void 0:r.nodeName.toLowerCase()))throw new Error(At("errors.invalidSVGString"));return a.hasAttribute("xmlns")||a.setAttribute("xmlns",te.hR),a.outerHTML;var r})(await n.text()),n.name)}catch(e){throw console.warn(e),new Error(At("errors.svgImageInsertError"))}const s=await((null===(t=(a=this.props).generateIdForFile)||void 0===t?void 0:t.call(a,n))||(async e=>{try{const a=await window.crypto.subtle.digest("SHA-1",await e.arrayBuffer());return t=new Uint8Array(a),Array.from(t).map((e=>"0".concat(e.toString(16)).slice(-2))).join("")}catch(e){return console.error(e),aa(40)}var t})(n));if(!s)throw console.warn("Couldn't generate file id or the supplied `generateIdForFile` didn't resolve to one."),new Error(At("errors.imageInsertError"));const c=this.files[s];if(null==c||!c.dataURL){try{n=await cs(n,{maxWidthOrHeight:te.h6})}catch(e){console.error("error trying to resing image file on insertion",e)}if(n.size>te.$n)throw new Error(At("errors.fileTooBig",{maxSize:"".concat(Math.trunc(te.$n/1024/1024),"MB")}))}if(o){var d;const e=null===(d=this.files[s])||void 0===d?void 0:d.dataURL,t=e&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const a=e.indexOf(","),r=atob(e.slice(a+1)),n=e.slice(0,a).split(":")[1].split(";")[0],i=new ArrayBuffer(r.length),o=new Uint8Array(i);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return new File([i],t,{type:n})}(e);this.setImagePreviewCursor(t||n)}const u=(null===(r=this.files[s])||void 0===r?void 0:r.dataURL)||await ss(n),p=wu(i,{fileId:s},!1);return new Promise((async(e,t)=>{try{var a,r;this.files=Object.assign(Object.assign({},this.files),{[s]:{mimeType:l,id:s,dataURL:u,created:Date.now()}});const t=this.imageCache.get(s);t||(this.addNewImagesToImageCache(),await this.updateImageCache([p])),(null==t?void 0:t.image)instanceof Promise&&await t.image,(null===(a=this.state.pendingImageElement)||void 0===a?void 0:a.id)!==p.id&&(null===(r=this.state.draggingElement)||void 0===r?void 0:r.id)!==p.id&&this.initializeImageDimensions(p,!0),e(p)}catch(e){console.error(e),t(new Error(At("errors.imageInsertError")))}finally{o||Ye(this.canvas)}}))})),Xt(this,"insertImageElement",(async(e,t,a)=>{this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),e]);try{await this.initializeImage({imageFile:t,imageElement:e,showCursorImagePreview:a})}catch(t){wu(e,{isDeleted:!0}),this.actionManager.executeAction(Po),this.setState({errorMessage:t.message||At("errors.imageInsertError")})}})),Xt(this,"setImagePreviewCursor",(async e=>{const t=await cs(e,{maxWidthOrHeight:96});let a=await ss(t);if(e.type===te.LO.svg){const e=await Bd(a);let t=Math.min(e.height,96),r=t*(e.width/e.height);r>96&&(r=96,t=r*(e.height/e.width));const n=document.createElement("canvas");n.height=t,n.width=r,n.getContext("2d").drawImage(e,0,0,r,t),a=n.toDataURL(te.LO.svg)}this.state.pendingImageElement&&Je(this.canvas,"url(".concat(a,") 4 4, auto"))})),Xt(this,"onImageAction",(async function(){let{insertOnCanvasDirectly:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{insertOnCanvasDirectly:!1};try{const a=t.state.width/2+t.state.offsetLeft,r=t.state.height/2+t.state.offsetTop,{x:n,y:i}=tt({clientX:a,clientY:r},t.state),o=await Kl({description:"Image",extensions:["jpg","png","svg","gif"]}),l=t.createImageElement({sceneX:n,sceneY:i});e?(t.insertImageElement(l,o),t.initializeImageDimensions(l),t.setState({selectedElementIds:{[l.id]:!0}},(()=>{t.actionManager.executeAction(Po)}))):t.setState({pendingImageElement:l},(()=>{t.insertImageElement(l,o,!0)}))}catch(e){"AbortError"!==e.name?console.error(e):console.warn(e),t.setState({pendingImageElement:null,editingElement:null,elementType:"selection"},(()=>{t.actionManager.executeAction(Po)}))}})),Xt(this,"initializeImageDimensions",(function(e){var a;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=pe(e)&&(null===(a=t.imageCache.get(e.fileId))||void 0===a?void 0:a.image);if(!n||n instanceof Promise){if(e.width<te.f/t.state.zoom.value&&e.height<te.f/t.state.zoom.value){const a=100/t.state.zoom.value;wu(e,{x:e.x-a/2,y:e.y-a/2,width:a,height:a})}}else if(r||e.width<te.f/t.state.zoom.value&&e.height<te.f/t.state.zoom.value){const a=Math.max(t.state.height-120,160),r=Math.min(a,Math.floor(.5*t.state.height)/t.state.zoom.value),i=Math.min(n.naturalHeight,r),o=i*(n.naturalWidth/n.naturalHeight),l=e.x+e.width/2-o/2,s=e.y+e.height/2-i/2;wu(e,{x:l,y:s,width:o,height:i})}})),Xt(this,"updateImageCache",(async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.files;const{updatedFiles:r,erroredFiles:n}=await Pd({imageCache:t.imageCache,fileIds:e.map((e=>e.fileId)),files:a});if(r.size||n.size)for(const t of e)r.has(t.fileId)&&ap(t);return n.size&&t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().map((e=>pe(e)&&n.has(e.fileId)?xu(e,{status:"error"}):e))),{updatedFiles:r,erroredFiles:n}})),Xt(this,"addNewImagesToImageCache",(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dd(t.scene.getElements()),a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.files;const r=e.filter((e=>!e.isDeleted&&!t.imageCache.has(e.fileId)));if(r.length){const{updatedFiles:e}=await t.updateImageCache(r,a);e.size&&t.scene.informMutation()}})),Xt(this,"scheduleImageRefresh",Od()((()=>{this.addNewImagesToImageCache()}),te.LL)),Xt(this,"updateBindingEnabledOnPointerMove",(e=>{const t=(e=>!e[Oe.CTRL_OR_CMD])(e);this.state.isBindingEnabled!==t&&this.setState({isBindingEnabled:t})})),Xt(this,"maybeSuggestBindingAtCursor",(e=>{const t=dn(e,this.scene);this.setState({suggestedBindings:null!=t?[t]:[]})})),Xt(this,"maybeSuggestBindingsForLinearElementAtCoords",((e,t,a)=>{if(!t.length)return;const r=t.reduce(((t,r)=>{const n=dn(r,this.scene);return null==n||ln(e,null==a?void 0:a.id,n)||t.push(n),t}),[]);this.setState({suggestedBindings:r})})),Xt(this,"handleCanvasRef",(e=>{var t,a,r;null!==e?(this.canvas=e,this.rc=X(this.canvas),this.canvas.addEventListener(te.Ks.WHEEL,this.handleWheel,{passive:!1}),this.canvas.addEventListener(te.Ks.TOUCH_START,this.onTapStart),this.canvas.addEventListener(te.Ks.TOUCH_END,this.onTapEnd)):(null===(t=this.canvas)||void 0===t||t.removeEventListener(te.Ks.WHEEL,this.handleWheel),null===(a=this.canvas)||void 0===a||a.removeEventListener(te.Ks.TOUCH_START,this.onTapStart),null===(r=this.canvas)||void 0===r||r.removeEventListener(te.Ks.TOUCH_END,this.onTapEnd))})),Xt(this,"handleAppOnDrop",(async e=>{var t,a;try{const t=e.dataTransfer.files[0];if(is(t)){if((null==t?void 0:t.type)===te.LO.png||(null==t?void 0:t.type)===te.LO.svg)try{if(Gl)try{const a=e.dataTransfer.items[0];t.handle=await a.getAsFileSystemHandle()}catch(e){console.warn(e.name,e.message)}const a=await os(t,this.state,this.scene.getElementsIncludingDeleted());return void this.syncActionResult(Object.assign(Object.assign({},a),{appState:Object.assign(Object.assign({},a.appState||this.state),{isLoading:!1}),replaceFiles:!0,commitToHistory:!0}))}catch(e){if("EncodingError"!==e.name)throw e}const{x:a,y:r}=tt(e,this.state),n=this.createImageElement({sceneX:a,sceneY:r});return this.insertImageElement(n,t),this.initializeImageDimensions(n),void this.setState({selectedElementIds:{[n.id]:!0}})}}catch(e){return this.setState({isLoading:!1,errorMessage:e.message})}const r=e.dataTransfer.getData(te.LO.excalidrawlib);if(""!==r)return void this.addElementsFromPasteOrLibrary({elements:JSON.parse(r),position:e,files:null});const n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0];if((null==n?void 0:n.type)===te.LO.excalidrawlib||null!=n&&null!==(a=n.name)&&void 0!==a&&a.endsWith(".excalidrawlib"))this.library.importLibrary(n).then((()=>{this.setState({isLibraryOpen:!1}),this.setState({isLibraryOpen:!0})})).catch((e=>this.setState({isLoading:!1,errorMessage:e.message})));else{if(this.setState({isLoading:!0}),Gl)try{const t=e.dataTransfer.items[0];n.handle=await t.getAsFileSystemHandle()}catch(e){console.warn(e.name,e.message)}await this.loadFileToCanvas(n)}})),Xt(this,"loadFileToCanvas",(e=>{os(e,this.state,this.scene.getElementsIncludingDeleted()).then((e=>{this.syncActionResult(Object.assign(Object.assign({},e),{appState:Object.assign(Object.assign({},e.appState||this.state),{isLoading:!1}),replaceFiles:!0,commitToHistory:!0}))})).catch((e=>{this.setState({isLoading:!1,errorMessage:e.message})}))})),Xt(this,"handleCanvasContextMenu",(e=>{if(e.preventDefault(),("touch"===e.nativeEvent.pointerType||"pen"===e.nativeEvent.pointerType&&e.button!==te.Oh.SECONDARY)&&"selection"!==this.state.elementType)return;const{x:t,y:a}=tt(e,this.state),r=this.getElementAtPosition(t,a,{preferSelected:!0}),n=r?"element":"canvas",i=this.excalidrawContainerRef.current,{top:o,left:l}=i.getBoundingClientRect(),s=e.clientX-l,c=e.clientY-o;r&&!this.state.selectedElementIds[r.id]?this.setState({selectedElementIds:{[r.id]:!0}},(()=>{this._openContextMenu({top:c,left:s},n)})):this._openContextMenu({top:c,left:s},n)})),Xt(this,"maybeDragNewGenericElement",((e,t)=>{const a=this.state.draggingElement,r=e.lastCoords;if(a)if("selection"===a.type)In(a,this.state.elementType,e.origin.x,e.origin.y,r.x,r.y,Qe(e.origin.x,r.x),Qe(e.origin.y,r.y),He(t),Re(t));else{var n;const[i,o]=ue(r.x,r.y,this.state.gridSize),l=pe(a)&&(null===(n=this.imageCache.get(a.fileId))||void 0===n?void 0:n.image),s=!l||l instanceof Promise?null:l.width/l.height;In(a,this.state.elementType,e.originInGrid.x,e.originInGrid.y,i,o,Qe(e.originInGrid.x,i),Qe(e.originInGrid.y,o),he(a)?!He(t):He(t),Re(t),s),this.maybeSuggestBindingForAll([a])}})),Xt(this,"maybeHandleResize",((e,t)=>{const a=ca(this.scene.getElements(),this.state),r=e.resize.handleType;this.setState({isResizing:r&&"rotation"!==r,isRotating:"rotation"===r});const n=e.lastCoords,[i,o]=ue(n.x-e.resize.offset.x,n.y-e.resize.offset.y,this.state.gridSize);return!!((e,t,a,r,n,i,o,l,s,c,d)=>{if(1===a.length){const[c]=a;return"rotation"===t?(((e,t,a,r)=>{const[n,i,o,l]=gp(e),s=(n+o)/2,c=(i+l)/2;let d=5*Math.PI/2+Math.atan2(a-c,t-s);r&&(d+=te.ay/2,d-=d%te.ay),d=An(d),wu(e,{angle:d});const u=Ou(e);if(u){const t=ku.getScene(e).getElement(u);wu(t,{angle:d})}})(c,l,s,n),pn(c)):!be(c)||2!==c.points.length||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?!me(c)||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?t&&Tn(e.originalElements,o,c,t,i,l,s):(((e,t,a,r,n)=>{const[i,o,l,s]=gp(e),c=(i+l)/2,d=(o+s)/2,[u,p]=ae(r,n,c,d,-e.angle);let h;switch(t){case"se":h=Math.max((u-i)/(l-i),(p-o)/(s-o));break;case"nw":h=Math.max((l-u)/(l-i),(s-p)/(s-o));break;case"ne":h=Math.max((u-i)/(l-i),(s-p)/(s-o));break;case"sw":h=Math.max((l-u)/(l-i),(p-o)/(s-o))}if(h>0){const r=e.width*h,n=e.height*h,c=Cn(e,r,n);if(null===c)return;const[d,u,p,m]=Ap(e,r,n),g=(i-d)/2,f=(o-u)/2,b=(l-p)/2,v=(s-m)/2,[y,k]=ne(((e,t)=>({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,a),e.x,e.y,e.angle,g,f,b,v);wu(e,{fontSize:c.size,width:r,height:n,baseline:c.baseline,x:y,y:k})}})(c,t,i,l,s),pn(c)):((e,t,a,r,n)=>{const[i,o,l,s]=gp(e),c=(i+l)/2,d=(o+s)/2,[u,p]=ae(r,n,c,d,-e.angle);let[h,m]="end"===t?[u-e.x,p-e.y]:[e.x+e.points[1][0]-u,e.y+e.points[1][1]-p];a&&([h,m]=((e,t,a,r)=>{const n=ea(e,...ae(t,a,0,0,r));return ae(n.width,n.height,0,0,-r)})(e.type,h,m,e.angle));const[g,f]=ne("end"===t?{s:!0,e:!0}:{n:!0,w:!0},e.x,e.y,e.angle,0,0,(e.points[1][0]-h)/2,(e.points[1][1]-m)/2);wu(e,{x:g,y:f,points:[[0,0],[h,m]]})})(c,r,n,l,s),!0}if(a.length>1){if("rotation"===t)return((e,t,a,r,n,i,o)=>{let l=5*Math.PI/2+Math.atan2(r-o,a-i);n&&(l+=te.ay/2,l-=l%te.ay),t.forEach(((t,a)=>{var r,n;const[s,c,d,u]=gp(t),p=(s+d)/2,h=(c+u)/2,m=null!==(r=null===(n=e.originalElements.get(t.id))||void 0===n?void 0:n.angle)&&void 0!==r?r:t.angle,[g,f]=ae(p,h,i,o,l+m-t.angle);wu(t,{x:t.x+(g-p),y:t.y+(f-h),angle:An(l+m)});const b=Ou(t);if(b){const e=ku.getScene(t).getElement(b);wu(e,{x:e.x+(g-p),y:e.y+(f-h),angle:An(l+m)})}}))})(e,a,l,s,n,c,d),!0;if("nw"===t||"ne"===t||"sw"===t||"se"===t)return((e,t,a,r)=>{const[n,i,o,l]=_p(e);let s,c;switch(t){case"se":s=Math.max((a-n)/(o-n),(r-i)/(l-i)),c=(e,t,a)=>{let[r,o]=t,[l,c]=a;return{x:e.x+(r-n)*(s-1)+r-l,y:e.y+(o-i)*(s-1)+o-c}};break;case"nw":s=Math.max((o-a)/(o-n),(l-r)/(l-i)),c=(e,t,a)=>{let[,,r,n]=t,[,,i,c]=a;return{x:e.x-(o-r)*(s-1)+r-i,y:e.y-(l-n)*(s-1)+n-c}};break;case"ne":s=Math.max((a-n)/(o-n),(l-r)/(l-i)),c=(e,t,a)=>{let[r,,,i]=t,[o,,,c]=a;return{x:e.x+(r-n)*(s-1)+r-o,y:e.y-(l-i)*(s-1)+i-c}};break;case"sw":s=Math.max((o-a)/(o-n),(r-i)/(l-i)),c=(e,t,a)=>{let[,r,n]=t,[,l,c]=a;return{x:e.x-(o-n)*(s-1)+n-c,y:e.y+(r-i)*(s-1)+r-l}}}if(s>0){const a=e.reduce(((t,a)=>{if(!t)return t;const r=a.width*s,n=a.height*s,i=Fu(a);let o={};if(i){const e=Cn(i,r-2*te.gK,n-2*te.gK);if(null===e)return null;o={fontSize:e.size,baseline:e.baseline}}if(me(a)){const e=Cn(a,r,n);if(null===e)return null;o={fontSize:e.size,baseline:e.baseline}}const l=gp(a),d=En(a,r,n);pn(a,{newSize:{width:r,height:n},simultaneouslyUpdated:e});const u=Ap(Object.assign(Object.assign({},a),d),r,n),{x:p,y:h}=c(a,l,u);return[...t,Object.assign(Object.assign({width:r,height:n,x:p,y:h},d),o)]}),[]);a&&e.forEach(((e,r)=>{wu(e,a[r]);const n=Fu(e);n&&(wu(n,{fontSize:a[r].fontSize,baseline:a[r].baseline}),Eu(e,t))}))}})(a,t,l,s),!0}return!1})(e,r,a,e.resize.arrowDirection,Ge(t),Re(t),1===a.length&&he(a[0])?!He(t):He(t),i,o,e.resize.center.x,e.resize.center.y)&&(this.maybeSuggestBindingForAll(a),!0)})),Xt(this,"_openContextMenu",((e,t)=>{let{left:a,top:r}=e;this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),this.contextMenuOpen=!0;const n=xs.contextItemPredicate(this.actionManager.getElementsIncludingDeleted(),this.actionManager.getAppState()),i=Ss.contextItemPredicate(this.actionManager.getElementsIncludingDeleted(),this.actionManager.getAppState()),o=Ls.contextItemPredicate(this.actionManager.getElementsIncludingDeleted(),this.actionManager.getAppState()),l=js.contextItemPredicate(this.actionManager.getElementsIncludingDeleted(),this.actionManager.getAppState()),s="separator",c=this.scene.getElements(),d=[];if(cl&&c.length>0&&d.push(Rs),sl&&c.length>0&&d.push(Fs),"canvas"===t){const e=[...d,void 0===this.props.gridModeEnabled&&Hs,void 0===this.props.zenModeEnabled&&Gs,void 0===this.props.viewModeEnabled&&Md,Vs];this.state.viewModeEnabled?Tc.push({options:e,top:r,left:a,actionManager:this.actionManager,appState:this.state,container:this.excalidrawContainerRef.current,elements:c}):Tc.push({options:[this.isMobile&&navigator.clipboard&&{name:"paste",perform:(e,t)=>(this.pasteFromClipboard(null),{commitToHistory:!1}),contextItemLabel:"labels.paste"},this.isMobile&&navigator.clipboard&&s,cl&&c.length>0&&Rs,sl&&c.length>0&&Fs,(cl&&c.length>0||sl&&c.length>0)&&s,jo,s,void 0===this.props.gridModeEnabled&&Hs,void 0===this.props.zenModeEnabled&&Gs,void 0===this.props.viewModeEnabled&&Md,Vs],top:r,left:a,actionManager:this.actionManager,appState:this.state,container:this.excalidrawContainerRef.current,elements:c})}else if("element"===t){const e=ca(c,this.state).some((e=>!Se(e)));this.state.viewModeEnabled?Tc.push({options:[navigator.clipboard&&Ns,...d],top:r,left:a,actionManager:this.actionManager,appState:this.state,container:this.excalidrawContainerRef.current,elements:c}):Tc.push({options:[this.isMobile&&Os,this.isMobile&&navigator.clipboard&&Ns,this.isMobile&&navigator.clipboard&&{name:"paste",perform:(e,t)=>(this.pasteFromClipboard(null),{commitToHistory:!1}),contextItemLabel:"labels.paste"},this.isMobile&&s,...d,s,vs,ys,s,n&&xs,!e&&Us,i&&Ss,(n||i)&&s,Es,s,To,zo,Io,Lo,s,o&&Ls,l&&js,(o||l)&&s,Js.contextItemPredicate(c,this.state)&&Js,Mo,vo],top:r,left:a,actionManager:this.actionManager,appState:this.state,container:this.excalidrawContainerRef.current,elements:c})}})),Xt(this,"handleWheel",ct((e=>{if(e.preventDefault(),Zd)return;const{deltaX:t,deltaY:a}=e,{selectedElementIds:r,previousSelectedElementIds:n}=this.state;if(e.metaKey||e.ctrlKey){const e=Math.sign(a),t=10;let i=Math.abs(a);i>t&&(i=t),i*=e,0!==Object.keys(n).length&&setTimeout((()=>{this.setState({selectedElementIds:n,previousSelectedElementIds:{}})}),1e3);let o=this.state.zoom.value-i/100;return o+=Math.log10(Math.max(1,this.state.zoom.value))*-e,o=Math.round(o*te.V4*100)/(100*te.V4),this.setState((e=>Object.assign(Object.assign({},xa({viewportX:Kd,viewportY:Wd,nextZoom:wa(o)},e)),{selectedElementIds:{},previousSelectedElementIds:0!==Object.keys(r).length?r:n,shouldCacheIgnoreZoom:!0}))),void this.resetShouldCacheIgnoreZoomDebounced()}e.shiftKey?this.setState((e=>{let{zoom:r,scrollX:n}=e;return{scrollX:n-(a||t)/r.value}})):this.setState((e=>{let{zoom:r,scrollX:n,scrollY:i}=e;return{scrollX:n-t/r.value,scrollY:i-a/r.value}}))}))),Xt(this,"savePointer",((e,t,a)=>{var r,n;if(!e||!t)return;const i=tt({clientX:e,clientY:t},this.state);isNaN(i.x)||isNaN(i.y),null===(r=(n=this.props).onPointerUpdate)||void 0===r||r.call(n,{pointer:i,button:a,pointersMap:eu.pointers})})),Xt(this,"resetShouldCacheIgnoreZoomDebounced",Ze((()=>{this.unmounted||this.setState({shouldCacheIgnoreZoom:!1})}),300)),Xt(this,"updateDOMRect",(e=>{var t;if(null!==(t=this.excalidrawContainerRef)&&void 0!==t&&t.current){const t=this.excalidrawContainerRef.current,{width:a,height:r,left:n,top:i}=t.getBoundingClientRect(),{width:o,height:l,offsetTop:s,offsetLeft:c}=this.state;if(a===o&&r===l&&n===c&&i===s)return void(e&&e());this.setState({width:a,height:r,offsetLeft:n,offsetTop:i},(()=>{e&&e()}))}})),Xt(this,"refresh",(()=>{this.setState(Object.assign({},this.getCanvasOffsets()))}));const a=Ct(),{excalidrawRef:r,viewModeEnabled:n=!1,zenModeEnabled:i=!1,gridModeEnabled:o=!1,theme:l=a.theme,name:s=a.name}=e;if(this.state=Object.assign(Object.assign(Object.assign(Object.assign({},a),{theme:l,isLoading:!0}),this.getCanvasOffsets()),{viewModeEnabled:n,zenModeEnabled:i,gridSize:o?te.k:null,name:s,width:window.innerWidth,height:window.innerHeight,showHyperlinkPopup:!1}),this.id=aa(),r){var c;const e="current"in r&&(null===(c=r.current)||void 0===c?void 0:c.readyPromise)||(()=>{let e,t;const a=new Promise(((a,r)=>{e=a,t=r}));return a.resolve=e,a.reject=t,a})(),t={ready:!0,readyPromise:e,updateScene:this.updateScene,addFiles:this.addFiles,resetScene:this.resetScene,getSceneElementsIncludingDeleted:this.getSceneElementsIncludingDeleted,history:{clear:this.resetHistory},scrollToContent:this.scrollToContent,getSceneElements:this.getSceneElements,getAppState:()=>this.state,getFiles:()=>this.files,refresh:this.refresh,importLibrary:this.importLibraryFromUrl,setToastMessage:this.setToastMessage,id:this.id};"function"==typeof r?r(t):r.current=t,e.resolve(t)}var d;this.excalidrawContainerValue={container:this.excalidrawContainerRef.current,id:this.id},this.scene=new ku,this.library=new class{constructor(e){Xt(this,"libraryCache",null),Xt(this,"resetLibrary",(async()=>{var e,t;await(null===(e=(t=this.app.props).onLibraryChange)||void 0===e?void 0:e.call(t,[])),this.libraryCache=[]})),Xt(this,"restoreLibraryItem",(e=>{const t=hu(Xl(e.elements,null));return t.length?Object.assign(Object.assign({},e),{elements:t}):null})),Xt(this,"loadLibrary",(()=>new Promise((async e=>{if(this.libraryCache)return e(JSON.parse(JSON.stringify(this.libraryCache)));try{const t=this.app.libraryItemsFromStorage;if(!t)return e([]);const a=t.reduce(((e,t)=>(this.restoreLibraryItem(t)&&e.push(t),e)),[]);this.libraryCache=JSON.parse(JSON.stringify(a)),e(a)}catch(t){console.error(t),e([])}})))),Xt(this,"saveLibrary",(async e=>{const t=this.libraryCache;try{var a,r;const t=JSON.stringify(e);this.libraryCache=JSON.parse(t),await(null===(a=(r=this.app.props).onLibraryChange)||void 0===a?void 0:a.call(r,e))}catch(e){throw this.libraryCache=t,e}})),this.app=e}async importLibrary(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unpublished";const a=await(async e=>{const t=await as(e),a=JSON.parse(t);if(a.type!==te.r8.excalidrawLibrary)throw new Error(At("alerts.couldNotLoadInvalidFile"));return a})(e);if(!a||!a.libraryItems&&!a.library)return;const r=(e,t)=>!e.find((e=>e.elements.length===t.elements.length&&e.elements.every(((e,a)=>e.id===t.elements[a].id&&e.versionNonce===t.elements[a].versionNonce)))),n=await this.loadLibrary(),i=a.libraryItems||a.library||[],o=ts(i,t),l=[];for(const e of o){const t=this.restoreLibraryItem(e);t&&r(n,t)&&l.push(t)}await this.saveLibrary([...l,...n])}}(this),this.history=new class{constructor(){Xt(this,"elementCache",new Map),Xt(this,"recording",!0),Xt(this,"stateHistory",[]),Xt(this,"redoStack",[]),Xt(this,"lastEntry",null),Xt(this,"generateEntry",((e,t)=>this.dehydrateHistoryEntry({appState:cc(e),elements:t.reduce(((t,a)=>{if(be(a)&&e.multiElement&&e.multiElement.id===a.id){if(e.multiElement&&e.multiElement.id===a.id&&a.points.length<2)return t;t.push(Object.assign(Object.assign({},a),{points:a.lastCommittedPoint!==a.points[a.points.length-1]?a.points.slice(0,-1):a.points}))}else t.push(a);return t}),[])})))}hydrateHistoryEntry(e){let{appState:t,elements:a}=e;return{appState:JSON.parse(t),elements:a.map((e=>{var t;const a=null===(t=this.elementCache.get(e.id))||void 0===t?void 0:t.get(e.versionNonce);if(!a)throw new Error("Element not found: ".concat(e.id,":").concat(e.versionNonce));return a}))}}dehydrateHistoryEntry(e){let{appState:t,elements:a}=e;return{appState:JSON.stringify(t),elements:a.map((e=>{this.elementCache.has(e.id)||this.elementCache.set(e.id,new Map);const t=this.elementCache.get(e.id);return t.has(e.versionNonce)||t.set(e.versionNonce,Na(e)),{id:e.id,versionNonce:e.versionNonce}}))}}getSnapshotForTest(){return{recording:this.recording,stateHistory:this.stateHistory.map((e=>this.hydrateHistoryEntry(e))),redoStack:this.redoStack.map((e=>this.hydrateHistoryEntry(e)))}}clear(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()}shouldCreateEntry(e){const{lastEntry:t}=this;if(!t)return!0;if(e.elements.length!==t.elements.length)return!0;for(let a=e.elements.length-1;a>-1;a--){const r=e.elements[a],n=t.elements[a];if(!r||!n||r.id!==n.id||r.versionNonce!==n.versionNonce)return!0}let a;for(a in e.appState){var r,n;if(("editingLinearElement"!==a||(null===(r=e.appState[a])||void 0===r?void 0:r.elementId)!==(null===(n=t.appState[a])||void 0===n?void 0:n.elementId))&&"selectedElementIds"!==a&&"selectedGroupIds"!==a&&e.appState[a]!==t.appState[a])return!0}return!1}pushEntry(e,t){const a=this.generateEntry(e,t),r=this.hydrateHistoryEntry(a);if(r){if(!this.shouldCreateEntry(r))return;this.stateHistory.push(a),this.lastEntry=r,this.clearRedoStack()}}clearRedoStack(){this.redoStack.splice(0,this.redoStack.length)}redoOnce(){if(0===this.redoStack.length)return null;const e=this.redoStack.pop();return void 0!==e?(this.stateHistory.push(e),this.hydrateHistoryEntry(e)):null}undoOnce(){if(1===this.stateHistory.length)return null;const e=this.stateHistory.pop(),t=this.stateHistory[this.stateHistory.length-1];return void 0!==e?(this.redoStack.push(e),this.hydrateHistoryEntry(t)):null}setCurrentState(e,t){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(e,t))}resumeRecording(){this.recording=!0}record(e,t){this.recording&&(this.pushEntry(e,t),this.recording=!1)}},this.actionManager=new ic(this.syncActionResult,(()=>this.state),(()=>this.scene.getElementsIncludingDeleted()),this),this.actionManager.registerAll(co),this.actionManager.registerAction((d=this.history,{name:"undo",perform:(e,t)=>rc(e,t,(()=>d.undoOnce())),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.key.toLowerCase()===Oe.Z&&!e.shiftKey,PanelComponent:e=>{let{updateData:t,data:a}=e;return(0,Mn.jsx)(ru,{type:"button",icon:ci,"aria-label":At("buttons.undo"),onClick:t,size:(null==a?void 0:a.size)||"medium"})},commitToHistory:()=>!1})),this.actionManager.registerAction((e=>({name:"redo",perform:(t,a)=>rc(t,a,(()=>e.redoOnce())),keyTest:e=>e[Oe.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===Oe.Z||Ie&&e.ctrlKey&&!e.shiftKey&&e.key===Oe.Y,PanelComponent:e=>{let{updateData:t,data:a}=e;return(0,Mn.jsx)(ru,{type:"button",icon:di,"aria-label":At("buttons.redo"),onClick:t,size:(null==a?void 0:a.size)||"medium"})},commitToHistory:()=>!1}))(this.history))}renderCanvas(){const e=window.devicePixelRatio,{width:t,height:a,viewModeEnabled:r}=this.state,n=t*e,i=a*e;return r?(0,Mn.jsx)("canvas",{className:"excalidraw__canvas",style:{width:t,height:a,cursor:te.oc.GRAB},width:n,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,children:At("labels.drawingCanvas")}):(0,Mn.jsx)("canvas",{className:"excalidraw__canvas",style:{width:t,height:a},width:n,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,children:At("labels.drawingCanvas")})}render(){var e,t;const{zenModeEnabled:a,viewModeEnabled:r}=this.state,n=ca(this.scene.getElements(),this.state),{onCollabButtonClick:i,renderTopRightUI:o,renderFooter:l,renderCustomStats:s}=this.props;return(0,Mn.jsx)("div",{className:jn("excalidraw excalidraw-container",{"excalidraw--view-mode":r,"excalidraw--mobile":this.isMobile}),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,Mn.jsx)(Hd.Provider,{value:this.excalidrawContainerValue,children:(0,Mn.jsxs)(Fd.Provider,{value:this.isMobile,children:[(0,Mn.jsx)(Id,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getElements(),onCollabButtonClick:i,onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onInsertElements:e=>this.addElementsFromPasteOrLibrary({elements:e,position:"center",files:null}),zenModeEnabled:a,toggleZenMode:this.toggleZenMode,langCode:St().code,isCollaborating:this.props.isCollaborating,renderTopRightUI:o,renderCustomFooter:l,viewModeEnabled:r,showExitZenModeBtn:void 0===(null===(e=this.props)||void 0===e?void 0:e.zenModeEnabled)&&a,showThemeBtn:void 0===(null===(t=this.props)||void 0===t?void 0:t.theme)&&this.props.UIOptions.canvasActions.theme,libraryReturnUrl:this.props.libraryReturnUrl,UIOptions:this.props.UIOptions,focusContainer:this.focusContainer,library:this.library,id:this.id,onImageAction:this.onImageAction}),(0,Mn.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,Mn.jsx)("div",{className:"excalidraw-contextMenuContainer"}),1===n.length&&this.state.showHyperlinkPopup&&(0,Mn.jsx)(qs,{element:n[0],appState:this.state,setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen},n[0].id),this.state.showStats&&(0,Mn.jsx)(Ld,{appState:this.state,setAppState:this.setAppState,elements:this.scene.getElements(),onClose:this.toggleStats,renderCustomStats:s}),null!==this.state.toastMessage&&(0,Mn.jsx)(jd,{message:this.state.toastMessage,clearToast:this.clearToast}),(0,Mn.jsx)("main",{children:this.renderCanvas()})]})})})}async componentDidMount(){var e,t,a=this;if(this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,("production"===te.Vi.TEST||"production"===te.Vi.DEVELOPMENT)&&(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:()=>this.state},setState:{configurable:!0,value:function(){return a.setState(...arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.excalidrawContainerRef.current&&this.focusContainer(),"ResizeObserver"in window&&null!==(e=this.excalidrawContainerRef)&&void 0!==e&&e.current)this.resizeObserver=new ResizeObserver((()=>{const{width:e,height:t}=this.excalidrawContainerRef.current.getBoundingClientRect();this.isMobile=e<te.kV||t<te.Yx&&e<te.sS,this.updateDOMRect()})),null===(t=this.resizeObserver)||void 0===t||t.observe(this.excalidrawContainerRef.current);else if(window.matchMedia){const e=window.matchMedia("(max-width: ".concat(te.kV,"px), (max-height: ").concat(te.Yx,"px) and (max-width: ").concat(te.sS,"px)")),t=()=>this.isMobile=e.matches;e.addListener(t),this.detachIsMobileMqHandler=()=>e.removeListener(t)}new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene)}componentWillUnmount(){var e;this.files={},this.imageCache.clear(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),clearTimeout(Jd),Jd=0}removeEventListeners(){var e,t,a,r;document.removeEventListener(te.Ks.POINTER_UP,this.removePointer),document.removeEventListener(te.Ks.COPY,this.onCopy),document.removeEventListener(te.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(te.Ks.CUT,this.onCut),null===(e=this.nearestScrollableContainer)||void 0===e||e.removeEventListener(te.Ks.SCROLL,this.onScroll),document.removeEventListener(te.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(te.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(te.Ks.KEYUP,this.onKeyUp),window.removeEventListener(te.Ks.RESIZE,this.onResize,!1),window.removeEventListener(te.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(te.Ks.BLUR,this.onBlur,!1),null===(t=this.excalidrawContainerRef.current)||void 0===t||t.removeEventListener(te.Ks.DRAG_OVER,this.disableEvent,!1),null===(a=this.excalidrawContainerRef.current)||void 0===a||a.removeEventListener(te.Ks.DROP,this.disableEvent,!1),document.removeEventListener(te.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(te.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(te.Ks.GESTURE_END,this.onGestureEnd,!1),null===(r=this.detachIsMobileMqHandler)||void 0===r||r.call(this)}addEventListeners(){var e,t,a,r;this.removeEventListeners(),document.addEventListener(te.Ks.POINTER_UP,this.removePointer),document.addEventListener(te.Ks.COPY,this.onCopy),this.props.handleKeyboardGlobally&&document.addEventListener(te.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(te.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(te.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),null===(e=document.fonts)||void 0===e||null===(t=e.addEventListener)||void 0===t||t.call(e,"loadingdone",this.onFontLoaded),document.addEventListener(te.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(te.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(te.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(te.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(te.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=(e=>{let t=this.excalidrawContainerRef.current.parentElement;for(;t;){if(t===document.body)return document;const{overflowY:e}=window.getComputedStyle(t);if(t.scrollHeight>t.clientHeight&&("auto"===e||"scroll"===e||"overlay"===e))return t;t=t.parentElement}return document})(),this.nearestScrollableContainer.addEventListener(te.Ks.SCROLL,this.onScroll)),window.addEventListener(te.Ks.RESIZE,this.onResize,!1),window.addEventListener(te.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(te.Ks.BLUR,this.onBlur,!1),null===(a=this.excalidrawContainerRef.current)||void 0===a||a.addEventListener(te.Ks.DRAG_OVER,this.disableEvent,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.addEventListener(te.Ks.DROP,this.disableEvent,!1))}componentDidUpdate(e,t){var a;"selection"===t.elementType&&"selection"!==this.state.elementType&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),e.langCode!==this.props.langCode&&this.updateLanguage(),e.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),t.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),e.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),e.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),e.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?te.k:null}),this.props.name&&e.name!==this.props.name&&this.setState({name:this.props.name}),null===(a=this.excalidrawContainerRef.current)||void 0===a||a.classList.toggle("theme--dark","dark"===this.state.theme),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout((()=>{this.actionManager.executeAction(Po)}));const{multiElement:r}=t;t.elementType!==this.state.elementType&&null!=r&&Xr(this.state)&&ye(r)&&rn(r,this.state,this.scene,ot(Yr.getPointAtIndexGlobalCoordinates(r,-1)));const n={},i={},o={},l={},s={};this.state.collaborators.forEach(((e,t)=>{if(e.selectedElementIds)for(const a of Object.keys(e.selectedElementIds))a in o||(o[a]=[]),o[a].push(t);e.pointer&&(e.username&&(l[t]=e.username),e.userState&&(s[t]=e.userState),i[t]=at({sceneX:e.pointer.x,sceneY:e.pointer.y},this.state),n[t]=e.button)}));const c=this.scene.getElements().filter((e=>!(he(e)&&this.state.pendingImageElement&&e.id===this.state.pendingImageElement.id||this.state.editingElement&&"text"===this.state.editingElement.type&&e.id===this.state.editingElement.id))),{atLeastOneVisibleElement:d,scrollBars:u}=mc(c,this.state,this.state.selectionElement,window.devicePixelRatio,this.rc,this.canvas,{scrollX:this.state.scrollX,scrollY:this.state.scrollY,viewBackgroundColor:this.state.viewBackgroundColor,zoom:this.state.zoom,remotePointerViewportCoords:i,remotePointerButton:n,remoteSelectedElementIds:o,remotePointerUsernames:l,remotePointerUserStates:s,shouldCacheIgnoreZoom:this.state.shouldCacheIgnoreZoom,theme:this.state.theme,imageCache:this.imageCache,isExporting:!1,renderScrollbars:!this.isMobile});u&&(Yd=u);const p=!me(this.state.editingElement)&&!d&&c.length>0;var h,m;this.state.scrolledOutside!==p&&this.setState({scrolledOutside:p}),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.scheduleImageRefresh(),this.state.isLoading||null===(h=(m=this.props).onChange)||void 0===h||h.call(m,this.scene.getElementsIncludingDeleted(),this.state,this.files)}static resetTapTwice(){Vd=!1}addTextFromPaste(e){const{x:t,y:a}=tt({clientX:Kd,clientY:Wd},this.state),r=Pa({x:t,y:a,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,strokeSharpness:this.state.currentItemStrokeSharpness,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:te.hs});this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),r]),this.setState({selectedElementIds:{[r.id]:!0}}),this.history.resumeRecording()}selectShapeTool(e){var t;qd||Xe(this.canvas,e),(t=document.activeElement)instanceof HTMLElement&&t.className.includes("ToolIcon")&&this.focusContainer(),ve(e)||this.setState({suggestedBindings:[]}),"image"===e&&this.onImageAction(),"selection"!==e?this.setState({elementType:e,selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}):this.setState({elementType:e})}handleTextWysiwyg(e,t){let{isExistingElement:a=!1}=t;const r=(t,a,r)=>{this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted().map((n=>n.id===e.id&&me(n)?((e,t)=>{let{text:a,isDeleted:r,originalText:n}=t;const i=Ru(e);i&&(a=Mu(a,qe(e),i.width));const o=((e,t)=>{let a=null;const r=Ru(e);r&&(a=r.width-2*te.gK);const{width:n,height:i,baseline:o}=Cu(t,qe(e),a),{textAlign:l,verticalAlign:s}=e;let c,d;if("center"!==l||s!==te.oX.MIDDLE||e.containerId){const[t,a,r,o]=gp(e),[s,u,p,h]=Ap(e,n,i),m=(t-s)/2,g=(a-u)/2,f=(r-p)/2,b=(o-h)/2;[c,d]=ne({s:!0,e:"center"===l||"left"===l,w:"center"===l||"right"===l},e.x,e.y,e.angle,m,g,f,b)}else{const t=Cu(e.text,qe(e),a),r=Ba(e,{width:n-t.width,height:i-t.height});c=e.x-r.x,d=e.y-r.y}if(r){let e=r.height,t=r.width;i>e-2*te.gK&&(e=i+2*te.gK),n>t-2*te.gK&&(t=n+2*te.gK),e===r.height&&t===r.width||wu(r,{height:e,width:t})}return{width:n,height:i,x:Number.isFinite(c)?c:e.x,y:Number.isFinite(d)?d:e.y,baseline:o}})(e,a);return xu(e,Object.assign({text:a,originalText:n,isDeleted:null!=r?r:e.isDeleted},o))})(n,{text:t,isDeleted:r,originalText:a}):n))])};du({id:e.id,canvas:this.canvas,getViewportCoords:(e,t)=>{const{x:a,y:r}=at({sceneX:e,sceneY:t},this.state);return[a-this.state.offsetLeft,r-this.state.offsetTop]},onChange:ct((t=>{r(t,t,!1),mu(e)&&pn(e)})),onSubmit:ct((t=>{let{text:n,viaKeyboard:i,originalText:o}=t;const l=!n.trim();if(r(n,o,l),!l&&i){const t=e.containerId?e.containerId:e.id;this.setState((e=>({selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[t]:!0})})))}l&&Sn(this.scene.getElements(),[e]),l&&!a||this.history.resumeRecording(),this.setState({draggingElement:null,editingElement:null}),this.state.elementLocked&&Xe(this.canvas,this.state.elementType),this.focusContainer()})),element:e,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),r(e.text,e.originalText,!1)}deselectElements(){this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}getTextElementAtPosition(e,t){const a=this.getElementAtPosition(e,t,{includeBoundTextElement:!0});return a&&me(a)&&!a.isDeleted?a:null}getElementAtPosition(e,t,a){const r=this.getElementsAtPosition(e,t,null==a?void 0:a.includeBoundTextElement);if(r.length>1){if(null!=a&&a.preferSelected)for(let e=r.length-1;e>-1;e--)if(this.state.selectedElementIds[r[e].id])return r[e];const n=r[r.length-1];return mr(n,this.state,e,t)?r[r.length-2]:n}return 1===r.length?r[0]:null}getElementsAtPosition(e,t){return a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.scene.getElements():this.scene.getElements().filter((e=>!(me(e)&&e.containerId))),r=a=>((e,t,a,r)=>{const n=10/t.zoom.value,i=[a,r];return((e,t)=>e.selectedElementIds[t.id])(t,e)?fr(e,i,n):gr(e,t,i)})(a,this.state,e,t),a.filter((e=>!e.isDeleted&&r(e)));var a,r}maybeCleanupAfterMissingPointerUp(e){null!==$d&&$d(e)}updateGestureOnPointerDown(e){eu.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===eu.pointers.size&&(eu.lastCenter=oc(eu.pointers),eu.initialScale=this.state.zoom.value,eu.initialDistance=lc(Array.from(eu.pointers.values())))}initialPointerDownState(e){const t=tt(e,this.state),a=ca(this.scene.getElements(),this.state),[r,n,i,o]=_p(a);return{origin:t,withCmdOrCtrl:e[Oe.CTRL_OR_CMD],originInGrid:ot(ue(t.x,t.y,this.state.gridSize)),scrollbars:la(Yd,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop),lastCoords:Object.assign({},t),originalElements:this.scene.getElements().reduce(((e,t)=>(e.set(t.id,Na(t)),e)),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(i+r)/2,y:(o+n)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(t,a),hasHitElementInside:!1},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1}}}handleDraggingScrollBar(e,t){if(!t.scrollbars.isOverEither||this.state.multiElement)return!1;Qd=!0,t.lastCoords.x=e.clientX,t.lastCoords.y=e.clientY;const a=dt((e=>{e.target instanceof HTMLElement&&this.handlePointerMoveOverScrollbars(e,t)})),r=ct((()=>{Qd=!1,Xe(this.canvas,this.state.elementType),$d=null,this.setState({cursorButton:"up"}),this.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(te.Ks.POINTER_MOVE,a),window.removeEventListener(te.Ks.POINTER_UP,r),a.flush()}));return $d=r,window.addEventListener(te.Ks.POINTER_MOVE,a),window.addEventListener(te.Ks.POINTER_UP,r),!0}isASelectedElement(e){return null!=e&&this.state.selectedElementIds[e.id]}isHittingCommonBoundingBoxOfSelectedElements(e,t){if(t.length<2)return!1;const a=10/this.state.zoom.value,[r,n,i,o]=_p(t);return e.x>r-a&&e.x<i+a&&e.y>n-a&&e.y<o+a}onKeyDownFromPointerDownHandler(e){return ct((t=>{this.maybeHandleResize(e,t)||this.maybeDragNewGenericElement(e,t)}))}onKeyUpFromPointerDownHandler(e){return ct((t=>{t.key===Oe.ALT&&t.preventDefault(),this.maybeHandleResize(e,t)||this.maybeDragNewGenericElement(e,t)}))}onPointerMoveFromPointerDownHandler(e){return dt((t=>{var a,r;if(null===e.drag.offset&&(e.drag.offset=ot(((e,t,a)=>{const[r,n]=_p(e);return[t-r,a-n]})(ca(this.scene.getElements(),this.state),e.origin.x,e.origin.y))),!(t.target instanceof HTMLElement))return;if(this.handlePointerMoveOverScrollbars(t,e))return;const n=tt(t,this.state),[i,o]=ue(n.x,n.y,this.state.gridSize);if(!e.drag.hasOccurred&&("arrow"===this.state.elementType||"line"===this.state.elementType)&&ie(n.x,n.y,e.origin.x,e.origin.y)<te.f)return;if(e.resize.isResizing&&(e.lastCoords.x=n.x,e.lastCoords.y=n.y,this.maybeHandleResize(e,t)))return!0;if(this.state.editingLinearElement&&Yr.handlePointDragging(this.state,(e=>this.setState(e)),n.x,n.y,((e,t)=>{this.maybeSuggestBindingsForLinearElementAtCoords(e,t)})))return e.lastCoords.x=n.x,void(e.lastCoords.y=n.y);if((e.hit.allHitElements.some((e=>this.isASelectedElement(e)))||e.hit.hasHitCommonBoundingBoxOfSelectedElements)&&(!this.state.editingLinearElement||!t.shiftKey)&&(!this.state.editingLinearElement||(null===(a=this.state.editingLinearElement)||void 0===a?void 0:a.elementId)!==(null===(r=e.hit.element)||void 0===r?void 0:r.id)||e.hit.hasHitElementInside)){e.drag.hasOccurred=!0;const a=ca(this.scene.getElements(),this.state);if(a.length>0&&!e.withCmdOrCtrl){const[r,i]=ue(n.x-e.drag.offset.x,n.y-e.drag.offset.y,this.state.gridSize),[o,l]=[Math.abs(n.x-e.origin.x),Math.abs(n.y-e.origin.y)],s=t.shiftKey;if(function(e,t,a,r){let n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=arguments.length>7?arguments[7]:void 0;const[s,c]=_p(t),d={x:a-s,y:r-c};t.forEach((a=>{if(zn(n,i,o,e,a,d),!a.groupIds.length||l.editingGroupId&&!_a(l,a)){const t=Fu(a);t&&zn(n,i,o,e,t,d)}pn(a,{simultaneouslyUpdated:t})}))}(e,a,r,i,s,o,l,this.state),this.maybeSuggestBindingForAll(a),t.altKey&&!e.hit.hasBeenDuplicated){e.hit.hasBeenDuplicated=!0;const t=[],a=[],n=new Map,o=new Map,l=e.hit.element,s=this.scene.getElementsIncludingDeleted(),c=ca(s,this.state,!0).map((e=>e.id));for(const d of s)if(c.includes(d.id)||d.id===(null==l?void 0:l.id)&&e.hit.wasAddedToSelection){const l=Oa(this.state.editingGroupId,n,d),[s,c]=ue(e.origin.x-e.drag.offset.x,e.origin.y-e.drag.offset.y,this.state.gridSize);wu(l,{x:l.x+(s-r),y:l.y+(c-i)}),t.push(l),a.push(d),o.set(d.id,l.id)}else t.push(d);const d=[...t,...a];Au(t,a,o),wn(d,a,o,"duplicatesServeAsOld"),this.scene.replaceAllElements(d)}return}}const l=this.state.draggingElement;if(l){if("freedraw"===l.type){const e=l.points,a=n.x-l.x,r=n.y-l.y,i=e.length>0&&e[e.length-1];if(!i||i[0]!==a||i[1]!==r){const n=l.simulatePressure?l.pressures:[...l.pressures,t.pressure];wu(l,{points:[...e,[a,r]],pressures:n})}}else if(be(l)){e.drag.hasOccurred=!0;const a=l.points;let r=i-l.x,s=o-l.y;Ge(t)&&2===a.length&&({width:r,height:s}=ea(this.state.elementType,r,s)),1===a.length?wu(l,{points:[...a,[r,s]]}):a.length>1&&wu(l,{points:[...a.slice(0,-1),[r,s]]}),ye(l)&&this.maybeSuggestBindingsForLinearElementAtCoords(l,[n],this.state.startBoundElement)}else e.lastCoords.x=n.x,e.lastCoords.y=n.y,this.maybeDragNewGenericElement(e,t);if("selection"===this.state.elementType){e.boxSelection.hasOccurred=!0;const a=this.scene.getElements();if(t.shiftKey||this.state.editingLinearElement||!sa(a,this.state)||(e.withCmdOrCtrl&&e.hit.element?this.setState((t=>Ca(Object.assign(Object.assign({},t),{selectedElementIds:{[e.hit.element.id]:!0}}),this.scene.getElements()))):this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),this.state.editingLinearElement)Yr.handleBoxSelection(t,this.state,this.setState.bind(this));else{const t=((e,t)=>{const[a,r,n,i]=gp(t);return e.filter((e=>{const[t,o,l,s]=Sp(e);return"selection"!==e.type&&!_e(e)&&a<=t&&r<=o&&n>=l&&i>=s}))})(a,l);this.setState((a=>Ca(Object.assign(Object.assign({},a),{selectedElementIds:Object.assign(Object.assign(Object.assign({},a.selectedElementIds),t.reduce(((e,t)=>(e[t.id]=!0,e)),{})),e.hit.element?{[e.hit.element.id]:!t.length}:null),showHyperlinkPopup:!(1!==t.length||!t[0].link)&&"info"}),this.scene.getElements())))}}}}))}handlePointerMoveOverScrollbars(e,t){if(t.scrollbars.isOverHorizontal){const a=e.clientX,r=a-t.lastCoords.x;return this.setState({scrollX:this.state.scrollX-r/this.state.zoom.value}),t.lastCoords.x=a,!0}if(t.scrollbars.isOverVertical){const a=e.clientY,r=a-t.lastCoords.y;return this.setState({scrollY:this.state.scrollY-r/this.state.zoom.value}),t.lastCoords.y=a,!0}return!1}onPointerUpFromPointerDownHandler(e){return ct((t=>{const{draggingElement:a,resizingElement:r,multiElement:n,elementType:i,elementLocked:o,isResizing:l,isRotating:s}=this.state;var c,d;if(this.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,cursorButton:"up",editingElement:n||me(this.state.editingElement)?this.state.editingElement:null}),this.savePointer(t.clientX,t.clientY,"up"),this.state.editingLinearElement)if(e.boxSelection.hasOccurred||(null===(c=e.hit)||void 0===c||null===(d=c.element)||void 0===d?void 0:d.id)===this.state.editingLinearElement.elementId&&e.hit.hasHitElementInside){const e=Yr.handlePointerUp(t,this.state.editingLinearElement,this.state);e!==this.state.editingLinearElement&&this.setState({editingLinearElement:e,suggestedBindings:[]})}else this.actionManager.executeAction(Po);if($d=null,e.eventListeners.onMove&&e.eventListeners.onMove.flush(),window.removeEventListener(te.Ks.POINTER_MOVE,e.eventListeners.onMove),window.removeEventListener(te.Ks.POINTER_UP,e.eventListeners.onUp),window.removeEventListener(te.Ks.KEYDOWN,e.eventListeners.onKeyDown),window.removeEventListener(te.Ks.KEYUP,e.eventListeners.onKeyUp),this.state.pendingImageElement&&this.setState({pendingImageElement:null}),"freedraw"===(null==a?void 0:a.type)){const e=tt(t,this.state),r=a.points;let n=e.x-a.x,i=e.y-a.y;n===r[0][0]&&i===r[0][1]&&(i+=1e-4,n+=1e-4);const o=a.simulatePressure?[]:[...a.pressures,t.pressure];return wu(a,{points:[...r,[n,i]],pressures:o,lastCommittedPoint:[n,i]}),void this.actionManager.executeAction(Po)}if(he(a)){const e=a;try{this.initializeImageDimensions(e),this.setState({selectedElementIds:{[e.id]:!0}},(()=>{this.actionManager.executeAction(Po)}))}catch(t){console.error(t),this.scene.replaceAllElements(this.scene.getElementsIncludingDeleted().filter((t=>t.id!==e.id))),this.actionManager.executeAction(Po)}return}if(be(a)){a.points.length>1&&this.history.resumeRecording();const r=tt(t,this.state);return void(e.drag.hasOccurred||!a||n?e.drag.hasOccurred&&!n&&(Xr(this.state)&&ye(a)&&rn(a,this.state,this.scene,r),this.setState({suggestedBindings:[],startBoundElement:null}),o?this.setState((e=>({draggingElement:null,selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[this.state.draggingElement.id]:!0})}))):(Ye(this.canvas),this.setState((e=>({draggingElement:null,elementType:"selection",selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[this.state.draggingElement.id]:!0})}))))):(wu(a,{points:[...a.points,[r.x-a.x,r.y-a.y]]}),this.setState({multiElement:a,editingElement:this.state.draggingElement})))}if("selection"!==i&&a&&$t(a))return this.scene.replaceAllElements(this.scene.getElementsIncludingDeleted().slice(0,-1)),void this.setState({draggingElement:null});a&&wu(a,ta(a)),r&&this.history.resumeRecording(),r&&$t(r)&&this.scene.replaceAllElements(this.scene.getElementsIncludingDeleted().filter((e=>e.id!==r.id)));const u=e.hit.element;if(u&&!e.drag.hasOccurred&&!e.hit.wasAddedToSelection&&(!this.state.editingLinearElement||!e.boxSelection.hasOccurred))if(t.shiftKey&&!this.state.editingLinearElement)if(this.state.selectedElementIds[u.id])if(_a(this.state,u)){const e=u.groupIds.flatMap((e=>za(this.scene.getElements(),e))).map((e=>({[e.id]:!1}))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});this.setState((t=>({selectedGroupIds:Object.assign(Object.assign({},t.selectedElementIds),u.groupIds.map((e=>({[e]:!1}))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})),selectedElementIds:Object.assign(Object.assign({},t.selectedElementIds),e)})))}else this.setState((e=>Ca(Object.assign(Object.assign({},e),{selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[u.id]:!1})}),this.scene.getElements())));else this.setState((e=>({selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[u.id]:!0})})));else this.setState((e=>Object.assign({},Ca(Object.assign(Object.assign({},e),{selectedElementIds:{[u.id]:!0}}),this.scene.getElements()))));this.state.editingLinearElement||e.drag.hasOccurred||this.state.isResizing||!(u&&mr(u,this.state,e.origin.x,e.origin.y)||!u&&e.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!o&&"freedraw"!==i&&a&&this.setState((e=>({selectedElementIds:Object.assign(Object.assign({},e.selectedElementIds),{[a.id]:!0})}))),("selection"!==i||sa(this.scene.getElements(),this.state))&&this.history.resumeRecording(),(e.drag.hasOccurred||l||s)&&(Xr(this.state)?tn:sn)(ca(this.scene.getElements(),this.state)),o||"freedraw"===i?this.setState({draggingElement:null,suggestedBindings:[]}):(Ye(this.canvas),this.setState({draggingElement:null,suggestedBindings:[],elementType:"selection"}))):this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}))}maybeSuggestBindingForAll(e){const t=(e=>{const t=new Set(e.map((e=>{let{id:t}=e;return t})));return e.flatMap((e=>{return ye(e)?(a=e,[bn(a,"start"),bn(a,"end")].filter((e=>null!=e))).filter((e=>!t.has(e.id))):we(e)?yn(e).filter((e=>!t.has(e[0].id))):[];var a}))})(e);this.setState({suggestedBindings:t})}clearSelection(e){this.setState((t=>({selectedElementIds:{},selectedGroupIds:{},editingGroupId:t.editingGroupId&&null!=e&&Ta(e,t.editingGroupId)?t.editingGroupId:null}))),this.setState({selectedElementIds:{},previousSelectedElementIds:this.state.selectedElementIds})}getTextWysiwygSnappedToCenterPosition(e,t,a,r,n){const i=ka(this.scene.getElementsIncludingDeleted().filter((e=>!me(e))),e,t);if(i){const r=i.x+i.width/2,n=i.y+i.height/2;if(Math.hypot(e-r,t-n)<te.wZ){const{x:e,y:t}=at({sceneX:r,sceneY:n},a);return{viewportX:e,viewportY:t,elementCenterX:r,elementCenterY:n}}}}getCanvasOffsets(){var e;if(null!==(e=this.excalidrawContainerRef)&&void 0!==e&&e.current){const e=this.excalidrawContainerRef.current,{left:t,top:a}=e.getBoundingClientRect();return{offsetLeft:t,offsetTop:a}}return{offsetLeft:0,offsetTop:0}}async updateLanguage(){const e=vt.find((e=>e.code===this.props.langCode))||bt;await xt(e),this.setAppState({})}}Xt(tu,"defaultProps",{UIOptions:te.cW}),"production"!==te.Vi.TEST&&"production"!==te.Vi.DEVELOPMENT||(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get(){return this.app.scene.getElementsIncludingDeleted()},set(e){return this.app.scene.replaceAllElements(e)}}})),a(7277);const au=e=>{let{size:t="1em",circleWidth:a=8}=e;return(0,Mn.jsx)("div",{className:"Spinner",children:(0,Mn.jsx)("svg",{viewBox:"0 0 100 100",style:{width:t,height:t},children:(0,Mn.jsx)("circle",{cx:"50",cy:"50",r:50-a/2,strokeWidth:a,fill:"none",strokeMiterlimit:"10"})})})},ru=Pn.forwardRef(((e,t)=>{const{id:a}=Gd(),r=Pn.useRef(null);Pn.useImperativeHandle(t,(()=>r.current));const n="ToolIcon_size_".concat(e.size),[i,o]=(0,Pn.useState)(!1),l=(0,Pn.useRef)(!0),s=async t=>{var a;const r="onClick"in e&&(null===(a=e.onClick)||void 0===a?void 0:a.call(e,t));if(r&&"then"in r)try{o(!0),await r}catch(e){if(!(e instanceof fl))throw e;console.warn(e)}finally{l.current&&o(!1)}};(0,Pn.useEffect)((()=>()=>{l.current=!1}),[]);const c=(0,Pn.useRef)(null);if("button"===e.type||"icon"===e.type||"submit"===e.type){const t="icon"===e.type?"button":e.type;return(0,Mn.jsxs)("button",{className:jn("ToolIcon_type_button",n,e.className,e.visible&&!e.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide",{ToolIcon:!e.hidden,"ToolIcon--selected":e.selected,"ToolIcon--plain":"icon"===e.type}),"data-testid":e["data-testid"],hidden:e.hidden,title:e.title,"aria-label":e["aria-label"],type:t,onClick:s,ref:r,disabled:i||e.isLoading,children:[(e.icon||e.label)&&(0,Mn.jsxs)("div",{className:"ToolIcon__icon","aria-hidden":"true",children:[e.icon||e.label,e.keyBindingLabel&&(0,Mn.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel}),e.isLoading&&(0,Mn.jsx)(au,{})]}),e.showAriaLabel&&(0,Mn.jsxs)("div",{className:"ToolIcon__label",children:[e["aria-label"]," ",i&&(0,Mn.jsx)(au,{})]}),e.children]})}return(0,Mn.jsxs)("label",{className:jn("ToolIcon",e.className),title:e.title,onPointerDown:e=>{c.current=e.pointerType||null},onPointerUp:()=>{requestAnimationFrame((()=>{c.current=null}))},children:[(0,Mn.jsx)("input",{className:"ToolIcon_type_radio ".concat(n),type:"radio",name:e.name,"aria-label":e["aria-label"],"aria-keyshortcuts":e["aria-keyshortcuts"],"data-testid":e["data-testid"],id:"".concat(a,"-").concat(e.id),onChange:()=>{var t;null===(t=e.onChange)||void 0===t||t.call(e,{pointerType:c.current})},checked:e.checked,ref:r}),(0,Mn.jsxs)("div",{className:"ToolIcon__icon",children:[e.icon,e.keyBindingLabel&&(0,Mn.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel})]})]})}));ru.defaultProps={visible:!0,className:"",size:"medium"};const nu=e=>{let{onConfirm:t}=e;const[a,r]=(0,Pn.useState)(!1),n=()=>{r(!a)};return(0,Mn.jsxs)(Mn.Fragment,{children:[(0,Mn.jsx)(ru,{type:"button",icon:ei,title:At("buttons.clearReset"),"aria-label":At("buttons.clearReset"),showAriaLabel:Rd(),onClick:n,"data-testid":"clear-canvas-button"}),a&&(0,Mn.jsx)(xd,{onConfirm:()=>{t(),n()},onCancel:n,title:At("clearCanvasDialog.title"),children:(0,Mn.jsxs)("p",{className:"clear-canvas__content",children:[" ",At("alerts.clearReset")]})})]})},iu=(uo({name:"changeViewBackgroundColor",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),a),commitToHistory:!!a.viewBackgroundColor}),PanelComponent:e=>{let{elements:t,appState:a,updateData:r}=e;return(0,Mn.jsx)("div",{style:{position:"relative"},children:(0,Mn.jsx)(Gn,{label:At("labels.canvasBackground"),type:"canvasBackground",color:a.viewBackgroundColor,onChange:e=>r({viewBackgroundColor:e}),isActive:"canvasColorPicker"===a.openPopup,setActive:e=>r({openPopup:e?"canvasColorPicker":null}),"data-testid":"canvas-background-picker",elements:t,appState:a})})}}),uo({name:"clearCanvas",perform:(e,t,a,r)=>(r.imageCache.clear(),{elements:e.map((e=>xu(e,{isDeleted:!0}))),appState:Object.assign(Object.assign({},Ct()),{files:{},theme:t.theme,elementLocked:t.elementLocked,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,showStats:t.showStats,pasteDialog:t.pasteDialog,elementType:"image"===t.elementType?"selection":t.elementType}),commitToHistory:!0}),PanelComponent:e=>{let{updateData:t}=e;return(0,Mn.jsx)(nu,{onConfirm:t})}}),uo({name:"zoomIn",perform:(e,t,a,r)=>({appState:Object.assign(Object.assign({},t),xa({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:wa(t.zoom.value+te.V4)},t)),commitToHistory:!1}),PanelComponent:e=>{let{updateData:t}=e;return(0,Mn.jsx)(ru,{type:"button",icon:ii,title:"".concat(At("buttons.zoomIn")," — ").concat(et("CtrlOrCmd++")),"aria-label":At("buttons.zoomIn"),onClick:()=>{t(null)},size:"small"})},keyTest:e=>("Equal"===e.code||"NumpadAdd"===e.code)&&(e[Oe.CTRL_OR_CMD]||e.shiftKey)})),ou=uo({name:"zoomOut",perform:(e,t,a,r)=>({appState:Object.assign(Object.assign({},t),xa({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:wa(t.zoom.value-te.V4)},t)),commitToHistory:!1}),PanelComponent:e=>{let{updateData:t}=e;return(0,Mn.jsx)(ru,{type:"button",icon:oi,title:"".concat(At("buttons.zoomOut")," — ").concat(et("CtrlOrCmd+-")),"aria-label":At("buttons.zoomOut"),onClick:()=>{t(null)},size:"small"})},keyTest:e=>("Minus"===e.code||"NumpadSubtract"===e.code)&&(e[Oe.CTRL_OR_CMD]||e.shiftKey)}),lu=(uo({name:"resetZoom",perform:(e,t,a,r)=>({appState:Object.assign(Object.assign({},t),xa({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:wa(1)},t)),commitToHistory:!1}),PanelComponent:e=>{let{updateData:t,appState:a}=e;return(0,Mn.jsx)(Go,{label:At("buttons.resetZoom"),style:{height:"100%"},children:(0,Mn.jsxs)(ru,{type:"button",className:"reset-zoom-button",title:At("buttons.resetZoom"),"aria-label":At("buttons.resetZoom"),onClick:()=>{t(null)},size:"small",children:[(100*a.zoom.value).toFixed(0),"%"]})})},keyTest:e=>(e.code===Be||"Numpad0"===e.code)&&(e[Oe.CTRL_OR_CMD]||e.shiftKey)}),(e,t)=>{const[a,r,n,i]=e,o=n-a,l=t.width/o,s=i-r,c=t.height/s,d=Math.min(l,c),u=Math.floor(d/te.V4)*te.V4;return Math.min(Math.max(u,te.V4),1)}),su=(e,t,a)=>{const r=hu(e),n=ca(r,t),i=a&&n.length>0?_p(n):_p(r),o={value:lu(i,{width:t.width,height:t.height})},[l,s,c,d]=i,u=(l+c)/2,p=(s+d)/2;return{appState:Object.assign(Object.assign(Object.assign({},t),ua({scenePoint:{x:u,y:p},viewportDimensions:{width:t.width,height:t.height},zoom:o})),{zoom:o}),commitToHistory:!1}},cu=(uo({name:"zoomToSelection",perform:(e,t)=>su(e,t,!0),keyTest:e=>"Digit2"===e.code&&e.shiftKey&&!e.altKey&&!e[Oe.CTRL_OR_CMD]}),uo({name:"zoomToFit",perform:(e,t)=>su(e,t,!1),keyTest:e=>"Digit1"===e.code&&e.shiftKey&&!e.altKey&&!e[Oe.CTRL_OR_CMD]}),uo({name:"toggleTheme",perform:(e,t,a)=>({appState:Object.assign(Object.assign({},t),{theme:a||(t.theme===te.C6.LIGHT?te.C6.DARK:te.C6.LIGHT)}),commitToHistory:!1}),PanelComponent:e=>{let{appState:t,updateData:a}=e;return(0,Mn.jsx)("div",{style:{marginInlineStart:"0.25rem"},children:(0,Mn.jsx)(Vo,{value:t.theme,onChange:e=>{a(e)}})})},keyTest:e=>e.altKey&&e.shiftKey&&"KeyD"===e.code}),(e,t,a,r,n,i)=>{const{zoom:o}=r,l=180*a/Math.PI;let s=e*(o.value-1)/2,c=t*(o.value-1)/2;return e>n&&1!==o.value&&(s=n*(o.value-1)/2),t>i&&1!==o.value&&(c=i*(o.value-1)/2),"translate(".concat(s,"px, ").concat(c,"px) scale(").concat(o.value,") rotate(").concat(l,"deg)")}),du=e=>{let t,{id:a,onChange:r,onSubmit:n,getViewportCoords:i,element:o,canvas:l,excalidrawContainer:s,app:c}=e;const d=()=>{var e;const r=c.state,n=null===(e=ku.getScene(o))||void 0===e?void 0:e.getElement(a),{textAlign:l,verticalAlign:s}=n,d=Iu(qe(n));if(n&&me(n)){let e=n.x,a=n.y;const o=Ru(n);let c=n.width,p=n.height,h=n.width,m=n.height;if(o&&n.containerId){const r=((e,t)=>{const a=t.style.fontFamily.replace(/"/g,"");return We({fontFamily:e.fontFamily})!==a||"".concat(e.fontSize,"px")!==t.style.fontSize})(n,u),i=Number(u.style.height.slice(0,-2));if(i>0&&(m=i),r&&(t=o.height,m=n.height),t||(t=o.height),c=o.width-2*te.gK,p=o.height-2*te.gK,h=c,e=o.x+te.gK,m>p){const e=Math.min(m-p,d);return void wu(o,{height:o.height+e})}if(o.height>t&&m<p){const e=Math.min(p-m,d);wu(o,{height:o.height-e})}else s===te.oX.MIDDLE&&(a=o.y+o.height/2-m/2),s===te.oX.BOTTOM&&(a=o.y+o.height-m-te.gK)}const[g,f]=i(e,a),b=u.selectionStart,v=u.selectionEnd,y=u.value.length;if(u.value=n.originalText,b===v&&v!==y){const e=y-v;u.selectionStart=u.value.length-e,u.selectionEnd=u.value.length-e}const k=n.originalText.split("\n"),w=n.containerId?d:n.height/k.length;o||(c=(r.width-8-g)/r.zoom.value);const x=(r.height-f)/r.zoom.value,S=o?o.angle:n.angle;Object.assign(u.style,{font:qe(n),lineHeight:"".concat(w,"px"),width:"".concat(h,"px"),height:"".concat(m,"px"),left:"".concat(g,"px"),top:"".concat(f,"px"),transform:cu(h,m,S,r,c,x),textAlign:l,verticalAlign:s,color:n.strokeColor,opacity:n.opacity/100,filter:"var(--theme-filter)",maxWidth:"".concat(c,"px"),maxHeight:"".concat(x,"px")}),ht()&&(u.style.fontFamily=We(n)),wu(n,{x:e,y:a})}},u=document.createElement("textarea");u.dir="auto",u.tabIndex=0,u.dataset.type="wysiwyg",u.wrap="off",u.classList.add("excalidraw-wysiwyg");let p="pre",h="normal";_e(o)&&(p="pre-wrap",h="break-word"),Object.assign(u.style,{position:"absolute",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",zIndex:"var(--zIndex-wysiwyg)",wordBreak:h,whiteSpace:p,overflowWrap:"break-word"}),d(),r&&(u.oninput=()=>{var e;const t=null===(e=ku.getScene(o))||void 0===e?void 0:e.getElement(a),n=qe(t),i=u.scrollHeight/Iu(n);if(_e(o)&&i>1){let e="auto";if(2===i){const t=Ru(o);1===Mu(u.value,n,t.width).split("\n").length&&(e="".concat(u.scrollHeight/2,"px"))}u.style.height=e,u.style.height="".concat(u.scrollHeight,"px")}r(u.value.replace(/\t/g," ").replace(/\r?\n|\r/g,"\n"))}),u.onkeydown=e=>{if(e.stopPropagation(),!e.shiftKey&&iu.keyTest(e))e.preventDefault(),c.actionManager.executeAction(iu),d();else if(!e.shiftKey&&ou.keyTest(e))e.preventDefault(),c.actionManager.executeAction(ou),d();else if(go.keyTest(e))c.actionManager.executeAction(go);else if(fo.keyTest(e))c.actionManager.executeAction(fo);else if(e.key===Oe.ESCAPE)e.preventDefault(),k=!0,w();else if(e.key===Oe.ENTER&&e[Oe.CTRL_OR_CMD]){if(e.preventDefault(),e.isComposing||229===e.keyCode)return;k=!0,w()}else(e.key===Oe.TAB||e[Oe.CTRL_OR_CMD]&&(e.code===Me||e.code===je))&&(e.preventDefault(),e.shiftKey||e.code===Me?b():f(),u.dispatchEvent(new Event("input")))};const m=" ".repeat(4),g=new RegExp("^ {1,".concat(4,"}")),f=()=>{const{selectionStart:e,selectionEnd:t}=u,a=v();let r=u.value;a.forEach((e=>{const t=r.slice(0,e),a=r.slice(e);r="".concat(t).concat(m).concat(a)})),u.value=r,u.selectionStart=e+4,u.selectionEnd=t+4*a.length},b=()=>{const{selectionStart:e,selectionEnd:t}=u,a=v(),r=[];let n=u.value;a.forEach((e=>{const t=n.slice(e,e+4).match(g);if(t){const a=n.slice(0,e),i=n.slice(e+t[0].length);n="".concat(a).concat(i),r.push(e)}})),u.value=n,r.length&&(e>r[r.length-1]?u.selectionStart=Math.max(e-4,r[r.length-1]):u.selectionStart=e,u.selectionEnd=Math.max(u.selectionStart,t-4*r.length))},v=()=>{let{selectionStart:e,selectionEnd:t,value:a}=u;const r=a.slice(0,e).match(/[^\n]*$/)[0].length;return e-=r,a.slice(e,t).split("\n").reduce(((t,a,r,n)=>t.concat(r?t[r-1]+n[r-1].length+1:e)),[]).reverse()},y=e=>{e.preventDefault(),e.stopPropagation()};let k=!1;const w=()=>{var e;x();const t=null===(e=ku.getScene(o))||void 0===e?void 0:e.getElement(o.id);if(!t)return;let a=u.value;const r=Ru(t);if(r)if(a=t.text,u.value){const e=Ou(r);e&&e===o.id||wu(r,{boundElements:(r.boundElements||[]).concat({type:"text",id:o.id})})}else{var i;wu(r,{boundElements:null===(i=r.boundElements)||void 0===i?void 0:i.filter((e=>!me(e)))})}n({text:a,viaKeyboard:k,originalText:u.value})},x=()=>{E||(E=!0,u.onblur=null,u.oninput=null,u.onkeydown=null,C&&C.disconnect(),window.removeEventListener("resize",d),window.removeEventListener("wheel",y,!0),window.removeEventListener("pointerdown",_),window.removeEventListener("pointerup",S),window.removeEventListener("blur",w),A(),u.remove())},S=e=>{window.removeEventListener("pointerup",S);const t=null==e?void 0:e.target,a=t instanceof HTMLInputElement&&t.closest(".color-picker-input")&&Ke(t);setTimeout((()=>{u.onblur=w,t&&a&&(t.onblur=()=>{u.focus()}),a||u.focus()}))},_=e=>{const t=e.target instanceof HTMLInputElement&&e.target.closest(".color-picker-input")&&Ke(e.target);((e.target instanceof HTMLElement||e.target instanceof SVGElement)&&e.target.closest(".".concat(te.$C.SHAPE_ACTIONS_MENU))&&!Ke(e.target)||t)&&(u.onblur=null,window.addEventListener("pointerup",S),window.addEventListener("blur",w))},A=ku.getScene(o).addCallback((()=>{var e;d(),null!==(e=document.activeElement)&&void 0!==e&&e.closest(".color-picker-input")||u.focus()}));let E=!1;u.select(),S();let C=null;l&&"ResizeObserver"in window?(C=new window.ResizeObserver((()=>{d()})),C.observe(l)):window.addEventListener("resize",d),window.addEventListener("pointerdown",_),window.addEventListener("wheel",y,{passive:!1,capture:!0}),null==s||s.querySelector(".excalidraw-textEditorContainer").appendChild(u)},uu=(e,t)=>Boolean(!e.viewModeEnabled&&(e.editingElement||ca(t,e).length||"selection"!==e.elementType)),pu=e=>e.filter((e=>!e.isDeleted&&!$t(e))),hu=e=>e.filter((e=>!e.isDeleted)),mu=e=>!e.isDeleted,gu=e=>hu(e).map((e=>ve(e.type)?Object.assign(Object.assign({},e),{lastCommittedPoint:null}):e)),fu=e=>gu(e),bu=e=>gu(e),vu=e=>"string"==typeof e;class yu{constructor(){Xt(this,"callbacks",new Set),Xt(this,"nonDeletedElements",[]),Xt(this,"elements",[]),Xt(this,"elementsMap",new Map)}static mapElementToScene(e,t){vu(e)?this.sceneMapById.set(e,t):this.sceneMapByElement.set(e,t)}static getScene(e){return vu(e)?this.sceneMapById.get(e)||null:this.sceneMapByElement.get(e)||null}getElementsIncludingDeleted(){return this.elements}getElements(){return this.nonDeletedElements}getElement(e){return this.elementsMap.get(e)||null}getNonDeletedElement(e){const t=this.getElement(e);return t&&mu(t)?t:null}getNonDeletedElements(e){const t=[];return e.forEach((e=>{const a=this.getNonDeletedElement(e);null!=a&&t.push(a)})),t}replaceAllElements(e){this.elements=e,this.elementsMap.clear(),e.forEach((e=>{this.elementsMap.set(e.id,e),yu.mapElementToScene(e,this)})),this.nonDeletedElements=hu(this.elements),this.informMutation()}informMutation(){for(const e of Array.from(this.callbacks))e()}addCallback(e){if(this.callbacks.has(e))throw new Error;return this.callbacks.add(e),()=>{if(!this.callbacks.has(e))throw new Error;this.callbacks.delete(e)}}destroy(){yu.sceneMapById.forEach(((e,t)=>{e===this&&yu.sceneMapById.delete(t)})),this.callbacks.clear()}}Xt(yu,"sceneMapByElement",new WeakMap),Xt(yu,"sceneMapById",new Map);const ku=yu,wu=function(e,t){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!1;const{points:n,fileId:i}=t;void 0!==n&&(t=Object.assign(Object.assign({},Zr(n)),t));for(const a in t){const n=t[a];if(void 0!==n){if(e[a]===n&&("object"!=typeof n||null===n||"groupIds"===a||"scale"===a))continue;if("scale"===a){const t=e[a],r=n;if(t[0]===r[0]&&t[1]===r[1])continue}else if("points"===a){const t=e[a],r=n;if(t.length===r.length){let e=!1,a=t.length;for(;--a;){const n=t[a],i=r[a];if(n[0]!==i[0]||n[1]!==i[1]){e=!0;break}}if(!e)continue}}e[a]=n,r=!0}}return r?(void 0===t.height&&void 0===t.width&&void 0===i&&void 0===n||ap(e),e.version++,e.versionNonce=ia(),e.updated=ut(),a&&(null===(o=ku.getScene(e))||void 0===o||o.informMutation()),e):e;var o},xu=(e,t)=>{let a=!1;for(const r in t){const n=t[r];if(void 0!==n){if(e[r]===n&&("object"!=typeof n||null===n))continue;a=!0}}return a?Object.assign(Object.assign(Object.assign({},e),t),{updated:ut(),version:e.version+1,versionNonce:ia()}):e},Su=(e,t)=>(e.version=(null!=t?t:e.version)+1,e.versionNonce=ia(),e.updated=ut(),e),_u=(e,t,a)=>{const r=t?t.width-2*te.gK:void 0;let n=e.text;t&&(n=Mu(e.originalText,qe(e),t.width));const i=Cu(e.originalText,qe(e),r);let o=e.y;if(t){let a=t.height;e.verticalAlign===te.oX.TOP?o=t.y+te.gK:e.verticalAlign===te.oX.BOTTOM?o=t.y+t.height-i.height-te.gK:(o=t.y+t.height/2-i.height/2,i.height>t.height-2*te.gK&&(a=i.height+2*te.gK,o=t.y+a/2-i.height/2)),wu(t,{height:a})}wu(e,{width:i.width,height:i.height,baseline:i.baseline,y:o,text:n})},Au=(e,t,a)=>{const r=pt(e);t.forEach((e=>{const t=a.get(e.id),n=Ou(e);if(n){const o=a.get(n);if(o){const a=r.get(t);var i;a&&wu(a,{boundElements:null===(i=e.boundElements)||void 0===i?void 0:i.concat({type:"text",id:o})});const n=r.get(o);n&&me(n)&&wu(n,{containerId:a?t:null})}}}))},Eu=(e,t)=>{const a=Ou(e);if(a){const r=ku.getScene(e).getElement(a);if(r&&r.text){if(!e)return;let a,n=r.text,i=r.height,o=e.height,l=r.baseline;if("n"!==t&&"s"!==t){n&&(n=Mu(r.originalText,qe(r),e.width));const t=Cu(n,qe(r),e.width);i=t.height,l=t.baseline}if(i>e.height-2*te.gK){o=i+2*te.gK;const a=o-e.height,r="ne"===t||"nw"===t||"n"===t?e.y-a:e.y;wu(e,{height:o,y:r})}a=r.verticalAlign===te.oX.TOP?e.y+te.gK:r.verticalAlign===te.oX.BOTTOM?e.y+e.height-i-te.gK:e.y+e.height/2-i/2,wu(r,{text:n,width:e.width-2*te.gK,height:i,x:e.x+te.gK,y:a,baseline:l})}}},Cu=(e,t,a)=>{e=e.split("\n").map((e=>e||" ")).join("\n");const r=document.createElement("div");if(r.style.position="absolute",r.style.whiteSpace="pre",r.style.font=t,r.style.minHeight="1em",a){const e=Iu(t);r.style.width="".concat(String(a),"px"),r.style.maxWidth="".concat(String(a),"px"),r.style.overflow="hidden",r.style.wordBreak="break-word",r.style.lineHeight="".concat(String(e),"px"),r.style.whiteSpace="pre-wrap"}document.body.appendChild(r),r.innerText=e;const n=document.createElement("span");n.style.display="inline-block",n.style.overflow="hidden",n.style.width="1px",n.style.height="1px",r.appendChild(n);const i=n.offsetTop+n.offsetHeight,o=r.offsetWidth,l=r.offsetHeight;return document.body.removeChild(r),{width:o,height:l,baseline:i}},Tu="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),zu={},Iu=e=>(zu[e]||(zu[e]=Cu(Tu,e,null).height),zu[e]);let Lu;const ju=(e,t)=>{Lu||(Lu=document.createElement("canvas"));const a=Lu.getContext("2d");a.font=t;const r=a.measureText(e);return ht()?10*r.width:r.width},Mu=(e,t,a)=>{const r=a-2*te.gK,n=[],i=e.split("\n"),o=ju(" ",t);return i.forEach((e=>{const a=e.split(" ");if(1===a.length&&""===a[0])n.push(a[0]);else{let e="",i=0,l=0;for(;l<a.length;)if(ju(a[l],t)>=r){for(e&&n.push(e),e="",i=0;a[l].length>0;){const o=a[l][0],s=Bu.calculate(o,t);i+=s,a[l]=a[l].slice(1),i>=r?(" "===e.slice(-1)&&(e=e.slice(0,-1)),n.push(e),e=o,i=s,i===r&&(e="",i=0)):e+=o}i+o>=r?(n.push(e),e="",i=0):(e+=" ",i+=o),l++}else{for(;i<r&&l<a.length;){const s=a[l];if(i=ju(e+s,t),i>=r){n.push(e),i=0,e="";break}if(l++,e+="".concat(s," "),i+o>=r){n.push(e.slice(0,-1)),e="",i=0;break}}i===r&&(e="",i=0)}e&&(" "===e.slice(-1)&&(e=e.slice(0,-1)),n.push(e))}})),n.join("\n")},Bu=(()=>{const e={};return{calculate:(t,a)=>{const r=t.charCodeAt(0);if(e[a]||(e[a]=[]),!e[a][r]){const n=ju(t,a);e[a][r]=n}return e[a][r]},getCache:t=>e[t]}})(),Pu=e=>{const t=Nu(e);return 0===t?Cu(Tu.split("").join("\n"),e).width+2*te.gK:t+2*te.gK},Du=e=>Iu(e)+2*te.gK,Nu=e=>{const t=Bu.getCache(e);if(!t)return 0;const a=t.filter((e=>void 0!==e));return Math.max(...a)},Ou=e=>{var t,a,r;return null!=e&&null!==(t=e.boundElements)&&void 0!==t&&t.length&&(null==e||null===(a=e.boundElements)||void 0===a||null===(r=a.filter((e=>"text"===e.type))[0])||void 0===r?void 0:r.id)||null},Fu=e=>{if(!e)return null;const t=Ou(e);var a;return t&&(null===(a=ku.getScene(e))||void 0===a?void 0:a.getElement(t))||null},Ru=e=>{return e&&e.containerId&&(null===(t=ku.getScene(e))||void 0===t?void 0:t.getElement(e.containerId))||null;var t},Hu="invert(100%) hue-rotate(180deg) saturate(1.25)",Gu=Ct(),Vu=(e,t)=>pe(e)&&!t.imageCache.has(e.fileId),Uu=(e,t)=>{var a;return"dark"===t.theme&&pe(e)&&!Vu(e,t)&&(null===(a=t.imageCache.get(e.fileId))||void 0===a?void 0:a.mimeType)!==te.LO.svg},Ku=e=>[8,8+e],Wu=e=>[1.5,6+e],qu=e=>"freedraw"===e.type?12*e.strokeWidth:20,Zu=14,Qu=document.createElement("img");Qu.src="data:".concat(te.LO.svg,",").concat(encodeURIComponent('<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="image" class="svg-inline--fa fa-image fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"></path></svg>'));const Yu=document.createElement("img");Yu.src="data:".concat(te.LO.svg,",").concat(encodeURIComponent('<svg viewBox="0 0 668 668" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48ZM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56ZM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.81709 0 0 .81709 124.825 145.825)"/><path d="M256 8C119.034 8 8 119.033 8 256c0 136.967 111.034 248 248 248s248-111.034 248-248S392.967 8 256 8Zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676ZM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.30366 0 0 .30366 506.822 60.065)"/></svg>'));const Ju=(e,t,a,r)=>{switch(a.globalAlpha=e.opacity/100,e.type){case"rectangle":case"diamond":case"ellipse":a.lineJoin="round",a.lineCap="round",t.draw(ep(e));break;case"arrow":case"line":a.lineJoin="round",a.lineCap="round",ep(e).forEach((e=>{t.draw(e)}));break;case"freedraw":{a.save(),a.fillStyle=e.strokeColor;const r=function(e){return dp.get(e)}(e),n=ep(e);n&&t.draw(n),a.fillStyle=e.strokeColor,a.fill(r),a.restore();break}case"image":{var n;const t=pe(e)?null===(n=r.imageCache.get(e.fileId))||void 0===n?void 0:n.image:void 0;null==t||t instanceof Promise?((e,t,a)=>{t.fillStyle="#E7E7E7",t.fillRect(0,0,e.width,e.height);const r=Math.min(e.width,e.height),n=Math.min(r,Math.min(.4*r,100));t.drawImage("error"===e.status?Yu:Qu,e.width/2-n/2,e.height/2-n/2,n,n)})(e,a,r.zoom.value):a.drawImage(t,0,0,e.width,e.height);break}default:if(!me(e))throw new Error("Unimplemented type ".concat(e.type));{const t=it(e.text),r=t&&!a.canvas.isConnected;r&&document.body.appendChild(a.canvas),a.canvas.setAttribute("dir",t?"rtl":"ltr"),a.save(),a.font=qe(e),a.fillStyle=e.strokeColor,a.textAlign=e.textAlign;const n=e.text.replace(/\r\n?/g,"\n").split("\n"),i=e.containerId?Iu(qe(e)):e.height/n.length;let o=e.height-e.baseline;e.verticalAlign===te.oX.BOTTOM&&(o=te.gK);const l="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0;for(let e=0;e<n.length;e++)a.fillText(n[e],l,(e+1)*i-o);a.restore(),r&&a.canvas.remove()}}a.globalAlpha=1},Xu=new WeakMap,$u=new WeakMap,ep=e=>$u.get(e),tp=(e,t)=>$u.set(e,t),ap=e=>$u.delete(e),rp=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a={seed:e.seed,strokeLineDash:"dashed"===e.strokeStyle?Ku(e.strokeWidth):"dotted"===e.strokeStyle?Wu(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 a.fillStyle=e.fillStyle,a.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor,"ellipse"===e.type&&(a.curveFitting=1),a;case"line":case"freedraw":return oe(e.points)&&(a.fillStyle=e.fillStyle,a.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor),a;case"arrow":return a;default:throw new Error("Unimplemented type ".concat(e.type))}},np=(e,t)=>{let a=$u.get(e);if(void 0===a)switch(Xu.delete(e),e.type){case"rectangle":if("round"===e.strokeSharpness){const r=e.width,n=e.height,i=.25*Math.min(r,n);a=t.path("M ".concat(i," 0 L ").concat(r-i," 0 Q ").concat(r," 0, ").concat(r," ").concat(i," L ").concat(r," ").concat(n-i," Q ").concat(r," ").concat(n,", ").concat(r-i," ").concat(n," L ").concat(i," ").concat(n," Q 0 ").concat(n,", 0 ").concat(n-i," L 0 ").concat(i," Q 0 0, ").concat(i," 0"),rp(e,!0))}else a=t.rectangle(0,0,e.width,e.height,rp(e));tp(e,a);break;case"diamond":{const[r,n,i,o,l,s,c,d]=fp(e);a="round"===e.strokeSharpness?t.path("M ".concat(r+.25*(i-r)," ").concat(n+.25*(o-n)," L ").concat(i-.25*(i-r)," ").concat(o-.25*(o-n),"\n C ").concat(i," ").concat(o,", ").concat(i," ").concat(o,", ").concat(i-.25*(i-l)," ").concat(o+.25*(s-o),"\n L ").concat(l+.25*(i-l)," ").concat(s-.25*(s-o),"\n C ").concat(l," ").concat(s,", ").concat(l," ").concat(s,", ").concat(l-.25*(l-c)," ").concat(s-.25*(s-d),"\n L ").concat(c+.25*(l-c)," ").concat(d+.25*(s-d),"\n C ").concat(c," ").concat(d,", ").concat(c," ").concat(d,", ").concat(c+.25*(r-c)," ").concat(d-.25*(d-n),"\n L ").concat(r-.25*(r-c)," ").concat(n+.25*(d-n),"\n C ").concat(r," ").concat(n,", ").concat(r," ").concat(n,", ").concat(r+.25*(i-r)," ").concat(n+.25*(o-n)),rp(e,!0)):t.polygon([[r,n],[i,o],[l,s],[c,d]],rp(e)),tp(e,a);break}case"ellipse":a=t.ellipse(e.width/2,e.height/2,e.width,e.height,rp(e)),tp(e,a);break;case"line":case"arrow":{const r=rp(e),n=e.points.length?e.points:[[0,0]];if(a="sharp"===e.strokeSharpness?r.fill?[t.polygon(n,r)]:[t.linearPath(n,r)]:[t.curve(n,r)],"arrow"===e.type){const{startArrowhead:n=null,endArrowhead:i="arrow"}=e,o=(e,a,n,i)=>{const o=xp(e,a,n,i);if(null===o)return[];if("dot"===i){const[a,n,i]=o;return[t.circle(a,n,i,Object.assign(Object.assign({},r),{fill:e.strokeColor,fillStyle:"solid",stroke:"none"}))]}if("triangle"===i){const[a,n,i,l,s,c]=o;return delete r.strokeLineDash,[t.polygon([[a,n],[i,l],[s,c],[a,n]],Object.assign(Object.assign({},r),{fill:e.strokeColor,fillStyle:"solid"}))]}const[l,s,c,d,u,p]=o;if("dotted"===e.strokeStyle){const t=Wu(e.strokeWidth-1);r.strokeLineDash=[t[0],t[1]-1]}else delete r.strokeLineDash;return[t.line(c,d,l,s,r),t.line(u,p,l,s,r)]};if(null!==n){const t=o(e,a,"start",n);a.push(...t)}if(null!==i){const t=o(e,a,"end",i);a.push(...t)}}tp(e,a);break}case"freedraw":up(e),a=oe(e.points)?t.polygon(e.points,Object.assign(Object.assign({},rp(e)),{stroke:"none"})):null,tp(e,a);break;case"text":case"image":tp(e,null)}},ip=(e,t)=>{const a=t?t.zoom:Gu.zoom,r=Xu.get(e),n=r&&r.canvasZoom!==a.value&&!(null!=t&&t.shouldCacheIgnoreZoom);if(!r||n||r.theme!==t.theme){const r=((e,t,a)=>{const r=document.createElement("canvas"),n=r.getContext("2d"),i=qu(e);let o=0,l=0;if(be(e)||ge(e)){const[a,s,c,d]=gp(e);r.width=Qe(a,c)*window.devicePixelRatio*t.value+i*t.value*2,r.height=Qe(s,d)*window.devicePixelRatio*t.value+i*t.value*2,o=e.x>a?Qe(e.x,a)*window.devicePixelRatio*t.value:0,l=e.y>s?Qe(e.y,s)*window.devicePixelRatio*t.value:0,n.translate(o,l)}else r.width=e.width*window.devicePixelRatio*t.value+i*t.value*2,r.height=e.height*window.devicePixelRatio*t.value+i*t.value*2;n.save(),n.translate(i*t.value,i*t.value),n.scale(window.devicePixelRatio*t.value,window.devicePixelRatio*t.value);const s=X(r);return Uu(e,a)&&(n.filter=Hu),Ju(e,s,n,a),n.restore(),{element:e,canvas:r,theme:a.theme,canvasZoom:t.value,canvasOffsetX:o,canvasOffsetY:l}})(e,a,t);return Xu.set(e,r),r}return r},op=(e,t,a,r)=>{const n=e.element,i=qu(n);let[o,l,s,c]=gp(n);ge(n)&&(o=Math.floor(o),s=Math.ceil(s),l=Math.floor(l),c=Math.ceil(c));const d=((o+s)/2+r.scrollX)*window.devicePixelRatio,u=((l+c)/2+r.scrollY)*window.devicePixelRatio,p=Vu(n,r),h="scale"in e.element&&!p?e.element.scale[0]:1,m="scale"in e.element&&!p?e.element.scale[1]:1;a.save(),a.scale(1/window.devicePixelRatio*h,1/window.devicePixelRatio*m),a.translate(d*h,u*m),a.rotate(n.angle*h*m),a.drawImage(e.canvas,-(s-o)/2*window.devicePixelRatio-i*e.canvasZoom/e.canvasZoom,-(c-l)/2*window.devicePixelRatio-i*e.canvasZoom/e.canvasZoom,e.canvas.width/e.canvasZoom,e.canvas.height/e.canvasZoom),a.restore()},lp=(e,t,a,r)=>{const n=t.generator;switch(e.type){case"selection":a.save(),a.translate(e.x+r.scrollX,e.y+r.scrollY),a.fillStyle="rgba(0, 0, 255, 0.10)",a.fillRect(0,0,e.width,e.height),a.restore();break;case"freedraw":if(np(e,n),r.isExporting){const t=ip(e,r);op(t,0,a,r)}else{const[n,i,o,l]=gp(e),s=(n+o)/2+r.scrollX,c=(i+l)/2+r.scrollY,d=(o-n)/2-(e.x-n),u=(l-i)/2-(e.y-i);a.save(),a.translate(s,c),a.rotate(e.angle),a.translate(-d,-u),Ju(e,t,a,r),a.restore()}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":if(np(e,n),r.isExporting){const[n,i,o,l]=gp(e),s=(n+o)/2+r.scrollX,c=(i+l)/2+r.scrollY,d=(o-n)/2-(e.x-n),u=(l-i)/2-(e.y-i);a.save(),a.translate(s,c),a.rotate(e.angle),a.translate(-d,-u),Uu(e,r)&&(a.filter="none"),Ju(e,t,a,r),a.restore()}else{const t=ip(e,r);op(t,0,a,r)}break;default:throw new Error("Unimplemented type ".concat(e.type))}},sp=(e,t,a)=>{if(void 0===a)return e.draw(t);const r={sets:t.sets,shape:t.shape,options:Object.assign(Object.assign({},t.options),{fixedDecimalPlaceDigits:a})};return e.draw(r)},cp=(e,t,a,r,n,i,o)=>{const[l,s,c,d]=gp(e),u=(c-l)/2-(e.x-l),p=(d-s)/2-(e.y-s),h=180*e.angle/Math.PI,m=t.generator;let g=a;if(e.link){const t=a.ownerDocument.createElementNS(te.hR,"a");t.setAttribute("href",e.link),g.appendChild(t),g=t}switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":{np(e,m);const a=sp(t,ep(e),te.zK),r=e.opacity/100;1!==r&&(a.setAttribute("stroke-opacity","".concat(r)),a.setAttribute("fill-opacity","".concat(r))),a.setAttribute("stroke-linecap","round"),a.setAttribute("transform","translate(".concat(n||0," ").concat(i||0,") rotate(").concat(h," ").concat(u," ").concat(p,")")),g.appendChild(a);break}case"line":case"arrow":{np(e,m);const r=a.ownerDocument.createElementNS(te.hR,"g"),o=e.opacity/100;r.setAttribute("stroke-linecap","round"),ep(e).forEach((a=>{const l=sp(t,a,te.zK);1!==o&&(l.setAttribute("stroke-opacity","".concat(o)),l.setAttribute("fill-opacity","".concat(o))),l.setAttribute("transform","translate(".concat(n||0," ").concat(i||0,") rotate(").concat(h," ").concat(u," ").concat(p,")")),"line"===e.type&&oe(e.points)&&"transparent"!==e.backgroundColor&&l.setAttribute("fill-rule","evenodd"),r.appendChild(l)})),g.appendChild(r);break}case"freedraw":{up(e);const r=e.opacity/100,o=ep(e),l=o?sp(t,o,te.zK):a.ownerDocument.createElementNS(te.hR,"g");1!==r&&(l.setAttribute("stroke-opacity","".concat(r)),l.setAttribute("fill-opacity","".concat(r))),l.setAttribute("transform","translate(".concat(n||0," ").concat(i||0,") rotate(").concat(h," ").concat(u," ").concat(p,")")),l.setAttribute("stroke","none");const s=a.ownerDocument.createElementNS(te.hR,"path");s.setAttribute("fill",e.strokeColor),s.setAttribute("d",pp(e)),l.appendChild(s),g.appendChild(l);break}case"image":{const t=pe(e)&&r[e.fileId];if(t){const r="image-".concat(t.id);let l=a.querySelector("#".concat(r));if(!l){l=a.ownerDocument.createElementNS(te.hR,"symbol"),l.id=r;const e=a.ownerDocument.createElementNS(te.hR,"image");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("href",t.dataURL),l.appendChild(e),g.prepend(l)}const s=a.ownerDocument.createElementNS(te.hR,"use");s.setAttribute("href","#".concat(r)),o&&t.mimeType!==te.LO.svg&&s.setAttribute("filter",Hu),s.setAttribute("width","".concat(Math.round(e.width))),s.setAttribute("height","".concat(Math.round(e.height))),s.setAttribute("transform","translate(".concat(n||0," ").concat(i||0,") rotate(").concat(h," ").concat(u," ").concat(p,")")),g.appendChild(s)}break}default:if(!me(e))throw new Error("Unimplemented type ".concat(e.type));{const t=e.opacity/100,r=a.ownerDocument.createElementNS(te.hR,"g");1!==t&&(r.setAttribute("stroke-opacity","".concat(t)),r.setAttribute("fill-opacity","".concat(t))),r.setAttribute("transform","translate(".concat(n||0," ").concat(i||0,") rotate(").concat(h," ").concat(u," ").concat(p,")"));const o=e.text.replace(/\r\n?/g,"\n").split("\n"),l=e.height/o.length,s=e.height-e.baseline,c="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,d=it(e.text)?"rtl":"ltr",m="center"===e.textAlign?"middle":"right"===e.textAlign||"rtl"===d?"end":"start";for(let t=0;t<o.length;t++){const n=a.ownerDocument.createElementNS(te.hR,"text");n.textContent=o[t],n.setAttribute("x","".concat(c)),n.setAttribute("y","".concat((t+1)*l-s)),n.setAttribute("font-family",We(e)),n.setAttribute("font-size","".concat(e.fontSize,"px")),n.setAttribute("fill",e.strokeColor),n.setAttribute("text-anchor",m),n.setAttribute("style","white-space: pre;"),n.setAttribute("direction",d),r.appendChild(n)}g.appendChild(r)}}},dp=new WeakMap([]);function up(e){const t=pp(e),a=new Path2D(t);return dp.set(e,a),a}function pp(e){return function(e){if(!e.length)return"";const t=e.length-1;return e.reduce(((e,a,r,n)=>(r===t?e.push(a,hp(a,n[0]),"L",n[0],"Z"):e.push(a,hp(a,n[r+1])),e)),["M",e[0],"Q"]).join(" ").replace(mp,"$1")}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Yt(Jt(e,t),t)}(e.simulatePressure?e.points:e.points.length?e.points.map(((t,a)=>{let[r,n]=t;return[r,n,e.pressures[a]]})):[[0,0,.5]],{simulatePressure:e.simulatePressure,size:4.25*e.strokeWidth,thinning:.6,smoothing:.5,streamline:.5,easing:e=>Math.sin(e*Math.PI/2),last:!!e.lastCommittedPoint}))}function hp(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}const mp=/(\s?[A-Z]?,?-?[0-9]*\.[0-9]{0,2})(([0-9]|e|-)*)/g,gp=e=>ge(e)?kp(e):be(e)?wp(e):[e.x,e.y,e.x+e.width,e.y+e.height],fp=e=>{const t=Math.floor(e.width/2)+1,a=e.width,r=Math.floor(e.height/2)+1;return[t,0,a,r,t,e.height,0,r]},bp=e=>{for(const t of e.sets)if("path"===t.type)return t.ops;return e.sets[0].ops},vp=(e,t)=>{let a=[0,0];const{minX:r,minY:n,maxX:i,maxY:o}=e.reduce(((e,r)=>{let{op:n,data:i}=r;if("move"===n)a=i;else if("bcurveTo"===n){const r=[i[0],i[1]],n=[i[2],i[3]],o=[i[4],i[5]],l=a;a=o;const s=(e,t)=>Math.pow(1-e,3)*o[t]+3*e*Math.pow(1-e,2)*n[t]+3*Math.pow(e,2)*(1-e)*r[t]+l[t]*Math.pow(e,3);let c=0;for(;c<=1;){let a=s(c,0),r=s(c,1);t&&([a,r]=t(a,r)),e.minY=Math.min(e.minY,r),e.minX=Math.min(e.minX,a),e.maxX=Math.max(e.maxX,a),e.maxY=Math.max(e.maxY,r),c+=.1}}return e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r,n,i,o]},yp=e=>{let t=1/0,a=1/0,r=-1/0,n=-1/0;for(const[i,o]of e)t=Math.min(t,i),a=Math.min(a,o),r=Math.max(r,i),n=Math.max(n,o);return[t,a,r,n]},kp=e=>{const[t,a,r,n]=yp(e.points);return[t+e.x,a+e.y,r+e.x,n+e.y]},wp=e=>{let t;if(e.points.length<2||!ep(e)){const{minX:a,minY:r,maxX:n,maxY:i}=e.points.reduce(((e,t)=>{let[a,r]=t;return e.minY=Math.min(e.minY,r),e.minX=Math.min(e.minX,a),e.maxX=Math.max(e.maxX,a),e.maxY=Math.max(e.maxY,r),e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});t=[a+e.x,r+e.y,n+e.x,i+e.y]}else{const a=ep(e),r=bp(a[0]),[n,i,o,l]=vp(r);t=[n+e.x,i+e.y,o+e.x,l+e.y]}return t},xp=(e,t,a,r)=>{const n=bp(t[0]);if(n.length<1)return null;const i="start"===a?1:n.length-1,o=n[i].data,l=[o[4],o[5]],s=[o[2],o[3]],c=[o[0],o[1]],d=n[i-1];let u=[0,0];"move"===d.op?u=d.data:"bcurveTo"===d.op&&(u=[d.data[4],d.data[5]]);const p=(e,t)=>Math.pow(1-e,3)*l[t]+3*e*Math.pow(1-e,2)*s[t]+3*Math.pow(e,2)*(1-e)*c[t]+u[t]*Math.pow(e,3),[h,m]="start"===a?u:l,[g,f]=[p(.3,0),p(.3,1)],b=Math.hypot(h-g,m-f),v=(h-g)/b,y=(m-f)/b,k={arrow:30,bar:15,dot:15,triangle:15}[r];let w=0;if("arrow"===r){const[t,a]=e.points[e.points.length-1],[r,n]=e.points.length>1?e.points[e.points.length-2]:[0,0];w=Math.hypot(t-r,a-n)}else for(let t=0;t<e.points.length;t++){const[a,r]=e.points[t-1]||[0,0],[n,i]=e.points[t];w+=Math.hypot(n-a,i-r)}const x=Math.min(k,w/2),S=h-v*x,_=m-y*x;if("dot"===r)return[h,m,Math.hypot(_-m,S-h)+e.strokeWidth];const A={arrow:20,bar:90,triangle:25}[r],[E,C]=ae(S,_,h,m,-A*Math.PI/180),[T,z]=ae(S,_,h,m,A*Math.PI/180);return[h,m,E,C,T,z]},Sp=e=>{let t;const[a,r,n,i]=gp(e),o=(a+n)/2,l=(r+i)/2;if(ge(e)){const[t,a,r,n]=yp(e.points.map((t=>{let[a,r]=t;return ae(a,r,o-e.x,l-e.y,e.angle)})));return[t+e.x,a+e.y,r+e.x,n+e.y]}if(be(e))t=((e,t,a)=>{if(e.points.length<2||!ep(e)){const{minX:r,minY:n,maxX:i,maxY:o}=e.points.reduce(((r,n)=>{let[i,o]=n;return[i,o]=ae(e.x+i,e.y+o,t,a,e.angle),r.minY=Math.min(r.minY,o),r.minX=Math.min(r.minX,i),r.maxX=Math.max(r.maxX,i),r.maxY=Math.max(r.maxY,o),r}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[r,n,i,o]}const r=ep(e),n=bp(r[0]);return vp(n,((r,n)=>ae(e.x+r,e.y+n,t,a,e.angle)))})(e,o,l);else if("diamond"===e.type){const[s,c]=ae(o,r,o,l,e.angle),[d,u]=ae(o,i,o,l,e.angle),[p,h]=ae(a,l,o,l,e.angle),[m,g]=ae(n,l,o,l,e.angle);t=[Math.min(s,d,p,m),Math.min(c,u,h,g),Math.max(s,d,p,m),Math.max(c,u,h,g)]}else if("ellipse"===e.type){const s=(n-a)/2,c=(i-r)/2,d=Math.cos(e.angle),u=Math.sin(e.angle),p=Math.hypot(s*d,c*u),h=Math.hypot(c*d,s*u);t=[o-p,l-h,o+p,l+h]}else{const[s,c]=ae(a,r,o,l,e.angle),[d,u]=ae(a,i,o,l,e.angle),[p,h]=ae(n,i,o,l,e.angle),[m,g]=ae(n,r,o,l,e.angle);t=[Math.min(s,d,p,m),Math.min(c,u,h,g),Math.max(s,d,p,m),Math.max(c,u,h,g)]}return t},_p=e=>{if(!e.length)return[0,0,0,0];let t=1/0,a=-1/0,r=1/0,n=-1/0;return e.forEach((e=>{const[i,o,l,s]=Sp(e);t=Math.min(t,i),r=Math.min(r,o),a=Math.max(a,l),n=Math.max(n,s)})),[t,r,a,n]},Ap=(e,t,a)=>{if(!be(e)&&!ge(e))return[e.x,e.y,e.x+t,e.y+a];const r=Qr(0,t,Qr(1,a,e.points));let n;if(ge(e))n=yp(r);else{const t=ee(),a="sharp"===e.strokeSharpness?t.linearPath(r,rp(e)):t.curve(r,rp(e)),i=bp(a);n=vp(i)}const[i,o,l,s]=n;return[i+e.x,o+e.y,l+e.x,s+e.y]},Ep=(e,t,a)=>{const r=ee(),n="sharp"===a?r.linearPath(t,rp(e)):r.curve(t,rp(e)),i=bp(n),[o,l,s,c]=vp(i);return[o+e.x,l+e.y,s+e.x,c+e.y]},Cp=(e,t)=>{if(!e.length)return[0,0,0,0];let a=1/0,r=e[0];return e.forEach((e=>{const[n,i,o,l]=Sp(e),s=ie((n+o)/2,(i+l)/2,t.x,t.y);s<a&&(a=s,r=e)})),Sp(r)},Tp=e=>{const[t,a,r,n]=_p(e);return{minX:t,minY:a,maxX:r,maxY:n,width:r-t,height:n-a,midX:(t+r)/2,midY:(a+n)/2}},zp="\x3c!-- svg-source:excalidraw --\x3e",Ip=async function(e,t,a,r){let{exportBackground:n,exportPadding:i=te.qy,viewBackgroundColor:o}=r,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(e,a)=>{const r=document.createElement("canvas");return r.width=e*t.exportScale,r.height=a*t.exportScale,{canvas:r,scale:t.exportScale}};const[s,c,d,u]=jp(e,i),{canvas:p,scale:h=1}=l(d,u),m=Ct(),{imageCache:g}=await Pd({imageCache:new Map,fileIds:Dd(e).map((e=>e.fileId)),files:a});return mc(e,t,null,h,X(p),p,{viewBackgroundColor:n?o:null,scrollX:-s+i,scrollY:-c+i,zoom:m.zoom,remotePointerViewportCoords:{},remoteSelectedElementIds:{},shouldCacheIgnoreZoom:!1,remotePointerUsernames:{},remotePointerUserStates:{},theme:t.exportWithDarkMode?"dark":"light",imageCache:g,renderScrollbars:!1,renderSelection:!1,renderGrid:!1,isExporting:!0}),p},Lp=async(e,t,r)=>{const{exportPadding:n=te.qy,viewBackgroundColor:i,exportScale:o=1,exportEmbedScene:l}=t;let s="";if(l)try{s=await(await Promise.resolve().then(a.bind(a,9506))).encodeSvgMetadata({text:Zl(e,t,r||{},"local")})}catch(e){console.error(e)}const[c,d,u,p]=jp(e,n),h=document.createElementNS(te.hR,"svg");if(h.setAttribute("version","1.1"),h.setAttribute("xmlns",te.hR),h.setAttribute("viewBox","0 0 ".concat(u," ").concat(p)),h.setAttribute("width","".concat(u*o)),h.setAttribute("height","".concat(p*o)),t.exportWithDarkMode&&h.setAttribute("filter",te.ZF),h.innerHTML="\n ".concat(zp,"\n ").concat(s,'\n <defs>\n <style>\n @font-face {\n font-family: "Virgil";\n src: url("https://excalidraw.com/Virgil.woff2");\n }\n @font-face {\n font-family: "Cascadia";\n src: url("https://excalidraw.com/Cascadia.woff2");\n }\n </style>\n </defs>\n '),t.exportBackground&&i){const e=h.ownerDocument.createElementNS(te.hR,"rect");e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width","".concat(u)),e.setAttribute("height","".concat(p)),e.setAttribute("fill",i),h.appendChild(e)}return function(e,t,a,r){let{offsetX:n=0,offsetY:i=0,exportWithDarkMode:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};a&&e.forEach((e=>{if(!e.isDeleted)try{cp(e,t,a,r,e.x+n,e.y+i,o)}catch(e){console.error(e)}}))}(e,$(h),h,r||{},{offsetX:-c+n,offsetY:-d+n,exportWithDarkMode:t.exportWithDarkMode}),h},jp=(e,t)=>{const[a,r,n,i]=_p(e);return[a,r,Qe(a,n)+2*t,Qe(r,i)+t+t]},Mp=(e,t,a)=>{const[,,r,n]=jp(e,t).map((e=>Math.trunc(e*a)));return[r,n]},Bp=e=>{let{elements:t,appState:a,files:r,maxWidthOrHeight:n,getDimensions:i}=e;const{elements:o,appState:l}=es({elements:t,appState:a},null,null),{exportBackground:s,viewBackgroundColor:c}=l;return Ip(hu(o),Object.assign(Object.assign({},l),{offsetTop:0,offsetLeft:0,width:0,height:0}),r||{},{exportBackground:s,viewBackgroundColor:c},((e,t)=>{var a;const r=document.createElement("canvas");if(n){"function"==typeof i&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");const a=Math.max(e,t),o=n/a;return r.width=e*o,r.height=t*o,{canvas:r,scale:o}}const o=(null==i?void 0:i(e,t))||{width:e,height:t};return r.width=o.width,r.height=o.height,{canvas:r,scale:null!==(a=o.scale)&&void 0!==a?a:1}}))},Pp=async e=>{var t;let{mimeType:a=te.LO.png,quality:r}=e;a===te.LO.png&&"number"==typeof r&&console.warn('"quality" will be ignored for "'.concat(te.LO.png,'" mimeType')),"image/jpg"===a&&(a=te.LO.jpg),a!==te.LO.jpg||null!==(t=e.appState)&&void 0!==t&&t.exportBackground||(console.warn('Defaulting "exportBackground" to "true" for "'.concat(te.LO.jpg,'" mimeType')),e=Object.assign(Object.assign({},e),{appState:Object.assign(Object.assign({},e.appState),{exportBackground:!0})}));const n=await Bp(e);return r=r||(/image\/jpe?g/.test(a)?.92:.8),new Promise((e=>{n.toBlob((t=>{e(t)}),a,r)}))},Dp=async e=>{let{elements:t,appState:a=Ct(),files:r={},exportPadding:n}=e;const{elements:i,appState:o}=es({elements:t,appState:a},null,null);return Lp(hu(i),Object.assign(Object.assign({},o),{exportPadding:n}),r)}},769:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a="",r=void 0!==t[5];return t[4]&&(a+="@supports (".concat(t[4],") {")),t[2]&&(a+="@media ".concat(t[2]," {")),r&&(a+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),a+=e(t),r&&(a+="}"),t[2]&&(a+="}"),t[4]&&(a+="}"),a})).join("")},t.i=function(e,a,r,n,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(o[s]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&o[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),a&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=a):d[2]=a),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},7157: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}},5370:e=>{"use strict";e.exports=function(e){return e[1]}},9669:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg=="},100:(e,t,a)=>{"use strict";function r(e,t){var a={};return t.forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t])})),a}a.r(t),a.d(t,{default:()=>m});var n={assign:function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=Object(arguments[a]))Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pick:r,pick_pica_resize_options:function(e){return r(e,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}};function i(e){var t={exports:{}};return e(t,t.exports),t.exports}function o(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var l=i((function(e,t){e.exports=function e(t,a,r){function n(l,s){if(!a[l]){if(!t[l]){if(!s&&o)return o(l);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var d=a[l]={exports:{}};t[l][0].call(d.exports,(function(e){return n(t[l][1][e]||e)}),d,d.exports,e,t,a,r)}return a[l].exports}for(var i=o,l=0;l<r.length;l++)n(r[l]);return n}({1:[function(e,t,a){var r=e("inherits"),n=e("multimath"),i=e("./mm_unsharp_mask"),o=e("./mm_resize");function l(e){var t=e||[],a={js:t.indexOf("js")>=0,wasm:t.indexOf("wasm")>=0};n.call(this,a),this.features={js:a.js,wasm:a.wasm&&this.has_wasm()},this.use(i),this.use(o)}r(l,n),l.prototype.resizeAndUnsharp=function(e,t){var a=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(a,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),a},t.exports=l},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(e,t,a){function r(e){return e<0?0:e>255?255:e}t.exports={convolveHorizontally:function(e,t,a,n,i,o){var l,s,c,d,u,p,h,m,g,f,b,v=0,y=0;for(g=0;g<n;g++){for(u=0,f=0;f<i;f++){for(p=o[u++],h=o[u++],m=v+4*p|0,l=s=c=d=0;h>0;h--)d=d+(b=o[u++])*e[m+3]|0,c=c+b*e[m+2]|0,s=s+b*e[m+1]|0,l=l+b*e[m]|0,m=m+4|0;t[y+3]=r(d+8192>>14),t[y+2]=r(c+8192>>14),t[y+1]=r(s+8192>>14),t[y]=r(l+8192>>14),y=y+4*n|0}y=4*(g+1)|0,v=(g+1)*a*4|0}},convolveVertically:function(e,t,a,n,i,o){var l,s,c,d,u,p,h,m,g,f,b,v=0,y=0;for(g=0;g<n;g++){for(u=0,f=0;f<i;f++){for(p=o[u++],h=o[u++],m=v+4*p|0,l=s=c=d=0;h>0;h--)d=d+(b=o[u++])*e[m+3]|0,c=c+b*e[m+2]|0,s=s+b*e[m+1]|0,l=l+b*e[m]|0,m=m+4|0;t[y+3]=r(d+8192>>14),t[y+2]=r(c+8192>>14),t[y+1]=r(s+8192>>14),t[y]=r(l+8192>>14),y=y+4*n|0}y=4*(g+1)|0,v=(g+1)*a*4|0}}}},{}],3:[function(e,t,a){t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(e,t,a){t.exports={name:"resize",fn:e("./resize"),wasm_fn:e("./resize_wasm"),wasm_src:e("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(e,t,a){var r=e("./resize_filter_gen"),n=e("./convolve").convolveHorizontally,i=e("./convolve").convolveVertically;t.exports=function(e){var t=e.src,a=e.width,o=e.height,l=e.toWidth,s=e.toHeight,c=e.scaleX||e.toWidth/e.width,d=e.scaleY||e.toHeight/e.height,u=e.offsetX||0,p=e.offsetY||0,h=e.dest||new Uint8Array(l*s*4),m=void 0===e.quality?3:e.quality,g=e.alpha||!1,f=r(m,a,l,c,u),b=r(m,o,s,d,p),v=new Uint8Array(l*o*4);return n(t,v,a,o,l,f),i(v,h,o,l,s,b),g||function(e,t,a){for(var r=3,n=t*a*4|0;r<n;)e[r]=255,r=r+4|0}(h,l,s),h}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(e,t,a){var r=e("./resize_filter_info");function n(e){return Math.round(16383*e)}t.exports=function(e,t,a,i,o){var l,s,c,d,u,p,h,m,g,f,b,v,y,k,w,x,S,_=r[e].filter,A=1/i,E=Math.min(1,i),C=r[e].win/E,T=Math.floor(2*(C+1)),z=new Int16Array((T+2)*a),I=0,L=!z.subarray||!z.set;for(l=0;l<a;l++){for(s=(l+.5)*A+o,c=Math.max(0,Math.floor(s-C)),u=(d=Math.min(t-1,Math.ceil(s+C)))-c+1,p=new Float32Array(u),h=new Int16Array(u),m=0,g=c,f=0;g<=d;g++,f++)m+=b=_((g+.5-s)*E),p[f]=b;for(v=0,f=0;f<p.length;f++)v+=y=p[f]/m,h[f]=n(y);for(h[a>>1]+=n(1-v),k=0;k<h.length&&0===h[k];)k++;if(k<h.length){for(w=h.length-1;w>0&&0===h[w];)w--;if(x=c+k,S=w-k+1,z[I++]=x,z[I++]=S,L)for(f=k;f<=w;f++)z[I++]=h[f];else z.set(h.subarray(k,w+1),I),I+=S}else z[I++]=0,z[I++]=0}return z}},{"./resize_filter_info":7}],7:[function(e,t,a){t.exports=[{win:.5,filter:function(e){return e>=-.5&&e<.5?1:0}},{win:1,filter:function(e){if(e<=-1||e>=1)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},{win:2,filter:function(e){if(e<=-2||e>=2)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},{win:3,filter:function(e){if(e<=-3||e>=3)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}}]},{}],8:[function(e,t,a){var r=e("./resize_filter_gen");var n=!0;try{n=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch(e){}function i(e,t,a){if(n)t.set(function(e){return new Uint8Array(e.buffer,0,e.byteLength)}(e),a);else for(var r=a,i=0;i<e.length;i++){var o=e[i];t[r++]=255&o,t[r++]=o>>8&255}}t.exports=function(e){var t=e.src,a=e.width,n=e.height,o=e.toWidth,l=e.toHeight,s=e.scaleX||e.toWidth/e.width,c=e.scaleY||e.toHeight/e.height,d=e.offsetX||0,u=e.offsetY||0,p=e.dest||new Uint8Array(o*l*4),h=void 0===e.quality?3:e.quality,m=e.alpha||!1,g=r(h,a,o,s,d),f=r(h,n,l,c,u),b=this.__align(0+Math.max(t.byteLength,p.byteLength)),v=this.__align(b+n*o*4),y=this.__align(v+g.byteLength),k=y+f.byteLength,w=this.__instance("resize",k),x=new Uint8Array(this.__memory.buffer),S=new Uint32Array(this.__memory.buffer),_=new Uint32Array(t.buffer);return S.set(_),i(g,x,v),i(f,x,y),(w.exports.convolveHV||w.exports._convolveHV)(v,y,b,a,n,o,l),new Uint32Array(p.buffer).set(new Uint32Array(this.__memory.buffer,0,l*o)),m||function(e,t,a){for(var r=3,n=t*a*4|0;r<n;)e[r]=255,r=r+4|0}(p,o,l),p}},{"./resize_filter_gen":6}],9:[function(e,t,a){t.exports={name:"unsharp_mask",fn:e("./unsharp_mask"),wasm_fn:e("./unsharp_mask_wasm"),wasm_src:e("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(e,t,a){var r=e("glur/mono16");t.exports=function(e,t,a,n,i,o){var l,s,c,d,u;if(!(0===n||i<.5)){i>2&&(i=2);var p=function(e,t,a){for(var r,n,i,o,l=t*a,s=new Uint16Array(l),c=0;c<l;c++)r=e[4*c],n=e[4*c+1],i=e[4*c+2],o=r>=n&&r>=i?r:n>=i&&n>=r?n:i,s[c]=o<<8;return s}(e,t,a),h=new Uint16Array(p);r(h,t,a,i);for(var m=n/100*4096+.5|0,g=o<<8,f=t*a,b=0;b<f;b++)d=(l=p[b])-h[b],Math.abs(d)>=g&&(c=((s=(s=(s=l+(m*d+2048>>12))>65280?65280:s)<0?0:s)<<12)/(l=0!==l?l:1)|0,e[u=4*b]=e[u]*c+2048>>12,e[u+1]=e[u+1]*c+2048>>12,e[u+2]=e[u+2]*c+2048>>12)}}},{"glur/mono16":18}],11:[function(e,t,a){t.exports=function(e,t,a,r,n,i){if(!(0===r||n<.5)){n>2&&(n=2);var o=t*a,l=4*o,s=2*o,c=2*o,d=4*Math.max(t,a),u=l,p=u+s,h=p+c,m=h+c,g=m+d,f=this.__instance("unsharp_mask",l+s+2*c+d+32,{exp:Math.exp}),b=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(b);var v=f.exports.hsv_v16||f.exports._hsv_v16;v(0,u,t,a),(v=f.exports.blurMono16||f.exports._blurMono16)(u,p,h,m,g,t,a,n),(v=f.exports.unsharp||f.exports._unsharp)(0,0,u,p,t,a,r,i),b.set(new Uint32Array(this.__memory.buffer,0,o))}}},{}],12:[function(e,t,a){t.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(e,t,a){function r(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}r.prototype.acquire=function(){var e,t=this;return 0!==this.available.length?e=this.available.pop():((e=this.create()).id=this.lastId++,e.release=function(){return t.release(e)}),this.acquired[e.id]=e,e},r.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),0===this.timeoutId&&(this.timeoutId=setTimeout((function(){return t.gc()}),100))},r.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter((function(a){return!(t-a.lastUsed>e.idle&&(a.destroy(),1))})),0!==this.available.length?this.timeoutId=setTimeout((function(){return e.gc()}),100):this.timeoutId=0},t.exports=r},{}],14:[function(e,t,a){t.exports=function(e,t,a,r,n,i){var o=a/e,l=r/t,s=(2*i+2+1)/n;if(s>.5)return[[a,r]];var c=Math.ceil(Math.log(Math.min(o,l))/Math.log(s));if(c<=1)return[[a,r]];for(var d=[],u=0;u<c;u++){var p=Math.round(Math.pow(Math.pow(e,c-u-1)*Math.pow(a,u+1),1/c)),h=Math.round(Math.pow(Math.pow(t,c-u-1)*Math.pow(r,u+1),1/c));d.push([p,h])}return d}},{}],15:[function(e,t,a){var r=1e-5;function n(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.floor(e)}function i(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.ceil(e)}t.exports=function(e){var t,a,r,o,l,s,c=e.toWidth/e.width,d=e.toHeight/e.height,u=n(e.srcTileSize*c)-2*e.destTileBorder,p=n(e.srcTileSize*d)-2*e.destTileBorder;if(u<1||p<1)throw new Error("Internal error in pica: target tile width/height is too small.");var h,m=[];for(o=0;o<e.toHeight;o+=p)for(r=0;r<e.toWidth;r+=u)(t=r-e.destTileBorder)<0&&(t=0),t+(l=r+u+e.destTileBorder-t)>=e.toWidth&&(l=e.toWidth-t),(a=o-e.destTileBorder)<0&&(a=0),a+(s=o+p+e.destTileBorder-a)>=e.toHeight&&(s=e.toHeight-a),h={toX:t,toY:a,toWidth:l,toHeight:s,toInnerX:r,toInnerY:o,toInnerWidth:u,toInnerHeight:p,offsetX:t/c-n(t/c),offsetY:a/d-n(a/d),scaleX:c,scaleY:d,x:n(t/c),y:n(a/d),width:i(l/c),height:i(s/d)},m.push(h);return m}},{}],16:[function(e,t,a){function r(e){return Object.prototype.toString.call(e)}t.exports.isCanvas=function(e){var t=r(e);return"[object HTMLCanvasElement]"===t||"[object OffscreenCanvas]"===t||"[object Canvas]"===t},t.exports.isImage=function(e){return"[object HTMLImageElement]"===r(e)},t.exports.isImageBitmap=function(e){return"[object ImageBitmap]"===r(e)},t.exports.limiter=function(e){var t=0,a=[];function r(){t<e&&a.length&&(t++,a.shift()())}return function(e){return new Promise((function(n,i){a.push((function(){e().then((function(e){n(e),t--,r()}),(function(e){i(e),t--,r()}))})),r()}))}},t.exports.cib_quality_name=function(e){switch(e){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},t.exports.cib_support=function(e){return Promise.resolve().then((function(){if("undefined"==typeof createImageBitmap)return!1;var t=e(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then((function(e){var a=10===e.width;return e.close(),t=null,a}))})).catch((function(){return!1}))},t.exports.worker_offscreen_canvas_support=function(){return new Promise((function(e,t){if("undefined"!=typeof OffscreenCanvas){var a=btoa("(".concat(function(e){"undefined"!=typeof createImageBitmap?Promise.resolve().then((function(){var e=new OffscreenCanvas(10,10);return e.getContext("2d").rect(0,0,1,1),createImageBitmap(e,0,0,1,1)})).then((function(){return e.postMessage(!0)}),(function(){return e.postMessage(!1)})):e.postMessage(!1)}.toString(),")(self);")),r=new Worker("data:text/javascript;base64,".concat(a));r.onmessage=function(t){return e(t.data)},r.onerror=t}else e(!1)})).then((function(e){return e}),(function(){return!1}))},t.exports.can_use_canvas=function(e){var t=!1;try{var a=e(2,1).getContext("2d"),r=a.createImageData(2,1);r.data[0]=12,r.data[1]=23,r.data[2]=34,r.data[3]=255,r.data[4]=45,r.data[5]=56,r.data[6]=67,r.data[7]=255,a.putImageData(r,0,0),r=null,12===(r=a.getImageData(0,0,2,1)).data[0]&&23===r.data[1]&&34===r.data[2]&&255===r.data[3]&&45===r.data[4]&&56===r.data[5]&&67===r.data[6]&&255===r.data[7]&&(t=!0)}catch(e){}return t},t.exports.cib_can_use_region=function(){return new Promise((function(e){if("undefined"!=typeof createImageBitmap){var t=new Image;t.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",t.onload=function(){createImageBitmap(t,0,0,t.width,t.height).then((function(a){a.width===t.width&&a.height===t.height?e(!0):e(!1)}),(function(){return e(!1)}))},t.onerror=function(){return e(!1)}}else e(!1)}))}},{}],17:[function(e,t,a){t.exports=function(){var t,a=e("./mathlib");onmessage=function(e){var r=e.data.opts,n=!1;if(!r.src&&r.srcBitmap){var i=new OffscreenCanvas(r.width,r.height),o=i.getContext("2d",{alpha:Boolean(r.alpha)});o.drawImage(r.srcBitmap,0,0),r.src=o.getImageData(0,0,r.width,r.height).data,i.width=i.height=0,i=null,r.srcBitmap.close(),r.srcBitmap=null,n=!0}t||(t=new a(e.data.features));var l=t.resizeAndUnsharp(r);if(n){var s=new ImageData(new Uint8ClampedArray(l),r.toWidth,r.toHeight),c=new OffscreenCanvas(r.toWidth,r.toHeight);c.getContext("2d",{alpha:Boolean(r.alpha)}).putImageData(s,0,0),createImageBitmap(c).then((function(e){postMessage({bitmap:e},[e])}))}else postMessage({data:l},[l.buffer])}}},{"./mathlib":1}],18:[function(e,t,a){var r,n,i,o,l,s;function c(e,t,a,r,n,i){var o,l,s,c,d,u,p,h,m,g,f,b,v,y;for(m=0;m<i;m++){for(p=m,h=0,c=d=(o=e[u=m*n])*r[6],f=r[0],b=r[1],v=r[4],y=r[5],g=0;g<n;g++)s=(l=e[u])*f+o*b+c*v+d*y,d=c,c=s,o=l,a[h]=c,h++,u++;for(h--,p+=i*(n-1),c=d=(o=e[--u])*r[7],l=o,f=r[2],b=r[3],g=n-1;g>=0;g--)s=l*f+o*b+c*v+d*y,d=c,c=s,o=l,l=e[u],t[p]=a[h]+c,u--,h--,p-=i}}t.exports=function(e,t,a,d){if(d){var u=new Uint16Array(e.length),p=new Float32Array(Math.max(t,a)),h=function(e){e<.5&&(e=.5);var t=Math.exp(.527076)/e,a=Math.exp(-t),c=Math.exp(-2*t),d=(1-a)*(1-a)/(1+2*t*a-c);return r=d,n=d*(t-1)*a,i=d*(t+1)*a,o=-d*c,l=2*a,s=-c,new Float32Array([r,n,i,o,l,s,(r+n)/(1-l-s),(i+o)/(1-l-s)])}(d);c(e,u,p,h,t,a),c(u,e,p,h,a,t)}}},{}],19:[function(e,t,a){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}}},{}],20:[function(e,t,a){var r=e("object-assign"),n=e("./lib/base64decode"),i=e("./lib/wa_detect"),o={js:!0,wasm:!0};function l(e){if(!(this instanceof l))return new l(e);var t=r({},o,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}l.prototype.has_wasm=i,l.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},l.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map((function(t){var a=e.__modules[t];return e.options.wasm&&e.has_wasm()&&a.wasm_fn?e.__wasm[t]?null:WebAssembly.compile(e.__base64decode(a.wasm_src)).then((function(a){e.__wasm[t]=a})):null}))).then((function(){return e})),this.__init_promise},l.prototype.__base64decode=n,l.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/65536)}),this.__memory;var t=this.__memory.buffer.byteLength;return t<e&&this.__memory.grow(Math.ceil((e-t)/65536)),this.__memory},l.prototype.__instance=function(e,t,a){if(t&&this.__reallocate(t),!this.__wasm[e]){var n=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(n.wasm_src))}if(!this.__cache[e]){var i={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:r(i,a||{})})}return this.__cache[e]},l.prototype.__align=function(e,t){var a=e%(t=t||8);return e+(a?t-a:0)},t.exports=l},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(e,t,a){t.exports=function(e){for(var t=e.replace(/[\r\n=]/g,""),a=t.length,r=new Uint8Array(3*a>>2),n=0,i=0,o=0;o<a;o++)o%4==0&&o&&(r[i++]=n>>16&255,r[i++]=n>>8&255,r[i++]=255&n),n=n<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(o));var l=a%4*6;return 0===l?(r[i++]=n>>16&255,r[i++]=n>>8&255,r[i++]=255&n):18===l?(r[i++]=n>>10&255,r[i++]=n>>2&255):12===l&&(r[i++]=n>>4&255),r}},{}],22:[function(e,t,a){var r;t.exports=function(){if(void 0!==r)return r;if(r=!1,"undefined"==typeof WebAssembly)return r;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e);return 0!==new WebAssembly.Instance(t,{}).exports.test(4)&&(r=!0),r}catch(e){}return r}},{}],23:[function(e,t,a){var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,l,s=o(e),c=1;c<arguments.length;c++){for(var d in a=Object(arguments[c]))n.call(a,d)&&(s[d]=a[d]);if(r){l=r(a);for(var u=0;u<l.length;u++)i.call(a,l[u])&&(s[l[u]]=a[l[u]])}}return s}},{}],24:[function(e,t,a){var r=arguments[3],n=arguments[4],i=arguments[5],o=JSON.stringify;t.exports=function(e,t){for(var a,l=Object.keys(i),s=0,c=l.length;s<c;s++){var d=l[s],u=i[d].exports;if(u===e||u&&u.default===e){a=d;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var p={};for(s=0,c=l.length;s<c;s++)p[d=l[s]]=d;n[a]=["function(require,module,exports){"+e+"(self); }",p]}var h=Math.floor(Math.pow(16,8)*Math.random()).toString(16),m={};m[a]=a,n[h]=["function(require,module,exports){var f = require("+o(a)+");(f.default ? f.default : f)(self);}",m];var g={};!function e(t){for(var a in g[t]=!0,n[t][1]){var r=n[t][1][a];g[r]||e(r)}}(h);var f="("+r+")({"+Object.keys(g).map((function(e){return o(e)+":["+n[e][0]+","+o(n[e][1])+"]"})).join(",")+"},{},["+o(h)+"])",b=window.URL||window.webkitURL||window.mozURL||window.msURL,v=new Blob([f],{type:"text/javascript"});if(t&&t.bare)return v;var y=b.createObjectURL(v),k=new Worker(y);return k.objectURL=y,k}},{}],"/index.js":[function(e,t,a){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,i=[],o=!0,l=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var i=e("object-assign"),o=e("webworkify"),l=e("./lib/mathlib"),s=e("./lib/pool"),c=e("./lib/utils"),d=e("./lib/worker"),u=e("./lib/stepper"),p=e("./lib/tiler"),h={},m=!1;try{"undefined"!=typeof navigator&&navigator.userAgent&&(m=navigator.userAgent.indexOf("Safari")>=0)}catch(e){}var g=1;"undefined"!=typeof navigator&&(g=Math.min(navigator.hardwareConcurrency||1,4));var f={tile:1024,concurrency:g,features:["js","wasm","ww"],idle:2e3,createCanvas:function(e,t){var a=document.createElement("canvas");return a.width=e,a.height=t,a}},b={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},v=!1,y=!1,k=!1,w=!1,x=!1;function S(){return{value:o(d),destroy:function(){if(this.value.terminate(),"undefined"!=typeof window){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function _(e){if(!(this instanceof _))return new _(e);this.options=i({},f,e||{});var t="lk_".concat(this.options.concurrency);this.__limit=h[t]||c.limiter(this.options.concurrency),h[t]||(h[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}_.prototype.init=function(){var t=this;if(this.__initPromise)return this.__initPromise;if("undefined"!=typeof ImageData&&"undefined"!=typeof Uint8ClampedArray)try{new ImageData(new Uint8ClampedArray(400),10,10),v=!0}catch(e){}"undefined"!=typeof ImageBitmap&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?y=!0:this.debug("ImageBitmap does not support .close(), disabled"));var a=this.options.features.slice();if(a.indexOf("all")>=0&&(a=["cib","wasm","js","ww"]),this.__requested_features=a,this.__mathlib=new l(a),a.indexOf("ww")>=0&&"undefined"!=typeof window&&"Worker"in window)try{e("webworkify")((function(){})).terminate(),this.features.ww=!0;var r="wp_".concat(JSON.stringify(this.options));h[r]?this.__workersPool=h[r]:(this.__workersPool=new s(S,this.options.idle),h[r]=this.__workersPool)}catch(e){}var n,o,d=this.__mathlib.init().then((function(e){i(t.features,e.features)}));n=y?c.cib_support(this.options.createCanvas).then((function(e){t.features.cib&&a.indexOf("cib")<0?t.debug("createImageBitmap() resize supported, but disabled by config"):a.indexOf("cib")>=0&&(t.features.cib=e)})):Promise.resolve(!1),k=c.can_use_canvas(this.options.createCanvas),o=(o=y&&v&&-1!==a.indexOf("ww")?c.worker_offscreen_canvas_support():Promise.resolve(!1)).then((function(e){w=e}));var u=c.cib_can_use_region().then((function(e){x=e}));return this.__initPromise=Promise.all([d,n,o,u]).then((function(){return t})),this.__initPromise},_.prototype.__invokeResize=function(e,t){var a=this;return t.__mathCache=t.__mathCache||{},Promise.resolve().then((function(){return a.features.ww?new Promise((function(r,n){var i=a.__workersPool.acquire();t.cancelToken&&t.cancelToken.catch((function(e){return n(e)})),i.value.onmessage=function(e){i.release(),e.data.err?n(e.data.err):r(e.data)};var o=[];e.src&&o.push(e.src.buffer),e.srcBitmap&&o.push(e.srcBitmap),i.value.postMessage({opts:e,features:a.__requested_features,preload:{wasm_nodule:a.__mathlib.__}},o)})):{data:a.__mathlib.resizeAndUnsharp(e,t.__mathCache)}}))},_.prototype.__extractTileData=function(e,t,a,r,n){if(this.features.ww&&w&&(c.isCanvas(t)||x))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(r.srcImageBitmap||t,e.x,e.y,e.width,e.height).then((function(e){return n.srcBitmap=e,n}));if(c.isCanvas(t))return r.srcCtx||(r.srcCtx=t.getContext("2d",{alpha:Boolean(a.alpha)})),this.debug("Get tile pixel data"),n.src=r.srcCtx.getImageData(e.x,e.y,e.width,e.height).data,n;this.debug("Draw tile imageBitmap/image to temporary canvas");var i=this.options.createCanvas(e.width,e.height),o=i.getContext("2d",{alpha:Boolean(a.alpha)});return o.globalCompositeOperation="copy",o.drawImage(r.srcImageBitmap||t,e.x,e.y,e.width,e.height,0,0,e.width,e.height),this.debug("Get tile pixel data"),n.src=o.getImageData(0,0,e.width,e.height).data,i.width=i.height=0,n},_.prototype.__landTileData=function(e,t,a){var r;if(this.debug("Convert raw rgba tile result to ImageData"),t.bitmap)return a.toCtx.drawImage(t.bitmap,e.toX,e.toY),null;if(v)r=new ImageData(new Uint8ClampedArray(t.data),e.toWidth,e.toHeight);else if((r=a.toCtx.createImageData(e.toWidth,e.toHeight)).data.set)r.data.set(t.data);else for(var n=r.data.length-1;n>=0;n--)r.data[n]=t.data[n];return this.debug("Draw tile"),m?a.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth+1e-5,e.toInnerHeight+1e-5):a.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth,e.toInnerHeight),null},_.prototype.__tileAndResize=function(e,t,a){var r=this,n={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null};return Promise.resolve().then((function(){if(n.toCtx=t.getContext("2d",{alpha:Boolean(a.alpha)}),c.isCanvas(e))return null;if(c.isImageBitmap(e))return n.srcImageBitmap=e,n.isImageBitmapReused=!0,null;if(c.isImage(e))return y?(r.debug("Decode image via createImageBitmap"),createImageBitmap(e).then((function(e){n.srcImageBitmap=e})).catch((function(e){return null}))):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')})).then((function(){if(a.canceled)return a.cancelToken;r.debug("Calculate tiles");var i=p({width:a.width,height:a.height,srcTileSize:r.options.tile,toWidth:a.toWidth,toHeight:a.toHeight,destTileBorder:a.__destTileBorder}).map((function(t){return function(t){return r.__limit((function(){if(a.canceled)return a.cancelToken;var i={width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,quality:a.quality,alpha:a.alpha,unsharpAmount:a.unsharpAmount,unsharpRadius:a.unsharpRadius,unsharpThreshold:a.unsharpThreshold};return r.debug("Invoke resize math"),Promise.resolve(i).then((function(i){return r.__extractTileData(t,e,a,n,i)})).then((function(e){return r.debug("Invoke resize math"),r.__invokeResize(e,a)})).then((function(e){return a.canceled?a.cancelToken:(n.srcImageData=null,r.__landTileData(t,e,n))}))}))}(t)}));function o(e){e.srcImageBitmap&&(e.isImageBitmapReused||e.srcImageBitmap.close(),e.srcImageBitmap=null)}return r.debug("Process tiles"),Promise.all(i).then((function(){return r.debug("Finished!"),o(n),t}),(function(e){throw o(n),e}))}))},_.prototype.__processStages=function(e,t,a,n){var o=this;if(n.canceled)return n.cancelToken;var l,s=r(e.shift(),2),c=s[0],d=s[1],u=0===e.length;return n=i({},n,{toWidth:c,toHeight:d,quality:u?n.quality:Math.min(1,n.quality)}),u||(l=this.options.createCanvas(c,d)),this.__tileAndResize(t,u?a:l,n).then((function(){return u?a:(n.width=c,n.height=d,o.__processStages(e,l,a,n))})).then((function(e){return l&&(l.width=l.height=0),e}))},_.prototype.__resizeViaCreateImageBitmap=function(e,t,a){var r=this,n=t.getContext("2d",{alpha:Boolean(a.alpha)});return this.debug("Resize via createImageBitmap()"),createImageBitmap(e,{resizeWidth:a.toWidth,resizeHeight:a.toHeight,resizeQuality:c.cib_quality_name(a.quality)}).then((function(e){if(a.canceled)return a.cancelToken;if(!a.unsharpAmount)return n.drawImage(e,0,0),e.close(),n=null,r.debug("Finished!"),t;r.debug("Unsharp result");var i=r.options.createCanvas(a.toWidth,a.toHeight),o=i.getContext("2d",{alpha:Boolean(a.alpha)});o.drawImage(e,0,0),e.close();var l=o.getImageData(0,0,a.toWidth,a.toHeight);return r.__mathlib.unsharp_mask(l.data,a.toWidth,a.toHeight,a.unsharpAmount,a.unsharpRadius,a.unsharpThreshold),n.putImageData(l,0,0),i.width=i.height=0,l=o=i=n=null,r.debug("Finished!"),t}))},_.prototype.resize=function(e,t,a){var r=this;this.debug("Start resize...");var n=i({},b);if(isNaN(a)?a&&(n=i(n,a)):n=i(n,{quality:a}),n.toWidth=t.width,n.toHeight=t.height,n.width=e.naturalWidth||e.width,n.height=e.naturalHeight||e.height,0===t.width||0===t.height)return Promise.reject(new Error("Invalid output size: ".concat(t.width,"x").concat(t.height)));n.unsharpRadius>2&&(n.unsharpRadius=2),n.canceled=!1,n.cancelToken&&(n.cancelToken=n.cancelToken.then((function(e){throw n.canceled=!0,e}),(function(e){throw n.canceled=!0,e})));return n.__destTileBorder=Math.ceil(Math.max(3,2.5*n.unsharpRadius|0)),this.init().then((function(){if(n.canceled)return n.cancelToken;if(r.features.cib)return r.__resizeViaCreateImageBitmap(e,t,n);if(!k){var a=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw a.code="ERR_GET_IMAGE_DATA",a}var i=u(n.width,n.height,n.toWidth,n.toHeight,r.options.tile,n.__destTileBorder);return r.__processStages(i,e,t,n)}))},_.prototype.resizeBuffer=function(e){var t=this,a=i({},b,e);return this.init().then((function(){return t.__mathlib.resizeAndUnsharp(a)}))},_.prototype.toBlob=function(e,t,a){return t=t||"image/png",new Promise((function(r){if(e.toBlob)e.toBlob((function(e){return r(e)}),t,a);else if(e.convertToBlob)r(e.convertToBlob({type:t,quality:a}));else{for(var n=atob(e.toDataURL(t,a).split(",")[1]),i=n.length,o=new Uint8Array(i),l=0;l<i;l++)o[l]=n.charCodeAt(l);r(new Blob([o],{type:t}))}}))},_.prototype.debug=function(){},t.exports=_},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])("/index.js")})),s=i((function(e){function t(e,t){var a=new Error(e);return a.code=t,a}function a(e){for(var t=e.toString(16).toUpperCase(),a=2-t.length;a>0;a--)t="0"+t;return"0x"+t}function r(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function n(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function i(e,a,r){this.input=e.subarray(a,r),this.start=a;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==n&&"MM\0*"!==n)throw t("invalid TIFF signature","EBADDATA");this.big_endian="M"===n[0]}i.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var a=this.ifds_to_read.shift();a.offset&&this.scan_ifd(a.id,a.offset,e)}},i.prototype.filter=function(e){var a={ifd0:{id:0,entries:[]}};this.each((function(t){(!1!==e(t)||t.is_subifd_link)&&(t.is_subifd_link&&1!==t.count&&4!==t.format||(a["ifd"+t.ifd]||(a["ifd"+t.ifd]={id:t.ifd,entries:[]}),a["ifd"+t.ifd].entries.push(t)))})),delete a.ifd1;var r=8;Object.keys(a).forEach((function(e){r+=2,a[e].entries.forEach((function(e){r+=12+(e.data_length>4?2*Math.ceil(e.data_length/2):0)})),r+=4})),this.output=new Uint8Array(r),this.output[0]=this.output[1]=(this.big_endian?"M":"I").charCodeAt(0),this.write_uint16(2,42);var n=8,i=this;if(this.write_uint32(4,n),Object.keys(a).forEach((function(e){a[e].written_offset=n;var t=n,r=t+2+12*a[e].entries.length+4;n=r,i.write_uint16(t,a[e].entries.length),a[e].entries.sort((function(e,t){return e.tag-t.tag})).forEach((function(e,r){var o=t+2+12*r;i.write_uint16(o,e.tag),i.write_uint16(o+2,e.format),i.write_uint32(o+4,e.count),e.is_subifd_link?a["ifd"+e.tag]&&(a["ifd"+e.tag].link_offset=o+8):e.data_length<=4?i.output.set(i.input.subarray(e.data_offset-i.start,e.data_offset-i.start+4),o+8):(i.write_uint32(o+8,n),i.output.set(i.input.subarray(e.data_offset-i.start,e.data_offset-i.start+e.data_length),n),n+=2*Math.ceil(e.data_length/2))}));var o=a["ifd"+(a[e].id+1)];o&&(o.link_offset=r-4)})),Object.keys(a).forEach((function(e){a[e].written_offset&&a[e].link_offset&&i.write_uint32(a[e].link_offset,a[e].written_offset)})),this.output.length!==n)throw t("internal error: incorrect buffer size allocated");return this.output},i.prototype.read_uint16=function(e){var a=this.input;if(e+2>a.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?256*a[e]+a[e+1]:a[e]+256*a[e+1]},i.prototype.read_uint32=function(e){var a=this.input;if(e+4>a.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?16777216*a[e]+65536*a[e+1]+256*a[e+2]+a[e+3]:a[e]+256*a[e+1]+65536*a[e+2]+16777216*a[e+3]},i.prototype.write_uint16=function(e,t){var a=this.output;this.big_endian?(a[e]=t>>>8&255,a[e+1]=255&t):(a[e]=255&t,a[e+1]=t>>>8&255)},i.prototype.write_uint32=function(e,t){var a=this.output;this.big_endian?(a[e]=t>>>24&255,a[e+1]=t>>>16&255,a[e+2]=t>>>8&255,a[e+3]=255&t):(a[e]=255&t,a[e+1]=t>>>8&255,a[e+2]=t>>>16&255,a[e+3]=t>>>24&255)},i.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},i.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},i.prototype.exif_format_read=function(e,t){var a;switch(e){case 1:case 2:return this.input[t];case 6:return(a=this.input[t])|33554430*(128&a);case 3:return this.read_uint16(t);case 8:return(a=this.read_uint16(t))|131070*(32768&a);case 4:return this.read_uint32(t);case 9:return 0|this.read_uint32(t);case 5:case 10:case 11:case 12:case 7:default:return null}},i.prototype.scan_ifd=function(e,a,n){var i=this.read_uint16(a);a+=2;for(var o=0;o<i;o++){var l=this.read_uint16(a),s=this.read_uint16(a+2),c=this.read_uint32(a+4),d=this.exif_format_length(s),u=c*d,p=u<=4?a+8:this.read_uint32(a+8),h=!1;if(p+u>this.input.length)throw t("unexpected EOF","EBADDATA");for(var m=[],g=p,f=0;f<c;f++,g+=d){var b=this.exif_format_read(s,g);if(null===b){m=null;break}m.push(b)}if(Array.isArray(m)&&2===s){try{m=r(String.fromCharCode.apply(null,m))}catch(e){m=null}m&&"\0"===m[m.length-1]&&(m=m.slice(0,-1))}if(this.is_subifd_link(e,l)&&Array.isArray(m)&&Number.isInteger(m[0])&&m[0]>0&&(this.ifds_to_read.push({id:l,offset:m[0]}),h=!0),!1===n({is_big_endian:this.big_endian,ifd:e,tag:l,format:s,count:c,entry_offset:a+this.start,data_length:u,data_offset:p+this.start,value:m,is_subifd_link:h}))return void(this.aborted=!0);a+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(a)})},e.exports.is_jpeg=function(e){return e.length>=4&&255===e[0]&&216===e[1]&&255===e[2]},e.exports.jpeg_segments_each=function(r,i){if(!n(r))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof i)throw t("Invalid argument (on_segment), Function expected","EINVAL");if(!e.exports.is_jpeg(r))throw t("Unknown file format","ENOTJPEG");for(var o=0,l=r.length,s=!1;;){var c,d;if(o+1>=l)throw t("Unexpected EOF","EBADDATA");var u=r[o],p=r[o+1];if(255===u&&255===p)c=255,d=1;else if(255===u&&0!==p){if(d=2,208<=(c=p)&&c<=217||1===c);else{if(o+3>=l)throw t("Unexpected EOF","EBADDATA");if((d+=256*r[o+2]+r[o+3])<2)throw t("Invalid segment length","EBADDATA");if(o+d-1>=l)throw t("Unexpected EOF","EBADDATA")}s&&(c>=208&&c<=215||(s=!1)),218===c&&(s=!0)}else{if(!s)throw t("Unexpected byte at segment start: "+a(u)+" (offset "+a(o)+")","EBADDATA");for(var h=o+1;;h++){if(h>=l)throw t("Unexpected EOF","EBADDATA");if(255===r[h]){if(h+1>=l)throw t("Unexpected EOF","EBADDATA");if(0!==r[h+1]){c=0,d=h-o;break}}}}if(!1===i({code:c,offset:o,length:d}))break;if(217===c)break;o+=d}},e.exports.jpeg_segments_filter=function(a,r){if(!n(a))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof r)throw t("Invalid argument (on_segment), Function expected","EINVAL");var i=[],o=0;e.exports.jpeg_segments_each(a,(function(e){var t=r(e);if(n(t))i.push({data:t}),o+=t.length;else if(Array.isArray(t))t.filter(n).forEach((function(e){i.push({data:e}),o+=e.length}));else if(!1!==t){var a={start:e.offset,end:e.offset+e.length};i.length>0&&i[i.length-1].end===a.start?i[i.length-1].end=a.end:i.push(a),o+=e.length}}));var l=new Uint8Array(o),s=0;return i.forEach((function(e){var t=e.data||a.subarray(e.start,e.end);l.set(t,s),s+=t.length})),l},e.exports.jpeg_exif_tags_each=function(a,r){if(!n(a))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof r)throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");e.exports.jpeg_segments_each(a,(function(e){return 218!==e.code&&(225===e.code&&e.length>=10&&69===a[e.offset+4]&&120===a[e.offset+5]&&105===a[e.offset+6]&&102===a[e.offset+7]&&0===a[e.offset+8]&&0===a[e.offset+9]?(new i(a,e.offset+10,e.offset+e.length).each(r),!1):void 0)}))},e.exports.jpeg_exif_tags_filter=function(a,r){if(!n(a))throw t("Invalid argument (jpeg_bin), Uint8Array expected","EINVAL");if("function"!=typeof r)throw t("Invalid argument (on_exif_entry), Function expected","EINVAL");var o=!1;return e.exports.jpeg_segments_filter(a,(function(e){if(!o&&(218===e.code&&(o=!0),225===e.code&&e.length>=10&&69===a[e.offset+4]&&120===a[e.offset+5]&&105===a[e.offset+6]&&102===a[e.offset+7]&&0===a[e.offset+8]&&0===a[e.offset+9])){var t=new i(a,e.offset+10,e.offset+e.length).filter(r);if(!t)return!1;var n=new Uint8Array(10);return n.set(a.slice(e.offset,e.offset+10)),n[2]=t.length+8>>>8&255,n[3]=t.length+8&255,o=!0,[n,t]}}))},e.exports.jpeg_add_comment=function(t,a){var r=!1,n=0;return e.exports.jpeg_segments_filter(t,(function(e){if(!(1==++n&&216===e.code||2===n&&224===e.code||r)){a=function(e){try{return unescape(encodeURIComponent(e))}catch(t){return e}}(a);var i=new Uint8Array(5+a.length),o=0;return i[o++]=255,i[o++]=254,i[o++]=a.length+3>>>8&255,i[o++]=a.length+3&255,a.split("").forEach((function(e){i[o++]=255&e.charCodeAt(0)})),i[o++]=0,r=!0,[i,t.subarray(e.offset,e.offset+e.length)]}}))}}));function c(e){return this._getUint8Array(e.blob).then((function(t){if(e.is_jpeg=s.is_jpeg(t),!e.is_jpeg)return Promise.resolve(e);e.orig_blob=e.blob;try{var a,r;if(s.jpeg_exif_tags_each(t,(function(t){if(0===t.ifd&&274===t.tag&&Array.isArray(t.value))return e.orientation=t.value[0]||1,a=t.is_big_endian,r=t.data_offset,!1})),r){var n=a?new Uint8Array([0,1]):new Uint8Array([1,0]);e.blob=new Blob([t.slice(0,r),n,t.slice(r+2)],{type:"image/jpeg"})}}catch(e){}return e}))}function d(e){if(!e.is_jpeg)return Promise.resolve(e);var t,a=e.orientation-1;if(!a)return Promise.resolve(e);var r=(t=4&a?this.pica.options.createCanvas(e.out_canvas.height,e.out_canvas.width):this.pica.options.createCanvas(e.out_canvas.width,e.out_canvas.height)).getContext("2d");return r.save(),1&a&&r.transform(-1,0,0,1,t.width,0),2&a&&r.transform(-1,0,0,-1,t.width,t.height),4&a&&r.transform(0,1,1,0,0,0),r.drawImage(e.out_canvas,0,0),r.restore(),e.out_canvas.width=e.out_canvas.height=0,e.out_canvas=t,Promise.resolve(e)}function u(e){return e.is_jpeg?Promise.all([this._getUint8Array(e.blob),this._getUint8Array(e.out_blob)]).then((function(t){var a=t[0],r=t[1];if(!s.is_jpeg(a))return Promise.resolve(e);var n=[];return s.jpeg_segments_each(a,(function(e){if(218===e.code)return!1;n.push(e)})),n=n.filter((function(e){return 226!==e.code&&(e.code>=224&&e.code<240||254===e.code)})).map((function(e){return a.slice(e.offset,e.offset+e.length)})),e.out_blob=new Blob([r.slice(0,2)].concat(n).concat([r.slice(20)]),{type:"image/jpeg"}),e})):Promise.resolve(e)}var p=function(e){e.before("_blob_to_image",c),e.after("_transform",d),e.after("_create_blob",u)};function h(e){if(!(this instanceof h))return new h(e);e=e||{},this.pica=e.pica||l({}),this.initialized=!1,this.utils=n}h.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},h.prototype.init=function(){this.use(p)},h.prototype.toBlob=function(e,t){var a={blob:e,opts:n.assign({max:1/0},t)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then(this._create_blob).then((function(e){return e.out_canvas.width=e.out_canvas.height=0,e.out_blob}))},h.prototype.toCanvas=function(e,t){var a={blob:e,opts:n.assign({max:1/0},t)};return this.initialized||(this.init(),this.initialized=!0),Promise.resolve(a).then(this._blob_to_image).then(this._calculate_size).then(this._transform).then(this._cleanup).then((function(e){return e.out_canvas}))},h.prototype.before=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if("function"!=typeof t)throw new Error('Invalid argument "fn", function expected');var a=this[e],r=this;return this[e]=function(e){return t.call(r,e).then((function(e){return a.call(r,e)}))},this},h.prototype.after=function(e,t){if(!this[e])throw new Error('Method "'+e+'" does not exist');if("function"!=typeof t)throw new Error('Invalid argument "fn", function expected');var a=this[e],r=this;return this[e]=function(e){return a.call(r,e).then((function(e){return t.call(r,e)}))},this},h.prototype._blob_to_image=function(e){var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return e.image=document.createElement("img"),e.image_url=t.createObjectURL(e.blob),e.image.src=e.image_url,new Promise((function(t,a){e.image.onerror=function(){a(new Error("ImageBlobReduce: failed to create Image() from blob"))},e.image.onload=function(){t(e)}}))},h.prototype._calculate_size=function(e){var t=e.opts.max/Math.max(e.image.width,e.image.height);return t>1&&(t=1),e.transform_width=Math.max(Math.round(e.image.width*t),1),e.transform_height=Math.max(Math.round(e.image.height*t),1),e.scale_factor=t,Promise.resolve(e)},h.prototype._transform=function(e){e.out_canvas=this.pica.options.createCanvas(e.transform_width,e.transform_height),e.transform_width=null,e.transform_height=null;var t={alpha:"image/png"===e.blob.type};return this.utils.assign(t,this.utils.pick_pica_resize_options(e.opts)),this.pica.resize(e.image,e.out_canvas,t).then((function(){return e}))},h.prototype._cleanup=function(e){e.image.src="",e.image=null;var t=window.URL||window.webkitURL||window.mozURL||window.msURL;return t.revokeObjectURL&&t.revokeObjectURL(e.image_url),e.image_url=null,Promise.resolve(e)},h.prototype._create_blob=function(e){return this.pica.toBlob(e.out_canvas,e.blob.type).then((function(t){return e.out_blob=t,e}))},h.prototype._getUint8Array=function(e){return e.arrayBuffer?e.arrayBuffer().then((function(e){return new Uint8Array(e)})):new Promise((function(t,a){var r=new FileReader;r.readAsArrayBuffer(e),r.onload=function(){t(new Uint8Array(r.result))},r.onerror=function(){a(new Error("ImageBlobReduce: failed to load data from input blob")),r.abort()},r.onabort=function(){a(new Error("ImageBlobReduce: failed to load data from input blob (aborted)"))}}))},h.pica=l;const m=h},7822:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"لصق","pasteCharts":"لصق الرسوم البيانية","selectAll":"تحديد الكل","multiSelect":"إضافة عنصر للتحديد","moveCanvas":"نقل لوح الرسم","cut":"قص","copy":"نسخ","copyAsPng":"نسخ إلى الحافظة بصيغة PNG","copyAsSvg":"نسخ إلى الحافظة بصيغة SVG","bringForward":"جلب للأمام","sendToBack":"أرسل للخلف","bringToFront":"أحضر للأمام","sendBackward":"أرسل للخلف","delete":"حذف","copyStyles":"نسخ الأنماط","pasteStyles":"لصق الأنماط","stroke":"الخط","background":"الخلفية","fill":"التعبئة","strokeWidth":"سُمك الخط","strokeStyle":"نمط الخط","strokeStyle_solid":"كامل","strokeStyle_dashed":"متقطع","strokeStyle_dotted":"منقط","sloppiness":"الإمالة","opacity":"الشفافية","textAlign":"محاذاة النص","edges":"الحواف","sharp":"حادة","round":"دائرية","arrowheads":"رؤوس الأسهم","arrowhead_none":"لا شيء","arrowhead_arrow":"سهم","arrowhead_bar":"شريط","arrowhead_dot":"نقطة","arrowhead_triangle":"مثلث","fontSize":"حجم الخط","fontFamily":"نوع الخط","onlySelected":"المحدد فقط","withBackground":"الخلفية","exportEmbedScene":"تضمين المشهد","exportEmbedScene_details":"سيتم حفظ بيانات المشهد في ملف PNG/SVG المصدّر بحيث يمكن استعادة المشهد منه.\\nسيزيد حجم الملف المصدر.","addWatermark":"إضافة \\"مصنوعة بواسطة Excalidraw\\"","handDrawn":"رسم باليد","normal":"عادي","code":"رمز","small":"صغير","medium":"متوسط","large":"كبير","veryLarge":"كبير جدا","solid":"كامل","hachure":"خطوط","crossHatch":"خطوط متقطعة","thin":"نحيف","bold":"داكن","left":"الـيسار","center":"وسط","right":"يمين","extraBold":"عريض","architect":"معماري","artist":"رسام","cartoonist":"كرتوني","fileTitle":"إسم الملف","colorPicker":"منتقي اللون","canvasBackground":"خلفية اللوحة","drawingCanvas":"لوحة الرسم","layers":"الطبقات","actions":"الإجراءات","language":"اللغة","liveCollaboration":"بدء المشاركة الحية","duplicateSelection":"تكرار","untitled":"غير معنون","name":"الاسم","yourName":"اسمك","madeWithExcalidraw":"مصنوعة بواسطة Excalidraw","group":"تحديد مجموعة","ungroup":"إلغاء تحديد مجموعة","collaborators":"المتعاونون","showGrid":"إظهار الشبكة","addToLibrary":"أضف إلى المكتبة","removeFromLibrary":"حذف من المكتبة","libraryLoadingMessage":"جارٍ تحميل المكتبة…","libraries":"تصفح المكتبات","loadingScene":"جاري تحميل المشهد…","align":"محاذاة","alignTop":"محاذاة إلى اﻷعلى","alignBottom":"محاذاة إلى اﻷسفل","alignLeft":"محاذاة إلى اليسار","alignRight":"محاذاة إلى اليمين","centerVertically":"توسيط عمودي","centerHorizontally":"توسيط أفقي","distributeHorizontally":"التوزيع الأفقي","distributeVertically":"التوزيع عمودياً","flipHorizontal":"قلب عامودي","flipVertical":"قلب أفقي","viewMode":"نمط العرض","toggleExportColorScheme":"تبديل نظام ألوان الصادرات","share":"مشاركة","showStroke":"إظهار منتقي لون الخط","showBackground":"إظهار منتقي لون الخلفية","toggleTheme":"غير النمط","personalLib":"المكتبة الشخصية","excalidrawLib":"مكتبتنا","decreaseFontSize":"تصغير حجم الخط","increaseFontSize":"تكبير حجم الخط","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"إعادة تعيين اللوحة","exportJSON":"صدر الملف","exportImage":"إحفظ كصورة","export":"تصدير","exportToPng":"تصدير بصيغة PNG","exportToSvg":"تصدير بصيغة SVG","copyToClipboard":"نسخ إلى الحافظة","copyPngToClipboard":"نسخ الـ PNG إلى الحافظة","scale":"مقاس","save":"احفظ للملف الحالي","saveAs":"حفظ كـ","load":"تحميل","getShareableLink":"احصل على رابط المشاركة","close":"غلق","selectLanguage":"اختر اللغة","scrollBackToContent":"الرجوع إلى المحتوى","zoomIn":"تكبير","zoomOut":"تصغير","resetZoom":"إعادة تعيين الشاشة","menu":"القائمة","done":"تم","edit":"تعديل","undo":"تراجع","redo":"إعادة تنفيذ","resetLibrary":"إعادة ضبط المكتبة","createNewRoom":"إنشاء غرفة جديدة","fullScreen":"شاشة كاملة","darkMode":"الوضع المظلم","lightMode":"الوضع المضيء","zenMode":"وضع التأمل","exitZenMode":"إلغاء الوضع الليلى","cancel":"إلغاء","clear":"مسح","remove":"إزالة","publishLibrary":"انشر","submit":"أرسل","confirm":"تأكيد"},"alerts":{"clearReset":"هذا سيُزيل كامل اللوحة. هل أنت متأكد؟","couldNotCreateShareableLink":"تعذر إنشاء رابطة المشاركة.","couldNotCreateShareableLinkTooBig":"تعذر إنشاء رابط قابل للمشاركة: المشهد كبير جدًا","couldNotLoadInvalidFile":"تعذر التحميل، الملف غير صالح","importBackendFailed":"فشل الاستيراد من الخادوم.","cannotExportEmptyCanvas":"لا يمكن تصدير لوحة فارغة.","couldNotCopyToClipboard":"تعذر النسخ إلى الحافظة. حاول استخدام متصفح Chrome.","decryptFailed":"تعذر فك تشفير البيانات.","uploadedSecurly":"تم تأمين التحميل بتشفير النهاية إلى النهاية، مما يعني أن خادوم Excalidraw والأطراف الثالثة لا يمكنها قراءة المحتوى.","loadSceneOverridePrompt":"تحميل الرسم الخارجي سيحل محل المحتوى الموجود لديك. هل ترغب في المتابعة؟","collabStopOverridePrompt":"إيقاف الجلسة سيؤدي إلى الكتابة فوق رسومك السابقة المخزنة داخليا. هل أنت متأكد؟\\n\\n(إذا كنت ترغب في الاحتفاظ برسمك المخزن داخليا، ببساطة أغلق علامة تبويب المتصفح بدلاً من ذلك.)","errorLoadingLibrary":"حصل خطأ أثناء تحميل مكتبة الطرف الثالث.","errorAddingToLibrary":"تعذر إضافة العنصر للمكتبة","errorRemovingFromLibrary":"تعذر إزالة العنصر من المكتبة","confirmAddLibrary":"هذا سيضيف {{numShapes}} شكل إلى مكتبتك. هل أنت متأكد؟","imageDoesNotContainScene":"","cannotRestoreFromImage":"تعذر استعادة المشهد من ملف الصورة","invalidSceneUrl":"تعذر استيراد المشهد من عنوان URL المتوفر. إما أنها مشوهة، أو لا تحتوي على بيانات Excalidraw JSON صالحة.","resetLibrary":"هذا سوف يمسح مكتبتك. هل أنت متأكد؟","removeItemsFromsLibrary":"","invalidEncryptionKey":"مفتاح التشفير يجب أن يكون من 22 حرفاً. التعاون المباشر معطل."},"errors":{"unsupportedFileType":"نوع الملف غير مدعوم.","imageInsertError":"تعذر إدراج الصورة. حاول مرة أخرى لاحقاً...","fileTooBig":"الملف كبير جداً. الحد الأقصى المسموح به للحجم هو {{maxSize}}.","svgImageInsertError":"تعذر إدراج صورة SVG. يبدو أن ترميز SVG غير صحيح.","invalidSVGString":"SVG غير صالح."},"toolBar":{"selection":"تحديد","image":"إدراج صورة","rectangle":"مستطيل","diamond":"مضلع","ellipse":"دائرة","arrow":"سهم","line":"خط","freedraw":"رسم","text":"نص","library":"مكتبة","lock":"الحفاظ على أداة التحديد نشطة بعد الرسم","penMode":"","link":""},"headings":{"canvasActions":"إجراءات اللوحة","selectedShapeActions":"إجراءات الشكل المحدد","shapes":"الأشكال"},"hints":{"canvasPanning":"لتحريك لوحة الرسم ، استمر في الضغط على عجلة الماوس أو مفتاح المسافة أثناء السحب","linearElement":"انقر لبدء نقاط متعددة، اسحب لخط واحد","freeDraw":"انقر واسحب، افرج عند الانتهاء","text":"نصيحة: يمكنك أيضًا إضافة نص بالنقر المزدوج في أي مكان بأداة الاختيار","text_selected":"انقر نقراً مزدوجاً أو اضغط ادخال لتعديل النص","text_editing":"اضغط على Esc أو (Ctrl أو Cmd) + Enter لإنهاء التعديل","linearElementMulti":"انقر فوق النقطة الأخيرة أو اضغط على Esc أو Enter للإنهاء","lockAngle":"يمكنك تقييد الزاوية بالضغط على SHIFT","resize":"يمكنك تقييد النسب بالضغط على SHIFT أثناء تغيير الحجم،\\nاضغط على ALT لتغيير الحجم من المركز","resizeImage":"يمكنك تغيير الحجم بحرية بالضغط بأستمرار على SHIFT،\\nاضغط بأستمرار على ALT أيضا لتغيير الحجم من المركز","rotate":"يمكنك تقييد الزوايا من خلال الضغط على SHIFT أثناء الدوران","lineEditor_info":"انقر نقراً مزدوجاً أو اضغط Enter لتعديل النقاط","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"تعذر عرض المعاينة","canvasTooBig":"قد تكون اللوحة كبيرة جداً.","canvasTooBigTip":"نصيحة: حاول تحريك العناصر البعيدة بشكل أقرب قليلاً."},"errorSplash":{"headingMain_pre":"حدث خطأ، حاول مرة أخرى ","headingMain_button":"إعادة تحميل الصفحة.","clearCanvasMessage":"إذا لم تعمل إعادة التحميل، حاول مرة أخرى ","clearCanvasMessage_button":"مسح اللوحة.","clearCanvasCaveat":" هذا سيؤدي إلى فقدان العمل ","trackedToSentry_pre":"الخطأ ","trackedToSentry_post":" تم تعقبه على نظامنا.","openIssueMessage_pre":"كنا حذرين جدا لعدم تضمين معلومات المشهد الخاصة بك في الخطأ. إذا لم يكن المشهد خاصًا ، يرجى النظر في متابعة هذا الأمر ","openIssueMessage_button":"متعقّب الخلل.","openIssueMessage_post":" يرجى تضمين المعلومات أدناة عن طريق نسخ ولصق المشكلة في GitHub.","sceneContent":"محتوى المشهد:"},"roomDialog":{"desc_intro":"يمكنك دعوة الآخرين لمشاركتك نفس الجلسة التي تعمل عليها.","desc_privacy":"لا تقلق، الجلسة تستخدم التشفير من النهاية إلى النهاية، لذلك فإن أي شيء ترسمه سيبقى خاصاً. لن يتمكن حتى الخادوم الخاص بنا من رؤية ما توصلت إليه.","button_startSession":"بدء الجلسة","button_stopSession":"إيقاف الجلسة","desc_inProgressIntro":"تجري الآن المشاركة الحية.","desc_shareLink":"شارك هذا الرابط مع أي شخص تريده أن يشاركك الجلسة:","desc_exitSession":"إيقاف الجلسة سيؤدي إلى قطع الاتصال الخاص بك من الغرفة، ولكن ستتمكن من مواصلة العمل مع المشهد، محليا. لاحظ أن هذا لن يؤثر على الأشخاص الآخرين، و سيظلون قادرين على التعاون في إصدارهم.","shareTitle":"الانضمام إلى جلسة تعاون حية على Excalidraw"},"errorDialog":{"title":"خطأ"},"exportDialog":{"disk_title":"حفظ الملف للجهاز","disk_details":"تصدير بيانات المشهد إلى ملف يمكنك الاستيراد منه لاحقاً.","disk_button":"إحفظ لملف","link_title":"رابط قابل للمشاركة","link_details":"صدر الملف للمشاهدة فقط.","link_button":"التصدير كرابط","excalidrawplus_description":"حفظ المشهد إلى مساحة العمل +Excalidraw الخاصة بك.","excalidrawplus_button":"تصدير","excalidrawplus_exportError":"تعذر التصدير إلى +Excalidraw في الوقت الحالي..."},"helpDialog":{"blog":"اقرأ مدونتنا","click":"انقر","deepSelect":"","deepBoxSelect":"","curvedArrow":"سهم مائل","curvedLine":"خط مائل","documentation":"دليل الاستخدام","doubleClick":"انقر مرتين","drag":"اسحب","editor":"المحرر","editSelectedShape":"تعديل الشكل المحدد (النص/السهم/الخط)","github":"عثرت على مشكلة؟ إرسال","howto":"اتبع التعليمات","or":"أو","preventBinding":"منع ارتبط السهم","shapes":"أشكال","shortcuts":"اختصارات لوحة المفاتيح","textFinish":"إنهاء التعديل (محرر النص)","textNewLine":"أضف سطر جديد (محرر نص)","title":"المساعدة","view":"عرض","zoomToFit":"تكبير للملائمة","zoomToSelection":"تكبير للعنصر المحدد"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"مطلوب","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"تم إرسال المكتبة","content":"شكرا لك {{authorName}}. لقد تم إرسال مكتبتك للمراجعة. يمكنك تتبع الحالة","link":"هنا"},"confirmDialog":{"resetLibrary":"إعادة ضبط المكتبة","removeItemsFromLib":"إزالة العناصر المحددة من المكتبة"},"encrypted":{"tooltip":"رسوماتك مشفرة من النهاية إلى النهاية حتى أن خوادم Excalidraw لن تراها أبدا.","link":"مشاركة المدونة في التشفير من النهاية إلى النهاية في Excalidraw"},"stats":{"angle":"الزاوية","element":"عنصر","elements":"العناصر","height":"الارتفاع","scene":"المشهد","selected":"المحدد","storage":"التخزين","title":"إحصائيات للمهووسين","total":"المجموع","version":"الإصدار","versionCopy":"انقر للنسخ","versionNotAvailable":"الإصدار غير متوفر","width":"العرض"},"toast":{"addedToLibrary":"تمت الاضافة الى المكتبة!","copyStyles":"نسخت الانماط.","copyToClipboard":"نسخ إلى الحافظة.","copyToClipboardAsPng":"تم نسخ {{exportSelection}} إلى الحافظة بصيغة PNG\\n({{exportColorScheme}})","fileSaved":"تم حفظ الملف.","fileSavedToFilename":"حفظ باسم {filename}","canvas":"لوحة الرسم","selection":"العنصر المحدد"},"colors":{"495057":"رمادي 7","ffffff":"أبيض","f8f9fa":"رمادي 0","f1f3f5":"رمادي 1","fff5f5":"أحمر 0","fff0f6":"وردي 0","f8f0fc":"عنبي 0","f3f0ff":"بنفسجي 0","edf2ff":"نيلي 0","e7f5ff":"أزرق 0","e3fafc":"سماوي 0","e6fcf5":"تركواز 0","ebfbee":"أخضر 0","f4fce3":"ليموني 0","fff9db":"أصفر 0","fff4e6":"برتقالي 0","transparent":"شفاف","ced4da":"رمادي 4","868e96":"رمادي 6","fa5252":"أحمر 6","e64980":"وردي 6","be4bdb":"عنبي 6","7950f2":"بنفسجي 6","4c6ef5":"نيلي 6","228be6":"أزرق 6","15aabf":"سماوي 6","12b886":"تركواز 6","40c057":"أخضر 6","82c91e":"ليموني 6","fab005":"أصفر 6","fd7e14":"برتقالي 6","000000":"أسود","343a40":"رمادي 8","c92a2a":"أحمر 9","a61e4d":"وردي 9","862e9c":"عنبي 9","5f3dc4":"بنفسجي 9","364fc7":"نيلي 9","1864ab":"أزرق 9","0b7285":"سماوي 9","087f5b":"تركواز 9","2b8a3e":"أخضر 9","5c940d":"ليموني 9","e67700":"أصفر 9","d9480f":"برتقالي 9"}}')},1203:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Постави","pasteCharts":"Постави графики","selectAll":"Маркирай всичко","multiSelect":"Добави елемент към селекция","moveCanvas":"Премести платно","cut":"Изрежи","copy":"Копирай","copyAsPng":"Копиране в клипборда","copyAsSvg":"Копирано в клипборда като SVG","bringForward":"Преместване напред","sendToBack":"Изнасяне назад","bringToFront":"Изнасяне отпред","sendBackward":"Изпрати отзад","delete":"Изтрий","copyStyles":"Копирайте стилове","pasteStyles":"Постави стилове","stroke":"Щрих","background":"Фон","fill":"Наситеност","strokeWidth":"Ширина на щриха","strokeStyle":"Стил на линия","strokeStyle_solid":"Плътен","strokeStyle_dashed":"Пунктир","strokeStyle_dotted":"Пунктирано","sloppiness":"Небрежност","opacity":"Прозрачност","textAlign":"Подравняване на текста","edges":"Крайща","sharp":"Остър","round":"Закръглено","arrowheads":"Стрелки","arrowhead_none":"Без","arrowhead_arrow":"Стрелка","arrowhead_bar":"Връх на стрелката","arrowhead_dot":"Точка","arrowhead_triangle":"Триъгълник","fontSize":"Размер на шрифта","fontFamily":"Семейство шрифтове","onlySelected":"Само избраното","withBackground":"Фон","exportEmbedScene":"","exportEmbedScene_details":"Данните от сцената ще бъдат екпортирани в PNG/SVG файл, за да може сцената да бъде възстановена от него.\\nТова ще увеличи размера на файла.","addWatermark":"Добави \\"Направено с Excalidraw\\"","handDrawn":"Нарисувано на ръка","normal":"Нормален","code":"Код","small":"Малък","medium":"Среден","large":"Голям","veryLarge":"Много голям","solid":"Солиден","hachure":"Хералдика","crossHatch":"Двойно-пресечено","thin":"Тънък","bold":"Ясно очертан","left":"Ляво","center":"Център","right":"Дясно","extraBold":"Много ясно очертан","architect":"Архитект","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Име на файл","colorPicker":"Избор на цвят","canvasBackground":"Фон на платно","drawingCanvas":"Платно за рисуване","layers":"Слоеве","actions":"Действия","language":"Език","liveCollaboration":"","duplicateSelection":"Дублирай","untitled":"Неозаглавено","name":"Име","yourName":"Вашето име","madeWithExcalidraw":"Направено с Excalidraw","group":"Групирай селекцията","ungroup":"Спри групирането на селекцията","collaborators":"Сътрудници","showGrid":"Показване на мрежа","addToLibrary":"Добавяне към библиотеката","removeFromLibrary":"Премахване от библиотеката","libraryLoadingMessage":"Зареждане на библиотеката…","libraries":"Разглеждане на библиотеките","loadingScene":"Зареждане на сцена…","align":"Подравняване","alignTop":"Подравняване отгоре","alignBottom":"Подравняване отдолу","alignLeft":"Подравняване отляво","alignRight":"Подравняване отдясно","centerVertically":"Центрирай вертикално","centerHorizontally":"Центрирай хоризонтално","distributeHorizontally":"Разпредели хоризонтално","distributeVertically":"Разпредели вертикално","flipHorizontal":"Хоризонтално обръщане","flipVertical":"Вертикално обръщане","viewMode":"Изглед","toggleExportColorScheme":"","share":"Сподели","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Нулиране на платно","exportJSON":"","exportImage":"Запиши като изображение","export":"Експортиране","exportToPng":"Изнасяне в PNG","exportToSvg":"Изнасяне в SVG","copyToClipboard":"Копиране в клипборда","copyPngToClipboard":"Копирай PNG в клипборда","scale":"Мащаб","save":"","saveAs":"Запиши като","load":"Зареждане","getShareableLink":"Получаване на връзка за споделяне","close":"Затвори","selectLanguage":"Избор на език","scrollBackToContent":"Превъртете обратно към съдържанието","zoomIn":"Приближаване","zoomOut":"Отдалечаване","resetZoom":"Стандартен мащаб","menu":"Меню","done":"Завършено","edit":"Редактиране","undo":"Отмяна","redo":"Повтори","resetLibrary":"Нулиране на библиотеката","createNewRoom":"Създай нова стая","fullScreen":"На цял екран","darkMode":"Тъмен режим","lightMode":"Светъл режим","zenMode":"Режим Zen","exitZenMode":"Спиране на Zen режим","cancel":"Отмени","clear":"Изчисти","remove":"Премахване","publishLibrary":"Публикувай","submit":"Изпрати","confirm":"Потвърждаване"},"alerts":{"clearReset":"Това ще изчисти цялото платно. Сигурни ли сте?","couldNotCreateShareableLink":"Връзката не може да бъде създадена.","couldNotCreateShareableLinkTooBig":"Не може да се създаде връзка за споделяне: сцената е твърде голяма","couldNotLoadInvalidFile":"Невалиден файл не може да се зареди","importBackendFailed":"Импортирането от бекенд не беше успешно.","cannotExportEmptyCanvas":"Не може да се експортира празно платно.","couldNotCopyToClipboard":"Неуспешно копиране в клипборда. Опитайте да използвате браузъра Chrome.","decryptFailed":"Данните не можаха да се дешифрират.","uploadedSecurly":"Качването е защитено с криптиране от край до край, което означава, че сървърът Excalidraw и трети страни не могат да четат съдържанието.","loadSceneOverridePrompt":"Зареждането на външна рисунка ще презапише настоящото ви съдържание. Желаете ли да продължите?","collabStopOverridePrompt":"Прекратяването на сесията ще презапише предишната, локално запазена, рисунка. Сигурни ли сте?\\n\\n(Ако искате да продължите с локалната рисунка, просто затворете таба на браузъра.)","errorLoadingLibrary":"Възникна грешка при зареждането на външна библиотека.","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"Ще се добавят {{numShapes}} фигура(и) във вашата библиотека. Сигурни ли сте?","imageDoesNotContainScene":"","cannotRestoreFromImage":"Не може да бъде възстановена сцена от този файл","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"Този файлов формат не се поддържа.","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"Селекция","image":"Вмъкване на изображение","rectangle":"Правоъгълник","diamond":"Диамант","ellipse":"Елипс","arrow":"Стрелка","line":"Линия","freedraw":"Рисуване","text":"Текст","library":"Библиотека","lock":"Поддържайте избрания инструмент активен след рисуване","penMode":"","link":""},"headings":{"canvasActions":"Действия по платното","selectedShapeActions":"Избрани действия","shapes":"Фигури"},"hints":{"canvasPanning":"","linearElement":"Кликнете, за да стартирате няколко точки, плъзнете за една линия","freeDraw":"Натиснете и влачете, пуснете като сте готови","text":"Подсказка: Можете също да добавите текст като натиснете някъде два път с инструмента за селекция","text_selected":"","text_editing":"","linearElementMulti":"Кликнете върху последната точка или натиснете Escape или Enter, за да завършите","lockAngle":"Можете да ограничите ъгъла, като задържите SHIFT","resize":"Може да ограничите при преоразмеряване като задържите SHIFT,\\nзадръжте ALT за преоразмерите през центъра","resizeImage":"","rotate":"Можете да ограничите ъглите, като държите SHIFT, докато се въртите","lineEditor_info":"Кликнете два пъти или натиснете Enter за да промените точките","lineEditor_pointSelected":"Натиснете Delete за да изтриете точка(и), CtrlOrCmd+D за дуплициране, или извлачете за да преместите","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"Натиснете Enter, за да добавите","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Невъзможност за показване на preview","canvasTooBig":"Платното е твърде голямо.","canvasTooBigTip":"Подсказка: пробвайте да приближите далечните елементи по-близко."},"errorSplash":{"headingMain_pre":"Среща грешка. Опитайте ","headingMain_button":"презареждане на страницата.","clearCanvasMessage":"Ако презареждането не работи, опитайте ","clearCanvasMessage_button":"изчистване на платното.","clearCanvasCaveat":" Това ще доведе до загуба на работа ","trackedToSentry_pre":"Грешката с идентификатор ","trackedToSentry_post":" беше проследен в нашата система.","openIssueMessage_pre":"Бяхме много предпазливи да не включите информацията за вашата сцена при грешката. Ако сцената ви не е частна, моля, помислете за последващи действия на нашата ","openIssueMessage_button":"тракер за грешки.","openIssueMessage_post":" Моля, включете информация по-долу, като я копирате и добавите в GitHub.","sceneContent":"Съдържание на сцената:"},"roomDialog":{"desc_intro":"Можете да поканите хора на текущата си сцена да си сътрудничат с вас.","desc_privacy":"Не се притеснявайте, сесията използва криптиране от край до край, така че каквото нарисувате ще остане частно. Дори нашият сървър няма да може да види какво предлагате.","button_startSession":"Стартирайте сесията","button_stopSession":"Стоп на сесията","desc_inProgressIntro":"Сесията за сътрудничество на живо е в ход.","desc_shareLink":"Споделете тази връзка с всеки, с когото искате да си сътрудничите:","desc_exitSession":"Спирането на сесията ще ви изключи от стаята, но ще можете да продължите да работите със сцената, локално. Имайте предвид, че това няма да засегне други хора и те все още ще могат да си сътрудничат с тяхната версия.","shareTitle":""},"errorDialog":{"title":"Грешка"},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"Прочетете нашия блог","click":"клик","deepSelect":"","deepBoxSelect":"","curvedArrow":"Извита стрелка","curvedLine":"Извита линия","documentation":"Документация","doubleClick":"","drag":"плъзнете","editor":"Редактор","editSelectedShape":"","github":"Намерихте проблем? Изпратете","howto":"Следвайте нашите ръководства","or":"или","preventBinding":"Спри прилепяне на стрелките","shapes":"Фигури","shortcuts":"Клавиши за бърз достъп","textFinish":"","textNewLine":"","title":"Помощ","view":"Преглед","zoomToFit":"Приближи докато се виждат всички елементи","zoomToSelection":"Приближи селекцията"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Вашите рисунки са криптирани от край до край, така че сървърите на Excalidraw няма да могат да ги виждат.","link":""},"stats":{"angle":"Ъгъл","element":"Елемент","elements":"Елементи","height":"Височина","scene":"Сцена","selected":"Селектирано","storage":"Съхранение на данни","title":"Статистика за хакери","total":"Общо","version":"Версия","versionCopy":"Настисни за да копираш","versionNotAvailable":"Версията не е налична","width":"Широчина"},"toast":{"addedToLibrary":"","copyStyles":"Копирани стилове.","copyToClipboard":"Копирано в клипборда.","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},8525:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"","pasteCharts":"","selectAll":"","multiSelect":"","moveCanvas":"","cut":"","copy":"","copyAsPng":"","copyAsSvg":"","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"","copyStyles":"","pasteStyles":"","stroke":"","background":"","fill":"","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"","opacity":"","textAlign":"","edges":"","sharp":"","round":"","arrowheads":"","arrowhead_none":"","arrowhead_arrow":"","arrowhead_bar":"","arrowhead_dot":"","arrowhead_triangle":"","fontSize":"","fontFamily":"","onlySelected":"","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"","handDrawn":"","normal":"","code":"","small":"","medium":"","large":"","veryLarge":"","solid":"","hachure":"","crossHatch":"","thin":"","bold":"","left":"","center":"","right":"","extraBold":"","architect":"","artist":"","cartoonist":"","fileTitle":"","colorPicker":"","canvasBackground":"","drawingCanvas":"","layers":"","actions":"","language":"","liveCollaboration":"","duplicateSelection":"","untitled":"","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","showGrid":"","addToLibrary":"","removeFromLibrary":"","libraryLoadingMessage":"","libraries":"","loadingScene":"","align":"","alignTop":"","alignBottom":"","alignLeft":"","alignRight":"","centerVertically":"","centerHorizontally":"","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"","exportImage":"","export":"","exportToPng":"","exportToSvg":"","copyToClipboard":"","copyPngToClipboard":"","scale":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"","selectLanguage":"","scrollBackToContent":"","zoomIn":"","zoomOut":"","resetZoom":"","menu":"","done":"","edit":"","undo":"","redo":"","resetLibrary":"","createNewRoom":"","fullScreen":"","darkMode":"","lightMode":"","zenMode":"","exitZenMode":"","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"","rectangle":"","diamond":"","ellipse":"","arrow":"","line":"","freedraw":"","text":"","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":""},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"","button_stopSession":"","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":""},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"","total":"","version":"","versionCopy":"","versionNotAvailable":"","width":""},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},510:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Enganxa","pasteCharts":"Enganxa els diagrames","selectAll":"Selecciona-ho tot","multiSelect":"Afegeix un element a la selecció","moveCanvas":"Mou el llenç","cut":"Retalla","copy":"Copia","copyAsPng":"Copia al porta-retalls com a PNG","copyAsSvg":"Copia al porta-retalls com a SVG","bringForward":"Porta endavant","sendToBack":"Envia enrere","bringToFront":"Porta al davant","sendBackward":"Envia al fons","delete":"Elimina","copyStyles":"Copia els estils","pasteStyles":"Enganxa els estils","stroke":"Color del traç","background":"Color del fons","fill":"Estil del fons","strokeWidth":"Amplada del traç","strokeStyle":"Estil del traç","strokeStyle_solid":"Sòlid","strokeStyle_dashed":"Guions","strokeStyle_dotted":"Punts","sloppiness":"Estil del traç","opacity":"Opacitat","textAlign":"Alineació del text","edges":"Vores","sharp":"Agut","round":"Arrodonit","arrowheads":"Puntes de fletxa","arrowhead_none":"Cap","arrowhead_arrow":"Fletxa","arrowhead_bar":"Barra","arrowhead_dot":"Punt","arrowhead_triangle":"Triangle","fontSize":"Mida de lletra","fontFamily":"Tipus de lletra","onlySelected":"Només seleccionats","withBackground":"Fons","exportEmbedScene":"Insereix l\'escena","exportEmbedScene_details":"Les dades de l’escena es desaran al fitxer PNG/SVG de manera que es pugui restaurar l’escena.\\nAugmentarà la mida del fitxer exportat.","addWatermark":"Afegeix-hi «Fet amb Excalidraw»","handDrawn":"Dibuixat a mà","normal":"Normal","code":"Codi","small":"Petit","medium":"Mitjà","large":"Gran","veryLarge":"Molt gran","solid":"Sòlid","hachure":"Ratlletes","crossHatch":"Ratlletes creuades","thin":"Fi","bold":"Negreta","left":"Esquerra","center":"Centre","right":"Dreta","extraBold":"Extra negreta","architect":"Arquitecte","artist":"Artista","cartoonist":"Dibuixant","fileTitle":"Nom del fitxer","colorPicker":"Selector de colors","canvasBackground":"Fons del llenç","drawingCanvas":"Llenç de dibuix","layers":"Capes","actions":"Accions","language":"Llengua","liveCollaboration":"Col·laboració en directe","duplicateSelection":"Duplica","untitled":"Sense títol","name":"Nom","yourName":"El vostre nom","madeWithExcalidraw":"Fet amb Excalidraw","group":"Agrupa la selecció","ungroup":"Desagrupa la selecció","collaborators":"Col·laboradors","showGrid":"Mostra la graella","addToLibrary":"Afegir a la biblioteca","removeFromLibrary":"Eliminar de la biblioteca","libraryLoadingMessage":"S\'està carregant la biblioteca…","libraries":"Explora les biblioteques","loadingScene":"S\'està carregant l\'escena…","align":"Alinea","alignTop":"Alinea a la part superior","alignBottom":"Alinea a la part inferior","alignLeft":"Alinea a l’esquerra","alignRight":"Alinea a la dreta","centerVertically":"Centra verticalment","centerHorizontally":"Centra horitzontalment","distributeHorizontally":"Distribueix horitzontalment","distributeVertically":"Distribueix verticalment","flipHorizontal":"Capgira horitzontalment","flipVertical":"Capgira verticalment","viewMode":"Mode de visualització","toggleExportColorScheme":"Canvia l\'esquema de colors de l\'exportació","share":"Comparteix","showStroke":"Mostra el selector de color del traç","showBackground":"Mostra el selector de color de fons","toggleTheme":"Activa o desactiva el tema","personalLib":"Biblioteca personal","excalidrawLib":"Biblioteca d\'Excalidraw","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Neteja el llenç","exportJSON":"Exporta a un fitxer","exportImage":"Desa com a imatge","export":"Exporta","exportToPng":"Exporta a PNG","exportToSvg":"Exporta a SNG","copyToClipboard":"Copia al porta-retalls","copyPngToClipboard":"Copia el PNG al porta-retalls","scale":"Escala","save":"Desa al fitxer actual","saveAs":"Anomena i desa","load":"Carrega","getShareableLink":"Obté l\'enllaç per a compartir","close":"Tanca","selectLanguage":"Trieu la llengua","scrollBackToContent":"Torna al contingut","zoomIn":"Apropa\'t","zoomOut":"Allunya\'t","resetZoom":"Restableix el zoom","menu":"Menú","done":"Fet","edit":"Edita","undo":"Desfés","redo":"Refés","resetLibrary":"Restableix la biblioteca","createNewRoom":"Crea una sala nova","fullScreen":"Pantalla completa","darkMode":"Mode fosc","lightMode":"Mode clar","zenMode":"Mode zen","exitZenMode":"Surt de mode zen","cancel":"Cancel·la","clear":"Neteja","remove":"Suprimeix","publishLibrary":"Publica","submit":"Envia","confirm":"Confirma"},"alerts":{"clearReset":"S\'esborrarà tot el llenç. N\'esteu segur?","couldNotCreateShareableLink":"No s\'ha pogut crear un enllaç per a compartir.","couldNotCreateShareableLinkTooBig":"No s’ha pogut crear un enllaç per a compartir: l’escena és massa gran","couldNotLoadInvalidFile":"No s\'ha pogut carregar un fitxer no vàlid","importBackendFailed":"Importació fallida.","cannotExportEmptyCanvas":"No es pot exportar un llenç buit.","couldNotCopyToClipboard":"No s\'ha pogut copiar al porta-retalls. Intentar amb el navegador Google Chrome.","decryptFailed":"No s\'ha pogut desencriptar.","uploadedSecurly":"La càrrega s\'ha assegurat amb xifratge punta a punta, cosa que significa que el servidor Excalidraw i tercers no poden llegir el contingut.","loadSceneOverridePrompt":"Si carregas aquest dibuix extern, substituirá el que tens. Vols continuar?","collabStopOverridePrompt":"Aturar la sessió provocarà la sobreescriptura del dibuix previ, que hi ha desat en l\'emmagatzematge local. N\'esteu segur?\\n\\n(Si voleu conservar el dibuix local, tanqueu la pentanya del navegador en comptes d\'aturar la sessió).","errorLoadingLibrary":"S\'ha produït un error en carregar la biblioteca de tercers.","errorAddingToLibrary":"No s\'ha pogut afegir l\'element a la biblioteca","errorRemovingFromLibrary":"No s\'ha pogut eliminar l\'element de la biblioteca","confirmAddLibrary":"Això afegirà {{numShapes}} forma(es) a la vostra biblioteca. Estàs segur?","imageDoesNotContainScene":"","cannotRestoreFromImage":"L’escena no s’ha pogut restaurar des d’aquest fitxer d’imatge","invalidSceneUrl":"No s\'ha pogut importar l\'escena des de l\'adreça URL proporcionada. Està malformada o no conté dades Excalidraw JSON vàlides.","resetLibrary":"Això buidarà la biblioteca. N\'esteu segur?","removeItemsFromsLibrary":"Suprimir {{count}} element(s) de la biblioteca?","invalidEncryptionKey":"La clau d\'encriptació ha de tenir 22 caràcters. La col·laboració en directe està desactivada."},"errors":{"unsupportedFileType":"Tipus de fitxer no suportat.","imageInsertError":"No s\'ha pogut insertar la imatge, torneu-ho a provar més tard...","fileTooBig":"El fitxer és massa gros. La mida màxima permesa és {{maxSize}}.","svgImageInsertError":"No ha estat possible inserir la imatge SVG. Les marques SVG semblen invàlides.","invalidSVGString":"SVG no vàlid."},"toolBar":{"selection":"Selecció","image":"Insereix imatge","rectangle":"Rectangle","diamond":"Rombe","ellipse":"El·lipse","arrow":"Fletxa","line":"Línia","freedraw":"Dibuix","text":"Text","library":"Biblioteca","lock":"Mantenir activa l\'eina seleccionada desprès de dibuixar","penMode":"","link":""},"headings":{"canvasActions":"Accions del llenç","selectedShapeActions":"Accions per a les formes seleccionades","shapes":"Formes"},"hints":{"canvasPanning":"Per a moure el llenç, mantingueu premuda la roda del ratolí o la tecla espai mentre l\'arrossegueu","linearElement":"Feu clic per a dibuixar múltiples punts; arrossegueu per a una sola línia","freeDraw":"Feu clic i arrossegueu, deixeu anar per a finalitzar","text":"Consell: també podeu afegir text fent doble clic en qualsevol lloc amb l\'eina de selecció","text_selected":"Feu doble clic o premeu Retorn per a editar el text","text_editing":"Premeu Escapada o Ctrl+Retorn (o Ordre+Retorn) per a finalitzar l\'edició","linearElementMulti":"Feu clic a l\'ultim punt, o pitgeu Esc o Retorn per a finalitzar","lockAngle":"Per restringir els angles, mantenir premut el majúscul (SHIFT)","resize":"Per restringir les proporcions mentres es canvia la mida, mantenir premut el majúscul (SHIFT); per canviar la mida des del centre, mantenir premut ALT","resizeImage":"Podeu redimensionar lliurement prement MAJÚSCULA;\\nper a redimensionar des del centre, premeu ALT","rotate":"Per restringir els angles mentre gira, mantenir premut el majúscul (SHIFT)","lineEditor_info":"Fes doble clic o premi Enter per editar punts","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Feu clic per a col·locar la imatge o clic i arrossegar per a establir-ne la mida manualment","publishLibrary":"Publiqueu la vostra pròpia llibreria","bindTextToElement":"Premeu enter per a afegir-hi text","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"No es pot mostrar la previsualització","canvasTooBig":"Pot ser que el llenç sigui massa gran.","canvasTooBigTip":"Consell: proveu d’acostar una mica els elements més allunyats."},"errorSplash":{"headingMain_pre":"S\'ha produït un error. Proveu ","headingMain_button":"recarregar la pàgina.","clearCanvasMessage":"Si la recàrrega no funciona, proveu ","clearCanvasMessage_button":"esborrar el llenç.","clearCanvasCaveat":" Això resultarà en la pèrdua de feina ","trackedToSentry_pre":"L\'error amb l\'identificador ","trackedToSentry_post":" s\'ha rastrejat en el nostre sistema.","openIssueMessage_pre":"Anàvem amb molta cura de no incloure la informació de la vostra escena en l\'error. Si l\'escena no és privada, podeu fer-ne el seguiment al nostre ","openIssueMessage_button":"rastrejador d\'errors.","openIssueMessage_post":" Incloeu la informació a continuació copiant i enganxant a GitHub Issues.","sceneContent":"Contingut de l\'escena:"},"roomDialog":{"desc_intro":"Podeu convidar persones a la vostra escena actual a col·laborar amb vós.","desc_privacy":"No us preocupeu, la sessió utilitza el xifratge de punta a punta, de manera que qualsevol cosa que dibuixeu romandrà privada. Ni tan sols el nostre servidor podrà veure què feu.","button_startSession":"Inicia la sessió","button_stopSession":"Atura la sessió","desc_inProgressIntro":"La sessió de col·laboració en directe està en marxa.","desc_shareLink":"Comparteix aquest enllaç amb qualsevol persona amb qui vulgueu col·laborar:","desc_exitSession":"Si atureu la sessió, us desconectareu de la sala, però podreu continuar treballant amb el dibuix localment. Tingues en compte que això no afectarà a altres persones, i encara podran col·laborar en la seva versió.","shareTitle":"Uniu-vos a una sessió de col·laboració en directe a Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Desa al disc","disk_details":"Exporta les dades de l\'escena a un fitxer que després podreu importar.","disk_button":"Desa en un fitxer","link_title":"Enllaç per a compartir","link_details":"Exporta com a un enllaç de només lectura.","link_button":"Exporta a un enllaç","excalidrawplus_description":"Desa l\'escena en el vostre espai de treball Excalidraw+.","excalidrawplus_button":"Exporta","excalidrawplus_exportError":"No és possible exportar a Excalidraw+ ara mateix..."},"helpDialog":{"blog":"Llegiu el nostre blog","click":"clic","deepSelect":"","deepBoxSelect":"","curvedArrow":"Fletxa corba","curvedLine":"Línia corba","documentation":"Documentació","doubleClick":"doble clic","drag":"arrossega","editor":"Editor","editSelectedShape":"Edita la forma seleccionada (text, fletxa o línia)","github":"Hi heu trobat un problema? Informeu-ne","howto":"Seguiu les nostres guies","or":"o","preventBinding":"Prevenir vinculació de la fletxa","shapes":"Formes","shortcuts":"Dreceres de teclat","textFinish":"Finalitza l\'edició (editor de text)","textNewLine":"Afegeix una línia nova (editor de text)","title":"Ajuda","view":"Visualització","zoomToFit":"Zoom per veure tots els elements","zoomToSelection":"Zoom per veure la selecció"},"clearCanvasDialog":{"title":"Neteja el llenç"},"publishDialog":{"title":"Publica la biblioteca","itemName":"Nom de l\'element","authorName":"Nom de l\'autor/a","githubUsername":"Nom d\'usuari de GitHub","twitterUsername":"Nom d\'usuari de Twitter","libraryName":"Nom de la biblioteca","libraryDesc":"Descripció de la biblioteca","website":"Lloc web","placeholder":{"authorName":"Nom o usuari","libraryName":"Nom de la vostra biblioteca","libraryDesc":"Descripció de la biblioteca per a ajudar a la gent a entendre\'n el funcionament","githubHandle":"","twitterHandle":"","website":"Enllaç al vostre lloc web personal o a qualsevol altre (opcional)"},"errors":{"required":"Requerit","website":"Introduïu una URL vàlida"},"noteDescription":{"pre":"Envieu la vostra biblioteca perquè sigui inclosa al ","link":"repositori públic","post":"per tal que altres persones puguin fer-ne ús en els seus dibuixos."},"noteGuidelines":{"pre":"La biblioteca ha de ser aprovada manualment. Si us plau, llegiu les ","link":"directrius","post":" abans d\'enviar-hi res. Necessitareu un compte de GitHub per a comunicar i fer-hi canvis si cal, però no és requisit imprescindible."},"noteLicense":{"pre":"Quan l\'envieu, accepteu que la biblioteca sigui publicada sota la ","link":"llicència MIT, ","post":"que, en resum, vol dir que qualsevol persona pot fer-ne ús sense restriccions."},"noteItems":"Cada element de la biblioteca ha de tenir el seu propi nom per tal que sigui filtrable. S\'hi inclouran els elements següents:","atleastOneLibItem":"Si us plau, seleccioneu si més no un element de la biblioteca per a començar"},"publishSuccessDialog":{"title":"Biblioteca enviada","content":"Gràcies, {{authorName}}. La vostra biblioteca ha estat enviada per a ser revisada. Podeu comprovar-ne l\'estat","link":"aquí"},"confirmDialog":{"resetLibrary":"Restableix la biblioteca","removeItemsFromLib":"Suprimeix els elements seleccionats de la llibreria"},"encrypted":{"tooltip":"Els vostres dibuixos estan xifrats de punta a punta de manera que els servidors d’Excalidraw no els veuran mai.","link":"Article del blog sobre encriptació d\'extrem a extrem a Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Altura","scene":"Escena","selected":"Seleccionat","storage":"Emmagatzematge","title":"Estadístiques per nerds","total":"Total","version":"Versió","versionCopy":"Feu clic per a copiar","versionNotAvailable":"Versió no disponible","width":"Amplada"},"toast":{"addedToLibrary":"Afegit a la biblioteca","copyStyles":"S\'han copiat els estils.","copyToClipboard":"S\'ha copiat al porta-retalls.","copyToClipboardAsPng":"S\'ha copiat {{exportSelection}} al porta-retalls en format PNG\\n({{exportColorScheme}})","fileSaved":"S\'ha desat el fitxer.","fileSavedToFilename":"S\'ha desat a {filename}","canvas":"el llenç","selection":"la selecció"},"colors":{"495057":"Gris 7","ffffff":"Blanc","f8f9fa":"Gris 0","f1f3f5":"Gris 1","fff5f5":"Vermell 0","fff0f6":"Rosa 0","f8f0fc":"Malva 0","f3f0ff":"Violat 0","edf2ff":"Indi 0","e7f5ff":"Blau 0","e3fafc":"Cian 0","e6fcf5":"Xarxet 0","ebfbee":"Verd 0","f4fce3":"Llima 0","fff9db":"Groc 0","fff4e6":"Taronja 0","transparent":"Transparent","ced4da":"Gris 4","868e96":"Gris 6","fa5252":"Vermell 6","e64980":"Rosa 6","be4bdb":"Malva 6","7950f2":"Violat 6","4c6ef5":"Indi 6","228be6":"Blau 6","15aabf":"Cian 6","12b886":"Xarxet 6","40c057":"Verd 6","82c91e":"Llima 6","fab005":"Groc 6","fd7e14":"Taronja 6","000000":"Negre","343a40":"Gris 8","c92a2a":"Vermell 9","a61e4d":"Rosa 9","862e9c":"Malva 9","5f3dc4":"Violat 9","364fc7":"Indi 9","1864ab":"Blau 9","0b7285":"Cian 9","087f5b":"Xarxet 9","2b8a3e":"Verd 9","5c940d":"Llima 9","e67700":"Groc 9","d9480f":"Taronja 9"}}')},7605:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Vložit","pasteCharts":"Vložit grafy","selectAll":"Vybrat vše","multiSelect":"Přidat prvek do výběru","moveCanvas":"Posunout plátno","cut":"Vyjmout","copy":"Kopírovat","copyAsPng":"Zkopírovat do schránky jako PNG","copyAsSvg":"Zkopírovat do schránky jako SVG","bringForward":"Přenést blíž","sendToBack":"Přenést do pozadí","bringToFront":"Přenést do popředí","sendBackward":"Přenést dál","delete":"Smazat","copyStyles":"Kopírovat styly","pasteStyles":"Vložit styly","stroke":"Obrys","background":"Pozadí","fill":"Výplň","strokeWidth":"Šířka obrysu","strokeStyle":"Styl tahu","strokeStyle_solid":"Plný","strokeStyle_dashed":"Čárkovaný","strokeStyle_dotted":"Tečkovaný","sloppiness":"Stylizace","opacity":"Průhlednost","textAlign":"Zarovnání textu","edges":"Hrany","sharp":"Ostré","round":"Zaoblené","arrowheads":"Styl šipky","arrowhead_none":"Žádný","arrowhead_arrow":"Šipka","arrowhead_bar":"Kóta","arrowhead_dot":"Tečka","arrowhead_triangle":"","fontSize":"Velikost písma","fontFamily":"Písmo","onlySelected":"Pouze vybrané","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"","handDrawn":"Od ruky","normal":"Normální","code":"Kód","small":"Malé","medium":"Střední","large":"Velké","veryLarge":"Velmi velké","solid":"","hachure":"","crossHatch":"","thin":"","bold":"","left":"","center":"","right":"","extraBold":"","architect":"","artist":"","cartoonist":"","fileTitle":"","colorPicker":"","canvasBackground":"Pozadí plátna","drawingCanvas":"","layers":"","actions":"","language":"","liveCollaboration":"","duplicateSelection":"","untitled":"","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","showGrid":"","addToLibrary":"","removeFromLibrary":"","libraryLoadingMessage":"","libraries":"","loadingScene":"","align":"","alignTop":"","alignBottom":"","alignLeft":"","alignRight":"","centerVertically":"","centerHorizontally":"","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"","flipVertical":"","viewMode":"Náhled","toggleExportColorScheme":"","share":"Sdílet","showStroke":"","showBackground":"","toggleTheme":"Přepnout tmavý řežim","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"","exportImage":"","export":"Exportovat","exportToPng":"Exportovat do PNG","exportToSvg":"Exportovat do SVG","copyToClipboard":"Kopírovat do schránky","copyPngToClipboard":"Kopírovat PNG do schránky","scale":"Měřítko","save":"","saveAs":"Uložit jako","load":"Nahrát","getShareableLink":"Získat odkaz pro sdílení","close":"Zavřít","selectLanguage":"Zvolit jazyk","scrollBackToContent":"","zoomIn":"Přiblížit","zoomOut":"Oddálit","resetZoom":"Resetovat přiblížení","menu":"Menu","done":"Hotovo","edit":"Upravit","undo":"Zpět","redo":"Znovu","resetLibrary":"","createNewRoom":"Vytvořit novou místnost","fullScreen":"Celá obrazovka","darkMode":"Tmavý režim","lightMode":"Světlý režim","zenMode":"Zen mód","exitZenMode":"Opustit zen mód","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"Výběr","image":"","rectangle":"Obdélník","diamond":"Diamant","ellipse":"Elipsa","arrow":"Šipka","line":"Čára","freedraw":"Kreslení","text":"Text","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":"Tvary"},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"","button_stopSession":"","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":""},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"kliknutí","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"tažení","editor":"","editSelectedShape":"","github":"","howto":"","or":"nebo","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"","total":"","version":"","versionCopy":"","versionNotAvailable":"","width":""},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"plátno","selection":"výběr"},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},2392:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Indsæt","pasteCharts":"","selectAll":"Marker alle","multiSelect":"","moveCanvas":"","cut":"","copy":"Kopier","copyAsPng":"Kopier til klippebord som PNG","copyAsSvg":"Kopier til klippebord som SVG","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"Fjern","copyStyles":"","pasteStyles":"","stroke":"Linje","background":"Baggrund","fill":"","strokeWidth":"Linjebredde","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"","opacity":"","textAlign":"","edges":"","sharp":"","round":"","arrowheads":"","arrowhead_none":"","arrowhead_arrow":"Pil","arrowhead_bar":"","arrowhead_dot":"","arrowhead_triangle":"","fontSize":"","fontFamily":"","onlySelected":"","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"","handDrawn":"","normal":"","code":"","small":"","medium":"","large":"","veryLarge":"","solid":"","hachure":"","crossHatch":"","thin":"","bold":"Fed","left":"Venstre","center":"Centrere","right":"Højre","extraBold":"Extra fed","architect":"","artist":"","cartoonist":"","fileTitle":"Filnavn","colorPicker":"Farvevælger","canvasBackground":"","drawingCanvas":"","layers":"","actions":"","language":"Sprog","liveCollaboration":"Direkte samarbejde","duplicateSelection":"","untitled":"","name":"","yourName":"Dit navn","madeWithExcalidraw":"Fremstillet med Excalidraw","group":"","ungroup":"","collaborators":"","showGrid":"","addToLibrary":"","removeFromLibrary":"","libraryLoadingMessage":"","libraries":"","loadingScene":"","align":"","alignTop":"","alignBottom":"","alignLeft":"","alignRight":"","centerVertically":"","centerHorizontally":"","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"Del","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"","exportImage":"","export":"","exportToPng":"","exportToSvg":"","copyToClipboard":"Kopier til klippebord","copyPngToClipboard":"Kopier PNG til klippebord","scale":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"","selectLanguage":"Vælg sprog","scrollBackToContent":"Scroll tilbage til indhold","zoomIn":"Zoom ind","zoomOut":"Zoom ud","resetZoom":"Nulstil zoom","menu":"Menu","done":"Færdig","edit":"Rediger","undo":"Fortryd","redo":"Gendan","resetLibrary":"","createNewRoom":"Opret nyt rum","fullScreen":"Fuld skærm","darkMode":"Mørk tilstand","lightMode":"Lys baggrund","zenMode":"","exitZenMode":"","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"Kunne ikke kopiere til klippebord. Prøv at bruge Chrome browser.","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"","rectangle":"","diamond":"","ellipse":"","arrow":"","line":"","freedraw":"","text":"","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":""},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"Klik og træk, slip når du er færdig","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":" Kopiere og indsæt venligst oplysningerne nedenfor i et GitHub problem.","sceneContent":"Scene indhold:"},"roomDialog":{"desc_intro":"Du kan invitere folk til din nuværende scene, så de kan samarbejde med dig.","desc_privacy":"Bare rolig, sessionen bruger end-to-end kryptering, så uanset hvad du tegner vil det forblive privat. Ikke engang vores server vil kunne se, hvad du kommer op med.","button_startSession":"Start session","button_stopSession":"Stop session","desc_inProgressIntro":"Live-samarbejde session er nu begyndt.","desc_shareLink":"Del dette link med enhver, du ønsker at samarbejde med:","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":"Fejl"},"exportDialog":{"disk_title":"Gem til disk","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"Læs vores blog","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"Statistik for nørder","total":"","version":"","versionCopy":"Klik for at kopiere","versionNotAvailable":"","width":"Bredde"},"toast":{"addedToLibrary":"","copyStyles":"Kopieret stilarter.","copyToClipboard":"Kopieret til klippebord.","copyToClipboardAsPng":"Kopieret {{exportSelection}} til klippebord som PNG\\n({{exportColorScheme}})","fileSaved":"Fil gemt.","fileSavedToFilename":"Gemt som {filename}","canvas":"canvas","selection":"markering"},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},2853:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Einfügen","pasteCharts":"Diagramme einfügen","selectAll":"Alle auswählen","multiSelect":"Element zur Auswahl hinzufügen","moveCanvas":"Leinwand verschieben","cut":"Ausschneiden","copy":"Kopieren","copyAsPng":"In Zwischenablage kopieren (PNG)","copyAsSvg":"In Zwischenablage kopieren (SVG)","bringForward":"Nach vorne","sendToBack":"In den Hintergrund","bringToFront":"In den Vordergrund","sendBackward":"Nach hinten","delete":"Löschen","copyStyles":"Formatierung kopieren","pasteStyles":"Formatierung übernehmen","stroke":"Strich","background":"Hintergrund","fill":"Füllung","strokeWidth":"Strichstärke","strokeStyle":"Konturstil","strokeStyle_solid":"Durchgezogen","strokeStyle_dashed":"Gestrichelt","strokeStyle_dotted":"Gepunktet","sloppiness":"Sauberkeit","opacity":"Deckkraft","textAlign":"Textausrichtung","edges":"Kanten","sharp":"Scharf","round":"Rund","arrowheads":"Pfeilspitzen","arrowhead_none":"Keine","arrowhead_arrow":"Pfeil","arrowhead_bar":"Balken","arrowhead_dot":"Punkt","arrowhead_triangle":"Dreieck","fontSize":"Schriftgröße","fontFamily":"Schriftfamilie","onlySelected":"Nur ausgewählte","withBackground":"Hintergrund","exportEmbedScene":"Szene einbetten","exportEmbedScene_details":"Die Zeichnungsdaten werden in der exportierten PNG/SVG-Datei gespeichert, sodass das Dokument später weiter bearbeitet werden kann. \\nDieses wird die exportierte Datei vergrößern.","addWatermark":"\\"Made with Excalidraw\\" hinzufügen","handDrawn":"Handgezeichnet","normal":"Normal","code":"Code","small":"Klein","medium":"Mittel","large":"Groß","veryLarge":"Sehr groß","solid":"Deckend","hachure":"Schraffiert","crossHatch":"Kreuzschraffiert","thin":"Dünn","bold":"Fett","left":"Links","center":"Zentriert","right":"Rechts","extraBold":"Extra Fett","architect":"Architekt","artist":"Künstler","cartoonist":"Karikaturist","fileTitle":"Dateiname","colorPicker":"Farbauswähler","canvasBackground":"Zeichenflächenhintergrund","drawingCanvas":"Leinwand","layers":"Ebenen","actions":"Aktionen","language":"Sprache","liveCollaboration":"Live-Zusammenarbeit","duplicateSelection":"Duplizieren","untitled":"Unbenannt","name":"Name","yourName":"Dein Name","madeWithExcalidraw":"Made with Excalidraw","group":"Auswahl gruppieren","ungroup":"Gruppierung aufheben","collaborators":"Mitarbeitende","showGrid":"Raster anzeigen","addToLibrary":"Zur Bibliothek hinzufügen","removeFromLibrary":"Aus Bibliothek entfernen","libraryLoadingMessage":"Lade Bibliothek…","libraries":"Bibliotheken durchsuchen","loadingScene":"Lade Zeichnung…","align":"Ausrichten","alignTop":"Obere Kanten","alignBottom":"Untere Kanten","alignLeft":"Linke Kanten","alignRight":"Rechte Kanten","centerVertically":"Vertikal zentrieren","centerHorizontally":"Horizontal zentrieren","distributeHorizontally":"Horizontal verteilen","distributeVertically":"Vertikal verteilen","flipHorizontal":"Horizontal spiegeln","flipVertical":"Vertikal spiegeln","viewMode":"Ansichtsmodus","toggleExportColorScheme":"Exportfarbschema umschalten","share":"Teilen","showStroke":"Auswahl für Strichfarbe anzeigen","showBackground":"Hintergrundfarbe auswählen","toggleTheme":"Thema umschalten","personalLib":"Persönliche Bibliothek","excalidrawLib":"Excalidraw-Bibliothek","decreaseFontSize":"Schrift verkleinern","increaseFontSize":"Schrift vergrößern","unbindText":"Text lösen","link":{"edit":"Link bearbeiten","create":"Link erstellen","label":"Link"}},"buttons":{"clearReset":"Zeichenfläche löschen & Hintergrundfarbe zurücksetzen","exportJSON":"In Datei exportieren","exportImage":"Als Bild speichern","export":"Exportieren","exportToPng":"Als PNG exportieren","exportToSvg":"Als SVG exportieren","copyToClipboard":"In Zwischenablage kopieren","copyPngToClipboard":"PNG in die Zwischenablage kopieren","scale":"Skalierung","save":"In aktueller Datei speichern","saveAs":"Speichern unter","load":"Laden","getShareableLink":"Teilbaren Link erhalten","close":"Schließen","selectLanguage":"Sprache auswählen","scrollBackToContent":"Zurück zum Inhalt","zoomIn":"Vergrößern","zoomOut":"Verkleinern","resetZoom":"Zoom zurücksetzen","menu":"Menü","done":"Fertig","edit":"Bearbeiten","undo":"Rückgängig machen","redo":"Wiederholen","resetLibrary":"Bibliothek zurücksetzen","createNewRoom":"Neuen Raum erstellen","fullScreen":"Vollbildanzeige","darkMode":"Dunkler Modus","lightMode":"Heller Modus","zenMode":"Zen-Modus","exitZenMode":"Zen-Modus verlassen","cancel":"Abbrechen","clear":"Löschen","remove":"Entfernen","publishLibrary":"Veröffentlichen","submit":"Absenden","confirm":"Bestätigen"},"alerts":{"clearReset":"Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?","couldNotCreateShareableLink":"Konnte keinen teilbaren Link erstellen.","couldNotCreateShareableLinkTooBig":"Konnte keinen teilbaren Link erstellen: Die Zeichnung ist zu groß","couldNotLoadInvalidFile":"Ungültige Datei konnte nicht geladen werden","importBackendFailed":"Import vom Server ist fehlgeschlagen.","cannotExportEmptyCanvas":"Leere Zeichenfläche kann nicht exportiert werden.","couldNotCopyToClipboard":"Konnte nicht in die Zwischenablage kopieren. Versuch es mit dem Chrome Browser.","decryptFailed":"Daten konnten nicht entschlüsselt werden.","uploadedSecurly":"Der Upload wurde mit Ende-zu-Ende-Verschlüsselung gespeichert. Weder Excalidraw noch Dritte können den Inhalt einsehen.","loadSceneOverridePrompt":"Das Laden einer externen Zeichnung ersetzt den vorhandenen Inhalt. Möchtest du fortfahren?","collabStopOverridePrompt":"Das Stoppen der Sitzung wird deine vorherige, lokal gespeicherte Zeichnung überschreiben. Bist du dir sicher?\\n\\n(Wenn du deine lokale Zeichnung behalten möchtest, schließe stattdessen den Browser-Tab.)","errorLoadingLibrary":"Beim Laden der Drittanbieter-Bibliothek ist ein Fehler aufgetreten.","errorAddingToLibrary":"Das Element konnte nicht zur Bibliothek hinzugefügt werden","errorRemovingFromLibrary":"Das Element konnte nicht aus der Bibliothek entfernt werden","confirmAddLibrary":"Dies fügt {{numShapes}} Form(en) zu deiner Bibliothek hinzu. Bist du dir sicher?","imageDoesNotContainScene":"Dieses Bild scheint keine Szenendaten zu enthalten. Hast Du das Einbetten der Szene während des Exports aktiviert?","cannotRestoreFromImage":"Die Zeichnung konnte aus dieser Bilddatei nicht wiederhergestellt werden","invalidSceneUrl":"Die Szene konnte nicht von der angegebenen URL importiert werden. Sie ist entweder fehlerhaft oder enthält keine gültigen Excalidraw JSON-Daten.","resetLibrary":"Dieses löscht deine Bibliothek. Bist du sicher?","removeItemsFromsLibrary":"{{count}} Element(e) aus der Bibliothek löschen?","invalidEncryptionKey":"Verschlüsselungsschlüssel muss 22 Zeichen lang sein. Die Live-Zusammenarbeit ist deaktiviert."},"errors":{"unsupportedFileType":"Nicht unterstützter Dateityp.","imageInsertError":"Das Bild konnte nicht eingefügt werden. Versuche es später erneut...","fileTooBig":"Die Datei ist zu groß. Die maximal zulässige Größe ist {{maxSize}}.","svgImageInsertError":"SVG-Bild konnte nicht eingefügt werden. Das SVG-Markup sieht ungültig aus.","invalidSVGString":"Ungültige SVG."},"toolBar":{"selection":"Auswahl","image":"Bild einfügen","rectangle":"Rechteck","diamond":"Raute","ellipse":"Ellipse","arrow":"Pfeil","line":"Linie","freedraw":"Zeichnen","text":"Text","library":"Bibliothek","lock":"Ausgewähltes Werkzeug nach Zeichnen aktiv lassen","penMode":"","link":"Link für ausgewählte Form hinzufügen / aktualisieren"},"headings":{"canvasActions":"Aktionen für Zeichenfläche","selectedShapeActions":"Aktionen für Auswahl","shapes":"Formen"},"hints":{"canvasPanning":"Um die Zeichenfläche zu verschieben, halte das Mausrad oder die Leertaste während des Ziehens","linearElement":"Klicken für Linie mit mehreren Punkten, Ziehen für einzelne Linie","freeDraw":"Klicke und ziehe. Lass los, wenn du fertig bist","text":"Tipp: Du kannst auch Text hinzufügen, indem du mit dem Auswahlwerkzeug auf eine beliebige Stelle doppelklickst","text_selected":"Doppelklicken oder Eingabetaste drücken, um Text zu bearbeiten","text_editing":"Drücke Escape oder CtrlOrCmd+Eingabetaste, um die Bearbeitung abzuschließen","linearElementMulti":"Zum Beenden auf den letzten Punkt klicken oder Escape oder Eingabe drücken","lockAngle":"Du kannst Winkel einschränken, indem du SHIFT gedrückt hältst","resize":"Du kannst die Proportionen einschränken, indem du SHIFT während der Größenänderung gedrückt hältst. Halte ALT gedrückt, um die Größe vom Zentrum aus zu ändern","resizeImage":"Du kannst die Größe frei ändern, indem du SHIFT gedrückt hältst; halte ALT, um die Größe vom Zentrum aus zu ändern","rotate":"Du kannst Winkel einschränken, indem du SHIFT während der Drehung gedrückt hältst","lineEditor_info":"Doppelklicken oder Eingabetaste drücken, um Punkte zu bearbeiten","lineEditor_pointSelected":"Drücke Löschen, um Punkt(e) zu entfernen, CtrlOrCmd+D zum Duplizieren oder ziehe zum Verschieben","lineEditor_nothingSelected":"Wähle einen zu bearbeitenden Punkt (halte SHIFT gedrückt um mehrere Punkte auszuwählen),\\noder halte Alt gedrückt und klicke um neue Punkte hinzuzufügen","placeImage":"Klicken, um das Bild zu platzieren oder klicken und ziehen um seine Größe manuell zu setzen","publishLibrary":"Veröffentliche deine eigene Bibliothek","bindTextToElement":"Zum Hinzufügen Eingabetaste drücken","deepBoxSelect":"Halte CtrlOrCmd gedrückt, um innerhalb der Gruppe auszuwählen, und um Ziehen zu vermeiden"},"canvasError":{"cannotShowPreview":"Vorschau kann nicht angezeigt werden","canvasTooBig":"Die Leinwand ist möglicherweise zu groß.","canvasTooBigTip":"Tipp: Schiebe die am weitesten entfernten Elemente ein wenig näher zusammen."},"errorSplash":{"headingMain_pre":"Es ist ein Fehler aufgetreten. Versuche ","headingMain_button":"die Seite neu zu laden.","clearCanvasMessage":"Wenn das Neuladen nicht funktioniert, versuche ","clearCanvasMessage_button":"die Zeichenfläche zu löschen.","clearCanvasCaveat":" Dies wird zum Verlust von Daten führen ","trackedToSentry_pre":"Der Fehler mit der Kennung ","trackedToSentry_post":" wurde in unserem System registriert.","openIssueMessage_pre":"Wir waren sehr vorsichtig und haben deine Zeichnungsinformationen nicht in die Fehlerinformationen aufgenommen. Wenn deine Zeichnung nicht privat ist, unterstütze uns bitte über unseren ","openIssueMessage_button":"Bug-Tracker.","openIssueMessage_post":" Bitte teile die unten stehenden Informationen mit uns im GitHub Issue (Kopieren und Einfügen).","sceneContent":"Zeichnungsinhalt:"},"roomDialog":{"desc_intro":"Du kannst Leute zu deiner aktuellen Zeichnung einladen um mit ihnen zusammenzuarbeiten.","desc_privacy":"Keine Sorge, die Sitzung nutzt eine Ende-zu-Ende-Verschlüsselung. Alles was du zeichnest, bleibt privat. Auch unser Server sieht nicht, was du dir einfallen lässt.","button_startSession":"Sitzung starten","button_stopSession":"Sitzung beenden","desc_inProgressIntro":"Die Live-Sitzung wird nun ausgeführt.","desc_shareLink":"Teile diesen Link mit allen, mit denen du zusammenarbeiten möchtest:","desc_exitSession":"Wenn du die Sitzung beendest, wird deine Verbindung zum Raum getrennt. Du kannst jedoch lokal weiter an der Zeichnung arbeiten. Beachte, dass dies keine Auswirkungen auf andere hat und diese weiterhin gemeinsam an ihrer Version arbeiten können.","shareTitle":"An einer Live-Kollaborationssitzung auf Excalidraw teilnehmen"},"errorDialog":{"title":"Fehler"},"exportDialog":{"disk_title":"Auf Festplatte speichern","disk_details":"Exportiere die Zeichnungsdaten in eine Datei, die Du später importieren kannst.","disk_button":"Als Datei speichern","link_title":"Teilbarer Link","link_details":"Als schreibgeschützten Link exportieren.","link_button":"Als Link exportieren","excalidrawplus_description":"Speichere die Szene in deinem Excalidraw+ Arbeitsbereich.","excalidrawplus_button":"Exportieren","excalidrawplus_exportError":"Konnte nicht nach Excalidraw+ exportieren..."},"helpDialog":{"blog":"Lies unseren Blog","click":"klicken","deepSelect":"Auswahl innerhalb der Gruppe","deepBoxSelect":"Auswahl innerhalb der Gruppe, und Ziehen vermeiden","curvedArrow":"Gebogener Pfeil","curvedLine":"Gebogene Linie","documentation":"Dokumentation","doubleClick":"doppelklicken","drag":"ziehen","editor":"Editor","editSelectedShape":"Ausgewählte Form bearbeiten (Text/Pfeil/Linie)","github":"Ein Problem gefunden? Informiere uns","howto":"Folge unseren Anleitungen","or":"oder","preventBinding":"Pfeil-Bindung verhindern","shapes":"Formen","shortcuts":"Tastaturkürzel","textFinish":"Bearbeitung beenden (Texteditor)","textNewLine":"Neue Zeile hinzufügen (Texteditor)","title":"Hilfe","view":"Ansicht","zoomToFit":"Zoomen um alle Elemente einzupassen","zoomToSelection":"Auf Auswahl zoomen"},"clearCanvasDialog":{"title":"Zeichenfläche löschen"},"publishDialog":{"title":"Bibliothek veröffentlichen","itemName":"Elementname","authorName":"Name des Autors","githubUsername":"GitHub-Benutzername","twitterUsername":"Twitter-Benutzername","libraryName":"Name der Bibliothek","libraryDesc":"Beschreibung der Bibliothek","website":"Webseite","placeholder":{"authorName":"Dein Name oder Benutzername","libraryName":"Name deiner Bibliothek","libraryDesc":"Beschreibung deiner Bibliothek, um anderen Nutzern bei der Verwendung zu helfen","githubHandle":"GitHub-Handle (optional), damit du die Bibliothek bearbeiten kannst, wenn sie zur Überprüfung eingereicht wurde","twitterHandle":"Twitter-Benutzername (optional), damit wir wissen, wen wir bei Werbung über Twitter nennen können","website":"Link zu deiner persönlichen Webseite oder zu anderer Seite (optional)"},"errors":{"required":"Erforderlich","website":"Gültige URL eingeben"},"noteDescription":{"pre":"Sende deine Bibliothek ein, um in die ","link":"öffentliche Bibliotheks-Repository aufgenommen zu werden","post":"damit andere Nutzer sie in ihren Zeichnungen verwenden können."},"noteGuidelines":{"pre":"Die Bibliothek muss zuerst manuell freigegeben werden. Bitte lies die ","link":"Richtlinien","post":" vor dem Absenden. Du benötigst ein GitHub-Konto, um zu kommunizieren und Änderungen vorzunehmen, falls erforderlich, aber es ist nicht unbedingt erforderlich."},"noteLicense":{"pre":"Mit dem Absenden stimmst du zu, dass die Bibliothek unter der ","link":"MIT-Lizenz, ","post":"die zusammengefasst beinhaltet, dass jeder sie ohne Einschränkungen nutzen kann."},"noteItems":"Jedes Bibliothekselement muss einen eigenen Namen haben, damit es gefiltert werden kann. Die folgenden Bibliothekselemente werden hinzugefügt:","atleastOneLibItem":"Bitte wähle mindestens ein Bibliothekselement aus, um zu beginnen"},"publishSuccessDialog":{"title":"Bibliothek übermittelt","content":"Vielen Dank {{authorName}}. Deine Bibliothek wurde zur Überprüfung eingereicht. Du kannst den Status verfolgen","link":"hier"},"confirmDialog":{"resetLibrary":"Bibliothek zurücksetzen","removeItemsFromLib":"Ausgewählte Elemente aus der Bibliothek entfernen"},"encrypted":{"tooltip":"Da deine Zeichnungen Ende-zu-Ende verschlüsselt werden, sehen auch unsere Excalidraw-Server sie niemals.","link":"Blogbeitrag über Ende-zu-Ende-Verschlüsselung in Excalidraw"},"stats":{"angle":"Winkel","element":"Element","elements":"Elemente","height":"Höhe","scene":"Zeichnung","selected":"Ausgewählt","storage":"Speicher","title":"Statistiken für Nerds","total":"Gesamt","version":"Version","versionCopy":"Zum Kopieren klicken","versionNotAvailable":"Version nicht verfügbar","width":"Breite"},"toast":{"addedToLibrary":"Zur Bibliothek hinzugefügt","copyStyles":"Formatierungen kopiert.","copyToClipboard":"In die Zwischenablage kopiert.","copyToClipboardAsPng":"{{exportSelection}} als PNG in die Zwischenablage kopiert\\n({{exportColorScheme}})","fileSaved":"Datei gespeichert.","fileSavedToFilename":"Als {filename} gespeichert","canvas":"Zeichenfläche","selection":"Auswahl"},"colors":{"495057":"Grau 7","ffffff":"Weiß","f8f9fa":"Grau 0","f1f3f5":"Grau 1","fff5f5":"Rot 0","fff0f6":"Pink 0","f8f0fc":"Traube 0","f3f0ff":"Violett 0","edf2ff":"Indigo 0","e7f5ff":"Blau 0","e3fafc":"Cyan 0","e6fcf5":"Teal 0","ebfbee":"Grün 0","f4fce3":"Hellgrün 0","fff9db":"Gelb 0","fff4e6":"Orange 0","transparent":"Transparent","ced4da":"Grau 4","868e96":"Grau 6","fa5252":"Rot 6","e64980":"Pink 6","be4bdb":"Traube 6","7950f2":"Violett 6","4c6ef5":"Indigo 6","228be6":"Blau 6","15aabf":"Cyan 6","12b886":"Teal 6","40c057":"Grün 6","82c91e":"Hellgrün 6","fab005":"Gelb 6","fd7e14":"Orange 6","000000":"Schwarz","343a40":"Grau 8","c92a2a":"Rot 9","a61e4d":"Pink 9","862e9c":"Traube 9","5f3dc4":"Violett 9","364fc7":"Indigo 9","1864ab":"Blau 9","0b7285":"Cyan 9","087f5b":"Teal 9","2b8a3e":"Grün 9","5c940d":"Hellgrün 9","e67700":"Gelb 9","d9480f":"Orange 9"}}')},9876:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Επικόλληση","pasteCharts":"Επικόλληση γραφημάτων","selectAll":"Επιλογή όλων","multiSelect":"Προσθέστε το στοιχείο στην επιλογή","moveCanvas":"Μετακίνηση καμβά","cut":"Αποκοπή","copy":"Αντιγραφή","copyAsPng":"Αντιγραφή στο πρόχειρο ως PNG","copyAsSvg":"Αντιγραφή στο πρόχειρο ως SVG","bringForward":"Στο προσκήνιο","sendToBack":"Ένα επίπεδο πίσω","bringToFront":"Ένα επίπεδο μπροστά","sendBackward":"Στο παρασκήνιο","delete":"Διαγραφή","copyStyles":"Αντιγραφή εμφάνισης","pasteStyles":"Επικόλληση εμφάνισης","stroke":"Μολυβιά","background":"Φόντο","fill":"Γέμισμα","strokeWidth":"Πάχος μολυβιάς","strokeStyle":"Στυλ περιγράμματος","strokeStyle_solid":"Συμπαγής","strokeStyle_dashed":"Διακεκομμένη με παύλες","strokeStyle_dotted":"Διακεκομμένη με τελείες","sloppiness":"Ακαταστασία","opacity":"Διαφάνεια","textAlign":"Στοίχιση κειμένου","edges":"Άκρες","sharp":"Οξύ","round":"Στρογγυλό","arrowheads":"Σύμβολα βελών","arrowhead_none":"Κανένα","arrowhead_arrow":"Βέλος","arrowhead_bar":"Μπάρα","arrowhead_dot":"Τελεία","arrowhead_triangle":"Τρίγωνο","fontSize":"Μέγεθος γραμματοσειράς","fontFamily":"Γραμματοσειρά","onlySelected":"Μόνο τα Επιλεγμένα","withBackground":"Φόντο","exportEmbedScene":"","exportEmbedScene_details":"Τα δεδομένα σκηνής θα αποθηκευτούν στο αρχείο PNG/SVG προς εξαγωγή ώστε η σκηνή να είναι δυνατό να αποκατασταθεί από αυτό.\\nΘα αυξήσει το μέγεθος του αρχείου προς εξαγωγή.","addWatermark":"Προσθήκη \\"Φτιαγμένο με Excalidraw\\"","handDrawn":"Σχεδιασμένο στο χέρι","normal":"Κανονική","code":"Κώδικας","small":"Μικρό","medium":"Μεσαίο","large":"Μεγάλο","veryLarge":"Πολύ μεγάλο","solid":"Συμπαγής","hachure":"Εκκόλαψη","crossHatch":"Διασταυρούμενη εκκόλαψη","thin":"Λεπτή","bold":"Έντονη","left":"Αριστερά","center":"Κέντρο","right":"Δεξιά","extraBold":"Πολύ έντονη","architect":"Αρχιτέκτονας","artist":"Καλλιτέχνης","cartoonist":"Σκιτσογράφος","fileTitle":"Όνομα αρχείου","colorPicker":"Επιλογή Χρώματος","canvasBackground":"Φόντο καμβά","drawingCanvas":"Σχεδίαση καμβά","layers":"Στρώματα","actions":"Ενέργειες","language":"Γλώσσα","liveCollaboration":"Ζωντανή συνεργασία","duplicateSelection":"Δημιουργία αντιγράφου","untitled":"Χωρίς τίτλο","name":"Όνομα","yourName":"Το όνομά σου","madeWithExcalidraw":"Φτιαγμένο με Excalidraw","group":"Δημιουργία ομάδας από επιλογή","ungroup":"Κατάργηση ομάδας από επιλογή","collaborators":"Συνεργάτες","showGrid":"Προβολή πλέγματος","addToLibrary":"Προσθήκη στη βιβλιοθήκη","removeFromLibrary":"Αφαίρεση από τη βιβλιοθήκη","libraryLoadingMessage":"Φόρτωση βιβλιοθήκης…","libraries":"Άλλες βιβλιοθήκες","loadingScene":"Φόρτωση σκηνής…","align":"Στοίχιση","alignTop":"Στοίχιση πάνω","alignBottom":"Στοίχιση κάτω","alignLeft":"Στοίχιση αριστερά","alignRight":"Στοίχιση δεξιά","centerVertically":"Κέντρο κάθετα","centerHorizontally":"Κέντρο οριζόντια","distributeHorizontally":"Οριζόντια κατανομή","distributeVertically":"Κατακόρυφη κατανομή","flipHorizontal":"Οριζόντια αναστροφή","flipVertical":"Κατακόρυφη αναστροφή","viewMode":"Λειτουργία προβολής","toggleExportColorScheme":"Εναλλαγή εξαγωγής θέματος χρωμάτων","share":"Κοινοποίηση","showStroke":"Εμφάνιση επιλογέα χρωμάτων πινελιάς","showBackground":"Εμφάνιση επιλογέα χρώματος φόντου","toggleTheme":"Εναλλαγή θέματος","personalLib":"Προσωπική Βιβλιοθήκη","excalidrawLib":"Βιβλιοθήκη Excalidraw","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Επαναφορά του καμβά","exportJSON":"Εξαγωγή σε αρχείο","exportImage":"Αποθήκευση ως εικόνα","export":"Εξαγωγή","exportToPng":"Εξαγωγή σε PNG","exportToSvg":"Εξαγωγή σε SVG","copyToClipboard":"Αντιγραφή στο πρόχειρο","copyPngToClipboard":"Αντιγραφή PNG στο πρόχειρο","scale":"Κλίμακα","save":"Αποθήκευση στο τρέχον αρχείο","saveAs":"Αποθήκευση ως","load":"Άνοιγμα","getShareableLink":"Δημόσιος σύνδεσμος","close":"Κλείσιμο","selectLanguage":"Επιλογή γλώσσας","scrollBackToContent":"Μετακινηθείτε πίσω στο περιεχόμενο","zoomIn":"Μεγέθυνση","zoomOut":"Σμίκρυνση","resetZoom":"Επαναφορά μεγέθυνσης","menu":"Μενού","done":"Τέλος","edit":"Επεξεργασία","undo":"Αναίρεση","redo":"Επαναφορά","resetLibrary":"Καθαρισμός βιβλιοθήκης","createNewRoom":"Δημιουργία νέου χώρου","fullScreen":"Πλήρης οθόνη","darkMode":"Σκοτεινή λειτουργία","lightMode":"Φωτεινή λειτουργία","zenMode":"Λειτουργία Zεν","exitZenMode":"Έξοδος από την λειτουργία Zen","cancel":"Ακύρωση","clear":"Καθαρισμός","remove":"Κατάργηση","publishLibrary":"Δημοσίευση","submit":"Υποβολή","confirm":"Επιβεβαίωση"},"alerts":{"clearReset":"Αυτό θα σβήσει ολόκληρο τον καμβά. Είσαι σίγουρος;","couldNotCreateShareableLink":"Δεν ήταν δυνατή η δημιουργία συνδέσμου κοινής χρήσης.","couldNotCreateShareableLinkTooBig":"Δεν ήταν δυνατή η δημιουργία κοινόχρηστου συνδέσμου: η σκηνή είναι πολύ μεγάλη","couldNotLoadInvalidFile":"Δεν μπόρεσε να ανοίξει εσφαλμένο αρχείο","importBackendFailed":"Η εισαγωγή από το backend απέτυχε.","cannotExportEmptyCanvas":"Δεν είναι δυνατή η εξαγωγή κενού καμβά.","couldNotCopyToClipboard":"Δεν ήταν δυνατή η αντιγραφή στο πρόχειρο. Δοκίμασε τη χρήση του προγράμματος περιήγησης Chrome.","decryptFailed":"Δεν ήταν δυνατή η αποκρυπτογράφηση δεδομένων.","uploadedSecurly":"Η μεταφόρτωση έχει εξασφαλιστεί με κρυπτογράφηση από άκρο σε άκρο, πράγμα που σημαίνει ότι ο διακομιστής Excalidraw και τρίτα μέρη δεν μπορούν να διαβάσουν το περιεχόμενο.","loadSceneOverridePrompt":"Η φόρτωση εξωτερικού σχεδίου θα αντικαταστήσει το υπάρχον περιεχόμενο. Επιθυμείτε να συνεχίσετε;","collabStopOverridePrompt":"Η διακοπή της συνεδρίας θα αντικαταστήσει το προηγούμενο, τοπικά αποθηκευμένο σχέδιο. Είστε σίγουροι?\\n\\n(Αν θέλετε να διατηρήσετε το τοπικό σας σχέδιο, απλά κλείστε την καρτέλα του προγράμματος περιήγησης.)","errorLoadingLibrary":"Υπήρξε ένα σφάλμα κατά τη φόρτωση της βιβλιοθήκης τρίτου μέρους.","errorAddingToLibrary":"Αδυναμία προσθήκης αντικειμένου στη βιβλιοθήκη","errorRemovingFromLibrary":"Αδυναμία αφαίρεσης αντικειμένου από τη βιβλιοθήκη","confirmAddLibrary":"Αυτό θα προσθέσει {{numShapes}} σχήμα(τα) στη βιβλιοθήκη σας. Είστε σίγουροι;","imageDoesNotContainScene":"","cannotRestoreFromImage":"Η σκηνή δεν ήταν δυνατό να αποκατασταθεί από αυτό το αρχείο εικόνας","invalidSceneUrl":"","resetLibrary":"Αυτό θα καθαρίσει τη βιβλιοθήκη σας. Είστε σίγουροι;","removeItemsFromsLibrary":"","invalidEncryptionKey":"Το κλειδί κρυπτογράφησης πρέπει να είναι 22 χαρακτήρες. Η ζωντανή συνεργασία είναι απενεργοποιημένη."},"errors":{"unsupportedFileType":"Μη υποστηριζόμενος τύπος αρχείου.","imageInsertError":"Αδυναμία εισαγωγής εικόνας. Προσπαθήστε ξανά αργότερα...","fileTooBig":"Το αρχείο είναι πολύ μεγάλο. Το μέγιστο επιτρεπόμενο μέγεθος είναι {{maxSize}}.","svgImageInsertError":"","invalidSVGString":"Μη έγκυρο SVG."},"toolBar":{"selection":"Επιλογή","image":"Εισαγωγή εικόνας","rectangle":"Ορθογώνιο","diamond":"Ρόμβος","ellipse":"Έλλειψη","arrow":"Βέλος","line":"Γραμμή","freedraw":"Σχεδίαση","text":"Κείμενο","library":"Βιβλιοθήκη","lock":"Κράτησε επιλεγμένο το εργαλείο μετά το σχέδιο","penMode":"","link":""},"headings":{"canvasActions":"Ενέργειες καμβά","selectedShapeActions":"Επιλεγμένες ενέργειες σχήματος","shapes":"Σχήματα"},"hints":{"canvasPanning":"Για να μετακινήσετε καμβά, κρατήστε πατημένο τον τροχό του ποντικιού ή το πλήκτρο διαστήματος ενώ σύρετε","linearElement":"Κάνε κλικ για να ξεκινήσεις πολλαπλά σημεία, σύρε για μια γραμμή","freeDraw":"Κάντε κλικ και σύρτε, απελευθερώσατε όταν έχετε τελειώσει","text":"Tip: μπορείτε επίσης να προσθέστε κείμενο με διπλό-κλικ οπουδήποτε με το εργαλείο επιλογών","text_selected":"Κάντε διπλό κλικ ή πατήστε ENTER για να επεξεργαστείτε το κείμενο","text_editing":"Πατήστε Escape ή CtrlOrCmd+ENTER για να ολοκληρώσετε την επεξεργασία","linearElementMulti":"Κάνε κλικ στο τελευταίο σημείο ή πάτησε Escape ή Enter για να τελειώσεις","lockAngle":"Μπορείτε να περιορίσετε τη γωνία κρατώντας πατημένο το SHIFT","resize":"Μπορείς να περιορίσεις τις αναλογίες κρατώντας το SHIFT ενώ αλλάζεις μέγεθος,\\nκράτησε πατημένο το ALT για αλλαγή μεγέθους από το κέντρο","resizeImage":"","rotate":"Μπορείς να περιορίσεις τις γωνίες κρατώντας πατημένο το πλήκτρο SHIFT κατά την περιστροφή","lineEditor_info":"Διπλό-κλικ ή πιέστε Enter για να επεξεργαστείτε τα σημεία","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"Δημοσιεύστε τη δική σας βιβλιοθήκη","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Αδυναμία εμφάνισης προεπισκόπησης","canvasTooBig":"Ο καμβάς μπορεί να είναι μεγάλος.","canvasTooBigTip":"Συμβουλή: προσπαθήστε να μετακινήσετε τα πιο απομακρυσμένα στοιχεία λίγο πιο κοντά μαζί."},"errorSplash":{"headingMain_pre":"Συνέβη κάποιο σφάλμα. Προσπάθησε ","headingMain_button":"φόρτωσε ξανά την σελίδα.","clearCanvasMessage":"Εάν το παραπάνω δεν δουλέψει, προσπάθησε ","clearCanvasMessage_button":"καθαρίσετε τον κανβά.","clearCanvasCaveat":" Αυτό θα προκαλέσει απώλεια της δουλειάς σου ","trackedToSentry_pre":"Το σφάλμα με αναγνωριστικό ","trackedToSentry_post":" παρακολουθήθηκε στο σύστημά μας.","openIssueMessage_pre":"Ήμασταν πολύ προσεκτικοί για να μην συμπεριλάβουμε τις πληροφορίες της σκηνής σου στο σφάλμα. Αν η σκηνή σου δεν είναι ιδιωτική, παρακαλώ σκέψου να ακολουθήσεις το δικό μας ","openIssueMessage_button":"ανιχνευτής σφαλμάτων.","openIssueMessage_post":" Παρακαλώ να συμπεριλάβετε τις παρακάτω πληροφορίες, αντιγράφοντας και επικολλώντας το ζήτημα στο GitHub.","sceneContent":"Περιεχόμενο σκηνής:"},"roomDialog":{"desc_intro":"Μπορείς να προσκαλέσεις άλλους να δουλέψουν μαζί σου.","desc_privacy":"Μην ανησυχείς, η συνεδρία χρησιμοποιεί κρυπτογράφηση από σημείο σε σημείο, άρα οτιδήποτε κάνεις θα παραμείνει ανοιχτό μόνο σε εσένα. Ούτε οι μηχανές μας μπορούν να δουν τι κάνεις.","button_startSession":"Έναρξη Συνεδρίας","button_stopSession":"Τερματισμός Συνεδρίας","desc_inProgressIntro":"Η ζωντανή συνεργασία με άλλους είναι σε ενεργή.","desc_shareLink":"Μοιραστείτε τον σύνδεσμο με όποιον θέλετε να δουλέψετε μαζί:","desc_exitSession":"Η διακοπή θα σας αποσυνδέσει από το δωμάτιο, αλλά θα μπορείτε να συνεχίσετε να δουλεύετε στον πίνακα, τοπικά. Σημειώσατε ότι αυτό δεν θα επηρεάσει τον πίνακα άλλων, και θα μπορούν ακόμα να συνεισφέρουν στην δική τους έκδοση.","shareTitle":""},"errorDialog":{"title":"Σφάλμα"},"exportDialog":{"disk_title":"Αποθήκευση στο δίσκο","disk_details":"","disk_button":"Αποθήκευση σε αρχείο","link_title":"Κοινόχρηστος σύνδεσμος","link_details":"Εξαγωγή ως σύνδεσμο μόνο για ανάγνωση.","link_button":"Εξαγωγή σε Σύνδεση","excalidrawplus_description":"","excalidrawplus_button":"Εξαγωγή","excalidrawplus_exportError":""},"helpDialog":{"blog":"Διαβάστε το Blog μας","click":"κλικ","deepSelect":"","deepBoxSelect":"","curvedArrow":"Κυρτό βέλος","curvedLine":"Κυρτή γραμμή","documentation":"Εγχειρίδιο","doubleClick":"διπλό κλικ","drag":"σύρε","editor":"Επεξεργαστής","editSelectedShape":"","github":"Βρήκατε πρόβλημα; Υποβάλετε το","howto":"Ακολουθήστε τους οδηγούς μας","or":"ή","preventBinding":"Αποτροπή δέσμευσης βέλων","shapes":"Σχήματα","shortcuts":"Συντομεύσεις πληκτρολογίου","textFinish":"Ολοκλήρωση επεξεργασίας (επεξεργαστής κειμένου)","textNewLine":"Προσθήκη νέας γραμμής (επεξεργαστής κειμένου)","title":"Βοήθεια","view":"Προβολή","zoomToFit":"Zoom ώστε να χωρέσουν όλα τα στοιχεία","zoomToSelection":"Ζουμ στην επιλογή"},"clearCanvasDialog":{"title":"Καθαρισμός καμβά"},"publishDialog":{"title":"","itemName":"","authorName":"Όνομα δημιουργού","githubUsername":"GitHub username","twitterUsername":"Twitter username","libraryName":"Όνομα βιβλιοθήκης","libraryDesc":"","website":"Ιστοσελίδα","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"Απαιτείται","website":"Εισάγετε μια έγκυρη διεύθυνση URL"},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"οδηγίες","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":"εδώ"},"confirmDialog":{"resetLibrary":"Καθαρισμός βιβλιοθήκης","removeItemsFromLib":"Αφαίρεση επιλεγμένων αντικειμένων από τη βιβλιοθήκη"},"encrypted":{"tooltip":"Τα σχέδιά σου είναι κρυπτογραφημένα από άκρο σε άκρο, έτσι δεν θα είναι ποτέ ορατά μέσα από τους διακομιστές του Excalidraw.","link":"Blog post στην κρυπτογράφηση end-to-end στο Excalidraw"},"stats":{"angle":"Γωνία","element":"Στοιχείο","elements":"Στοιχεία","height":"Ύψος","scene":"Σκηνή","selected":"Επιλεγμένα","storage":"Χώρος","title":"Στατιστικά για σπασίκλες","total":"Σύνολο ","version":"Έκδοση","versionCopy":"Κάνε κλικ για αντιγραφή","versionNotAvailable":"Έκδοση μη διαθέσιμη","width":"Πλάτος"},"toast":{"addedToLibrary":"Προστέθηκε στη βιβλιοθήκη","copyStyles":"Αντιγράφηκαν στυλ.","copyToClipboard":"Αντιγράφηκε στο πρόχειρο.","copyToClipboardAsPng":"Αντιγράφηκε {{exportSelection}} στο πρόχειρο ως PNG\\n({{exportColorScheme}})","fileSaved":"Το αρχείο αποθηκεύτηκε.","fileSavedToFilename":"Αποθηκεύτηκε στο {filename}","canvas":"καμβάς","selection":"επιλογή"},"colors":{"495057":"Γκρι 7","ffffff":"Λευκό","f8f9fa":"Γκρι 0","f1f3f5":"Γκρι 1","fff5f5":"Κόκκινο 0","fff0f6":"Ροζ 0","f8f0fc":"Σταφυλί 0","f3f0ff":"Βιολετί 0","edf2ff":"Λουλάκι 0","e7f5ff":"Μπλε 0","e3fafc":"Κυανό 0","e6fcf5":"Τιρκουάζ 0","ebfbee":"Πράσινο 0","f4fce3":"Πρασινοκίτρινο 0","fff9db":"Κίτρινο 0","fff4e6":"Πορτοκαλί 0","transparent":"Διαφανές","ced4da":"Γκρι 4","868e96":"Γκρι 6","fa5252":"Κόκκινο 6","e64980":"Ροζ 6","be4bdb":"Σταφυλί 6","7950f2":"Βιολετί 6","4c6ef5":"Λουλάκι 6","228be6":"Μπλε 6","15aabf":"Κυανό 6","12b886":"Τιρκουάζ 6","40c057":"Πράσινο 6","82c91e":"Πρασινοκίτρινο 6","fab005":"Κίτρινο 6","fd7e14":"Πορτοκαλί 6","000000":"Μαύρο","343a40":"Γκρι 8","c92a2a":"Κόκκινο 9","a61e4d":"Ροζ 9","862e9c":"Σταφυλί 9","5f3dc4":"Βιολετί 9","364fc7":"Λουλάκι 9","1864ab":"Μπλε 9","0b7285":"Κυανό 9","087f5b":"Τιρκουάζ 9","2b8a3e":"Πράσινο 9","5c940d":"Πρασινοκίτρινο 9","e67700":"Κίτρινο 9","d9480f":"Πορτοκαλί 9"}}')},1463:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Paste","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","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","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…","libraries":"Browse libraries","loadingScene":"Loading scene…","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","link":{"edit":"Edit link","create":"Create link","label":"Link"}},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Save as image","export":"Export","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":"Load","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","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. Try using Chrome browser.","decryptFailed":"Couldn\'t decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can\'t read the content.","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.)","errorLoadingLibrary":"There was an error loading the third party library.","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."},"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."},"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":"Prevent pinch-zoom and accept freedraw input only from pen","link":"Add/ Update link for a selected shape"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging","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":"Double-click or press 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"},"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","editSelectedShape":"Edit selected shape (text/arrow/line)","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","shapes":"Shapes","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"},"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"},"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"},"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"}}')},2264:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Pegar","pasteCharts":"Pegar gráficos","selectAll":"Seleccionar todo","multiSelect":"Añadir elemento a la selección","moveCanvas":"Mover el lienzo","cut":"Cortar","copy":"Copiar","copyAsPng":"Copiar al portapapeles como PNG","copyAsSvg":"Copiar al portapapeles como SVG","bringForward":"Traer hacia delante","sendToBack":"Enviar al fondo","bringToFront":"Traer al frente","sendBackward":"Enviar atrás","delete":"Borrar","copyStyles":"Copiar estilos","pasteStyles":"Pegar estilos","stroke":"Trazo","background":"Fondo","fill":"Rellenar","strokeWidth":"Grosor del trazo","strokeStyle":"Estilo del trazo","strokeStyle_solid":"Sólido","strokeStyle_dashed":"Discontinua","strokeStyle_dotted":"Punteado","sloppiness":"Estilo de trazo","opacity":"Opacidad","textAlign":"Alineado de texto","edges":"Bordes","sharp":"Afilado","round":"Redondo","arrowheads":"Puntas de flecha","arrowhead_none":"Ninguna","arrowhead_arrow":"Flecha","arrowhead_bar":"Barra","arrowhead_dot":"Punto","arrowhead_triangle":"Triángulo","fontSize":"Tamaño de la fuente","fontFamily":"Tipo de fuente","onlySelected":"Sólo seleccionados","withBackground":"Fondo","exportEmbedScene":"Incrustar escena","exportEmbedScene_details":"Los datos de escena se guardarán en el archivo PNG/SVG exportado, así la escena puede ser restaurada de la misma.\\nEsto aumentará el tamaño del archivo exportado.","addWatermark":"Agregar \\"Hecho con Excalidraw\\"","handDrawn":"Dibujado a mano","normal":"Normal","code":"Código","small":"Pequeña","medium":"Mediana","large":"Grande","veryLarge":"Muy grande","solid":"Sólido","hachure":"Folleto","crossHatch":"Rayado transversal","thin":"Fino","bold":"Grueso","left":"Izquierda","center":"Centrado","right":"Derecha","extraBold":"Extra negrita","architect":"Arquitecto","artist":"Artista","cartoonist":"Caricatura","fileTitle":"Nombre del archivo","colorPicker":"Selector de color","canvasBackground":"Fondo del lienzo","drawingCanvas":"Lienzo de dibujo","layers":"Capas","actions":"Acciones","language":"Idioma","liveCollaboration":"Colaboración en directo","duplicateSelection":"Duplicar","untitled":"Sin título","name":"Nombre","yourName":"Tu nombre","madeWithExcalidraw":"Hecho con Excalidraw","group":"Agrupar selección","ungroup":"Desagrupar selección","collaborators":"Colaboradores","showGrid":"Mostrar cuadrícula","addToLibrary":"Añadir a la biblioteca","removeFromLibrary":"Eliminar de la biblioteca","libraryLoadingMessage":"Cargando biblioteca…","libraries":"Explorar bibliotecas","loadingScene":"Cargando escena…","align":"Alinear","alignTop":"Alineación superior","alignBottom":"Alineación inferior","alignLeft":"Alinear a la izquierda","alignRight":"Alinear a la derecha","centerVertically":"Centrar verticalmente","centerHorizontally":"Centrar horizontalmente","distributeHorizontally":"Distribuir horizontalmente","distributeVertically":"Distribuir verticalmente","flipHorizontal":"Girar horizontalmente","flipVertical":"Girar verticalmente","viewMode":"Modo presentación","toggleExportColorScheme":"Alternar el esquema de color de exportación","share":"Compartir","showStroke":"Mostrar selector de color de trazo","showBackground":"Mostrar el selector de color de fondo","toggleTheme":"Alternar tema","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Limpiar lienzo y reiniciar el color de fondo","exportJSON":"Exportar a archivo","exportImage":"Guardar como imagen","export":"Exportar","exportToPng":"Exportar a PNG","exportToSvg":"Exportar a SVG","copyToClipboard":"Copiar al portapapeles","copyPngToClipboard":"Copiar PNG al portapapeles","scale":"Escalar","save":"Guardar en archivo actual","saveAs":"Guardar como","load":"Cargar","getShareableLink":"Obtener enlace para compartir","close":"Cerrar","selectLanguage":"Elegir idioma","scrollBackToContent":"Volver al contenido","zoomIn":"Acercarse","zoomOut":"Alejarse","resetZoom":"Restablecer zoom","menu":"Menú","done":"Hecho","edit":"Editar","undo":"Deshacer","redo":"Rehacer","resetLibrary":"Reiniciar biblioteca","createNewRoom":"Crear nueva sala","fullScreen":"Pantalla completa","darkMode":"Modo oscuro","lightMode":"Modo claro","zenMode":"Modo Zen","exitZenMode":"Salir del modo Zen","cancel":"Cancelar","clear":"Borrar","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"Esto limpiará todo el lienzo. Estás seguro?","couldNotCreateShareableLink":"No se pudo crear un enlace para compartir.","couldNotCreateShareableLinkTooBig":"No se pudo crear el enlace para compartir: la escena es demasiado grande","couldNotLoadInvalidFile":"No se pudo cargar el archivo no válido","importBackendFailed":"La importación falló.","cannotExportEmptyCanvas":"No se puede exportar un lienzo vació","couldNotCopyToClipboard":"No se ha podido copiar al portapapeles, intente usar Chrome como navegador.","decryptFailed":"No se pudieron descifrar los datos.","uploadedSecurly":"La carga ha sido asegurada con cifrado de principio a fin, lo que significa que el servidor de Excalidraw y terceros no pueden leer el contenido.","loadSceneOverridePrompt":"Si carga este dibujo externo, reemplazará el que tiene. ¿Desea continuar?","collabStopOverridePrompt":"Detener la sesión sobrescribirá su dibujo anterior almacenado localmente. ¿Está seguro?\\n\\n(Si desea mantener su dibujo local, simplemente cierre la pestaña del navegador.)","errorLoadingLibrary":"Se ha producido un error al cargar la biblioteca de terceros.","errorAddingToLibrary":"No se pudo agregar elemento a la biblioteca","errorRemovingFromLibrary":"No se pudo quitar el elemento de la biblioteca","confirmAddLibrary":"Esto añadirá {{numShapes}} forma(s) a tu biblioteca. ¿Estás seguro?","imageDoesNotContainScene":"Esta imagen no parece contener datos de escena. ¿Ha habilitado la inserción de la escena durante la exportación?","cannotRestoreFromImage":"No se pudo restaurar la escena desde este archivo de imagen","invalidSceneUrl":"No se ha podido importar la escena desde la URL proporcionada. Está mal formada, o no contiene datos de Excalidraw JSON válidos.","resetLibrary":"Esto borrará tu biblioteca. ¿Estás seguro?","removeItemsFromsLibrary":"","invalidEncryptionKey":"La clave de cifrado debe tener 22 caracteres. La colaboración en vivo está deshabilitada."},"errors":{"unsupportedFileType":"Tipo de archivo no admitido.","imageInsertError":"No se pudo insertar la imagen. Inténtelo de nuevo más tarde...","fileTooBig":"Archivo demasiado grande. El tamaño máximo permitido es {{maxSize}}.","svgImageInsertError":"No se pudo insertar la imagen SVG. El código SVG parece inválido.","invalidSVGString":"SVG no válido."},"toolBar":{"selection":"Selección","image":"Insertar imagen","rectangle":"Rectángulo","diamond":"Diamante","ellipse":"Elipse","arrow":"Flecha","line":"Línea","freedraw":"Dibujar","text":"Texto","library":"Biblioteca","lock":"Mantener la herramienta seleccionada activa después de dibujar","penMode":"","link":""},"headings":{"canvasActions":"Acciones del lienzo","selectedShapeActions":"Acciones de la forma seleccionada","shapes":"Formas"},"hints":{"canvasPanning":"Para mover lienzo, mantenga la rueda del ratón o la barra espaciadora mientras arrastra","linearElement":"Haz clic para dibujar múltiples puntos, arrastrar para solo una línea","freeDraw":"Haz clic y arrastra, suelta al terminar","text":"Consejo: también puedes añadir texto haciendo doble clic en cualquier lugar con la herramienta de selección","text_selected":"Doble clic o pulse ENTER para editar el texto","text_editing":"Pulse Escape o CtrlOrCmd+ENTER para terminar de editar","linearElementMulti":"Haz clic en el último punto o presiona Escape o Enter para finalizar","lockAngle":"Puedes restringir el ángulo manteniendo presionado el botón SHIFT","resize":"Para mantener las proporciones mantén SHIFT presionado mientras modificas el tamaño, \\nmantén presionado ALT para modificar el tamaño desde el centro","resizeImage":"Puede redimensionar libremente pulsando SHIFT,\\npulse ALT para redimensionar desde el centro","rotate":"Puedes restringir los ángulos manteniendo presionado SHIFT mientras giras","lineEditor_info":"Doble clic o pulse Enter para editar puntos","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Haga clic para colocar la imagen o haga clic y arrastre para establecer su tamaño manualmente","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"No se puede mostrar la vista previa","canvasTooBig":"El lienzo podría ser demasiado grande.","canvasTooBigTip":"Sugerencia: intenta acercar un poco más los elementos más lejanos."},"errorSplash":{"headingMain_pre":"Se encontró un error. Intente ","headingMain_button":"recargando la página.","clearCanvasMessage":"Si la recarga no funciona, intente ","clearCanvasMessage_button":"limpiando el lienzo.","clearCanvasCaveat":" Esto provocará la pérdida de su trabajo ","trackedToSentry_pre":"El error con el identificador ","trackedToSentry_post":" fue rastreado en nuestro sistema.","openIssueMessage_pre":"Fuimos muy cautelosos de no incluir la información de tu escena en el error. Si tu escena no es privada, por favor considera seguir nuestro ","openIssueMessage_button":"rastreador de errores.","openIssueMessage_post":" Por favor, incluya la siguiente información copiándola y pegándola en el issue de GitHub.","sceneContent":"Contenido de la escena:"},"roomDialog":{"desc_intro":"Puede invitar a otras personas a tu actual escena para que colaboren contigo.","desc_privacy":"No te preocupes, la sesión usa encriptación de punta a punta, por lo que todo lo que se dibuje se mantendrá privadamente. Ni siquiera nuestro servidor podrá ver lo que haces.","button_startSession":"Iniciar sesión","button_stopSession":"Detener sesión","desc_inProgressIntro":"La sesión de colaboración en vivo está ahora en progreso.","desc_shareLink":"Comparte este enlace con cualquier persona con quien quieras colaborar:","desc_exitSession":"Detener la sesión te desconectará de la sala, pero podrás seguir trabajando con la escena en su computadora, esto es de modo local. Ten en cuenta que esto no afectará a otras personas, y que las mismas seguirán siendo capaces de colaborar en tu escena.","shareTitle":"Únase a una sesión colaborativa en vivo en Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Guardar en disco","disk_details":"Exportar los datos de la escena a un archivo desde el cual pueda importar más tarde.","disk_button":"Guardar en archivo","link_title":"Enlace para compartir","link_details":"Exportar como enlace de sólo lectura.","link_button":"Exportar a Link","excalidrawplus_description":"Guarde la escena en su espacio de trabajo de Excalidraw+.","excalidrawplus_button":"Exportar","excalidrawplus_exportError":"No se pudo exportar a Excalidraw+ en este momento..."},"helpDialog":{"blog":"Lea nuestro blog","click":"clic","deepSelect":"","deepBoxSelect":"","curvedArrow":"Flecha curva","curvedLine":"Línea curva","documentation":"Documentación","doubleClick":"doble clic","drag":"arrastrar","editor":"Editor","editSelectedShape":"Editar la forma seleccionada (texto/flecha/línea)","github":"¿Ha encontrado un problema? Envíelo","howto":"Siga nuestras guías","or":"o","preventBinding":"Evitar yuxtaposición de flechas","shapes":"Formas","shortcuts":"Atajos del teclado","textFinish":"Finalizar edición (editor de texto)","textNewLine":"Añadir nueva linea (editor de texto)","title":"Ayuda","view":"Vista","zoomToFit":"Ajustar la vista para mostrar todos los elementos","zoomToSelection":"Zoom a la selección"},"clearCanvasDialog":{"title":"Borrar lienzo"},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Tus dibujos están cifrados de punto a punto, por lo que los servidores de Excalidraw nunca los verán.","link":"Entrada en el blog sobre cifrado de extremo a extremo"},"stats":{"angle":"Ángulo","element":"Elemento","elements":"Elementos","height":"Alto","scene":"Escena","selected":"Seleccionado","storage":"Almacenamiento","title":"Estadísticas para nerds","total":"Total","version":"Versión","versionCopy":"Clic para copiar","versionNotAvailable":"Versión no disponible","width":"Ancho"},"toast":{"addedToLibrary":"","copyStyles":"Estilos copiados.","copyToClipboard":"Copiado en el portapapeles.","copyToClipboardAsPng":"Copiado {{exportSelection}} al portapapeles como PNG\\n({{exportColorScheme}})","fileSaved":"Archivo guardado.","fileSavedToFilename":"Guardado en {filename}","canvas":"lienzo","selection":"selección"},"colors":{"495057":"Gris 7","ffffff":"Blanco","f8f9fa":"Gris 0","f1f3f5":"Gris 1","fff5f5":"Rojo 0","fff0f6":"Rosa 0","f8f0fc":"Uva 0","f3f0ff":"Violeta 0","edf2ff":"Índigo 0","e7f5ff":"Azul 0","e3fafc":"Cian 0","e6fcf5":"Turquesa 0","ebfbee":"Verde 0","f4fce3":"Lima 0","fff9db":"Amarillo 0","fff4e6":"Naranja 0","transparent":"Transparente","ced4da":"Gris 4","868e96":"Gris 6","fa5252":"Rojo 6","e64980":"Rosa 6","be4bdb":"Uva 6","7950f2":"Violeta 6","4c6ef5":"Índigo 6","228be6":"Azul 6","15aabf":"Cian 6","12b886":"Turquesa 6","40c057":"Verde 6","82c91e":"Lima 6","fab005":"Amarillo 6","fd7e14":"Naranja 6","000000":"Negro","343a40":"Gris 8","c92a2a":"Rojo 9","a61e4d":"Rosa 9","862e9c":"Uva 9","5f3dc4":"Violeta 9","364fc7":"Índigo 9","1864ab":"Azul 9","0b7285":"Cian 9","087f5b":"Turquesa 9","2b8a3e":"Verde 9","5c940d":"Lima 9","e67700":"Amarillo 9","d9480f":"Naranja 9"}}')},5658:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Itsatsi","pasteCharts":"Itsatsi grafikoak","selectAll":"Hautatu dena","multiSelect":"Gehitu elementua hautapenera","moveCanvas":"Mugitu oihala","cut":"Ebaki","copy":"Kopiatu","copyAsPng":"Kopiatu arbelera PNG gisa","copyAsSvg":"Kopiatu arbelera SVG gisa","bringForward":"Ekarri aurrerago","sendToBack":"Eraman atzera","bringToFront":"Ekarri aurrera","sendBackward":"Eraman atzerago","delete":"Ezabatu","copyStyles":"Kopiatu estiloak","pasteStyles":"Itsatsi estiloak","stroke":"Marra","background":"Atzeko planoa","fill":"Bete","strokeWidth":"Marraren zabalera","strokeStyle":"Marraren estiloa","strokeStyle_solid":"Solidoa","strokeStyle_dashed":"Marratua","strokeStyle_dotted":"Puntukatua","sloppiness":"Marraren trazoa","opacity":"Opakotasuna","textAlign":"Testuaren lerrokapena","edges":"Ertzak","sharp":"Ertz bizia","round":"Borobildua","arrowheads":"Gezi-puntak","arrowhead_none":"Bat ere ez","arrowhead_arrow":"Gezia","arrowhead_bar":"Barra","arrowhead_dot":"Puntua","arrowhead_triangle":"Hirukia","fontSize":"Letra-tamaina","fontFamily":"Letra-tipoa","onlySelected":"Hautapena soilik","withBackground":"Atzeko planoa","exportEmbedScene":"Txertatu eszena","exportEmbedScene_details":"Eszenaren datuak esportatutako PNG/SVG fitxategian gordeko dira, eszena bertatik berrezartzeko.\\nEsportatutako fitxategien tamaina handituko da.","addWatermark":"Gehitu \\"Excalidraw bidez egina\\"","handDrawn":"Eskuz marraztua","normal":"Normala","code":"Kodea","small":"Txikia","medium":"Ertaina","large":"Handia","veryLarge":"Oso handia","solid":"Solidoa","hachure":"Itzalduna","crossHatch":"Marraduna","thin":"Mehea","bold":"Lodia","left":"Ezkerrean","center":"Erdian","right":"Eskuinean","extraBold":"Oso lodia","architect":"Arkitektoa","artist":"Artista","cartoonist":"Marrazkilaria","fileTitle":"Fitxategi izena","colorPicker":"Kolore-hautatzailea","canvasBackground":"Oihalaren atzeko planoa","drawingCanvas":"Marrazteko oihala","layers":"Geruzak","actions":"Ekintzak","language":"Hizkuntza","liveCollaboration":"Zuzeneko elkarlana","duplicateSelection":"Bikoiztu","untitled":"Izengabea","name":"Izena","yourName":"Zure izena","madeWithExcalidraw":"Excalidraw bidez egina","group":"Hautapena taldea bihurtu","ungroup":"Desegin hautapenaren taldea","collaborators":"Kolaboratzaileak","showGrid":"Erakutsi sareta","addToLibrary":"Gehitu liburutegira","removeFromLibrary":"Kendu liburutegitik","libraryLoadingMessage":"Liburutegia kargatzen…","libraries":"Arakatu liburutegiak","loadingScene":"Eszena kargatzen…","align":"Lerrokatu","alignTop":"Lerrokatu goian","alignBottom":"Lerrokatu behean","alignLeft":"Lerrokatu ezkerrean","alignRight":"Lerrokatu eskuinean","centerVertically":"Erdiratu bertikalki","centerHorizontally":"Erdiratu horizontalki","distributeHorizontally":"Banandu horizontalki","distributeVertically":"Banandu bertikalki","flipHorizontal":"Irauli horizontalki","flipVertical":"Irauli bertikalki","viewMode":"Ikuspegia","toggleExportColorScheme":"Aldatu esportatzeko kolorearen eszena","share":"Partekatu","showStroke":"Erakutsi marraren kolore-hautatzailea","showBackground":"Erakutsi atzeko planoaren kolore-hautatzailea","toggleTheme":"Aldatu gaia","personalLib":"Liburutegi pertsonala","excalidrawLib":"Excalidraw liburutegia","decreaseFontSize":"Txikitu letra tamaina","increaseFontSize":"Handitu letra tamaina","unbindText":"Askatu testua","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Garbitu oihala","exportJSON":"Esportatu fitxategira","exportImage":"Gorde irudi gisa","export":"Esportatu","exportToPng":"Esportatu PNG gisa","exportToSvg":"Esportatu SVG gisa","copyToClipboard":"Kopiatu arbelera","copyPngToClipboard":"Kopiatu PNG arbelera","scale":"Eskala","save":"Gorde uneko fitxategian","saveAs":"Gorde honela","load":"Kargatu","getShareableLink":"Lortu partekatzeko esteka","close":"Itxi","selectLanguage":"Hautatu hizkuntza","scrollBackToContent":"Joan atzera edukira","zoomIn":"Handiagotu","zoomOut":"Txikiagotu","resetZoom":"Leheneratu zooma","menu":"Menua","done":"Egina","edit":"Editatu","undo":"Desegin","redo":"Berregin","resetLibrary":"Leheneratu liburutegia","createNewRoom":"Sortu gela berria","fullScreen":"Pantaila osoa","darkMode":"Modu iluna","lightMode":"Modu argia","zenMode":"Zen modua","exitZenMode":"Irten Zen modutik","cancel":"Utzi","clear":"Garbitu","remove":"Kendu","publishLibrary":"Argitaratu","submit":"Bidali","confirm":"Baieztatu"},"alerts":{"clearReset":"Honek oihal osoa garbituko du. Ziur zaude?","couldNotCreateShareableLink":"Ezin izan da partekatzeko estekarik sortu.","couldNotCreateShareableLinkTooBig":"Ezin izan da partekatzeko estekarik sortu: eszena handiegia da","couldNotLoadInvalidFile":"Ezin izan da kargatu, fitxategiak ez du balio","importBackendFailed":"Inportazioak huts egin du.","cannotExportEmptyCanvas":"Ezin izan da oihal hutsa esportatu.","couldNotCopyToClipboard":"Ezin izan da arbelean kopiatu.","decryptFailed":"Ezin izan da deszifratu.","uploadedSecurly":"Kargatzea muturretik muturrerako zifratze bidez ziurtatu da, hau da, Excalidraw zerbitzariak eta hirugarrenek ezin dutela edukia irakurri.","loadSceneOverridePrompt":"Kanpoko marrazkia kargatzeak lehendik duzun edukia ordezkatuko du. Jarraitu nahi duzu?","collabStopOverridePrompt":"Saioa gelditzeak lokalean gordetako zure aurreko marrazkia gainidatziko du. Ziur zaude?\\n\\n(Zure marrazki lokala mantendu nahi baduzu, itxi arakatzailearen fitxa.)","errorLoadingLibrary":"Errore bat gertatu da hirugarrenen liburutegia kargatzean.","errorAddingToLibrary":"Ezin izan da elementua liburutegian gehitu","errorRemovingFromLibrary":"Ezin izan da elementua liburutegitik kendu","confirmAddLibrary":"Honek {{numShapes}} forma gehituko ditu zure liburutegian. Ziur zaude?","imageDoesNotContainScene":"Irudi honek ez dirudi eszena daturik duenik. Eszena kapsulatzea gaitu al duzu esportazioan?","cannotRestoreFromImage":"Ezin izan da eszena leheneratu irudi fitxategi honetatik","invalidSceneUrl":"Ezin izan da eszena inportatu emandako URLtik. Gaizki eratuta dago edo ez du baliozko Excalidraw JSON daturik.","resetLibrary":"Honek zure liburutegia garbituko du. Ziur zaude?","removeItemsFromsLibrary":"Liburutegitik {{count}} elementu ezabatu?","invalidEncryptionKey":"Enkriptazio-gakoak 22 karaktere izan behar ditu. Zuzeneko lankidetza desgaituta dago."},"errors":{"unsupportedFileType":"Onartu gabeko fitxategi mota.","imageInsertError":"Ezin izan da irudia txertatu. Saiatu berriro geroago...","fileTooBig":"Fitxategia handiegia da. Onartutako gehienezko tamaina {{maxSize}} da.","svgImageInsertError":"Ezin izan da SVG irudia txertatu. SVG markak baliogabea dirudi.","invalidSVGString":"SVG baliogabea."},"toolBar":{"selection":"Hautapena","image":"Txertatu irudia","rectangle":"Laukizuzena","diamond":"Diamantea","ellipse":"Elipsea","arrow":"Gezia","line":"Lerroa","freedraw":"Marraztu","text":"Testua","library":"Liburutegia","lock":"Mantendu aktibo hautatutako tresna marraztu ondoren","penMode":"","link":""},"headings":{"canvasActions":"Canvas ekintzak","selectedShapeActions":"Hautatutako formaren ekintzak","shapes":"Formak"},"hints":{"canvasPanning":"Oihala mugitzeko, sakatu saguaren gurpila edo zuriune-barra arrastatzean","linearElement":"Egin klik hainbat puntu hasteko, arrastatu lerro bakarrerako","freeDraw":"Egin klik eta arrastatu, askatu amaitutakoan","text":"Aholkua: testua gehitu dezakezu edozein lekutan klik bikoitza eginez hautapen tresnarekin","text_selected":"Egin klik bikoitza edo sakatu SARTU testua editatzeko","text_editing":"Sakatu Esc edo Ctrl+SARTU editatzen amaitzeko","linearElementMulti":"Egin klik azken puntuan edo sakatu Esc edo Sartu amaitzeko","lockAngle":"SHIFT sakatuta angelua mantendu dezakezu","resize":"Proportzioak mantendu ditzakezu SHIFT sakatuta tamaina aldatzen duzun bitartean.\\nsakatu ALT erditik tamaina aldatzeko","resizeImage":"Tamaina libreki alda dezakezu SHIFT sakatuta,\\nsakatu ALT erditik tamaina aldatzeko","rotate":"Angeluak mantendu ditzakezu SHIFT sakatuta biratzen duzun bitartean","lineEditor_info":"Egin klik bikoitza edo sakatu Sartu puntuak editatzeko","lineEditor_pointSelected":"Sakatu Ezabatu puntuak kentzeko,\\nKtrl+D bikoizteko, edo arrastatu mugitzeko","lineEditor_nothingSelected":"Hautatu editatzeko puntu bat (SHIFT sakatuta anitz hautatzeko),\\nedo eduki Alt sakatuta eta egin klik puntu berriak gehitzeko","placeImage":"Egin klik irudia kokatzeko, edo egin klik eta arrastatu bere tamaina eskuz ezartzeko","publishLibrary":"Argitaratu zure liburutegia","bindTextToElement":"Sakatu Sartu testua gehitzeko","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"orria birkargatzen.","clearCanvasMessage":"Birkargatzea ez bada burutzen, saiatu ","clearCanvasMessage_button":"oihala garbitzen.","clearCanvasCaveat":" Honen ondorioz lana galduko da ","trackedToSentry_pre":"Identifikatzailearen errorea ","trackedToSentry_post":" gure sistemak behatu du.","openIssueMessage_pre":"Oso kontuz ibili gara zure eszenaren informazioa errorean ez sartzeko. Zure eszena pribatua ez bada, kontuan hartu gure ","openIssueMessage_button":"erroreen jarraipena egitea.","openIssueMessage_post":" Sartu beheko informazioa kopiatu eta itsatsi bidez GitHub issue-n.","sceneContent":"Eszenaren edukia:"},"roomDialog":{"desc_intro":"Jendea zure uneko eszenara gonbida dezakezu zurekin elkarlanean aritzeko.","desc_privacy":"Ez kezkatu, saioak muturretik muturrerako enkriptatzea erabiltzen du, beraz, marrazten duzuna pribatua izango da. Gure zerbitzariak ere ezingo du ikusi zer egiten duzun.","button_startSession":"Hasi saioa","button_stopSession":"Itxi saioa","desc_inProgressIntro":"Zuzeneko lankidetza saioa abian da.","desc_shareLink":"Partekatu esteka hau elkarlanean aritu nahi duzun edonorekin:","desc_exitSession":"Saioa ixteak aretotik deskonektatuko zaitu, baina eszenarekin lanean jarraitu ahal izango duzu lokalean. Kontuan izan honek ez diela beste pertsonei eragingo, eta euren bertsioan elkarlanean aritu ahal izango dira.","shareTitle":"Sartu Excalidraw-en zuzeneko lankidetza-saio batean"},"errorDialog":{"title":"Errorea"},"exportDialog":{"disk_title":"Gorde diskoan","disk_details":"Esportatu eszenaren datuak geroago inportatu ahal izango duzun fitxategi batan.","disk_button":"Gorde fitxategian","link_title":"Partekatzeko esteka","link_details":"Esportatu irakurtzeko soilik moduko esteka.","link_button":"Esportatu esteka","excalidrawplus_description":"Gorde eszena zure Excalidraw+ laneko areara.","excalidrawplus_button":"Esportatu","excalidrawplus_exportError":"Une honetan ezin izan da esportatu Excalidraw+era..."},"helpDialog":{"blog":"Irakurri gure bloga","click":"sakatu","deepSelect":"","deepBoxSelect":"","curvedArrow":"Gezi kurbatua","curvedLine":"Lerro kurbatua","documentation":"Dokumentazioa","doubleClick":"klik bikoitza","drag":"arrastatu","editor":"Editorea","editSelectedShape":"Editatu hautatutako forma (testua/gezia/lerroa)","github":"Arazorik izan al duzu? Eman horren berri","howto":"Jarraitu gure gidak","or":"edo","preventBinding":"Saihestu gezien gainjartzea","shapes":"Formak","shortcuts":"Laster-teklak","textFinish":"Bukatu edizioa (testu editorea)","textNewLine":"Gehitu lerro berri bat (testu editorea)","title":"Laguntza","view":"Bistaratu","zoomToFit":"Egin zoom elementu guztiak ikusteko","zoomToSelection":"Zooma hautapenera"},"clearCanvasDialog":{"title":"Garbitu oihala"},"publishDialog":{"title":"Argitaratu liburutegia","itemName":"Elementuaren izena","authorName":"Egilearen izena","githubUsername":"GitHub-eko erabiltzaile-izena","twitterUsername":"Twitter-eko erabiltzaile-izena","libraryName":"Liburutegiaren izena","libraryDesc":"Liburutegiaren deskripzioa","website":"Webgunea","placeholder":{"authorName":"Zure izena edo erabiltzaile-izena","libraryName":"Zure liburutegiaren izena","libraryDesc":"Zure liburutegiaren deskripzioa laguntzeko jendeari ulertzen haren erabilpena","githubHandle":"GitHub heldulekua (aukerakoa), liburutegia editatu ahal izateko berrikustera bidalitakoan","twitterHandle":"Twitter-eko erabiltzaile-izena (aukerakoa), badakigu nori kreditatu behar dugun Twitter bidez sustatzeko","website":"Estekatu zure webgunera edo nahi duzun tokira (aukerakoa)"},"errors":{"required":"Beharrezkoa","website":"Sartu baliozko URL bat"},"noteDescription":{"pre":"Bidali zure liburutegira sartu ahal izateko ","link":"zure liburutegiko biltegian","post":"beste jendeak bere marrazkietan erabili ahal izateko."},"noteGuidelines":{"pre":"Liburutegia eskuz onartu behar da. Irakurri ","link":"gidalerroak","post":" bidali aurretik. GitHub kontu bat edukitzea komeni da komunikatzeko eta aldaketak egin ahal izateko, baina ez da guztiz beharrezkoa."},"noteLicense":{"pre":"Bidaltzen baduzu, onartzen duzu liburutegia ","link":"MIT lizentziarekin argitaratuko dela, ","post":"zeinak, laburbilduz, esan nahi du edozeinek erabiltzen ahal duela murrizketarik gabe."},"noteItems":"Liburutegiko elementu bakoitzak bere izena eduki behar du iragazi ahal izateko. Liburutegiko hurrengo elementuak barne daude:","atleastOneLibItem":"Hautatu gutxienez liburutegiko elementu bat gutxienez hasi ahal izateko"},"publishSuccessDialog":{"title":"Liburutegia bidali da","content":"Eskerrik asko {{authorName}}. Zure liburutegia bidali da berrikustera. Jarraitu dezakezu haren egoera","link":"hemen"},"confirmDialog":{"resetLibrary":"Leheneratu liburutegia","removeItemsFromLib":"Kendu hautatutako elementuak liburutegitik"},"encrypted":{"tooltip":"Zure marrazkiak muturretik muturrera enkriptatu dira, beraz Excalidraw-ren zerbitzariek ezingo dituzte ikusi.","link":"Excalidraw-ren muturretik muturrerako enkriptatzearen gaineko mezua blogean"},"stats":{"angle":"Angelua","element":"Elementua","elements":"Elementuak","height":"Altuera","scene":"Eszena","selected":"Hautatua","storage":"Biltegia","title":"Datuak","total":"Guztira","version":"Bertsioa","versionCopy":"Klikatu kopiatzeko","versionNotAvailable":"Bertsio ez eskuragarria","width":"Zabalera"},"toast":{"addedToLibrary":"Liburutegira gehitu da","copyStyles":"Estiloak kopiatu dira.","copyToClipboard":"Arbelean kopiatu da.","copyToClipboardAsPng":"{{exportSelection}} kopiatu da arbelean PNG gisa\\n({{exportColorScheme}})","fileSaved":"Fitxategia gorde da.","fileSavedToFilename":"{filename}-n gorde da","canvas":"oihala","selection":"hautapena"},"colors":{"495057":"Grisa 7","ffffff":"Zuria","f8f9fa":"Grisa 0","f1f3f5":"Grisa 1","fff5f5":"Gorria 0","fff0f6":"Arrosa 0","f8f0fc":"Mahats kolorea 0","f3f0ff":"Bioleta 0","edf2ff":"Indigoa 0","e7f5ff":"Urdina 0","e3fafc":"Ziana 0","e6fcf5":"Berde urdinxka 0","ebfbee":"Berdea 0","f4fce3":"Lima 0","fff9db":"Horia 0","fff4e6":"Laranja 0","transparent":"Gardena","ced4da":"Grisa 4","868e96":"Grisa 6","fa5252":"Gorria 6","e64980":"Arrosa 6","be4bdb":"Mahats kolorea 6","7950f2":"Bioleta 6","4c6ef5":"Indigoa 6","228be6":"Urdina 6","15aabf":"Ziana 6","12b886":"Berde urdinxka 6","40c057":"Berdea 6","82c91e":"Lima 6","fab005":"Horia 6","fd7e14":"Laranja 6","000000":"Beltza","343a40":"Grisa 8","c92a2a":"Gorria 9","a61e4d":"Arrosa 9","862e9c":"Mahats kolorea 9","5f3dc4":"Bioleta 9","364fc7":"Indigoa 9","1864ab":"Urdina 9","0b7285":"Ziana 9","087f5b":"Berde urdinxka 9","2b8a3e":"Berdea 9","5c940d":"Lima 9","e67700":"Horia 9","d9480f":"Laranja 9"}}')},3747:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"جای گذاری","pasteCharts":"قراردادن نمودارها","selectAll":"انتخاب همه","multiSelect":"یک ایتم به انتخاب شده ها اضافه کنید.","moveCanvas":"جابجایی بوم","cut":"بریدن","copy":"کپی","copyAsPng":"کپی در حافطه موقت به صورت PNG","copyAsSvg":"کپی در حافطه موقت به صورت SVG","bringForward":"جلو آوردن","sendToBack":"پس فرستادن","bringToFront":"جلو آوردن","sendBackward":"پس فرستادن","delete":"حذف","copyStyles":"کپی سبک","pasteStyles":"جای گذاری سبک","stroke":"حاشیه","background":"پس زمینه","fill":"رنگ آمیزی","strokeWidth":"ضخامت حاشیه","strokeStyle":"استایل حاشیه","strokeStyle_solid":"یکدست","strokeStyle_dashed":"خط چین","strokeStyle_dotted":"نقطه چین","sloppiness":"دقت","opacity":"شفافیت","textAlign":"چیدمان متن","edges":"لبه ها","sharp":"تیز","round":"دور","arrowheads":"سر پیکان","arrowhead_none":"هیچ کدام","arrowhead_arrow":"پیکان","arrowhead_bar":"میله ای","arrowhead_dot":"نقطه","arrowhead_triangle":"","fontSize":"اندازه قلم","fontFamily":"نوع قلم","onlySelected":"فقط انتخاب شده ها","withBackground":"پس زمینه","exportEmbedScene":"","exportEmbedScene_details":"متحوای صحنه به فایل خروجی SVG/PNG اضافه خواهد شد برای بازیابی صحنه به آن اضافه خواهد شد.\\nباعث افزایش حجم فایل خروجی میشود.","addWatermark":"\\"ساخته شده با Excalidraw\\" را اضافه کن","handDrawn":"دست نویس","normal":"عادی","code":"کد","small":"کوچک","medium":"متوسط","large":"بزرگ","veryLarge":"بسیار بزرگ","solid":"توپر","hachure":"هاشور","crossHatch":"هاشور متقاطع","thin":"نازک","bold":"ضخیم","left":"چپ","center":"وسط","right":"راست","extraBold":"خیلی ضخیم","architect":"معمار","artist":"هنرمند","cartoonist":"کارتونیست","fileTitle":"نام فایل","colorPicker":"انتخابگر رنگ","canvasBackground":"بوم","drawingCanvas":"بوم نقاشی","layers":"لایه ها","actions":"عملیات","language":"زبان","liveCollaboration":"","duplicateSelection":"تکرار","untitled":"بدون عنوان","name":"نام","yourName":"نام شما","madeWithExcalidraw":"ساخته شده با Excalidraw","group":"گروهبندی انتخابها","ungroup":"حذف گروهبندی انتخابها","collaborators":"همکاران","showGrid":"نمایش گرید","addToLibrary":"افزودن به کتابخانه","removeFromLibrary":"حذف از کتابخانه","libraryLoadingMessage":"بارگذاری کتابخانه…","libraries":"مرور کردن کتابخانه ها","loadingScene":"باگذاری صحنه…","align":"تراز","alignTop":"تراز به بالا","alignBottom":"تراز به پایین","alignLeft":"تراز به چپ","alignRight":"تراز به راست","centerVertically":"وسط قرار دادن به صورت عمودی","centerHorizontally":"وسط قرار دادن به صورت افقی","distributeHorizontally":"توزیع کردن به صورت افقی","distributeVertically":"توزیع کردن به صورت عمودی","flipHorizontal":"چرخش افقی","flipVertical":"چرخش عمودی","viewMode":"حالت نمایش","toggleExportColorScheme":"","share":"اشتراک‌گذاری","showStroke":"نمایش انتخاب کننده رنگ حاشیه","showBackground":"نمایش انتخاب کننده رنگ پس زمینه","toggleTheme":"تغییر تم","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"پاکسازی بوم نقاشی","exportJSON":"خروجی در فایل","exportImage":"ذخیره به عنوان عکس","export":"تبدیل","exportToPng":"تبدیل به PNG","exportToSvg":"تبدیل به SVG","copyToClipboard":"کپی در حافظه موقت","copyPngToClipboard":"کپی PNG در حافظه موقت","scale":"مقیاس","save":"ذخیره در همین فایل","saveAs":"ذخیره با نام","load":"بارگذاری","getShareableLink":"دریافت لینک قابل اشتراک","close":"بستن","selectLanguage":"انتخاب زبان","scrollBackToContent":"به محتوا بروید","zoomIn":"بزرگ نمایی","zoomOut":"کوچک نمایی","resetZoom":"اندازه اصلی","menu":"فهرست","done":"انجام شد","edit":"ویرایش","undo":"بازگرد","redo":"از سر","resetLibrary":"","createNewRoom":"ایجاد یک اتاق جدید","fullScreen":"تمام‌صفحه","darkMode":"حالت تیره","lightMode":"حالت روشن","zenMode":"حالت ذن","exitZenMode":"خروج از حالت تمرکز","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"این کار کل صفحه را پاک میکند. آیا مطمئنید؟","couldNotCreateShareableLink":"عدم توانایی در ساخت یک لینک قابل اشتراک.","couldNotCreateShareableLinkTooBig":"لینک قابل اشتراک گذاری ایجاد نشد: محتوای صحنه بسیار بزرگ است","couldNotLoadInvalidFile":"عدم توانایی در بازگذاری فایل نامعتبر","importBackendFailed":"بارگیری از پشت صحنه با شکست مواجه شد.","cannotExportEmptyCanvas":"بوم خالی قابل تبدیل نیست.","couldNotCopyToClipboard":"کپی نشد. از مرورگر Chrome استفاده کنید.","decryptFailed":"رمزگشایی داده ها امکان پذیر نیست.","uploadedSecurly":"آپلود با رمزگذاری دو طرفه انجام میشود، به این معنی که سرور Excalidraw و اشخاص ثالث نمی توانند مطالب شما را بخوانند.","loadSceneOverridePrompt":"بارگزاری یک طرح خارجی محتوای فعلی رو از بین میبرد. آیا میخواهید ادامه دهید؟","collabStopOverridePrompt":"","errorLoadingLibrary":"خطایی در بارگذاری کتابخانه ثالث وجود داشت.","errorAddingToLibrary":"مورد به کتابخانه اضافه نشد","errorRemovingFromLibrary":"مورد از کتابخانه حذف نشد","confirmAddLibrary":"{{numShapes}} از اشکال به کتابخانه شما اضافه خواهد شد. مطمئن هستید؟","imageDoesNotContainScene":"","cannotRestoreFromImage":"صحنه را نمی توان از این فایل تصویری بازیابی کرد","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"گزینش","image":"","rectangle":"مستطیل","diamond":"لوزی","ellipse":"بیضی","arrow":"پیکان","line":"خط","freedraw":"کشیدن","text":"متن","library":"کتابخانه","lock":"ابزار انتخاب شده را بعد از کشیدن نگه دار","penMode":"","link":""},"headings":{"canvasActions":"عملیات روی بوم","selectedShapeActions":"عملیات روی شکل انتخاب شده","shapes":"شکل‌ها"},"hints":{"canvasPanning":"","linearElement":"برای چند نقطه کلیک و برای یک خط بکشید","freeDraw":"کلیک کنید و بکشید و وقتی کار تمام شد رها کنید","text":"نکته: با برنامه انتخاب شده شما میتوانید با دوبار کلیک کردن هرکجا میخواید متن اظاف کنید","text_selected":"","text_editing":"","linearElementMulti":"روی آخرین نقطه کلیک کنید یا کلید ESC را بزنید یا کلید Enter را بزنید برای اتمام کار","lockAngle":"با نگه داشتن SHIFT هنگام چرخش می توانید زاویه ها را محدود کنید","resize":"می توانید با نگه داشتن SHIFT در هنگام تغییر اندازه، نسبت ها را محدود کنید،ALT را برای تغییر اندازه از مرکز نگه دارید","resizeImage":"","rotate":"با نگه داشتن SHIFT هنگام چرخش می توانید زاویه ها را محدود کنید","lineEditor_info":"دوبار کلیک کنید یا Enter را فشار دهید تا نقاط را ویرایش کنید","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"پیش نمایش نشان داده نمی شود","canvasTooBig":"بوم نقاشی بسیار بزرگ است.","canvasTooBigTip":"نکته: سعی کنید دورترین عناصر را کمی به همدیگر نزدیک کنید."},"errorSplash":{"headingMain_pre":"با مشکلی مواجه شدیم. این را امتحان کنید ","headingMain_button":"در حال بازنشانی صفحه.","clearCanvasMessage":"اگر بازنشانی صفحه مشکل را حل نکرد این را امتحان کنید ","clearCanvasMessage_button":"در حال تمیز کردن بوم","clearCanvasCaveat":" این باعث میشود کارهای شما ذخیره نشود ","trackedToSentry_pre":"خطا در شناسه ","trackedToSentry_post":" در سیستم ما رهگیری شد.","openIssueMessage_pre":"ما خیلی محتاط هستیم که اطلاعات شما را در خطا قرار ندهیم. با این حال اگر اطلاعات شما خصوصی نیست لطفا پیگیری کنید ","openIssueMessage_button":"پیگیری اشکالات.","openIssueMessage_post":" لطفا اطلاعات زیر را با کپی کردن در صفحه مشکلات GitHub بگذارید.","sceneContent":"محتوای صحنه:"},"roomDialog":{"desc_intro":"می توانید افرادی را به صحنه فعلی خود دعوت کنید تا با شما همکاری کنند.","desc_privacy":"نگران نباشید، این جلسه از رمزگذاری دوطرفه استفاده می کند، پس هر چیزی بکشید خصوصی خواهد ماند. حتی سرور ما نمیتواند ببیند چیزی که شما طراحی میکنید.","button_startSession":"شروع جلسه","button_stopSession":"پایان جلسه","desc_inProgressIntro":"جلسه همکاری آنلاین در حال انجام است.","desc_shareLink":"این لینک را با هر کسی که می خواهید با او همکاری کنید به اشتراک بگذارید:","desc_exitSession":"با پایان دادن جلسه، شما از اتاق حذف میکند، اما می توانید به صورت محلی کار خود را با بوم ادامه دهید. توجه داشته باشید که این مورد بر سایر افراد تأثیر نمی گذارد و همچنان می توانند در نسخه خود همکاری کنند.","shareTitle":""},"errorDialog":{"title":"خطا"},"exportDialog":{"disk_title":"ذخیره در دیسک","disk_details":"","disk_button":"ذخیره در فایل","link_title":"لینک قابل اشتراک‌گذاری","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"خروجی گرفتن","excalidrawplus_exportError":""},"helpDialog":{"blog":"بلاگ ما را بخوانید","click":"کلیک","deepSelect":"","deepBoxSelect":"","curvedArrow":"فلش خمیده","curvedLine":"منحنی","documentation":"مستندات","doubleClick":"دابل کلیک","drag":"کشیدن","editor":"ویرایشگر","editSelectedShape":"ویرایش شکل انتخاب شده (متن/فلش/خط)","github":"اشکالی می بینید؟ گزارش دهید","howto":"راهنمای ما را دنبال کنید","or":"یا","preventBinding":"مانع شدن از چسبیدن فلش ها","shapes":"شکل‌ها","shortcuts":"میانبرهای صفحه کلید","textFinish":"پایان ویرایش (ویرایشگر متن)","textNewLine":"افزودن خط جدید (ویرایشگر متن)","title":"راهنما","view":"مشاهده","zoomToFit":"بزرگنمایی برای دیدن تمام آیتم ها","zoomToSelection":"بزرگنمایی قسمت انتخاب شده"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"شما در یک محیط رمزگزاری شده دو طرفه در حال طراحی هستید پس Excalidraw هرگز طرح های شما را نمیبند.","link":""},"stats":{"angle":"زاویه","element":"اِلمان","elements":"اِلمان ها","height":"ارتفاع","scene":"صحنه","selected":"انتخاب شده","storage":"حافظه","title":"آمار برای نردها","total":"مجموع","version":"نسخه","versionCopy":"برای کپی کردن کلیک کنید","versionNotAvailable":"نسخه غیرقابل دسترس","width":"عرض"},"toast":{"addedToLibrary":"","copyStyles":"کپی سبک.","copyToClipboard":"در کلیپ‌بورد کپی شد.","copyToClipboardAsPng":"","fileSaved":"فایل ذخیره شد.","fileSavedToFilename":"ذخیره در {filename}","canvas":"بوم","selection":"انتخاب"},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},9490:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Liitä","pasteCharts":"Liitä kaaviot","selectAll":"Valitse kaikki","multiSelect":"Lisää kohde valintaan","moveCanvas":"Siirrä piirtoaluetta","cut":"Leikkaa","copy":"Kopioi","copyAsPng":"Kopioi leikepöydälle PNG-tiedostona","copyAsSvg":"Kopioi leikepöydälle SVG-tiedostona","bringForward":"Tuo eteenpäin","sendToBack":"Vie taakse","bringToFront":"Tuo eteen","sendBackward":"Vie taaksepäin","delete":"Poista","copyStyles":"Kopioi tyyli","pasteStyles":"Liitä tyyli","stroke":"Piirto","background":"Tausta","fill":"Täyttö","strokeWidth":"Viivan leveys","strokeStyle":"Viivan tyyli","strokeStyle_solid":"Yhtenäinen","strokeStyle_dashed":"Katkoviiva","strokeStyle_dotted":"Pisteviiva","sloppiness":"Viivan tarkkuus","opacity":"Peittävyys","textAlign":"Tekstin tasaus","edges":"Reunat","sharp":"Terävä","round":"Pyöristetty","arrowheads":"Nuolenkärjet","arrowhead_none":"Ei mitään","arrowhead_arrow":"Nuoli","arrowhead_bar":"Tasapää","arrowhead_dot":"Piste","arrowhead_triangle":"Kolmio","fontSize":"Kirjasinkoko","fontFamily":"Kirjasintyyppi","onlySelected":"Vain valitut","withBackground":"Taustalla","exportEmbedScene":"Upota työ","exportEmbedScene_details":"Teoksen tiedot tallennetaan PNG/SVG-tiedostoon, jolloin teoksen voi palauttaa siitä. Kasvattaa tallennetun tiedoston kokoa.","addWatermark":"Lisää \\"Tehty Excalidrawilla\\"","handDrawn":"Käsinpiirretty","normal":"Tavallinen","code":"Koodi","small":"Pieni","medium":"Keskikoko","large":"Suuri","veryLarge":"Erittäin suuri","solid":"Yhtenäinen","hachure":"Vinoviivoitus","crossHatch":"Ristiviivoitus","thin":"Ohut","bold":"Lihavoitu","left":"Vasen","center":"Keskitä","right":"Oikea","extraBold":"Erittäin lihavoitu","architect":"Arkkitehti","artist":"Taiteilija","cartoonist":"Sarjakuva","fileTitle":"Tiedostonimi","colorPicker":"Värin valinta","canvasBackground":"Piirtoalueen tausta","drawingCanvas":"Piirtoalue","layers":"Tasot","actions":"Toiminnot","language":"Kieli","liveCollaboration":"Live-yhteistyö","duplicateSelection":"Monista","untitled":"Nimetön","name":"Nimi","yourName":"Nimesi","madeWithExcalidraw":"Tehty Excalidrawilla","group":"Ryhmitä valinta","ungroup":"Pura valittu ryhmä","collaborators":"Yhteistyökumppanit","showGrid":"Näytä ruudukko","addToLibrary":"Lisää kirjastoon","removeFromLibrary":"Poista kirjastosta","libraryLoadingMessage":"Ladataan kirjastoa…","libraries":"Selaa kirjastoja","loadingScene":"Ladataan työtä…","align":"Tasaa","alignTop":"Tasaa ylös","alignBottom":"Tasaa alas","alignLeft":"Tasaa vasemmalle","alignRight":"Tasaa oikealle","centerVertically":"Keskitä pystysuunnassa","centerHorizontally":"Keskitä vaakasuunnassa","distributeHorizontally":"Jaa vaakasuunnassa","distributeVertically":"Jaa pystysuunnassa","flipHorizontal":"Käännä vaakasuunnassa","flipVertical":"Käännä pystysuunnassa","viewMode":"Katselutila","toggleExportColorScheme":"Vaihda viennin väriteema","share":"Jaa","showStroke":"Näytä viivan värin valitsin","showBackground":"Näytä taustavärin valitsin","toggleTheme":"Vaihda teema","personalLib":"Oma kirjasto","excalidrawLib":"Excalidraw kirjasto","decreaseFontSize":"Pienennä kirjasinkokoa","increaseFontSize":"Kasvata kirjasinkokoa","unbindText":"","link":{"edit":"Muokkaa linkkiä","create":"Luo linkki","label":"Linkki"}},"buttons":{"clearReset":"Tyhjennä piirtoalue","exportJSON":"Vie tiedostoon","exportImage":"Tallenna kuvana","export":"Vie","exportToPng":"Vie PNG-tiedostona","exportToSvg":"Vie SVG-tiedostona","copyToClipboard":"Kopioi leikepöydälle","copyPngToClipboard":"Kopioi PNG-tiedosto leikepöydälle","scale":"Koko","save":"Tallenna nykyiseen tiedostoon","saveAs":"Tallenna nimellä","load":"Avaa","getShareableLink":"Hae jaettava linkki","close":"Sulje","selectLanguage":"Valitse kieli","scrollBackToContent":"Näytä sisältö","zoomIn":"Lähennä","zoomOut":"Loitonna","resetZoom":"Nollaa suurennuksen taso","menu":"Valikko","done":"Valmis","edit":"Muokkaa","undo":"Kumoa","redo":"Tee uudelleen","resetLibrary":"Tyhjennä kirjasto","createNewRoom":"Luo huone","fullScreen":"Koko näyttö","darkMode":"Tumma tila","lightMode":"Vaalea tila","zenMode":"Zen-tila","exitZenMode":"Poistu zen-tilasta","cancel":"Peruuta","clear":"Pyyhi","remove":"Poista","publishLibrary":"Julkaise","submit":"Lähetä","confirm":"Vahvista"},"alerts":{"clearReset":"Tämä tyhjentää koko piirtoalueen. Jatketaanko?","couldNotCreateShareableLink":"Jaettavan linkin luominen epäonnistui.","couldNotCreateShareableLinkTooBig":"Jaettavaa linkkiä ei voitu luoda: teos on liian suuri","couldNotLoadInvalidFile":"Virheellistä tiedostoa ei voitu avata","importBackendFailed":"Palvelimelta tuonti epäonnistui.","cannotExportEmptyCanvas":"Tyhjää piirtoaluetta ei voi viedä.","couldNotCopyToClipboard":"Leikepöydälle kopiointi epäonnistui. Kokeile Chrome-selainta.","decryptFailed":"Salauksen purkaminen epäonnistui.","uploadedSecurly":"Lähetys on turvattu päästä-päähän-salauksella. Excalidrawin palvelin ja kolmannet osapuolet eivät voi lukea sisältöä.","loadSceneOverridePrompt":"Ulkopuolisen piirroksen lataaminen korvaa nykyisen sisältösi. Jatketaanko?","collabStopOverridePrompt":"Istunnon lopettaminen korvaa aiemman, paikallisesti tallennetun piirustuksen. Jatketaanko?\\n\\n(Jos haluat säilyttää paikallisesti tallennetun piirustuksen, sulje selaimen välilehti lopettamisen sijaan.)","errorLoadingLibrary":"Virhe ladattaessa kolmannen osapuolen kirjastoa.","errorAddingToLibrary":"Kohdetta ei voitu lisätä kirjastoon","errorRemovingFromLibrary":"Kohdetta ei voitu poistaa kirjastosta","confirmAddLibrary":"Tämä lisää {{numShapes}} muotoa kirjastoosi. Jatketaanko?","imageDoesNotContainScene":"Tämä kuva ei näytä sisältävän piirrostietoja. Oletko ottanut käyttöön piirroksen tallennuksen viennin aikana?","cannotRestoreFromImage":"Teosta ei voitu palauttaa tästä kuvatiedostosta","invalidSceneUrl":"Teosta ei voitu tuoda annetusta URL-osoitteesta. Tallenne on vioittunut, tai osoitteessa ei ole Excalidraw JSON-dataa.","resetLibrary":"Tämä tyhjentää kirjastosi. Jatketaanko?","removeItemsFromsLibrary":"Poista {{count}} kohdetta kirjastosta?","invalidEncryptionKey":"Salausavaimen on oltava 22 merkkiä pitkä. Live-yhteistyö ei ole käytössä."},"errors":{"unsupportedFileType":"Tiedostotyyppiä ei tueta.","imageInsertError":"Kuvan lisääminen epäonnistui. Yritä myöhemmin uudelleen...","fileTooBig":"Tiedosto on liian suuri. Suurin sallittu koko on {{maxSize}}.","svgImageInsertError":"SVG- kuvaa ei voitu lisätä. Tiedoston SVG-sisältö näyttää virheelliseltä.","invalidSVGString":"Virheellinen SVG."},"toolBar":{"selection":"Valinta","image":"Lisää kuva","rectangle":"Suorakulmio","diamond":"Vinoneliö","ellipse":"Soikio","arrow":"Nuoli","line":"Viiva","freedraw":"Piirrä","text":"Teksti","library":"Kirjasto","lock":"Pidä valittu työkalu aktiivisena piirron jälkeen","penMode":"Estä nipistyszoomaus ja vastaanota ainoastaan kynällä piirretty","link":"Lisää/päivitä linkki valitulle muodolle"},"headings":{"canvasActions":"Piirtoalueen toiminnot","selectedShapeActions":"Valitun muodon toiminnot","shapes":"Muodot"},"hints":{"canvasPanning":"Liikuttaaksesi piirtoaluetta, raahaa hiiren vieritysrulla tai välilyöntinäppäin alaspainettuna","linearElement":"Klikkaa piirtääksesi useampi piste, raahaa piirtääksesi yksittäinen viiva","freeDraw":"Paina ja raahaa, päästä irti kun olet valmis","text":"Vinkki: voit myös lisätä tekstiä kaksoisnapsauttamalla mihin tahansa valintatyökalulla","text_selected":"Kaksoisnapsauta tai paina ENTER muokataksesi tekstiä","text_editing":"Paina Escape tai CtrlOrCmd+ENTER lopettaaksesi muokkaamisen","linearElementMulti":"Lopeta klikkaamalla viimeistä pistettä, painamalla Escape- tai Enter-näppäintä","lockAngle":"Voit rajoittaa kulmaa pitämällä SHIFT-näppäintä alaspainettuna","resize":"Voit rajoittaa mittasuhteet pitämällä SHIFT-näppäintä alaspainettuna kun muutat kokoa, pidä ALT-näppäintä alaspainettuna muuttaaksesi kokoa keskipisteen suhteen","resizeImage":"Voit muuttaa kokoa vapaasti pitämällä SHIFTiä pohjassa, pidä ALT pohjassa muuttaaksesi kokoa keskipisteen ympäri","rotate":"Voit rajoittaa kulman pitämällä SHIFT pohjassa pyörittäessäsi","lineEditor_info":"Kaksoisnapauta tai paina Enter muokataksesi pisteitä","lineEditor_pointSelected":"Poista piste(et) painamalla delete, monista painamalla CtrlOrCmd+D, tai liikuta raahaamalla","lineEditor_nothingSelected":"Valitse muokattava piste (monivalinta pitämällä SHIFT pohjassa), tai paina Alt ja klikkaa lisätäksesi uusia pisteitä","placeImage":"Klikkaa asettaaksesi kuvan, tai klikkaa ja raahaa asettaaksesi sen koon manuaalisesti","publishLibrary":"Julkaise oma kirjasto","bindTextToElement":"Lisää tekstiä painamalla enter","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Esikatselua ei voitu näyttää","canvasTooBig":"Piirtoalue saattaa olla liian suuri.","canvasTooBigTip":"Vinkki: yritä siirtää kaukaisimpia elementtejä hieman lähemmäs toisiaan."},"errorSplash":{"headingMain_pre":"Tapahtui virhe. Yritä ","headingMain_button":"sivun lataamista uudelleen.","clearCanvasMessage":"Mikäli sivun lataaminen uudelleen ei auta, yritä ","clearCanvasMessage_button":"tyhjentää piirtoalue.","clearCanvasCaveat":" Tämä johtaa työn menetykseen ","trackedToSentry_pre":"Virhe tunnisteella ","trackedToSentry_post":" tallennettiin järjestelmäämme.","openIssueMessage_pre":"Olimme varovaisia emmekä sisällyttäneet tietoa piirroksestasi virheeseen. Mikäli piirroksesi ei ole yksityinen, harkitsethan kertovasi meille ","openIssueMessage_button":"virheenseurantajärjestelmässämme.","openIssueMessage_post":" Sisällytä alla olevat tiedot kopioimalla ne GitHub-ongelmaan.","sceneContent":"Piirroksen tiedot:"},"roomDialog":{"desc_intro":"Voit kutsua ihmisiä piirrokseesi tekemään yhteistyötä kanssasi.","desc_privacy":"Älä huoli, istunto käyttää päästä-päähän-salausta, joten mitä tahansa piirrätkin, se pysyy salassa. Edes palvelimemme eivät näe mitä keksit.","button_startSession":"Aloita istunto","button_stopSession":"Lopeta istunto","desc_inProgressIntro":"Jaettu istunto on nyt käynnissä.","desc_shareLink":"Jaa tämä linkki kenelle tahansa, jonka kanssa haluat tehdä yhteistyötä:","desc_exitSession":"Istunnon pysäyttäminen katkaisee yhteyden huoneeseen, mutta voit vielä jatkaa työskentelyä paikallisesti. Huomaa, että tämä ei vaikuta muihin käyttäjiin ja he voivat jatkaa oman versionsa parissa työskentelyä.","shareTitle":"Liity Excalidraw live-yhteistyöistuntoon"},"errorDialog":{"title":"Virhe"},"exportDialog":{"disk_title":"Tallenna levylle","disk_details":"Vie työn tiedot tiedostoon, josta sen voi tuoda myöhemmin.","disk_button":"Tallenna tiedostoon","link_title":"Jaettava linkki","link_details":"Vie vain luku -linkkinä.","link_button":"Vie linkkinä","excalidrawplus_description":"Tallenna teos Excalidraw+ tilaan.","excalidrawplus_button":"Vie","excalidrawplus_exportError":"Ei voitu viedä Excalidraw+-palveluun tällä hetkellä..."},"helpDialog":{"blog":"Lue blogiamme","click":"klikkaa","deepSelect":"","deepBoxSelect":"","curvedArrow":"Kaareva nuoli","curvedLine":"Kaareva viiva","documentation":"Käyttöohjeet","doubleClick":"kaksoisnapsautus","drag":"vedä","editor":"Muokkausohjelma","editSelectedShape":"Muokkaa valittua muotoa (teksti/nuoli/viiva)","github":"Löysitkö ongelman? Kerro meille","howto":"Seuraa oppaitamme","or":"tai","preventBinding":"Estä nuolten kiinnitys","shapes":"Muodot","shortcuts":"Pikanäppäimet","textFinish":"Lopeta muokkaus (tekstieditori)","textNewLine":"Lisää uusi rivi (tekstieditori)","title":"Ohjeet","view":"Näkymä","zoomToFit":"Näytä kaikki elementit","zoomToSelection":"Näytä valinta"},"clearCanvasDialog":{"title":"Pyyhi piirtoalue"},"publishDialog":{"title":"Julkaise kirjasto","itemName":"Kohteen nimi","authorName":"Tekijän nimi","githubUsername":"GitHub-käyttäjätunnus","twitterUsername":"Twitter-käyttäjätunnus","libraryName":"Kirjaston nimi","libraryDesc":"Kirjaston kuvaus","website":"Verkkosivu","placeholder":{"authorName":"Nimesi tai käyttäjänimesi","libraryName":"Kirjastosi nimi","libraryDesc":"Kirjaston kuvaus, joka auttaa ihmisiä ymmärtämään sen käyttötarkoitukset","githubHandle":"GitHub-tunnuksesi (valinnainen), jotta voit muokata kirjastoa sen jälkeen kun se on lähetetty tarkastettavaksi","twitterHandle":"Twitter-tunnus (valinnainen), jotta tiedämme ketä kiittää kun viestimme Twitterissä","website":"Linkki henkilökohtaiselle verkkosivustollesi tai muualle (valinnainen)"},"errors":{"required":"Pakollinen","website":"Syötä oikeamuotoinen URL-osoite"},"noteDescription":{"pre":"Lähetä kirjastosi, jotta se voidaan sisällyttää ","link":"julkisessa kirjastolistauksessa","post":"muiden käyttöön omissa piirrustuksissaan."},"noteGuidelines":{"pre":"Kirjasto on ensin hyväksyttävä manuaalisesti. Ole hyvä ja lue ","link":"ohjeet","post":" ennen lähettämistä. Tarvitset GitHub-tilin, jotta voit viestiä ja tehdä muutoksia pyydettäessä, mutta se ei ole ehdottoman välttämätöntä."},"noteLicense":{"pre":"Lähettämällä hyväksyt että kirjasto julkaistaan ","link":"MIT-lisenssin ","post":"alla, mikä lyhyesti antaa muiden käyttää sitä ilman rajoituksia."},"noteItems":"Jokaisella kirjaston kohteella on oltava oma nimensä suodatusta varten. Seuraavat kirjaston kohteet sisältyvät:","atleastOneLibItem":"Valitse vähintään yksi kirjaston kohde aloittaaksesi"},"publishSuccessDialog":{"title":"Kirjasto lähetetty","content":"Kiitos {{authorName}}. Kirjastosi on lähetetty tarkistettavaksi. Voit seurata sen tilaa","link":"täällä"},"confirmDialog":{"resetLibrary":"Tyhjennä kirjasto","removeItemsFromLib":"Poista valitut kohteet kirjastosta"},"encrypted":{"tooltip":"Piirroksesi ovat päästä-päähän-salattuja, joten Excalidrawin palvelimet eivät koskaan näe niitä.","link":"Blogiartikkeli päästä päähän -salauksesta Excalidraw:ssa"},"stats":{"angle":"Kulma","element":"Elementti","elements":"Elementit","height":"Korkeus","scene":"Teos","selected":"Valitut","storage":"Tallennustila","title":"Tilastoja nörteille","total":"Yhteensä","version":"Versio","versionCopy":"Klikkaa kopioidaksesi","versionNotAvailable":"Versio ei saatavilla","width":"Leveys"},"toast":{"addedToLibrary":"Lisätty kirjastoon","copyStyles":"Tyylit kopioitiin.","copyToClipboard":"Kopioitiin leikepöydälle.","copyToClipboardAsPng":"Kopioitiin {{exportSelection}} leikepöydälle PNG:nä\\n({{exportColorScheme}})","fileSaved":"Tiedosto tallennettu.","fileSavedToFilename":"Tallennettiin kohteeseen {filename}","canvas":"piirtoalue","selection":"valinta"},"colors":{"495057":"Harmaa 7","ffffff":"Valkoinen","f8f9fa":"Harmaa 0","f1f3f5":"Harmaa 1","fff5f5":"Punainen 0","fff0f6":"Pinkki 0","f8f0fc":"Rypäle 0","f3f0ff":"Violetti 0","edf2ff":"Indigo 0","e7f5ff":"Sininen 0","e3fafc":"Syaani 0","e6fcf5":"Sinivihreä 0","ebfbee":"Vihreä 0","f4fce3":"Limenvihreä 0","fff9db":"Keltainen 0","fff4e6":"Oranssi 0","transparent":"Läpinäkyvä","ced4da":"Harmaa 4","868e96":"Harmaa 6","fa5252":"Punainen 6","e64980":"Pinkki 6","be4bdb":"Rypäle 6","7950f2":"Violetti 6","4c6ef5":"Indigo 6","228be6":"Sininen 6","15aabf":"Syaani 6","12b886":"Sinivihreä 6","40c057":"Vihreä 6","82c91e":"Limenvihreä 6","fab005":"Keltainen 6","fd7e14":"Oranssi 6","000000":"Musta","343a40":"Harmaa 8","c92a2a":"Punainen 9","a61e4d":"Pinkki 9","862e9c":"Rypäle 9","5f3dc4":"Violetti 9","364fc7":"Indigo 9","1864ab":"Sininen 9","0b7285":"Syaani 9","087f5b":"Sinivihreä 9","2b8a3e":"Vihreä 9","5c940d":"Limenvihreä 9","e67700":"Keltainen 9","d9480f":"Oranssi 9"}}')},7830:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Coller","pasteCharts":"Coller les graphiques","selectAll":"Tout sélectionner","multiSelect":"Ajouter l\'élément à la sélection","moveCanvas":"Déplacer le canevas","cut":"Couper","copy":"Copier","copyAsPng":"Copier dans le presse-papier en PNG","copyAsSvg":"Copier dans le presse-papier en SVG","bringForward":"Envoyer vers l\'avant","sendToBack":"Mettre en arrière-plan","bringToFront":"Mettre au premier plan","sendBackward":"Envoyer vers l\'arrière","delete":"Supprimer","copyStyles":"Copier les styles","pasteStyles":"Coller les styles","stroke":"Trait","background":"Arrière-plan","fill":"Remplissage","strokeWidth":"Largeur du trait","strokeStyle":"Style du trait","strokeStyle_solid":"Plein","strokeStyle_dashed":"Tirets","strokeStyle_dotted":"Pointillé","sloppiness":"Style de tracé","opacity":"Opacité","textAlign":"Alignement du texte","edges":"Angles","sharp":"Pointus","round":"Arrondis","arrowheads":"Extrémités de flèche","arrowhead_none":"Aucune","arrowhead_arrow":"Flèche","arrowhead_bar":"Barre","arrowhead_dot":"Point","arrowhead_triangle":"Triangle","fontSize":"Taille de la police","fontFamily":"Police","onlySelected":"Uniquement la sélection","withBackground":"Arrière-plan","exportEmbedScene":"Intégrer la scène","exportEmbedScene_details":"Les données de scène seront enregistrées dans le fichier PNG/SVG exporté, afin que la scène puisse être restaurée à partir de celui-ci.\\nCela augmentera la taille du fichier exporté.","addWatermark":"Ajouter \\"Fait avec Excalidraw\\"","handDrawn":"Manuscrit","normal":"Normale","code":"Code","small":"Petit","medium":"Moyen","large":"Grand","veryLarge":"Très grand","solid":"Solide","hachure":"Hachure","crossHatch":"Hachure croisée","thin":"Fin","bold":"Épais","left":"Gauche","center":"Centre","right":"Droite","extraBold":"Très épais","architect":"Architecte","artist":"Artiste","cartoonist":"Caricaturiste","fileTitle":"Nom du fichier","colorPicker":"Sélecteur de couleur","canvasBackground":"Arrière-plan du canevas","drawingCanvas":"Zone de dessin","layers":"Calques","actions":"Actions","language":"Langue","liveCollaboration":"Collaboration en direct","duplicateSelection":"Dupliquer","untitled":"Sans-titre","name":"Nom","yourName":"Votre nom","madeWithExcalidraw":"Fait avec Excalidraw","group":"Grouper la sélection","ungroup":"Dégrouper la sélection","collaborators":"Collaborateurs","showGrid":"Afficher la grille","addToLibrary":"Ajouter à la bibliothèque","removeFromLibrary":"Supprimer de la bibliothèque","libraryLoadingMessage":"Chargement de la bibliothèque…","libraries":"Parcourir les bibliothèques","loadingScene":"Chargement de la scène…","align":"Aligner","alignTop":"Aligner en haut","alignBottom":"Aligner en bas","alignLeft":"Aligner à gauche","alignRight":"Aligner à droite","centerVertically":"Centrer verticalement","centerHorizontally":"Centrer horizontalement","distributeHorizontally":"Distribuer horizontalement","distributeVertically":"Distribuer verticalement","flipHorizontal":"Retourner horizontalement","flipVertical":"Retourner verticalement","viewMode":"Mode présentation","toggleExportColorScheme":"Activer/Désactiver l\'export du thème de couleur","share":"Partager","showStroke":"Afficher le sélecteur de couleur de trait","showBackground":"Afficher le sélecteur de couleur d\'arrière-plan","toggleTheme":"Changer le thème","personalLib":"Bibliothèque personnelle","excalidrawLib":"Bibliothèque Excalidraw","decreaseFontSize":"Réduire la taille de police","increaseFontSize":"Augmenter la taille de police","unbindText":"Délier le texte","link":{"edit":"Modifier le lien","create":"Créer un lien","label":"Lien"}},"buttons":{"clearReset":"Réinitialiser le canevas","exportJSON":"Exporter comme fichier","exportImage":"Enregistrer comme image","export":"Exporter","exportToPng":"Enregistrer en PNG","exportToSvg":"Enregistrer en SVG","copyToClipboard":"Copier dans le presse-papier","copyPngToClipboard":"Copier le PNG dans le presse-papier","scale":"Échelle","save":"Enregistrer dans le fichier actuel","saveAs":"Enregistrer sous","load":"Ouvrir","getShareableLink":"Obtenir un lien de partage","close":"Fermer","selectLanguage":"Choisir une langue","scrollBackToContent":"Revenir au contenu","zoomIn":"Zoomer","zoomOut":"Dézoomer","resetZoom":"Réinitialiser le zoom","menu":"Menu","done":"Terminé","edit":"Modifier","undo":"Annuler","redo":"Rétablir","resetLibrary":"Réinitialiser la bibliothèque","createNewRoom":"Créer une nouvelle salle","fullScreen":"Plein écran","darkMode":"Mode sombre","lightMode":"Mode clair","zenMode":"Mode zen","exitZenMode":"Quitter le mode zen","cancel":"Annuler","clear":"Effacer","remove":"Supprimer","publishLibrary":"Publier","submit":"Envoyer","confirm":"Confirmer"},"alerts":{"clearReset":"L\'intégralité du canevas va être effacée. Êtes-vous sûr ?","couldNotCreateShareableLink":"Impossible de créer un lien de partage.","couldNotCreateShareableLinkTooBig":"Impossible de créer un lien partageable : la scène est trop volumineuse","couldNotLoadInvalidFile":"Impossible de charger un fichier invalide","importBackendFailed":"L\'importation depuis le backend a échoué.","cannotExportEmptyCanvas":"Impossible d\'exporter un canevas vide.","couldNotCopyToClipboard":"Impossible de copier dans le presse-papier. Essayez d\'utiliser le navigateur Chrome.","decryptFailed":"Les données n\'ont pas pu être déchiffrées.","uploadedSecurly":"Le téléchargement a été sécurisé avec un chiffrement de bout en bout, ce qui signifie que ni Excalidraw ni personne d\'autre ne peut en lire le contenu.","loadSceneOverridePrompt":"Le chargement d\'un dessin externe remplacera votre contenu actuel. Souhaitez-vous continuer ?","collabStopOverridePrompt":"Arrêter la session écrasera votre précédent dessin stocké localement. Êtes-vous sûr·e ?\\n\\n(Si vous voulez garder votre dessin local, fermez simplement l\'onglet du navigateur à la place.)","errorLoadingLibrary":"Une erreur s\'est produite lors du chargement de la bibliothèque tierce.","errorAddingToLibrary":"Impossible d\'ajouter l\'élément à la bibliothèque","errorRemovingFromLibrary":"Impossible de retirer l\'élément de la bibliothèque","confirmAddLibrary":"Cela va ajouter {{numShapes}} forme(s) à votre bibliothèque. Êtes-vous sûr·e ?","imageDoesNotContainScene":"Cette image ne semble pas contenir de données de scène. Avez-vous activé l\'intégration de scène lors de l\'exportation ?","cannotRestoreFromImage":"Impossible de restaurer la scène depuis ce fichier image","invalidSceneUrl":"Impossible d\'importer la scène depuis l\'URL fournie. Elle est soit incorrecte, soit ne contient pas de données JSON Excalidraw valides.","resetLibrary":"Cela va effacer votre bibliothèque. Êtes-vous sûr·e ?","removeItemsFromsLibrary":"Supprimer {{count}} élément(s) de la bibliothèque ?","invalidEncryptionKey":"La clé de chiffrement doit comporter 22 caractères. La collaboration en direct est désactivée."},"errors":{"unsupportedFileType":"Type de fichier non supporté.","imageInsertError":"Impossible d\'insérer l\'image. Réessayez plus tard...","fileTooBig":"Le fichier est trop volumineux. La taille maximale autorisée est de {{maxSize}}.","svgImageInsertError":"Impossible d\'insérer l\'image SVG. Le balisage SVG semble invalide.","invalidSVGString":"SVG invalide."},"toolBar":{"selection":"Sélection","image":"Insérer une image","rectangle":"Rectangle","diamond":"Losange","ellipse":"Ellipse","arrow":"Flèche","line":"Ligne","freedraw":"Dessiner","text":"Texte","library":"Bibliothèque","lock":"Garder l\'outil sélectionné actif après le dessin","penMode":"Empêcher le zoom tactile et accepter la saisie libre uniquement à partir du stylet","link":"Ajouter/mettre à jour le lien pour une forme sélectionnée"},"headings":{"canvasActions":"Actions du canevas","selectedShapeActions":"Actions pour la forme sélectionnée","shapes":"Formes"},"hints":{"canvasPanning":"Pour déplacer la zone de dessin, maintenez la molette de la souris enfoncée ou la barre d\'espace tout en faisant glisser","linearElement":"Cliquez pour démarrer plusieurs points, faites glisser pour une seule ligne","freeDraw":"Cliquez et faites glissez, relâchez quand vous avez terminé","text":"Astuce : vous pouvez aussi ajouter du texte en double-cliquant n\'importe où avec l\'outil de sélection","text_selected":"Double-cliquez ou appuyez sur ENTRÉE pour modifier le texte","text_editing":"Appuyez sur ÉCHAP ou Ctrl/Cmd+ENTRÉE pour terminer l\'édition","linearElementMulti":"Cliquez sur le dernier point ou appuyez sur Échap ou Entrée pour terminer","lockAngle":"Vous pouvez restreindre l\'angle en maintenant MAJ","resize":"Vous pouvez conserver les proportions en maintenant la touche MAJ pendant le redimensionnement,\\nmaintenez la touche ALT pour redimensionner par rapport au centre","resizeImage":"Vous pouvez redimensionner librement en maintenant SHIFT,\\nmaintenez ALT pour redimensionner depuis le centre","rotate":"Vous pouvez restreindre les angles en maintenant MAJ pendant la rotation","lineEditor_info":"Double-cliquez ou appuyez sur Entrée pour éditer les points","lineEditor_pointSelected":"Appuyer sur Suppr. pour supprimer des points, Ctrl ou Cmd+D pour dupliquer, ou faire glisser pour déplacer","lineEditor_nothingSelected":"Sélectionner un point pour éditer (maintenir la touche MAJ pour en sélectionner plusieurs),\\nou maintenir la touche Alt enfoncée et cliquer pour ajouter de nouveaux points","placeImage":"Cliquez pour placer l\'image, ou cliquez et faites glisser pour définir sa taille manuellement","publishLibrary":"Publier votre propre bibliothèque","bindTextToElement":"Appuyer sur Entrée pour ajouter du texte","deepBoxSelect":"Maintenir CtrlOuCmd pour sélectionner dans les groupes, et empêcher le déplacement"},"canvasError":{"cannotShowPreview":"Impossible d’afficher l’aperçu","canvasTooBig":"Le canevas est peut-être trop grand.","canvasTooBigTip":"Astuce : essayez de rapprocher un peu les éléments les plus éloignés."},"errorSplash":{"headingMain_pre":"Une erreur est survenue. Essayez ","headingMain_button":"de recharger la page.","clearCanvasMessage":"Si le rechargement ne résout pas l\'erreur, essayez ","clearCanvasMessage_button":"effacement du canevas.","clearCanvasCaveat":" Cela entraînera une perte du travail ","trackedToSentry_pre":"L\'erreur avec l\'identifiant ","trackedToSentry_post":" a été enregistrée dans notre système.","openIssueMessage_pre":"Nous avons fait très attention à ne pas inclure les informations de votre scène dans l\'erreur. Si votre scène n\'est pas privée, veuillez envisager de poursuivre sur notre ","openIssueMessage_button":"outil de suivi des bugs.","openIssueMessage_post":" Veuillez inclure les informations ci-dessous en les copiant-collant dans le ticket GitHub.","sceneContent":"Contenu de la scène :"},"roomDialog":{"desc_intro":"Vous pouvez inviter des personnes à collaborer avec vous sur votre scène actuelle.","desc_privacy":"Pas d\'inquiétude, la session utilise le chiffrement de bout en bout, donc tout ce que vous dessinez restera privé. Même notre serveur ne pourra voir ce que vous faites.","button_startSession":"Démarrer la session","button_stopSession":"Arrêter la session","desc_inProgressIntro":"La session de collaboration en direct est maintenant en cours.","desc_shareLink":"Partagez ce lien avec les personnes avec lesquelles vous souhaitez collaborer :","desc_exitSession":"Arrêter la session vous déconnectera de la salle, mais vous pourrez continuer à travailler avec la scène, localement. Notez que cela n\'affectera pas les autres personnes, et ils pourront toujours collaborer sur leur version.","shareTitle":"Rejoindre une session de collaboration en direct sur Excalidraw"},"errorDialog":{"title":"Erreur"},"exportDialog":{"disk_title":"Enregistrer sur le disque","disk_details":"Exporter les données de la scène comme un fichier que vous pourrez importer ultérieurement.","disk_button":"Enregistrer comme fichier","link_title":"Lien partageable","link_details":"Exporter comme un lien en lecture seule.","link_button":"Exporter comme lien","excalidrawplus_description":"Enregistrer la scène dans votre espace de travail Excalidraw+.","excalidrawplus_button":"Exporter","excalidrawplus_exportError":"Impossible d\'exporter vers Excalidraw+ pour le moment..."},"helpDialog":{"blog":"Lire notre blog","click":"clic","deepSelect":"Sélection dans les groupes","deepBoxSelect":"Sélectionner dans les groupes, et empêcher le déplacement","curvedArrow":"Flèche courbée","curvedLine":"Ligne courbée","documentation":"Documentation","doubleClick":"double-clic","drag":"glisser","editor":"Éditeur","editSelectedShape":"Modifier la forme sélectionnée (texte/flèche/ligne)","github":"Problème trouvé ? Soumettre","howto":"Suivez nos guides","or":"ou","preventBinding":"Empêcher la liaison de flèche","shapes":"Formes","shortcuts":"Raccourcis clavier","textFinish":"Terminer l\'édition (éditeur de texte)","textNewLine":"Ajouter une nouvelle ligne (éditeur de texte)","title":"Aide","view":"Affichage","zoomToFit":"Zoomer pour voir tous les éléments","zoomToSelection":"Zoomer sur la sélection"},"clearCanvasDialog":{"title":"Effacer la zone de dessin"},"publishDialog":{"title":"Publier la bibliothèque","itemName":"Nom de l’élément","authorName":"Nom de l\'auteur","githubUsername":"Nom d\'utilisateur GitHub","twitterUsername":"Nom d\'utilisateur Twitter","libraryName":"Nom de la bibliothèque","libraryDesc":"Description de la bibliothèque","website":"Site web","placeholder":{"authorName":"Votre nom ou nom d\'utilisateur","libraryName":"Nom de votre bibliothèque","libraryDesc":"Description de votre bibliothèque pour aider les gens à comprendre son usage","githubHandle":"Nom d\'utilisateur GitHub (optionnel), pour que tu puisses modifier la bibliothèque une fois soumise pour vérification","twitterHandle":"Nom d\'utilisateur Twitter (optionnel), pour savoir qui créditer lors de la promotion sur Twitter","website":"Lien vers votre site web personnel ou autre (optionnel)"},"errors":{"required":"Requis","website":"Entrer une URL valide"},"noteDescription":{"pre":"Soumets ta bibliothèque pour l\'inclure au ","link":"dépôt de bibliothèque publique","post":"pour permettre son utilisation par autrui dans leurs dessins."},"noteGuidelines":{"pre":"La bibliothèque doit d\'abord être approuvée manuellement. Veuillez lire les ","link":"lignes directrices","post":" avant de la soumettre. Vous aurez besoin d\'un compte GitHub pour communiquer et apporter des modifications si demandé, mais ce n\'est pas obligatoire."},"noteLicense":{"pre":"En soumettant, vous acceptez que la bibliothèque soit publiée sous la ","link":"Licence MIT, ","post":"ce qui en gros signifie que tout le monde peut l\'utiliser sans restrictions."},"noteItems":"Chaque élément de la bibliothèque doit avoir son propre nom afin qu\'il soit filtrable. Les éléments de bibliothèque suivants seront inclus :","atleastOneLibItem":"Veuillez sélectionner au moins un élément de bibliothèque pour commencer"},"publishSuccessDialog":{"title":"Bibliothèque soumise","content":"Merci {{authorName}}. Votre bibliothèque a été soumise pour examen. Vous pouvez suivre le statut","link":"ici"},"confirmDialog":{"resetLibrary":"Réinitialiser la bibliothèque","removeItemsFromLib":"Enlever les éléments sélectionnés de la bibliothèque"},"encrypted":{"tooltip":"Vos dessins sont chiffrés de bout en bout, les serveurs d\'Excalidraw ne les verront jamais.","link":"Article de blog sur le chiffrement de bout en bout dans Excalidraw"},"stats":{"angle":"Angle","element":"Élément","elements":"Éléments","height":"Hauteur","scene":"Scène","selected":"Sélection","storage":"Stockage","title":"Stats pour les nerds","total":"Total","version":"Version","versionCopy":"Cliquer pour copier","versionNotAvailable":"Version non disponible","width":"Largeur"},"toast":{"addedToLibrary":"Ajouté à la bibliothèque","copyStyles":"Styles copiés.","copyToClipboard":"Copié dans le presse-papier.","copyToClipboardAsPng":"{{exportSelection}} copié dans le presse-papier en PNG\\n({{exportColorScheme}})","fileSaved":"Fichier enregistré.","fileSavedToFilename":"Enregistré sous {filename}","canvas":"canevas","selection":"sélection"},"colors":{"495057":"Gris 7","ffffff":"Blanc","f8f9fa":"Gris 0","f1f3f5":"Gris 1","fff5f5":"Rouge 0","fff0f6":"Rose 0","f8f0fc":"Mauve 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Bleu 0","e3fafc":"Cyan 0","e6fcf5":"Turquoise 0","ebfbee":"Vert 0","f4fce3":"Citron vert 0","fff9db":"Jaune 0","fff4e6":"Orange 0","transparent":"Transparent","ced4da":"Gris 4","868e96":"Gris 6","fa5252":"Rouge 6","e64980":"Rose 6","be4bdb":"Mauve 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Bleu 6","15aabf":"Cyan 6","12b886":"Turquoise 6","40c057":"Vert 6","82c91e":"Citron vert 6","fab005":"Jaune 6","fd7e14":"Orange 6","000000":"Noir","343a40":"Gris 8","c92a2a":"Rouge 9","a61e4d":"Rose 9","862e9c":"Mauve 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Bleu 9","0b7285":"Cyan 9","087f5b":"Turquoise 9","2b8a3e":"Vert 9","5c940d":"Citron vert 9","e67700":"Jaune 9","d9480f":"Orange 9"}}')},1994:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"הדבק","pasteCharts":"הדבק גרפים","selectAll":"בחר הכל","multiSelect":"הוסף אובייקט לבחירה","moveCanvas":"הזז את הקנבס","cut":"חתוך","copy":"העתק","copyAsPng":"העתק ללוח כ PNG","copyAsSvg":"העתק ללוח כ SVG","bringForward":"הבא שכבה קדימה","sendToBack":"העבר לסוף","bringToFront":"העבר לחזית","sendBackward":"העבר שכבה אחורה","delete":"מחק","copyStyles":"העתק סגנון","pasteStyles":"הדבק סגנון","stroke":"קו מתאר","background":"רקע","fill":"מילוי","strokeWidth":"עובי קו מתאר","strokeStyle":"סגנון קו המתאר","strokeStyle_solid":"מלא","strokeStyle_dashed":"מקווקו","strokeStyle_dotted":"מנוקד","sloppiness":"סגנון","opacity":"אטימות","textAlign":"יישור טקסט","edges":"קצוות","sharp":"חד","round":"עגול","arrowheads":"ראשי חצים","arrowhead_none":"ללא","arrowhead_arrow":"חץ","arrowhead_bar":"שורה","arrowhead_dot":"נקודה","arrowhead_triangle":"","fontSize":"גודל גופן","fontFamily":"סוג הגופן","onlySelected":"רק מה שנבחר","withBackground":"רקע","exportEmbedScene":"הטמעה של מידע הסצנה","exportEmbedScene_details":"מידע התצוגה יישמר לקובץ המיוצא מסוג PNG/SVG כך שיהיה ניתן לשחזרה ממנו.\\nהפעולה תגדיל את גודל הקובץ המיוצא.","addWatermark":"הוסף \\"נוצר באמצעות Excalidraw\\"","handDrawn":"כתב יד","normal":"רגיל","code":"קוד","small":"קטן","medium":"בנוני","large":"גדול","veryLarge":"ענק","solid":"מוצק","hachure":"קווים משופעים","crossHatch":"קווים מוצלבים","thin":"דק","bold":"מודגש","left":"שמאל","center":"מרכז","right":"ימין","extraBold":"עבה","architect":"ארכיטקט","artist":"אמן","cartoonist":"קריקטוריסט","fileTitle":"שם קובץ","colorPicker":"בחירת צבע","canvasBackground":"רקע הלוח","drawingCanvas":"לוח ציור","layers":"שכבות","actions":"פעולות","language":"שפה","liveCollaboration":"התחל שיתוף חי","duplicateSelection":"שכפל","untitled":"ללא כותרת","name":"שם","yourName":"שם","madeWithExcalidraw":"נוצר באמצעות Excalidraw","group":"אחד לקבוצה","ungroup":"פרק קבוצה","collaborators":"שותפים","showGrid":"הצג רשת","addToLibrary":"הוסף לספריה","removeFromLibrary":"הסר מספריה","libraryLoadingMessage":"טוען ספריה…","libraries":"דפדף בספריות","loadingScene":"טוען תצוגה…","align":"יישר","alignTop":"יישר למעלה","alignBottom":"יישר למטה","alignLeft":"יישר לשמאל","alignRight":"יישר לימין","centerVertically":"מרכז אנכית","centerHorizontally":"מרכז אופקית","distributeHorizontally":"חלוקה אופקית","distributeVertically":"חלוקה אנכית","flipHorizontal":"סובב אופקית","flipVertical":"סובב אנכית","viewMode":"מצב תצוגה","toggleExportColorScheme":"שנה את ערכת צבעי הייצוא","share":"שתף","showStroke":"הצג צבעי קו מתאר","showBackground":"הצג צבעי רקע","toggleTheme":"שינוי ערכת העיצוב","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"אפס את הלוח","exportJSON":"ייצא לקובץ","exportImage":"שמירה כתמונה","export":"ייצא","exportToPng":"יצא ל PNG","exportToSvg":"יצא ל SVG","copyToClipboard":"העתק ללוח","copyPngToClipboard":"העתק PNG ללוח","scale":"קנה מידה","save":"שמירת קובץ נוכחי","saveAs":"שמירה בשם","load":"טען","getShareableLink":"קבל קישור לשיתוף","close":"סגור","selectLanguage":"בחר שפה","scrollBackToContent":"גלול בחזרה לתוכן","zoomIn":"הגדל","zoomOut":"הקטן","resetZoom":"איפוס זום","menu":"תפריט","done":"בוצע","edit":"ערוך","undo":"בטל","redo":"בצע מחדש","resetLibrary":"איפוס ספריה","createNewRoom":"צור חדר","fullScreen":"מסך מלא","darkMode":"מצב כהה","lightMode":"מצב בהיר","zenMode":"מצב זן","exitZenMode":"צא ממצב תפריט מרחף","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"פעולה זו תנקה את כל הלוח. אתה בטוח?","couldNotCreateShareableLink":"לא ניתן לייצר לינק לשיתוף.","couldNotCreateShareableLinkTooBig":"לא הצלחנו לייצר קישור לשיתוף: התצוגה גדולה מדי","couldNotLoadInvalidFile":"לא ניתן לטעון קובץ שאיננו תואם","importBackendFailed":"ייבוא מהשרת נכשל.","cannotExportEmptyCanvas":"לא ניתן לייצא לוח ריק.","couldNotCopyToClipboard":"לא ניתן להעתיק ללוח. נסה להשתמש בדפדפן Chrome.","decryptFailed":"לא ניתן לפענח מידע.","uploadedSecurly":"ההעלאה הוצפנה מקצה לקצה, ולכן שרת Excalidraw וצד שלישי לא יכולים לקרוא את התוכן.","loadSceneOverridePrompt":"טעינה של ציור חיצוני תחליף את התוכן הקיים שלך. האם תרצה להמשיך?","collabStopOverridePrompt":"עצירת השיתוף תוביל למחיקת התרשימים השמורים בדפדפן. האם את/ה בטוח/ה?\\n(אם תרצה לשמור את התרשימים הקיימים, תוכל לסגור את הדפדפן מבלי לסיים את השיתוף.)","errorLoadingLibrary":"קרתה שגיאה בטעינת הספריה החיצונית.","errorAddingToLibrary":"לא ניתן להוסיף פריט לספרייה","errorRemovingFromLibrary":"לא ניתן למחוק פריט מהספריה","confirmAddLibrary":"הפעולה תוסיף {{numShapes}} צורה(ות) לספריה שלך. האם אתה בטוח?","imageDoesNotContainScene":"","cannotRestoreFromImage":"לא הצלחנו לשחזר את התצוגה מקובץ התמונה","invalidSceneUrl":"ייבוא המידע מן סצינה מכתובת האינטרנט נכשלה. המידע בנוי באופן משובש או שהוא אינו קובץ JSON תקין של Excalidraw.","resetLibrary":"פעולה זו תנקה את כל הלוח. אתה בטוח?","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"בחירה","image":"","rectangle":"מרובע","diamond":"מעוין","ellipse":"אליפסה","arrow":"חץ","line":"קו","freedraw":"צייר","text":"טקסט","library":"ספריה","lock":"השאר את הכלי הנבחר פעיל גם לאחר סיום הציור","penMode":"","link":""},"headings":{"canvasActions":"פעולות הלוח","selectedShapeActions":"פעולות צורה שנבחרה","shapes":"צורות"},"hints":{"canvasPanning":"","linearElement":"הקלק בשביל לבחור נקודות מרובות, גרור בשביל קו בודד","freeDraw":"לחץ וגרור, שחרר כשסיימת","text":"טיפ: אפשר להוסיף טקסט על ידי לחיצה כפולה בכל מקום עם כלי הבחירה","text_selected":"לחץ לחיצה כפולה או אנטר לעריכת הנקודות","text_editing":"כדי לסיים את העריכה לחצו על מקש Escape או על Ctrl ומקש Enter (Cmd במחשבי אפל)","linearElementMulti":"הקלק על הנקודה האחרונה או הקש Escape או Enter לסיום","lockAngle":"אתה יכול להגביל זווית ע״י לחיצה על SHIFT","resize":"ניתן להגביל פרופורציות על ידי לחיצה על SHIFT תוך כדי שינוי גודל,\\nהחזק ALT בשביל לשנות גודל ביחס למרכז","resizeImage":"","rotate":"ניתן להגביל זוויות על ידי לחיצה על SHIFT תוך כדי סיבוב","lineEditor_info":"לחץ לחיצה כפולה או אנטר לעריכת הנקודות","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"לא הצלחנו להציג את התצוגה המקדימה","canvasTooBig":"הקנבס עלול להיות גדול מדי.","canvasTooBigTip":"טיפ: נסה להזיז את האלמנטים הרחוקים ביותר מעט קרוב יותר יחד."},"errorSplash":{"headingMain_pre":"אירעה שגיאה. נסה ","headingMain_button":"טוען את העמוד מחדש.","clearCanvasMessage":"אם טעינה מחדש לא עובדת, נסה ","clearCanvasMessage_button":"מנקה את הלוח.","clearCanvasCaveat":" זה יביא לאובדן עבודה ","trackedToSentry_pre":"שגיאה עם מזהה ","trackedToSentry_post":" נמצאה במערכת שלנו.","openIssueMessage_pre":"נזהרנו מאוד שלא לכלול מידע שלך בשגיאה. אם המידע איננו אישי, בבקשה עקוב אחר ","openIssueMessage_button":"מעקב באגים.","openIssueMessage_post":" בבקשה כלול את המידע למטה באמצעות העתקה והדבקה בנושא ב GitHub.","sceneContent":"תוכן הלוח:"},"roomDialog":{"desc_intro":"אתה יכול להזמין אנשים ללוח הנוכחי שלך בכדי לשתף פעולה.","desc_privacy":"אל דאגה, השיתוף מוצפן מקצה לקצה, כך שכל מה שתצייר ישאר פרטי. אפילו השרתים שלנו לא יוכלו לראות את מה שאתה ממציא.","button_startSession":"התחל שיתוף","button_stopSession":"הפסק שיתוף","desc_inProgressIntro":"שיתוף חי כרגע בפעולה.","desc_shareLink":"שתף את הקישור עם כל מי שאתה מעוניין לעבוד אתו:","desc_exitSession":"עצירת השיתוף תנתק אותך מהחדר, אבל עדיין תוכל להמשיך לעבוד על הלוח, מקומית. שים לב שזה לא ישפיע על אנשים אחרים, והם עדיין יוכלו לשתף פעולה עם הגירסה שלהם.","shareTitle":"הצטרף לסשן שיתוף בזמן אמת של Excalidraw"},"errorDialog":{"title":"שגיאה"},"exportDialog":{"disk_title":"שמור לכונן","disk_details":"ייצוא מידע הסצינה לקובץ אותו ניתן יהיה לייבא בהמשך.","disk_button":"שמירה לקובץ","link_title":"העתקת קישור לשיתוף","link_details":"ייצוא כקישור לקריאה בלבד.","link_button":"ייצוא כקישור","excalidrawplus_description":"שמור את המפה לסביבת העבודה שלך ב-Excalidraw+.","excalidrawplus_button":"ייצוא","excalidrawplus_exportError":"הייצוא ל-Excalidraw+ לא הצליח לעת עתה..."},"helpDialog":{"blog":"קרא את הבלוג שלנו","click":"קליק","deepSelect":"","deepBoxSelect":"","curvedArrow":"חץ מעוגל","curvedLine":"קו מעוגל","documentation":"תיעוד","doubleClick":"לחיצה כפולה","drag":"לגרור","editor":"עורך","editSelectedShape":"ערוך את הצורה הנבחרת (טקסט/חץ/קו)","github":"מצאת בעיה? דווח","howto":"עקוב אחר המדריכים שלנו","or":"או","preventBinding":"למנוע נעיצת חיצים","shapes":"צורות","shortcuts":"קיצורי מקלדת","textFinish":"סיים עריכה (טקסט)","textNewLine":"הוסף שורה חדשה (טקסט)","title":"עזרה","view":"תצוגה","zoomToFit":"גלילה להצגת כל האלמנטים במסך","zoomToSelection":"התמקד בבחירה"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"הרישומים שלך מוצפנים מקצה לקצה כך שהשרתים של Excalidraw לא יראו אותם לעולם.","link":"פוסט בבלוג על הצפנה מקצה לקצב ב-Excalidraw"},"stats":{"angle":"זווית","element":"אלמנט","elements":"אלמנטים","height":"גובה","scene":"תצוגה","selected":"נבחר/ים","storage":"אחסון","title":"סטטיסטיקות לחנונים","total":"סה״כ","version":"גרסה","versionCopy":"לחץ להעתקה","versionNotAvailable":"הגרסה אינה זמינה","width":"רוחב"},"toast":{"addedToLibrary":"","copyStyles":"העתק סגנונות.","copyToClipboard":"הועתק אל הלוח.","copyToClipboardAsPng":"{{exportSelection}} הועתקה ללוח כ-PNG\\n({{exportColorScheme}})","fileSaved":"קובץ נשמר.","fileSavedToFilename":"נשמר לקובץ {filename}","canvas":"משטח ציור","selection":"בחירה"},"colors":{"495057":"אפור 7","ffffff":"לבן","f8f9fa":"אפור 0","f1f3f5":"אפור 1","fff5f5":"אדום 0","fff0f6":"ורוד 0","f8f0fc":"ענבים 0","f3f0ff":"סגול 0","edf2ff":"כחול כהה 0","e7f5ff":"כחול 0","e3fafc":"טורקיז 0","e6fcf5":"ירקרק 0","ebfbee":"ירוק 0","f4fce3":"ליים 0","fff9db":"צהוב","fff4e6":"כתום 0","transparent":"שקוף","ced4da":"אפור 4","868e96":"אפור 6","fa5252":"אדום 6","e64980":"ורוד 6","be4bdb":"ענבים 6","7950f2":"סגול 6","4c6ef5":"כחול כהה 6","228be6":"כחול 6","15aabf":"טורקיז 6","12b886":"ירקרק 6","40c057":"ירוק 6","82c91e":"ליים 6","fab005":"צהוב 6","fd7e14":"כתום 6","000000":"שחור","343a40":"אפור 8","c92a2a":"אדום 9","a61e4d":"ורוד 9","862e9c":"ענבים 9","5f3dc4":"סגול 9","364fc7":"כחול כהה 9","1864ab":"כחול 9","0b7285":"טורקיז 9","087f5b":"ירקרק 9","2b8a3e":"ירוק 9","5c940d":"ליים 9","e67700":"ירוק 9","d9480f":"כתום 9"}}')},4646:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"चिपकाएँ","pasteCharts":"चार्ट चिपकाएँ","selectAll":"सभी चुनें","multiSelect":"आकार को चयन में जोड़ें","moveCanvas":"कैनवास को स्थानांतरित करें","cut":"काटें","copy":"प्रतिलिपि","copyAsPng":"क्लिपबोर्ड पर कॉपी करें ,पीएनजी के रूप में","copyAsSvg":"क्लिपबोर्ड पर कॉपी करें,एसवीजी के रूप में","bringForward":"सामने लाएं","sendToBack":"पीछे भेजें","bringToFront":"सामने लाएँ","sendBackward":"पीचे भीजे","delete":"मिटाए","copyStyles":"कॉपी स्टाइल","pasteStyles":"स्टाइल पेस्ट करें","stroke":"रेखा","background":"पृष्ठभूमि","fill":"भरें","strokeWidth":"रेखा की चौड़ाई","strokeStyle":"स्ट्रोक का आकार","strokeStyle_solid":"ठोस","strokeStyle_dashed":"डैश","strokeStyle_dotted":"बिंदीदार","sloppiness":"बेढ़ंगापन","opacity":"अपारदर्शिता","textAlign":"टेक्स्ट संरेखन","edges":"किनारा","sharp":"नुकीला","round":"गोल","arrowheads":"तीर शीर्ष","arrowhead_none":"कोई भी नहीं","arrowhead_arrow":"तीर","arrowhead_bar":"बार","arrowhead_dot":"बिंदु","arrowhead_triangle":"","fontSize":"फ़ॉन्ट का आकार","fontFamily":"फ़ॉन्ट का परिवार","onlySelected":"केवल चयनित","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"निर्यात एम्बेड दृश्य विवरण","addWatermark":"ऐड \\"मेड विथ एक्सकैलिडराव\\"","handDrawn":"हाथ से बनाया हुआ","normal":"साधारण","code":"कोड","small":"छोटा","medium":"मध्यम","large":"बड़ा","veryLarge":"बहुत बड़ा","solid":"दृढ़","hachure":"हाचुरे","crossHatch":"क्रॉस हैच","thin":"पतला","bold":"मोटा","left":"बाएं","center":"मध्य","right":"दाएँ","extraBold":"बहुत मोटा","architect":"वास्तुकार","artist":"कलाकार","cartoonist":"व्यंग्य चित्रकार","fileTitle":"फ़ाइल का नाम","colorPicker":"रंग चयन","canvasBackground":"कैनवास बैकग्राउंड","drawingCanvas":"कैनवास बना रहे हैं","layers":"परतें","actions":"कार्रवाई","language":"भाषा","liveCollaboration":"","duplicateSelection":"डुप्लिकेट","untitled":"अशीर्षित","name":"नाम","yourName":"आपका नाम","madeWithExcalidraw":"मेड विथ एक्सकैलिडराव","group":"समूह चयन","ungroup":"समूह चयन असमूहीकृत करें","collaborators":"सहयोगी","showGrid":"","addToLibrary":"लाइब्रेरी से जोड़ें","removeFromLibrary":"लाइब्रेरी से निकालें","libraryLoadingMessage":"लाइब्रेरी खुल रही है","libraries":"लाइब्रेरी ब्राउज़ करें","loadingScene":"दृश्य खुल रहा है","align":"संरेखित करें","alignTop":"ऊपर संरेखित करें","alignBottom":"नीचे संरेखित करें","alignLeft":"बायें संरेखित करें","alignRight":"दायें संरेखित करें","centerVertically":"लंबवत केन्द्रित","centerHorizontally":"क्षैतिज केन्द्रित","distributeHorizontally":"क्षैतिज रूप से वितरित करें","distributeVertically":"खड़ी रूप से वितरित करें","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"कैनवास रीसेट करें","exportJSON":"","exportImage":"","export":"निर्यात","exportToPng":"पीएनजी के रूप में निर्यात करे","exportToSvg":"Svg के रूप में निर्यात करे","copyToClipboard":"क्लिपबोर्ड पर प्रतिलिपि बनाएँ","copyPngToClipboard":"क्लिपबोर्ड पर कॉपी करें,पीएनजी के रूप में","scale":"पैमाना","save":"","saveAs":"सेव करे इस तरह","load":"लोड करें","getShareableLink":"साझा करने योग्य लिंक प्राप्त करें","close":"बंद करें","selectLanguage":"भाषा चुनें","scrollBackToContent":"सामग्री पर वापस स्क्रॉल करें","zoomIn":"बड़ा करें","zoomOut":"छोटा करें","resetZoom":"ज़ूम रीसेट करें","menu":"मेन्यू","done":"समाप्त","edit":"संशोधन करें","undo":"पूर्ववत् करें","redo":"फिर से करें","resetLibrary":"","createNewRoom":"एक नया कमरा बनाएं","fullScreen":"पूरी स्क्रीन","darkMode":"डार्क मोड","lightMode":"लाइट मोड","zenMode":"ज़ेन मोड","exitZenMode":"जेन मोड से बाहर निकलें","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"इससे पूरा कैनवास साफ हो जाएगा। क्या आपको यकीन है?","couldNotCreateShareableLink":"साझा करने योग्य लिंक नहीं बनाया जा सका।","couldNotCreateShareableLinkTooBig":"लिंक शेयर नहीं कर सकता: दृश्य बहुत बड़ा","couldNotLoadInvalidFile":"अमान्य फ़ाइल लोड नहीं की जा सकी","importBackendFailed":"बैकएंड से आयात करना विफल रहा।","cannotExportEmptyCanvas":"खाली कैनवास निर्यात नहीं कर सकता।","couldNotCopyToClipboard":"क्लिपबोर्ड पर कॉपी नहीं किया जा सका। Chrome ब्राउज़र का उपयोग करने का प्रयास करें।","decryptFailed":"डेटा को डिक्रिप्ट नहीं किया जा सका।","uploadedSecurly":"अपलोड को एंड-टू-एंड एन्क्रिप्शन के साथ सुरक्षित किया गया है, जिसका मतलब है कि एक्सक्लूसिव सर्वर और थर्ड पार्टी कंटेंट नहीं पढ़ सकते हैं।","loadSceneOverridePrompt":"लोड हो रहा है बाहरी ड्राइंग आपके मौजूदा सामग्री को बदल देगा। क्या आप जारी रखना चाहते हैं?","collabStopOverridePrompt":"","errorLoadingLibrary":"लाइब्रेरी लोड करने में त्रुटि","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"लाइब्रेरी जोड़ें पुष्‍टि करें आकार संख्या","imageDoesNotContainScene":"","cannotRestoreFromImage":"छवि फ़ाइल बहाल दृश्य नहीं है","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"चयन","image":"","rectangle":"आयात","diamond":"तिर्यग्वर्ग","ellipse":"दीर्घवृत्त","arrow":"तीर","line":"रेखा","freedraw":"","text":"पाठ","library":"लाइब्रेरी","lock":"ड्राइंग के बाद चयनित टूल को सक्रिय रखें","penMode":"","link":""},"headings":{"canvasActions":"कैनवास क्रिया","selectedShapeActions":"चयनित आकृति क्रियाएं","shapes":"आकृतियाँ"},"hints":{"canvasPanning":"","linearElement":"कई बिंदुओं को शुरू करने के लिए क्लिक करें, सिंगल लाइन के लिए खींचें","freeDraw":"क्लिक करें और खींचें। समाप्त करने के लिए, छोड़ो","text":"आप चयन टूल से कहीं भी डबल-क्लिक करके टेक्स्ट जोड़ सकते हैं","text_selected":"","text_editing":"","linearElementMulti":"अंतिम बिंदु पर क्लिक करें या समाप्त होने के लिए एस्केप या एंटर दबाएं","lockAngle":"आप घूर्णन करते समय SHIFT पकड़कर कोणों को मोड़ सकते हैं","resize":"आकार बदलते समय आप SHIFT को पकड़ कर अनुपात में कमी कर सकते हैं,\\nकेंद्र से आकार बदलने के लिए ALT दबाए रखें","resizeImage":"","rotate":"आप घूर्णन करते समय SHIFT पकड़कर कोणों को विवश कर सकते हैं","lineEditor_info":"बिंदुओं को संपादित करने के लिए Enter पर डबल-क्लिक करें या दबाएँ","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"पूर्वावलोकन नहीं दिखा सकते हैं","canvasTooBig":"कैनवास बहुत बड़ा","canvasTooBigTip":"कैनवास बहुत बड़ा टिप"},"errorSplash":{"headingMain_pre":"एक त्रुटि का सामना करना पड़ा। प्रयत्न ","headingMain_button":"इस पृष्ठ को पुनः लोड करें","clearCanvasMessage":"यदि पुनः लोड करना काम नहीं करता है, तो प्रयास करें ","clearCanvasMessage_button":"कैनवास साफ करना।","clearCanvasCaveat":" इससे काम का नुकसान होगा ","trackedToSentry_pre":"पहचानकर्ता के साथ त्रुटि ","trackedToSentry_post":" हमारे सिस्टम पर नज़र रखी गई थी।","openIssueMessage_pre":"हम बहुत सतर्क थे कि त्रुटि पर आपकी दृश्य जानकारी शामिल न करें। यदि आपका दृश्य निजी नहीं है, तो कृपया हमारे बारे में विचार करें ","openIssueMessage_button":"बग ट्रैकर","openIssueMessage_post":" कृपया GitHub मुद्दे को कॉपी और पेस्ट करके नीचे दी गई जानकारी शामिल करें।","sceneContent":"दृश्य सामग्री:"},"roomDialog":{"desc_intro":"आप अपने वर्तमान दृश्य के लोगों को अपने साथ सहयोग करने के लिए आमंत्रित कर सकते हैं।","desc_privacy":"चिंता न करें, सत्र अंत-से-अंत एन्क्रिप्शन का उपयोग करता है, इसलिए आप जो भी ड्रा करेंगे वह निजी रहेगा। यहां तक कि हमारा सर्वर भी नहीं देख पाएगा कि आप क्या कर रहे हैं।","button_startSession":"सत्र प्रारंभ करें","button_stopSession":"सत्र रुकें","desc_inProgressIntro":"लाइव सहयोग सत्र अब जारी है।","desc_shareLink":"इस लिंक को आप जिस किसी के साथ भी सहयोग करना चाहते हैं, उसके साथ साझा करें","desc_exitSession":"सत्र रोकना आपको रूम से बाहर कर देगा, लेकिन आप स्थानीय स्तर पर दृश्य के साथ काम करना जारी रख पाएंगे। ध्यान दें कि यह अन्य लोगों को प्रभावित नहीं करेगा, और वे अभी भी अपने संस्करण पर सहयोग करने में सक्षम होंगे।","shareTitle":""},"errorDialog":{"title":"गलती"},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"हमारा ब्लॉग पढे","click":"क्लिक करें","deepSelect":"","deepBoxSelect":"","curvedArrow":"वक्र तीर","curvedLine":"वक्र रेखा","documentation":"","doubleClick":"","drag":"खींचें","editor":"संपादक","editSelectedShape":"","github":"मुद्दा मिला? प्रस्तुत करें","howto":"हमारे गाइड का पालन करें","or":"या","preventBinding":"तीर बंधन रोकें","shapes":"आकृतियाँ","shortcuts":"कीबोर्ड के शॉर्टकट्स","textFinish":"","textNewLine":"","title":"मदद","view":"दृश्य","zoomToFit":"सभी तत्वों को फिट करने के लिए ज़ूम करें","zoomToSelection":"चयन तक ज़ूम करे"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"आपके चित्र अंत-से-अंत एन्क्रिप्टेड हैं, इसलिए एक्सक्लूसिव्रॉव के सर्वर उन्हें कभी नहीं देखेंगे।","link":""},"stats":{"angle":"कोण","element":"एलिमेंट","elements":"एलिमेंट","height":"ऊंचाई","scene":"दृश्य","selected":"चयनित","storage":"संग्रह","title":"बेवकूफ के लिए आँकड़े","total":"कुल","version":"संस्करण","versionCopy":"काॅपी करने के लिए क्लिक करें","versionNotAvailable":"संस्करण उपलब्ध नहीं है","width":"चौड़ाई"},"toast":{"addedToLibrary":"","copyStyles":"काॅपी कीए स्टाइल","copyToClipboard":"क्लिपबोर्ड में कॉपी कीए","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},6373:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Beillesztés","pasteCharts":"Grafikon beillesztése","selectAll":"Összes kijelölése","multiSelect":"Elem hozzáadása a kijelöléshez","moveCanvas":"Vászon mozgatása","cut":"Kivágás","copy":"Másolás","copyAsPng":"Vágólapra másolás mint PNG","copyAsSvg":"Vágólapra másolás mint SVG","bringForward":"Előrébb hozás","sendToBack":"Hátraküldés","bringToFront":"Előrehozás","sendBackward":"Hátrébb küldés","delete":"Törlés","copyStyles":"Stílus másolása","pasteStyles":"Stílus beillesztése","stroke":"Körvonal","background":"Háttér","fill":"Kitöltés","strokeWidth":"Körvonal vastagsága","strokeStyle":"Körvonal stílusa","strokeStyle_solid":"Kitöltött","strokeStyle_dashed":"Szaggatott","strokeStyle_dotted":"Pontozott","sloppiness":"Stílus","opacity":"Áttetszőség","textAlign":"Szöveg igazítása","edges":"Szélek","sharp":"Éles","round":"Kerek","arrowheads":"Nyílhegyek","arrowhead_none":"Nincs","arrowhead_arrow":"Nyíl","arrowhead_bar":"Oszlop","arrowhead_dot":"Pont","arrowhead_triangle":"","fontSize":"Betűméret","fontFamily":"Betűkészlet család","onlySelected":"Csak a kijelölt","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"A jelenetet leíró adatok hozzá lesznek adva a PNG/SVG fájlhoz, így a jelenetet vissza lehet majd tölteni belőle. Ez megnöveli a fájl méretét.","addWatermark":"Add hozzá, hogy \\"Excalidraw-val készült\\"","handDrawn":"Kézzel rajzolt","normal":"Normál","code":"Kód","small":"Kicsi","medium":"Közepes","large":"Nagy","veryLarge":"Nagyon nagy","solid":"Kitöltött","hachure":"Vonalkázott","crossHatch":"Keresztcsíkozott","thin":"Vékony","bold":"Félkövér","left":"Bal","center":"Közép","right":"Jobb","extraBold":"Extra Félkövér","architect":"Tervezői","artist":"Művészi","cartoonist":"Karikatúrás","fileTitle":"","colorPicker":"Színválasztó","canvasBackground":"Vászon háttérszíne","drawingCanvas":"Rajzvászon","layers":"Rétegek","actions":"Műveletek","language":"Nyelv","liveCollaboration":"","duplicateSelection":"Duplikálás","untitled":"Névtelen","name":"Név","yourName":"Neved","madeWithExcalidraw":"Excalidraw-val készült","group":"Csoportosítás","ungroup":"Csoportbontás","collaborators":"Közreműködők","showGrid":"","addToLibrary":"Hozzáadás a könyvtárhoz","removeFromLibrary":"Eltávólítás a könyvtárból","libraryLoadingMessage":"Könyvtár betöltése…","libraries":"Könyvtárak böngészése","loadingScene":"Jelenet betöltése…","align":"Igazítás","alignTop":"Felülre igazítás","alignBottom":"Alulra igazítás","alignLeft":"Balra igazítás","alignRight":"Jobbra igazítás","centerVertically":"Függőlegesen középre igazított","centerHorizontally":"Vízszintesen középre igazított","distributeHorizontally":"Vízszintes elosztás","distributeVertically":"Függőleges elosztás","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Vászon törlése","exportJSON":"","exportImage":"","export":"Exportálás","exportToPng":"Exportálás PNG-be","exportToSvg":"Exportálás SVG-be","copyToClipboard":"Vágólapra másolás","copyPngToClipboard":"PNG másolása a vágólapra","scale":"Nagyítás","save":"","saveAs":"Mentés másként","load":"Betöltés","getShareableLink":"Megosztható link létrehozása","close":"Bezárás","selectLanguage":"Nyelv kiválasztása","scrollBackToContent":"Visszagörgetés a tartalomhoz","zoomIn":"Nagyítás","zoomOut":"Kicsinyítés","resetZoom":"Nagyítás alaphelyzetbe","menu":"Menü","done":"Kész","edit":"Szerkesztés","undo":"Vissza","redo":"Újra","resetLibrary":"","createNewRoom":"Új szoba létrehozása","fullScreen":"Teljes képernyő","darkMode":"Sötét mód","lightMode":"Világos mód","zenMode":"Letisztult mód","exitZenMode":"Kilépés a letisztult módból","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"Ez a művelet törli a vászont. Biztos benne?","couldNotCreateShareableLink":"Nem sikerült megosztható linket létrehozni.","couldNotCreateShareableLinkTooBig":"Nem sikerült megosztható linket látrehozni: túl nagy a jelenet","couldNotLoadInvalidFile":"Nem sikerült betölteni a helytelen fájlt","importBackendFailed":"Nem sikerült betölteni a szerverről.","cannotExportEmptyCanvas":"Üres vászont nem lehet exportálni.","couldNotCopyToClipboard":"Nem sikerült vágólapra menteni. Próbáld meg Chrome böngészővel.","decryptFailed":"Nem sikerült visszafejteni a titkosított adatot.","uploadedSecurly":"A feltöltést végpontok közötti titkosítással biztosítottuk, ami azt jelenti, hogy egy harmadik fél nem tudja megnézni a tartalmát, beleértve az Excalidraw szervereit is.","loadSceneOverridePrompt":"A betöltött külső rajz felül fogja írnia meglévőt. Szeretnéd folytatni?","collabStopOverridePrompt":"","errorLoadingLibrary":"Hibába ütközött a harmarmadik féltől származó könyvtár betöltése.","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"Ez a művelet {{numShapes}} formát fog hozzáadni a könyvtáradhoz. Biztos vagy benne?","imageDoesNotContainScene":"","cannotRestoreFromImage":"A jelenet visszaállítása nem sikerült ebből a kép fájlból","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"Kijelölés","image":"","rectangle":"Téglalap","diamond":"Rombusz","ellipse":"Ellipszis","arrow":"Nyíl","line":"Vonal","freedraw":"","text":"Szöveg","library":"Könyvtár","lock":"Rajzolás után az aktív eszközt tartsa kijelölve","penMode":"","link":""},"headings":{"canvasActions":"Vászon műveletek","selectedShapeActions":"Kijelölt forma műveletei","shapes":"Alakzatok"},"hints":{"canvasPanning":"","linearElement":"Kattintással görbe, az eger húzásával pedig egyenes nyilat rajzolhatsz","freeDraw":"Kattints és húzd, majd engedd el, amikor végeztél","text":"Tipp: A kijelölés eszközzel a dupla kattintás új szöveget hoz létre","text_selected":"","text_editing":"","linearElementMulti":"Kattints a következő ív pozíciójára, vagy fejezd be a nyilat az Escape vagy Enter megnyomásával","lockAngle":"A SHIFT billentyű lenyomva tartásával korlátozhatja forgatás szögét","resize":"A SHIFT billentyű lenyomva tartásával az átméretezés megtartja az arányokat,\\naz ALT lenyomva tartásával pedig a középpont egy helyben marad","resizeImage":"","rotate":"A SHIFT billentyű lenyomva tartásával korlátozhatja a szögek illesztését","lineEditor_info":"Kattints duplán, vagy nyomj entert a pontok szerkesztéséhez","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Előnézet nem jeleníthető meg","canvasTooBig":"A vászon talán túl nagy.","canvasTooBigTip":"Tipp: próbáld meg a legtávolabbi elemeket közelebb hozni egy máshoz."},"errorSplash":{"headingMain_pre":"Hiba történt. Próbáld ","headingMain_button":"újratölteni az oldalt.","clearCanvasMessage":"Ha az újratöltés nem működik, próbáld ","clearCanvasMessage_button":"letörölni a vászont.","clearCanvasCaveat":" Ezzel az eddigi munka elveszik ","trackedToSentry_pre":"A hibakód azonosítóval ","trackedToSentry_post":" nyomon van követve a rendszerünkben.","openIssueMessage_pre":"Vigyáztunk arra, hogy a jelenthez tartozó információ ne jelenjen meg a hibaüzenetben. Ha a jeleneted nem bizalmas, kérjük add hozzá a ","openIssueMessage_button":"hibakövető rendszerünkhöz.","openIssueMessage_post":" Kérjük, másolja be az alábbi információkat a GitHub problémába.","sceneContent":"Jelenet tartalma:"},"roomDialog":{"desc_intro":"Meghívhat embereket a jelenlegi jelenetbe, hogy együttműködjenek önnel.","desc_privacy":"Ne aggódj, a munkamenet végpontok közötti titkosítást használ, tehát bármit rajzolsz, privát marad. Még a szerverünkről se lehet belenézni.","button_startSession":"Munkamenet indítása","button_stopSession":"Munkamenet leállítása","desc_inProgressIntro":"Az élő együttműködési munkamenet folyamatban van.","desc_shareLink":"Ossza meg ezt a linket bárkivel, akivel együtt szeretne működni:","desc_exitSession":"Az munkamenet leállítása kilépteti önt a szobából, de folytathatja a munkát a saját gépén. Vegye figyelembe, hogy ez nem érinti más emberek munkáját és ők továbbra is együttműködhetnek a saját változatukon.","shareTitle":""},"errorDialog":{"title":"Hiba"},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"A rajzaidat végpontok közötti titkosítással tároljuk, tehát az Excalidraw szervereiről se tud más belenézni.","link":""},"stats":{"angle":"Szög","element":"Elem","elements":"Elemek","height":"Magasság","scene":"Jelenet","selected":"Kijelölt","storage":"Tárhely","title":"Statisztikák","total":"Összesen","version":"","versionCopy":"","versionNotAvailable":"","width":"Szélesség"},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},3247:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Tempel","pasteCharts":"Tempel diagram","selectAll":"Pilih semua","multiSelect":"Tambahkan elemen ke pilihan","moveCanvas":"Pindahkan kanvas","cut":"Potong","copy":"Salin","copyAsPng":"Salin ke papan klip sebagai PNG","copyAsSvg":"Salin ke papan klip sebagai SVG","bringForward":"Bawa maju","sendToBack":"Kirim ke belakang","bringToFront":"Bawa ke depan","sendBackward":"Kirim mundur","delete":"Hapus","copyStyles":"Salin gaya","pasteStyles":"Tempelkan gaya","stroke":"Guratan","background":"Latar","fill":"Isian","strokeWidth":"Lebar guratan","strokeStyle":"Gaya guratan","strokeStyle_solid":"Padat","strokeStyle_dashed":"Putus-putus","strokeStyle_dotted":"Titik-titik","sloppiness":"Kecerobohan","opacity":"Keburaman","textAlign":"Perataan teks","edges":"Tepi","sharp":"Tajam","round":"Bulat","arrowheads":"Mata panah","arrowhead_none":"Tidak ada","arrowhead_arrow":"Panah","arrowhead_bar":"Batang","arrowhead_dot":"Titik","arrowhead_triangle":"Segitiga","fontSize":"Ukuran font","fontFamily":"Jenis font","onlySelected":"Hanya yang Dipilih","withBackground":"Latar","exportEmbedScene":"Sematkan pemandangan","exportEmbedScene_details":"Data pemandangan akan disimpan dalam file PNG/SVG yang diekspor, sehingga pemandangan itu dapat dipulihkan darinya.\\nAkan membesarkan ukuran file yang diekspor.","addWatermark":"Tambahkan \\"Dibuat dengan Excalidraw\\"","handDrawn":"Tulisan tangan","normal":"Normal","code":"Kode","small":"Kecil","medium":"Sedang","large":"Besar","veryLarge":"Sangat besar","solid":"Padat","hachure":"Garis-garis","crossHatch":"Asiran silang","thin":"Lembut","bold":"Tebal","left":"Kiri","center":"Tengah","right":"Kanan","extraBold":"Sangat tebal","architect":"Arsitek","artist":"Artis","cartoonist":"Kartunis","fileTitle":"Nama file","colorPicker":"Pilihan Warna","canvasBackground":"Latar Kanvas","drawingCanvas":"Kanvas","layers":"Lapisan","actions":"Aksi","language":"Bahasa","liveCollaboration":"Kolaborasi langsung","duplicateSelection":"Duplikat","untitled":"Tanpa judul","name":"Nama","yourName":"Nama Anda","madeWithExcalidraw":"Dibuat dengan Excalidraw","group":"Kelompokan pilihan","ungroup":"Pisahkan pilihan","collaborators":"Kolaborator","showGrid":"Tampilkan grid","addToLibrary":"Tambahkan ke pustaka","removeFromLibrary":"Hapus dari pustaka","libraryLoadingMessage":"Memuat pustaka…","libraries":"Telusur pustaka","loadingScene":"Memuat pemandangan…","align":"Perataan","alignTop":"Rata atas","alignBottom":"Rata bawah","alignLeft":"Rata kiri","alignRight":"Rata kanan","centerVertically":"Pusatkan secara vertikal","centerHorizontally":"Pusatkan secara horizontal","distributeHorizontally":"Distribusikan horizontal","distributeVertically":"Distribusikan vertikal","flipHorizontal":"Balikkan horizontal","flipVertical":"Balikkan vertikal","viewMode":"Mode tampilan","toggleExportColorScheme":"Ubah skema warna ekspor","share":"Bagikan","showStroke":"Tampilkan garis pengambil warna","showBackground":"Tampilkan latar pengambil warna","toggleTheme":"Ubah tema","personalLib":"Pustaka Pribadi","excalidrawLib":"Pustaka Excalidraw","decreaseFontSize":"Kecilkan ukuran font","increaseFontSize":"Besarkan ukuran font","unbindText":"Lepas teks","link":{"edit":"Edit tautan","create":"Buat tautan","label":"Tautan"}},"buttons":{"clearReset":"Setel Ulang Kanvas","exportJSON":"Ekspor ke file","exportImage":"Simpan gambar","export":"Ekspor","exportToPng":"Ekspor ke PNG","exportToSvg":"Ekspor ke SVG","copyToClipboard":"Salin ke Papan Klip","copyPngToClipboard":"Salin PNG ke papan klip","scale":"Skala","save":"Simpan ke file sekarang","saveAs":"Simpan sebagai","load":"Muat","getShareableLink":"Buat Tautan yang Bisa Dibagian","close":"Tutup","selectLanguage":"Pilih bahasa","scrollBackToContent":"Gulir kembali ke konten","zoomIn":"Besarkan","zoomOut":"Kecilkan","resetZoom":"Reset Pembesaran","menu":"Menu","done":"Selesai","edit":"Edit","undo":"Urungkan","redo":"Ulangi","resetLibrary":"Reset pustaka","createNewRoom":"Buat ruang baru","fullScreen":"Layar penuh","darkMode":"Mode gelap","lightMode":"Mode terang","zenMode":"Mode zen","exitZenMode":"Keluar dari mode zen","cancel":"Batal","clear":"Hapus","remove":"Hapus","publishLibrary":"Terbitkan","submit":"Kirimkan","confirm":"Konfirmasi"},"alerts":{"clearReset":"Ini akan menghapus semua yang ada dikanvas. Apakah kamu yakin ?","couldNotCreateShareableLink":"Tidak bisa membuat tautan yang bisa dibagikan","couldNotCreateShareableLinkTooBig":"Tidak dapat membuat tautan yang dapat dibagikan: pemandangan terlalu besar","couldNotLoadInvalidFile":"Tidak dapat memuat berkas yang tidak valid","importBackendFailed":"Gagal mengimpor dari backend","cannotExportEmptyCanvas":"Tidak bisa mengekspor kanvas kosong","couldNotCopyToClipboard":"Tidak bisa menyalin ke papan klip. Coba gunakan Browser Chrome","decryptFailed":"Tidak dapat mengdekripsi data.","uploadedSecurly":"Pengunggahan ini telah diamankan menggunakan enkripsi end-to-end, artinya server Excalidraw dan pihak ketiga tidak data membaca nya","loadSceneOverridePrompt":"Memuat gambar external akan mengganti konten Anda yang ada. Apakah Anda ingin melanjutkan?","collabStopOverridePrompt":"Menghentikan sesi akan menimpa gambar Anda yang tersimpan secara lokal. Anda yakin?\\n\\n(Jika Anda ingin menyimpan gambar lokal Anda, gantinya cukup tutup tab browser.)","errorLoadingLibrary":"Terdapat kesalahan dalam memuat pustaka pihak ketiga.","errorAddingToLibrary":"Tidak dapat menambahkan item ke pustaka","errorRemovingFromLibrary":"Tidak dapat membuang item dari pustaka","confirmAddLibrary":"Ini akan menambahkan {{numShapes}} bentuk ke pustaka Anda. Anda yakin?","imageDoesNotContainScene":"Gambar ini sepertinya tidak terdapat data pemandangan. Sudahkah Anda mengaktifkan penyematan pemandangan ketika ekspor?","cannotRestoreFromImage":"Pemandangan tidak dapat dipulihkan dari file gambar ini","invalidSceneUrl":"Tidak dapat impor pemandangan dari URL. Kemungkinan URL itu rusak atau tidak berisi data JSON Excalidraw yang valid.","resetLibrary":"Ini akan menghapus pustaka Anda. Anda yakin?","removeItemsFromsLibrary":"Hapus {{count}} item dari pustaka?","invalidEncryptionKey":"Sandi enkripsi harus 22 karakter. Kolaborasi langsung dinonaktifkan."},"errors":{"unsupportedFileType":"Tipe file tidak didukung.","imageInsertError":"Tidak dapat menyisipkan gambar. Coba lagi nanti...","fileTooBig":"File terlalu besar. Ukuran maksimum yang dibolehkan {{maxSize}}.","svgImageInsertError":"Tidak dapat menyisipkan gambar SVG. Markup SVG sepertinya tidak valid.","invalidSVGString":"SVG tidak valid."},"toolBar":{"selection":"Pilihan","image":"Sisipkan gambar","rectangle":"Persegi","diamond":"Berlian","ellipse":"Elips","arrow":"Panah","line":"Garis","freedraw":"Gambar","text":"Teks","library":"Pustaka","lock":"Biarkan alat yang dipilih aktif setelah menggambar","penMode":"Cegah jepit perbesar dan terima hanya input freedraw dari pena","link":"Tambah/Perbarui tautan untuk bentuk yang dipilih"},"headings":{"canvasActions":"Opsi Kanvas","selectedShapeActions":"Opsi bentuk yang dipilih","shapes":"Bentuk"},"hints":{"canvasPanning":"Untuk memindahkan kanvas, tekan roda mouse atau spasi ketika menarik","linearElement":"Klik untuk memulai banyak poin, seret untuk satu baris","freeDraw":"Klik dan seret, lepaskan jika Anda selesai","text":"Tip: Anda juga dapat menambahkan teks dengan klik ganda di mana saja dengan alat pemilihan","text_selected":"Klik ganda atau tekan ENTER untuk edit teks","text_editing":"Tekan Escape atau CtrlAtauCmd+ENTER untuk selesai mengedit","linearElementMulti":"Klik pada titik akhir atau tekan Escape atau Enter untuk menyelesaikan","lockAngle":"Anda dapat menjaga sudut dengan menahan SHIFT","resize":"Anda dapat menjaga proposi dengan menekan SHIFT sambil mengubah ukuran,\\ntekan AlT untuk mengubah ukuran dari tengah","resizeImage":"Anda dapat mengubah secara bebas dengan menekan SHIFT,\\nTekan ALT untuk mengubah dari tengah","rotate":"Anda dapat menjaga sudut dengan menahan SHIFT sambil memutar","lineEditor_info":"Klik ganda atau tekan Enter untuk mengedit titik","lineEditor_pointSelected":"Tekan Delete untuk menghapus titik, Ctrl/Cmd + D untuk menduplikasi, atau seret untuk memindahkan","lineEditor_nothingSelected":"Pilih titik untuk mengedit (tekan SHIFT untuk pilih banyak), atau tekan Alt dan klik untuk tambahkan titik baru","placeImage":"Klik untuk tempatkan gambar, atau klik dan jatuhkan untuk tetapkan ukuran secara manual","publishLibrary":"Terbitkan pustaka Anda","bindTextToElement":"Tekan enter untuk tambahkan teks","deepBoxSelect":"Tekan Ctrl atau Cmd untuk memilih yang di dalam, dan mencegah penggeseran"},"canvasError":{"cannotShowPreview":"Tidak dapat menampilkan pratinjau","canvasTooBig":"Kanvas mungkin terlalu besar.","canvasTooBigTip":"Tip: coba pindahkan elemen-terjauh lebih dekat bersama."},"errorSplash":{"headingMain_pre":"Mengalami sebuah kesalahan. Cobalah ","headingMain_button":"muat ulang halaman.","clearCanvasMessage":"Jika memuat ulang tidak bekerja, cobalah ","clearCanvasMessage_button":"bersihkan canvas.","clearCanvasCaveat":" Ini akan menghasilkan hilangnya pekerjaan ","trackedToSentry_pre":"Kesalahan dengan pengidentifikasi ","trackedToSentry_post":" dilacak di sistem kami.","openIssueMessage_pre":"Kami sangat berhati-hati untuk tidak menyertakan informasi pemandangan Anda pada kesalahan. Jika pemandangan Anda tidak bersifat pribadi, mohon pertimbangkan menindak lanjut pada ","openIssueMessage_button":"pelacak bug.","openIssueMessage_post":" Mohon sertakan informasi dibawah ini dengan menyalin dan menempelkan di Github issue.","sceneContent":"Pemandangan konten:"},"roomDialog":{"desc_intro":"Anda dapat mengundang orang ke pemandangan Anda saat ini untuk berkolaborasi dengan Anda.","desc_privacy":"Jangan khawatir, sesi menggunakan enkripsi end-to-end, sehingga apa pun yang Anda gambar akan tetap bersifat pribadi. Bahkan server kami tidak dapat melihat apa yang Anda lakukan.","button_startSession":"Mulai sesi","button_stopSession":"Hentikan sesi","desc_inProgressIntro":"Sesi kolaborasi sedang berlangsung sekarang.","desc_shareLink":"Bagikan tautan ini dengan siapa pun yang Anda inginkan untuk kolaborasi bersama:","desc_exitSession":"Menghentikan sesi akan memutuskan hubungan Anda dari ruangan, tetapi Anda dapat melanjutkan bekerja dengan pemandangan Anda secara lokal. Perhatikan bahwa ini tidak memengaruhi orang lain, dan mereka masih dapat berkolaborasi pada versi mereka.","shareTitle":"Gabung sesi kolaborasi langsung di Excalidraw"},"errorDialog":{"title":"Kesalahan"},"exportDialog":{"disk_title":"Simpan ke disk","disk_details":"Ekspor data pemandangan ke file yang mana Anda dapat impor nanti.","disk_button":"Simpan ke file","link_title":"Tautan","link_details":"Ekspor sebagai tautan yang hanya dibaca.","link_button":"Ekspor ke tautan","excalidrawplus_description":"Simpan pemandangan ke ruang kerja Excalidraw+ Anda.","excalidrawplus_button":"Ekspor","excalidrawplus_exportError":"Tidak dapat ekspor ke Excalidraw+ saat ini..."},"helpDialog":{"blog":"Baca blog kami","click":"klik","deepSelect":"Pilih dalam","deepBoxSelect":"Pilih dalam kotak, dan cegah penggeseran","curvedArrow":"Panah lengkung","curvedLine":"Garis lengkung","documentation":"Dokumentasi","doubleClick":"klik-ganda","drag":"seret","editor":"Editor","editSelectedShape":"Edit bentuk yang dipilih (teks/panah/garis)","github":"Menemukan masalah? Kirimkan","howto":"Ikuti panduan kami","or":"atau","preventBinding":"Cegah pengikatan panah","shapes":"Bentuk","shortcuts":"Pintasan keyboard","textFinish":"Selesai mengedit (editor teks)","textNewLine":"Tambahkan garis baru (editor teks)","title":"Bantuan","view":"Tampilan","zoomToFit":"Perbesar agar sesuai dengan semua elemen","zoomToSelection":"Perbesar ke seleksi"},"clearCanvasDialog":{"title":"Hapus kanvas"},"publishDialog":{"title":"Terbitkan pustaka","itemName":"Nama item","authorName":"Nama pembuat","githubUsername":"Nama pengguna github","twitterUsername":"Nama pengguna Twitter","libraryName":"Nama Pustaka","libraryDesc":"Deskripsi pustaka","website":"Situs Web","placeholder":{"authorName":"Nama atau nama pengguna Anda","libraryName":"Nama dari pustaka Anda","libraryDesc":"Deskripsi pustaka Anda untuk membantu orang mengerti penggunaannya","githubHandle":"Akun GitHub (opsional), jadi Anda dapat mengubah pustaka ketika diserahkan untuk review","twitterHandle":"Nama pengguna Twitter (opsional), jadi kami tahu siapa dipuji ketika mempromosikannya melalui Twitter","website":"Hubungkan ke situs personal Anda atau lainnya (opsional)"},"errors":{"required":"Dibutuhkan","website":"Masukkan URL valid"},"noteDescription":{"pre":"Kirimkan pustaka Anda untuk disertakan di ","link":"repositori pustaka publik","post":"untuk orang lain menggunakannya dalam gambar mereka."},"noteGuidelines":{"pre":"Pustaka butuh disetujui secara manual terlebih dahulu. Baca ","link":"pedoman","post":" sebelum mengirim. Anda butuh akun GitHub untuk berkomunikasi dan membuat perubahan jika dibutuhkan, tetapi tidak wajib dibutukan."},"noteLicense":{"pre":"Dengan mengkirimkannya, Anda setuju pustaka akan diterbitkan dibawah ","link":"Lisensi MIT, ","post":"yang artinya siapa pun dapat menggunakannya tanpa batasan."},"noteItems":"Setiap item pustaka harus memiliki nama, sehingga bisa disortir. Item pustaka di bawah ini akan dimasukan:","atleastOneLibItem":"Pilih setidaknya satu item pustaka untuk mulai"},"publishSuccessDialog":{"title":"Pustaka telah dikirm","content":"Terima kasih {{authorName}}. pustaka Anda telah diserahkan untuk ditinjau ulang. Anda dapat cek statusnya","link":"di sini"},"confirmDialog":{"resetLibrary":"Reset pustaka","removeItemsFromLib":"Hapus item yang dipilih dari pustaka"},"encrypted":{"tooltip":"Gambar anda terenkripsi end-to-end sehingga server Excalidraw tidak akan pernah dapat melihatnya.","link":"Pos blog tentang enkripsi ujung ke ujung di Excalidraw"},"stats":{"angle":"Sudut","element":"Elemen","elements":"Elemen","height":"Tinggi","scene":"Pemandangan","selected":"Terpilih","storage":"Penyimpanan","title":"Statistik untuk nerd","total":"Total","version":"Versi","versionCopy":"Klik untuk salin","versionNotAvailable":"Versi tidak tersedia","width":"Lebar"},"toast":{"addedToLibrary":"Tambahkan ke pustaka","copyStyles":"Gaya tersalin.","copyToClipboard":"Tersalin ke papan klip.","copyToClipboardAsPng":"Tersalin {{exportSelection}} ke clipboard sebagai PNG\\n({{exportColorScheme}})","fileSaved":"File tersimpan.","fileSavedToFilename":"Disimpan ke {filename}","canvas":"kanvas","selection":"pilihan"},"colors":{"495057":"Abu-abu 7","ffffff":"Putih","f8f9fa":"Abu-abu 0","f1f3f5":"Abu-abu 1","fff5f5":"Merah 0","fff0f6":"Merah muda 0","f8f0fc":"Ungu 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Biru 0","e3fafc":"Cyan 0","e6fcf5":"Teal 0","ebfbee":"Hijau 0","f4fce3":"Lime 0","fff9db":"Kuning 0","fff4e6":"Jingga 0","transparent":"Transparan","ced4da":"Abu-abu 4","868e96":"Abu-abu 6","fa5252":"Merah 6","e64980":"Merah muda 6","be4bdb":"Ungu 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Biru 6","15aabf":"Cyan 6","12b886":"Teal 6","40c057":"Hijau 6","82c91e":"Lime 6","fab005":"Kuning 6","fd7e14":"Jingga 6","000000":"Hitam","343a40":"Abu-abu 8","c92a2a":"Merah 9","a61e4d":"Merah muda 9","862e9c":"Ungu 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Biru 9","0b7285":"Cyan 9","087f5b":"Teal 9","2b8a3e":"Hijau 9","5c940d":"Lime 9","e67700":"Kuning 9","d9480f":"Jingga 9"}}')},3257:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Incolla","pasteCharts":"Incolla grafici","selectAll":"Seleziona tutto","multiSelect":"Aggiungi elemento alla selezione","moveCanvas":"Sposta tela","cut":"Taglia","copy":"Copia","copyAsPng":"Copia negli appunti come PNG","copyAsSvg":"Copia negli appunti come SVG","bringForward":"Porta avanti","sendToBack":"Manda in fondo","bringToFront":"Porta in cima","sendBackward":"Manda dietro","delete":"Elimina","copyStyles":"Copia stili","pasteStyles":"Incolla stili","stroke":"Tratto","background":"Sfondo","fill":"Riempimento","strokeWidth":"Spessore del tratto","strokeStyle":"Stile del tratto","strokeStyle_solid":"Pieno","strokeStyle_dashed":"Tratteggiato","strokeStyle_dotted":"Punteggiato","sloppiness":"Imprecisione","opacity":"Opacità","textAlign":"Allineamento del testo","edges":"Bordi","sharp":"Acuto","round":"Rotondo","arrowheads":"Punta della freccia","arrowhead_none":"Nessuno","arrowhead_arrow":"Freccia","arrowhead_bar":"Barra","arrowhead_dot":"Punto","arrowhead_triangle":"Triangolo","fontSize":"Dimensione carattere","fontFamily":"Carattere","onlySelected":"Solo selezionati","withBackground":"Sfondo","exportEmbedScene":"Includi scena","exportEmbedScene_details":"I dati della scena saranno salvati nel file PNG/SVG esportato in modo che la scena possa essere ripristinata da esso.\\nQuesto aumenterà la dimensione del file esportato.","addWatermark":"Aggiungi \\"Creato con Excalidraw\\"","handDrawn":"A mano libera","normal":"Normale","code":"Codice","small":"Piccolo","medium":"Medio","large":"Grande","veryLarge":"Molto grande","solid":"Pieno","hachure":"Tratteggio obliquo","crossHatch":"Tratteggio incrociato","thin":"Sottile","bold":"Grassetto","left":"Sinistra","center":"Centro","right":"Destra","extraBold":"Extra Grassetto","architect":"Architetto","artist":"Artista","cartoonist":"Fumettista","fileTitle":"Nome del file","colorPicker":"Selettore colore","canvasBackground":"Sfondo tela","drawingCanvas":"Area di disegno","layers":"Livelli","actions":"Azioni","language":"Lingua","liveCollaboration":"Collaborazione live","duplicateSelection":"Duplica","untitled":"Senza titolo","name":"Nome","yourName":"Il vostro nome","madeWithExcalidraw":"Creato con Excalidraw","group":"Crea gruppo da selezione","ungroup":"Dividi gruppo da selezione","collaborators":"Collaboratori","showGrid":"Visualizza griglia","addToLibrary":"Aggiungi alla libreria","removeFromLibrary":"Rimuovi dalla libreria","libraryLoadingMessage":"Caricamento libreria…","libraries":"Sfoglia librerie","loadingScene":"Caricamento della scena…","align":"Allinea","alignTop":"Allinea in alto","alignBottom":"Allinea in basso","alignLeft":"Allinea a sinistra","alignRight":"Allinea a destra","centerVertically":"Centra Verticalmente","centerHorizontally":"Centra orizzontalmente","distributeHorizontally":"Distribuisci orizzontalmente","distributeVertically":"Distribuisci verticalmente","flipHorizontal":"Capovolgi orizzontalmente","flipVertical":"Capovolgi verticalmente","viewMode":"Modalità visualizzazione","toggleExportColorScheme":"Cambia lo schema di colori in esportazione","share":"Condividi","showStroke":"Mostra selettore colore del tratto","showBackground":"Mostra selettore colore di sfondo","toggleTheme":"Cambia tema","personalLib":"Libreria Personale","excalidrawLib":"Libreria di Excalidraw","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Svuota la tela","exportJSON":"Esporta su file","exportImage":"Salva come immagine","export":"Esporta","exportToPng":"Esporta come PNG","exportToSvg":"Esporta come SVG","copyToClipboard":"Copia negli appunti","copyPngToClipboard":"Copia PNG negli appunti","scale":"Scala","save":"Salva sul file corrente","saveAs":"Salva con nome","load":"Carica","getShareableLink":"Ottieni link condivisibile","close":"Chiudi","selectLanguage":"Seleziona lingua","scrollBackToContent":"Scorri indietro fino al contenuto","zoomIn":"Aumenta ingrandimento","zoomOut":"Riduci ingrandimento","resetZoom":"Ripristina ingrandimento","menu":"Menù","done":"Fatto","edit":"Modifica","undo":"Annulla","redo":"Ripeti","resetLibrary":"Ripristina libreria","createNewRoom":"Crea nuova stanza","fullScreen":"Schermo intero","darkMode":"Tema scuro","lightMode":"Tema chiaro","zenMode":"Modalità Zen","exitZenMode":"Uscire dalla modalità zen","cancel":"Annulla","clear":"Cancella","remove":"Rimuovi","publishLibrary":"Pubblica","submit":"Invia","confirm":"Conferma"},"alerts":{"clearReset":"Questa azione cancellerà l\'intera tela. Sei sicuro?","couldNotCreateShareableLink":"Non riesco a creare un link condivisibile.","couldNotCreateShareableLinkTooBig":"Impossibile creare il link condivisibile: la scena è troppo grande","couldNotLoadInvalidFile":"Impossibile caricare un file no valido","importBackendFailed":"Importazione dal server fallita.","cannotExportEmptyCanvas":"Non è possibile esportare una tela vuota.","couldNotCopyToClipboard":"Impossibile copiare negli appunti. Provare usando il browser Chrome.","decryptFailed":"Impossibile decriptare i dati.","uploadedSecurly":"L\'upload è stato protetto con la crittografia end-to-end, il che significa che il server Excalidraw e terze parti non possono leggere il contenuto.","loadSceneOverridePrompt":"Se carichi questo disegno esterno, sostituirà quello che hai. Vuoi continuare?","collabStopOverridePrompt":"Interrompere la sessione sovrascriverà il precedente disegno memorizzato localmente. Sei sicuro?\\n\\n(Se vuoi mantenere il tuo disegno locale, chiudi semplicemente la scheda del browser.)","errorLoadingLibrary":"Si è verificato un errore nel caricamento della libreria di terze parti.","errorAddingToLibrary":"Impossibile aggiungere l\'elemento alla libreria","errorRemovingFromLibrary":"Impossibile rimuovere l\'elemento dalla libreria","confirmAddLibrary":"Questo aggiungerà {{numShapes}} forma(e) alla tua libreria. Sei sicuro?","imageDoesNotContainScene":"Questa immagine pare non contenere alcuna scena. Avevi incluso la scena durante l\'esportazione?","cannotRestoreFromImage":"Impossibile ripristinare la scena da questo file immagine","invalidSceneUrl":"Impossibile importare la scena dall\'URL fornito. Potrebbe essere malformato o non contenere dati JSON Excalidraw validi.","resetLibrary":"Questa azione cancellerà l\'intera libreria. Sei sicuro?","removeItemsFromsLibrary":"Eliminare {{count}} elementi dalla libreria?","invalidEncryptionKey":"La chiave di cifratura deve essere composta da 22 caratteri. La collaborazione live è disabilitata."},"errors":{"unsupportedFileType":"Tipo di file non supportato.","imageInsertError":"Non è stato possibile inserire l\'immagine. Riprova più tardi...","fileTooBig":"Il file è troppo grande. La dimensione massima consentita è {{maxSize}}.","svgImageInsertError":"Impossibile inserire l\'immagine SVG. Il markup SVG non sembra corretto.","invalidSVGString":"SVG non valido."},"toolBar":{"selection":"Selezione","image":"Inserisci immagine","rectangle":"Rettangolo","diamond":"Rombo","ellipse":"Ellisse","arrow":"Freccia","line":"Linea","freedraw":"Disegno","text":"Testo","library":"Libreria","lock":"Mantieni lo strumento selezionato attivo dopo aver disegnato","penMode":"","link":""},"headings":{"canvasActions":"Azioni sulla Tela","selectedShapeActions":"Impostazioni della forma selezionata","shapes":"Forme"},"hints":{"canvasPanning":"Per spostare la tela, tieni premuta la rotella del mouse o la barra spaziatrice mentre la trascini","linearElement":"Clicca per iniziare una linea in più punti, trascina per singola linea","freeDraw":"Clicca e trascina, rilascia quando avrai finito","text":"Suggerimento: puoi anche aggiungere del testo facendo doppio clic ovunque con lo strumento di selezione","text_selected":"Fai doppio click o premi INVIO per modificare il testo","text_editing":"Premi ESC o CtrlOCmd+INVIO per completare le modifiche","linearElementMulti":"Clicca sull\'ultimo punto o premi Esc o Invio per finire","lockAngle":"Puoi limitare l\'angolo tenendo premuto SHIFT","resize":"Per vincolare le proporzioni, tieni premuto MAIUSC durante il ridimensionamento;\\nper ridimensionare dal centro, tieni premuto ALT","resizeImage":"Puoi ridimensionare liberamente tenendo premuto SHIFT,\\ntieni premuto ALT per ridimensionare dal centro","rotate":"Puoi mantenere gli angoli tenendo premuto SHIFT durante la rotazione","lineEditor_info":"Fai doppio click o premi invio per modificare i punti","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Fai click per posizionare l\'immagine, o click e trascina per impostarne la dimensione manualmente","publishLibrary":"Pubblica la tua libreria","bindTextToElement":"Premi invio per aggiungere il testo","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Impossibile visualizzare l\'anteprima","canvasTooBig":"La tela potrebbe essere troppo grande.","canvasTooBigTip":"Suggerimento: prova a spostare gli elementi più lontani più vicini tra loro."},"errorSplash":{"headingMain_pre":"Si è verificato un errore. Provare ","headingMain_button":"ricaricando la pagina.","clearCanvasMessage":"Se ricaricare non funziona, prova ","clearCanvasMessage_button":"pulire la tela.","clearCanvasCaveat":" Questo risulterà nella perdita del lavoro ","trackedToSentry_pre":"L\'errore con identificativo ","trackedToSentry_post":" è stato tracciato nel nostro sistema.","openIssueMessage_pre":"Siamo stati molto cauti nel non includere informazioni della scena nell\'errore. Se la tua scena non è privata, ti preghiamo di considerare la sua inclusione nel nostro ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Per favore includi le informazioni riportate qui sotto copiandole e incollandole nella issue di GitHub.","sceneContent":"Contenuto della scena:"},"roomDialog":{"desc_intro":"Puoi invitare persone nella tua scena attuale per collaborare con te.","desc_privacy":"Non preoccuparti, la sessione utilizza la crittografia end-to-end, quindi qualsiasi cosa disegni rimarrà privata. Nemmeno il nostro server sarà in grado di vedere cosa hai creato.","button_startSession":"Avvia sessione","button_stopSession":"Termina sessione","desc_inProgressIntro":"La sessione di collaborazione è attualmente in corso.","desc_shareLink":"Condividi questo link con chiunque desideri collaborare:","desc_exitSession":"Interrompere la sessione scollegherà la tua stanza ma potrai continuare a lavorare con la scena, localmente. Tieni presente che questo non influirà sulle altre persone, e che saranno ancora in grado di collaborare alla loro versione.","shareTitle":"Partecipa a una sessione di collaborazione live su Excalidraw"},"errorDialog":{"title":"Errore"},"exportDialog":{"disk_title":"Salva su disco","disk_details":"Esporta i dati della scena su file, dal quale potrai importare in seguito.","disk_button":"Salva su file","link_title":"Link condivisibile","link_details":"Esporta come link di sola lettura.","link_button":"Esporta come Link","excalidrawplus_description":"Salva la scena nel tuo spazio di lavoro Excalidraw+.","excalidrawplus_button":"Esporta","excalidrawplus_exportError":"Non è stato possibile esportare su Excalidraw+ al questo momento..."},"helpDialog":{"blog":"Leggi il nostro blog","click":"click","deepSelect":"","deepBoxSelect":"","curvedArrow":"Freccia curva","curvedLine":"Linea curva","documentation":"Documentazione","doubleClick":"doppio-click","drag":"trascina","editor":"Editor","editSelectedShape":"Modifica la forma selezionata (testo/freccia/linea)","github":"Trovato un problema? Segnalalo","howto":"Segui le nostre guide","or":"oppure","preventBinding":"Impedisci legame della freccia","shapes":"Forme","shortcuts":"Scorciatoie da tastiera","textFinish":"Completa la modifica (editor di testo)","textNewLine":"Aggiungi nuova riga (editor di testo)","title":"Guida","view":"Vista","zoomToFit":"Adatta zoom per mostrare tutti gli elementi","zoomToSelection":"Zoom alla selezione"},"clearCanvasDialog":{"title":"Svuota la tela"},"publishDialog":{"title":"Pubblica la libreria","itemName":"Nome dell\'elemento","authorName":"Nome dell\'autore","githubUsername":"Nome utente di GitHub","twitterUsername":"Nome utente di Twitter","libraryName":"Nome della libreria","libraryDesc":"Descrizione della libreria","website":"Sito Web","placeholder":{"authorName":"Il tuo nome o nome utente","libraryName":"Nome della tua libreria","libraryDesc":"Descrizione della tua libreria per aiutare le persone a comprenderne lo scopo","githubHandle":"Handle di GitHub (opzionale), così che tu possa modificare la libreria una volta inviata per la revisione","twitterHandle":"Nome utente di Twitter (opzionale), così che sappiamo chi accreditare promuovendo su Twitter","website":"Link al tuo sito web personale o altro (opzionale)"},"errors":{"required":"Obbligatorio","website":"Inserisci un URL valido"},"noteDescription":{"pre":"Invia la tua libreria da includere nella ","link":"repository della libreria pubblica","post":"perché sia usata da altri nei loro disegni."},"noteGuidelines":{"pre":"La libreria dev\'esser prima approvata manualmente. Sei pregato di leggere le ","link":"linee guida","post":" prima di inviarla. Necessiterai di un profilo di GitHub per comunicare ed effettuare modifiche se richiesto, ma non è strettamente necessario."},"noteLicense":{"pre":"Inviando, acconsenti che la libreria sarà pubblicata sotto la ","link":"Licenza MIT, ","post":"che in breve significa che chiunque possa usarla senza restrizioni."},"noteItems":"Ogni elemento della libreria deve avere il proprio nome, così che sia filtrabile. Gli elementi della seguente libreria saranno inclusi:","atleastOneLibItem":"Sei pregato di selezionare almeno un elemento della libreria per iniziare"},"publishSuccessDialog":{"title":"Libreria inviata","content":"Grazie {{authorName}}. La tua libreria è stata inviata per la revisione. Puoi monitorarne lo stato","link":"qui"},"confirmDialog":{"resetLibrary":"Ripristina la libreria","removeItemsFromLib":"Rimuovi gli elementi selezionati dalla libreria"},"encrypted":{"tooltip":"I tuoi disegni sono crittografati end-to-end in modo che i server di Excalidraw non li possano mai vedere.","link":"Articolo del blog sulla crittografia end-to-end di Excalidraw"},"stats":{"angle":"Angolo","element":"Elemento","elements":"Elementi","height":"Altezza","scene":"Scena","selected":"Selezionato","storage":"Memoria","title":"Statistiche per nerd","total":"Totale","version":"Versione","versionCopy":"Clicca per copiare","versionNotAvailable":"Versione non disponibile","width":"Larghezza"},"toast":{"addedToLibrary":"Aggiunto alla libreria","copyStyles":"Stili copiati.","copyToClipboard":"Copiato negli appunti.","copyToClipboardAsPng":"{{exportSelection}} copiato negli appunti come PNG\\n({{exportColorScheme}})","fileSaved":"File salvato.","fileSavedToFilename":"Salvato in {filename}","canvas":"tela","selection":"selezione"},"colors":{"495057":"Grigio 7","ffffff":"Bianco","f8f9fa":"Grigio 0","f1f3f5":"Grigio 1","fff5f5":"Rosso 0","fff0f6":"Rosa 0","f8f0fc":"Uva 0","f3f0ff":"Viola 0","edf2ff":"Indaco 0","e7f5ff":"Blu 0","e3fafc":"Ciano 0","e6fcf5":"Verde acqua 0","ebfbee":"Verde 0","f4fce3":"Lime 0","fff9db":"Giallo 0","fff4e6":"Arancio 0","transparent":"Trasparente","ced4da":"Grigio 4","868e96":"Grigio 6","fa5252":"Rosso 6","e64980":"Rosa 6","be4bdb":"Uva 6","7950f2":"Viola 6","4c6ef5":"Indaco 6","228be6":"Blu 6","15aabf":"Ciano 6","12b886":"Verde acqua 6","40c057":"Verde 6","82c91e":"Lime 6","fab005":"Giallo 6","fd7e14":"Arancio 6","000000":"Nero","343a40":"Grigio 8","c92a2a":"Rosso 9","a61e4d":"Rosa 9","862e9c":"Uva 9","5f3dc4":"Viola 9","364fc7":"Indaco 9","1864ab":"Blu 9","0b7285":"Ciano 9","087f5b":"Verde acqua 9","2b8a3e":"Verde 9","5c940d":"Lime 9","e67700":"Giallo 9","d9480f":"Arancio 9"}}')},198:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"貼り付け","pasteCharts":"チャートの貼り付け","selectAll":"すべて選択","multiSelect":"複数選択","moveCanvas":"キャンバスを移動","cut":"切り取り","copy":"コピー","copyAsPng":"PNGとしてクリップボードへコピー","copyAsSvg":"SVGとしてクリップボードへコピー","bringForward":"前面に移動","sendToBack":"最背面に移動","bringToFront":"最前面に移動","sendBackward":"背面に移動","delete":"削除","copyStyles":"スタイルのコピー","pasteStyles":"スタイルの貼り付け","stroke":"線の色","background":"背景の色","fill":"塗りつぶし","strokeWidth":"線の幅","strokeStyle":"線の種類","strokeStyle_solid":"実線","strokeStyle_dashed":"破線","strokeStyle_dotted":"点線","sloppiness":"線のばらつき","opacity":"透明度","textAlign":"テキストの配置","edges":"角","sharp":"四角","round":"丸","arrowheads":"線の終点","arrowhead_none":"なし","arrowhead_arrow":"矢印","arrowhead_bar":"バー","arrowhead_dot":"ドット","arrowhead_triangle":"三角","fontSize":"フォントの大きさ","fontFamily":"フォントの種類","onlySelected":"選択中のみ","withBackground":"背景","exportEmbedScene":"埋め込みシーン","exportEmbedScene_details":"シーンデータはエクスポートされたPNG/SVGファイルに保存され、シーンを復元することができます。\\nエクスポートされたファイルのサイズは増加します。","addWatermark":"\\"Made with Excalidraw\\"と表示","handDrawn":"手描き風","normal":"普通","code":"コード","small":"小","medium":"中","large":"大","veryLarge":"特大","solid":"ベタ塗り","hachure":"斜線","crossHatch":"網掛け","thin":"細","bold":"太字","left":"左寄せ","center":"中央寄せ","right":"右寄せ","extraBold":"極太","architect":"正確","artist":"アート","cartoonist":"漫画風","fileTitle":"ファイル名","colorPicker":"色選択","canvasBackground":"キャンバスの背景","drawingCanvas":"キャンバスの描画","layers":"レイヤー","actions":"操作","language":"言語","liveCollaboration":"共同編集","duplicateSelection":"複製","untitled":"無題","name":"名前","yourName":"あなたの名前","madeWithExcalidraw":"Excalidrawで作成","group":"グループ化","ungroup":"グループ化を解除","collaborators":"共同編集者","showGrid":"グリッドを表示","addToLibrary":"ライブラリに追加","removeFromLibrary":"ライブラリから削除","libraryLoadingMessage":"ライブラリを読み込み中…","libraries":"ライブラリを参照する","loadingScene":"シーンを読み込み中…","align":"配置","alignTop":"上揃え","alignBottom":"下揃え","alignLeft":"左揃え","alignRight":"右揃え","centerVertically":"縦方向に中央揃え","centerHorizontally":"横方向に中央揃え","distributeHorizontally":"水平方向に分散配置","distributeVertically":"垂直方向に分散配置","flipHorizontal":"水平方向に反転","flipVertical":"垂直方向に反転","viewMode":"閲覧モード","toggleExportColorScheme":"エクスポートカラースキームの切り替え","share":"共有","showStroke":"ストロークカラーピッカーを表示","showBackground":"背景色ピッカーを表示","toggleTheme":"テーマの切り替え","personalLib":"個人ライブラリ","excalidrawLib":"Excalidrawライブラリ","decreaseFontSize":"フォントサイズを縮小","increaseFontSize":"フォントサイズを拡大","unbindText":"","link":{"edit":"リンクを編集","create":"リンクを作成","label":"リンク"}},"buttons":{"clearReset":"キャンバスのリセット","exportJSON":"ファイルへエクスポート","exportImage":"画像として保存","export":"エクスポート","exportToPng":"PNG にエクスポート","exportToSvg":"SVG にエクスポート","copyToClipboard":"クリップボードにコピー","copyPngToClipboard":"クリップボードにPNGをコピー","scale":"スケール","save":"現在のファイルに保存","saveAs":"名前を付けて保存","load":"読み込み...","getShareableLink":"共有URLの取得","close":"閉じる","selectLanguage":"言語の選択","scrollBackToContent":"コンテンツまでスクロールで戻る","zoomIn":"拡大","zoomOut":"縮小","resetZoom":"拡大/縮小をリセット","menu":"メニュー","done":"完了","edit":"編集","undo":"元に戻す","redo":"やり直し","resetLibrary":"ライブラリをリセット","createNewRoom":"新しい部屋を作成する","fullScreen":"フルスクリーン","darkMode":"ダークモード","lightMode":"ライトモード","zenMode":"Zenモード","exitZenMode":"集中モードをやめる","cancel":"キャンセル","clear":"消去","remove":"削除","publishLibrary":"公開","submit":"送信","confirm":"確認"},"alerts":{"clearReset":"この操作によってキャンバス全体が消えます。よろしいですか?","couldNotCreateShareableLink":"共有URLを作成できませんでした。","couldNotCreateShareableLinkTooBig":"共有可能なリンクを作成できませんでした: シーンが大きすぎます","couldNotLoadInvalidFile":"無効なファイルを読み込めませんでした。","importBackendFailed":"サーバーからの読み込みに失敗しました。","cannotExportEmptyCanvas":"空のキャンバスはエクスポートできません。","couldNotCopyToClipboard":"クリップボードにコピーできません。Google Chromeでお試しください。","decryptFailed":"データを復号できませんでした。","uploadedSecurly":"データのアップロードはエンドツーエンド暗号化によって保護されています。Excalidrawサーバーと第三者はデータの内容を見ることができません。","loadSceneOverridePrompt":"外部図面を読み込むと、既存のコンテンツが置き換わります。続行しますか?","collabStopOverridePrompt":"セッションを停止すると、ローカルに保存されている図が上書きされます。 本当によろしいですか?\\n\\n(ローカルの図を保持したい場合は、セッションを停止せずにブラウザタブを閉じてください。)","errorLoadingLibrary":"サードパーティライブラリの読み込み中にエラーが発生しました。","errorAddingToLibrary":"アイテムをライブラリに追加できませんでした","errorRemovingFromLibrary":"ライブラリからアイテムを削除できませんでした","confirmAddLibrary":"{{numShapes}} 個の図形をライブラリに追加します。よろしいですか?","imageDoesNotContainScene":"この画像にはシーンデータが含まれていないようです。エクスポート時にシーンの埋め込みを有効にしましたか?","cannotRestoreFromImage":"このイメージファイルからシーンを復元できませんでした","invalidSceneUrl":"指定された URL からシーンをインポートできませんでした。不正な形式であるか、有効な Excalidraw JSON データが含まれていません。","resetLibrary":"ライブラリを消去します。本当によろしいですか?","removeItemsFromsLibrary":"{{count}} 個のアイテムをライブラリから削除しますか?","invalidEncryptionKey":"暗号化キーは22文字でなければなりません。ライブコラボレーションは無効化されています。"},"errors":{"unsupportedFileType":"サポートされていないファイル形式です。","imageInsertError":"画像を挿入できませんでした。後でもう一度お試しください...","fileTooBig":"ファイルが大きすぎます。許可される最大サイズは {{maxSize}} です。","svgImageInsertError":"SVGイメージを挿入できませんでした。SVGマークアップは無効に見えます。","invalidSVGString":"無効なSVGです。"},"toolBar":{"selection":"選択","image":"画像を挿入","rectangle":"矩形","diamond":"ひし形","ellipse":"楕円","arrow":"矢印","line":"直線","freedraw":"描画","text":"テキスト","library":"ライブラリ","lock":"描画後も使用中のツールを選択したままにする","penMode":"ピンチとズームを抑止し、ペンからのみ自由な入力を受け付けます","link":""},"headings":{"canvasActions":"キャンバス操作","selectedShapeActions":"選択された図形に対する操作","shapes":"図形"},"hints":{"canvasPanning":"キャンバスを移動するには、マウスホイールまたはスペースバーを押しながらドラッグします","linearElement":"クリックすると複数の頂点からなる曲線を開始、ドラッグすると直線","freeDraw":"クリックしてドラッグします。離すと終了します","text":"ヒント: 選択ツールを使用して任意の場所をダブルクリックしてテキストを追加することもできます","text_selected":"テキストを編集するには、ダブルクリックまたはEnterキーを押します","text_editing":"Esc キーまたは CtrlOrCmd+ENTER キーを押して編集を終了します","linearElementMulti":"最後のポイントをクリックするか、エスケープまたはEnterを押して終了します","lockAngle":"SHIFTを押したままにすると、角度を制限することができます","resize":"サイズを変更中にSHIFTを押すと縦横比を固定できます。Altを押すと中央からサイズを変更できます","resizeImage":"SHIFTを長押しすると自由にサイズを変更できます。\\n中央からサイズを変更するにはALTを長押しします","rotate":"回転中にSHIFT キーを押すと角度を制限することができます","lineEditor_info":"ポイントを編集するには、ダブルクリックまたはEnterキーを押します","lineEditor_pointSelected":"Deleteキーを押すと点を削除、CtrlOrCmd+Dで複製、マウスドラッグで移動","lineEditor_nothingSelected":"編集する点を選択(SHIFTを押したままで複数選択)、\\nAltキーを押しながらクリックすると新しい点を追加","placeImage":"クリックして画像を配置するか、クリックしてドラッグしてサイズを手動で設定します","publishLibrary":"自分のライブラリを公開","bindTextToElement":"Enterを押してテキストを追加","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"プレビューを表示できません","canvasTooBig":"キャンバスが大きすぎます。","canvasTooBigTip":"ヒント: 最も遠い要素をもう少し近づけてみてください。"},"errorSplash":{"headingMain_pre":"エラーが発生しました。もう一度やり直してください。 ","headingMain_button":"ページを再読み込みする。","clearCanvasMessage":"再読み込みがうまくいかない場合は、 ","clearCanvasMessage_button":"キャンバスを消去しています","clearCanvasCaveat":" これにより作業が失われます ","trackedToSentry_pre":"識別子のエラー ","trackedToSentry_post":" が我々のシステムで追跡されました。","openIssueMessage_pre":"エラーに関するシーン情報を含めないように非常に慎重に設定しました。もしあなたのシーンがプライベートでない場合は、私たちのフォローアップを検討してください。 ","openIssueMessage_button":"バグ報告","openIssueMessage_post":" GitHub のIssueに以下の情報をコピーして貼り付けてください。","sceneContent":"シーンの内容:"},"roomDialog":{"desc_intro":"他の人を編集中のあなたの画面に招待して共同編集することができます。","desc_privacy":"このセッションはエンドツーエンド暗号化されており、描画内容は保護されています。運営サーバーからも内容は見えません。","button_startSession":"セッションを開始する","button_stopSession":"セッションを終了する","desc_inProgressIntro":"共同編集セッションが有効になっています。","desc_shareLink":"下記URLを共同編集したい人に共有してください:","desc_exitSession":"セッションを終了するとあなたはルームから切断されますが、ローカルで作業を続けることができます。セッションを終了しても他のメンバには影響はなく、引き続き共同作業を行うことができます。","shareTitle":"Excalidrawの共同編集セッションに参加する"},"errorDialog":{"title":"エラー"},"exportDialog":{"disk_title":"ディスクに保存","disk_details":"シーンデータを後からインポートできるファイルにエクスポートします。","disk_button":"ファイルへ保存","link_title":"共有可能なリンク","link_details":"読み取り専用リンクとしてエクスポート","link_button":"リンクとしてエクスポート","excalidrawplus_description":"Excalidraw+ ワークスペースにシーンを保存します。","excalidrawplus_button":"エクスポート","excalidrawplus_exportError":"Excalidraw+ にエクスポートできませんでした..."},"helpDialog":{"blog":"公式ブログを読む","click":"クリック","deepSelect":"","deepBoxSelect":"","curvedArrow":"カーブした矢印","curvedLine":"曲線","documentation":"ドキュメント","doubleClick":"ダブルクリック","drag":"ドラッグ","editor":"エディタ","editSelectedShape":"選択した図形の編集 (テキスト/矢印/線)","github":"不具合報告はこちら","howto":"ヘルプ・マニュアル","or":"または","preventBinding":"矢印を結合しない","shapes":"図形","shortcuts":"キーボードショートカット","textFinish":"編集を終了 (テキストエディタ)","textNewLine":"新しい行を追加 (テキスト)","title":"ヘルプ","view":"表示","zoomToFit":"すべての要素が収まるようにズーム","zoomToSelection":"選択要素にズーム"},"clearCanvasDialog":{"title":"キャンバスを消去"},"publishDialog":{"title":"ライブラリを公開","itemName":"アイテム名","authorName":"作成者名","githubUsername":"GitHub ユーザ名","twitterUsername":"Twitter ユーザ名","libraryName":"ライブラリ名","libraryDesc":"ライブラリの説明","website":"Webサイト","placeholder":{"authorName":"お名前またはユーザー名","libraryName":"あなたのライブラリ名","libraryDesc":"ライブラリの使い方を理解するための説明","githubHandle":"GitHubハンドル(任意)。一度レビューのために送信されると、ライブラリを編集できます","twitterHandle":"Twitterのユーザー名 (任意)。Twitterでプロモーションする際にクレジットする人を知っておくためのものです","website":"個人のウェブサイトまたは他のサイトへのリンク (任意)"},"errors":{"required":"必須項目","website":"有効な URL を入力してください"},"noteDescription":{"pre":"以下に含めるライブラリを提出してください ","link":"公開ライブラリのリポジトリ","post":"他の人が作図に使えるようにするためです"},"noteGuidelines":{"pre":"最初にライブラリを手動で承認する必要があります。次をお読みください ","link":"ガイドライン","post":" 送信する前に、GitHubアカウントが必要になりますが、必須ではありません。"},"noteLicense":{"pre":"提出することにより、ライブラリが次の下で公開されることに同意します: ","link":"MIT ライセンス","post":"つまり誰でも制限なく使えるということです"},"noteItems":"","atleastOneLibItem":"開始するには少なくとも1つのライブラリ項目を選択してください"},"publishSuccessDialog":{"title":"ライブラリを送信しました","content":"{{authorName}} さん、ありがとうございます。あなたのライブラリはレビューのために提出されました。状況を追跡できます。","link":"こちら"},"confirmDialog":{"resetLibrary":"ライブラリをリセット","removeItemsFromLib":"選択したアイテムをライブラリから削除"},"encrypted":{"tooltip":"描画内容はエンドツーエンド暗号化が施されており、Excalidrawサーバーが内容を見ることはできません。","link":"Excalidrawのエンドツーエンド暗号化に関するブログ記事"},"stats":{"angle":"角度","element":"要素","elements":"要素","height":"高さ","scene":"シーン","selected":"選択済み","storage":"ストレージ","title":"詳細統計情報","total":"合計","version":"バージョン","versionCopy":"クリックしてコピー","versionNotAvailable":"利用できないバージョン","width":"幅"},"toast":{"addedToLibrary":"ライブラリに追加しました","copyStyles":"スタイルをコピーしました。","copyToClipboard":"クリップボードにコピー","copyToClipboardAsPng":"{{exportSelection}} を PNG 形式でクリップボードにコピーしました\\n({{exportColorScheme}})","fileSaved":"ファイルを保存しました","fileSavedToFilename":"{filename} に保存しました","canvas":"キャンバス","selection":"選択"},"colors":{"495057":"グレー 7","ffffff":"ホワイト","f8f9fa":"グレー 0","f1f3f5":"グレー 1","fff5f5":"レッド 0","fff0f6":"ピンク 0","f8f0fc":"グレープ 0","f3f0ff":"バイオレット 0","edf2ff":"インディゴ 0","e7f5ff":"ブルー 0","e3fafc":"シアン 0","e6fcf5":"ティール 0","ebfbee":"グリーン 0","f4fce3":"ライム 0","fff9db":"イエロー 0","fff4e6":"オレンジ 0","transparent":"透明","ced4da":"グレー 4","868e96":"グレー 6","fa5252":"レッド 6","e64980":"ピンク 6","be4bdb":"グレープ 6","7950f2":"バイオレット 6","4c6ef5":"インディゴ 6","228be6":"ブルー 6","15aabf":"シアン 6","12b886":"ティール 6","40c057":"グリーン 6","82c91e":"ライム 6","fab005":"イエロー 6","fd7e14":"オレンジ 6","000000":"ブラック","343a40":"グレー 8","c92a2a":"レッド 9","a61e4d":"ピンク 9","862e9c":"グレープ 9","5f3dc4":"バイオレット 9","364fc7":"インディゴ 9","1864ab":"ブルー 9","0b7285":"シアン 9","087f5b":"ティール 9","2b8a3e":"グリーン 9","5c940d":"ライム 9","e67700":"イエロー 9","d9480f":"オレンジ 9"}}')},228:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Senṭeḍ","pasteCharts":"Senṭeḍ udlifen","selectAll":"Fren akk","multiSelect":"Rnu aferdis ɣer tefrayt","moveCanvas":"Smutti taɣzut n usuneɣ","cut":"Gzem","copy":"Nɣel","copyAsPng":"Nɣel ɣer tecfawit am PNG","copyAsSvg":"Nɣel ɣer tecfawit am SVG","bringForward":"Awi ɣer sdat","sendToBack":"Awi s agilal","bringToFront":"Err ɣer deffir","sendBackward":"Awi ɣer deffir","delete":"Kkes","copyStyles":"Nɣel iɣunab","pasteStyles":"Senṭeḍ iɣunab","stroke":"Azizdew","background":"Agilal","fill":"Taččart","strokeWidth":"Tehri n yizirig","strokeStyle":"Aɣanib n tizirig","strokeStyle_solid":"Aččuran","strokeStyle_dashed":"S tjerriḍin","strokeStyle_dotted":"S tenqiḍin","sloppiness":"Astehzi","opacity":"Tiḍullest","textAlign":"Areyyec n uḍris","edges":"Leryuf","sharp":"Yemsed","round":"Imdewer","arrowheads":"Ixfawen n tenccabt","arrowhead_none":"Ulac","arrowhead_arrow":"Taneccabt","arrowhead_bar":"Afeggag","arrowhead_dot":"Tanqiḍt","arrowhead_triangle":"Akerdis","fontSize":"Tiddi n tsefsit","fontFamily":"Tawacult n tsefsiyin","onlySelected":"Tafrayt kan","withBackground":"Agilal","exportEmbedScene":"Sleɣ asayes","exportEmbedScene_details":"Asayes ad yettwasekles deg ufaylu n usifeḍ PNG/SVG akken akken ad yili wamek ara d-yettwarr seg-s usayes. Ayagi ad isimɣur tiddi n ufaylu n usifeḍ.","addWatermark":"Seddu \\"Yettwaxdem s Excalidraw\\"","handDrawn":"Asuneɣ s ufus","normal":"Amagnu","code":"Tangalt","small":"Meẓẓi","medium":"Alemmas","large":"Ameqran","veryLarge":"Meqqer aṭas","solid":"Aččuran","hachure":"Azerreg","crossHatch":"Azerreg anmidag","thin":"Arqaq","bold":"Azuran","left":"Azelmaḍ","center":"Talemmast","right":"Ayfus","extraBold":"Azuran aṭas","architect":"Amasdag","artist":"Anaẓur","cartoonist":"","fileTitle":"Isem n ufaylu","colorPicker":"Amafran n yini","canvasBackground":"Agilal n teɣzut n usuneɣ","drawingCanvas":"Taɣzut n usuneɣ","layers":"Tissiyin","actions":"Tigawin","language":"Tutlayt","liveCollaboration":"Amɛiwen s srid","duplicateSelection":"Sisleg","untitled":"War azwel","name":"Isem","yourName":"Isem-ik (im)","madeWithExcalidraw":"Yettwaxdem s Excalidraw","group":"Segrew tafrayt","ungroup":"Kkess asegrew i tefrayt","collaborators":"Imɛiwnen","showGrid":"Beqqeḍ aferrug","addToLibrary":"Rnu ɣer temkarḍit","removeFromLibrary":"Kkes si temkarḍit","libraryLoadingMessage":"Asali n temkarḍit…","libraries":"Snirem timkarḍiyin","loadingScene":"Asali n usayes…","align":"Reyyec","alignTop":"Areyyec uksawen","alignBottom":"Areyyec ukessar","alignLeft":"Reyyec s azelmaḍ","alignRight":"Areyyec s ayfus","centerVertically":"Di tlemmast s ibeddi","centerHorizontally":"Di tlemmast s uglawi","distributeHorizontally":"Freq s uglawi","distributeVertically":"Freq s yibeddi","flipHorizontal":"Tuttya taglawant","flipVertical":"Tuttya tubdidt","viewMode":"Askar n tmuɣli","toggleExportColorScheme":"Sermed/sens asifeḍ usentel n yini","share":"Bḍu","showStroke":"Beqqeḍ amelqaḍ n yini n yizirig","showBackground":"Beqqeḍ amelqaḍ n yini n ugilal","toggleTheme":"Snifel asentel","personalLib":"Tamkarḍit tudmawant","excalidrawLib":"Tamkarḍit n Excalidraw","decreaseFontSize":"Senqes tiddi n tsefsit","increaseFontSize":"Sali tiddi n tsefsit","unbindText":"","link":{"edit":"Ẓreg aseɣwen","create":"Snulfu-d aseɣwen","label":"Aseɣwen"}},"buttons":{"clearReset":"Ales awennez n teɣzut n usuneɣ","exportJSON":"Sifeḍ afaylu","exportImage":"Sekles am tugna","export":"Sifeḍ","exportToPng":"Sifeḍ ɣer PNG","exportToSvg":"Sifeḍ ɣer SVG","copyToClipboard":"Nɣel ɣer tecfawit","copyPngToClipboard":"Nɣel PNG ɣer tecfawit","scale":"Taskala","save":"Sekles deg ufaylu amiran","saveAs":"Sekles am","load":"Sali-d","getShareableLink":"Awi-d aseɣwen n beṭṭu","close":"Mdel","selectLanguage":"Fren tutlayt","scrollBackToContent":"Uɣal s agbur","zoomIn":"Simɣur","zoomOut":"Simẓi","resetZoom":"Ales awennez n usemɣer","menu":"Umuɣ","done":"Ifukk","edit":"Ẓreg","undo":"Sefsex","redo":"Err-d","resetLibrary":"Ales awennez n temkarḍit","createNewRoom":"Snulfu-d taxxamt tamaynutt","fullScreen":"Agdil aččuran","darkMode":"Askar imsulles","lightMode":"Askar afaw","zenMode":"Askar Zen","exitZenMode":"Ffeɣ seg uskar Zen","cancel":"Sefsex","clear":"Sfeḍ","remove":"Kkes","publishLibrary":"Ẓreg","submit":"Azen","confirm":"Sentem"},"alerts":{"clearReset":"Ayagi ad isfeḍ akk taɣzut n usuneɣ. Tetḥeqqeḍ?","couldNotCreateShareableLink":"D awezɣi asnulfu n useɣwen n beṭṭu.","couldNotCreateShareableLinkTooBig":"D awezɣi asnulfu n useɣwen n beṭṭu. Asayes ɣezzif aṭas","couldNotLoadInvalidFile":"D awezɣi asali n ufaylu armeɣtu","importBackendFailed":"Takterḍ seg uɣawas n deffir ur teddi ara.","cannotExportEmptyCanvas":"D awezɣi asifeḍ n teɣzut n usuneɣ tilemt.","couldNotCopyToClipboard":"D awezɣi anɣal ɣer tecfawit. Eɛreḍ ad tesqedceḍ iminig Chrome.","decryptFailed":"D awezɣi tukksa n uwgelhen i yisefka.","uploadedSecurly":"Asili yettwasɣelles s uwgelhen ixef s ixef, ayagi yebɣa ad d-yini belli aqeddac n Excalidraw akked medden ur zmiren ara ad ɣren agbur.","loadSceneOverridePrompt":"Asali n wunuɣ uffiɣ ad isemselsi agbur-inek (m) yellan. Tebɣiḍ ad tkemmeleḍ?","collabStopOverridePrompt":"Aḥbas n tɣimit ad yesefsex unuɣ-inek (m) yettwaḥerzen yakan s wudem adigan. Tetḥeqqeḍ?\\n(Ma tebɣiḍ ad teǧǧeḍ unuɣ-inek (m) adigan, mdel iccer n yiminig, deg umḍiq.)","errorLoadingLibrary":"Teḍra-d tuccḍa deg usali n temkarḍit n wis kraḍ.","errorAddingToLibrary":"Ulamek ara yettwarnu uferdis ɣer temkarḍit","errorRemovingFromLibrary":"Ulamek ara yettwakkes uferdis si temkarḍit","confirmAddLibrary":"Ayagi adirnu talɣa (win) {{numShapes}} ɣer temkarḍit-inek (m). Tetḥeqqeḍ?","imageDoesNotContainScene":"Tugna-agi tettban-d ur tesɛi ara isefka n usayes. Tesremdeḍ aseddu n usayes deg usifeḍ?","cannotRestoreFromImage":"Asayes ulamek ara d-yettwarr seg ufaylu-agi n tugna","invalidSceneUrl":"Ulamek taktert n usayes seg URL i d-ittunefken. Ahat mačči d tameɣtut neɣ ur tegbir ara isefka JSON n Excalidraw.","resetLibrary":"Ayagi ad isfeḍ tamkarḍit-inek•m. Tetḥeqqeḍ?","removeItemsFromsLibrary":"Ad tekkseḍ {{count}} n uferdis (en) si temkarḍit?","invalidEncryptionKey":"Tasarut n uwgelhen isefk ad tesɛu 22 n yiekkilen. Amɛiwen srid yensa."},"errors":{"unsupportedFileType":"Anaw n ufaylu ur yettwasefrak ara.","imageInsertError":"D awezɣi tugra n tugna. Eɛreḍ tikkelt-nniḍen ardeqqal...","fileTooBig":"Afaylu meqqer aṭas. Tiddi tafellayt yurgen d {{maxSize}}.","svgImageInsertError":"D awezɣi tugra n tugna SVG. Acraḍ SVG yettban-d d armeɣtu.","invalidSVGString":"SVG armeɣtu."},"toolBar":{"selection":"Tafrayt","image":"Ger tugna","rectangle":"Asrem","diamond":"Ameɣṛun","ellipse":"Taglayt","arrow":"Taneccabt","line":"Izirig","freedraw":"Suneɣ","text":"Aḍris","library":"Tamkarḍit","lock":"Eǧǧ afecku n tefrayt yermed mbaɛd asuneɣ","penMode":"","link":"Rnu/leqqem aseɣwen i talɣa yettwafernen"},"headings":{"canvasActions":"Tigawin n teɣzut n usuneɣ","selectedShapeActions":"Tigawin n talɣa yettwafernen","shapes":"Talɣiwin"},"hints":{"canvasPanning":"Akken ad tesmuttiḍ taɣzut n usuneɣ, ṭṭef ṛṛuda n umumed, neɣ afeggag n tallunt mi ara tzuɣreḍ","linearElement":"Ssit akken ad tebduḍ aṭas n tenqiḍin, zuɣer i yiwen n yizirig","freeDraw":"Ssit yerna zuɣer, serreḥ ticki tfukeḍ","text":"Tixidest: tzemreḍ daɣen ad ternuḍ aḍris s usiti snat n tikkal anida tebɣiḍ s ufecku n tefrayt","text_selected":"Ssit snat n tikkal neɣ ssed taqeffalt Kcem akken ad tẓergeḍ aḍris","text_editing":"Ssit Escape neɣ CtrlOrCmd+ENTER akken ad tfakkeḍ asiẓreg","linearElementMulti":"Ssit ɣef tenqiḍt taneggarut neɣ ssed taqeffalt Escape neɣ taqeffalt Kcem akken ad tfakkeḍ","lockAngle":"Tzemreḍ ad tḥettmeḍ tiɣmert s tuṭṭfa n tqeffalt SHIFT","resize":"Tzemreḍ ad tḥettemeḍ assaɣ s tuṭṭfa n tqeffalt SHIFT mi ara tettbeddileḍ tiddi,\\nma teṭṭfeḍ ALT abeddel n tiddi ad yili si tlemmast","resizeImage":"Tzemreḍ ad talseḍ tiddi s tilelli s tuṭṭfa n SHIFT,\\nṭṭef ALT akken ad talseḍ tiddi si tlemmast","rotate":"Tzemreḍ ad tḥettemeḍ tiɣemmar s tuṭṭfa n SHIFT di tuzzya","lineEditor_info":"Ssit snat n tikkal neɣ ssed taqeffalt Kcem akken ad tẓergeḍ tinqiḍin","lineEditor_pointSelected":"Ssed taqeffalt kkes akken ad tekkseḍ tanqiḍ (tinqiḍin),\\nCtrlOrCmd+D akken ad tsiselgeḍ, neɣ zuɣer akken ad tesmuttiḍ","lineEditor_nothingSelected":"Fren tanqiḍt akken ad tẓergeḍ (ṭṭef SHIFT akken ad tferneḍ aṭas),\\nneɣ ṭṭef Alt akken ad ternuḍ tinqiḍin timaynutin","placeImage":"Ssit akken ad tserseḍ tugna, neɣ ssit u zuɣer akken ad tesbaduḍ tiddi-ines s ufus","publishLibrary":"Siẓreg tamkarḍit-inek•inem","bindTextToElement":"Ssed ɣef kcem akken ad ternuḍ aḍris","deepBoxSelect":"Ṭṭef CtrlOrCmd akken ad tferneḍ s telqey, yerna ad trewleḍ i uzuɣer"},"canvasError":{"cannotShowPreview":"Ulamek abeqqeḍ n teskant","canvasTooBig":"Taɣzut n usuneɣ tezmer ad tili temeqqer aṭas.","canvasTooBigTip":"Tixidest: eɛreḍ ad tesqerbeḍ ciṭ iferdisen yembaɛaden."},"errorSplash":{"headingMain_pre":"Teḍra-d tuccḍa. Eɛreḍ ","headingMain_button":"asali n usebter tikkelt-nniḍen.","clearCanvasMessage":"Ma yella tulsa n usali ur tefri ara ugur, eɛreḍ ","clearCanvasMessage_button":"asfaḍ n teɣzut n usuneɣ.","clearCanvasCaveat":" Ayagi ad d-iglu s usṛuḥu n umahil ","trackedToSentry_pre":"Tuccḍa akked umesmagi ","trackedToSentry_post":" tettwasekles deg unagraw-nneɣ.","openIssueMessage_pre":"Nḥuder aṭas akken ur nseddu ara talɣut n usayes-inek (m) di tuccḍa. Ma yella asayes-inek (m) mačči d amaẓlay, ttxil-k (m) xemmem ad ḍefreḍ ","openIssueMessage_button":"afecku n weḍfar n yibugen.","openIssueMessage_post":" Ma ulac uɣilif seddu talɣut ukessar-agi s wenɣal akked usenṭeḍ di GitHub issue.","sceneContent":"Agbur n usayes:"},"roomDialog":{"desc_intro":"Tzemreḍ ad d-teɛerḍeḍ medden ɣer usayes-inek (m) amiran akken ad ttekkin yid-k.","desc_privacy":"Ur tqelliq ara, tiɣimit tsseqdac awgelhen ixef s ixef, dɣa ayen ara tsunɣeḍ ad iqqim d amaẓlay. Ula d aqeddac-nneɣ ur yezmir ara ad iwali acu txeddemeḍ.","button_startSession":"Bdu tiɣimit","button_stopSession":"Ḥbes tiɣimit","desc_inProgressIntro":"Tiɣimit n umɛawen s srid tetteddu akka tura.","desc_shareLink":"Bḍu aseɣwen-agi akked medden ukud tebɣiḍ ad temɛawaneḍ:","desc_exitSession":"Aḥbas n tɣimit ad k (m) yesenser si texxamt, maca ad tizmireḍ ad tkemmeleḍ amahil s usayes, s wudem adigan. Ẓer belli ayagi ur yettḥaz ara imdanen-nniḍen, yerna ad izmiren ad kemmelen ad mɛawanen di tsuffeɣt-nnsen.","shareTitle":"Rnu ɣer tɣimit n umɛiwen s srid n Excalidraw"},"errorDialog":{"title":"Tuccḍa"},"exportDialog":{"disk_title":"Sekles deg uḍebsi","disk_details":"Sekles isefka n usayes deg ufaylu ansi ara tizmireḍ ad d-tketreḍ areḍqal.","disk_button":"Sekles deg ufaylu","link_title":"Aseɣwen n beṭṭu","link_details":"Sifeḍ am useɣwen n tɣuri kan.","link_button":"Sifeḍ deg useɣwen","excalidrawplus_description":"Sekles asayes-inek•inem di tallunt n umahil Excalidraw+.","excalidrawplus_button":"Sifeḍ","excalidrawplus_exportError":"Ulamek asifeḍ ɣer Excalidraw+ akka tura..."},"helpDialog":{"blog":"Ɣeṛ ablug-nneɣ","click":"ssit","deepSelect":"Afran s telqey","deepBoxSelect":"Afran s telqey s tnaka, yerna ad tyrewleḍ i uzuɣer","curvedArrow":"Taneccabt izelgen","curvedLine":"Izirig izelgen","documentation":"Tasemlit","doubleClick":"ssit snat n tikkal","drag":"zuɣer","editor":"Amaẓrag","editSelectedShape":"Ẓreg talɣa yettwafernen (aḍris/taneccabt/izirig)","github":"Tufiḍ-d ugur? Azen-aɣ-d","howto":"Ḍfer imniren-nneɣ","or":"neɣ","preventBinding":"Seḥbes tuqqna n tneccabin","shapes":"Talɣiwin","shortcuts":"Inegzumen n unasiw","textFinish":"Fak asiẓreg (amaẓrag n uḍris)","textNewLine":"Rnu ajerriḍ amaynut (amaẓrag n uḍris)","title":"Tallelt","view":"Tamuɣli","zoomToFit":"Simɣur akken ad twliḍ akk iferdisen","zoomToSelection":"Simɣur ɣer tefrayt"},"clearCanvasDialog":{"title":"Sfeḍ taɣzut n usuneɣ"},"publishDialog":{"title":"Suffeɣ-d tamkarḍit","itemName":"Isem n uferdis","authorName":"Isem n umeskar","githubUsername":"Isem n useqdac n GitHub","twitterUsername":"Isem n useqdac n Twitter","libraryName":"Isem n temkarḍit","libraryDesc":"Aglam n temkarḍit","website":"Asmel n web","placeholder":{"authorName":"Isem neɣ isem n useqdac inek•inem","libraryName":"Isem n temkarḍit-inek•inem","libraryDesc":"Aglam n temkarḍit-inek•inem akken ad tɛiwneḍ medden ad fehmen aseqdec-inec","githubHandle":"Isem n useqdac n GitHub ( d anefrunan) akken ad tizmireḍ ad tisẓrigeḍ tamkarḍit ticki tuzneḍ-tt i uselken","twitterHandle":"Isem n useqdac n Twitter (d anefrunan) akken ad nẓer anwa ara nsenmer deg udellel di Twitter","website":"Aseɣwen ɣer usmel-inek•inem neɣ wayeḍ (d anefrunan)"},"errors":{"required":"Yettwasra","website":"Sekcem URL ameɣtu"},"noteDescription":{"pre":"Azen tamkarḍit-inek•inem akken ad teddu di ","link":"akaram azayez n temkarḍit","post":"i yimdanen-nniḍen ara isqedcen deg wunuɣen-nnsen."},"noteGuidelines":{"pre":"Tamkarḍit teḥwaǧ ad tettwaqbel s ufus qbel. Ma ulac uɣilif ɣer ","link":"","post":" send ad tazneḍ. Tesriḍ amiḍan n GitHub akken ad tmmeslayeḍ yerna ad tgeḍ ibeddilen ma yelaq, maca mačči d ayen yettwaḥetmen."},"noteLicense":{"pre":"Mi tuzneḍ ad tqebleḍ akken tamkarḍit ad d-teffeɣ s ","link":"Turagt MIT, ","post":"ayen yebɣan ad d-yini belli yal yiwen izmer ad ten-iseqdec war tilist."},"noteItems":"Yal aferdis n temkarḍit isefk ad isɛu isem-is i yiman-is akken ad yili wamek ara yettusizdeg. Iferdisen-agi n temkarḍit ad ddun:","atleastOneLibItem":"Ma ulac uɣilif fern ma drus yiwen n uferdis n temkarḍit akken ad tebduḍ"},"publishSuccessDialog":{"title":"Tamkarḍit tettwazen","content":"Tanemmirt-ik•im {{authorName}}. Tamkarḍit-inek•inem tettwazen i weselken. Tzemreḍ ad tḍefreḍ aẓayer","link":"dagi"},"confirmDialog":{"resetLibrary":"Ales awennez n temkarḍit","removeItemsFromLib":"Kkes iferdisen yettafernen si temkarḍit"},"encrypted":{"tooltip":"Unuɣen-inek (m) ttuwgelhnen seg yixef s ixef dɣa iqeddacen n Excalidraw werǧin ad ten-walin. ","link":"Amagrad ɣef uwgelhen ixef s ixef di Excalidraw"},"stats":{"angle":"Tiɣmeṛt","element":"Aferdis","elements":"Iferdisen","height":"Tattayt","scene":"Asayes","selected":"Yettwafren","storage":"Aḥraz","title":"","total":"Aɣrud","version":"Alqem","versionCopy":"Sit ad tneɣleḍ","versionNotAvailable":"Ur inuḥ ulqem","width":"Tehri"},"toast":{"addedToLibrary":"Yettwarna ɣer temkarḍit","copyStyles":"Iɣunab yettwaneɣlen.","copyToClipboard":"Yettwaɣel ɣer tecfawit.","copyToClipboardAsPng":"{{exportSelection}} yettwanɣel ɣer tecfawit am PNG\\n({{exportColorScheme}})","fileSaved":"Afaylu yettwasekles.","fileSavedToFilename":"Yettwasekles di {filename}","canvas":"taɣzut n usuneɣ","selection":"tafrayt"},"colors":{"495057":"Aɣiɣdi 7","ffffff":"Amellal","f8f9fa":"Aɣiɣdi 0","f1f3f5":"Aɣiɣdi 1","fff5f5":"Azeggaɣ","fff0f6":"Axuxi 0","f8f0fc":"Tiẓurin 0","f3f0ff":"Amidadi 0","edf2ff":"","e7f5ff":"Anili 0","e3fafc":"","e6fcf5":"","ebfbee":"Azegzaw 0","f4fce3":"Llim 0","fff9db":"Awraɣ 0","fff4e6":"Aččinawi 0","transparent":"Afrawan","ced4da":"Aɣiɣdi 4","868e96":"Aɣiɣdi 6","fa5252":"Azeggaɣ 6","e64980":"Axuxi 6","be4bdb":"","7950f2":"Amidadi 6","4c6ef5":"","228be6":"Anili 6","15aabf":"","12b886":"","40c057":"Azegzaw 0","82c91e":"Llim 6","fab005":"Awraɣ 6","fd7e14":"Aččinawi 6","000000":"Aberkan","343a40":"Aɣiɣdi 8","c92a2a":"Azeggaɣ 9","a61e4d":"Axuxi 9","862e9c":"Tiẓurin 9","5f3dc4":"Amidadi 9","364fc7":"","1864ab":"Anili 9","0b7285":"","087f5b":"","2b8a3e":"Azegzaw 9","5c940d":"Llim 9","e67700":"Awraɣ 9","d9480f":"Aččinawi 9"}}')},8972:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Қою","pasteCharts":"Диаграммаларды қою","selectAll":"Бәрін таңдау","multiSelect":"","moveCanvas":"","cut":"Қию","copy":"Көшіру","copyAsPng":"","copyAsSvg":"","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"Жою","copyStyles":"Стильдерді көшіру","pasteStyles":"Стильдерді қою","stroke":"","background":"","fill":"","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"","opacity":"","textAlign":"","edges":"","sharp":"","round":"","arrowheads":"Нұсқар ұштары","arrowhead_none":"Жоқ","arrowhead_arrow":"Нұсқар","arrowhead_bar":"Тосқауыл","arrowhead_dot":"Нүкте","arrowhead_triangle":"","fontSize":"Қаріп өлшемі","fontFamily":"Қаріп тобы","onlySelected":"","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"","handDrawn":"","normal":"Қалыпты","code":"","small":"Кіші","medium":"Орта","large":"Үлкен","veryLarge":"Өте үлкен","solid":"","hachure":"","crossHatch":"","thin":"","bold":"","left":"Солға","center":"Ортаға","right":"Оңға","extraBold":"","architect":"","artist":"","cartoonist":"","fileTitle":"Файл атауы","colorPicker":"","canvasBackground":"","drawingCanvas":"","layers":"","actions":"","language":"Тіл","liveCollaboration":"","duplicateSelection":"Көшірме","untitled":"Атауысыз","name":"","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","showGrid":"","addToLibrary":"","removeFromLibrary":"","libraryLoadingMessage":"","libraries":"","loadingScene":"","align":"","alignTop":"","alignBottom":"","alignLeft":"","alignRight":"","centerVertically":"","centerHorizontally":"","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"","exportImage":"","export":"Экспорт","exportToPng":"","exportToSvg":"","copyToClipboard":"","copyPngToClipboard":"","scale":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"Жабу","selectLanguage":"Тілді таңдау","scrollBackToContent":"","zoomIn":"","zoomOut":"","resetZoom":"","menu":"Mәзір","done":"Дайын","edit":"","undo":"","redo":"","resetLibrary":"","createNewRoom":"","fullScreen":"","darkMode":"","lightMode":"","zenMode":"","exitZenMode":"","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"Суретті жүктеу мүмкін болмады. Кейінірек қайталап көріңіз...","fileTooBig":"Файл өте үлкен. Максималды рұқсат етілген көлем {{maxSize}}.","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"Суретті қою","rectangle":"","diamond":"","ellipse":"","arrow":"Нұсқар","line":"","freedraw":"","text":"Мәтін","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":""},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"","button_stopSession":"","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":"Қате"},"exportDialog":{"disk_title":"","disk_details":"Сахна деректерін кейін қайта импорттауға болатын файлға экспорттаңыз.","disk_button":"Файлға сақтау","link_title":"Ортақ сілтеме","link_details":"Тек оқуға арналған сілтеме ретінде экспорттау.","link_button":"Сілтемеге экспорттау","excalidrawplus_description":"Сахнаны өзіңіздің Excalidraw+ жұмыс кеңістігінде сақтаңыз.","excalidrawplus_button":"Экспорт","excalidrawplus_exportError":"Қазіргі уақытта Excalidraw+ үшін экспорттау мүмкін емес..."},"helpDialog":{"blog":"Біздің блогты оқу","click":"шерту","deepSelect":"","deepBoxSelect":"","curvedArrow":"Майысқан нұсқар","curvedLine":"Майысқан сызық","documentation":"Құжаттама","doubleClick":"қос шерту","drag":"апару","editor":"Өңдеу","editSelectedShape":"Таңдалған пішінді өңдеу (мәтін/нұсқар/сызық)","github":"Қате таптыңыз ба? Жолдаңыз","howto":"Біздің нұсқаулықтарды орындаңыз","or":"немесе","preventBinding":"Нұсқарды байланыстыруға жол бермеу","shapes":"Пішіндер","shortcuts":"Пернетақта пәрмендері","textFinish":"Өңдеуді аяқтау (мәтіндік редактор)","textNewLine":"Жаңа жолға көшу (мәтіндік редактор)","title":"Көмек","view":"Көру","zoomToFit":"Барлық элементтердің көлеміне сәйкес үлкейту","zoomToSelection":"Таңдалғанды үлкейту"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Сіздің сызбаларыңыз өтпелі шифрлеу арқылы шифрланған, сондықтан Excalidraw серверлері оларды ешқашан көрмейді.","link":"Excalidraw қолданатын өтпелі шифрлеу туралы блог жазбасы"},"stats":{"angle":"Бұрыш","element":"Элемент","elements":"Элементтер","height":"Биіктігі","scene":"Сахна","selected":"Таңдалды","storage":"Сақтау көлемі","title":"","total":"Барлығы","version":"Нұсқа","versionCopy":"Көшіру үшін басыңыз","versionNotAvailable":"Бұл нұсқа қолжетімсіз","width":"Ені"},"toast":{"addedToLibrary":"","copyStyles":"Стильдер көшірілді.","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"Файл сақталды.","fileSavedToFilename":"{filename} сақталды","canvas":"","selection":"таңдау"},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},7596:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"붙여넣기","pasteCharts":"차트 붙여넣기","selectAll":"전체 선택","multiSelect":"선택 영역에 추가하기","moveCanvas":"캔버스 이동","cut":"잘라내기","copy":"복사","copyAsPng":"클립보드로 PNG 이미지 복사","copyAsSvg":"클립보드로 SVG 이미지 복사","bringForward":"앞으로 가져오기","sendToBack":"맨 뒤로 보내기","bringToFront":"맨 앞으로 가져오기","sendBackward":"뒤로 보내기","delete":"삭제","copyStyles":"스타일 복사하기","pasteStyles":"스타일 붙여넣기","stroke":"선 색상","background":"배경색","fill":"채우기","strokeWidth":"선 굵기","strokeStyle":"선","strokeStyle_solid":"실선","strokeStyle_dashed":"파선","strokeStyle_dotted":"점선","sloppiness":"대충 긋기","opacity":"불투명도","textAlign":"텍스트 정렬","edges":"가장자리","sharp":"뾰족하게","round":"둥글게","arrowheads":"화살촉","arrowhead_none":"없음","arrowhead_arrow":"화살표","arrowhead_bar":"막대","arrowhead_dot":"점","arrowhead_triangle":"삼각형","fontSize":"글자 크기","fontFamily":"글꼴","onlySelected":"선택한 항목만","withBackground":"배경","exportEmbedScene":"","exportEmbedScene_details":"화면 정보가 내보내는 PNG/SVG 파일에 저장되어 이후에 파일에서 화면을 복구할 수 있습니다. 파일 크기가 증가합니다.","addWatermark":"\\"Made with Excalidraw\\" 추가","handDrawn":"손글씨","normal":"일반","code":"코드","small":"작게","medium":"보통","large":"크게","veryLarge":"매우 크게","solid":"단색","hachure":"평행선","crossHatch":"교차선","thin":"얇게","bold":"굵게","left":"왼쪽","center":"가운데","right":"오른쪽","extraBold":"매우 굵게","architect":"건축가","artist":"예술가","cartoonist":"만화가","fileTitle":"파일 이름","colorPicker":"색상 선택기","canvasBackground":"캔버스 배경","drawingCanvas":"캔버스 그리기","layers":"레이어","actions":"동작","language":"언어","liveCollaboration":"라이브 협력","duplicateSelection":"복제","untitled":"제목 없음","name":"이름","yourName":"이름 입력","madeWithExcalidraw":"Made with Excalidraw","group":"그룹 생성","ungroup":"그룹 해제","collaborators":"공동 작업자","showGrid":"그리드 보기","addToLibrary":"라이브러리에 추가","removeFromLibrary":"라이브러리에서 제거","libraryLoadingMessage":"라이브러리 불러오는 중…","libraries":"라이브러리 찾기","loadingScene":"화면 불러오는 중…","align":"정렬","alignTop":"상단 정렬","alignBottom":"하단 정렬","alignLeft":"왼쪽 정렬","alignRight":"오른쪽 정렬","centerVertically":"수직으로 중앙 정렬","centerHorizontally":"수평으로 중앙 정렬","distributeHorizontally":"수평으로 분배","distributeVertically":"수직으로 분배","flipHorizontal":"좌우반전","flipVertical":"상하반전","viewMode":"보기 모드","toggleExportColorScheme":"","share":"공유","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"개인 라이브러리","excalidrawLib":"Excalidraw 라이브러리","decreaseFontSize":"폰트 사이즈 줄이기","increaseFontSize":"폰트 사이즈 키우기","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"캔버스 초기화","exportJSON":"파일로 익스포트","exportImage":"이미지로 저장","export":"내보내기","exportToPng":"PNG로 내보내기","exportToSvg":"SVG로 내보내기","copyToClipboard":"클립보드로 복사","copyPngToClipboard":"클립보드로 PNG 이미지 복사","scale":"크기","save":"현재 파일에 저장","saveAs":"다른 이름으로 저장","load":"불러오기","getShareableLink":"공유 가능한 링크 생성","close":"닫기","selectLanguage":"언어 선택","scrollBackToContent":"콘텐츠 영역으로 스크롤하기","zoomIn":"확대","zoomOut":"축소","resetZoom":"확대/축소 초기화","menu":"메뉴","done":"완료","edit":"수정","undo":"실행 취소","redo":"다시 실행","resetLibrary":"라이브러리 리셋","createNewRoom":"방 만들기","fullScreen":"전체화면","darkMode":"다크 모드","lightMode":"밝은 모드","zenMode":"젠 모드","exitZenMode":"젠 모드 종료하기","cancel":"취소","clear":"지우기","remove":"삭제","publishLibrary":"게시하기","submit":"제출","confirm":"확인"},"alerts":{"clearReset":"모든 작업 내용이 초기화됩니다. 계속하시겠습니까?","couldNotCreateShareableLink":"공유 가능한 링크를 생성할 수 없습니다.","couldNotCreateShareableLinkTooBig":"공유 가능한 링크를 생성할 수 없습니다: 화면이 너무 큽니다.","couldNotLoadInvalidFile":"유효하지 않은 파일입니다.","importBackendFailed":"서버로부터 불러 오지 못했습니다.","cannotExportEmptyCanvas":"빈 캔버스를 내보낼 수 없습니다.","couldNotCopyToClipboard":"클립 보드에 복사할 수 없습니다. Chrome 브라우저에서 시도해 주세요.","decryptFailed":"데이터를 복호화하지 못했습니다.","uploadedSecurly":"업로드는 종단 간 암호화로 보호되므로 Excalidraw 서버 및 타사가 콘텐츠를 읽을 수 없습니다.","loadSceneOverridePrompt":"외부 파일을 불러 오면 기존 콘텐츠가 대체됩니다. 계속 진행할까요?","collabStopOverridePrompt":"협업 세션을 종료하면 로컬 저장소에 있는 그림이 협업 세션의 그림으로 대체됩니다. 진행하겠습니까?\\n\\n(로컬 저장소에 있는 그림을 유지하려면 현재 브라우저 탭을 닫아주세요.)","errorLoadingLibrary":"외부 라이브러리를 불러오는 중에 문제가 발생했습니다.","errorAddingToLibrary":"아이템을 라이브러리에 추가 할수 없습니다","errorRemovingFromLibrary":"라이브러리에서 아이템을 삭제할수 없습니다","confirmAddLibrary":"{{numShapes}}개의 모양이 라이브러리에 추가됩니다. 계속하시겠어요?","imageDoesNotContainScene":"","cannotRestoreFromImage":"이미지 파일에서 화면을 복구할 수 없었습니다","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"지원하지 않는 파일 형식 입니다.","imageInsertError":"이미지를 삽입할 수 없습니다. 나중에 다시 시도 하십시오","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"선택","image":"이미지 삽입","rectangle":"사각형","diamond":"다이아몬드","ellipse":"타원","arrow":"화살표","line":"선","freedraw":"그리기","text":"텍스트","library":"라이브러리","lock":"선택된 도구 유지하기","penMode":"","link":""},"headings":{"canvasActions":"캔버스 동작","selectedShapeActions":"선택된 모양 동작","shapes":"모양"},"hints":{"canvasPanning":"","linearElement":"여러 점을 연결하려면 클릭하고, 직선을 그리려면 바로 드래그하세요.","freeDraw":"클릭 후 드래그하세요. 완료되면 놓으세요.","text":"팁: 선택 툴로 아무 곳이나 더블 클릭해 텍스트를 추가할 수도 있습니다.","text_selected":"","text_editing":"","linearElementMulti":"마지막 지점을 클릭하거나 Esc 또는 Enter 키를 눌러 완료하세요.","lockAngle":"SHIFT 키를 누르면서 회전하면 각도를 제한할 수 있습니다.","resize":"SHIFT 키를 누르면서 조정하면 크기의 비율이 제한됩니다.\\nALT를 누르면서 조정하면 중앙을 기준으로 크기를 조정합니다.","resizeImage":"","rotate":"SHIFT 키를 누르면서 회전하면 각도를 제한할 수 있습니다.","lineEditor_info":"지점을 수정하려면 두 번 클릭하거나 Enter 키를 누르세요.","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"미리보기를 볼 수 없습니다","canvasTooBig":"캔버스가 너무 큽니다.","canvasTooBigTip":"팁: 멀리 있는 요소들을 좀 더 가까이로 붙여 보세요."},"errorSplash":{"headingMain_pre":"오류가 발생했습니다. ","headingMain_button":"페이지 새로고침","clearCanvasMessage":"새로고침으로 해결되지 않을 경우, ","clearCanvasMessage_button":"캔버스 비우기","clearCanvasCaveat":" 작업 내용을 잃게 됩니다 ","trackedToSentry_pre":"오류 ","trackedToSentry_post":" 가 시스템에서 발견되었습니다.","openIssueMessage_pre":"저희는 화면 정보를 오류에 포함하지 않도록 매우 주의하고 있습니다. 혹시 화면에 민감한 내용이 없다면 이곳에 업로드를 고려해주세요.","openIssueMessage_button":"버그 트래커","openIssueMessage_post":" 아래 정보를 GitHub 이슈에 복사 및 붙여넣기해 주세요.","sceneContent":"화면 내용:"},"roomDialog":{"desc_intro":"현재 화면에 공동 작업자를 초대해 협업할 수 있습니다.","desc_privacy":"안심하세요, 세션은 종단 간 암호화를 사용하므로 당신의 작업은 비공개로 유지되며 서버조차도 작업 내용을 알 수 없습니다.","button_startSession":"세션 시작","button_stopSession":"세션 중단","desc_inProgressIntro":"실시간 협업 세션이 진행 중입니다.","desc_shareLink":"공동 작업자에게 이 링크를 공유하세요.","desc_exitSession":"세션을 중단하면 연결은 끊어지나 작업을 이어갈 수 있습니다. 이 작업은 다른 작업자에게 영향을 미치지 않으며 각자의 공동 작업은 계속 유지됩니다.","shareTitle":""},"errorDialog":{"title":"오류"},"exportDialog":{"disk_title":"디스크에 저장","disk_details":"","disk_button":"파일로 저장","link_title":"공유 가능한 링크 생성","link_details":"","link_button":"링크로 내보내기","excalidrawplus_description":"","excalidrawplus_button":"내보내기","excalidrawplus_exportError":""},"helpDialog":{"blog":"블로그 읽어보기","click":"클릭","deepSelect":"","deepBoxSelect":"","curvedArrow":"곡선 화살표","curvedLine":"곡선","documentation":"설명서","doubleClick":"더블 클릭","drag":"드래그","editor":"에디터","editSelectedShape":"선택한 도형 편집하기(텍스트/화살표/라인)","github":"문제 제보하기","howto":"가이드 참고하기","or":"또는","preventBinding":"화살표가 붙지 않게 하기","shapes":"도형","shortcuts":"키보드 단축키","textFinish":"편집 완료 (텍스트 에디터)","textNewLine":"줄바꿈(텍스트 에디터)","title":"도움말","view":"보기","zoomToFit":"모든 요소가 보이도록 확대/축소","zoomToSelection":"선택 영역으로 확대/축소"},"clearCanvasDialog":{"title":"캔버스 지우기"},"publishDialog":{"title":"","itemName":"아이템 이름","authorName":"저자명","githubUsername":"깃허브 사용자이름","twitterUsername":"트위터 사용자이름","libraryName":"라이브러리 이름","libraryDesc":"","website":"웹사이트","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"필수사항","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"가이드라인","post":""},"noteLicense":{"pre":"","link":"MIT 라이선스, ","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":"여기"},"confirmDialog":{"resetLibrary":"라이브러리 리셋","removeItemsFromLib":""},"encrypted":{"tooltip":"그림은 종단 간 암호화되므로 Excalidraw의 서버는 절대로 내용을 알 수 없습니다.","link":""},"stats":{"angle":"각도","element":"요소","elements":"요소","height":"높이","scene":"화면","selected":"선택됨","storage":"저장공간","title":"덕후들을 위한 통계","total":"합계","version":"버전","versionCopy":"복사하려면 클릭","versionNotAvailable":"해당 버전 사용 불가능","width":"너비"},"toast":{"addedToLibrary":"라이브러리에 추가되었습니다","copyStyles":"스타일 복사.","copyToClipboard":"클립보드로 복사.","copyToClipboardAsPng":"","fileSaved":"파일이 저장되었습니다.","fileSavedToFilename":"{filename} 로 저장되었습니다","canvas":"캔버스","selection":"선택"},"colors":{"495057":"","ffffff":"화이트","f8f9fa":"그레이 0","f1f3f5":"그레이 1","fff5f5":"레드 0","fff0f6":"핑크 0","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},3755:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Įklijuoti","pasteCharts":"Įklijuoti diagramas","selectAll":"Pažymėti viską","multiSelect":"","moveCanvas":"","cut":"Iškirpti","copy":"Kopijuoti","copyAsPng":"","copyAsSvg":"","bringForward":"","sendToBack":"","bringToFront":"","sendBackward":"","delete":"Ištrinti","copyStyles":"Kopijuoti stilius","pasteStyles":"Įklijuoti stilius","stroke":"Linija","background":"Fonas","fill":"Užpildymas","strokeWidth":"Linijos storis","strokeStyle":"Linijos stilius","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"","opacity":"","textAlign":"","edges":"Kraštai","sharp":"","round":"","arrowheads":"","arrowhead_none":"","arrowhead_arrow":"","arrowhead_bar":"","arrowhead_dot":"","arrowhead_triangle":"Trikampis","fontSize":"","fontFamily":"","onlySelected":"","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"Sukurta su Excalidraw","handDrawn":"","normal":"Normalus","code":"Kodas","small":"Mažas","medium":"Vidutinis","large":"Didelis","veryLarge":"","solid":"","hachure":"","crossHatch":"","thin":"","bold":"","left":"","center":"","right":"","extraBold":"","architect":"","artist":"","cartoonist":"","fileTitle":"Failo pavadinimas","colorPicker":"","canvasBackground":"","drawingCanvas":"","layers":"","actions":"","language":"","liveCollaboration":"","duplicateSelection":"","untitled":"","name":"","yourName":"Jūsų vardas","madeWithExcalidraw":"Sukurta su Excalidraw","group":"Grupuoti pasirinkimą","ungroup":"Išgrupuoti pasirinkimą","collaborators":"Bendradarbiautojai","showGrid":"Rodyti tinklelį","addToLibrary":"Pridėti į biblioteką","removeFromLibrary":"Pašalinti iš bibliotekos","libraryLoadingMessage":"","libraries":"Naršyti bibliotekas","loadingScene":"","align":"Lygiuoti","alignTop":"Lygiuoti viršuje","alignBottom":"Lygiuoti apačioje","alignLeft":"Lygiuoti kairėje","alignRight":"Lygiuoti dešinėje","centerVertically":"Centruoti vertikaliai","centerHorizontally":"Centruoti horizontaliai","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"Apversti horizontaliai","flipVertical":"Apversti vertikaliai","viewMode":"","toggleExportColorScheme":"","share":"Dalintis","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"Asmeninė biblioteka","excalidrawLib":"Exaclidraw biblioteka","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"Eksportuoti į failą","exportImage":"Išsaugoti kaip paveikslėlį","export":"Eksportuoti","exportToPng":"Eksportuoti į PNG","exportToSvg":"Eksportuoti į SVG","copyToClipboard":"Kopijuoti į iškarpinę","copyPngToClipboard":"Kopijuoti PNG į iškarpinę","scale":"","save":"","saveAs":"Išsaugoti kaip","load":"Įkelti","getShareableLink":"Gauti nuorodą dalinimuisi","close":"Uždaryti","selectLanguage":"Pasirinkite kalbą","scrollBackToContent":"","zoomIn":"Priartinti","zoomOut":"Nutolinti","resetZoom":"","menu":"Meniu","done":"","edit":"Redaguoti","undo":"Anuliuoti","redo":"","resetLibrary":"Atstatyti biblioteką","createNewRoom":"Sukurti naują kambarį","fullScreen":"Visas ekranas","darkMode":"Tamsus režimas","lightMode":"Šviesus režimas","zenMode":"„Zen“ režimas","exitZenMode":"Išeiti iš „Zen“ režimo","cancel":"Atšaukti","clear":"Išvalyti","remove":"Pašalinti","publishLibrary":"Paskelbti","submit":"Pateikti","confirm":"Patvirtinti"},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"","rectangle":"","diamond":"","ellipse":"","arrow":"","line":"","freedraw":"Piešti","text":"Tekstas","library":"Biblioteka","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":"Figūros"},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"Pradėti seansą","button_stopSession":"Sustabdyti seansą","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":"Klaida"},"exportDialog":{"disk_title":"Įrašyti į diską","disk_details":"","disk_button":"Įrašyti į failą","link_title":"Nuoroda dalinimuisi","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"vilkti","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"Figūros","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"Tinklalapis","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":"čia"},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"","total":"","version":"","versionCopy":"","versionNotAvailable":"","width":""},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},2327:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Ielīmēt","pasteCharts":"Ielīmēt grafikus","selectAll":"Atlasīt visu","multiSelect":"Pievienot elementu atlasei","moveCanvas":"Pārvietot tāfeli","cut":"Izgriezt","copy":"Kopēt","copyAsPng":"Kopēt starpliktuvē kā PNG","copyAsSvg":"Kopēt starpliktuvē kā SVG","bringForward":"Pārvietot vienu slāni augstāk","sendToBack":"Pārvietot uz zemāko slāni","bringToFront":"Pārvietot uz virsējo slāni","sendBackward":"Pārvietot par vienu slāni zemāk","delete":"Dzēst","copyStyles":"Kopēt stilus","pasteStyles":"Ielīmēt stilus","stroke":"Svītras krāsa","background":"Fona krāsa","fill":"Aizpildījums","strokeWidth":"Svītras platums","strokeStyle":"Svītras stils","strokeStyle_solid":"Vienlaidu","strokeStyle_dashed":"Raustīta līnija","strokeStyle_dotted":"Punktota līnija","sloppiness":"Precizitāte","opacity":"Necaurspīdīgums","textAlign":"Teksta līdzināšana","edges":"Malas","sharp":"Asas","round":"Apaļas","arrowheads":"Bultas","arrowhead_none":"Nekādas","arrowhead_arrow":"Bulta","arrowhead_bar":"Svītra","arrowhead_dot":"Punkts","arrowhead_triangle":"Trijstūris","fontSize":"Teksta lielums","fontFamily":"Fontu saime","onlySelected":"Tikai atlasītais","withBackground":"Fons","exportEmbedScene":"Iegult ainu","exportEmbedScene_details":"Ainas dati tiks iekļauti saglabātajā PNG/SVG datnē, lai no tās būtu iespējams ainu atgūt. Tas palielinās datnes izmēru.","addWatermark":"Pievienot \\"Radīts ar Excalidraw\\"","handDrawn":"Rokraksts","normal":"Parasts","code":"Kods","small":"Mazs","medium":"Vidējs","large":"Liels","veryLarge":"Ļoti liels","solid":"Pilns","hachure":"Svītrots","crossHatch":"Šķērssvītrots","thin":"Šaurs","bold":"Trekns","left":"Pa kreisi","center":"Vidū","right":"Pa labi","extraBold":"Īpaši trekns","architect":"Arhitekts","artist":"Mākslinieks","cartoonist":"Karikatūrists","fileTitle":"Datnes nosaukums","colorPicker":"Krāsu atlasītājs","canvasBackground":"Ainas fons","drawingCanvas":"Tāfele","layers":"Slāņi","actions":"Darbības","language":"Valoda","liveCollaboration":"Sadarbība tiešsaistē","duplicateSelection":"Izveidot kopiju","untitled":"Bez nosaukuma","name":"Vārds","yourName":"Jūsu vārds","madeWithExcalidraw":"Radīts ar Excalidraw","group":"Grupēt atlasīto","ungroup":"Atgrupēt atlasīto","collaborators":"Dalībnieki","showGrid":"Rādīt režģi","addToLibrary":"Pievienot bibliotēkai","removeFromLibrary":"Izņemt no bibliotēkas","libraryLoadingMessage":"Ielādē bibliotēku…","libraries":"Apskatīt bibliotēkas","loadingScene":"Ielādē ainu…","align":"Līdzināt","alignTop":"Līdzināt augšpusē","alignBottom":"Līdzināt lejā","alignLeft":"Līdzināt pa kreisi","alignRight":"Līdzināt pa labi","centerVertically":"Centrēt vertikāli","centerHorizontally":"Centrēt horizontāli","distributeHorizontally":"Izdalīt horizontāli","distributeVertically":"Izdalīt vertikāli","flipHorizontal":"Apmest horizontāli","flipVertical":"Apmest vertikāli","viewMode":"Skata režīms","toggleExportColorScheme":"Pārslēgt eksporta krāsu tēmu","share":"Kopīgot","showStroke":"Rādīt svītras krāsas atlasītāju","showBackground":"Rādīt fona krāsas atlasītāju","toggleTheme":"Pārslēgt krāsu tēmu","personalLib":"Personīgā bibliotēka","excalidrawLib":"Excalidraw bibliotēka","decreaseFontSize":"Samazināt fonta izmēru","increaseFontSize":"Palielināt fonta izmēru","unbindText":"Atdalīt tekstu","link":{"edit":"Rediģēt saiti","create":"Izveidot saiti","label":"Saite"}},"buttons":{"clearReset":"Atiestatīt tāfeli","exportJSON":"Eksportēt kā failu","exportImage":"Saglabāt kā attēlu","export":"Eksportēt","exportToPng":"Eksportēt kā PNG","exportToSvg":"Eksportēt kā SVG","copyToClipboard":"Kopēt starpliktuvē","copyPngToClipboard":"Kopēt PNG starpliktuvē","scale":"Mērogs","save":"Saglabāt pašreizējo datni","saveAs":"Saglabāt kā","load":"Ielādēt","getShareableLink":"Iegūt kopīgošanas saiti","close":"Aizvērt","selectLanguage":"Izvēlieties valodu","scrollBackToContent":"Atgriezties pie satura","zoomIn":"Tuvināt","zoomOut":"Tālināt","resetZoom":"Atiestatīt tuvinājumu","menu":"Izvēlne","done":"Gatavs","edit":"Rediģēt","undo":"Atsaukt","redo":"Atcelt atsaukšanu","resetLibrary":"Atiestatīt bibliotēku","createNewRoom":"Izveidot jaunu telpu","fullScreen":"Pilnekrāna režīms","darkMode":"Tumšais režīms","lightMode":"Gaišais režīms","zenMode":"Zen režīms","exitZenMode":"Pamest Zen režīmu","cancel":"Atcelt","clear":"Notīrīt","remove":"Noņemt","publishLibrary":"Publicēt","submit":"Iesniegt","confirm":"Apstiprināt"},"alerts":{"clearReset":"Šī funkcija notīrīs visu tāfeli. Vai turpināt?","couldNotCreateShareableLink":"Nevarēja izveidot kopīgojamo saiti.","couldNotCreateShareableLinkTooBig":"Nevarēja izveidot kopīgojamo saiti – aina ir par lielu","couldNotLoadInvalidFile":"Nevarēja ielādēt nederīgu datni","importBackendFailed":"Ielāde no krātuves neizdevās.","cannotExportEmptyCanvas":"Nevar eksportēt tukšu tāfeli.","couldNotCopyToClipboard":"Neizdevās kopēt starpliktuvē. Mēģiniet vēlreiz, izmantojot pārlūku Chrome.","decryptFailed":"Nevarēja atšifrēt datus.","uploadedSecurly":"Augšuplāde nodrošināta ar šifrēšanu no gala līdz galam, kas nozīmē, ka Excalidraw serveri un trešās puses nevar lasīt saturu.","loadSceneOverridePrompt":"Ārēja satura ielāde aizstās jūsu pašreizējo saturu. Vai vēlaties turpināt?","collabStopOverridePrompt":"Sesijas pārtraukšana pārrakstīs jūsu iepriekšējo zīmējumu, kas saglabāts jūsu pārlūkā. Vai turpināt?\\n\\n(Ja vēlaties paturēt zīmējumu, kas saglabāts jūsu pārlūkā, vienkārši aizveriet pārlūka cilni.)","errorLoadingLibrary":"Lasot trešās puses bibliotēku, notika kļūda.","errorAddingToLibrary":"Nevarēja pievienot vienumu bibliotēkai","errorRemovingFromLibrary":"Nevarēja izņemt vienumu no bibliotēkas","confirmAddLibrary":"Šī funkcija pievienos {{numShapes}} formu(-as) jūsu bibliotēkai. Vai turpināt?","imageDoesNotContainScene":"Šķiet, ka attēls nesatur ainas datus. Vai iespējojāt ainas iegulšanu, kad eksportējāt?","cannotRestoreFromImage":"Ainu nevarēja atgūt no attēla datnes","invalidSceneUrl":"Nevarēja importēt ainu no norādītā URL. Vai nu tas ir nederīgs, vai nesatur derīgus Excalidraw JSON datus.","resetLibrary":"Šī funkcija iztukšos bibliotēku. Vai turpināt?","removeItemsFromsLibrary":"Vai izņemt {{count}} vienumu(s) no bibliotēkas?","invalidEncryptionKey":"Šifrēšanas atslēgai jābūt 22 simbolus garai. Tiešsaistes sadarbība ir izslēgta."},"errors":{"unsupportedFileType":"Neatbalstīts datnes veids.","imageInsertError":"Nevarēja ievietot attēlu. Mēģiniet vēlāk...","fileTooBig":"Datne ir par lielu. Lielākais atļautais izmērs ir {{maxSize}}.","svgImageInsertError":"Nevarēja ievietot SVG attēlu. Šķiet, ka SVG marķējums nav derīgs.","invalidSVGString":"Nederīgs SVG."},"toolBar":{"selection":"Atlase","image":"Ievietot attēlu","rectangle":"Taisnstūris","diamond":"Rombs","ellipse":"Elipse","arrow":"Bulta","line":"Līnija","freedraw":"Zīmēt","text":"Teksts","library":"Bibliotēka","lock":"Paturēt izvēlēto rīku pēc darbības","penMode":"Lietojot pildspalvu, bloķēt tuvināšanu un atļaut tikai zīmēšanu","link":"Pievienot/rediģēt atlasītās figūras saiti"},"headings":{"canvasActions":"Tāfeles darbības","selectedShapeActions":"Izvēlētās formas darbības","shapes":"Formas"},"hints":{"canvasPanning":"Lai bīdītu tāfeli, turiet nospiestu ritināšanas vai atstarpes taustiņu, velkot ar peli","linearElement":"Klikšķiniet, lai sāktu zīmēt vairākus punktus; velciet, lai zīmētu līniju","freeDraw":"Spiediet un velciet; atlaidiet, kad pabeidzat","text":"Ieteikums: lai pievienotu tekstu, varat arī jebkur dubultklikšķināt ar atlases rīku","text_selected":"Dubultklikšķiniet vai spiediet ievades taustiņu, lai rediģētu tekstu","text_editing":"Spiediet iziešanas taustiņu vai CtrlOrCmd+ENTER, lai beigtu rediģēt","linearElementMulti":"Klikšķiniet uz pēdējā punkta vai spiediet izejas vai ievades taustiņu, lai pabeigtu","lockAngle":"Varat ierobežot leņķi, turot nospiestu SHIFT","resize":"Kad maināt izmēru, varat ierobežot proporcijas, turot nospiestu SHIFT,\\nvai arī ALT, lai mainītu izmēru ap centru","resizeImage":"Varat brīvi mainīt izmēru, turot nospiestu SHIFT;\\nturiet nospiestu ALT, lai mainītu izmēru ap centru","rotate":"Rotējot varat ierobežot leņķi, turot nospiestu SHIFT","lineEditor_info":"Dubultklikšķiniet vai spiediet ievades taustiņu, lai rediģētu punktus","lineEditor_pointSelected":"Spiediet dzēšanas taustiņu, lai noņemtu punktus, – CtrlOrCmd+D, lai to kopētu, vai velciet, lai pārvietotu","lineEditor_nothingSelected":"Atlasiet punktu, lai labotu (turiet nospiestu SHIFT, lai atlasītu vairākus),\\nvai turiet Alt un clikšķiniet, lai pievienotu jaunus punktus","placeImage":"Klikšķiniet, lai novietotu attēlu, vai spiediet un velciet, lai iestatītu tā izmēru","publishLibrary":"Publicēt savu bibliotēku","bindTextToElement":"Spiediet ievades taustiņu, lai pievienotu tekstu","deepBoxSelect":"Turient nospiestu Ctrl vai Cmd, lai atlasītu dziļumā un lai nepieļautu objektu pavilkšanu"},"canvasError":{"cannotShowPreview":"Nevar rādīt priekšskatījumu","canvasTooBig":"Iespējams, tāfele ir par lielu.","canvasTooBigTip":"Ieteikums: mēģiniet satuvināt pašus tālākos elementus."},"errorSplash":{"headingMain_pre":"Notikusi kļūda. Mēģiniet ","headingMain_button":"pārlādēt lapu.","clearCanvasMessage":"Ja pārlādēšana nestrādā, mēģiniet ","clearCanvasMessage_button":"notīrīt tāfeli.","clearCanvasCaveat":" Tas novedīs pie darba zaudēšanas ","trackedToSentry_pre":"Kļūda ar kodu ","trackedToSentry_post":" tika noteikta mūsu sistēmā.","openIssueMessage_pre":"Mēs uzmanījāmies, lai neiekļautu jūsu ainas informāciju šajā kļūdā. Ja jūsu aina nav privāta, lūdzu ziņojiet par šo kļūdu mūsu ","openIssueMessage_button":"kļūdu uzskaitē.","openIssueMessage_post":" Lūdzu, miniet sekojošo informāciju to kopējot un ielīmējot jūsu ziņojumā platformā GitHub.","sceneContent":"Ainas saturs:"},"roomDialog":{"desc_intro":"Varat ielūgt cilvēkus pašreizējajā ainā, lai sadarbotos ar tiem.","desc_privacy":"Neuztraucieties, sesija izmanto šifrēšanu no gala līdz galam, tātad jūsu zīmējums paliks privāts. Pat mūsu serveri nevarēs redzēt, ar ko esat nācis klajā.","button_startSession":"Sākt sesiju","button_stopSession":"Beigt sesiju","desc_inProgressIntro":"Notiek tiešsaistes sadarbības sesija.","desc_shareLink":"Dalieties ar šo saiti ar jebkuru, ar ko vēlaties sadarboties:","desc_exitSession":"Sesijas beigšana jūs atvienos no sadarbošanās, bet jūs vēl joprojām varēsiet strādāt ar ainu savā datorā. Ievērojiet, ka šis neietekmēs citus dalībniekus, un viņi vēl joprojām varēs sadarboties savā ainas versijā.","shareTitle":"Pievienoties tiešsaistes sadarbībai programmā Excalidraw"},"errorDialog":{"title":"Kļūda"},"exportDialog":{"disk_title":"Saglabāt diskā","disk_details":"Eksportēt ainas datus datnē, ko vēlāk varēsiet importēt.","disk_button":"Saglabāt datnē","link_title":"Kopīgošanas saite","link_details":"Eksportēt kā tikai lasāmu saiti.","link_button":"Eksportēt kā saiti","excalidrawplus_description":"Saglabāt ainu savā Excalidraw+ darbvietā.","excalidrawplus_button":"Eksportēt","excalidrawplus_exportError":"Pašreiz nevarēja eksportēt uz Excalidraw+..."},"helpDialog":{"blog":"Lasīt mūsu blogu","click":"klikšķis","deepSelect":"Atlasīt dziļumā","deepBoxSelect":"Atlasīt dziļumā kastes ietvaros, un nepieļaut pavilkšanu","curvedArrow":"Liekta bulta","curvedLine":"Liekta līnija","documentation":"Dokumentācija","doubleClick":"dubultklikšķis","drag":"vilkt","editor":"Redaktors","editSelectedShape":"Rediģēt atlasīto figūru (tekstu/bultu/līniju)","github":"Sastapāt kļūdu? Ziņot","howto":"Sekojiet mūsu instrukcijām","or":"vai","preventBinding":"Novērst bultu piesaistīšanos","shapes":"Figūras","shortcuts":"Tastatūras saīsnes","textFinish":"Pabeigt rediģēšanu (teksta redaktorā)","textNewLine":"Nākamā rindiņa (teksta redaktorā)","title":"Palīdzība","view":"Skatīt","zoomToFit":"Iestatīt mērogu, kas iekļauj visus elementus","zoomToSelection":"Iestatīt mērogu, lai rādītu atlasi"},"clearCanvasDialog":{"title":"Notīrīt tāfeli"},"publishDialog":{"title":"Publicēt bibliotēku","itemName":"Vienuma nosaukums","authorName":"Autora vārds","githubUsername":"GitHub lietotājvārds","twitterUsername":"Twitter lietotājvārds","libraryName":"Bibliotēkas nosaukums","libraryDesc":"Bibliotēkas apraksts","website":"Mājaslapa","placeholder":{"authorName":"Jūsu vārds vai lietotājvārds","libraryName":"Jūsu bibliotēkas nosaukums","libraryDesc":"Bibliotēkas apraksts, kas palīdzēs citiem saprast tās pielietojumu","githubHandle":"GitHub lietotājvārds (neobligāts), lai jūs varētu rediģēt bibliotēku pēc tās iesniegšanas izskatīšanai","twitterHandle":"Twitter lietotājvārds (neobligāts), lai mēs varētu jūs pieminēt kā autoru, kad reklamēsim bibliotēku platformā Twitter","website":"Saikne uz jūsu personīgo mājaslapu vai kādu citu lapu (neobligāta)"},"errors":{"required":"Obligāts","website":"Ievadiet derīgu URL"},"noteDescription":{"pre":"Iesniegt savu bibliotēku iekļaušanai ","link":"publiskajā bibliotēku datubāzē","post":", lai citi to varētu izmantot savos zīmējumos."},"noteGuidelines":{"pre":"Šai bibliotēkai vispirms jātiek manuāli apstiprinātai. Lūdzu, izlasiet ","link":"norādījumus","post":" pirms iesniegšanas. Jums vajadzēs GitHub kontu, lai sazinātos un veiktu izmaiņas, ja tādas būs pieprasītas, bet tas nav absolūti nepieciešams."},"noteLicense":{"pre":"Iesniedzot bibliotēku, jūs piekrītat tās publicēšanai saskaņā ar ","link":"MIT Licenci, ","post":"kas īsumā nozīmē, ka jebkurš to varēs izmantot bez ierobežojumiem."},"noteItems":"Katram bibliotēkas vienumam jābūt savam nosaukumam, lai to varētu atrast filtrējot. Tiks iekļauti sekojošie bibliotēkas vienumi:","atleastOneLibItem":"Lūdzu, atlasiet vismaz vienu bibliotēkas vienumu, lai sāktu darbu"},"publishSuccessDialog":{"title":"Bibliotēka iesniegta","content":"Paldies, {{authorName}}! Jūsu bibliotēka iesniegta izskatīšanai. Jūs varat izsekot iesnieguma statusam","link":"šeit"},"confirmDialog":{"resetLibrary":"Atiestatīt bibliotēku","removeItemsFromLib":"Noņemt atlasītos vienumus no bibliotēkas"},"encrypted":{"tooltip":"Jūsu zīmējumi ir šifrēti no gala līdz galam; līdz ar to Excalidraw serveri tos nekad neredzēs.","link":"Ieraksts par šifrēšanu no gala līdz galam Excalidraw blogā"},"stats":{"angle":"Leņķis","element":"Elements","elements":"Elementi","height":"Augstums","scene":"Aina","selected":"Atlasīti","storage":"Krātuve","title":"Statistika entuziastiem","total":"Kopā","version":"Versija","versionCopy":"Klikšķiniet, lai nokopētu","versionNotAvailable":"Versija nav pieejama","width":"Platums"},"toast":{"addedToLibrary":"Pievienots bibliotēkai","copyStyles":"Nokopēja stilus.","copyToClipboard":"Nokopēja starpliktuvē.","copyToClipboardAsPng":"Nokopēja {{exportSelection}} starpliktuvē kā PNG ({{exportColorScheme}})","fileSaved":"Datne saglabāta.","fileSavedToFilename":"Saglabāts kā {filename}","canvas":"tāfeli","selection":"atlasi"},"colors":{"495057":"Pelēks 7","ffffff":"Balts","f8f9fa":"Pelēks 0","f1f3f5":"Pelēks 1","fff5f5":"Sarkans 0","fff0f6":"Rozā 0","f8f0fc":"Vīnogu 0","f3f0ff":"Violets 0","edf2ff":"Indigo 0","e7f5ff":"Zils 0","e3fafc":"Ciāns 0","e6fcf5":"Zilganzaļš 0","ebfbee":"Zaļš 0","f4fce3":"Laims 0","fff9db":"Dzeltens 0","fff4e6":"Oranžs 0","transparent":"Caurspīdīgs","ced4da":"Pelēks 4","868e96":"Pelēks 6","fa5252":"Sarkans 6","e64980":"Rozā 6","be4bdb":"Vīnogu 6","7950f2":"Violets 6","4c6ef5":"Indigo 6","228be6":"Zils 6","15aabf":"Ciāns 6","12b886":"Zilganzaļš 6","40c057":"Zaļš 6","82c91e":"Laims 6","fab005":"Dzeltens 6","fd7e14":"Oranžs 6","000000":"Melns","343a40":"Pelēks 8","c92a2a":"Sarkans 9","a61e4d":"Rozā 9","862e9c":"Vīnogu 9","5f3dc4":"Violets 9","364fc7":"Indigo 9","1864ab":"Zils 9","0b7285":"Ciāns 9","087f5b":"Zilganzaļš 9","2b8a3e":"Zaļš 9","5c940d":"Laims 9","e67700":"Dzeltens 9","d9480f":"Oranžs 9"}}')},7704:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"ထား","pasteCharts":"","selectAll":"အကုန်ရွေး","multiSelect":"ရွေးထားသည့်ထဲပုံထည့်","moveCanvas":"ကားချပ်ရွှေ့","cut":"","copy":"ကူး","copyAsPng":"PNG အနေဖြင့်ကူး","copyAsSvg":"SVG အနေဖြင့်ကူး","bringForward":"ရှေ့ပို့","sendToBack":"နောက်ဆုံးထား","bringToFront":"ရှေ့ဆုံးထား","sendBackward":"နောက်ပို့","delete":"ဖျက်","copyStyles":"ပုံစံကူး","pasteStyles":"ပုံစံထား","stroke":"မျဉ်း","background":"နောက်ခံ","fill":"ဖြည့်","strokeWidth":"မျဉ်းအထူ","strokeStyle":"မျဉ်းပုံစံ","strokeStyle_solid":"အပြည့်","strokeStyle_dashed":"မျဉ်းပြတ်","strokeStyle_dotted":"မျဉ်းစက်","sloppiness":"သေသပ်မှု","opacity":"ထင်ရှားမှု","textAlign":"စာသားညှိ","edges":"အစွန်း","sharp":"ထောင့်ချွန်","round":"ထောင့်ဝိုင်း","arrowheads":"မြှားခေါင်း","arrowhead_none":"ဘာမျှမရှိ","arrowhead_arrow":"မြှား","arrowhead_bar":"","arrowhead_dot":"အစက်","arrowhead_triangle":"","fontSize":"စာလုံးအရွယ်","fontFamily":"စာလုံးပုံစံ","onlySelected":"ရွေးထားသလောက်","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"ထုတ်ယူလိုက်သော PNG/SVG ထဲမြင်ကွင်းအချက်အလက်များပါဝင်သဖြင့် ပြန်လည်ရယူနိုင်သော်လည်း ဖိုင်အရွယ်အစားကြီးပါမည်။","addWatermark":"\\"Excalidraw ဖြင့်ဖန်တီးသည်။\\" စာသားထည့်","handDrawn":"လက်ရေး","normal":"ပုံမှန်","code":"ကုဒ်","small":"အသေး","medium":"အလတ်","large":"အကြီး","veryLarge":"ပိုကြီး","solid":"အပြည့်","hachure":"မျဉ်းစောင်း","crossHatch":"ဇကာကွက်","thin":"ပါး","bold":"ထူ","left":"ဘယ်","center":"အလယ်","right":"ညာ","extraBold":"ပိုထူ","architect":"ဗိသုကာ","artist":"ပန်းချီ","cartoonist":"ကာတွန်း","fileTitle":"","colorPicker":"အရောင်ရွေး","canvasBackground":"ကားချပ်နောက်ခံ","drawingCanvas":"ပုံဆွဲကားချပ်","layers":"အလွှာများ","actions":"လုပ်ဆောင်ချက်များ","language":"ဘာသာစကား","liveCollaboration":"","duplicateSelection":"ပွား","untitled":"အမည်မရှိ","name":"အမည်","yourName":"သင့်အမည်","madeWithExcalidraw":"Excalidraw ဖြင့်ဖန်တီးသည်။","group":"အုပ်စုဖွဲ့","ungroup":"အုပ်စုဖျက်သိမ်း","collaborators":"ပူးပေါင်းပါဝင်သူများ","showGrid":"","addToLibrary":"မှတ်တမ်းတင်","removeFromLibrary":"မှတ်တမ်းမှထုတ်","libraryLoadingMessage":"မှတ်တမ်းအား တင်သွင်းနေသည်…","libraries":"စာကြည့်တိုက်တွင်ရှာဖွေပါ","loadingScene":"မြင်ကွင်းဖော်နေသည်…","align":"ချိန်ညှိ","alignTop":"ထိပ်ညှိ","alignBottom":"အခြေညှိ","alignLeft":"ဘယ်ညှိ","alignRight":"ညာညှိ","centerVertically":"ဒေါင်လိုက်အလယ်ညှိ","centerHorizontally":"အလျားလိုက်အလယ်ညှိ","distributeHorizontally":"အလျားလိုက်","distributeVertically":"ထောင်လိုက်","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"ကားချပ်ရှင်းလင်း","exportJSON":"","exportImage":"","export":"ထုတ်","exportToPng":"PNG ထုတ်","exportToSvg":"SVG ထုတ်","copyToClipboard":"ကူးယူ","copyPngToClipboard":"PNG ကူးယူ","scale":"စကေး","save":"","saveAs":"ပြောင်းသိမ်း","load":"တင်သွင်း","getShareableLink":"မျှဝေရန် လင့်ခ်ရယူ","close":"ပိတ်","selectLanguage":"ဘာသာစကားရွေးပါ","scrollBackToContent":"ကားချပ်ပြန်တည်","zoomIn":"ချဲ့","zoomOut":"ချုံ့","resetZoom":"ပုံမှန်ပြန်ထား","menu":"မီနူး","done":"ပြီးပြီ","edit":"ပြင်ဆင်","undo":"ပြန်ထား","redo":"ထပ်လုပ်","resetLibrary":"","createNewRoom":"အခန်းသစ်ဖွဲ့","fullScreen":"","darkMode":"","lightMode":"","zenMode":"","exitZenMode":"ဇင်မြင်ကွင်းမှထွက်","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"ကားချပ်တစ်ခုလုံးရှင်းလင်းပါတော့မည်။ အတည်ပြုပါ။","couldNotCreateShareableLink":"မျှဝေရန် လင့်ခ်မရယူနိုင်သေးပါ။","couldNotCreateShareableLinkTooBig":"မြင်ကွင်းအရမ်းကြီးနေသဖြင့် မျှဝေရန် လင့်ခ်မရယူနိုင်သေးပါ။","couldNotLoadInvalidFile":"လွဲမှားနေသောဖိုင်အား တင်၍မရပါ။","importBackendFailed":"Backend မှမလုပ်ဆောင်နိုင်သေးပါ။","cannotExportEmptyCanvas":"ကားချပ်အလွတ်အားထုတ်ယူ၍မရပါ။","couldNotCopyToClipboard":"ကူးယူ၍မရပါ။ Google Chrome တွင်စမ်းကြည့်ပါ။","decryptFailed":"အချက်အလက်ဖော်ယူ၍မရပါ။","uploadedSecurly":"တင်သွင်းအချက်အလက်များအား နှစ်ဘက်စွန်းတိုင်လျှို့ဝှက်စနစ်အသုံးပြု၍လုံခြုံစွာထိန်းသိမ်းထားပါသဖြင့် Excalidraw ဆာဗာနှင့်ဆက်စပ်အဖွဲ့အစည်းများပင်လျှင်မဖတ်ရှုနိုင်ပါ။","loadSceneOverridePrompt":"လက်ရှိရေးဆွဲထားသမျှအား ပြင်ပမှတင်သွင်းသောပုံနှင့်အစားထိုးပါမည်။ ဆက်လက်ဆောင်ရွက်လိုပါသလား။","collabStopOverridePrompt":"","errorLoadingLibrary":"ပြင်ပမှမှတ်တမ်းအားတင်သွင်းရာတွင်အမှားအယွင်းရှိနေသည်။","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"{{numShapes}} ခုသောပုံသဏ္ဌာန်အားမှတ်တမ်းတင်ပါမည်။ အတည်ပြုပါ။","imageDoesNotContainScene":"","cannotRestoreFromImage":"ဤပုံဖြင့်မြင်ကွင်းပြန်လည်မရယူနိုင်ပါ။","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"ရွေးချယ်","image":"","rectangle":"စတုဂံ","diamond":"စိန်","ellipse":"အဝိုင်း","arrow":"မြှား","line":"မျဉ်း","freedraw":"","text":"စာသား","library":"မှတ်တမ်း","lock":"ရွေးချယ်ထားသောကိရိယာကိုသာဆက်သုံး","penMode":"","link":""},"headings":{"canvasActions":"ကားချပ်လုပ်ဆောင်ချက်","selectedShapeActions":"ပုံသဏ္ဌာန်လုပ်ဆောင်ချက်","shapes":"ပုံသဏ္ဌာန်များ"},"hints":{"canvasPanning":"","linearElement":"အမှတ်များချမှတ်ရေးဆွဲရန်ကလစ်နှိပ်ပါ၊ မျဉ်းတစ်ကြောင်းတည်းအတွက် တရွတ်ဆွဲပါ။","freeDraw":"ကလစ်နှိပ်၍ တရွတ်ဆွဲပါ၊ ပြီးလျှင်လွှတ်ပါ။","text":"မှတ်ချက်။ ။မည်သည့်ကိရိယာရွေးထားသည်ဖြစ်စေ ကလစ်နှစ်ချက်နှိပ်၍စာသားထည့်နိုင်သည်","text_selected":"","text_editing":"","linearElementMulti":"နောက်ဆုံးအမှတ်ပေါ်တွင်ကလစ်နှိပ်ခြင်း၊ Escape (သို့) Enter နှိပ်ခြင်းတို့ဖြင့်အဆုံးသတ်နိုင်","lockAngle":"","resize":"အချိုးအစားကန့်သတ်ရန် Shift နှင့် ဗဟိုမှချိန်ညှိရန် Alt တို့ကိုနှိပ်ထားနိုင်သည်","resizeImage":"","rotate":"Shift ကိုနှိပ်ထားခြင်းဖြင့် ထောင့်အလိုက်လှည့်နိုင်သည်","lineEditor_info":"အမှတ်များပြင်ဆင်သတ်မှတ်ရင် ကလစ်နှစ်ချက် (သို့) Enter ကိုနှိပ်ပါ","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"နမူနာမပြသနိုင်ပါ","canvasTooBig":"ကားချပ်အလွန်ကြီးကောင်းကြီးနေနိုင်သည်။","canvasTooBigTip":"မှတ်ချက်။ ။ဝေးကွာနေသော ပုံများ၊ စာများအား ပိုမိုနီးကပ်အောင်ရွှေ့ကြည့်ပါ။"},"errorSplash":{"headingMain_pre":"ချို့ယွင်းမှုဖြစ်ပေါ်ခဲ့သဖြင့် ထပ်မံကြိုးစားကြည့်ရန် ","headingMain_button":"စာမျက်နှာအား အသစ်ပြန်လည်ရယူပါ။","clearCanvasMessage":"အသစ်ပြန်လည်မရယူနိုင်ပါက ထပ်မံကြိုးစားကြည့်ရန်","clearCanvasMessage_button":"ကားချပ်အား ရှင်းလင်းပါ။","clearCanvasCaveat":" ရေးဆွဲထားသည်များ ဆုံးရှုံးနိုင်သည် ","trackedToSentry_pre":"ချို့ယွင်းမှုသတ်မှတ်ချက် ","trackedToSentry_post":" အားစနစ်အတွင်းခြေရာကောက်ပြီးပါပြီ။","openIssueMessage_pre":"ချို့ယွင်းမှုမှတ်တမ်းတွင် အရေးကြီးအချက်အလက်များပါဝင်မှုမရှိစေရန်အထူးသတိပြုပါသည်။ မပါဝင်ပါက ဆက်လက်ဆောင်ရွက်ရန် ","openIssueMessage_button":"ချို့ယွင်းမှုအားခြေရာကောက်ပါ။","openIssueMessage_post":" အောက်ပါအချက်အလက်များအား Github တွင် Issue အနေဖြင့်ဖြည့်သွင်းဖော်ပြပေးပါ။","sceneContent":"မြင်ကွင်းပါအချက်အလက်။ ။"},"roomDialog":{"desc_intro":"လက်ရှိမြင်ကွင်းတွင်ပူးပေါင်းရေးဆွဲရန် အခြားသူများအား ဖိတ်ကြားနိုင်သည်။","desc_privacy":"နှစ်ဘက်စွန်းတိုင်လျှို့ဝှက်ထားသဖြင့်ရေးဆွဲသမျှအား ဆာဗာပေါ်မှပင်လျှင်ကြည့်ရှုနိုင်မည်မဟုတ်ပါ။ မစိုးရိမ်ပါနှင့်။","button_startSession":"ပူးပေါင်းမှုစတင်","button_stopSession":"ပူးပေါင်းမှုအဆုံးသတ်","desc_inProgressIntro":"တိုက်ရိုက်ပူးပေါင်းရေးဆွဲမှုများပြုလုပ်နေပါသည်။","desc_shareLink":"ဤလင့်ခ်အား ပူးပေါင်းရေးဆွဲလိုသူများထံပေးပို့ပါ။ ။ ","desc_exitSession":"ပူးပေါင်းမှုရပ်တန့်ပါက အဖွဲ့အတွင်းမှထွက်ခွာသွားမည်ဖြစ်သော်လည်း မိမိမြင်ကွင်းတွင်ဆက်လက်ရေးဆွဲနိုင်ပါမည်။ အဖွဲ့အတွင်းကျန်ရှိနေခဲ့သောအခြားပါဝင်သူများသည်လည်း ဆက်လက်ပူးပေါင်းရေးဆွဲနေနိုင်ပါလိမ့်မည်။","shareTitle":""},"errorDialog":{"title":"ချို့ယွင်းချက်"},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"ရေးဆွဲထားသောပုံများအား နှစ်ဘက်စွန်းတိုင်လျှို့ဝှက်ထားသဖြင့် Excalidraw ၏ဆာဗာများပင်လျှင်မြင်တွေ့ရမည်မဟုတ်ပါ။","link":""},"stats":{"angle":"ထောင့်","element":"","elements":"","height":"အမြင့်","scene":"မြင်ကွင်း","selected":"ရွေးချယ်သည်","storage":"သိုလှောင်ခန်း","title":"အက္ခရာများအတွက်အချက်အလက်များ","total":"စုစုပေါင်း","version":"","versionCopy":"","versionNotAvailable":"","width":"အကျယ်"},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},1167:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Lim inn","pasteCharts":"Lim inn diagrammer","selectAll":"Velg alt","multiSelect":"Legg til element i utvalg","moveCanvas":"Flytt lerretet","cut":"Klipp ut","copy":"Kopier","copyAsPng":"Kopier til PNG","copyAsSvg":"Kopier til utklippstavlen som SVG","bringForward":"Flytt framover","sendToBack":"Send bakerst","bringToFront":"Flytt forrest","sendBackward":"Send bakover","delete":"Slett","copyStyles":"Kopier stiler","pasteStyles":"Lim inn stiler","stroke":"Strek","background":"Bakgrunn","fill":"Fyll","strokeWidth":"Strektykkelse","strokeStyle":"Strekstil","strokeStyle_solid":"Heltrukket","strokeStyle_dashed":"Stiplet","strokeStyle_dotted":"Prikket","sloppiness":"Ujevnhet","opacity":"Synlighet","textAlign":"Tekstjustering","edges":"Kanter","sharp":"Skarp","round":"Rund","arrowheads":"Pilspisser","arrowhead_none":"Ingen","arrowhead_arrow":"Pil","arrowhead_bar":"Søyle","arrowhead_dot":"Prikk","arrowhead_triangle":"Trekant","fontSize":"Skriftstørrelse","fontFamily":"Fontfamilie","onlySelected":"Kun valgte","withBackground":"Bakgrunn","exportEmbedScene":"Bygg inn scene","exportEmbedScene_details":"Scenedata vil bli lagret i den eksporterte PNG/SVG-filen, slik at scenen kan gjenopprettes fra den.\\nDet vil øke den eksporterte filstørrelsen.","addWatermark":"Legg til \\"Laget med Excalidraw\\"","handDrawn":"Håndtegnet","normal":"Normal","code":"Kode","small":"Liten","medium":"Medium","large":"Stor","veryLarge":"Svært stor","solid":"Helfarge","hachure":"Skravert","crossHatch":"Krysskravert","thin":"Tynn","bold":"Tykk","left":"Venstre","center":"Midtstill","right":"Høyre","extraBold":"Ekstra tykk","architect":"Arkitekt","artist":"Kunstner","cartoonist":"Tegner","fileTitle":"Filnavn","colorPicker":"Fargevelger","canvasBackground":"Lerretsbakgrunn","drawingCanvas":"Lerret","layers":"Lag","actions":"Handlinger","language":"Språk","liveCollaboration":"Sanntids-samarbeid","duplicateSelection":"Dupliser","untitled":"Uten navn","name":"Navn","yourName":"Ditt navn","madeWithExcalidraw":"Laget med Excalidraw","group":"Gruppér utvalg","ungroup":"Avgruppér utvalg","collaborators":"Samarbeidspartnere","showGrid":"Vis rutenett","addToLibrary":"Legg til i bibliotek","removeFromLibrary":"Fjern fra bibliotek","libraryLoadingMessage":"Laster bibliotek…","libraries":"Bla gjennom biblioteker","loadingScene":"Laster inn scene…","align":"Juster","alignTop":"Juster øverst","alignBottom":"Juster nederst","alignLeft":"Juster venstre","alignRight":"Juster høyre","centerVertically":"Midtstill vertikalt","centerHorizontally":"Midtstill horisontalt","distributeHorizontally":"Distribuer horisontalt","distributeVertically":"Distribuer vertikalt","flipHorizontal":"Snu horisontalt","flipVertical":"Snu vertikalt","viewMode":"Visningsmodus","toggleExportColorScheme":"Veksle eksport av fargepalett","share":"Del","showStroke":"Vis fargevelger for kantfarge","showBackground":"Vis fargevelger for bakgrunnsfarge","toggleTheme":"Veksle tema","personalLib":"Personlig bibliotek","excalidrawLib":"Excalidraw-bibliotek","decreaseFontSize":"Reduser skriftstørrelse","increaseFontSize":"Øk skriftstørrelse","unbindText":"Avbind tekst","link":{"edit":"Rediger lenke","create":"Opprett lenke","label":"Lenke"}},"buttons":{"clearReset":"Tøm lerretet og tilbakestill bakgrunnsfargen","exportJSON":"Eksporter til fil","exportImage":"Lagre som bilde","export":"Eksporter","exportToPng":"Eksporter til PNG","exportToSvg":"Eksporter til SVG","copyToClipboard":"Kopier til utklippstavle","copyPngToClipboard":"Kopier PNG til utklippstavlen","scale":"Skalering","save":"Lagre til aktiv fil","saveAs":"Lagre som","load":"Åpne","getShareableLink":"Få delingslenke","close":"Lukk","selectLanguage":"Velg språk","scrollBackToContent":"Skroll tilbake til innhold","zoomIn":"Zoom inn","zoomOut":"Zoom ut","resetZoom":"Nullstill zoom","menu":"Meny","done":"Ferdig","edit":"Rediger","undo":"Angre","redo":"Gjør om","resetLibrary":"Nullstill bibliotek","createNewRoom":"Opprett et nytt rom","fullScreen":"Fullskjerm","darkMode":"Mørk modus","lightMode":"Lys modus","zenMode":"Zen-modus","exitZenMode":"Avslutt zen-modus","cancel":"Avbryt","clear":"Tøm","remove":"Fjern","publishLibrary":"Publiser","submit":"Send inn","confirm":"Bekreft"},"alerts":{"clearReset":"Dette vil tømme lerretet. Er du sikker?","couldNotCreateShareableLink":"Kunne ikke lage delbar lenke.","couldNotCreateShareableLinkTooBig":"Kunne ikke opprette lenke til deling: scenen er for stor","couldNotLoadInvalidFile":"Kunne ikke laste inn ugyldig fil","importBackendFailed":"Importering av backend feilet.","cannotExportEmptyCanvas":"Kan ikke eksportere et tomt lerret.","couldNotCopyToClipboard":"Kunne ikke kopiere til utklippstavlen. Prøv med nettleseren Chrome.","decryptFailed":"Kunne ikke dekryptere data.","uploadedSecurly":"Opplastingen er kryptert og kan ikke leses av Excalidraw-serveren eller tredjeparter.","loadSceneOverridePrompt":"Å laste inn ekstern tegning vil erstatte det eksisterende innholdet. Ønsker du å fortsette?","collabStopOverridePrompt":"Hvis du slutter økten, overskrives din forrige, lokalt lagrede tegning. Er du sikker?\\n\\n(Hvis du ønsker å beholde din lokale tegning, bare lukk nettleserfanen i stedet.)","errorLoadingLibrary":"Det oppstod en feil under lasting av tredjepartsbiblioteket.","errorAddingToLibrary":"Kunne ikke legge element i biblioteket","errorRemovingFromLibrary":"Kunne ikke fjerne element fra biblioteket","confirmAddLibrary":"Dette vil legge til {{numShapes}} figur(er) i biblioteket ditt. Er du sikker?","imageDoesNotContainScene":"Det ser ikke ut til at dette bildet inneholder noen scenedata. Har du aktivert innebygging av scene under eksporten?","cannotRestoreFromImage":"Scenen kunne ikke gjenopprettes fra denne bildefilen","invalidSceneUrl":"Kunne ikke importere scene fra den oppgitte URL-en. Den er enten ødelagt, eller inneholder ikke gyldig Excalidraw JSON-data.","resetLibrary":"Dette vil tømme biblioteket ditt. Er du sikker?","removeItemsFromsLibrary":"Slett {{count}} element(er) fra biblioteket?","invalidEncryptionKey":"Krypteringsnøkkel må ha 22 tegn. Live-samarbeid er deaktivert."},"errors":{"unsupportedFileType":"Filtypen støttes ikke.","imageInsertError":"Kunne ikke sette inn bildet. Prøv igjen senere...","fileTooBig":"Filen er for stor. Maksimal tillatt størrelse er {{maxSize}}.","svgImageInsertError":"Kunne ikke sette inn SVG-bilde. SVG-koden ser ugyldig ut.","invalidSVGString":"Ugyldig SVG."},"toolBar":{"selection":"Velg","image":"Sett inn bilde","rectangle":"Rektangel","diamond":"Diamant","ellipse":"Ellipse","arrow":"Pil","line":"Linje","freedraw":"Tegn","text":"Tekst","library":"Bibliotek","lock":"Behold merket verktøy som aktivt","penMode":"Forhindre zoom ved kniping og godta frihåndstegning kun fra penn","link":"Legg til / oppdater link for en valgt figur"},"headings":{"canvasActions":"Handlinger: lerret","selectedShapeActions":"Handlinger: valgt objekt","shapes":"Former"},"hints":{"canvasPanning":"For å flytte lerretet, hold musehjulet eller mellomromstasten mens du drar","linearElement":"Klikk for å starte linje med flere punkter, eller dra for en enkel linje","freeDraw":"Klikk og dra, slipp når du er ferdig","text":"Tips: du kan også legge til tekst ved å dobbeltklikke hvor som helst med utvalgsverktøyet","text_selected":"Dobbeltklikk eller trykk ENTER for å redigere tekst","text_editing":"Trykk Escape eller Ctrl/Cmd+Enter for å fullføre redigering","linearElementMulti":"Klikk på siste punkt eller trykk Escape eller Enter for å fullføre","lockAngle":"Du kan låse vinkelen ved å holde nede SHIFT","resize":"Du kan beholde forholdet ved å trykke SHIFT mens du endrer størrelse,\\ntrykk ALT for å endre størrelsen fra midten","resizeImage":"Du kan endre størrelse fritt ved å holde SHIFT,\\nhold ALT for å endre størrelse fra midten","rotate":"Du kan låse vinklene ved å holde SHIFT mens du roterer","lineEditor_info":"Dobbeltklikk eller trykk Enter for å redigere punkter","lineEditor_pointSelected":"Trykk på Slett for å fjerne punktet, Ctrl / Cmd+D for å duplisere, eller dra for å flytte","lineEditor_nothingSelected":"Velg et punkt å redigere (hold SHIFT for å velge flere),\\neller hold Alt og klikk for å legge til nye punkter","placeImage":"Klikk for å plassere bildet, eller klikk og dra for å angi størrelsen manuelt","publishLibrary":"Publiser ditt eget bibliotek","bindTextToElement":"Trykk Enter for å legge til tekst","deepBoxSelect":"Hold CTRL/CMD for å markere dypt og forhindre flytting"},"canvasError":{"cannotShowPreview":"Kan ikke vise forhåndsvisning","canvasTooBig":"Lerretet kan være for stort.","canvasTooBigTip":"Tips: Prøv å flytte de ytterste elementene litt tettere sammen."},"errorSplash":{"headingMain_pre":"En feil oppsto. Prøv ","headingMain_button":"å laste siden på nytt.","clearCanvasMessage":"Om ny sidelasting ikke fungerer, prøv ","clearCanvasMessage_button":"å tømme lerretet.","clearCanvasCaveat":" Dette vil føre til tap av arbeid ","trackedToSentry_pre":"Feilen med identifikator ","trackedToSentry_post":" ble logget i vårt system.","openIssueMessage_pre":"Vi er veldig nøye med å ikke inkludere dine scene-opplysninger i feilen. Hvis din scene ikke er privat, vurder å følge opp i vårt ","openIssueMessage_button":"feilrapporteringssystem.","openIssueMessage_post":" Ta med opplysningene nedenfor ved å kopiere og lime inn i GitHub-saken.","sceneContent":"Scene-innhold:"},"roomDialog":{"desc_intro":"Du kan invitere personer til scenen din for å samarbeide med deg.","desc_privacy":"Ta det med ro, sesjonen bruker ende-til-ende-kryptering, så alt du tegner forblir privat. Ikke en gang serveren vår kan se hva du lager.","button_startSession":"Start økt","button_stopSession":"Stopp sesjon","desc_inProgressIntro":"Sanntids-samarbeidsøkt er nå i gang.","desc_shareLink":"Del denne linken med de du vil samarbeide med:","desc_exitSession":"Dersom du avslutter sesjonen blir du frakoblet rommet, men du kan fortsette å arbeide med scenen lokalt. Vær oppmerksom på at dette ikke vil påvirke andre personer, og de vil fortsatt ha mulighet til å samarbeide på deres versjon.","shareTitle":"Bli med i en live samarbeidsøkt på Excalidraw"},"errorDialog":{"title":"Feil"},"exportDialog":{"disk_title":"Lagre til disk","disk_details":"Eksporter scene-dataene til en fil som du kan importere fra senere.","disk_button":"Lagre til fil","link_title":"Delbar lenke","link_details":"Eksporter som en skrivebeskyttet lenke.","link_button":"Eksporter til lenke","excalidrawplus_description":"Lagre scenen til ditt Excalidraw+ arbeidsområde.","excalidrawplus_button":"Eksporter","excalidrawplus_exportError":"Kunne ikke eksportere til Excalidraw+ for øyeblikket..."},"helpDialog":{"blog":"Les bloggen vår","click":"klikk","deepSelect":"Marker dypt","deepBoxSelect":"Marker dypt innad i boks og forhindre flytting","curvedArrow":"Buet pil","curvedLine":"Buet linje","documentation":"Dokumentasjon","doubleClick":"dobbeltklikk","drag":"dra","editor":"Redigeringsvisning","editSelectedShape":"Rediger valgt figur (tekst/pil/linje)","github":"Funnet et problem? Send inn","howto":"Følg våre veiledninger","or":"eller","preventBinding":"Forhindre pilbinding","shapes":"Former","shortcuts":"Tastatursnarveier","textFinish":"Fullfør redigering (teksteditor)","textNewLine":"Legg til ny linje (teksteditor)","title":"Hjelp","view":"Vis","zoomToFit":"Zoom for å se alle elementer","zoomToSelection":"Zoom til utvalg"},"clearCanvasDialog":{"title":"Tøm lerret"},"publishDialog":{"title":"Publiser bibliotek","itemName":"Elementnavn","authorName":"Forfatterens navn","githubUsername":"GitHub-brukernavnet","twitterUsername":"Twitter-brukernavn","libraryName":"Biblioteknavn","libraryDesc":"Beskrivelse av bibliotek","website":"Nettsted","placeholder":{"authorName":"Ditt navn eller brukernavn","libraryName":"Navnet på biblioteket ditt","libraryDesc":"Beskrivelse av biblioteket ditt for å hjelpe folk med å forstå bruken","githubHandle":"Github-brukernavn (valgfritt), slik at du kan redigere biblioteket når du har sendt inn for gjennomgang","twitterHandle":"Twitter-brukernavn (valgfritt), slik at vi vet hvem vi skal kreditere når promotert på Twitter","website":"Lenke til din personlige nettside eller et annet sted (valgfritt)"},"errors":{"required":"Påkrevd","website":"Angi en gyldig nettadresse"},"noteDescription":{"pre":"Send inn biblioteket ditt som skal inkluderes i ","link":"kildekode for offentlig bibliotek","post":"for andre å bruke dem i tegninger."},"noteGuidelines":{"pre":"Biblioteket må godkjennes manuelt først. Les ","link":"retningslinjene","post":" før innsending. Du vil trenge en GitHub-konto for å kommunisere og gjøre endringer hvis ønsket, men det er ikke påkrevd."},"noteLicense":{"pre":"Ved å sende inn godtar du at biblioteket blir publisert under ","link":"MIT-lisens, ","post":"som kortfattet betyr at andre kan bruke dem uten begrensninger."},"noteItems":"Hvert bibliotek må ha sitt eget navn, så det er filtrerbart. Følgende bibliotekselementer vil bli inkludert:","atleastOneLibItem":"Vennligst velg minst ett bibliotek for å komme i gang"},"publishSuccessDialog":{"title":"Bibliotek innsendt","content":"Takk {{authorName}}. Ditt bibliotek har blitt sendt inn for gjennomgang. Du kan spore statusen","link":"her"},"confirmDialog":{"resetLibrary":"Nullstill bibliotek","removeItemsFromLib":"Fjern valgte elementer fra bibliotek"},"encrypted":{"tooltip":"Dine tegninger er ende-til-ende-krypterte slik at Excalidraw sine servere aldri vil se dem.","link":"Blogginnlegg om ende-til-ende-kryptering i Excalidraw"},"stats":{"angle":"Vinkel","element":"Element","elements":"Elementer","height":"Høyde","scene":"Scene","selected":"Valgt","storage":"Lagring","title":"Statistikk for nerder","total":"Totalt","version":"Versjon","versionCopy":"Klikk for å kopiere","versionNotAvailable":"Versjon ikke tilgjengelig","width":"Bredde"},"toast":{"addedToLibrary":"Lagt til i biblioteket","copyStyles":"Kopierte stiler.","copyToClipboard":"Kopiert til utklippstavlen.","copyToClipboardAsPng":"Kopierte {{exportSelection}} til utklippstavlen som PNG\\n({{exportColorScheme}})","fileSaved":"Fil lagret.","fileSavedToFilename":"Lagret til {filename}","canvas":"lerret","selection":"utvalg"},"colors":{"495057":"Grå 7","ffffff":"Hvit","f8f9fa":"Grå 0","f1f3f5":"Grå 1","fff5f5":"Rød 0","fff0f6":"Rosa 0","f8f0fc":"Drue 0","f3f0ff":"Fiolett 0","edf2ff":"Indigo 0","e7f5ff":"Blå 0","e3fafc":"Turkis 0","e6fcf5":"Blågrønn 0","ebfbee":"Grønn 0","f4fce3":"Limegrønn 0","fff9db":"Gul 0","fff4e6":"Oransje 0","transparent":"Gjennomsiktig","ced4da":"Grå 4","868e96":"Grå 6","fa5252":"Rød 6","e64980":"Rosa 6","be4bdb":"Drue 6","7950f2":"Fiolett 6","4c6ef5":"Indigo 6","228be6":"Blå 6","15aabf":"Turkis 6","12b886":"Blågrønn 6","40c057":"Grønn 6","82c91e":"Limegrønn 6","fab005":"Gul 6","fd7e14":"Oransje 6","000000":"Sort","343a40":"Grå 8","c92a2a":"Rød 9","a61e4d":"Rosa 9","862e9c":"Drue 9","5f3dc4":"Fiolett 9","364fc7":"Indigo 9","1864ab":"Blå 9","0b7285":"Turkis 9","087f5b":"Blågrønn 9","2b8a3e":"Grønn 9","5c940d":"Limegrønn 9","e67700":"Gul 9","d9480f":"Oransje 9"}}')},290:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Plakken","pasteCharts":"Plak grafieken","selectAll":"Alles selecteren","multiSelect":"Voeg element toe aan selectie","moveCanvas":"Canvas verplaatsen","cut":"Knip","copy":"Kopiëren","copyAsPng":"Kopieer als PNG","copyAsSvg":"Kopieer naar klembord als SVG","bringForward":"Breng naar voren","sendToBack":"Stuur naar achtergrond","bringToFront":"Breng naar voorgrond","sendBackward":"Breng naar achter","delete":"Verwijderen","copyStyles":"Opmaak kopiëren","pasteStyles":"Opmaak plakken","stroke":"Lijn","background":"Achtergrond","fill":"Invulling","strokeWidth":"Lijnbreedte","strokeStyle":"Lijnstijl","strokeStyle_solid":"Ononderbroken","strokeStyle_dashed":"Gestreept","strokeStyle_dotted":"Gestippeld","sloppiness":"Slordigheid","opacity":"Doorzichtigheid","textAlign":"Uitlijning","edges":"Randen","sharp":"Hoekig","round":"Rond","arrowheads":"Pijlpunten","arrowhead_none":"Geen","arrowhead_arrow":"Pijl","arrowhead_bar":"Balk","arrowhead_dot":"Punt","arrowhead_triangle":"Driehoek","fontSize":"Tekstgrootte","fontFamily":"Lettertype","onlySelected":"Enkel geselecteerde","withBackground":"Achtergrond","exportEmbedScene":"Scène insluiten","exportEmbedScene_details":"Scènegegevens worden in het geëxporteerde PNG/SVG-bestand opgeslagen zodat de scène kan worden hersteld.\\nDe grootte van de geëxporteerde bestanden zal toenemen.","addWatermark":"Voeg \\"Gemaakt met Excalidraw\\" toe","handDrawn":"Handgetekend","normal":"Normaal","code":"Code","small":"Klein","medium":"Medium","large":"Groot","veryLarge":"Zeer groot","solid":"Ingekleurd","hachure":"Arcering","crossHatch":"Tweemaal gearceerd","thin":"Dun","bold":"Vet","left":"Links","center":"Midden","right":"Rechts","extraBold":"Zwaar","architect":"Architect","artist":"Artiest","cartoonist":"Cartoonist","fileTitle":"Bestandsnaam","colorPicker":"Kleurenkiezer","canvasBackground":"Canvas achtergrond","drawingCanvas":"Canvas","layers":"Lagen","actions":"Acties","language":"Taal","liveCollaboration":"Live Samenwerking","duplicateSelection":"Dupliceer","untitled":"Naamloos","name":"Naam","yourName":"Jouw naam","madeWithExcalidraw":"Gemaakt met Excalidraw","group":"Groeperen","ungroup":"Groep opheffen","collaborators":"Deelnemers","showGrid":"Raster weergeven","addToLibrary":"Voeg toe aan bibliotheek","removeFromLibrary":"Verwijder uit bibliotheek","libraryLoadingMessage":"Bibliotheek laden…","libraries":"Blader door bibliotheken","loadingScene":"Scène laden…","align":"Uitlijnen","alignTop":"Boven uitlijnen","alignBottom":"Onder uitlijnen","alignLeft":"Links uitlijnen","alignRight":"Rechts uitlijnen","centerVertically":"Verticaal Centreren","centerHorizontally":"Horizontaal Centreren","distributeHorizontally":"Horizontaal verspreiden","distributeVertically":"Verticaal distribueren","flipHorizontal":"Horizontaal spiegelen","flipVertical":"Verticaal spiegelen","viewMode":"Weergavemodus","toggleExportColorScheme":"Kleurenschema exporteren aan/uit","share":"Deel","showStroke":"Toon lijn kleur kiezer","showBackground":"Toon achtergrondkleur kiezer","toggleTheme":"Thema aan/uit","personalLib":"Persoonlijke bibliotheek","excalidrawLib":"Excalidraw bibliotheek","decreaseFontSize":"","increaseFontSize":"","unbindText":"Ontkoppel tekst","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Canvas opnieuw instellen","exportJSON":"Exporteren naar bestand","exportImage":"Als afbeelding opslaan","export":"Exporteren","exportToPng":"Exporteren naar PNG","exportToSvg":"Exporteren naar SVG","copyToClipboard":"Kopieer","copyPngToClipboard":"Kopieer als PNG","scale":"Schaal","save":"Opslaan naar huidige bestand","saveAs":"Opslaan als","load":"Open","getShareableLink":"Maak een deelbare link","close":"Sluiten","selectLanguage":"Taal selecteren","scrollBackToContent":"Scroll terug naar inhoud","zoomIn":"Inzoomen","zoomOut":"Uitzoomen","resetZoom":"Zoom terugzetten","menu":"Menu","done":"Klaar","edit":"Bewerken","undo":"Ongedaan maken","redo":"Herstel ongedaan maken","resetLibrary":"Bibliotheek Resetten","createNewRoom":"Creëer live-samenwerkingssessie","fullScreen":"Volledig scherm","darkMode":"Donkere modus","lightMode":"Lichte modus","zenMode":"Zen modus","exitZenMode":"Verlaat zen modus","cancel":"Annuleren","clear":"Wissen","remove":"Verwijderen","publishLibrary":"Publiceren","submit":"Versturen","confirm":"Bevestigen"},"alerts":{"clearReset":"Dit zal het hele canvas verwijderen. Weet je het zeker?","couldNotCreateShareableLink":"Kon geen deelbare link aanmaken.","couldNotCreateShareableLinkTooBig":"Kan geen deelbare link aanmaken: de scène is te groot","couldNotLoadInvalidFile":"Kan ongeldig bestand niet laden","importBackendFailed":"Importeren vanuit backend mislukt.","cannotExportEmptyCanvas":"Kan geen leeg canvas exporteren.","couldNotCopyToClipboard":"Kan niet kopiëren. Probeer in de Chrome-browser.","decryptFailed":"Kan gegevens niet decoderen.","uploadedSecurly":"De upload is beveiligd met end-to-end encryptie, wat betekent dat de Excalidraw server en derden de inhoud niet kunnen lezen.","loadSceneOverridePrompt":"Het laden van externe tekening zal uw bestaande inhoud vervangen. Wil je doorgaan?","collabStopOverridePrompt":"Wanneer de sessie wordt gestopt, overschrijft u de eerdere, lokaal opgeslagen tekening. Weet je het zeker?\\n\\n(Als je de lokale tekening wilt behouden, sluit je in plaats daarvan het browsertabblad)","errorLoadingLibrary":"Bij het laden van de externe bibliotheek is een fout opgetreden.","errorAddingToLibrary":"Kan item niet toevoegen aan de bibliotheek","errorRemovingFromLibrary":"Kan item niet uit de bibliotheek verwijderen","confirmAddLibrary":"Hiermee worden {{numShapes}} vorm(n) aan uw bibliotheek toegevoegd. Ben je het zeker?","imageDoesNotContainScene":"Deze afbeelding lijkt geen scène gegevens te bevatten. Heb je scène embedding tijdens het exporteren ingeschakeld?","cannotRestoreFromImage":"Scène kan niet worden hersteld vanuit dit afbeeldingsbestand","invalidSceneUrl":"Kan scène niet importeren vanuit de opgegeven URL. Het is onjuist of bevat geen geldige Excalidraw JSON-gegevens.","resetLibrary":"Dit zal je bibliotheek wissen. Weet je het zeker?","removeItemsFromsLibrary":"Verwijder {{count}} item(s) uit bibliotheek?","invalidEncryptionKey":"Encryptiesleutel moet 22 tekens zijn. Live samenwerking is uitgeschakeld."},"errors":{"unsupportedFileType":"Niet-ondersteund bestandstype.","imageInsertError":"Afbeelding invoegen mislukt. Probeer het later opnieuw...","fileTooBig":"Bestand is te groot. Maximale grootte is {{maxSize}}.","svgImageInsertError":"","invalidSVGString":"Ongeldige SVG."},"toolBar":{"selection":"Selectie","image":"","rectangle":"Rechthoek","diamond":"Ruit","ellipse":"Ovaal","arrow":"Pijl","line":"Lijn","freedraw":"Tekenen","text":"Tekst","library":"Bibliotheek","lock":"Geselecteerde tool actief houden na tekenen","penMode":"Voorkom pinch-zoom en accepteer freedraw invoer alleen van pen","link":""},"headings":{"canvasActions":"Canvasacties","selectedShapeActions":"Acties van geselecteerde vorm","shapes":"Vormen"},"hints":{"canvasPanning":"Om canvas te verplaatsen, houd muiswiel of spatiebalk ingedrukt tijdens slepen","linearElement":"Klik om meerdere punten te starten, sleep voor één lijn","freeDraw":"Klik en sleep, laat los als je klaar bent","text":"Tip: je kunt tekst toevoegen door ergens dubbel te klikken met de selectietool","text_selected":"Dubbelklik of druk op ENTER om tekst te bewerken","text_editing":"Druk op Escape of CtrlOrCmd+ENTER om het bewerken te voltooien","linearElementMulti":"Klik op het laatste punt of druk op Escape of Enter om te stoppen","lockAngle":"Je kunt de hoek beperken door SHIFT ingedrukt te houden","resize":"Houd tijdens het vergroten SHIFT ingedrukt om verhoudingen te behouden,\\ngebruik ALT om vanuit het midden te vergroten/verkleinen","resizeImage":"","rotate":"Je kan hoeken beperken door SHIFT ingedrukt te houden wanneer je draait","lineEditor_info":"Dubbelklik of druk op Enter om punten te bewerken","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"Publiceer je eigen bibliotheek","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Kan voorbeeld niet tonen","canvasTooBig":"Het canvas is mogelijk te groot.","canvasTooBigTip":"Tip: beweeg de verste elementen iets dichter bij elkaar."},"errorSplash":{"headingMain_pre":"Fout opgetreden. Probeer ","headingMain_button":"de pagina opnieuw laden.","clearCanvasMessage":"Als herladen niet werkt, probeer ","clearCanvasMessage_button":"het canvas te wissen.","clearCanvasCaveat":" Dit zal leiden tot verlies van je werk ","trackedToSentry_pre":"De fout met ID ","trackedToSentry_post":" was gevolgd op ons systeem.","openIssueMessage_pre":"We waren voorzichtig om je scène-informatie niet in de fout toe te voegen. Als je scène niet privé is, overweeg dan alstublieft het opvolgen op onze ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Kopieer de informatie hieronder naar de GitHub issue.","sceneContent":"Scène-inhoud:"},"roomDialog":{"desc_intro":"Je kunt mensen uitnodigen om met je samen te werken.","desc_privacy":"Geen zorgen, de sessie gebruikt end-to-end encryptie, dus wat je tekent blijft privé. Zelfs onze server zal niet kunnen zien wat je tekent.","button_startSession":"Sessie starten","button_stopSession":"Sessie afbreken","desc_inProgressIntro":"De live-samenwerkingssessie is nu gestart.","desc_shareLink":"Deel deze link met iedereen waarmee je wil samenwerken:","desc_exitSession":"Het stoppen van de sessie zal je loskoppelen van de kamer, maar je kunt lokaal doorwerken met de scène.\\nPas op: dit heeft geen invloed op andere mensen en dat zij nog steeds in staat zullen zijn om samen te werken aan hun versie.","shareTitle":"Neem deel aan een live samenwerkingssessie op Excalidraw"},"errorDialog":{"title":"Fout"},"exportDialog":{"disk_title":"Opslaan op schijf","disk_details":"De scènegegevens exporteren naar een bestand waaruit u later kunt importeren.","disk_button":"Opslaan naar bestand","link_title":"Deelbare link","link_details":"Exporteren als een alleen-lezen link.","link_button":"Exporteer naar link","excalidrawplus_description":"Sla de scène op in je Excalidraw+ werkruimte.","excalidrawplus_button":"Exporteren","excalidrawplus_exportError":"Kan op dit moment niet exporteren naar Excalidraw+..."},"helpDialog":{"blog":"Lees onze blog","click":"klik","deepSelect":"","deepBoxSelect":"","curvedArrow":"Gebogen pijl","curvedLine":"Kromme lijn","documentation":"Documentatie","doubleClick":"dubbelklikken","drag":"slepen","editor":"Editor","editSelectedShape":"Bewerk geselecteerde vorm (tekst/pijl/lijn)","github":"Probleem gevonden? Verzenden","howto":"Volg onze handleidingen","or":"of","preventBinding":"Pijlbinding voorkomen","shapes":"Vormen","shortcuts":"Sneltoetsen","textFinish":"Voltooi het bewerken (teksteditor)","textNewLine":"Nieuwe regel toevoegen (teksteditor)","title":"Help","view":"Weergave","zoomToFit":"Zoom in op alle elementen","zoomToSelection":"Inzoomen op selectie"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"Publiceer bibliotheek","itemName":"Itemnaam","authorName":"Naam auteur","githubUsername":"GitHub gebruikersnaam","twitterUsername":"Twitter gebruikersnaam","libraryName":"Bibliotheek naam","libraryDesc":"Bibliotheek beschrijving","website":"Website","placeholder":{"authorName":"Uw naam of gebruikersnaam:","libraryName":"Naam van je bibliotheek","libraryDesc":"Beschrijving van uw bibliotheek om mensen te helpen het gebruik ervan te begrijpen","githubHandle":"","twitterHandle":"","website":"Link naar je persoonlijke website of elders (optioneel)"},"errors":{"required":"Vereist","website":"Vul een geldige URL in"},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":"Hier"},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Je tekeningen zijn beveiligd met end-to-end encryptie, dus Excalidraw\'s servers zullen nooit zien wat je tekent.","link":"Blog post over end-to-end versleuteling in Excalidraw"},"stats":{"angle":"Hoek","element":"Element","elements":"Elementen","height":"Hoogte","scene":"Scene","selected":"Geselecteerd","storage":"Opslag","title":"Statistieken voor nerds","total":"Totaal","version":"Versie","versionCopy":"Klik om te kopiëren","versionNotAvailable":"Versie niet beschikbaar","width":"Breedte"},"toast":{"addedToLibrary":"","copyStyles":"Stijlen gekopieerd.","copyToClipboard":"Gekopieerd naar het klembord.","copyToClipboardAsPng":"{{exportSelection}} naar klembord gekopieerd als PNG\\n({{exportColorScheme}})","fileSaved":"Bestand opgeslagen.","fileSavedToFilename":"Opgeslagen als {filename}","canvas":"canvas","selection":"selectie"},"colors":{"495057":"Grijs 7","ffffff":"Wit","f8f9fa":"Grijs 0","f1f3f5":"Grijs 1","fff5f5":"Rood 0","fff0f6":"Roze 0","f8f0fc":"Druiven 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Blauw 0","e3fafc":"Cyaan 0","e6fcf5":"Groenblauw 0","ebfbee":"Groen 0","f4fce3":"Limoen 0","fff9db":"Geel 0","fff4e6":"Oranje 0","transparent":"Transparant","ced4da":"Grijs 4","868e96":"Grijs 6","fa5252":"Rood 6","e64980":"Roze 6","be4bdb":"Druiven 6","7950f2":"Violet","4c6ef5":"Indigo 6","228be6":"Blauw 6","15aabf":"Cyaan 6","12b886":"Groenblauw 6","40c057":"Groen 6","82c91e":"Limoen 6","fab005":"Geel 6","fd7e14":"Oranje 6","000000":"Zwart","343a40":"Grijs 8","c92a2a":"Rood 9","a61e4d":"Roze 9","862e9c":"Druiven 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Blauw 9","0b7285":"Cyaan 9","087f5b":"Groenblauw 9","2b8a3e":"Groen 9","5c940d":"Limoen 9","e67700":"Geel 9","d9480f":"Oranje 9"}}')},4481:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Lim inn","pasteCharts":"Lim inn diagram","selectAll":"Vel alt","multiSelect":"Legg til element i utval","moveCanvas":"Flytt lerretet","cut":"Klipp ut","copy":"Kopier","copyAsPng":"Kopier til utklippstavla som PNG","copyAsSvg":"Kopier til utklippstavla som SVG","bringForward":"Flytt framover","sendToBack":"Send heilt bak","bringToFront":"Flytt heilt fram","sendBackward":"Send bakover","delete":"Slett","copyStyles":"Kopier stilar","pasteStyles":"Lim inn stilar","stroke":"Strek","background":"Bakgrunn","fill":"Fyll","strokeWidth":"Strekbreidd","strokeStyle":"Strekstil","strokeStyle_solid":"Solid","strokeStyle_dashed":"Stipla","strokeStyle_dotted":"Prikka","sloppiness":"Ujamnheit","opacity":"Synlegheit","textAlign":"Tekstjustering","edges":"Kanter","sharp":"Skarp","round":"Rund","arrowheads":"Pilhovud","arrowhead_none":"Ingen","arrowhead_arrow":"Pil","arrowhead_bar":"Stolpe","arrowhead_dot":"Prikk","arrowhead_triangle":"","fontSize":"Skriftstorleik","fontFamily":"Skrifttype","onlySelected":"Kun valde","withBackground":"Bakgrunn","exportEmbedScene":"Bygg inn scene","exportEmbedScene_details":"Scenedata vert lagra i den eksporterte PNG- eller SVG-fila slik at scena kan bli gjenopprettast frå den. Dette vil auke eksportert filstorleik.","addWatermark":"Legg til «Laga med Excalidraw»","handDrawn":"Handteikna","normal":"Normal","code":"Kode","small":"Liten","medium":"Medium","large":"Stor","veryLarge":"Svært stor","solid":"Solid","hachure":"Skravert","crossHatch":"Krysskravert","thin":"Tynn","bold":"Tjukk","left":"Venstre","center":"Midstill","right":"Høgre","extraBold":"Ekstra tjukk","architect":"Arkitekt","artist":"Kunstnar","cartoonist":"Teiknar","fileTitle":"Filnamn","colorPicker":"Fargeveljar","canvasBackground":"Lerretsbakgrunn","drawingCanvas":"Lerret","layers":"Lag","actions":"Handlingar","language":"Språk","liveCollaboration":"Sanntids-samarbeid","duplicateSelection":"Dupliser","untitled":"Utan namn","name":"Namn","yourName":"Namnet ditt","madeWithExcalidraw":"Laga med Excalidraw","group":"Grupper utval","ungroup":"Avgrupper utval","collaborators":"Samarbeidarar","showGrid":"Vis rutenett","addToLibrary":"Legg til i bibliotek","removeFromLibrary":"Fjern frå bibliotek","libraryLoadingMessage":"Laster bibliotek…","libraries":"Blad gjennom bibliotek","loadingScene":"Laster scene…","align":"Juster","alignTop":"Juster til topp","alignBottom":"Juster til botn","alignLeft":"Juster til venstre","alignRight":"Juster til høgre","centerVertically":"Midtstill vertikalt","centerHorizontally":"Midtstill horisontalt","distributeHorizontally":"Sprei horisontalt","distributeVertically":"Sprei vertikalt","flipHorizontal":"Vipp vassrett","flipVertical":"Vipp loddrett","viewMode":"Visningsmodus","toggleExportColorScheme":"Veksle eksport av fargepalett","share":"Del","showStroke":"Vis fargeveljar for linjer","showBackground":"Vis fargeveljar for bakgrunn","toggleTheme":"Veksle tema","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Tilbakestill lerretet","exportJSON":"Eksporter til fil","exportImage":"Lagre som bilete","export":"Eksporter","exportToPng":"Eksporter til PNG","exportToSvg":"Eksporter til SVG","copyToClipboard":"Kopier til utklippstavla","copyPngToClipboard":"Kopier PNG til utklippstavla","scale":"Skaler","save":"Lagre til noverande fil","saveAs":"Lagre som","load":"Opne","getShareableLink":"Hent delingslenke","close":"Lukk","selectLanguage":"Vel språk","scrollBackToContent":"Skroll tilbake til innhald","zoomIn":"Zoom inn","zoomOut":"Zoom ut","resetZoom":"Nullstill zoom","menu":"Meny","done":"Ferdig","edit":"Rediger","undo":"Angre","redo":"Gjer om","resetLibrary":"Nullstill bibliotek","createNewRoom":"Lag nytt rom","fullScreen":"Fullskjerm","darkMode":"Mørk modus","lightMode":"Lys modus","zenMode":"Zen-modus","exitZenMode":"Avslutt zen-modus","cancel":"Avbryt","clear":"Tøm","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"Dette vil tømme lerretet. Er du sikker?","couldNotCreateShareableLink":"Kunne ikkje lage delingslenke.","couldNotCreateShareableLinkTooBig":"Kunne ikkje opprette deleleg lenke: scena er for stor","couldNotLoadInvalidFile":"Kunne ikkje laste inn ugyldig fil","importBackendFailed":"Importering av backend feila.","cannotExportEmptyCanvas":"Kan ikkje eksportere eit tomt lerret.","couldNotCopyToClipboard":"Kunne ikkje kopiere til utklippstavla. Prøv med nettlesaren Chrome.","decryptFailed":"Kunne ikkje dekryptere data.","uploadedSecurly":"Opplastinga er kryptert og er ikkje mogleg å lese av Excalidraw-serveren eller tredjepartar.","loadSceneOverridePrompt":"Innlasting av ekstern teikning erstattar ditt eksisterande innhald. Ynskjer du å fortsette?","collabStopOverridePrompt":"Viss du avsluttar økta overskriv du den førre, lokalt lagra teikninga di. Er du sikker?\\n\\n(Ønsker du å halde fram med denne? Då er det berre å lukke denne fana.)","errorLoadingLibrary":"Det oppstod ein feil under lastinga av tredjepartsbibliotek.","errorAddingToLibrary":"Kunne ikkje legge elementet i biblioteket","errorRemovingFromLibrary":"Kunne ikkje fjerne elementet frå biblioteket","confirmAddLibrary":"Dette vil legge til {{numShapes}} form(er) i biblioteket ditt. Er du sikker?","imageDoesNotContainScene":"Dette biletet ser ikkje ut til å ha noko scenedata. Har du skrutt på innbygging av scene medan eksporteringa heldt på?","cannotRestoreFromImage":"Scena kunne ikkje gjenopprettast frå denne biletfila","invalidSceneUrl":"Kunne ikkje hente noko scene frå den URL-en. Ho er anten øydelagd eller inneheld ikkje gyldig Excalidraw JSON-data.","resetLibrary":"Dette vil fjerne alt innhald frå biblioteket. Er du sikker?","removeItemsFromsLibrary":"","invalidEncryptionKey":"Krypteringsnøkkelen må ha 22 teikn. Sanntidssamarbeid er deaktivert."},"errors":{"unsupportedFileType":"Filtypen er ikkje støtta.","imageInsertError":"Kunne ikkje sette inn biletet. Prøv igjen seinare...","fileTooBig":"Fila er for stor. Maksimal tillate storleik er {{maxSize}}.","svgImageInsertError":"Kunne ikkje sette inn SVG-biletet. SVG-koden ser ugyldig ut.","invalidSVGString":""},"toolBar":{"selection":"Vel","image":"Sett in bilete","rectangle":"Rektangel","diamond":"Diamant","ellipse":"Ellipse","arrow":"Pil","line":"Linje","freedraw":"Teikn","text":"Tekst","library":"Bibliotek","lock":"Hald fram med valt verktøy","penMode":"","link":""},"headings":{"canvasActions":"Handlingar: lerret","selectedShapeActions":"Handlingar: valt objekt","shapes":"Formar"},"hints":{"canvasPanning":"","linearElement":"Klikk for å starte linje med fleire punkt, eller drag for ei enkel linje","freeDraw":"Klikk og drag, slepp når du er ferdig","text":"Tips: du kan òg leggje til tekst ved å dobbeltklikke kor som helst med utvalgsverktyet","text_selected":"Dobbelklikk eller trykk ENTER for å redigere teksta","text_editing":"Trykk Escape eller CtrlOrCmd+ENTER for å fullføre redigeringa","linearElementMulti":"Klikk på siste punkt eller trykk Escape eller Enter for å fullføre","lockAngle":"Du kan begrense vinkelen ved å holde nede SKIFT","resize":"Du kan halde fram med forholdet ved å trykke SHIFT medan du endrar storleik,\\ntrykk ALT for å endre storleiken frå midten","resizeImage":"Du kan endre storleiken fritt ved å halde inne SHIFT,\\nhald ALT for å endre storleik frå sentrum","rotate":"Du kan låse vinklane ved å halde SHIFT medan du roterer","lineEditor_info":"Dobbeltklikk eller trykk Enter for å redigere punkt","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Klikk for å plassere biletet, eller klikk og drag for å velje storleik manuelt","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Kan ikkje vise førehandsvising","canvasTooBig":"Lerretet er mogleg for stort.","canvasTooBigTip":"Tips: prøv å flytte elementa som er lengst frå kvarandre, litt nærare kvarandre."},"errorSplash":{"headingMain_pre":"Ein feil oppstod. Prøv ","headingMain_button":"å laste sida på nytt.","clearCanvasMessage":"Om ny sidelasting ikkje fungerer, prøv ","clearCanvasMessage_button":"å tømme lerretet.","clearCanvasCaveat":" Dette vil føre til tap av arbeid ","trackedToSentry_pre":"Feilen med identifikator ","trackedToSentry_post":" vart logga i systemet vårt.","openIssueMessage_pre":"Vi er veldig nøye med å ikkje inkludere scene-opplysingane dine i feilmeldinga. Viss scena di ikkje er privat kan du vurdere å følge opp i ","openIssueMessage_button":"feilrapporteringssystemet vårt.","openIssueMessage_post":" Ta med opplysingane nedanfor ved å kopiere og lime inn i GitHub-saka.","sceneContent":"Scene-innhald:"},"roomDialog":{"desc_intro":"Du kan invitere personar til scena di for å samarbeide med deg.","desc_privacy":"Ta det med ro; økta brukar ende-til-ende-kryptering, så alt du teiknar held fram med å vere privat. Ikkje ein gong serveren vår kan sjå kva du lagar.","button_startSession":"Start økt","button_stopSession":"Stopp økt","desc_inProgressIntro":"Sanntids-samarbeidsøkt er no i gang.","desc_shareLink":"Del denne lenka med dei du vil samarbeide med:","desc_exitSession":"Dersom du avsluttar økta blir du kopla frå rommet, men du kan halde fram med å arbeide med scena lokalt. Ver merksam på at dette ikkje vil påverke andre personar, og desse vil framleis ha moglegheit til å samarbeide på deira eigen versjon.","shareTitle":"Bli med på eit sanntidssamarbeid på Excalidraw"},"errorDialog":{"title":"Feil"},"exportDialog":{"disk_title":"Lagre til disk","disk_details":"Eksporter scenedataa til ei fil du kan importere seinare.","disk_button":"Lagre til fil","link_title":"Deleleg lenke","link_details":"Eksporter som skrivebeskytta lenke.","link_button":"Eksporter til lenke","excalidrawplus_description":"Lagre scena til Excalidraw+-arbeidsområdet ditt.","excalidrawplus_button":"Eksporter","excalidrawplus_exportError":"Kunne ikkje eksportere til Excalidraw+ akkurat no..."},"helpDialog":{"blog":"Les bloggen vår","click":"klikk","deepSelect":"","deepBoxSelect":"","curvedArrow":"Boga pil","curvedLine":"Boga linje","documentation":"Dokumentasjon","doubleClick":"dobbelklikk","drag":"drag","editor":"Redigering","editSelectedShape":"Rediger valt form (tekst/pil/linje)","github":"Funne eit problem? Send inn","howto":"Følg vegleiinga vår","or":"eller","preventBinding":"Hindre pilkopling","shapes":"Formar","shortcuts":"Tastatursnarvegar","textFinish":"Fullfør redigering (teksthandsamar)","textNewLine":"Legg til ny linje (teksthandsamar)","title":"Hjelp","view":"Vising","zoomToFit":"Zoom for å sjå alle elementa","zoomToSelection":"Zoom til utval"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Teikningane dine er ende-til-ende-krypterte slik at Excalidraw sine serverar aldri får sjå dei.","link":"Blogginnlegg om ende-til-ende-kryptering i Excalidraw"},"stats":{"angle":"Vinkel","element":"Element","elements":"Element","height":"Høgde","scene":"Scene","selected":"Valde","storage":"Lagring","title":"Statistikk for nerdar","total":"Totalt","version":"Versjon","versionCopy":"Klikk for å kopiere","versionNotAvailable":"Versjonen er ikkje tilgjengeleg","width":"Breidde"},"toast":{"addedToLibrary":"","copyStyles":"Kopierte stilane.","copyToClipboard":"Kopiert til utklippstavla.","copyToClipboardAsPng":"Kopierte {{exportSelection}} til utklippstavla som PNG\\n({{exportColorScheme}})","fileSaved":"Fila er lagra.","fileSavedToFilename":"Lagra som {filename}","canvas":"lerret","selection":"val"},"colors":{"495057":"Grå 7","ffffff":"Kvit","f8f9fa":"Grå 0","f1f3f5":"Grå 1","fff5f5":"Raud 0","fff0f6":"Rosa 0","f8f0fc":"Drue 0","f3f0ff":"Fiolett 0","edf2ff":"Indigo 0","e7f5ff":"Blå 0","e3fafc":"Turkis 0","e6fcf5":"Blågrøn 0","ebfbee":"Grøn 0","f4fce3":"Limegrøn 0","fff9db":"Gul 0","fff4e6":"Oransje 0","transparent":"Gjennomsiktig","ced4da":"Grå 4","868e96":"Grå 6","fa5252":"Raud 6","e64980":"Rosa 6","be4bdb":"Drue 6","7950f2":"Fiolett 6","4c6ef5":"Indigo 6","228be6":"Blå 6","15aabf":"Turkis 6","12b886":"Blågrøn 6","40c057":"Grøn 6","82c91e":"Limegrøn 6","fab005":"Gul 6","fd7e14":"Oransje 6","000000":"Svart","343a40":"Grå 8","c92a2a":"Raud 9","a61e4d":"Rosa 9","862e9c":"Drue 9","5f3dc4":"Fiolett 9","364fc7":"Indigo 9","1864ab":"Blå 9","0b7285":"Turkis 9","087f5b":"Blågrøn 9","2b8a3e":"Grøn 9","5c940d":"Limegrøn 9","e67700":"Gul 9","d9480f":"Oransj 9"}}')},2284:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Pegar","pasteCharts":"Pegar los grafics","selectAll":"Tot seleccionar","multiSelect":"Apondre un element a la seleccion","moveCanvas":"Desplaçar lo canabàs","cut":"Talhar","copy":"Copiar","copyAsPng":"Copiar al quichapapièrs coma PNG","copyAsSvg":"Copiar al quichapapièrs coma SVG","bringForward":"En avant","sendToBack":"En arrièr","bringToFront":"A l’endavant","sendBackward":"Endarrièr","delete":"Suprimir","copyStyles":"Copiar los estiles","pasteStyles":"Pegar los estils","stroke":"Contorn","background":"Rèireplan","fill":"Empliment","strokeWidth":"Largor de contorn","strokeStyle":"Estil de contorn","strokeStyle_solid":"Solide","strokeStyle_dashed":"Tiret","strokeStyle_dotted":"Puntilhat","sloppiness":"Estil de traça","opacity":"Opacitat","textAlign":"Alinhament tèxt","edges":"Angles","sharp":"Ponchut","round":"Arredonit","arrowheads":"Cap de la flècha","arrowhead_none":"Cap","arrowhead_arrow":"Sageta","arrowhead_bar":"Barra","arrowhead_dot":"Ponch","arrowhead_triangle":"Triangle","fontSize":"Talha poliça","fontFamily":"Familha de poliça","onlySelected":"Seleccion sonque","withBackground":"Rèireplan","exportEmbedScene":"Scèna embarcada","exportEmbedScene_details":"Las donadas de scèna seràn enregistradas dins lo fichièr PNG/SVG exportat, per que la scèna pòsca èsser restaurada a partir d’aqueste fichièr.\\nAumentarà la talha del fichièr exportat.","addWatermark":"Apondre « Fabricat amb Excalidraw »","handDrawn":"A la man levada","normal":"Normala","code":"Còdi","small":"Pichona","medium":"Mejana","large":"Granda","veryLarge":"Gradassa","solid":"Solide","hachure":"Raia","crossHatch":"Raia crosada","thin":"Fin","bold":"Espés","left":"Esquèrra","center":"Centre","right":"Drecha","extraBold":"Espesàs","architect":"Arquitècte","artist":"Artista","cartoonist":"Dessenhaire","fileTitle":"Nom del fichièr","colorPicker":"Selector de color","canvasBackground":"Rèireplan del canabàs","drawingCanvas":"Zòna de dessenh","layers":"Calques","actions":"Accions","language":"Lenga","liveCollaboration":"Collaboracion en dirèct","duplicateSelection":"Duplicar","untitled":"Sens títol","name":"Nom","yourName":"Vòstre nom","madeWithExcalidraw":"Fabricat amb Excalidraw","group":"Gropar la seleccion","ungroup":"Desunir la seleccion","collaborators":"Collaborators","showGrid":"Afichar la gresilha","addToLibrary":"Apondre a la bibliotèca","removeFromLibrary":"Suprimir de la bibliotèca","libraryLoadingMessage":"Cargament de la bibliotèca…","libraries":"Percórrer las bibliotècas","loadingScene":"Cargament de la scèna…","align":"Alinhament","alignTop":"Alinhar ennaut","alignBottom":"Alinhar enbàs","alignLeft":"Alinhar a esquèrra","alignRight":"Alinhar a drecha","centerVertically":"Centrar verticalament","centerHorizontally":"Centrar orizontalament","distributeHorizontally":"Distribuir orizontalament","distributeVertically":"Distribuir verticalament","flipHorizontal":"Virar orizontalament","flipVertical":"Virar verticalament","viewMode":"Mòde de vista","toggleExportColorScheme":"Alternar l’esquèma de color d’expòrt","share":"Partejar","showStroke":"Mostrar lo selector de color de contorn","showBackground":"Mostrar lo selector de color de fons","toggleTheme":"Alternar tèma","personalLib":"Bibliotèca personala","excalidrawLib":"Bibliotèca Excalidraw","decreaseFontSize":"Reduire talha poliça","increaseFontSize":"Aumentar talha poliça","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Reïnicializar lo canabàs","exportJSON":"Exportar en fichièr","exportImage":"Salvar coma imatge","export":"Exportar","exportToPng":"Exportar en PNG","exportToSvg":"Exportar en SVG","copyToClipboard":"Copiar al quichapapièrs","copyPngToClipboard":"Copiar PNG al quichapapièrs","scale":"Escala","save":"Salvar al fichièr actual","saveAs":"Enregistrar jos","load":"Cargar","getShareableLink":"Obténer lo ligam de partatge","close":"Tampar","selectLanguage":"Causir una lenga","scrollBackToContent":"Tornar al contengut","zoomIn":"Zoom avant","zoomOut":"Zoom arrièr","resetZoom":"Tirar lo zoom","menu":"Menú","done":"Acabat","edit":"Modificar","undo":"Anullar","redo":"Restablir","resetLibrary":"Reïnicializar la bibliotèca","createNewRoom":"Crear sala novèla","fullScreen":"Ecran complèt","darkMode":"Mòde escur","lightMode":"Mòde clar","zenMode":"Mòde escur","exitZenMode":"Sortir del mòde zen","cancel":"Anullar","clear":"Escafar","remove":"Tirar","publishLibrary":"Publicar","submit":"Enviar","confirm":"Confirmar"},"alerts":{"clearReset":"Aquò suprimirà lo canabàs complèt. O volètz vertadièrament ?","couldNotCreateShareableLink":"Creacion impossibla del ligam de partatge.","couldNotCreateShareableLinkTooBig":"Creacion impossibla del ligam de partatge : la scèna es tròp granda","couldNotLoadInvalidFile":"Cargament impossible d’un fichièr invalid","importBackendFailed":"Importacion fracassada.","cannotExportEmptyCanvas":"Impossible d’exportar los canabasses voids.","couldNotCopyToClipboard":"Còpia impossibla al quichapapièrs. Ensajatz d’utilizar lo navegador Chrome.","decryptFailed":"Deschiframent impossible de las donadas.","uploadedSecurly":"Lo telecargament es estat securizat amb un chiframent del cap a la fin, significa que los servidors d’Excalidraw o que quina tèrça part que siá pòdon pas legir lo contengut.","loadSceneOverridePrompt":"Cargar un dessenh extèrn remplaçarà vòstre contengut existent. Volètz contunhar ?","collabStopOverridePrompt":"Arrestar la session remplaçarà vòstre precedent dessenh gardat localament. O volètz vertadièrament ?\\n\\n(Se volètz gardar vòstre dessenh local, tampatz simplament l’onglet del navegador a la plaça)","errorLoadingLibrary":"Una error s’es producha en cargant una bibliotèca tèrça.","errorAddingToLibrary":"Apondon impossible de l’element a la bibliotèca","errorRemovingFromLibrary":"Supression impossibla de l’element a la bibliotèca","confirmAddLibrary":"Apondrà {{numShapes}} forma(s) a vòstra bibliotèca. Confirmatz ?","imageDoesNotContainScene":"Aqueste imatge sembla pas conténer cap de donadas de scèna. Avètz activat l’integracion de scèna pendent l’exportacion ?","cannotRestoreFromImage":"Restauracion impossibla de la scèna a partir del fichièr imatge","invalidSceneUrl":"Importacion impossibla de la scèna a partir de l’URL provesida. Es siá mal formatada o siá conten pas cap de donada JSON Excalidraw valida.","resetLibrary":"Aquò suprimirà vòstra bibliotèca. O volètz vertadièrament ?","removeItemsFromsLibrary":"Suprimir {{count}} element(s) de la bibliotèca ?","invalidEncryptionKey":"La clau de chiframent deu conténer 22 caractèrs. La collaboracion en dirèct es desactivada."},"errors":{"unsupportedFileType":"Tipe de fichièr pas pres en carga.","imageInsertError":"Insercion d’imatge impossibla. Tornatz ensajar mai tard...","fileTooBig":"Fichièr tròp pesuc. La talha maximala autorizada es {{maxSize}}.","svgImageInsertError":"Insercion d’imatge SVG impossibla. Las balisas SVG semblan invalidas.","invalidSVGString":"SVG invalid."},"toolBar":{"selection":"Seleccion","image":"Inserir imatge","rectangle":"Rectangle","diamond":"Lausange","ellipse":"Ellipsa","arrow":"Sageta","line":"Linha","freedraw":"Dessenhar","text":"Tèxt","library":"Bibliotèca","lock":"Mantenir activa l’aisina aprèp dessenhar","penMode":"","link":""},"headings":{"canvasActions":"Accions del canabàs","selectedShapeActions":"Accions per la forma seleccionada","shapes":"Formas"},"hints":{"canvasPanning":"Per desplaçar los canabasses, tenètz la rodeta de la mirga o la barra d’espaci pendent lo desplaçament","linearElement":"Clicatz per començar mantun punt, lisatz per una sola linha","freeDraw":"Clicatz e lisatz, relargatz un còp acabat","text":"Astúcia : podètz tanben apondre de tèxt en doble clicant ont que siá amb l’aisina de seleccion","text_selected":"Clicatz dos còps o quichatz ENTRADA per modificar lo tèxt","text_editing":"Quichatz ESCAPAR o CtrlOrCmd+ENTRADA per acabar la modificacion","linearElementMulti":"Clicatz sul darrièr punt o quichatz Ecap o Entrada per acabar","lockAngle":"Podètz restrénger l’angle en mantenent MAJ","resize":"Podètz servar las proporcions en mantenent la tòca MAJ pendent lo redimensionament,\\nmantenètz la tòca ALT per redimensionar a partir del centre","resizeImage":"Podètz retalhar liurament en quichant CTRL,\\nquichatz ALT per retalhar a partir del centre","rotate":"Podètz restrénger los angles en mantenent MAJ pendent la rotacion","lineEditor_info":"Doble-clicatz o quichatz Entrada per modificar los punts","lineEditor_pointSelected":"Quichar Suprimir per tirar lo(s) punt(s),\\nCtrlOCmd+D per duplicar, o lisatz per desplaçar","lineEditor_nothingSelected":"Seleccionar un punt d’editar (manténer Maj. per ne seleccionar mantun),\\no manténer Alt e clicar per n’apondre de novèls","placeImage":"Clicatz per plaçar l’imatge, o clicatz e lisatz per definir sa talha manualament","publishLibrary":"Publicar vòstra pròpria bibliotèca","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Afichatge impossible de l’apercebut","canvasTooBig":"Lo canabàs pòt èsser tròp grand.","canvasTooBigTip":"Astúcia : ensajatz de sarrar los elements mai alonhats."},"errorSplash":{"headingMain_pre":"Una error s’es producha. Ensajatz ","headingMain_button":"recargament de la pagina.","clearCanvasMessage":"Se recargar fonciona pas, ensajatz ","clearCanvasMessage_button":"d’escafar los canabasses.","clearCanvasCaveat":" Menarà a una pèrda del trabalh ","trackedToSentry_pre":"Error amb l’identificant ","trackedToSentry_post":" es estada enregistrada sus nòstre sistèma.","openIssueMessage_pre":"Èrem plan prudents per inclure pas d’informacions de la scèna vòstra sus l’error. Se vòstra scèna es pas privada, volgatz considerar de perseguir sus nòstre ","openIssueMessage_button":"traçadors d’avarias.","openIssueMessage_post":" Volgatz inclure las informacions çai-jos en las copiant e pegant a l’issue GitHub.","sceneContent":"Contengut de la scèna :"},"roomDialog":{"desc_intro":"Podètz convidar lo monde a vòstra scèna actuala per participar amb vos.","desc_privacy":"Vos en fagatz pas, la session utiliza lo chiframent del cap a la fin, çò que dessenetz demorarà privat. Mai nòstres servidors poiràn pas veire vòstra creacion.","button_startSession":"Començar la session","button_stopSession":"Arrestar la session","desc_inProgressIntro":"La session de collaboracion es ara en cors.","desc_shareLink":"Partejatz aqueste ligam amb lo monde amb qui volètz collaborar :","desc_exitSession":"Arrestar la session vos desconnectarà de la sala, mas poiretz contunhar de trabalhar a la scèna, en local. Notatz qu’aquò afectarà pas los autres, e poiràn collaborar a lor version.","shareTitle":"Rejonhètz una session collaborativa sus Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Salvar al disc","disk_details":"Exportar las donadas de la scèna cap a un fichièr que podètz importar mai tard.","disk_button":"Salvar al fichièr","link_title":"Ligam de partejar","link_details":"Exportar coma un ligam de lectura sola.","link_button":"Exportar en ligam","excalidrawplus_description":"Enregistrar la scèna dins vòstre espaci de trabalh Excalidraw+.","excalidrawplus_button":"Exportar","excalidrawplus_exportError":"Export impossibla cap a Excalidraw+ pel moment..."},"helpDialog":{"blog":"Legir nòstre blog","click":"clic","deepSelect":"","deepBoxSelect":"","curvedArrow":"Sageta corba","curvedLine":"Linha corba","documentation":"Documentacion","doubleClick":"doble clic","drag":"lisar","editor":"Editor","editSelectedShape":"Modificar la fòrma seleccionada (tèxt/sageta/linha)","github":"Problèma trobat ? Senhalatz-lo","howto":"Seguissètz nòstras guidas","or":"o","preventBinding":"Empachar la fixacion de sagetas","shapes":"Formas","shortcuts":"Acorchis clavièr","textFinish":"Terminar l’edicion (editor de tèxt)","textNewLine":"Apondre linha novèl (editor de tèxt)","title":"Ajuda","view":"Vista","zoomToFit":"Zoomar per veire totes los elements","zoomToSelection":"Zoomar la seleccion"},"clearCanvasDialog":{"title":"Escafar canabàs"},"publishDialog":{"title":"Publicar la bibliotèca","itemName":"Nom de l’element","authorName":"Nom de l’autor","githubUsername":"Nom d’utilizaire GitHub","twitterUsername":"Nom d’utilizaire Twitter","libraryName":"Nom de la bibliotèca","libraryDesc":"Descripcion de la bibliotèca","website":"Site web","placeholder":{"authorName":"Vòstre nom o nom d’utilizaire","libraryName":"Nom de vòstra bibliotèca","libraryDesc":"Descripcion de vòstra bibliotèca per ajudar lo monde a comprendre son utilizacion","githubHandle":"GitHub handle(opcional), per poder modificar la bibliotèca un còp enviada per repassa","twitterHandle":"Nom d’utilizaire Twitter (opcional), per saber qual mercejar quand ne parlam sus Twitter","website":"Ligam cap a vòstre site web personal o endacòm mai (opcional)"},"errors":{"required":"Requerit","website":"Picatz una URL valida"},"noteDescription":{"pre":"Enviatz vòstra bibliotèca per èsser compresa al ","link":"repertòri public de bibliotèca","post":"per que los autres l’utilizen dins lor dessenhs."},"noteGuidelines":{"pre":"Qualqu’un deu aprovar la bibliotèca manualament per començar. Volgatz legir las ","link":"linhas directrises","post":" abans de sometre. Vos farà mestièr un compte GitHub per comunicar e realizar de modificacions se demandadas, mas es pas complètament obligatòri."},"noteLicense":{"pre":"En sometent, acceptatz que la bibliotèca siá publicada sota la ","link":"Licéncia MIT, ","post":"que significa en brèu que qual que siá pòt l’utilizar sens cap de restriccion."},"noteItems":"Cada element de bibliotèca deu aver un nom pròpri per èsser filtrable. Los elements de bibliotèca seguentas seràn incluses :","atleastOneLibItem":"Volgatz seleccionar almens un element de bibliotèca per començar"},"publishSuccessDialog":{"title":"Bibliotèca somesa","content":"Mercés {{authorName}}. Vòstre bibliotèca es estada somesa per repassa. Podètz seguir l’avançament","link":"aquí"},"confirmDialog":{"resetLibrary":"Reïnicializar la bibliotèca","removeItemsFromLib":"Tirar los elements seleccionats de la bibliotèca"},"encrypted":{"tooltip":"Vòstres dessenhs son chifrats del cap a la fin en consequéncia los servidors d’Excalidraw los veiràn pas jamai.","link":"Article de blòg sul chiframent del cap a la fin dins Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Nautor","scene":"Scèna","selected":"Seleccionat","storage":"Emmagazinatge","title":"Estatisticas pels nerds","total":"Total","version":"Version","versionCopy":"Clicar per copiar","versionNotAvailable":"Version pas disponibla","width":"Largor"},"toast":{"addedToLibrary":"Apondut a la bibliotèca","copyStyles":"Estiles copiats.","copyToClipboard":"Copiats al quichapapièrs.","copyToClipboardAsPng":"{{exportSelection}} copiat coma PNG ({{exportColorScheme}})","fileSaved":"Fichièr enregistrat.","fileSavedToFilename":"Enregistrat jos {filename}","canvas":"canabàs","selection":"seleccion"},"colors":{"495057":"Gris 7","ffffff":"Blanc","f8f9fa":"Gris 0","f1f3f5":"Gris 0","fff5f5":"Roge 0","fff0f6":"Ròse 0","f8f0fc":"Bordèu 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Blau 0","e3fafc":"Cian 0","e6fcf5":"Esmerauda 0","ebfbee":"Verd 0","f4fce3":"Verd citron 0","fff9db":"Jaune 0","fff4e6":"Irange 0","transparent":"Transparéncia","ced4da":"Gris 4","868e96":"Gris 6","fa5252":"Roge 6","e64980":"Ròse 6","be4bdb":"Bordèu 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Blau 6","15aabf":"Cian 6","12b886":"Esmerauda 6","40c057":"Verd 6","82c91e":"Verd citron 6","fab005":"Jaune 6","fd7e14":"Irange 6","000000":"Negre","343a40":"Gris 8","c92a2a":"Roge 9","a61e4d":"Ròse 9","862e9c":"Bordèu 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Blau 9","0b7285":"Cian 9","087f5b":"Esmerauda 9","2b8a3e":"Verd 9","5c940d":"Verd citron 9","e67700":"Jaune 9","d9480f":"Irange 9"}}')},6773:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"ਪੇਸਟ ਕਰੋ","pasteCharts":"ਚਾਰਟ ਪੇਸਟ ਕਰੋ","selectAll":"ਸਾਰੇ ਚੁਣੋ","multiSelect":"ਐਲੀਮੈਂਟ ਨੂੰ ਚੋਣ ਵਿੱਚ ਜੋੜੋ","moveCanvas":"ਕੈਨਵਸ ਹਿਲਾਓ","cut":"ਕੱਟੋ","copy":"ਕਾਪੀ ਕਰੋ","copyAsPng":"ਕਲਿੱਪਬੋਰਡ \'ਤੇ PNG ਵਜੋਂ ਕਾਪੀ ਕਰੋ","copyAsSvg":"ਕਲਿੱਪਬੋਰਡ \'ਤੇ SVG ਵਜੋਂ ਕਾਪੀ ਕਰੋ","bringForward":"ਅੱਗੇ ਲਿਆਓ","sendToBack":"ਸਭ ਤੋਂ ਪਿੱਛੇ ਭੇਜੋ","bringToFront":"ਸਭ ਤੋਂ ਅੱਗੇ ਲਿਆਓ","sendBackward":"ਪਿੱਛੇ ਭੇਜੋ","delete":"ਮਿਟਾਓ","copyStyles":"ਸਟਾਇਲ ਕਾਪੀ ਕਰੋ","pasteStyles":"ਸਟਾਇਲ ਪੇਸਟ ਕਰੋ","stroke":"ਰੇਖਾ","background":"ਬੈਕਗਰਾਉਂਡ","fill":"ਭਰਨਾ","strokeWidth":"ਰੇਖਾ ਦੀ ਚੌੜਾਈ","strokeStyle":"ਰੇਖਾ ਦਾ ਸਟਾਇਲ","strokeStyle_solid":"ਠੋਸ","strokeStyle_dashed":"ਡੈਸ਼ ਵਾਲੀ","strokeStyle_dotted":"ਬਿੰਦੀਆਂ ਵਾਲੀ","sloppiness":"ਬੇਤਰਤੀਬੀ","opacity":"ਅਪਾਰਦਰਸ਼ਤਾ","textAlign":"ਲਿਖਤ ਇਕਸਾਰਤਾ","edges":"ਕਿਨਾਰੇ","sharp":"ਤਿੱਖੇ","round":"ਗੋਲ","arrowheads":"ਤੀਰ ਦੇ ਸਿਰੇ","arrowhead_none":"ਕੋਈ ਨਹੀਂ","arrowhead_arrow":"ਤੀਰ","arrowhead_bar":"ਡੰਡੀ","arrowhead_dot":"ਬਿੰਦੀ","arrowhead_triangle":"ਤਿਕੋਣ","fontSize":"ਫੌਂਟ ਅਕਾਰ","fontFamily":"ਫੌਂਟ ਪਰਿਵਾਰ","onlySelected":"ਸਿਰਫ ਚੁਣੇ ਹੋਏ ਹੀ","withBackground":"ਬੈਕਗਰਾਉਂਡ","exportEmbedScene":"ਦ੍ਰਿਸ਼ ਮੜ੍ਹੋ","exportEmbedScene_details":"ਦ੍ਰਿਸ਼ ਦਾ ਡਾਟਾ ਨਿਰਯਾਤ ਕੀਤੀ PNG/SVG ਫਾਈਲ ਵਿੱਚ ਸਾਂਭ ਦਿੱਤਾ ਜਾਵੇਗਾ ਤਾਂ ਜੋ ਇਸ ਵਿੱਚੋਂ ਦ੍ਰਿਸ਼ ਨੂੰ ਬਹਾਲ ਕੀਤਾ ਜਾ ਸਕੇ। ਇਹ ਨਿਰਯਾਤ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਫਾਈਲ ਦਾ ਅਕਾਰ ਵਧਾ ਦੇਵੇਗਾ।","addWatermark":"\\"Excalidraw ਨਾਲ ਬਣਾਇਆ\\" ਜੋੜੋ","handDrawn":"ਹੱਥਲਿਖਤ","normal":"ਆਮ","code":"ਕੋਡ","small":"ਛੋਟਾ","medium":"ਮੱਧਮ","large":"ਵੱਡਾ","veryLarge":"ਬਹੁਤ ਵੱਡਾ","solid":"ਠੋਸ","hachure":"ਤਿਰਛੀਆਂ ਗਰਿੱਲਾਂ","crossHatch":"ਜਾਲੀ","thin":"ਪਤਲੀ","bold":"ਮੋਟੀ","left":"ਖੱਬੇ","center":"ਵਿਚਕਾਰ","right":"ਸੱਜੇ","extraBold":"ਬਹੁਤ ਮੋਟੀ","architect":"ਭਵਨ ਨਿਰਮਾਣਕਾਰੀ","artist":"ਕਲਾਕਾਰ","cartoonist":"ਕਾਰਟੂਨਿਸਟ","fileTitle":"ਫਾਈਲ ਦਾ ਨਾਂ","colorPicker":"ਰੰਗ ਚੋਣਕਾਰ","canvasBackground":"ਕੈਨਵਸ ਦਾ ਬੈਕਗਰਾਉਂਡ","drawingCanvas":"ਡਰਾਇੰਗ ਕੈਨਵਸ","layers":"ਪਰਤਾਂ","actions":"ਕਾਰਵਾਈਆਂ","language":"ਭਾਸ਼ਾ","liveCollaboration":"ਲਾਇਵ ਸਹਿਯੋਗ","duplicateSelection":"ਡੁਪਲੀਕੇਟ ਬਣਾਓ","untitled":"ਬੇ-ਸਿਰਨਾਵਾਂ","name":"ਨਾਂ","yourName":"ਤੁਹਾਡਾ ਨਾਂ","madeWithExcalidraw":"Excalidraw ਨਾਲ ਬਣਾਇਆ","group":"ਚੋਣ ਦਾ ਗਰੁੱਪ ਬਣਾਓ","ungroup":"ਚੋਣ ਦਾ ਗਰੁੱਪ ਤੋੜੋ","collaborators":"ਸਹਿਯੋਗੀ","showGrid":"ਜਾਲੀ ਦਿਖਾਓ","addToLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚ ਜੋੜੋ","removeFromLibrary":"ਲਾਇਬ੍ਰੇਰੀ \'ਚੋਂ ਹਟਾਓ","libraryLoadingMessage":"ਲਾਇਬ੍ਰੇਰੀ ਲੋਡ ਕੀਤੀ ਜਾ ਰਹੀ ਹੈ…","libraries":"ਲਾਇਬ੍ਰੇਰੀਆਂ ਬਰਾਉਜ਼ ਕਰੋ","loadingScene":"ਦ੍ਰਿਸ਼ ਲੋਡ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ…","align":"ਇਕਸਾਰ","alignTop":"ਉੱਪਰ ਇਕਸਾਰ ਕਰੋ","alignBottom":"ਹੇਠਾਂ ਇਕਸਾਰ ਕਰੋ","alignLeft":"ਖੱਬੇ ਇਕਸਾਰ ਕਰੋ","alignRight":"ਸੱਜੇ ਇਕਸਾਰ ਕਰੋ","centerVertically":"ਲੇਟਵੇਂ ਵਿਚਕਾਰ ਕਰੋ","centerHorizontally":"ਖੜ੍ਹਵੇਂ ਵਿਚਕਾਰ ਕਰੋ","distributeHorizontally":"ਖੜ੍ਹਵੇਂ ਇਕਸਾਰ ਵੰਡੋ","distributeVertically":"ਲੇਟਵੇਂ ਇਕਸਾਰ ਵੰਡੋ","flipHorizontal":"ਲੇਟਵੇਂ ਪਾਸੇ ਪਲਟੋ","flipVertical":"ਖੜ੍ਹਵੇਂ ਪਾਸੇ ਪਲਟੋ","viewMode":"ਦੇਖਣ ਵਾਲਾ ਮੋਡ","toggleExportColorScheme":"ਨਿਰਯਾਤ ਦੇ ਰੰਗਾਂ ਦੀ ਸਕੀਮ ਟਾਗਲ ਕਰੋ","share":"ਸਾਂਝਾ ਕਰੋ","showStroke":"ਰੇਖਾ ਦਾ ਰੰਗ ਚੋਣਕਾਰ ਦਿਖਾਓ","showBackground":"ਬੈਕਗਰਾਉਂਡ ਦਾ ਰੰਗ ਚੋਣਕਾਰ ਦਿਖਾਓ","toggleTheme":"ਥੀਮ ਬਦਲੋ","personalLib":"ਨਿੱਜੀ ਲਾਇਬ੍ਰੇਰੀ","excalidrawLib":"ਐਕਸਕਲੀਡਰਾਅ ਲਾਇਬ੍ਰੇਰੀ","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"ਕੈਨਵਸ ਰੀਸੈੱਟ ਕਰੋ","exportJSON":"ਫਾਈਲ ਵਿੱਚ ਨਿਰਯਾਤ ਕਰੋ","exportImage":"ਤਸਵੀਰ ਵਜੋਂ ਸਾਂਭੋ","export":"ਨਿਰਯਾਤ","exportToPng":"PNG ਵਿੱਚ ਨਿਰਯਾਤ ਕਰੋ","exportToSvg":"SVG ਵਿੱਚ ਨਿਰਯਾਤ ਕਰੋ","copyToClipboard":"ਕਲਿੱਪਬੋਰਡ \'ਤੇ ਕਾਪੀ ਕਰੋ","copyPngToClipboard":"PNG ਨੂੰ ਕਲਿੱਪਬੋਰਡ \'ਤੇ ਕਾਪੀ ਕਰੋ","scale":"ਪੈਮਾਇਸ਼","save":"ਮੌਜੂਦਾ ਫਾਈਲ ਵਿੱਚ ਸਾਂਭੋ","saveAs":"ਇਸ ਵਜੋਂ ਸਾਂਭੋ","load":"ਲੋਡ ਕਰੋ","getShareableLink":"ਸਾਂਝੀ ਕਰਨ ਵਾਲੀ ਲਿੰਕ ਲਵੋ","close":"ਬੰਦ ਕਰੋ","selectLanguage":"ਭਾਸ਼ਾ ਚੁਣੋ","scrollBackToContent":"ਸਮੱਗਰੀ \'ਤੇ ਵਾਪਸ ਸਕਰੋਲ ਕਰੋ","zoomIn":"ਜ਼ੂਮ ਵਧਾਓ","zoomOut":"ਜ਼ੂਮ ਘਟਾਓ","resetZoom":"ਜ਼ੂਮ ਰੀਸੈੱਟ ਕਰੋ","menu":"ਮੇਨੂ","done":"ਹੋ ਗਿਆ","edit":"ਸੋਧੋ","undo":"ਅਣਕੀਤਾ ਕਰੋ","redo":"ਮੁੜ-ਕਰੋ","resetLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਰੀਸੈੱਟ ਕਰੋ","createNewRoom":"ਨਵਾਂ ਕਮਰਾ ਬਣਾਓ","fullScreen":"ਪੂਰੀ ਸਕਰੀਨ","darkMode":"ਡਾਰਕ ਮੋਡ","lightMode":"ਲਾਇਟ ਮੋਡ","zenMode":"ਜ਼ੈੱਨ ਮੋਡ","exitZenMode":"ਜ਼ੈੱਨ ਮੋਡ \'ਚੋਂ ਬਾਹਰ ਨਿਕਲੋ","cancel":"ਰੱਦ ਕਰੋ","clear":"ਸਾਫ਼ ਕਰੋ","remove":"ਹਟਾਓ","publishLibrary":"ਪ੍ਰਕਾਸ਼ਤ ਕਰੋ","submit":"ਜਮ੍ਹਾ ਕਰਵਾਓ","confirm":"ਪੁਸ਼ਟੀ ਕਰੋ"},"alerts":{"clearReset":"ਇਹ ਸਾਰਾ ਕੈਨਵਸ ਸਾਫ ਕਰ ਦੇਵੇਗਾ। ਕੀ ਤੁਸੀਂ ਪੱਕਾ ਇੰਝ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ?","couldNotCreateShareableLink":"ਸਾਂਝੀ ਕਰਨ ਵਾਲੀ ਲਿੰਕ ਨਹੀਂ ਬਣਾ ਸਕੇ।","couldNotCreateShareableLinkTooBig":"ਸਾਂਝੀ ਕਰਨ ਵਾਲੀ ਲਿੰਕ ਨਹੀਂ ਬਣਾ ਸਕੇ: ਦ੍ਰਿਸ਼ ਬਹੁਤ ਵੱਡਾ ਹੈ","couldNotLoadInvalidFile":"ਨਜਾਇਜ਼ ਫਾਈਲ ਲੋਡ ਨਹੀਂ ਕਰ ਸਕੇ","importBackendFailed":"ਬੈਕਐੱਨਡ ਤੋਂ ਆਯਾਤ ਕਰਨ ਵਿੱਚ ਅਸਫਲ ਰਹੇ।","cannotExportEmptyCanvas":"ਖਾਲੀ ਕੈਨਵਸ ਨਿਰਯਾਤ ਨਹੀਂ ਕਰ ਸਕਦੇ।","couldNotCopyToClipboard":"ਕਲਿੱਪਬੋਰਡ \'ਤੇ ਕਾਪੀ ਨਹੀਂ ਕਰ ਸਕੇ। ਕਰੋਮ ਬਰਾਉਜ਼ਰ ਵਰਤ ਕੇ ਦੇਖੋ।","decryptFailed":"ਡਾਟਾ ਡੀਕਰਿਪਟ ਨਹੀਂ ਕਰ ਸਕੇ।","uploadedSecurly":"ਅੱਪਲੋਡ ਸਿਰੇ-ਤੋਂ-ਸਿਰੇ ਤੱਕ ਇਨਕਰਿਪਸ਼ਨ ਨਾਲ ਸੁਰੱਖਿਅਤ ਕੀਤੀ ਹੋਈ ਹੈ, ਜਿਸਦਾ ਮਤਲਬ ਇਹ ਹੈ ਕਿ Excalidraw ਸਰਵਰ ਅਤੇ ਤੀਜੀ ਧਿਰ ਦੇ ਬੰਦੇ ਸਮੱਗਰੀ ਨੂੰ ਪੜ੍ਹ ਨਹੀਂ ਸਕਦੇ।","loadSceneOverridePrompt":"ਬਾਹਰੀ ਡਰਾਇੰਗ ਨੂੰ ਲੋਡ ਕਰਨਾ ਤੁਹਾਡੀ ਮੌਜੂਦਾ ਸਮੱਗਰੀ ਦੀ ਥਾਂ ਲੈ ਲਵੇਗਾ। ਕੀ ਤੁਸੀਂ ਜਾਰੀ ਰੱਖਣਾ ਚਾਹੁੰਦੇ ਹੋ?","collabStopOverridePrompt":"ਇਜਲਾਸ ਨੂੰ ਰੋਕਣਾ ਪਿਛਲੀ ਲੋਕਲ ਸਾਂਭੀ ਡਰਾਇੰਗ ਦੀ ਥਾਂ ਲੈ ਲਵੇਗਾ। ਪੱਕਾ ਇੰਝ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ?\\n\\n(ਜੇ ਤੁਸੀਂ ਆਪਣੀ ਲੋਕਲ ਡਰਾਇੰਗ ਨੂੰ ਬਰਕਰਾਰ ਰੱਖਣਾ ਚਾਹੁੰਦੇ ਹੋ ਤਾਂ ਇਹ ਕਰਨ ਦੀ ਬਜਾਏ ਬੱਸ ਆਪਣਾ ਟੈਬ ਬੰਦ ਕਰ ਦਿਉ।)","errorLoadingLibrary":"ਤੀਜੀ ਧਿਰ ਦੀ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਲੋਡ ਕਰਨ ਵਿੱਚ ਗਲਤੀ ਹੋਈ ਸੀ।","errorAddingToLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚ ਸਮੱਗਰੀ ਨਹੀਂ ਜੋੜ ਸਕੇ","errorRemovingFromLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚੋਂ ਸਮੱਗਰੀ ਨਹੀਂ ਹਟਾ ਸਕੇ","confirmAddLibrary":"ਇਹ ਤੁਹਾਡੀ ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚ {{numShapes}} ਆਕ੍ਰਿਤੀ(ਆਂ) ਨੂੰ ਜੋੜ ਦੇਵੇਗਾ। ਕੀ ਤੁਸੀਂ ਪੱਕਾ ਇੰਝ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ?","imageDoesNotContainScene":"","cannotRestoreFromImage":"ਇਸ ਤਸਵੀਰ ਫਾਈਲ ਤੋਂ ਦ੍ਰਿਸ਼ ਬਹਾਲ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ","invalidSceneUrl":"ਦਿੱਤੀ ਗਈ URL \'ਚੋਂ ਦ੍ਰਿਸ਼ ਨੂੰ ਆਯਾਤ ਨਹੀਂ ਕਰ ਸਕੇ। ਇਹ ਜਾਂ ਤਾਂ ਖਰਾਬ ਹੈ, ਜਾਂ ਇਸ ਵਿੱਚ ਜਾਇਜ਼ Excalidraw JSON ਡਾਟਾ ਸ਼ਾਮਲ ਨਹੀਂ ਹੈ।","resetLibrary":"ਇਹ ਤੁਹਾਡੀ ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਸਾਫ ਕਰ ਦੇਵੇਗਾ। ਕੀ ਤੁਸੀਂ ਪੱਕਾ ਇੰਝ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ?","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":"SVG ਨਜਾਇਜ਼ ਹੈ।"},"toolBar":{"selection":"ਚੋਣਕਾਰ","image":"ਤਸਵੀਰ ਸ਼ਾਮਲ ਕਰੋ","rectangle":"ਆਇਤ","diamond":"ਹੀਰਾ","ellipse":"ਅੰਡਾਕਾਰ","arrow":"ਤੀਰ","line":"ਲਕੀਰ","freedraw":"ਵਾਹੋ","text":"ਪਾਠ","library":"ਲਾਇਬ੍ਰੇਰੀ","lock":"ਡਰਾਇੰਗ ਤੋਂ ਬਾਅਦ ਵੀ ਚੁਣੇ ਹੋਏ ਸੰਦ ਨੂੰ ਸਰਗਰਮ ਰੱਖੋ ","penMode":"","link":""},"headings":{"canvasActions":"ਕੈਨਵਸ ਦੀਆਂ ਕਾਰਵਾਈਆਂ","selectedShapeActions":"ਚੁਣੀ ਆਕ੍ਰਿਤੀ ਦੀਆਂ ਕਾਰਵਾਈਆਂ","shapes":"ਆਕ੍ਰਿਤੀਆਂ"},"hints":{"canvasPanning":"","linearElement":"ਇੱਕ ਤੋਂ ਜ਼ਿਆਦਾ ਬਿੰਦੂਆਂ ਲਈ ਕਲਿੱਕ ਕਰਕੇ ਸ਼ੁਰੂਆਤ ਕਰੋ, ਇਕਹਿਰੀ ਲਕੀਰ ਲਈ ਘਸੀਟੋ","freeDraw":"ਕਲਿੱਕ ਕਰਕੇ ਘਸੀਟੋ, ਪੂਰਾ ਹੋਣ \'ਤੇ ਛੱਡ ਦਿਉ","text":"ਨੁਸਖਾ: ਤੁਸੀਂ ਚੋਣਕਾਰ ਸੰਦ ਰਾਹੀਂ ਕਿਤੇ ਵੀ ਡਬਲ-ਕਲਿੱਕ ਕਰਕੇ ਵੀ ਪਾਠ ਜੋੜ ਸਕਦੇ ਹੋ","text_selected":"ਪਾਠ ਨੂੰ ਸੋਧਣ ਲਈ ਡਬਲ-ਕਲਿੱਕ ਕਰੋ ਜਾਂ ਐਂਟਰ ਦਬਾਓ","text_editing":"ਸੋਧ ਮੁਕੰਮਲ ਕਰਨ ਲਈ ਐਸਕੇਪ (Esc) ਜਾਂ Ctrl-ਜਾਂ-Cmd+ਐਂਟਰ (enter) ਦਬਾਓ","linearElementMulti":"ਮੁਕੰਮਲ ਕਰਨ ਲਈ ਆਖਰੀ ਬਿੰਦੂ \'ਤੇ ਕਲਿੱਕ ਕਰੋ ਜਾਂ ਇਸਕੇਪ ਜਾਂ ਐਂਟਰ ਦਬਾਓ","lockAngle":"ਤੁਸੀਂ SHIFT ਦਬਾਈ ਰੱਖ ਕੇ ਕੋਣਾਂ ਨੂੰ ਕਾਬੂ ਕਰ ਸਕਦੇ ਹੋ","resize":"ਤੁਸੀਂ ਅਕਾਰ ਬਦਲਦੇ ਸਮੇਂ SHIFT ਦਬਾਈ ਰੱਖ ਕੇ ਅਨੁਪਾਤ ਨੂੰ ਕਾਬੂ ਕਰ ਸਕਦੇ ਹੋ, ਵਿਚਕਾਰ ਤੋਂ ਅਕਾਰ ਬਦਲਣ ਲਈ ALT ਦਬਾਓ","resizeImage":"","rotate":"ਤੁਸੀਂ ਘੁਮਾਉਂਦੇ ਹੋਏ SHIFT ਦਬਾਈ ਰੱਖ ਕੇ ਕੋਣਾਂ ਨੂੰ ਕਾਬੂ ਕਰ ਸਕਦੇ ਹੋ","lineEditor_info":"ਬਿੰਦੂਆਂ ਨੂੰ ਸੋਧਣ ਲਈ ਡਬਲ-ਕਲਿੱਕ ਜਾਂ ਐਂਟਰ ਦਬਾਓ","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"ਝਲਕ ਨਹੀਂ ਦਿਖਾ ਸਕਦੇ","canvasTooBig":"ਸ਼ਾਇਦ ਕੈਨਵਸ ਬਹੁਤ ਜ਼ਿਆਦਾ ਵੱਡਾ ਹੈ।","canvasTooBigTip":"ਨੁਸਖਾ: ਸਭ ਤੋਂ ਦੂਰ ਸਥਿੱਤ ਐਲੀਮੈਂਟਾਂ ਨੂੰ ਥੋੜ੍ਹਾ ਜਿਹਾ ਨੇੜੇ ਲਿਆ ਕੇ ਦੇਖੋ।"},"errorSplash":{"headingMain_pre":"ਗਲਤੀ ਹੋਈ। ਇਹ ਕਰਕੇ ਦੇਖੋ ","headingMain_button":"ਪੰਨਾ ਮੁੜ-ਲੋਡ ਕਰੋ।","clearCanvasMessage":"ਜੇ ਮੁੜ-ਲੋਡ ਕਰਨਾ ਕੰਮ ਨਾ ਕਰੇ, ਤਾਂ ਇਹ ਕਰਕੇ ਦੇਖੋ ","clearCanvasMessage_button":"ਕੈਨਵਸ ਸਾਫ ਕਰੋ।","clearCanvasCaveat":" ਇਹ ਸਾਰਾ ਕੰਮ ਗਵਾ ਦੇਵੇਗਾ ","trackedToSentry_pre":"ਗਲਤੀ ਸੂਚਕ ","trackedToSentry_post":" ਸਾਡੇ ਸਿਸਟਮ \'ਤੇ ਟਰੈਕ ਕੀਤਾ ਗਿਆ ਸੀ।","openIssueMessage_pre":"ਅਸੀਂ ਬੜੇ ਸਾਵਧਾਨ ਸੀ ਕਿ ਗਲਤੀ ਵਿੱਚ ਤੁਹਾਡੇ ਦ੍ਰਿਸ਼ ਦੀ ਜਾਣਕਾਰੀ ਸ਼ਾਮਲ ਨਾ ਕਰੀਏ। ਜੇ ਤੁਹਾਡਾ ਦ੍ਰਿਸ਼ ਨਿੱਜੀ ਨਹੀਂ ਹੈ ਤਾਂ ਇਸ \'ਤੇ ਸਾਡੇ ਨਾਲ ਸੰਪਰਕ ਕਰੋ ਜੀ ","openIssueMessage_button":"ਬੱਗ ਟਰੈਕਰ।","openIssueMessage_post":"ਹੇਠਾਂ ਦਿੱਤੀ ਜਾਣਕਾਰੀ ਨੂੰ ਕਾਪੀ ਕਰਕੇ ਗਿੱਟਹੱਬ ਮੁੱਦੇ ਵਿੱਚ ਪੇਸਟ ਕਰਕੇ ਸ਼ਾਮਲ ਕਰੋ ਜੀ।","sceneContent":"ਦ੍ਰਿਸ਼ ਦੀ ਸਮੱਗਰੀ:"},"roomDialog":{"desc_intro":"ਤੁਸੀਂ ਲੋਕਾਂ ਨੂੰ ਆਪਣੇ ਨਾਲ ਮੌਜੂਦਾ ਦ੍ਰਿਸ਼ \'ਤੇ ਸਹਿਯੋਗ ਕਰਨ ਲਈ ਸੱਦਾ ਭੇਜ ਸਕਦੇ ਹੋ।","desc_privacy":"ਫਿਕਰ ਨਾ ਕਰੋ, ਇਜਲਾਸ ਸਿਰੇ-ਤੋਂ-ਸਿਰੇ ਤੱਕ ਇਨਕਰਿਪਸ਼ਨ ਵਰਤਦਾ ਹੈ, ਸੋ ਜੋ ਕੁਝ ਵੀ ਤੁਸੀਂ ਵਾਹੁੰਦੇ ਹੋ ਉਹ ਨਿੱਜੀ ਹੀ ਰਹਿੰਦਾ ਹੈ। ਇੱਥੋਂ ਤੱਕ ਕਿ ਸਾਡੇ ਸਰਵਰ ਵੀ ਨਹੀਂ ਜਾਣ ਸਕਣਗੇ ਕਿ ਤੁਸੀਂ ਕੀ ਬਣਾਇਆ ਹੈ।","button_startSession":"ਇਜਲਾਸ ਸ਼ੁਰੂ ਕਰੋ","button_stopSession":"ਇਜਲਾਸ ਰੋਕੋ","desc_inProgressIntro":"ਲਾਇਵ ਸਹਿਯੋਗ ਹੁਣ ਚੱਲ ਰਿਹਾ ਹੈ।","desc_shareLink":"ਇਸ ਲਿੰਕ ਨੂੰ ਉਹਨਾਂ ਨਾਲ ਸਾਂਝਾ ਕਰੋ ਜਿਹਨਾਂ ਨਾਲ ਤੁਸੀਂ ਸਹਿਯੋਗ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ:","desc_exitSession":"ਇਜਲਾਸ ਨੂੰ ਰੋਕਣਾ ਤੁਹਾਡਾ ਕਮਰੇ ਨਾਲੋਂ ਨਾਤਾ ਤੋੜ ਦੇਵੇਗਾ, ਪਰ ਤੁਸੀਂ ਸਥਾਨਕ ਪੱਧਰ \'ਤੇ ਦ੍ਰਿਸ਼ ਨਾਲ ਕੰਮ ਕਰਨਾ ਜਾਰੀ ਰੱਖ ਸਕੋਗੇ। ਇਹ ਧਿਆਨ \'ਚ ਰੱਖੋ ਕਿ ਇਹ ਬਾਕੀ ਲੋਕਾਂ ਨੂੰ ਪ੍ਰਭਾਵਿਤ ਨਹੀਂ ਕਰੇਗਾ , ਅਤੇ ਉਹ ਹਾਲੇ ਵੀ ਆਪਣੇ ਸੰਸਕਰਨ \'ਤੇ ਸਹਿਯੋਗ ਕਰਨ ਦੇ ਕਾਬਲ ਹੋਣਗੇ।","shareTitle":"Excalidraw \'ਤੇ ਲਾਈਵ ਇਜਲਾਸ ਦਾ ਹਿੱਸਾ ਬਣੋ"},"errorDialog":{"title":"ਗਲਤੀ"},"exportDialog":{"disk_title":"ਡਿਸਕ ਵਿੱਚ ਸਾਂਭੋ","disk_details":"ਦ੍ਰਿਸ਼ ਦਾ ਡਾਟਾ ਫਾਈਲ ਵਿੱਚ ਨਿਰਯਾਤ ਕਰੋ ਜਿੱਥੋਂ ਤੁਸੀਂ ਇਸਨੂੰ ਬਾਅਦ ਵਿੱਚ ਆਯਾਤ ਕਰ ਸਕਦੇ ਹੋ।","disk_button":"ਫਾਈਲ ਵਿੱਚ ਸਾਂਭੋ","link_title":"ਸਾਂਝੀ ਕਰਨ ਵਾਲੀ ਲਿੰਕ","link_details":"ਸਿਰਫ ਪੜ੍ਹੇ-ਜਾਣ ਵਾਲੀ ਲਿੰਕ ਨਿਰਯਾਤ ਕਰੋ।","link_button":"ਲਿੰਕ ਵਿੱਚ ਨਿਰਯਾਤ ਕਰੋ","excalidrawplus_description":"ਆਪਣੇ ਦ੍ਰਿਸ਼ ਦੇ ਡਾਟੇ ਨੂੰ Excalidraw+ ਵਰਕਸਪੇਸ ਵਿੱਚ ਸਾਂਭੋ।","excalidrawplus_button":"ਨਿਰਯਾਤ ਕਰੋ","excalidrawplus_exportError":"ਇਸ ਸਮੇਂ Excalidraw+ ਵਿੱਚ ਨਿਰਯਾਤ ਨਹੀਂ ਕਰ ਸਕੇ..."},"helpDialog":{"blog":"ਸਾਡਾ ਬਲੌਗ ਪੜ੍ਹੋ","click":"ਕਲਿੱਕ","deepSelect":"","deepBoxSelect":"","curvedArrow":"ਵਿੰਗਾ ਤੀਰ","curvedLine":"ਵਿੰਗੀ ਲਕੀਰ","documentation":"ਕਾਗਜ਼ਾਤ","doubleClick":"ਡਬਲ-ਕਲਿੱਕ","drag":"ਘਸੀਟੋ","editor":"ਸੋਧਕ","editSelectedShape":"ਚੁਣਿਆ ਰੂਪ ਸੋਧੋ (ਪਾਠ/ਤੀਰ/ਲਾਈਨ)","github":"ਕੋਈ ਸਮੱਸਿਆ ਲੱਭੀ? ਜਮ੍ਹਾਂ ਕਰਵਾਓ","howto":"ਸਾਡੀਆਂ ਗਾਈਡਾਂ ਦੀ ਪਾਲਣਾ ਕਰੋ","or":"ਜਾਂ","preventBinding":"ਤੀਰ ਬੱਝਣਾ ਰੋਕੋ","shapes":"ਆਕ੍ਰਿਤੀਆਂ","shortcuts":"ਕੀਬੋਰਡ ਸ਼ਾਰਟਕੱਟ","textFinish":"ਸੋਧਣਾ ਮੁਕੰਮਲ ਕਰੋ (ਪਾਠ ਸੋਧਕ)","textNewLine":"ਨਵੀਂ ਪੰਕਤੀ ਜੋੜੋ (ਪਾਠ ਸੋਧਕ)","title":"ਮਦਦ","view":"ਦਿੱਖ","zoomToFit":"ਸਾਰੇ ਐਲੀਮੈਂਟਾਂ ਨੂੰ ਫਿੱਟ ਕਰਨ ਲਈ ਜ਼ੂਮ ਕਰੋ","zoomToSelection":"ਚੋਣ ਤੱਕ ਜ਼ੂਮ ਕਰੋ"},"clearCanvasDialog":{"title":"ਕੈਨਵਸ ਨੂੰ ਸਾਫ਼ ਕਰੋ"},"publishDialog":{"title":"ਲਾਇਬ੍ਰੇਰੀ ਨੂੰ ਪ੍ਰਕਾਸ਼ਤ ਕਰੋ","itemName":"","authorName":"ਲੇਖਕ ਦਾ ਨਾਂ","githubUsername":"ਗਿੱਟਹੱਬ ਵਰਤੋਂਕਾਰ ਨਾਂ","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"ਲੋੜੀਂਦਾ","website":"ਜਾਇਜ਼ URL ਭਰੋ"},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"ਦਿਸ਼ਾ ਨਿਰਦੇਸ਼","post":""},"noteLicense":{"pre":"","link":"MIT ਲਾਇਸੈਂਸ, ","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":"ਇੱਥੇ"},"confirmDialog":{"resetLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਰੀਸੈੱਟ ਕਰੋ","removeItemsFromLib":"ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚੋਂ ਚੁਣੀਆਂ ਹੋਈਆਂ ਆਈਟਮਾਂ ਹਟਾਓ"},"encrypted":{"tooltip":"ਤੁਹਾਡੀ ਡਰਾਇੰਗਾਂ ਸਿਰੇ-ਤੋਂ-ਸਿਰੇ ਤੱਕ ਇਨਕਰਿਪਟ ਕੀਤੀਆਂ ਹੋਈਆਂ ਹਨ, ਇਸ ਲਈ Excalidraw ਦੇ ਸਰਵਰ ਉਹਨਾਂ ਨੂੰ ਕਦੇ ਵੀ ਨਹੀਂ ਦੇਖਣਗੇ।","link":"Excalidraw ਵਿੱਚ ਸਿਰੇ-ਤੋਂ-ਸਿਰੇ ਤੱਕ ਇਨਕ੍ਰਿਪਸ਼ਨ \'ਤੇ ਬਲੌਗ ਸੰਪਾਦਨਾ"},"stats":{"angle":"ਕੋਣ","element":"ਐਲੀਮੈਂਟ","elements":"ਐਲੀਮੈਂਟ","height":"ਉਚਾਈ","scene":"ਦ੍ਰਿਸ਼","selected":"ਚੁਣੇ","storage":"ਸਟੋਰੇਜ","title":"ਪੜਾਕੂਆਂ ਲਈ ਅੰਕੜੇ","total":"ਕੁੱਲ","version":"ਸੰਸਕਰਨ","versionCopy":"ਕਾਪੀ ਕਰਨ ਲਈ ਕਲਿੱਕ ਕਰੋ","versionNotAvailable":"ਸੰਸਕਰਨ ਉਪਲਬਧ ਨਹੀਂ ਹੈ","width":"ਚੌੜਾਈ"},"toast":{"addedToLibrary":"ਲਾਇਬ੍ਰੇਰੀ ਵਿੱਚ ਜੋੜਿਆ","copyStyles":"ਕਾਪੀ ਕੀਤੇ ਸਟਾਇਲ।","copyToClipboard":"ਕਲਿੱਪਬੋਰਡ \'ਤੇ ਕਾਪੀ ਕੀਤਾ।","copyToClipboardAsPng":"{{exportSelection}} ਨੂੰ ਕਲਿੱਪਬੋਰਡ \'ਤੇ PNG ਵਜੋਂ ਕਾਪੀ ਕੀਤਾ ({{exportColorScheme}})","fileSaved":"ਫਾਈਲ ਸਾਂਭੀ ਗਈ।","fileSavedToFilename":"{filename} ਵਿੱਚ ਸਾਂਭੀ","canvas":"ਕੈਨਵਸ","selection":"ਚੋਣ"},"colors":{"495057":"ਸੁਰਮਈ 7","ffffff":"ਚਿੱਟਾ","f8f9fa":"ਸੁਰਮਈ 0","f1f3f5":"ਸੁਰਮਈ 1","fff5f5":"ਲਾਲ 0","fff0f6":"ਗੁਲਾਬੀ 0","f8f0fc":"ਅੰਗੂਰੀ 0","f3f0ff":"ਜਾਮਣੀ 0","edf2ff":"ਗੂੜ੍ਹਾ ਨੀਲਾ 0","e7f5ff":"ਨੀਲਾ 0","e3fafc":"ਫਿਰੋਜੀ 0","e6fcf5":"ਟੀਲ 0","ebfbee":"ਹਰਾ 0","f4fce3":"ਲਾਇਮ 0","fff9db":"ਪੀਲਾ 0","fff4e6":"ਸੰਤਰੀ 0","transparent":"ਪਾਰਦਰਸ਼ੀ","ced4da":"ਸੁਰਮਈ 4","868e96":"ਸੁਰਮਈ 6","fa5252":"ਲਾਲ 6","e64980":"ਗੁਲਾਬੀ 6","be4bdb":"ਅੰਗੂਰੀ 6","7950f2":"ਜਾਮਣੀ 6","4c6ef5":"ਗੂੜ੍ਹਾ ਨੀਲਾ 6","228be6":"ਨੀਲਾ 6","15aabf":"ਫਿਰੋਜੀ 6","12b886":"ਟੀਲ 6","40c057":"ਹਰਾ 6","82c91e":"ਲਾਇਮ 6","fab005":"ਪੀਲਾ 6","fd7e14":"ਸੰਤਰੀ 6","000000":"ਕਾਲਾ","343a40":"ਸੁਰਮਈ 8","c92a2a":"ਲਾਲ 9","a61e4d":"ਗੁਲਾਬੀ 9","862e9c":"ਅੰਗੂਰੀ 9","5f3dc4":"ਜਾਮਣੀ 9","364fc7":"ਗੂੜ੍ਹਾ ਨੀਲਾ 9","1864ab":"ਨੀਲਾ 9","0b7285":"ਫਿਰੋਜੀ 9","087f5b":"ਟੀਲ 9","2b8a3e":"ਹਰਾ 9","5c940d":"ਲਾਇਮ 9","e67700":"ਪੀਲਾ 9","d9480f":"ਸੰਤਰੀ 9"}}')},4451:e=>{"use strict";e.exports=JSON.parse('{"ar-SA":88,"bg-BG":61,"bn-BD":0,"ca-ES":95,"cs-CZ":24,"da-DK":16,"de-DE":99,"el-GR":87,"en":100,"es-ES":84,"eu-ES":96,"fa-IR":63,"fi-FI":98,"fr-FR":100,"he-IL":80,"hi-IN":55,"hu-HU":49,"id-ID":100,"it-IT":96,"ja-JP":98,"kab-KAB":95,"kk-KZ":23,"ko-KR":72,"lt-LT":24,"lv-LV":100,"my-MM":46,"nb-NO":100,"nl-NL":90,"nn-NO":83,"oc-FR":97,"pa-IN":87,"pl-PL":93,"pt-BR":98,"pt-PT":83,"ro-RO":100,"ru-RU":99,"si-LK":9,"sk-SK":100,"sv-SE":100,"ta-IN":99,"tr-TR":85,"uk-UA":82,"zh-CN":100,"zh-HK":28,"zh-TW":100}')},3661:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Wklej","pasteCharts":"Wklej wykresy","selectAll":"Zaznacz wszystko","multiSelect":"Dodaj element do zaznaczenia","moveCanvas":"Przesuń obszar roboczy","cut":"Wytnij","copy":"Kopiuj","copyAsPng":"Skopiuj do schowka jako plik PNG","copyAsSvg":"Skopiuj do schowka jako plik SVG","bringForward":"Przenieś wyżej","sendToBack":"Przenieś na spód","bringToFront":"Przenieś na wierzch","sendBackward":"Przenieś niżej","delete":"Usuń","copyStyles":"Kopiuj style","pasteStyles":"Wklej style","stroke":"Kolor obramowania","background":"Kolor wypełnienia","fill":"Wypełnienie","strokeWidth":"Grubość obramowania","strokeStyle":"Styl obrysu","strokeStyle_solid":"Pełny","strokeStyle_dashed":"Kreskowany","strokeStyle_dotted":"Kropkowany","sloppiness":"Styl kreski","opacity":"Przeźroczystość","textAlign":"Wyrównanie tekstu","edges":"Krawędzie","sharp":"Ostry","round":"Zaokrąglij","arrowheads":"Groty","arrowhead_none":"Brak","arrowhead_arrow":"Strzałka","arrowhead_bar":"Kreska","arrowhead_dot":"Kropka","arrowhead_triangle":"Trójkąt","fontSize":"Rozmiar tekstu","fontFamily":"Krój pisma","onlySelected":"Tylko wybrane","withBackground":"Kolor wypełnienia","exportEmbedScene":"Osadź scenę","exportEmbedScene_details":"Dane sceny zostaną zapisane w eksportowanym pliku PNG/SVG tak, aby scena mogła zostać z niego przywrócona.\\nZwiększy to rozmiar eksportowanego pliku.","addWatermark":"Dodaj \\"Zrobione w Excalidraw\\"","handDrawn":"Odręczny","normal":"Normalny","code":"Kod","small":"Mały","medium":"Średni","large":"Duży","veryLarge":"Bardzo duży","solid":"Pełne","hachure":"Linie","crossHatch":"Zakreślone","thin":"Cienkie","bold":"Pogrubione","left":"Do lewej","center":"Do środka","right":"Do prawej","extraBold":"Ekstra pogrubione","architect":"Dokładny","artist":"Artystyczny","cartoonist":"Rysunkowy","fileTitle":"Nazwa pliku","colorPicker":"Paleta kolorów","canvasBackground":"Kolor dokumentu","drawingCanvas":"Obszar roboczy","layers":"Warstwy","actions":"Akcje","language":"Język","liveCollaboration":"Współpraca na żywo","duplicateSelection":"Powiel","untitled":"Bez tytułu","name":"Nazwa","yourName":"Twoje imię","madeWithExcalidraw":"Zrobione w Excalidraw","group":"Zgrupuj wybrane","ungroup":"Rozgrupuj wybrane","collaborators":"Współtwórcy","showGrid":"Pokaż siatkę","addToLibrary":"Dodaj do biblioteki","removeFromLibrary":"Usuń z biblioteki","libraryLoadingMessage":"Wczytywanie biblioteki…","libraries":"Przeglądaj biblioteki","loadingScene":"Wczytywanie sceny…","align":"Wyrównaj","alignTop":"Wyrównaj do góry","alignBottom":"Wyrównaj do dołu","alignLeft":"Wyrównaj do lewej","alignRight":"Wyrównaj do prawej","centerVertically":"Wyśrodkuj w pionie","centerHorizontally":"Wyśrodkuj w poziomie","distributeHorizontally":"Rozłóż poziomo","distributeVertically":"Rozłóż pionowo","flipHorizontal":"Odbij w poziomie","flipVertical":"Odbij w pionie","viewMode":"Tryb widoku","toggleExportColorScheme":"Przełącz schemat kolorów przy eksporcie","share":"Udostępnij","showStroke":"Pokaż próbnik kolorów obrysu","showBackground":"Pokaż próbnik koloru tła","toggleTheme":"Przełącz motyw","personalLib":"Biblioteka prywatna","excalidrawLib":"Biblioteka Excalidraw","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Wyczyść dokument i zresetuj kolor dokumentu","exportJSON":"Eksportuj do pliku","exportImage":"Zapisz jako obraz","export":"Zapisz jako","exportToPng":"Zapisz jako PNG","exportToSvg":"Zapisz jako SVG","copyToClipboard":"Skopiuj do schowka","copyPngToClipboard":"Skopiuj do schowka jako plik PNG","scale":"Skala","save":"","saveAs":"Zapisz jako","load":"Otwórz","getShareableLink":"Udostępnij","close":"Zamknij","selectLanguage":"Wybierz język","scrollBackToContent":"Wróć do obszaru roboczego","zoomIn":"Powiększ","zoomOut":"Pomniejsz","resetZoom":"Zresetuj powiększenie","menu":"Menu","done":"Gotowe","edit":"Edytuj","undo":"Cofnij","redo":"Przywróć","resetLibrary":"Resetuj bibliotekę","createNewRoom":"Utwórz nowy pokój","fullScreen":"Pełny ekran","darkMode":"Ciemny motyw","lightMode":"Jasny motyw","zenMode":"Tryb Zen","exitZenMode":"Wyjdź z trybu Zen","cancel":"Anuluj","clear":"Wyczyść","remove":"Usuń","publishLibrary":"Opublikuj","submit":"Prześlij","confirm":"Zatwierdź"},"alerts":{"clearReset":"To spowoduje usunięcie wszystkiego z dokumentu. Czy chcesz kontynuować?","couldNotCreateShareableLink":"Wystąpił błąd przy generowaniu linka do udostępniania.","couldNotCreateShareableLinkTooBig":"Nie można utworzyć linku do udostępnienia: scena jest za duża","couldNotLoadInvalidFile":"Nie udało się otworzyć pliku. Wybrany plik jest nieprawidłowy.","importBackendFailed":"Wystąpił błąd podczas importowania pliku.","cannotExportEmptyCanvas":"Najpierw musisz coś narysować, aby zapisać dokument.","couldNotCopyToClipboard":"Błąd podczas kopiowania. Spróbuj użyć Google Chrome.","decryptFailed":"Nie udało się odszyfrować danych.","uploadedSecurly":"By zapewnić Ci prywatność, udostępnianie projektu jest zabezpieczone szyfrowaniem end-to-end, co oznacza, że poza tobą i osobą z którą podzielisz się linkiem, nikt nie ma dostępu do tego co udostępniasz.","loadSceneOverridePrompt":"Wczytanie zewnętrznego rysunku zastąpi istniejącą zawartość. Czy chcesz kontynuować?","collabStopOverridePrompt":"Zatrzymanie sesji nadpisze poprzedni, zapisany lokalnie rysunk. Jesteś pewien?\\n\\n(Jeśli chcesz zachować swój lokalny rysunek, po prostu zamknij zakładkę przeglądarki.)","errorLoadingLibrary":"Wystąpił błąd podczas wczytywania zewnętrznej biblioteki.","errorAddingToLibrary":"Nie udało się dodać elementu do biblioteki","errorRemovingFromLibrary":"Nie udało się usunąć elementu z biblioteki","confirmAddLibrary":"To doda {{numShapes}} kształtów do twojej biblioteki. Jesteś pewien?","imageDoesNotContainScene":"Ten obraz nie zawiera żadnych informacji o scenie. Czy włączyłeś osadzanie sceny podczas eksportu?","cannotRestoreFromImage":"Scena nie mogła zostać przywrócona z pliku obrazu","invalidSceneUrl":"Nie udało się zaimportować sceny z podanego adresu URL. Jest ona wadliwa lub nie zawiera poprawnych danych Excalidraw w formacie JSON.","resetLibrary":"To wyczyści twoją bibliotekę. Jesteś pewien?","removeItemsFromsLibrary":"Usunąć {{count}} element(ów) z biblioteki?","invalidEncryptionKey":"Klucz szyfrowania musi składać się z 22 znaków. Współpraca na żywo jest wyłączona."},"errors":{"unsupportedFileType":"Nieobsługiwany typ pliku.","imageInsertError":"Nie udało się wstawić obrazu. Spróbuj ponownie później...","fileTooBig":"Plik jest zbyt duży. Maksymalny dozwolony rozmiar to {{maxSize}}.","svgImageInsertError":"Nie udało się wstawić obrazu SVG. Znacznik SVG wygląda na nieprawidłowy.","invalidSVGString":"Nieprawidłowy SVG."},"toolBar":{"selection":"Zaznaczenie","image":"Wstaw obraz","rectangle":"Prostokąt","diamond":"Romb","ellipse":"Elipsa","arrow":"Strzałka","line":"Linia","freedraw":"Rysuj","text":"Tekst","library":"Biblioteka","lock":"Zablokuj wybrane narzędzie","penMode":"","link":""},"headings":{"canvasActions":"Narzędzia","selectedShapeActions":"Wybrane narzędzie","shapes":"Kształty"},"hints":{"canvasPanning":"Aby przesunąć płótno, przytrzymaj kółko myszy lub spację podczas przeciągania","linearElement":"Naciśnij, aby zrobić punkt, przeciągnij, aby narysować linię","freeDraw":"Naciśnij i przeciągnij by rysować, puść kiedy skończysz","text":"Wskazówka: możesz również dodać tekst klikając dwukrotnie gdziekolwiek za pomocą narzędzia zaznaczania","text_selected":"Kliknij dwukrotnie lub naciśnij ENTER, aby edytować tekst","text_editing":"Naciśnij Escape lub Ctrl (Cmd w macOS) + ENTER, aby zakończyć edycję","linearElementMulti":"Aby zakończyć krzywą, ponownie kliknij w ostatni punkt, bądź naciśnij Esc albo Enter","lockAngle":"Możesz ograniczyć kąt trzymając SHIFT","resize":"Możesz zachować proporcję trzymająć wcisnięty SHIFT, przytrzymaj ALT by zmienić rozmiar względem środka","resizeImage":"Możesz zmienić rozmiar swobodnie trzymając SHIFT,\\nprzytrzymaj ALT, aby przeskalować względem środka obiektu","rotate":"Możesz obracać element w równych odstępach trzymając wciśnięty SHIFT","lineEditor_info":"Kliknij dwukrotnie lub naciśnij Enter, aby edytować punkty","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Kliknij, aby umieścić obraz, lub kliknij i przeciągnij, aby ustawić jego rozmiar ręcznie","publishLibrary":"Opublikuj własną bibliotekę","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Nie można wyświetlić podglądu","canvasTooBig":"Obszar roboczy może być za duży.","canvasTooBigTip":"Wskazówka: spróbuj nieco zbliżyć najdalej wysunięte elementy."},"errorSplash":{"headingMain_pre":"Wystąpił błąd. Spróbuj ","headingMain_button":"odświeżyć stronę.","clearCanvasMessage":"Jeśli odświeżenie strony nie zadziałało, spróbuj ","clearCanvasMessage_button":"usunąć wszystko z dokumentu.","clearCanvasCaveat":" Pamiętaj tylko, że spowoduje to utratę całej twojej pracy ","trackedToSentry_pre":"Błąd o identyfikatorze ","trackedToSentry_post":" został zaraportowany w naszym systemie.","openIssueMessage_pre":"Szanujemy twoją prywatność i raport nie zawierał żadnych danych dotyczących tego nad czym pracowałeś, natomiast jeżeli jesteś w stanie podzielić się tym nad czym pracowałeś, prosimy o dodatkowy raport poprzez ","openIssueMessage_button":"nasze narzędzie do raportowania błędów.","openIssueMessage_post":" Prosimy o dołączenie poniższej informacji poprzez skopiowanie jej i umieszczenie jej w zgłoszeniu na portalu GitHub.","sceneContent":"Zawartość dokumentu:"},"roomDialog":{"desc_intro":"Będziesz w stanie pracować wraz z osobami które zaprosisz do współpracy.","desc_privacy":"By zapewnić Ci prywatność, sesja współpracy na żywo jest zabezpieczona szyfrowaniem end-to-end, co oznacza, że poza tobą i osobami z którymi podzielisz się linkiem, nikt nie ma dostępu do tego co będziecie tworzyć.","button_startSession":"Rozpocznij sesję","button_stopSession":"Zakończ sesję","desc_inProgressIntro":"Sesja współpracy na żywo właśnie się rozpoczęła.","desc_shareLink":"Udostępnij ten link osobom, z którymi chcesz współpracować:","desc_exitSession":"Zakończenie sesji spowoduje odłączenie ciebie od pokoju, ale nadal będziesz mógł lokalnie kontynuować pracę. Zauważ, że osoby z którymi współpracowałeś nadal będą mogły współpracować.","shareTitle":"Dołącz do sesji współpracy na żywo w Excalidraw"},"errorDialog":{"title":"Wystąpił błąd"},"exportDialog":{"disk_title":"Zapisz na dysku","disk_details":"Eksportuj dane sceny do pliku, z którego możesz importować później.","disk_button":"Zapisz do pliku","link_title":"Link do udostępnienia","link_details":"Eksportuj jako link tylko do odczytu.","link_button":"Wygeneruj link","excalidrawplus_description":"Zapisz scenę do swojego obszaru roboczego Excalidraw+.","excalidrawplus_button":"Eksportuj","excalidrawplus_exportError":""},"helpDialog":{"blog":"Przeczytaj na naszym blogu","click":"kliknięcie","deepSelect":"","deepBoxSelect":"","curvedArrow":"Zakrzywiona strzałka","curvedLine":"Zakrzywiona linia","documentation":"Dokumentacja","doubleClick":"podwójne kliknięcie","drag":"przeciągnij","editor":"Edytor","editSelectedShape":"Edytuj wybrany kształt (tekst/strzałka/linia)","github":"Znalazłeś problem? Prześlij","howto":"Skorzystaj z instrukcji","or":"lub","preventBinding":"Zapobiegaj wiązaniu strzałek","shapes":"Kształty","shortcuts":"Skróty klawiszowe","textFinish":"Zakończ edycję (edytor tekstu)","textNewLine":"Dodaj nowy wiersz (edytor tekstu)","title":"Pomoc","view":"Widok","zoomToFit":"Powiększ, aby wyświetlić wszystkie elementy","zoomToSelection":"Przybliż do zaznaczenia"},"clearCanvasDialog":{"title":"Wyczyść płótno"},"publishDialog":{"title":"Opublikuj bibliotekę","itemName":"","authorName":"Nazwa autora","githubUsername":"Nazwa użytkownika na GitHubie","twitterUsername":"Nazwa użytkownika Twitter","libraryName":"Nazwa biblioteki","libraryDesc":"Opis biblioteki","website":"Strona internetowa","placeholder":{"authorName":"Twoje imię lub nazwa użytkownika","libraryName":"Nazwa twojej biblioteki","libraryDesc":"Opis twojej biblioteki, aby pomóc innym zrozumieć jej działanie","githubHandle":"","twitterHandle":"Nazwa użytkownika w serwisie Twitter (opcjonalna), aby wiedzieć kogo oznaczyć przy promowaniu na Twitterze","website":"Link do Twojej osobistej strony internetowej lub gdzie indziej (opcjonalnie)"},"errors":{"required":"Wymagane","website":"Wprowadź prawidłowy adres URL"},"noteDescription":{"pre":"","link":"","post":"dla innych osób do wykorzystania w swoich rysunkach."},"noteGuidelines":{"pre":"Biblioteka musi być najpierw zatwierdzona ręcznie. Przeczytaj ","link":"wytyczne","post":""},"noteLicense":{"pre":"Wysyłając zgadzasz się, że biblioteka zostanie opublikowana pod ","link":"Licencja MIT, ","post":"w skrócie, każdy może z nich korzystać bez ograniczeń."},"noteItems":"","atleastOneLibItem":"Proszę wybrać co najmniej jeden element biblioteki, by rozpocząć"},"publishSuccessDialog":{"title":"Biblioteka została przesłana","content":"Dziękujemy {{authorName}}. Twoja biblioteka została przesłana do sprawdzenia. Możesz śledzić jej stan","link":"tutaj"},"confirmDialog":{"resetLibrary":"Zresetuj Bibliotekę","removeItemsFromLib":"Usuń wybrane elementy z biblioteki"},"encrypted":{"tooltip":"Twoje rysunki są zabezpieczone szyfrowaniem end-to-end, tak więc nawet w Excalidraw nie jesteśmy w stanie zobaczyć tego co tworzysz.","link":""},"stats":{"angle":"Kąt","element":"Element","elements":"Elementy","height":"Wysokość","scene":"Scena","selected":"Zaznaczenie","storage":"Pamięć","title":"Statystyki dla nerdów","total":"Łącznie","version":"Wersja","versionCopy":"Kliknij, aby skopiować","versionNotAvailable":"Wersja niedostępna","width":"Szerokość"},"toast":{"addedToLibrary":"Dodano do biblioteki","copyStyles":"Skopiowano style.","copyToClipboard":"Skopiowano do schowka.","copyToClipboardAsPng":"Skopiowano {{exportSelection}} do schowka jako PNG\\n({{exportColorScheme}})","fileSaved":"Zapisano plik.","fileSavedToFilename":"Zapisano jako {filename}","canvas":"płótno","selection":"zaznaczenie"},"colors":{"495057":"Szary 7","ffffff":"Biały","f8f9fa":"Szary 0","f1f3f5":"Szary 1","fff5f5":"Czerwony 0","fff0f6":"Różowy 0","f8f0fc":"Bordowy 0","f3f0ff":"Fioletowy 0","edf2ff":"Granatowy 0","e7f5ff":"Niebieski 0","e3fafc":"Błękitny 0","e6fcf5":"Turkusowy 0","ebfbee":"Zielony 0","f4fce3":"Limonkowy 0","fff9db":"Żółty 0","fff4e6":"Pomarańczowy 0","transparent":"Przezroczysty","ced4da":"Szary 4","868e96":"Szary 6","fa5252":"Czerwony 6","e64980":"Różowy 6","be4bdb":"Bordowy 6","7950f2":"Fioletowy 6","4c6ef5":"Granatowy 6","228be6":"Niebieski 6","15aabf":"Błękitny 6","12b886":"Turkusowy 6","40c057":"Zielony 6","82c91e":"Limonkowy 6","fab005":"Żółty 6","fd7e14":"Pomarańczowy 6","000000":"Czarny","343a40":"Szary 8","c92a2a":"Czerwony 9","a61e4d":"Różowy 9","862e9c":"Bordowy 9","5f3dc4":"Fioletowy 9","364fc7":"Granatowy 9","1864ab":"Niebieski 9","0b7285":"Błękitny 9","087f5b":"Turkusowy 9","2b8a3e":"Zielony 9","5c940d":"Limonkowy 9","e67700":"Żółty 9","d9480f":"Pomarańczowy 9"}}')},8881:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Colar","pasteCharts":"Colar gráficos","selectAll":"Selecionar tudo","multiSelect":"Adicionar elemento à seleção","moveCanvas":"Mover tela","cut":"Cortar","copy":"Copiar","copyAsPng":"Copiar para a área de transferência como PNG","copyAsSvg":"Copiar para a área de transferência como SVG","bringForward":"Trazer para a frente","sendToBack":"Enviar para o fundo","bringToFront":"Trazer para o primeiro plano","sendBackward":"Enviar para trás","delete":"Apagar","copyStyles":"Copiar os estilos","pasteStyles":"Colar os estilos","stroke":"Contorno","background":"Fundo","fill":"Preenchimento","strokeWidth":"Espessura do traço","strokeStyle":"Estilo de traço","strokeStyle_solid":"Sólido","strokeStyle_dashed":"Tracejado","strokeStyle_dotted":"Pontilhado","sloppiness":"Precisão do traço","opacity":"Opacidade","textAlign":"Alinhamento do texto","edges":"Arestas","sharp":"Pontudo","round":"Arredondado","arrowheads":"Pontas","arrowhead_none":"Nenhuma","arrowhead_arrow":"Flecha","arrowhead_bar":"Barra","arrowhead_dot":"Ponto","arrowhead_triangle":"Triângulo","fontSize":"Tamanho da fonte","fontFamily":"Família da fonte","onlySelected":"Somente a seleção","withBackground":"Fundo","exportEmbedScene":"Incorporar cena","exportEmbedScene_details":"Os dados da cena serão salvos no arquivo PNG/SVG exportado para que a cena possa ser restaurada.\\nIrá aumentar o tamanho do arquivo exportado.","addWatermark":"Adicionar \\"Feito com Excalidraw\\"","handDrawn":"Manuscrito","normal":"Normal","code":"Código","small":"Pequeno","medium":"Médio","large":"Grande","veryLarge":"Muito grande","solid":"Sólido","hachure":"Hachura","crossHatch":"Hachura cruzada","thin":"Fino","bold":"Espesso","left":"Esquerda","center":"Centralizar","right":"Direita","extraBold":"Muito espesso","architect":"Arquiteto","artist":"Artista","cartoonist":"Cartunista","fileTitle":"Nome do arquivo","colorPicker":"Seletor de cores","canvasBackground":"Fundo da tela","drawingCanvas":"Tela de desenho","layers":"Camadas","actions":"Ações","language":"Idioma","liveCollaboration":"Colaboração ao vivo","duplicateSelection":"Duplicar","untitled":"Sem título","name":"Nome","yourName":"Seu nome","madeWithExcalidraw":"Feito com Excalidraw","group":"Agrupar seleção","ungroup":"Desagrupar seleção","collaborators":"Colaboradores","showGrid":"Mostrar grade","addToLibrary":"Adicionar à biblioteca","removeFromLibrary":"Remover da biblioteca","libraryLoadingMessage":"Carregando biblioteca…","libraries":"Procurar bibliotecas","loadingScene":"Carregando cena…","align":"Alinhamento","alignTop":"Alinhar ao topo","alignBottom":"Alinhar embaixo","alignLeft":"Alinhar à esquerda","alignRight":"Alinhar à direita","centerVertically":"Centralizar verticalmente","centerHorizontally":"Centralizar horizontalmente","distributeHorizontally":"Distribuir horizontalmente","distributeVertically":"Distribuir verticalmente","flipHorizontal":"Inverter horizontalmente","flipVertical":"Inverter verticalmente","viewMode":"Modo de visualização","toggleExportColorScheme":"Alternar esquema de cores de exportação","share":"Compartilhar","showStroke":"Exibir seletor de cores do traço","showBackground":"Exibir seletor de cores do fundo","toggleTheme":"Alternar tema","personalLib":"Biblioteca Pessoal","excalidrawLib":"Biblioteca do Excalidraw","decreaseFontSize":"Diminuir o tamanho da fonte","increaseFontSize":"Aumentar o tamanho da fonte","unbindText":"Desvincular texto","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Limpar o canvas e redefinir a cor de fundo","exportJSON":"Exportar arquivo","exportImage":"Salvar como imagem","export":"Exportar","exportToPng":"Exportar em PNG","exportToSvg":"Exportar em SVG","copyToClipboard":"Copiar para o clipboard","copyPngToClipboard":"Copiar PNG para área de transferência","scale":"Escala","save":"Salvar para o arquivo atual","saveAs":"Salvar como","load":"Carregar","getShareableLink":"Obter um link de compartilhamento","close":"Fechar","selectLanguage":"Selecionar idioma","scrollBackToContent":"Voltar para o conteúdo","zoomIn":"Aumentar zoom","zoomOut":"Diminuir zoom","resetZoom":"Redefinir zoom","menu":"Menu","done":"Concluído","edit":"Editar","undo":"Desfazer","redo":"Refazer","resetLibrary":"Redefinir biblioteca","createNewRoom":"Criar nova sala","fullScreen":"Tela cheia","darkMode":"Modo escuro","lightMode":"Modo claro","zenMode":"Modo Zen","exitZenMode":"Sair do modo zen","cancel":"Cancelar","clear":"Limpar","remove":"Remover","publishLibrary":"Publicar","submit":"Enviar","confirm":"Confirmar"},"alerts":{"clearReset":"Isto irá limpar toda a tela. Você tem certeza?","couldNotCreateShareableLink":"Não foi possível criar um link de compartilhamento.","couldNotCreateShareableLinkTooBig":"Não foi possível criar um link compartilhável: a cena é muito grande","couldNotLoadInvalidFile":"Não foi possível carregar o arquivo inválido","importBackendFailed":"A importação do servidor falhou.","cannotExportEmptyCanvas":"Não é possível exportar um canvas vazio.","couldNotCopyToClipboard":"Não foi possível copiar para a área de transferência. Experimente usando o navegador Chrome.","decryptFailed":"Não foi possível descriptografar os dados.","uploadedSecurly":"O upload foi protegido com criptografia de ponta a ponta, o que significa que o servidor do Excalidraw e terceiros não podem ler o conteúdo.","loadSceneOverridePrompt":"Carregar um desenho externo substituirá o seu conteúdo existente. Deseja continuar?","collabStopOverridePrompt":"Ao interromper a sessão, você substituirá seu desenho anterior, armazenado localmente. Você tem certeza?\\n\\n(Se você deseja manter seu desenho local, simplesmente feche a aba do navegador.)","errorLoadingLibrary":"Houve um erro ao carregar a biblioteca de terceiros.","errorAddingToLibrary":"Não foi possível adicionar o item à biblioteca","errorRemovingFromLibrary":"Não foi possível remover o item da biblioteca","confirmAddLibrary":"Isso adicionará {{numShapes}} forma(s) à sua biblioteca. Tem certeza?","imageDoesNotContainScene":"Esta imagem parece não conter dados de cenas. Você ativou a incorporação da cena durante a exportação?","cannotRestoreFromImage":"Não foi possível restaurar a cena deste arquivo de imagem","invalidSceneUrl":"Não foi possível importar a cena da URL fornecida. Ela está incompleta ou não contém dados JSON válidos do Excalidraw.","resetLibrary":"Isto limpará a sua biblioteca. Você tem certeza?","removeItemsFromsLibrary":"Excluir {{count}} item(ns) da biblioteca?","invalidEncryptionKey":"A chave de encriptação deve ter 22 caracteres. A colaboração ao vivo está desabilitada."},"errors":{"unsupportedFileType":"Tipo de arquivo não suportado.","imageInsertError":"Não foi possível inserir imagem. Tente novamente mais tarde...","fileTooBig":"O arquivo é muito grande. O tamanho máximo permitido é {{maxSize}}.","svgImageInsertError":"Não foi possível inserir a imagem SVG. A marcação SVG parece inválida.","invalidSVGString":"SVG Inválido."},"toolBar":{"selection":"Seleção","image":"Inserir imagem","rectangle":"Retângulo","diamond":"Losango","ellipse":"Elipse","arrow":"Flecha","line":"Linha","freedraw":"Desenhar","text":"Texto","library":"Biblioteca","lock":"Manter ativa a ferramenta selecionada após desenhar","penMode":"Prevenir a ação de tocar-ampliar e permitir apenas interações da caneta","link":""},"headings":{"canvasActions":"Ações da tela","selectedShapeActions":"Ações das formas selecionadas","shapes":"Formas"},"hints":{"canvasPanning":"Para mover a tela, segure a roda do mouse ou a barra de espaço enquanto arrasta","linearElement":"Clique para iniciar vários pontos, arraste para uma única linha","freeDraw":"Toque e arraste, solte quando terminar","text":"Dica: você também pode adicionar texto clicando duas vezes em qualquer lugar com a ferramenta de seleção","text_selected":"Clique duplo ou tecle ENTER para editar o texto","text_editing":"Pressione Esc ou Ctrl/Cmd+ENTER para encerrar a edição","linearElementMulti":"Clique no último ponto ou pressione Escape ou Enter para terminar","lockAngle":"Você pode restringir o ângulo segurando o SHIFT","resize":"Você pode restringir proporções segurando SHIFT enquanto redimensiona,\\nsegure ALT para redimensionar do centro","resizeImage":"Você pode redimensionar livremente segurando SHIFT,\\nsegure ALT para redimensionar a partir do centro","rotate":"Você pode restringir os ângulos segurando SHIFT enquanto gira","lineEditor_info":"Clique duas vezes ou pressione Enter para editar os pontos","lineEditor_pointSelected":"Pressione Delete para remover o(s) ponto(s),\\nCtrl/Cmd+D para duplicar ou arraste para mover","lineEditor_nothingSelected":"Selecione um ponto para editar (segure SHIFT para selecionar vários) ou segure Alt e clique para adicionar novos pontos","placeImage":"Clique para colocar a imagem, ou clique e arraste para definir manualmente o seu tamanho","publishLibrary":"Publicar sua própria biblioteca","bindTextToElement":"Pressione Enter para adicionar o texto","deepBoxSelect":"Segure Ctrl/Cmd para seleção profunda e para evitar arrastar"},"canvasError":{"cannotShowPreview":"Não é possível mostrar pré-visualização","canvasTooBig":"A tela pode ser muito grande.","canvasTooBigTip":"Dica: tente aproximar um pouco os elementos mais distantes."},"errorSplash":{"headingMain_pre":"Foi encontrado um erro. Tente ","headingMain_button":"recarregar a página.","clearCanvasMessage":"Se recarregar a página não funcionar, tente ","clearCanvasMessage_button":"limpando a tela.","clearCanvasCaveat":" Isso resultará em perda de trabalho ","trackedToSentry_pre":"O erro com o identificador ","trackedToSentry_post":" foi rastreado no nosso sistema.","openIssueMessage_pre":"Fomos muito cautelosos para não incluir suas informações de cena no erro. Se sua cena não for privada, por favor, considere seguir nosso ","openIssueMessage_button":"rastreador de bugs.","openIssueMessage_post":" Por favor, inclua informações abaixo, copiando e colando para a issue do GitHub.","sceneContent":"Conteúdo da cena:"},"roomDialog":{"desc_intro":"Você pode convidar pessoas para sua cena atual para colaborar com você.","desc_privacy":"Não se preocupe, a sessão usa criptografia de ponta a ponta; portanto, o que você desenhar permanecerá privado. Nem mesmo nosso servidor poderá ver o que você cria.","button_startSession":"Iniciar sessão","button_stopSession":"Parar sessão","desc_inProgressIntro":"A sessão de colaboração ao vivo está agora em andamento.","desc_shareLink":"Compartilhe este link com qualquer pessoa com quem você queira colaborar:","desc_exitSession":"Interrompendo a sessão você irá se desconectar da sala, mas você poderá continuar trabalhando com a cena localmente. Observe que isso não afetará outras pessoas, e elas ainda poderão colaborar em suas versões.","shareTitle":"Participe de uma sessão ao vivo de colaboração no Excalidraw"},"errorDialog":{"title":"Erro"},"exportDialog":{"disk_title":"Salvar no computador","disk_details":"Exportar os dados da cena para um arquivo que você poderá importar mais tarde.","disk_button":"Salvar em um arquivo","link_title":"Link compartilhável","link_details":"Exportar como link de apenas leitura.","link_button":"Exportar link","excalidrawplus_description":"Salvar a cena na sua área de trabalho Excalidraw+.","excalidrawplus_button":"Exportar","excalidrawplus_exportError":"Não é possível exportar para o Excalidraw+ neste momento..."},"helpDialog":{"blog":"Leia o nosso blog","click":"clicar","deepSelect":"Seleção profunda","deepBoxSelect":"Use a seleção profunda dentro da caixa para previnir arrastar","curvedArrow":"Seta curva","curvedLine":"Linha curva","documentation":"Documentação","doubleClick":"clique duplo","drag":"arrastar","editor":"Editor","editSelectedShape":"Editar forma selecionada (texto/seta/linha)","github":"Encontrou algum problema? Nos informe","howto":"Siga nossos guias","or":"ou","preventBinding":"Evitar fixação de seta","shapes":"Formas","shortcuts":"Atalhos de teclado","textFinish":"Encerrar edição (editor de texto)","textNewLine":"Adicionar nova linha (editor de texto)","title":"Ajudar","view":"Visualizar","zoomToFit":"Ampliar para encaixar todos os elementos","zoomToSelection":"Ampliar a seleção"},"clearCanvasDialog":{"title":"Limpar a tela"},"publishDialog":{"title":"Publicar biblioteca","itemName":"Nome do item","authorName":"Nome do autor","githubUsername":"Nome de usuário do GitHub","twitterUsername":"Nome de usuário do Twitter","libraryName":"Nome da Biblioteca","libraryDesc":"Descrição da biblioteca","website":"Site","placeholder":{"authorName":"Seu nome ou nome de usuário","libraryName":"Nome da sua biblioteca","libraryDesc":"Descrição para ajudar as pessoas a entenderem o uso da sua da sua biblioteca","githubHandle":"Identificador do GitHub (opcional), para que você possa editar a biblioteca depois de enviar para revisão","twitterHandle":"Nome de usuário do Twitter (opcional), para que saibamos quem deve ser creditado se promovermos no Twitter","website":"Link para o seu site pessoal ou outro lugar (opcional)"},"errors":{"required":"Obrigatório","website":"Informe uma URL válida"},"noteDescription":{"pre":"Envie sua biblioteca para ser incluída no ","link":"repositório de biblioteca pública","post":"para outras pessoas usarem em seus desenhos."},"noteGuidelines":{"pre":"A biblioteca precisa ser aprovada manualmente primeiro. Por favor leia o ","link":"orientações","post":" antes de enviar. Você precisará de uma conta do GitHub para se comunicar e fazer alterações quando solicitado, mas não é estritamente necessário."},"noteLicense":{"pre":"Ao enviar, você concorda que a biblioteca será publicada sob a ","link":"Licença MIT, ","post":"o que, em suma, significa que qualquer pessoa pode utilizá-los sem restrições."},"noteItems":"Cada item da biblioteca deve ter seu próprio nome para que seja filtrável. Os seguintes itens da biblioteca serão incluídos:","atleastOneLibItem":"Por favor, selecione pelo menos um item da biblioteca para começar"},"publishSuccessDialog":{"title":"Biblioteca enviada","content":"Obrigado {{authorName}}. Sua biblioteca foi enviada para análise. Você pode acompanhar o status","link":"aqui"},"confirmDialog":{"resetLibrary":"Redefinir biblioteca","removeItemsFromLib":"Remover itens selecionados da biblioteca"},"encrypted":{"tooltip":"Seus desenhos são criptografados de ponta a ponta, então os servidores do Excalidraw nunca os verão.","link":"Publicação de blog com criptografia de ponta a ponta no Excalidraw"},"stats":{"angle":"Ângulo","element":"Elemento","elements":"Elementos","height":"Altura","scene":"Cena","selected":"Selecionado","storage":"Armazenamento","title":"Estatísticas para nerds","total":"Total","version":"Versão","versionCopy":"Clique para copiar","versionNotAvailable":"Versão não disponível","width":"Largura"},"toast":{"addedToLibrary":"Adicionado à biblioteca","copyStyles":"Estilos copiados.","copyToClipboard":"Copiado para área de transferência.","copyToClipboardAsPng":"{{exportSelection}} copiado para a área de transferência como PNG ({{exportColorScheme}})","fileSaved":"Arquivo salvo.","fileSavedToFilename":"Salvo em {filename}","canvas":"tela","selection":"seleção"},"colors":{"495057":"Cinza 7","ffffff":"Braco","f8f9fa":"Cinza 0","f1f3f5":"Cinza 1","fff5f5":"Vermelho 0","fff0f6":"Rosa 0","f8f0fc":"Uva 0","f3f0ff":"Violeta 0","edf2ff":"Índigo 0","e7f5ff":"Azul 0","e3fafc":"Ciano 0","e6fcf5":"Verde-azulado 0","ebfbee":"Verde 0","f4fce3":"Lima 0","fff9db":"Amarelo 0","fff4e6":"Laranja 0","transparent":"Transparente","ced4da":"Cinza 4","868e96":"Cinza 6","fa5252":"Vermelho 6","e64980":"Rosa 6","be4bdb":"Uva 6","7950f2":"Violeta 6","4c6ef5":"Índigo 6","228be6":"Azul 6","15aabf":"Ciano 6","12b886":"Verde-azulado 6","40c057":"Verde 6","82c91e":"Lima 6","fab005":"Amarelo 6","fd7e14":"Laranja 6","000000":"Preto","343a40":"Cinza 8","c92a2a":"Vermelho 9","a61e4d":"Rosa 9","862e9c":"Uva 9","5f3dc4":"Violeta 9","364fc7":"Índigo 9","1864ab":"Azul 9","0b7285":"Ciano 9","087f5b":"Verde-azulado 9","2b8a3e":"Verde 9","5c940d":"Lima 9","e67700":"Amarelo 9","d9480f":"Laranja 9"}}')},5622:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Colar","pasteCharts":"Colar gráficos","selectAll":"Selecionar tudo","multiSelect":"Adicionar elemento à seleção","moveCanvas":"Mover tela","cut":"Cortar","copy":"Copiar","copyAsPng":"Copiar para a área de transferência como PNG","copyAsSvg":"Copiar para a área de transferência como SVG","bringForward":"Trazer para o primeiro plano","sendToBack":"Enviar para o plano de fundo","bringToFront":"Trazer para o primeiro plano","sendBackward":"Enviar para trás","delete":"Apagar","copyStyles":"Copiar os estilos","pasteStyles":"Colar os estilos","stroke":"Contornos","background":"Fundo","fill":"Preenchimento","strokeWidth":"Espessura do traço","strokeStyle":"Estilo de traço","strokeStyle_solid":"Sólido","strokeStyle_dashed":"Tracejado","strokeStyle_dotted":"Pontilhado","sloppiness":"Desleixo","opacity":"Opacidade","textAlign":"Alinhamento do texto","edges":"Arestas","sharp":"Aguçado","round":"Redondo","arrowheads":"Pontas","arrowhead_none":"Nenhuma","arrowhead_arrow":"Seta","arrowhead_bar":"Barra","arrowhead_dot":"Ponto","arrowhead_triangle":"","fontSize":"Tamanho da fonte","fontFamily":"Família da fontes","onlySelected":"Somente a seleção","withBackground":"Fundo","exportEmbedScene":"Cena embutida","exportEmbedScene_details":"Os dados da cena serão guardados no ficheiro PNG/SVG exportado para que a cena possa ser restaurada.\\nIrá aumentar o tamanho do ficheiro exportado.","addWatermark":"Adicionar \\"Feito com Excalidraw\\"","handDrawn":"Manuscrito","normal":"Normal","code":"Código","small":"Pequeno","medium":"Médio","large":"Grande","veryLarge":"Muito grande","solid":"Sólido","hachure":"Eclosão","crossHatch":"Sombreado","thin":"Fino","bold":"Espesso","left":"Esquerda","center":"Centralizar","right":"Direita","extraBold":"Muito espesso","architect":"Arquitecto","artist":"Artista","cartoonist":"Caricaturista","fileTitle":"Nome do ficheiro","colorPicker":"Seletor de cores","canvasBackground":"Fundo da área de desenho","drawingCanvas":"Área de desenho","layers":"Camadas","actions":"Ações","language":"Idioma","liveCollaboration":"Colaboração ao vivo","duplicateSelection":"Duplicar","untitled":"Sem título","name":"Nome","yourName":"O seu nome","madeWithExcalidraw":"Feito com Excalidraw","group":"Agrupar seleção","ungroup":"Desagrupar seleção","collaborators":"Colaboradores","showGrid":"Mostrar grelha","addToLibrary":"Adicionar à biblioteca","removeFromLibrary":"Remover da biblioteca","libraryLoadingMessage":"A carregar a biblioteca…","libraries":"Procurar bibliotecas","loadingScene":"A carregar a cena…","align":"Alinhamento","alignTop":"Alinhar ao topo","alignBottom":"Alinhar ao fundo","alignLeft":"Alinhar à esquerda","alignRight":"Alinhar à direita","centerVertically":"Centrar verticalmente","centerHorizontally":"Centrar horizontalmente","distributeHorizontally":"Distribuir horizontalmente","distributeVertically":"Distribuir verticalmente","flipHorizontal":"Inverter horizontalmente","flipVertical":"Inverter verticalmente","viewMode":"Modo de visualização","toggleExportColorScheme":"Alternar esquema de cores de exportação","share":"Partilhar","showStroke":"Mostrar seletor de cores do traço","showBackground":"Mostrar seletor de cores do fundo","toggleTheme":"Alternar tema","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Limpar a área de desenho e redefinir a cor de fundo","exportJSON":"Exportar para ficheiro","exportImage":"Guardar como imagem","export":"Exportar","exportToPng":"Exportar em PNG","exportToSvg":"Exportar em SVG","copyToClipboard":"Copiar para o clipboard","copyPngToClipboard":"Copiar PNG para área de transferência","scale":"Escala","save":"Guardar no ficheiro atual","saveAs":"Guardar como","load":"Carregar","getShareableLink":"Obter um link de partilha","close":"Fechar","selectLanguage":"Selecionar idioma","scrollBackToContent":"Voltar ao conteúdo","zoomIn":"Aumentar zoom","zoomOut":"Diminuir zoom","resetZoom":"Redefinir zoom","menu":"Menu","done":"Concluído","edit":"Editar","undo":"Desfazer","redo":"Refazer","resetLibrary":"Repor a biblioteca","createNewRoom":"Criar nova sala","fullScreen":"Ecrã inteiro","darkMode":"Modo escuro","lightMode":"Modo claro","zenMode":"Modo zen","exitZenMode":"Sair do modo zen","cancel":"Cancelar","clear":"Limpar","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"Isto irá limpar toda a área de desenho. Tem a certeza?","couldNotCreateShareableLink":"Não foi possível criar um link partilhável.","couldNotCreateShareableLinkTooBig":"Não foi possível criar um link partilhável: a cena é muito grande","couldNotLoadInvalidFile":"Não foi possível carregar o ficheiro inválido","importBackendFailed":"A importação do servidor falhou.","cannotExportEmptyCanvas":"Não é possível exportar uma área de desenho vazia.","couldNotCopyToClipboard":"Não foi possível copiar para a área de transferência. Experimente no navegador Chrome.","decryptFailed":"Não foi possível desencriptar os dados.","uploadedSecurly":"O upload foi protegido com criptografia de ponta a ponta, o que significa que o servidor do Excalidraw e terceiros não podem ler o conteúdo.","loadSceneOverridePrompt":"Se carregar um desenho externo substituirá o conteúdo existente. Quer continuar?","collabStopOverridePrompt":"Ao interromper a sessão irá substituir o último desenho guardado. Tem a certeza?\\n\\n(Caso queira manter o último desenho, simplesmente feche a janela do navegador.)","errorLoadingLibrary":"Houve um erro ao carregar a biblioteca de terceiros.","errorAddingToLibrary":"Não foi possível adicionar o item à biblioteca","errorRemovingFromLibrary":"Não foi possível remover o item da biblioteca","confirmAddLibrary":"Isso adicionará {{numShapes}} forma(s) à sua biblioteca. Tem a certeza?","imageDoesNotContainScene":"Esta imagem parece não conter dados de cenas. Ativou a incorporação da cena durante a exportação?","cannotRestoreFromImage":"Não foi possível restaurar a cena deste ficheiro de imagem","invalidSceneUrl":"Não foi possível importar a cena a partir do URL fornecido. Ou está mal formado ou não contém dados JSON do Excalidraw válidos.","resetLibrary":"Isto irá limpar a sua biblioteca. Tem a certeza?","removeItemsFromsLibrary":"","invalidEncryptionKey":"Chave de encriptação deve ter 22 caracteres. A colaboração ao vivo está desativada."},"errors":{"unsupportedFileType":"Tipo de ficheiro não suportado.","imageInsertError":"Não foi possível inserir a imagem, tente novamente mais tarde...","fileTooBig":"O ficheiro é muito grande. O tamanho máximo permitido é {{maxSize}}.","svgImageInsertError":"Não foi possível inserir a imagem SVG. A marcação SVG parece inválida.","invalidSVGString":""},"toolBar":{"selection":"Seleção","image":"Inserir imagem","rectangle":"Retângulo","diamond":"Losango","ellipse":"Elipse","arrow":"Flecha","line":"Linha","freedraw":"Desenhar","text":"Texto","library":"Biblioteca","lock":"Manter a ferramenta selecionada ativa após desenhar","penMode":"","link":""},"headings":{"canvasActions":"Ações da área de desenho","selectedShapeActions":"Ações das formas selecionadas","shapes":"Formas"},"hints":{"canvasPanning":"","linearElement":"Clique para iniciar vários pontos, arraste para uma única linha","freeDraw":"Clique e arraste, large quando terminar","text":"Dica: também pode adicionar texto clicando duas vezes em qualquer lugar com a ferramenta de seleção","text_selected":"Clique duas vezes ou pressione a tecla Enter para editar o texto","text_editing":"Pressione a tecla Escape ou CtrlOrCmd+ENTER para terminar a edição","linearElementMulti":"Clique no último ponto ou pressione Escape ou Enter para terminar","lockAngle":"Pode restringir o ângulo mantendo premida a tecla SHIFT","resize":"Pode restringir as proporções mantendo a tecla SHIFT premida enquanto redimensiona,\\nmantenha a tecla ALT premida para redimensionar a partir do centro","resizeImage":"Pode redimensionar livremente mantendo pressionada a tecla SHIFT,\\nmantenha pressionada a tecla ALT para redimensionar do centro","rotate":"Pode restringir os ângulos mantendo a tecla SHIFT premida enquanto roda","lineEditor_info":"Clique duas vezes ou pressione a tecla Enter para editar os pontos","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Clique para colocar a imagem ou clique e arraste para definir o seu tamanho manualmente","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Não é possível mostrar uma pré-visualização","canvasTooBig":"A área de desenho pode ser muito grande.","canvasTooBigTip":"Dica: tente aproximar um pouco os elementos mais distantes."},"errorSplash":{"headingMain_pre":"Foi encontrado um erro. Tente ","headingMain_button":"recarregar a página.","clearCanvasMessage":"Se a recarga não funcionar, tente ","clearCanvasMessage_button":"a limpar a área de desenho.","clearCanvasCaveat":" Isso resultará em perda de trabalho ","trackedToSentry_pre":"O erro com o identificador ","trackedToSentry_post":" foi rastreado no nosso sistema.","openIssueMessage_pre":"Fomos muito cautelosos para não incluir suas informações de cena no erro. Se sua cena não for privada, por favor, considere seguir nosso ","openIssueMessage_button":"rastreador de bugs.","openIssueMessage_post":" Por favor, inclua informações abaixo, copiando e colando no relatório de erros no GitHub.","sceneContent":"Conteúdo da cena:"},"roomDialog":{"desc_intro":"Pode convidar pessoas para colaborarem na sua cena atual.","desc_privacy":"Não se preocupe, a sessão usa criptografia de ponta-a-ponta, por isso o que desenhar permanecerá privado. Nem mesmo o nosso servidor poderá ver o que cria.","button_startSession":"Iniciar sessão","button_stopSession":"Parar sessão","desc_inProgressIntro":"A sessão de colaboração ao vivo está agora em andamento.","desc_shareLink":"Partilhe este link com qualquer pessoa com quem queira colaborar:","desc_exitSession":"Interrompendo a sessão irá desconectar-se da sala, mas poderá continuar a trabalhar com a cena localmente. Note que isso não afetará outras pessoas e elas ainda poderão colaborar nas versões deles.","shareTitle":"Participe numa sessão de colaboração ao vivo no Excalidraw"},"errorDialog":{"title":"Erro"},"exportDialog":{"disk_title":"Guardar no disco","disk_details":"Exportar os dados da cena para um ficheiro do qual poderá importar mais tarde.","disk_button":"Guardar num ficheiro","link_title":"Link partilhável","link_details":"Exportar como um link de apenas leitura.","link_button":"Exportar para link","excalidrawplus_description":"Guardar a cena no seu espaço de trabalho Excalidraw+","excalidrawplus_button":"Exportar","excalidrawplus_exportError":"Não foi possível exportar para o Excalidraw+ neste momento..."},"helpDialog":{"blog":"Leia o nosso blogue","click":"clicar","deepSelect":"","deepBoxSelect":"","curvedArrow":"Seta curva","curvedLine":"Linha curva","documentation":"Documentação","doubleClick":"clique duplo","drag":"arrastar","editor":"Editor","editSelectedShape":"Editar forma selecionada (texto/seta/linha)","github":"Encontrou algum problema? Informe-nos","howto":"Siga os nossos guias","or":"ou","preventBinding":"Prevenir fixação de seta","shapes":"Formas","shortcuts":"Atalhos de teclado","textFinish":"Finalizar edição (editor texto)","textNewLine":"Adicionar nova linha (editor de texto)","title":"Ajuda","view":"Visualizar","zoomToFit":"Ajustar para todos os elementos caberem","zoomToSelection":"Ampliar a seleção"},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Os seus desenhos são encriptados de ponta-a-ponta, por isso os servidores do Excalidraw nunca os verão.","link":"Publicação de blogue na encriptação ponta-a-ponta no Excalidraw"},"stats":{"angle":"Ângulo","element":"Elemento","elements":"Elementos","height":"Altura","scene":"Cena","selected":"Selecionado","storage":"Armazenamento","title":"Estatísticas para nerds","total":"Total","version":"Versão","versionCopy":"Clique para copiar","versionNotAvailable":"Versão não disponível","width":"Largura"},"toast":{"addedToLibrary":"","copyStyles":"Estilos copiados.","copyToClipboard":"Copiado para a área de transferência.","copyToClipboardAsPng":"{{exportSelection}} copiado para a área de transferência como PNG\\n({{exportColorScheme}})","fileSaved":"Ficheiro guardado.","fileSavedToFilename":"Guardado como {filename}","canvas":"área de desenho","selection":"seleção"},"colors":{"495057":"Cinza 7","ffffff":"Branco","f8f9fa":"Cinza 0","f1f3f5":"Cinza 1","fff5f5":"Vermelho 0","fff0f6":"Rosa 0","f8f0fc":"Uva 0","f3f0ff":"Violeta 0","edf2ff":"Indigo 0","e7f5ff":"Azul 0","e3fafc":"Ciano 0","e6fcf5":"Verde-azulado 0","ebfbee":"Verde 0","f4fce3":"Lima 0","fff9db":"Amarelo 0","fff4e6":"Laranja 0","transparent":"Transparente","ced4da":"Cinza 4","868e96":"Cinza 6","fa5252":"Vermelho 6","e64980":"Rosa 6","be4bdb":"Uva 6","7950f2":"Violeta 6","4c6ef5":"Indigo 6","228be6":"Azul 6","15aabf":"Ciano 6","12b886":"Verde-azulado 6","40c057":"Verde 6","82c91e":"Lima 6","fab005":"Amarelo 6","fd7e14":"Laranja 6","000000":"Preto","343a40":"Cinza 8","c92a2a":"Vermelho 9","a61e4d":"Rosa 9","862e9c":"Uva 9","5f3dc4":"Violeta 9","364fc7":"Indigo 9","1864ab":"Azul 9","0b7285":"Ciano 9","087f5b":"Verde-azulado 9","2b8a3e":"Verde 9","5c940d":"Lima 9","e67700":"Amarelo 9","d9480f":"Laranja 9"}}')},2013:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Lipire","pasteCharts":"Lipire diagrame","selectAll":"Selectare totală","multiSelect":"Adaugă element la selecție","moveCanvas":"Mutare pânză","cut":"Decupare","copy":"Copiere","copyAsPng":"Copiere în memoria temporară ca PNG","copyAsSvg":"Copiere în memoria temporară ca SVG","bringForward":"Aducere în plan apropiat","sendToBack":"Trimitere în ultimul plan","bringToFront":"Aducere în prim plan","sendBackward":"Trimitere în plan secundar","delete":"Ștergere","copyStyles":"Copiere stiluri","pasteStyles":"Lipire stiluri","stroke":"Contur","background":"Fundal","fill":"Umplere","strokeWidth":"Lățimea conturului","strokeStyle":"Stilul conturului","strokeStyle_solid":"Neîntrerupt","strokeStyle_dashed":"Liniuțe","strokeStyle_dotted":"Punctat","sloppiness":"Aspectul trasării","opacity":"Opacitate","textAlign":"Alinierea textului","edges":"Margini","sharp":"Ascuțite","round":"Rotunde","arrowheads":"Vârfuri de săgeată","arrowhead_none":"Niciunul","arrowhead_arrow":"Săgeată","arrowhead_bar":"Bară","arrowhead_dot":"Bulină","arrowhead_triangle":"Triunghi","fontSize":"Dimensiune font","fontFamily":"Familia de fonturi","onlySelected":"Numai selecția","withBackground":"Fundal","exportEmbedScene":"Încorporare scenă","exportEmbedScene_details":"Datele scenei vor fi salvate în fișierul PNG/SVG exportat, astfel că scena va putea fi restaurată din acesta.\\nVa crește dimensiunea fișierului exportat.","addWatermark":"Adaugă „Realizat cu Excalidraw”","handDrawn":"Scris de mână","normal":"Normal","code":"Cod","small":"Mică","medium":"Medie","large":"Mare","veryLarge":"Foarte mare","solid":"Plină","hachure":"Hașură","crossHatch":"Hașură transversală","thin":"Subțire","bold":"Îngroșată","left":"Stânga","center":"Centru","right":"Dreapta","extraBold":"Extra îngroșată","architect":"Arhitect","artist":"Artist","cartoonist":"Caricaturist","fileTitle":"Nume de fișier","colorPicker":"Selector de culoare","canvasBackground":"Fundalul pânzei","drawingCanvas":"Pânză pentru desenat","layers":"Straturi","actions":"Acțiuni","language":"Limbă","liveCollaboration":"Colaborare în direct","duplicateSelection":"Duplicare","untitled":"Nedenumit","name":"Nume","yourName":"Numele tău","madeWithExcalidraw":"Realizat cu Excalidraw","group":"Grupare selecție","ungroup":"Degrupare selecție","collaborators":"Colaboratori","showGrid":"Afișare grilă","addToLibrary":"Adăugare la bibliotecă","removeFromLibrary":"Eliminare din bibliotecă","libraryLoadingMessage":"Se încarcă biblioteca…","libraries":"Răsfoiește bibliotecile","loadingScene":"Se încarcă scena…","align":"Aliniere","alignTop":"Aliniere sus","alignBottom":"Aliniere jos","alignLeft":"Aliniere la stânga","alignRight":"Aliniere la dreapta","centerVertically":"Centrare verticală","centerHorizontally":"Centrare orizontală","distributeHorizontally":"Distribuie orizontal","distributeVertically":"Distribuie vertical","flipHorizontal":"Răsturnare orizontală","flipVertical":"Răsturnare verticală","viewMode":"Mod de vizualizare","toggleExportColorScheme":"Comutare schemă de culori de export","share":"Distribuie","showStroke":"Afișare selector culoare contur","showBackground":"Afișare selector culoare fundal","toggleTheme":"Comutare temă","personalLib":"Biblioteca personală","excalidrawLib":"Biblioteca Excalidraw","decreaseFontSize":"Micșorează dimensiunea fontului","increaseFontSize":"Mărește dimensiunea fontului","unbindText":"Deconectare text","link":{"edit":"Editare URL","create":"Creare URL","label":"URL"}},"buttons":{"clearReset":"Resetare pânză","exportJSON":"Exportare la fișiere","exportImage":"Salvare ca imagine","export":"Exportare","exportToPng":"Exportare ca PNG","exportToSvg":"Exportare ca SVG","copyToClipboard":"Copiere în memoria temporară","copyPngToClipboard":"Copiere PNG în memoria temporară","scale":"Scală","save":"Salvare în fișierul curent","saveAs":"Salvare ca","load":"Încărcare","getShareableLink":"Obține URL partajabil","close":"Închidere","selectLanguage":"Selectare limbă","scrollBackToContent":"Derulare înapoi la conținut","zoomIn":"Apropiere","zoomOut":"Depărtare","resetZoom":"Resetare transfocare","menu":"Meniu","done":"Efectuat","edit":"Edit","undo":"Anulare","redo":"Refacere","resetLibrary":"Resetare bibliotecă","createNewRoom":"Creare cameră nouă","fullScreen":"Ecran complet","darkMode":"Mod întunecat","lightMode":"Mod luminos","zenMode":"Mod zen","exitZenMode":"Ieșire din modul zen","cancel":"Anulare","clear":"Ștergere","remove":"Eliminare","publishLibrary":"Publicare","submit":"Trimitere","confirm":"Confirmare"},"alerts":{"clearReset":"Această opțiune va șterge întreaga pânză. Confirmi?","couldNotCreateShareableLink":"Nu s-a putut crea un URL partajabil.","couldNotCreateShareableLinkTooBig":"Nu s-a putut crea un URL partajabil: scena este prea mare","couldNotLoadInvalidFile":"Fișierul invalid nu a putut fi încărcat","importBackendFailed":"Importarea de la nivel de server a eșuat.","cannotExportEmptyCanvas":"Nu se poate exporta pânza goală.","couldNotCopyToClipboard":"Nu s-a putut copia în memoria temporară. Încearcă să utilizezi navigatorul Chrome.","decryptFailed":"Datele nu au putut fi decriptate.","uploadedSecurly":"Încărcarea a fost securizată prin criptare integrală, însemnând că serverul Excalidraw și terții nu pot citi conținutul.","loadSceneOverridePrompt":"Încărcarea desenului extern va înlocui conținutul existent. Dorești să continui?","collabStopOverridePrompt":"Oprirea sesiunii va suprascrie desenul anterior stocat local. Confirmi alegerea?\\n\\n(Dacă vrei să păstrezi desenul local, pur și simplu închide fila navigatorului în schimb.)","errorLoadingLibrary":"A apărut o eroare la încărcarea bibliotecii terțe.","errorAddingToLibrary":"Elementul nu a putut fi adăugat în bibliotecă","errorRemovingFromLibrary":"Elementul nu a putut fi eliminat din bibliotecă","confirmAddLibrary":"Această acțiune va adăuga {{numShapes}} formă(e) la biblioteca ta. Confirmi?","imageDoesNotContainScene":"Această imagine nu pare să conțină date de scenă. Ai activat încorporarea scenei în timpul exportului?","cannotRestoreFromImage":"Scena nu a putut fi restaurată din acest fișier de imagine","invalidSceneUrl":"Scena nu a putut fi importată din URL-ul furnizat. Este fie incorect formată, fie nu conține date JSON Excalidraw valide.","resetLibrary":"Această opțiune va elimina conținutul din bibliotecă. Confirmi?","removeItemsFromsLibrary":"Ștergi {{count}} element(e) din bibliotecă?","invalidEncryptionKey":"Cheia de criptare trebuie să aibă 22 de caractere. Colaborarea în direct este dezactivată."},"errors":{"unsupportedFileType":"Tip de fișier neacceptat.","imageInsertError":"Imaginea nu a putut fi introdusă. Reîncearcă mai târziu...","fileTooBig":"Fișierul este prea mare. Dimensiunea maximă permisă este de {{maxSize}}.","svgImageInsertError":"Imaginea SVG nu a putut fi introdus. Marcajul SVG pare invalid.","invalidSVGString":"SVG invalid."},"toolBar":{"selection":"Selecție","image":"Introducere imagine","rectangle":"Dreptunghi","diamond":"Romb","ellipse":"Elipsă","arrow":"Săgeată","line":"Linie","freedraw":"Desenare","text":"Text","library":"Bibliotecă","lock":"Menține activ instrumentul selectat după desenare","penMode":"Împiedică mărirea prin ciupire și acceptă desenarea liberă doar de la stilou","link":"Adăugare/actualizare URL pentru forma selectată"},"headings":{"canvasActions":"Acțiuni pentru pânză","selectedShapeActions":"Acțiuni pentru forma selectată","shapes":"Forme"},"hints":{"canvasPanning":"Pentru a muta pânză, ține apăsată rotița mausului sau bara de spațiu în timpul glisării","linearElement":"Dă clic pentru a crea mai multe puncte, glisează pentru a forma o singură linie","freeDraw":"Dă clic pe pânză și glisează cursorul, apoi eliberează-l când ai terminat","text":"Sfat: poți adăuga text și dând dublu clic oriunde cu instrumentul de selecție","text_selected":"Dă dublu clic sau apasă tasta Enter pentru a edita textul","text_editing":"Apasă tasta Escape sau Ctrl sau Cmd + Enter pentru a finaliza editarea","linearElementMulti":"Dă clic pe ultimul punct sau apasă tasta Escape sau tasta Enter pentru a termina","lockAngle":"Poți constrânge unghiul prin ținerea apăsată a tastei SHIFT","resize":"Poți constrânge proporțiile, ținând apăsată tasta SHIFT în timp ce redimensionezi,\\nține apăsată tasta ALT pentru a redimensiona de la centru","resizeImage":"Poți redimensiona liber ținând apăsată tasta SHIFT,\\nține apăsată tasta ALT pentru a redimensiona din centru","rotate":"Poți constrânge unghiurile, ținând apăsată tasta SHIFT în timp ce rotești","lineEditor_info":"Dă dublu clic sau apasă tasta Enter pentru a edita punctele","lineEditor_pointSelected":"Apasă tasta Delete pentru a elimina punctele,\\ncombinația de taste Ctrl sau Cmd + D pentru a le duplica sau glisează-le pentru a le schimba poziția","lineEditor_nothingSelected":"Selectează un punct pentru a-l edita (ține apăsată tasta SHIFT pentru a selecta mai multe),\\nsau ține apăsată tasta Alt și dă clic pentru a adăuga puncte noi","placeImage":"Dă clic pentru a poziționa imaginea sau dă clic și glisează pentru a seta manual dimensiunea imaginii","publishLibrary":"Publică propria bibliotecă","bindTextToElement":"Apasă tasta Enter pentru a adăuga text","deepBoxSelect":"Ține apăsată tasta Ctrl sau Cmd pentru a efectua selectarea de adâncime și pentru a preveni glisarea"},"canvasError":{"cannotShowPreview":"Nu se poate afișa previzualizarea","canvasTooBig":"Pânza poate fi prea mare.","canvasTooBigTip":"Sfat: încearcă să apropii puțin mai mult elementele cele mai îndepărtate."},"errorSplash":{"headingMain_pre":"A apărut o eroare. Încearcă ","headingMain_button":"să reîncarci pagina.","clearCanvasMessage":"Dacă reîncărcarea nu funcționează, încearcă ","clearCanvasMessage_button":"să golești pânza.","clearCanvasCaveat":" Acest lucru va duce la pierderea progresului ","trackedToSentry_pre":"Eroarea cu identificatorul ","trackedToSentry_post":" a fost urmărită în sistemul nostru.","openIssueMessage_pre":"Am luat măsuri de precauție pentru a nu include informații despre scenă în eroare. Dacă scena nu este privată, te rugăm să ne oferi mai multe informații în ","openIssueMessage_button":"monitorul nostru pentru erori.","openIssueMessage_post":" Te rugăm să incluzi informațiile de mai jos prin copierea și lipirea în problema GitHub.","sceneContent":"Conținutul scenei:"},"roomDialog":{"desc_intro":"Poți invita alte persoane pentru a colabora la scena actuală.","desc_privacy":"Nu te îngrijora. Sesiunea utilizează criptarea integrală, astfel încât orice desenezi va rămâne privat. Nici măcar serverul nostru nu va putea vedea pe ce ai lucrat.","button_startSession":"Pornire sesiune","button_stopSession":"Oprire sesiune","desc_inProgressIntro":"Sesiunea de colaborare în direct este în curs de desfășurare.","desc_shareLink":"Distribuie acest URL persoanelor cu care dorești să colaborezi:","desc_exitSession":"Oprirea sesiunii te va deconecta de la sală, însă vei putea lucra în continuare, pe plan local, cu scena. Reține că această opțiune nu va afecta alte persoane, iar acestea vor putea să colaboreze în continuare pe versiunea lor.","shareTitle":"Alătură-te unei sesiuni de colaborare în direct pe Excalidraw"},"errorDialog":{"title":"Eroare"},"exportDialog":{"disk_title":"Salvare pe disc","disk_details":"Exportă datele scenei pe un fișier din care poți importa mai târziu.","disk_button":"Salvare în fișier","link_title":"URL partajabil","link_details":"Exportă ca URL doar în citire.","link_button":"Exportare în URL","excalidrawplus_description":"Salvează scena în spațiul de lucru Excalidraw+.","excalidrawplus_button":"Exportare","excalidrawplus_exportError":"Excalidraw+ nu a putut fi exportat în acest moment..."},"helpDialog":{"blog":"Citește blogul nostru","click":"clic","deepSelect":"Selectare de adâncime","deepBoxSelect":"Selectare de adâncime în casetă și prevenire glisare","curvedArrow":"Săgeată curbată","curvedLine":"Linie curbată","documentation":"Documentație","doubleClick":"dublu clic","drag":"glisare","editor":"Editor","editSelectedShape":"Editează forma selectată (text/săgeată/linie)","github":"Ai întâmpinat o problemă? Trimite un raport","howto":"Urmărește ghidurile noastre","or":"sau","preventBinding":"Împiedică legarea săgeții","shapes":"Forme","shortcuts":"Comenzi rapide de la tastatură","textFinish":"Finalizează editarea (editor de text)","textNewLine":"Adaugă o linie nouă (editor de text)","title":"Ajutor","view":"Vizualizare","zoomToFit":"Transfocare pentru a cuprinde totul","zoomToSelection":"Transfocare la selecție"},"clearCanvasDialog":{"title":"Ștergere pânză"},"publishDialog":{"title":"Publicare bibliotecă","itemName":"Denumirea elementului","authorName":"Numele autorului","githubUsername":"Numele de utilizator GitHub","twitterUsername":"Numele de utilizator Twitter","libraryName":"Denumirea bibliotecii","libraryDesc":"Descrierea bibliotecii","website":"Pagină de internet","placeholder":{"authorName":"Numele sau numele tău de utilizator","libraryName":"Numele bibliotecii tale","libraryDesc":"Descrierea bibliotecii tale pentru a ajuta oamenii să înțeleagă utilizarea acesteia","githubHandle":"Numele de utilizator GitHub (opțional), pentru a putea edita biblioteca odată ce este trimisă spre revizuire","twitterHandle":"Numele de utilizator Twitter (opțional), pentru a indica sursa la promovarea pe Twitter","website":"Trimitere către pagina ta personală de internet sau altundeva (opțional)"},"errors":{"required":"Obligatoriu","website":"Introdu un URL valid"},"noteDescription":{"pre":"Trimite-ți biblioteca pentru fi inclus în ","link":"depozitul de biblioteci publice","post":"pentru utilizarea de către alte persoane în desenele lor."},"noteGuidelines":{"pre":"Biblioteca trebuie aprobată manual. Citește ","link":"orientările","post":" înainte de trimitere. Vei avea nevoie de un cont GitHub pentru a comunica și efectua modificări, dacă este cazul, însă nu este strict necesar."},"noteLicense":{"pre":"Prin trimiterea bibliotecii, ești de acord că aceasta va fi publicată sub ","link":"Licența MIT, ","post":"care, pe scurt, înseamnă că oricine o poate folosi fără restricții."},"noteItems":"Fiecare element din bibliotecă trebuie să aibă propriul nume astfel încât să fie filtrabil. Următoarele elemente din bibliotecă vor fi incluse:","atleastOneLibItem":"Selectează cel puțin un element din bibliotecă pentru a începe"},"publishSuccessDialog":{"title":"Bibliotecă trimisă","content":"Îți mulțumim, {{authorName}}. Biblioteca ta a fost trimisă spre revizuire. Poți urmări starea","link":"aici"},"confirmDialog":{"resetLibrary":"Resetare bibliotecă","removeItemsFromLib":"Elimină elementele selectate din bibliotecă"},"encrypted":{"tooltip":"Desenele tale sunt criptate integral, astfel că serverele Excalidraw nu le vor vedea niciodată.","link":"Articol de blog pe criptarea integrală din Excalidraw"},"stats":{"angle":"Unghi","element":"Element","elements":"Elemente","height":"Înălțime","scene":"Scenă","selected":"Selectate","storage":"Stocare","title":"Statistici pentru pasionați","total":"Total","version":"Versiune","versionCopy":"Clic pentru copiere","versionNotAvailable":"Versiune indisponibilă","width":"Lățime"},"toast":{"addedToLibrary":"Adăugat în bibliotecă","copyStyles":"Stiluri copiate.","copyToClipboard":"Copiat în memoria temporară.","copyToClipboardAsPng":"S-a copiat {{exportSelection}} în memoria temporară sub formă de PNG\\n({{exportColorScheme}})","fileSaved":"Fișier salvat.","fileSavedToFilename":"Salvat în {filename}","canvas":"pânza","selection":"selecția"},"colors":{"495057":"Gri 7","ffffff":"Alb","f8f9fa":"Gri 0","f1f3f5":"Gri 1","fff5f5":"Roșu 0","fff0f6":"Roz 0","f8f0fc":"Struguriu 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Albastru 0","e3fafc":"Cyan 0","e6fcf5":"Cyan-verde","ebfbee":"Verde 0","f4fce3":"Verde-limetă","fff9db":"Galben 0","fff4e6":"Portocaliu 0","transparent":"Transparent","ced4da":"Gri 4","868e96":"Gri 6","fa5252":"Roșu 6","e64980":"Roz 6","be4bdb":"Struguriu 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Albastru 6","15aabf":"Cyan 6","12b886":"Cyan-verde 6","40c057":"Verde 6","82c91e":"Verde-limetă 6","fab005":"Galben 6","fd7e14":"Portocaliu 6","000000":"Negru","343a40":"Gri 8","c92a2a":"Roșu 9","a61e4d":"Roz 9","862e9c":"Struguriu 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Albastru 9","0b7285":"Cyan 9","087f5b":"Cyan-verde 9","2b8a3e":"Verde 9","5c940d":"Verde-limetă 9","e67700":"Galben 9","d9480f":"Portocaliu 9"}}')},2253:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Вставить","pasteCharts":"Вставить диаграммы","selectAll":"Выбрать всё","multiSelect":"Добавить элемент в выделенный фрагмент","moveCanvas":"Переместить холст","cut":"Вырезать","copy":"Копировать","copyAsPng":"Скопировать в буфер обмена как PNG","copyAsSvg":"Скопировать в буфер обмена как SVG","bringForward":"Переместить вперед","sendToBack":"На задний план","bringToFront":"На передний план","sendBackward":"Переместить назад","delete":"Удалить","copyStyles":"Скопировать стили","pasteStyles":"Вставить стили","stroke":"Обводка","background":"Фон","fill":"Заливка","strokeWidth":"Толщина штриха","strokeStyle":"Стиль обводки","strokeStyle_solid":"Сплошная","strokeStyle_dashed":"Пунктирная","strokeStyle_dotted":"Точечная","sloppiness":"Стиль обводки","opacity":"Непрозрачность","textAlign":"Выравнивание текста","edges":"Края","sharp":"Острые","round":"Скругленные","arrowheads":"Стрелка","arrowhead_none":"Нет","arrowhead_arrow":"Cтрелка","arrowhead_bar":"Черта","arrowhead_dot":"Точка","arrowhead_triangle":"Треугольник","fontSize":"Размер шрифта","fontFamily":"Семейство шрифтов","onlySelected":"Только выбранные","withBackground":"Фон","exportEmbedScene":"Встроить сцену","exportEmbedScene_details":"Сцена будет сохранена в PNG/SVG файл так, чтобы всю сцену можно будет восстановить из этого файла. Это увеличит размер файла.","addWatermark":"Добавить «Создано в Excalidraw»","handDrawn":"От руки","normal":"Обычный","code":"Код","small":"Малый","medium":"Средний","large":"Большой","veryLarge":"Очень большой","solid":"Однотонная","hachure":"Штрихованная","crossHatch":"Перекрестная","thin":"Тонкая","bold":"Жирная","left":"Слева","center":"Центр","right":"Справа","extraBold":"Очень жирная Жирная","architect":"Архитектор","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Имя файла","colorPicker":"Выбор цвета","canvasBackground":"Фон холста","drawingCanvas":"Полотно","layers":"Слои","actions":"Действия","language":"Язык","liveCollaboration":"Совместное взаимодействие","duplicateSelection":"Дубликат","untitled":"Безымянный","name":"Имя","yourName":"Ваше имя","madeWithExcalidraw":"Сделано в Excalidraw","group":"Сгруппировать выделение","ungroup":"Разделить выделение","collaborators":"Участники","showGrid":"Показать сетку","addToLibrary":"Добавить в библиотеку","removeFromLibrary":"Удалить из библиотеки","libraryLoadingMessage":"Загрузка библиотеки…","libraries":"Просмотреть библиотеки","loadingScene":"Загрузка сцены…","align":"Выровнять","alignTop":"Выровнять по верхнему краю","alignBottom":"Выровнять по нижнему краю","alignLeft":"Выровнять по левому краю","alignRight":"Выровнять по правому краю","centerVertically":"Центрировать по вертикали","centerHorizontally":"Центрировать по горизонтали","distributeHorizontally":"Распределить по горизонтали","distributeVertically":"Распределить по вертикали","flipHorizontal":"Переворот по горизонтали","flipVertical":"Переворот по вертикали","viewMode":"Вид","toggleExportColorScheme":"Экспортировать цветовую схему","share":"Поделиться","showStroke":"Показать выбор цвета обводки","showBackground":"Показать выбор цвета фона","toggleTheme":"Переключить тему","personalLib":"Личная библиотека","excalidrawLib":"Библиотека Excalidraw","decreaseFontSize":"Уменьшить шрифт","increaseFontSize":"Увеличить шрифт","unbindText":"Отвязать текст","link":{"edit":"Редактировать ссылку","create":"Создать ссылку","label":"Ссылка"}},"buttons":{"clearReset":"Очистить холст и сбросить цвет фона","exportJSON":"Сохранить в","exportImage":"Сохранить как изображение","export":"Экспортировать","exportToPng":"Экспорт в PNG","exportToSvg":"Экспорт в SVG","copyToClipboard":"Скопировать в буфер обмена","copyPngToClipboard":"Скопировать PNG в буфер обмена","scale":"Масштаб","save":"Сохранить в текущий файл","saveAs":"Сохранить как","load":"Загрузить","getShareableLink":"Получить доступ по ссылке","close":"Закрыть","selectLanguage":"Выбрать язык","scrollBackToContent":"Вернуться к содержимому","zoomIn":"Увеличить","zoomOut":"Уменьшить","resetZoom":"Сбросить масштаб","menu":"Меню","done":"Готово","edit":"Изменить","undo":"Шаг назад","redo":"Шаг вперед","resetLibrary":"Сброс библиотеки","createNewRoom":"Создать новую комнату","fullScreen":"Полный экран","darkMode":"Темная тема","lightMode":"Светлая тема","zenMode":"Режим Дзен","exitZenMode":"Выключить режим концентрации внимания","cancel":"Отменить","clear":"Очистить","remove":"Удалить","publishLibrary":"Опубликовать","submit":"Отправить","confirm":"Подтвердить"},"alerts":{"clearReset":"Это очистит весь холст. Вы уверены?","couldNotCreateShareableLink":"Не удалось создать общедоступную ссылку.","couldNotCreateShareableLinkTooBig":"Нельзя создать ссылку, чтобы поделиться. Сцена слишком большая","couldNotLoadInvalidFile":"Не удалось загрузить недопустимый файл","importBackendFailed":"Не удалось импортировать из бэкэнда.","cannotExportEmptyCanvas":"Не может экспортировать пустой холст.","couldNotCopyToClipboard":"Не удалось скопировать в буфер обмена. Попробуйте использовать веб-браузер Chrome.","decryptFailed":"Не удалось расшифровать данные.","uploadedSecurly":"Загружаемые данные защищена сквозным шифрованием, что означает, что сервер Excalidraw и третьи стороны не могут прочитать содержимое.","loadSceneOverridePrompt":"Загрузка рисунка приведёт к замене имеющегося содержимого. Вы хотите продолжить?","collabStopOverridePrompt":"Остановка сессии перезапишет ваш предыдущий, локально сохранённый рисунок. Вы уверены? \\n\\n(Если вы хотите оставить ваш локальный рисунок, просто закройте вкладку браузера)","errorLoadingLibrary":"Произошла ошибка при загрузке сторонней библиотеки.","errorAddingToLibrary":"Не удалось добавить объект в библиотеку","errorRemovingFromLibrary":"Не удалось удалить объект из библиотеки","confirmAddLibrary":"Будет добавлено {{numShapes}} фигур в вашу библиотеку. Продолжить?","imageDoesNotContainScene":"Это изображение не содержит данных сцены. Вы включили встраивание сцены во время экспорта?","cannotRestoreFromImage":"Сцена не может быть восстановлена из этого изображения","invalidSceneUrl":"Невозможно импортировать сцену с предоставленного URL. Неверный формат, или не содержит верных Excalidraw JSON данных.","resetLibrary":"Это очистит вашу библиотеку. Вы уверены?","removeItemsFromsLibrary":"Удалить {{count}} объект(ов) из библиотеки?","invalidEncryptionKey":"Ключ шифрования должен состоять из 22 символов. Одновременное редактирование отключено."},"errors":{"unsupportedFileType":"Неподдерживаемый тип файла.","imageInsertError":"Не удалось вставить изображение. Попробуйте позже...","fileTooBig":"Очень большой файл. Максимально разрешенный размер {{maxSize}}.","svgImageInsertError":"Не удалось вставить изображение SVG. Разметка SVG выглядит недействительной.","invalidSVGString":"Некорректный SVG."},"toolBar":{"selection":"Выделение области","image":"Вставить изображение","rectangle":"Прямоугольник","diamond":"Ромб","ellipse":"Эллипс","arrow":"Cтрелка","line":"Линия","freedraw":"Чертить","text":"Текст","library":"Библиотека","lock":"Сохранять выбранный инструмент активным после рисования","penMode":"","link":"Добавить/обновить ссылку для выбранной фигуры"},"headings":{"canvasActions":"Операции холста","selectedShapeActions":"Операции выбранной фигуры","shapes":"Фигуры"},"hints":{"canvasPanning":"Чтобы перемещать холст, удерживайте колесо мыши или пробел во время перетаскивания","linearElement":"Нажмите, чтобы начать несколько точек, перетащите для одной линии","freeDraw":"Нажмите и перетаскивайте, отпустите по завершении","text":"Совет: при выбранном инструменте выделения дважды щёлкните в любом месте, чтобы добавить текст","text_selected":"Дважды щелкните мышью или нажмите ENTER, чтобы редактировать текст","text_editing":"Нажмите Escape либо Ctrl или Cmd + ENTER для завершения редактирования","linearElementMulti":"Кликните на последней точке или нажмите Escape или Enter чтобы закончить","lockAngle":"Вы можете ограничить угол удерживая SHIFT","resize":"Вы можете ограничить пропорции, удерживая SHIFT во время изменения размеров,\\nудерживайте ALT чтобы изменить размер из центра","resizeImage":"Вы можете свободно изменять размеры, удерживая кнопку SHIFT,\\nудерживайте кнопку ALT, чтобы изменять размер относительно центра","rotate":"Вы можете ограничить углы, удерживая SHIFT во время вращения","lineEditor_info":"Дважды кликните или нажмите Enter, чтобы редактировать точки","lineEditor_pointSelected":"Нажмите Delete для удаления точки (точек),\\nCtrl+D или Cmd+D для дублирования, перетащите для перемещения","lineEditor_nothingSelected":"Выберите точку для редактирования (удерживайте SHIFT выбора нескольких точек),\\nили удерживайте Alt и кликните для добавления новых точек","placeImage":"Щелкните, чтобы разместить изображение, или нажмите и перетащите, чтобы установить его размер вручную","publishLibrary":"Опубликовать свою собственную библиотеку","bindTextToElement":"Нажмите Enter для добавления текста","deepBoxSelect":"Удерживайте Ctrl или Cmd для глубокого выделения, чтобы предотвратить перетаскивание"},"canvasError":{"cannotShowPreview":"Не удается отобразить предпросмотр","canvasTooBig":"Сцена слишком большая.","canvasTooBigTip":"Совет: попробуйте сблизить элементы рисунка."},"errorSplash":{"headingMain_pre":"Возникла ошибка. Попробуйте ","headingMain_button":"перезагрузить страницу.","clearCanvasMessage":"Если перезагрузка страницы не помогла, попробуйте ","clearCanvasMessage_button":"очистить холст.","clearCanvasCaveat":" Текущая работа будет утеряна ","trackedToSentry_pre":"Ошибка с идентификатором ","trackedToSentry_post":" отслеживается в нашей системе.","openIssueMessage_pre":"Для безопасности информация о вашей сцене не включена в ошибку. Если в сцене нет ничего конфиденциального, пожалуйста следуйте нашим ","openIssueMessage_button":"баг трекере.","openIssueMessage_post":" Пожалуйста, приложите информацию ниже, скопировав и вставив её, в issue GitHub.","sceneContent":"Содержание сцены:"},"roomDialog":{"desc_intro":"Вы можете пригласить людей в текущую сцену для совместной работы.","desc_privacy":"Не беспокойтесь — во время сеанса используется сквозное шифрование. Всё, что вы нарисуете, останется конфиденциальным и не будет доступно даже нашему серверу.","button_startSession":"Начать сеанс","button_stopSession":"Завершить сеанс","desc_inProgressIntro":"Сеанс совместной работы запущен.","desc_shareLink":"Поделитесь этой ссылкой со всеми участниками:","desc_exitSession":"Завершив сеанс, вы выйдете из комнаты, но сможете продолжить работать с документом локально. Это не повлияет на работу других пользователей — они смогут продолжить совместную работу с их версией документа.","shareTitle":"Присоединиться к активной совместной сессии на Excalidraw"},"errorDialog":{"title":"Ошибка"},"exportDialog":{"disk_title":"Сохранить на диск","disk_details":"Экспортировать данные сцены в файл, из которого можно импортировать позже.","disk_button":"Сохранить в файл","link_title":"Поделитесь ссылкой","link_details":"Экспорт ссылки только для чтения.","link_button":"Экспорт в ссылку","excalidrawplus_description":"Сохраните сцену в ваше рабочее пространство Excalidraw+.","excalidrawplus_button":"Экспорт","excalidrawplus_exportError":"Не удалось экспортировать в Excalidraw+ на данный момент..."},"helpDialog":{"blog":"Прочитайте наш блог","click":"нажать","deepSelect":"Глубокое выделение","deepBoxSelect":"Глубокое выделение рамкой, и предотвращение перетаскивания","curvedArrow":"Изогнутая стрелка","curvedLine":"Изогнутая линия","documentation":"Документация","doubleClick":"двойной клик","drag":"перетащить","editor":"Редактор","editSelectedShape":"Редактировать выбранную фигуру (текст/стрелка/линия)","github":"Нашли проблему? Отправьте","howto":"Следуйте нашим инструкциям","or":"или","preventBinding":"Предотвращать привязку стрелок","shapes":"Фигуры","shortcuts":"Горячие клавиши","textFinish":"Закончить редактирование (текстовый редактор)","textNewLine":"Добавить новую строку (текстовый редактор)","title":"Помощь","view":"Просмотр","zoomToFit":"Отмастштабировать, чтобы поместились все элементы","zoomToSelection":"Увеличить до выделенного"},"clearCanvasDialog":{"title":"Очистить холст"},"publishDialog":{"title":"Опубликовать библиотеку","itemName":"Название объекта","authorName":"Имя автора","githubUsername":"Имя пользователя GitHub","twitterUsername":"Имя пользователя в Twitter","libraryName":"Название библиотеки","libraryDesc":"Описание библиотеки","website":"Веб-сайт","placeholder":{"authorName":"Ваше имя или имя пользователя","libraryName":"Название вашей библиотеки","libraryDesc":"Описание вашей библиотеки, которое поможет людям понять её назначение","githubHandle":"Имя пользователя GitHub (необязательно), чтобы вы смогли редактировать библиотеку после её отправки на проверку","twitterHandle":"Имя пользователя в Twitter (необязательно), чтобы мы знали, кого упомянуть при продвижении в Twitter","website":"Ссылка на ваш личный или какой-то другой сайт (необязательно)"},"errors":{"required":"Обязательно","website":"Введите допустимый URL-адрес"},"noteDescription":{"pre":"Отправить вашу библиотеку для включения в ","link":"хранилище публичных библиотек","post":", чтобы другие люди могли использовать объекты из вашей библиотеки в своих рисунках."},"noteGuidelines":{"pre":"Библиотека должна быть подтверждена вручную. Пожалуйста, прочтите ","link":"рекомендации","post":" перед отправкой. Вам понадобится учетная запись GitHub, чтобы общаться и вносить изменения при необходимости, но это не обязательно."},"noteLicense":{"pre":"Выполняя отправку, вы соглашаетесь с тем, что библиотека будет опубликована под ","link":"лицензией MIT, ","post":", что, вкратце, означает, что каждый может использовать её без ограничений."},"noteItems":"Каждый объект в библиотеке должен иметь свое собственное имя, чтобы по нему можно было фильтровать. Следующие объекты библиотеки будут включены:","atleastOneLibItem":"Пожалуйста, выберите хотя бы один объект в библиотеке, чтобы начать"},"publishSuccessDialog":{"title":"Библиотека отправлена","content":"Благодарим вас, {{authorName}}. Ваша библиотека была отправлена на проверку. Вы можете отслеживать статус","link":"здесь"},"confirmDialog":{"resetLibrary":"Сброс библиотеки","removeItemsFromLib":"Удалить выбранные объекты из библиотеки"},"encrypted":{"tooltip":"Ваши данные защищены сквозным (End-to-end) шифрованием. Серверы Excalidraw никогда не получат доступ к ним.","link":"Запись блога о сквозном шифровании в Excalidraw"},"stats":{"angle":"Угол","element":"Элемент","elements":"Элементы","height":"Высота","scene":"Сцены","selected":"Выбран","storage":"Хранилище","title":"Статистика для ботаников","total":"Всего","version":"Версия","versionCopy":"Копировать","versionNotAvailable":"Версия не доступна","width":"Ширина"},"toast":{"addedToLibrary":"Добавлено в библиотеку","copyStyles":"Скопированы стили.","copyToClipboard":"Скопировано в буфер обмена.","copyToClipboardAsPng":"{{exportSelection}} скопировано как PNG ({{exportColorScheme}})","fileSaved":"Файл сохранён.","fileSavedToFilename":"Сохранено в {filename}","canvas":"холст","selection":"выделение"},"colors":{"495057":"Серый 7","ffffff":"Белый","f8f9fa":"Серый 0","f1f3f5":"Серый 1","fff5f5":"Красный 0","fff0f6":"Розовый 0","f8f0fc":"Виноградный 0","f3f0ff":"Фиолетовый 0","edf2ff":"Индиго 0","e7f5ff":"Синий 0","e3fafc":"Голубой 0","e6fcf5":"Бирюзовый 0","ebfbee":"Зелёный 0","f4fce3":"Лайм 0","fff9db":"Жёлтый 0","fff4e6":"Оранжевый 0","transparent":"Прозрачный","ced4da":"Серый 4","868e96":"Серый 6","fa5252":"Красный 6","e64980":"Розовый 6","be4bdb":"Виноградный 6","7950f2":"Фиолетовый 6","4c6ef5":"Индиго 6","228be6":"Синий 6","15aabf":"Голубой 6","12b886":"Бирюзовый 6","40c057":"Зелёный 6","82c91e":"Лайм 6","fab005":"Жёлтый 6","fd7e14":"Оранжевый 6","000000":"Чёрный","343a40":"Серый 8","c92a2a":"Красный 9","a61e4d":"Розовый 9","862e9c":"Виноградный 9","5f3dc4":"Фиолетовый 9","364fc7":"Индиго 9","1864ab":"Синий 9","0b7285":"Голубой 9","087f5b":"Бирюзовый 9","2b8a3e":"Зелёный 9","5c940d":"Лайм 9","e67700":"Жёлтый 9","d9480f":"Оранжевый 9"}}')},5497:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"අලවන්න","pasteCharts":"ප්‍රස්ථාරය","selectAll":"සියල්ලම","multiSelect":"තෝරා ගැනීමට අංගය එකතු කරන්න","moveCanvas":"කැන්වසය චලනය කරන්න","cut":"කපන්න","copy":"පිටපත් කරන්න","copyAsPng":"PNG ලෙස පිටපත් කරන්න","copyAsSvg":"SVG ලෙස පිටපත් කරන්න","bringForward":"ඉදිරියට ගෙන්න","sendToBack":"පසුපසටම ගෙනියන්න","bringToFront":"ඉදිරියටම ගෙන්න","sendBackward":"පසුපසට ගෙනියන්න","delete":"මකන්න","copyStyles":"","pasteStyles":"","stroke":"","background":"","fill":"","strokeWidth":"","strokeStyle":"","strokeStyle_solid":"","strokeStyle_dashed":"","strokeStyle_dotted":"","sloppiness":"","opacity":"","textAlign":"","edges":"","sharp":"","round":"","arrowheads":"","arrowhead_none":"","arrowhead_arrow":"","arrowhead_bar":"","arrowhead_dot":"","arrowhead_triangle":"","fontSize":"","fontFamily":"","onlySelected":"","withBackground":"","exportEmbedScene":"","exportEmbedScene_details":"","addWatermark":"","handDrawn":"","normal":"","code":"","small":"","medium":"","large":"","veryLarge":"ඉතා විශාල","solid":"විශාල","hachure":"මධ්‍යම","crossHatch":"","thin":"කෙට්ටු","bold":"තද","left":"වම","center":"මැද","right":"දකුණ","extraBold":"ඉතා තද","architect":"වාස්තුවේදීයා","artist":"කලාකරු","cartoonist":"සැකිලිරූකරු","fileTitle":"ගොනු නාමය","colorPicker":"පාට තෝරකය","canvasBackground":"කැන්වස පසුබිම","drawingCanvas":"චිත්‍රක කැන්වසය","layers":"ලේයර","actions":"ක්‍රියාකාරකම","language":"භාෂාව ","liveCollaboration":"","duplicateSelection":"","untitled":"","name":"නම","yourName":"","madeWithExcalidraw":"","group":"","ungroup":"","collaborators":"","showGrid":"","addToLibrary":"","removeFromLibrary":"","libraryLoadingMessage":"","libraries":"","loadingScene":"","align":"","alignTop":"","alignBottom":"","alignLeft":"","alignRight":"","centerVertically":"","centerHorizontally":"","distributeHorizontally":"","distributeVertically":"","flipHorizontal":"","flipVertical":"","viewMode":"","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"","exportJSON":"","exportImage":"","export":"","exportToPng":"","exportToSvg":"","copyToClipboard":"","copyPngToClipboard":"","scale":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"","selectLanguage":"","scrollBackToContent":"","zoomIn":"","zoomOut":"","resetZoom":"","menu":"","done":"","edit":"","undo":"","redo":"","resetLibrary":"","createNewRoom":"","fullScreen":"","darkMode":"","lightMode":"","zenMode":"","exitZenMode":"","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"","rectangle":"","diamond":"","ellipse":"","arrow":"","line":"","freedraw":"","text":"","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"","selectedShapeActions":"","shapes":""},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"","canvasTooBig":"","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"","clearCanvasMessage_button":"","clearCanvasCaveat":"","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"","button_stopSession":"","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":""},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"","total":"","version":"","versionCopy":"","versionNotAvailable":"","width":""},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},4570:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Vložiť","pasteCharts":"Vložiť grafy","selectAll":"Vybrať všetko","multiSelect":"Pridať prvok do výberu","moveCanvas":"Pohyb plátna","cut":"Vystrihnúť","copy":"Kopírovať","copyAsPng":"Kopírovať do schránky ako PNG","copyAsSvg":"Kopírovať do schránky ako SVG","bringForward":"Presunúť o úroveň dopredu","sendToBack":"Presunúť dozadu","bringToFront":"Presunúť dopredu","sendBackward":"Presunúť o úroveň dozadu","delete":"Vymazať","copyStyles":"Kopírovať štýly","pasteStyles":"Vložiť štýly","stroke":"Obrys","background":"Pozadie","fill":"Výplň","strokeWidth":"Hrúbka obrysu","strokeStyle":"Štýl obrysu","strokeStyle_solid":"Plný","strokeStyle_dashed":"Čiarkovaný","strokeStyle_dotted":"Bodkovaný","sloppiness":"Štylizácia","opacity":"Priehľadnosť","textAlign":"Zarovnanie textu","edges":"Okraje","sharp":"Ostré","round":"Zaokrúhlené","arrowheads":"Zakončenie šípky","arrowhead_none":"Žiadne","arrowhead_arrow":"Šípka","arrowhead_bar":"Čiara","arrowhead_dot":"Bod","arrowhead_triangle":"Trojuholník","fontSize":"Veľkosť písma","fontFamily":"Písmo","onlySelected":"Iba vybrané","withBackground":"Pozadie","exportEmbedScene":"Zahrnúť scénu","exportEmbedScene_details":"Údaje scény budú uložené do exportovaného PNG/SVG súboru, takže scéna z neho môže byť opäť obnovená.\\nBude to mať za následok zvýšenie veľkosti súboru.","addWatermark":"Pridať \\"Vytvorené s Excalidraw\\"","handDrawn":"Ručne písané","normal":"Normálne","code":"Kód","small":"Malé","medium":"Stredné","large":"Veľké","veryLarge":"Veľmi veľké","solid":"Plná","hachure":"Šrafovaná","crossHatch":"Mriežkovaná","thin":"Tenká","bold":"Hrubá","left":"Doľava","center":"Na stred","right":"Doprava","extraBold":"Veľmi hrubá","architect":"Architekt","artist":"Umelec","cartoonist":"Ilustrátor","fileTitle":"Názov súboru","colorPicker":"Výber farby","canvasBackground":"Pozadie plátna","drawingCanvas":"Kresliace plátno","layers":"Vrstvy","actions":"Akcie","language":"Jazyk","liveCollaboration":"Živá spolupráca","duplicateSelection":"Duplikovať","untitled":"Bez názvu","name":"Meno","yourName":"Vaše meno","madeWithExcalidraw":"Vytvorené s Excalidraw","group":"Zoskupiť","ungroup":"Zrušiť zoskupenie","collaborators":"Spolupracovníci","showGrid":"Zobraziť mriežku","addToLibrary":"Pridať do knižnice","removeFromLibrary":"Odstrániť z knižnice","libraryLoadingMessage":"Načítavanie knižnice…","libraries":"Prehliadať knižnice","loadingScene":"Načítavanie scény…","align":"Zarovnanie","alignTop":"Zarovnať nahor","alignBottom":"Zarovnať nadol","alignLeft":"Zarovnať doľava","alignRight":"Zarovnať doprava","centerVertically":"Zarovnať zvislo na stred","centerHorizontally":"Zarovnať vodorovne na stred","distributeHorizontally":"Rozmiestniť vodorovne","distributeVertically":"Rozmiestniť zvisle","flipHorizontal":"Prevrátiť vodorovne","flipVertical":"Prevrátiť zvislo","viewMode":"Režim zobrazenia","toggleExportColorScheme":"Prepnúť exportovanie farebnej schémy","share":"Zdieľať","showStroke":"Zobraziť výber farby pre obrys","showBackground":"Zobraziť výber farby pre pozadie","toggleTheme":"Prepnúť tému","personalLib":"Moja knižnica","excalidrawLib":"Excalidraw knižnica","decreaseFontSize":"Zmenšiť veľkosť písma","increaseFontSize":"Zväčšiť veľkosť písma","unbindText":"Zrušiť previazanie textu","link":{"edit":"Upraviť odkaz","create":"Vytvoriť odkaz","label":"Odkaz"}},"buttons":{"clearReset":"Obnoviť plátno","exportJSON":"Exportovať do súboru","exportImage":"Uložiť ako obrázok","export":"Exportovať","exportToPng":"Exportovať do PNG","exportToSvg":"Exportovať do SVG","copyToClipboard":"Kopírovať do schránky","copyPngToClipboard":"Kopírovať PNG do schránky","scale":"Mierka","save":"Uložiť do aktuálneho súboru","saveAs":"Uložiť ako","load":"Nahrať","getShareableLink":"Získať odkaz na zdieľanie","close":"Zavrieť","selectLanguage":"Zvoliť jazyk","scrollBackToContent":"Vrátiť sa späť na obsah","zoomIn":"Priblížiť","zoomOut":"Oddialiť","resetZoom":"Obnoviť priblíženie","menu":"Ponuka","done":"Hotovo","edit":"Upraviť","undo":"Späť","redo":"Znova","resetLibrary":"Obnoviť knižnicu","createNewRoom":"Vytvoriť novú miestnosť","fullScreen":"Celá obrazovka","darkMode":"Tmavý režim","lightMode":"Svetlý režim","zenMode":"Režim zen","exitZenMode":"Zrušiť režim zen","cancel":"Zrušiť","clear":"Vymazať","remove":"Odstrániť","publishLibrary":"Uverejniť","submit":"Potvrdiť","confirm":"Potvrdiť"},"alerts":{"clearReset":"Týmto sa vyčistí celé plátno. Ste si istí?","couldNotCreateShareableLink":"Nepodarilo sa vytvoriť odkaz na zdieľanie.","couldNotCreateShareableLinkTooBig":"Nepodarilo sa vytvoriť odkaz na zdieľanie: scéna je príliš veľká","couldNotLoadInvalidFile":"Nepodarilo sa načítať nevalidný súbor","importBackendFailed":"Nepdarilo sa importovanie zo serveru.","cannotExportEmptyCanvas":"Nie je možné exportovať prázdne plátno.","couldNotCopyToClipboard":"Nepodarilo sa kopírovanie do schránky. Skúste použiť prehliadač Chrome.","decryptFailed":"Nepodarilo sa rozšifrovať údaje.","uploadedSecurly":"Nahratie je zabezpečené end-to-end šifrovaním, takže Excalidraw server a tretie strany nedokážu prečítať jeho obsah.","loadSceneOverridePrompt":"Nahratie externej kresby nahradí existujúci obsah. Prajete si pokračovať?","collabStopOverridePrompt":"Ukončenie schôdze nahradí vašu predchádzajúcu lokálne uloženú scénu. Ste si istý?\\n\\n(Ak si chcete ponechať lokálnu scénu, jednoducho iba zavrite kartu prehliadača.)","errorLoadingLibrary":"Nepodarilo sa načítať externú knižnicu.","errorAddingToLibrary":"Nepodarilo sa pridať položku do knižnice","errorRemovingFromLibrary":"Nepodarilo sa odstrániť položku z knižnice","confirmAddLibrary":"Týmto sa pridá {{numShapes}} tvar(ov) do vašej knižnice. Ste si istí?","imageDoesNotContainScene":"Tento obrázok neobsahuje žiadne údaje scény. Zvolili ste možnosť zahrnúť scénu počas exportu?","cannotRestoreFromImage":"Nepodarilo sa obnoviť scénu z tohto obrázkového súboru","invalidSceneUrl":"Nepodarilo sa načítať scénu z poskytnutej URL. Je nevalidná alebo neobsahuje žiadne validné Excalidraw JSON dáta.","resetLibrary":"Týmto vyprázdnite vašu knižnicu. Ste si istý?","removeItemsFromsLibrary":"Odstrániť {{count}} položiek z knižnice?","invalidEncryptionKey":"Šifrovací kľúč musí mať 22 znakov. Živá spolupráca je vypnutá."},"errors":{"unsupportedFileType":"Nepodporovaný typ súboru.","imageInsertError":"Nepodarilo sa vložiť obrázok. Skúste to znova neskôr...","fileTooBig":"Súbor je príliš veľký. Maximálna povolená veľkosť je {{maxSize}}.","svgImageInsertError":"Nepodarilo sa vložiť SVG obrázok. SVG formát je pravdepodobne nevalidný.","invalidSVGString":"Nevalidné SVG."},"toolBar":{"selection":"Výber","image":"Vložiť obrázok","rectangle":"Obdĺžnik","diamond":"Diamant","ellipse":"Elipsa","arrow":"Šípka","line":"Čiara","freedraw":"Kresliť","text":"Text","library":"Knižnica","lock":"Nechať zvolený nástroj aktívny po skončení kreslenia","penMode":"Zabrániť priblíženiu potiahnutím a povoliť vstup voľnou rokou iba z pera","link":"Pridať/ Upraviť odkaz pre vybraný tvar"},"headings":{"canvasActions":"Akcie plátna","selectedShapeActions":"Akcie tvarov z výberu","shapes":"Tvary"},"hints":{"canvasPanning":"Pre pohyb plátna podržte koliesko myši alebo medzerník počas ťahania","linearElement":"Kliknite na vloženie viacerých bodov, potiahnite na vytvorenie jednej priamky","freeDraw":"Kliknite a ťahajte, pustite na ukončenie","text":"Tip: text môžete pridať aj dvojklikom kdekoľvek, ak je zvolený nástroj výber","text_selected":"Použite dvojklik alebo stlačte Enter na editáciu textu","text_editing":"Stlačte Escape alebo CtrlOrCmd+ENTER na ukončenie editovania","linearElementMulti":"Kliknite na počiatočný bod alebo stlačte Escape alebo Enter na ukončenie","lockAngle":"Počas rotácie obmedzíte uhol podržaním SHIFT","resize":"Počas zmeny veľkosti zachováte proporcie podržaním SHIFT,\\\\npodržaním ALT meníte veľkosť so zachovaním stredu","resizeImage":"Podržte SHIFT pre voľnú zmenu veľkosti, podržte ALT pre zmenu veľkosti od stredu","rotate":"Počas rotácie obmedzíte uhol podržaním SHIFT","lineEditor_info":"Použite dvojklik alebo stlačte Enter na editáciu bodov","lineEditor_pointSelected":"Stačte Delete na vymazanie bodu (bodov), CtrlOrCmd+D na duplikovanie, alebo potiahnite na presunutie","lineEditor_nothingSelected":"Zvoľte bod na upravovanie (podržte SHIFT pre zvolenie viacerých bodov) alebo podržte Alt a kliknite na pridanie nového bodu","placeImage":"Kliknite pre umiestnenie obrázka alebo kliknite a ťahajte pre zmenu jeho veľkosti","publishLibrary":"Uverejniť vašu knižnicu","bindTextToElement":"Stlačte enter na pridanie textu","deepBoxSelect":"Podržte CtrlOrCmd na výber v skupine alebo zamedzeniu poťiahnutia"},"canvasError":{"cannotShowPreview":"Nie je možné zobraziť náhľad plátna","canvasTooBig":"Plátno je možno príliš veľké.","canvasTooBigTip":"Tip: skúste presunúť najvzdialenejšie prvky bližšie k sebe."},"errorSplash":{"headingMain_pre":"Nastala chyba. Vyskúšajte ","headingMain_button":"obnoviť stránku.","clearCanvasMessage":"Ak obnovenie stránky nepomáha, vyskúšajte ","clearCanvasMessage_button":"vyčistiť plátno.","clearCanvasCaveat":" To bude mať za následok stratu práce ","trackedToSentry_pre":"Chyba s identifikátorom ","trackedToSentry_post":" bola zaznamenaná v našom systéme.","openIssueMessage_pre":"Boli sme veľmi opatrní, aby informácie vašej scény neboli v chybe zaznamenané. Ak vaša scéna nie je súkromná, prosím zvážte pokračovanie na naše ","openIssueMessage_button":"hlásenie chýb.","openIssueMessage_post":" Prosím zahrňte informácie nižšie pomocou kopírovania a prilepenia do GitHub issue.","sceneContent":"Obsah scény:"},"roomDialog":{"desc_intro":"Pozvite niekoho do svojej aktuálnej scény a pracujte spoločne.","desc_privacy":"Nemajte obavy, schôdza používa end-to-end šifrovanie, takže všetko čo nakreslíte je súkromné. Dokonca, ani náš server dedokáže prečítať, čo ste vytvorili.","button_startSession":"Začať schôdzu","button_stopSession":"Ukončiť schôdzu","desc_inProgressIntro":"Práve prebieha živá schôdza.","desc_shareLink":"Zdieľajte tento odkaz s osobou, s ktorou chcete spolupracovať:","desc_exitSession":"Ukončenie schôdze vás odpojí z miestnosti, avšak naďalej budete môcť pokračovať v práci na scéne lokálne. Toto neovplyvní ostatných spolupracovníkov a stále budú môcť spolupracovať na ich verzii.","shareTitle":"Pripojiť sa k živej schôdzi na Excalidraw"},"errorDialog":{"title":"Chyba"},"exportDialog":{"disk_title":"Uložiť na disk","disk_details":"Exportovať údaje scény do súboru, z ktorého môžu byť neskôr importované.","disk_button":"Uložiť do súboru","link_title":"Odkaz na zdieľanie","link_details":"Exportovať ako odkaz iba na čítanie.","link_button":"Exportovať ako odkaz","excalidrawplus_description":"Uložiť scénu do vášho Excalidraw+ pracovného priestoru.","excalidrawplus_button":"Exportovať","excalidrawplus_exportError":"Nepodarilo sa vykonať export do Excalidraw+..."},"helpDialog":{"blog":"Prečítajte si náš blog","click":"kliknutie","deepSelect":"Výber v skupine","deepBoxSelect":"Výber v skupine alebo zamedzenie poťiahnutia","curvedArrow":"Zakrivená šípka","curvedLine":"Zakrivená čiara","documentation":"Dokumentácia","doubleClick":"dvojklik","drag":"potiahnutie","editor":"Editovanie","editSelectedShape":"Editovať zvolený tvar (text/šípka/čiara)","github":"Objavili ste problém? Nahláste ho","howto":"Postupujte podľa naších návodov","or":"alebo","preventBinding":"Zakázať pripájanie šípky","shapes":"Tvary","shortcuts":"Klávesové skratky","textFinish":"Ukončenie editovania (text editor)","textNewLine":"Vložiť nový riadok (text editor)","title":"Pomocník","view":"Zobrazenie","zoomToFit":"Priblížiť aby boli zahrnuté všetky prvky","zoomToSelection":"Priblížiť na výber"},"clearCanvasDialog":{"title":"Vyčistiť plátno"},"publishDialog":{"title":"Uverejniť knižnicu","itemName":"Názov položky","authorName":"Meno autora","githubUsername":"Github užívateľské meno","twitterUsername":"Twitter užívateľské meno","libraryName":"Názov knižnice","libraryDesc":"Popis knižnice","website":"Webová stránka","placeholder":{"authorName":"Vaše meno alebo užívateľské meno","libraryName":"Názov vašej knižnice","libraryDesc":"Popis vašej knižnice, ktorý ostatným pomôže porozumieť jej vhodnému použitiu","githubHandle":"GitHub užívateľské meno (nepovinné), aby ste mohli robiť úpravy po tom, čo bude knižnica uverejnená na schválenie","twitterHandle":"Twitter užívateľské meno (nepovinné), aby sme vedeli komu pripísať zásluhu pri propagovaní cez Twitter","website":"Odkaz na vašu osobnú webovú stránku alebo niekam inam (nepovinné)"},"errors":{"required":"Povinné","website":"Zadajte platnú adresu URL"},"noteDescription":{"pre":"Uverejnite vašu knižnicu vo ","link":"verejnom zozname knižníc","post":"aby ju aj ostatní mohli použiť v ich náčrtoch."},"noteGuidelines":{"pre":"Knižnica musí byť najprv manuálne schválená. Prosím prečítajte si ","link":"pokyny","post":" pred uverejnením. Budete potrebovať Github účet na komunikáciu a vykonanie zmien, ak budú potrebné, avšak nie je to úplne povinné."},"noteLicense":{"pre":"Potvrdením súhlasíte, že knižnica bude zverejnená s ","link":"MIT licenciou, ","post":"čo v skratke znamená, že ju môže použiť hocikto bez obmedzení."},"noteItems":"Každá položka v knižnici musí mať svoje vlastné meno, aby sa dala vyhľadať. Súčasťou knižnice budú nasledujúce položky:","atleastOneLibItem":"Začnite prosím zvolením aspoň jednej položky z knižnice"},"publishSuccessDialog":{"title":"Knižnica uverejnená","content":"Ďakujeme vám {{authorName}}. Vaša knižnica bola uverejnená na posúdenie. Stav môžete skontrolovať","link":"tu"},"confirmDialog":{"resetLibrary":"Obnoviť knižnicu","removeItemsFromLib":"Odstrániť zvolené položky z knižnice"},"encrypted":{"tooltip":"Vaše kresby používajú end-to-end šifrovanie, takže ich Excalidraw server nedokáže prečítať.","link":"Blog o end-to-end šifrovaní v Excalidraw"},"stats":{"angle":"Uhol","element":"Prvok","elements":"Prvky","height":"Výška","scene":"Scéna","selected":"Vybrané","storage":"Úložisko","title":"Štatistiky","total":"Celkom","version":"Verzia","versionCopy":"Kliknutím skopírujete","versionNotAvailable":"Verzia nie je k dispozícii","width":"Šírka"},"toast":{"addedToLibrary":"Pridané do knižnice","copyStyles":"Štýly skopírované.","copyToClipboard":"Skopírované do schránky.","copyToClipboardAsPng":"Kopírovanie {{exportSelection}} do schránky ako PNG prebehlo úspešne\\n({{exportColorScheme}})","fileSaved":"Súbor uložený.","fileSavedToFilename":"Uložený ako {filename}","canvas":"plátna","selection":"výberu"},"colors":{"495057":"Sivá 7","ffffff":"Biela","f8f9fa":"Sivá 0","f1f3f5":"Sivá 1","fff5f5":"Červená 0","fff0f6":"Ružová 0","f8f0fc":"Hroznová fialová 0","f3f0ff":"Fialová 0","edf2ff":"Tmavomodrá 0","e7f5ff":"Modrá 0","e3fafc":"Azúrová 0","e6fcf5":"Modrozelená 0","ebfbee":"Zelená 0","f4fce3":"Limetková 0","fff9db":"Žltá 0","fff4e6":"Oranžová 0","transparent":"Priehľadná","ced4da":"Sivá 4","868e96":"Sivá 6","fa5252":"Červená 6","e64980":"Ružová 6","be4bdb":"Hroznová fialová 6","7950f2":"Fialová 6","4c6ef5":"Tmavomodrá 6","228be6":"Modrá 6","15aabf":"Azúrová 6","12b886":"Modrozelená 6","40c057":"Zelená 6","82c91e":"Limetková 6","fab005":"Žltá 6","fd7e14":"Oranžová 6","000000":"Čierna","343a40":"Sivá 8","c92a2a":"Červená 9","a61e4d":"Ružová 9","862e9c":"Hroznová fialová 9","5f3dc4":"Fialová 9","364fc7":"Tmavomodrá 9","1864ab":"Modrá 9","0b7285":"Azúrová 9","087f5b":"Modrozelená 9","2b8a3e":"Zelená 9","5c940d":"Limetková 9","e67700":"Žltá 9","d9480f":"Oranžová 9"}}')},6006:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Klistra in","pasteCharts":"Klistra in diagram","selectAll":"Markera alla","multiSelect":"Lägg till element till markering","moveCanvas":"Flytta canvas","cut":"Klipp ut","copy":"Kopiera","copyAsPng":"Kopiera till urklipp som PNG","copyAsSvg":"Kopiera till urklipp som SVG","bringForward":"Flytta framåt","sendToBack":"Flytta underst","bringToFront":"Flytta främst","sendBackward":"Skicka bakåt","delete":"Ta bort","copyStyles":"Kopiera stil","pasteStyles":"Klistra in stil","stroke":"Linje","background":"Bakgrund","fill":"Fyllnad","strokeWidth":"Linjebredd","strokeStyle":"Linjestil","strokeStyle_solid":"Solid","strokeStyle_dashed":"Streckad","strokeStyle_dotted":"Punktad","sloppiness":"Slarvighet","opacity":"Genomskinlighet","textAlign":"Textjustering","edges":"Kanter","sharp":"Skarp","round":"Rund","arrowheads":"Pilhuvuden","arrowhead_none":"Inga","arrowhead_arrow":"Pil","arrowhead_bar":"Stolpe","arrowhead_dot":"Punkt","arrowhead_triangle":"Triangel","fontSize":"Teckenstorlek","fontFamily":"Teckensnitt","onlySelected":"Endast markering","withBackground":"Bakgrund","exportEmbedScene":"Bädda in skiss","exportEmbedScene_details":"Skissdata kommer att sparas i den exporterade PNG/SVG-filen så att skissen kan återställas från den.\\nKommer att öka exporterad filstorlek.","addWatermark":"Lägg till \\"Skapad med Excalidraw\\"","handDrawn":"Handritad","normal":"Normal","code":"Kod","small":"Liten","medium":"Medium","large":"Stor","veryLarge":"Mycket stor","solid":"Solid","hachure":"Skraffering","crossHatch":"Skraffera med kors","thin":"Tunn","bold":"Fet","left":"Vänster","center":"Centrera","right":"Höger","extraBold":"Extra fet","architect":"Arkitekt","artist":"Artist","cartoonist":"Serietecknare","fileTitle":"Filnamn","colorPicker":"Färgväljare","canvasBackground":"Canvas-bakgrund","drawingCanvas":"Ritar canvas","layers":"Lager","actions":"Åtgärder","language":"Språk","liveCollaboration":"Samarbeta live","duplicateSelection":"Duplicera","untitled":"Namnlös","name":"Namn","yourName":"Ditt namn","madeWithExcalidraw":"Skapad med Excalidraw","group":"Gruppera markering","ungroup":"Avgruppera markering","collaborators":"Medarbetare","showGrid":"Visa rutnät","addToLibrary":"Lägg till i biblioteket","removeFromLibrary":"Ta bort från bibliotek","libraryLoadingMessage":"Laddar bibliotek…","libraries":"Bläddra i bibliotek","loadingScene":"Laddar skiss…","align":"Justera","alignTop":"Justera överkant","alignBottom":"Justera underkant","alignLeft":"Justera vänster","alignRight":"Justera höger","centerVertically":"Centrera vertikalt","centerHorizontally":"Centrera horisontellt","distributeHorizontally":"Fördela horisontellt","distributeVertically":"Fördela vertikalt","flipHorizontal":"Vänd horisontellt","flipVertical":"Vänd vertikalt","viewMode":"Visningsläge","toggleExportColorScheme":"Växla färgschema för export","share":"Dela","showStroke":"Visa färgväljare för linjefärg","showBackground":"Visa färgväljare för bakgrundsfärg","toggleTheme":"Växla tema","personalLib":"Personligt bibliotek","excalidrawLib":"Excalidraw bibliotek","decreaseFontSize":"Minska fontstorleken","increaseFontSize":"Öka fontstorleken","unbindText":"Koppla bort text","link":{"edit":"Redigera länk","create":"Skapa länk","label":"Länk"}},"buttons":{"clearReset":"Återställ canvasen","exportJSON":"Exportera till fil","exportImage":"Spara som bild","export":"Exportera","exportToPng":"Exportera till PNG","exportToSvg":"Exportera till SVG","copyToClipboard":"Kopiera till urklipp","copyPngToClipboard":"Kopiera PNG till urklipp","scale":"Skala","save":"Spara till aktuell fil","saveAs":"Spara som","load":"Öppna","getShareableLink":"Hämta delbar länk","close":"Stäng","selectLanguage":"Välj språk","scrollBackToContent":"Bläddra tillbaka till innehållet","zoomIn":"Zooma in","zoomOut":"Zooma ut","resetZoom":"Återställ zoom","menu":"Meny","done":"Klart","edit":"Redigera","undo":"Ångra","redo":"Gör om","resetLibrary":"Återställ bibliotek","createNewRoom":"Skapa ett nytt rum","fullScreen":"Helskärm","darkMode":"Mörkt läge","lightMode":"Ljust läge","zenMode":"Zen-läge","exitZenMode":"Gå ur zen-läge","cancel":"Avbryt","clear":"Rensa","remove":"Ta bort","publishLibrary":"Publicera","submit":"Skicka","confirm":"Bekräfta"},"alerts":{"clearReset":"Detta rensar hela canvasen. Är du säker?","couldNotCreateShareableLink":"Kunde inte skapa delbar länk.","couldNotCreateShareableLinkTooBig":"Kunde inte skapa delbar länk: skissen är för stor","couldNotLoadInvalidFile":"Kunde inte ladda ogiltig fil","importBackendFailed":"Importering från backend misslyckades.","cannotExportEmptyCanvas":"Kan inte exportera tom canvas.","couldNotCopyToClipboard":"Det gick inte att kopiera till urklipp. Prova att använda en annan webbläsare.","decryptFailed":"Kunde inte avkryptera data.","uploadedSecurly":"Uppladdning har säkrats med kryptering från ände till ände. vilket innebär att Excalidraw server och tredje part inte kan läsa innehållet.","loadSceneOverridePrompt":"Laddning av extern skiss kommer att ersätta ditt befintliga innehåll. Vill du fortsätta?","collabStopOverridePrompt":"Att stoppa sessionen kommer att skriva över din föregående, lokalt lagrade skiss. Är du säker?\\n\\n(Om du vill behålla din lokala skiss, stäng bara webbläsarfliken istället.)","errorLoadingLibrary":"Fel vid inläsning av tredjeparts bibliotek.","errorAddingToLibrary":"Kunde inte lägga till objekt i biblioteket","errorRemovingFromLibrary":"Kunde inte ta bort objekt från biblioteket","confirmAddLibrary":"Detta kommer att lägga till {{numShapes}} form(er) till ditt bibliotek. Är du säker?","imageDoesNotContainScene":"Den här bilden verkar inte innehålla någon skissdata. Har du aktiverat inbäddning av skiss under export?","cannotRestoreFromImage":"Skiss kunde inte återställas från denna bildfil","invalidSceneUrl":"Det gick inte att importera skiss från den angivna webbadressen. Antingen har den fel format, eller så innehåller den ingen giltig Excalidraw JSON data.","resetLibrary":"Detta kommer att rensa ditt bibliotek. Är du säker?","removeItemsFromsLibrary":"Ta bort {{count}} objekt från biblioteket?","invalidEncryptionKey":"Krypteringsnyckeln måste vara 22 tecken. Livesamarbetet är inaktiverat."},"errors":{"unsupportedFileType":"Filtypen stöds inte.","imageInsertError":"Kunde inte infoga bild. Försök igen senare...","fileTooBig":"Filen är för stor. Maximal tillåten storlek är {{maxSize}}.","svgImageInsertError":"Kunde inte infoga SVG-bild. SVG-koden ser ogiltig ut.","invalidSVGString":"Ogiltig SVG."},"toolBar":{"selection":"Markering","image":"Infoga bild","rectangle":"Rektangel","diamond":"Diamant","ellipse":"Ellips","arrow":"Pil","line":"Linje","freedraw":"Rita","text":"Text","library":"Bibliotek","lock":"Håll valt verktyg aktivt efter ritande","penMode":"Förhindra nypzoom och acceptera endast frihandsteckning från penna","link":"Lägg till / Uppdatera länk för en vald form"},"headings":{"canvasActions":"Canvas-åtgärder","selectedShapeActions":"Valda formåtgärder","shapes":"Former"},"hints":{"canvasPanning":"För att flytta canvas, håll mushjulet eller mellanslagstangenten medan du drar","linearElement":"Klicka för att starta flera punkter, dra för en linje","freeDraw":"Klicka och dra, släpp när du är klar","text":"Tips: du kan också lägga till text genom att dubbelklicka var som helst med markeringsverktyget","text_selected":"Dubbelklicka eller tryck ENTER för att redigera text","text_editing":"Tryck Escape eller CtrlOrCmd + ENTER för att slutföra redigeringen","linearElementMulti":"Klicka på sista punkten eller tryck Escape eller Enter för att avsluta","lockAngle":"Du kan begränsa vinkeln genom att hålla SKIFT","resize":"Du kan behålla proportioner genom att hålla SHIFT medan du ändrar storlek,\\nhåller du ALT ändras storlek relativt mitten","resizeImage":"Du kan ändra storlek fritt genom att hålla SHIFT,\\nhåll ALT för att ändra storlek från mitten","rotate":"Du kan begränsa vinklar genom att hålla SHIFT medan du roterar","lineEditor_info":"Dubbelklicka eller tryck på Enter för att redigera punkter","lineEditor_pointSelected":"Tryck på Ta bort för att ta bort punkt(er), Ctrl + D eller Cmd + D för att duplicera, eller dra för att flytta","lineEditor_nothingSelected":"Välj en punkt att redigera (håll SHIFT för att välja flera),\\neller håll ned Alt och klicka för att lägga till nya punkter","placeImage":"Klicka för att placera bilden, eller klicka och dra för att ställa in dess storlek manuellt","publishLibrary":"Publicera ditt eget bibliotek","bindTextToElement":"Tryck på Enter för att lägga till text","deepBoxSelect":"Håll Ctrl eller Cmd för att djupvälja, och för att förhindra att dra"},"canvasError":{"cannotShowPreview":"Kan inte visa förhandsgranskning","canvasTooBig":"Canvasen kan vara för stor.","canvasTooBigTip":"Tips: prova att flytta de mest avlägsna elementen lite närmare varandra."},"errorSplash":{"headingMain_pre":"Ett fel uppstod. Försök ","headingMain_button":"med att läsa in sidan på nytt.","clearCanvasMessage":"Om omladdning inte fungerar, försök ","clearCanvasMessage_button":"rensa canvasen.","clearCanvasCaveat":" Detta kommer att leda till förlust av arbete ","trackedToSentry_pre":"Felet med identifieraren ","trackedToSentry_post":" spårades på vårt system.","openIssueMessage_pre":"Vi var mycket försiktiga med att inte inkludera din skissinformation om felet. Om din skiss inte är privat, vänligen överväga att följa upp på vår ","openIssueMessage_button":"buggspårare.","openIssueMessage_post":" Vänligen inkludera information nedan genom att kopiera och klistra in i GitHub-problemet.","sceneContent":"Skissinnehåll:"},"roomDialog":{"desc_intro":"Du kan bjuda in personer till din nuvarande skiss för att samarbeta med dig.","desc_privacy":"Oroa dig inte, sessionen använder kryptering från ände till ände, så vad du än ritar kommer att förbli privat. Inte ens vår server kommer att kunna se vad du skissar.","button_startSession":"Starta sessionen","button_stopSession":"Stoppa session","desc_inProgressIntro":"Nu pågår en live-samarbetssession.","desc_shareLink":"Dela denna länk med någon du vill samarbeta med:","desc_exitSession":"Att avbryta sessionen kommer att koppla bort dig från rummet, men du kommer att kunna fortsätta arbeta med skissen, lokalt. Observera att detta inte påverkar andra människor, och de kommer fortfarande att kunna samarbeta på deras version.","shareTitle":"Delta i en live-samarbetssession på Excalidraw"},"errorDialog":{"title":"Fel"},"exportDialog":{"disk_title":"Spara till disk","disk_details":"Exportera skissdata till en fil som du kan importera från senare.","disk_button":"Spara till fil","link_title":"Delbar länk","link_details":"Exportera som en skrivskyddad länk.","link_button":"Exportera till länk","excalidrawplus_description":"Spara skissen till din Excalidraw+ arbetsyta.","excalidrawplus_button":"Exportera","excalidrawplus_exportError":"Det gick inte att exportera till Excalidraw+ just nu..."},"helpDialog":{"blog":"Läs vår blogg","click":"klicka","deepSelect":"Djupval","deepBoxSelect":"Djupval inom boxen, och förhindra att dra","curvedArrow":"Böjd pil","curvedLine":"Böjd linje","documentation":"Dokumentation","doubleClick":"dubbelklicka","drag":"dra","editor":"Redigerare","editSelectedShape":"Redigera markerad form (text/pil/linje)","github":"Hittat ett problem? Rapportera","howto":"Följ våra guider","or":"eller","preventBinding":"Förhindra pilbindning","shapes":"Former","shortcuts":"Tangentbordsgenvägar","textFinish":"Slutför redigering (text)","textNewLine":"Lägg till ny rad (text)","title":"Hjälp","view":"Visa","zoomToFit":"Zooma för att rymma alla element","zoomToSelection":"Zooma till markering"},"clearCanvasDialog":{"title":"Rensa canvas"},"publishDialog":{"title":"Publicera bibliotek","itemName":"Objektnamn","authorName":"Upphovsmannens namn","githubUsername":"GitHub-användarnamn","twitterUsername":"Twitter-användarnamn","libraryName":"Biblioteksnamn","libraryDesc":"Biblioteksbeskrivning","website":"Webbplats","placeholder":{"authorName":"Ditt namn eller användarnamn","libraryName":"Namn på ditt bibliotek","libraryDesc":"Beskrivning av ditt bibliotek för att hjälpa människor att förstå dess användning","githubHandle":"Github-användarnamn (valfritt), så att du kan redigera biblioteket när du har skickat in det för granskning","twitterHandle":"Twitter-användarnamn (valfritt), så vi vet vem att kreditera när du marknadsför på Twitter","website":"Länk till din personliga webbplats eller någon annan (valfritt)"},"errors":{"required":"Obligatoriskt","website":"Ange en giltig URL"},"noteDescription":{"pre":"Skicka ditt bibliotek för att inkluderas i ","link":"det offentliga bibliotekets arkiv","post":"för andra människor att använda i sina skisser."},"noteGuidelines":{"pre":"Biblioteket måste godkännas manuellt först. Vänligen läs ","link":"riktlinjerna","post":" innan du skickar in. Du behöver ett GitHub-konto för att kommunicera och göra ändringar om så önskas, men det krävs inte."},"noteLicense":{"pre":"Genom att skicka in godkänner du att biblioteket kommer att publiceras under ","link":"MIT-licens, ","post":"vilket kort sagt betyder att vem som helst kan använda det utan restriktioner."},"noteItems":"Varje objekt måste ha sitt eget namn så att det är filtrerbart. Följande objekt kommer att inkluderas:","atleastOneLibItem":"Välj minst ett biblioteksobjekt för att komma igång"},"publishSuccessDialog":{"title":"Bibliotek inskickat","content":"Tack {{authorName}}. Ditt bibliotek har skickats för granskning. Du kan följa status","link":"här"},"confirmDialog":{"resetLibrary":"Återställ bibliotek","removeItemsFromLib":"Ta bort markerade objekt från biblioteket"},"encrypted":{"tooltip":"Dina skisser är krypterade från ände till ände så Excalidraws servrar kommer aldrig att se dem.","link":"Blogginlägg om kryptering från ände till ände i Excalidraw"},"stats":{"angle":"Vinkel","element":"Element","elements":"Element","height":"Höjd","scene":"Skiss","selected":"Valda","storage":"Lagring","title":"Statistik för nördar","total":"Totalt","version":"Version","versionCopy":"Klicka för att kopiera","versionNotAvailable":"Versionen är inte tillgänglig","width":"Bredd"},"toast":{"addedToLibrary":"Tillagd i biblioteket","copyStyles":"Kopierade stilar.","copyToClipboard":"Kopierad till urklipp.","copyToClipboardAsPng":"Kopierade {{exportSelection}} till urklipp som PNG\\n({{exportColorScheme}})","fileSaved":"Fil sparad.","fileSavedToFilename":"Sparad till {filename}","canvas":"canvas","selection":"markering"},"colors":{"495057":"Grå 7","ffffff":"Vit","f8f9fa":"Grå 0","f1f3f5":"Grå 1","fff5f5":"Röd 0","fff0f6":"Rosa 0","f8f0fc":"Lila 0","f3f0ff":"Violett 0","edf2ff":"Indigo 0","e7f5ff":"Blå 0","e3fafc":"Turkos 0","e6fcf5":"Blågrön 0","ebfbee":"Grön 0","f4fce3":"Limegrön 0","fff9db":"Gul 0","fff4e6":"Orange 0","transparent":"Genomskinlig","ced4da":"Grå 4","868e96":"Grå 6","fa5252":"Röd 6","e64980":"Rosa 6","be4bdb":"Lila 6","7950f2":"Violett 6","4c6ef5":"Indigo 6","228be6":"Blå 6","15aabf":"Turkos 6","12b886":"Blågrön 6","40c057":"Grön 6","82c91e":"Limegrön 6","fab005":"Gul 6","fd7e14":"Orange 6","000000":"Svart","343a40":"Grå 8","c92a2a":"Röd 9","a61e4d":"Rosa 9","862e9c":"Lila 9","5f3dc4":"Violett 9","364fc7":"Indigo 9","1864ab":"Blå 9","0b7285":"Turkos 9","087f5b":"Blågrön 9","2b8a3e":"Grön 9","5c940d":"Limegrön 9","e67700":"Gul 9","d9480f":"Orange 9"}}')},3952:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"ஒட்டு","pasteCharts":"விளக்கப்படங்களை ஒட்டு","selectAll":"எல்லாம் தேர்ந்தெடு","multiSelect":"உறுப்பைத் தெரிவில் சேர்","moveCanvas":"கித்தானை நகர்த்து","cut":"வெட்டு","copy":"நகலெடு","copyAsPng":"நகலகத்திற்கு PNG ஆக நகலெடு","copyAsSvg":"நகலகத்திற்கு SVG ஆக நகலெடு","bringForward":"முன்நோக்கி கொண்டுவா","sendToBack":"பின்னே அனுப்பு","bringToFront":"முன்னே கொண்டுவா","sendBackward":"பின்நோக்கி அனுப்பு","delete":"அழி","copyStyles":"ஒயில்களை நகலெடு","pasteStyles":"ஒயில்களை ஒட்டு","stroke":"கீறல்","background":"பின்புலம்","fill":"நிரப்பல்","strokeWidth":"கீறல் அகலம்","strokeStyle":"கீறல் ஒயில்","strokeStyle_solid":"திடமான","strokeStyle_dashed":"கோடிட்ட","strokeStyle_dotted":"புள்ளியிட்ட","sloppiness":"அசட்டுத்தனம்","opacity":"ஒளிபுகாவியல்பு","textAlign":"உரைச் சீரமைப்பு","edges":"விளிம்புகள்","sharp":"கூர்மை","round":"வட்டம்","arrowheads":"அம்புத்தலைகள்","arrowhead_none":"ஏதுமில்லை","arrowhead_arrow":"அம்பு","arrowhead_bar":"பட்டை","arrowhead_dot":"புள்ளி","arrowhead_triangle":"முக்கோணம்","fontSize":"எழுத்துரு அளவு","fontFamily":"எழுத்துரு குடும்பம்","onlySelected":"தேர்ந்ததை மட்டும்","withBackground":"பின்புலம்","exportEmbedScene":"காட்சியை உட்பொதி","exportEmbedScene_details":"காட்சி தரவு ஏற்றுமதி செய்யப்பட்ட PNG/SVG கோப்பினுள் சேமிக்கப்படும் இதனால் காட்சியை அதிலிருந்து மீட்டெடுக்க முடியும். ஏற்றுமதி செய்யப்பட்ட கோப்பின் அளவை அதிகரிக்கும்.","addWatermark":"\\"எக்ஸ்கேலிட்ரா கொண்டு ஆனது\\"-ஐச் சேர்","handDrawn":"கையால்-வரைந்த","normal":"இயல்பு","code":"குறியீடு","small":"சிறிய","medium":"நடுத்தரமான","large":"பெரிய","veryLarge":"மிகப் பெரிய","solid":"திடமான","hachure":"மலைக்குறிக்கோடு","crossHatch":"","thin":"மெல்லிய","bold":"பட்டை","left":"இடது","center":"மையம்","right":"வலது","extraBold":"கூடுதல் பட்டை","architect":"கட்டடக்கலைஞர்","artist":"கலைஞர்","cartoonist":"கேலிச்சித்திர ஓவியர்","fileTitle":"கோப்புப் பெயர்","colorPicker":"நிறத் தேர்வி","canvasBackground":"கித்தான் பின்னணி","drawingCanvas":"கித்தான் வரைகிறது","layers":"அடுக்குகள்","actions":"செயல்கள்","language":"மொழி","liveCollaboration":"நேரடி கூட்டுப்பணி","duplicateSelection":"நகலாக்கு","untitled":"தலைப்பற்றது","name":"பெயர்","yourName":"உங்கள் பெயர்","madeWithExcalidraw":"எக்ஸ்கேலிட்ரா கொண்டு ஆனது","group":"தேர்ந்ததை ஒன்றிணை","ungroup":"தேர்ந்ததைப் பிரி","collaborators":"கூட்டுப்பணியினர்","showGrid":"கட்டதைக் காட்டு","addToLibrary":"நூலகத்தில் சேர்","removeFromLibrary":"நூலகத்திலிருந்து நீக்கு","libraryLoadingMessage":"நூலகத்தை ஏற்றுகிறது…","libraries":"நூலகங்களை உலாவு","loadingScene":"காட்சியை ஏற்றுகிறது…","align":"சீரமை","alignTop":"மேலே சீரமை","alignBottom":"கீழே சீரமை","alignLeft":"இடதில் சீரமை","alignRight":"வலதில் சீரமை","centerVertically":"செங்குத்தாக மையப்படுத்து","centerHorizontally":"கிடைமட்டமாக மையப்படுத்து","distributeHorizontally":"கிடைமட்டமாக விநியோகி","distributeVertically":"செங்குத்தாக விநியோகி","flipHorizontal":"கிடைமட்டமாக புரட்டு","flipVertical":"செங்குத்தாக புரட்டு","viewMode":"பார்வை பயன்முறை","toggleExportColorScheme":"","share":"பகிர்","showStroke":"கீறல் நிற எடுப்பானைக் காட்டு","showBackground":"பின்னணி நிற எடுப்பானைக் காட்டு","toggleTheme":"தோற்றத்தை நிலைமாற்று","personalLib":"தனக்குரிய நூலகம்","excalidrawLib":"எக்ஸ்கேலிட்ரா நூலகம்","decreaseFontSize":"எழுத்துரு அளவைக் குறை","increaseFontSize":"எழுத்துரு அளவை அதிகரி","unbindText":"உரையைப் பிணைவவிழ்","link":{"edit":"தொடுப்பைத் திருத்து","create":"தொடுப்பைப் படை","label":"தொடுப்பு"}},"buttons":{"clearReset":"கித்தானை அகரமாக்கு","exportJSON":"கோப்புக்கு ஏற்றுமதிசெய்","exportImage":"படமாகச் சேமி","export":"ஏற்றுமதி","exportToPng":"PNGக்கு ஏற்றுமதிசெய்","exportToSvg":"SVGக்கு ஏற்றுமதிசெய்","copyToClipboard":"நகலகத்திற்கு நகலெடு","copyPngToClipboard":"PNGஐ நகலகத்திற்கு நகலெடு","scale":"அளவு","save":"தற்போதைய கோப்புக்குச் சேமி","saveAs":"இப்படி சேமி","load":"ஏற்று","getShareableLink":"பகிரக்கூடிய தொடுப்பைப் பெறு","close":"மூடு","selectLanguage":"மொழியைத் தேர்ந்தெடு","scrollBackToContent":"உருட்டி உள்ளடக்கத்துக்குத் திரும்பு","zoomIn":"பெரிதாக்கு","zoomOut":"சிறிதாக்கு","resetZoom":"உருவளவை அகரமாக்கு","menu":"சிறுபட்டி","done":"முடிந்தது","edit":"திருத்து","undo":"செயல்தவிர்","redo":"மீண்டும்செய்","resetLibrary":"நூலகத்தை அகரமாக்கு","createNewRoom":"புதிய அறையை உருவாக்கு","fullScreen":"முழுத் திரை","darkMode":"கருமை பயன்முறை","lightMode":"வெளிர்ந்த பயன்முறை","zenMode":"ஜென் பயன்முறை","exitZenMode":"ஜென் பயன்முறையை விலகு","cancel":"ரத்துசெய்","clear":"துடை","remove":"நீக்கு","publishLibrary":"பிரசுரி","submit":"சமர்ப்பி","confirm":"உறுதிசெய்"},"alerts":{"clearReset":"இது முழு கித்தானையும் துடைக்கும். நீங்கள் உறுதியா?","couldNotCreateShareableLink":"பகிரக்கூடிய தொடுப்பை உருவாக்க முடியவில்லை.","couldNotCreateShareableLinkTooBig":"பகிரக்கூடிய தொடுப்பை உருவாக்க முடியவில்லை: காட்சி மிகப்பெரிதாக உள்ளது","couldNotLoadInvalidFile":"செல்லாத கோப்பை ஏற்ற முடியவில்லை","importBackendFailed":"தேகத்திலிருந்து இறக்குமதி தோல்வி.","cannotExportEmptyCanvas":"காலியான கித்தானை ஏற்றுமதிசெய்ய முடியாது.","couldNotCopyToClipboard":"நகலகத்திற்கு நகலெடுக்க முடியவில்லை. குரோம் உலாவி பயன்படுத்தி முயல்க.","decryptFailed":"தரவை மறைநீக்க முடியவில்லை.","uploadedSecurly":"பதிவேற்றம் இருமுனை மறையாகத்தால் பாதுகாக்கப்பட்டுள்ளது, எனவே எக்ஸ்கேலிட்ரா சேவையகமும் மூன்றாம் தரப்பினரும் உள்ளடக்கத்தை வாசிக்கமுடியாது.","loadSceneOverridePrompt":"வெளிப்புறச்சித்திரமேற்றல் இருக்கிற உள்ளடக்கத்தை இடங்கொள்ளும். தொடர விருப்பமா?","collabStopOverridePrompt":"அமர்வை நிறுத்துதல் முன்னர் அகமாக தேக்கிய உம் சித்திரத்தை மேலெழுதும். நீங்கள் உறுதியா?\\n\\n(உம் அக சித்திரத்தை வைக்கவேண்டுமெனில், சும்மா உலாவி தாவலை மூடுக அதற்குபதிலாக.)","errorLoadingLibrary":"மூன்றாம் தரப்பு நூலகத்தை ஏற்றுவதில் பிழை.","errorAddingToLibrary":"உருப்படியை நூலகத்தில் சேர்க்க இயலா","errorRemovingFromLibrary":"உருப்படியை நூலகத்திலிருந்து நீக்க இயலா","confirmAddLibrary":"இதனால் {{numShapes}} வடிவம்(கள்) உம் நூலகத்தில் சேரும். நீங்கள் உறுதியா?","imageDoesNotContainScene":"இப்படத்தில் காட்சி தரவு ஏதும் இருப்பதுபோல் தெரியவில்லை. ஏற்றுமதியின்போது காட்சி உட்பதிதலை இயக்கினீரா?","cannotRestoreFromImage":"இப்படக்கோப்பிலிருந்து காட்சி மீட்டெடுக்கப்பட முடியாது","invalidSceneUrl":"வழங்கப்பட்ட உரலியிலிருந்து காட்சியை இறக்கவியலா. இது தவறான வடிவத்தில் உள்ளது, அ செல்லத்தக்க எக்ஸ்கேலிட்ரா JSON தரவைக் கொண்டில்லை.","resetLibrary":"இது உங்கள் நுலகத்தைத் துடைக்கும். நீங்கள் உறுதியா?","removeItemsFromsLibrary":"{{count}} உருப்படி(கள்)-ஐ உம் நூலகத்திலிருந்து அழிக்கவா?","invalidEncryptionKey":"மறையாக்க விசை 22 வரியுருக்கள் கொண்டிருக்கவேண்டும். நேரடி கூட்டுப்பணி முடக்கப்பட்டது."},"errors":{"unsupportedFileType":"ஆதரிக்கப்படா கோப்பு வகை.","imageInsertError":"படத்தைப் புகுத்தவியலா. பிறகு மீண்டும் முயலவும்...","fileTooBig":"கோப்பு மிகப்பெரிது. அனுமதிக்கப்பட்ட அதிகபட்ச அளவு {{maxSize}}.","svgImageInsertError":"எஸ்விஜி படத்தைப் புகுத்தவியலா. எஸ்விஜியின் மார்க்அப் செல்லாததாக தெரிகிறது.","invalidSVGString":"செல்லாத SVG."},"toolBar":{"selection":"தெரிவு","image":"படத்தைப் புகுத்து","rectangle":"செவ்வகம்","diamond":"வைரம்","ellipse":"நீள்வட்டம்","arrow":"அம்பு","line":"வரி","freedraw":"வரை","text":"உரை","library":"நூலகம்","lock":"தேர்ந்த கருவியை வரைந்த பின்பும் வைத்திரு","penMode":"கிள்ளிப்பெரிதாக்குவதைத் தவிர் மற்றும் பேனாவிலிருந்து மட்டும் கட்டற்றவரைவை ஏல்","link":"தேர்தெடுத்த வடிவத்திற்குத் தொடுப்பைச் சேர்/ புதுப்பி"},"headings":{"canvasActions":"கித்தான் செயல்கள்","selectedShapeActions":"தேர்ந்த வடிவம் செயல்கள்","shapes":"வடிவங்கள்"},"hints":{"canvasPanning":"கித்தானை நகர்த்த, பிடித்திழுக்கையில் சுட்டிச்சக்கரத்தை அ இடைவெளிப்பட்டையை அழுத்திப்பிடி","linearElement":"பல புள்ளிகளைத் துவக்க சொடுக்கு, ஒற்றை வரிக்கு பிடித்திழு","freeDraw":"சொடுக்கி பிடித்திழு, முடித்ததும் விடுவி","text":"துணுக்குதவி: தெரிவு கருவி கொண்டு எங்காவது இரு-சொடுக்கி உரையைச் சேர்க்கலாம்","text_selected":"உரையைத் திருத்த இரு-சொடுக்கு அ ENTERஐ அழுத்து","text_editing":"திருத்துவதை முடிக்க Escape அ CtrlOrCmd+ENTERஐ அழுத்து","linearElementMulti":"கடைசி புள்ளியில் சொடுக்கு அ முடிக்க Escape அ Enter அழுத்து","lockAngle":"SHIFTஐ அழுத்திப்பிடித்து கோணத்தை வற்புறுத்தலாம்","resize":"மறுஅளவிடுகையில் SHIFTஐ அழுத்திப்பிடித்து விகிதசமத்தை வற்புறுத்தலாம்,\\nமையத்திலிருந்து மறுஅளவிட ALTஐ அழுத்திப்பிடி","resizeImage":"SHIFTஐ நீண்டழுத்தி கட்டற்று அளவுமாற்றலாம்,\\nமையத்திலிருந்து அளவுமாற்ற ALTஐ நீண்டழுத்துக","rotate":"சுழற்றுகையில் SHIFTஐ அழுத்திப்பிடித்து கோணங்களை வற்புறுத்தலாம்","lineEditor_info":"புள்ளிகளைத் திருத்த இரு-சொடுக்கு அ Enterஐ அழுத்து","lineEditor_pointSelected":"புள்ளி(கள்)ஐ நீக்க Deleteஐ அழுத்து,\\nநகலாக்க CtrlOrCmd+D, அ நகர்த்த பிடித்திழு","lineEditor_nothingSelected":"திருத்த புள்ளியைத் தேர்ந்தெடு (பலவற்றை தேர SHIFTஐ அழுத்திப்பிடி),\\nஅ புதிய புள்ளிகளைச் சேர்க்க Altஐ அழுத்திப்பிடித்துச் சொடுக்கு","placeImage":"படத்தை வைக்கச் சொடுக்கு, அ கைமுறையாக அளவு அமைக்க சொடுக்கி பிடித்திழு","publishLibrary":"உம் சொந்த நூலகத்தைப் பிரசுரி","bindTextToElement":"உரையைச் சேர்க்க enterஐ அழுத்து","deepBoxSelect":"ஆழ்ந்துத் தேரவும் பிடித்திழுத்தலைத் தவிர்க்கவும் CtrlOrCmdஐ அழுத்திப்பிடி"},"canvasError":{"cannotShowPreview":"முன்னோட்டம் காட்ட இயலவில்லை","canvasTooBig":"கித்தான் மிகப்பெரிதாக இருக்கலாம்.","canvasTooBigTip":"துணுக்குதவி: தூரத்திலுள்ள உறுப்புகளைப் நெருக்கமாக நகர்த்தப்பார்."},"errorSplash":{"headingMain_pre":"பிழையைச் சந்தித்தீரா. முயலவும் ","headingMain_button":"பக்கத்தை மீண்டுமேற்றுகிறது.","clearCanvasMessage":"மீண்டுமேற்றல் வேலைசெய்யவிட்டால், முயற்சி ","clearCanvasMessage_button":"கித்தானைத் துடைக்கிறது.","clearCanvasCaveat":" இது வேலையை இழக்கக்கூடும் ","trackedToSentry_pre":"இனங்காணியில் பிழை ","trackedToSentry_post":" எங்கள் இயங்குதளத்தில் தடமறியப்பட்டது.","openIssueMessage_pre":"பிழையில் உம் காட்சி தகவலை உள்ளடக்காமலிருக்க நாங்கள் மிக எச்சரிக்கையாக இருந்தோம். உம் காட்சி தனிப்பட்டதில்லையெனில், பின்தொடர்வதற்கு பரிசீலிக்கவும் எங்கள் ","openIssueMessage_button":"பிழை தடமி.","openIssueMessage_post":" கீழுள்ள தகவலை நகலெடுத்து ஒட்டி GitHub சிக்கலுள் உள்ளடக்கவும்.","sceneContent":"காட்சி உள்ளடக்கம்:"},"roomDialog":{"desc_intro":"உம்முடன் கூட்டுப்பணிசெய்ய மக்களை தற்போதைய காட்சிக்கு அழைப்பிடலாம்.","desc_privacy":"வருந்தாதீர், அமர்வு இருமுனை மறையகத்தைப் பயன்படுத்துகிறது, ஆக நீங்கள் வரைவது எதுவும் தனிப்பட்டதாக இருக்கும். எங்கள் சேவையகத்தால் கூட நீங்கள் என்ன செய்ததைப் பார்க்கவியலாது.","button_startSession":"அமர்வைத் துவக்கு","button_stopSession":"அமர்வை நிறுத்து","desc_inProgressIntro":"நேரடி-கூட்டுப்பணி அமர்வு தற்போது செயலிலுள்ளது.","desc_shareLink":"கூட்டுப்பணிபுரிய விரும்பும் எவருனும் இத்தொடுப்பைப் பகிர்க:","desc_exitSession":"அமர்வை நிறுத்தல் உம்மை அறையிலிருந்து துண்டிக்கும், ஆனால் காட்சியுடன் தொடர்ந்து பணிபுரிய உம்மாலியலும், அகமாக. இது பிற மக்களைப் பாதிக்காதென்பதைக் குறி, மற்றும் அவர்களாலவர்களுடைய பதிப்பில் இன்னும் கூட்டுப்பணிபுரியவியலும்.","shareTitle":"எக்ஸ்கேலிட்ராவில் நேரடி கூட்டுப்பணி அமர்வில் சேர்"},"errorDialog":{"title":"பிழை"},"exportDialog":{"disk_title":"வட்டில் சேமி","disk_details":"காட்சித் தரவை நீங்கள் பின்னர் இறக்குமதி செய்யக்கூடிய ஒரு கோப்பிற்கு ஏற்றுமதிசெய்க.","disk_button":"கோப்பில் சேமி","link_title":"பகிரக்கூடிய தொடுப்பு","link_details":"வாசிக்க-மட்டும் தொடுப்பாக ஏற்றுமதிசெய்.","link_button":"தொடுப்புக்கு ஏற்றுமதிசெய்","excalidrawplus_description":"காட்சியை உன் எக்ஸ்கேலிட்ரா பணியிடத்தில் சேமி.","excalidrawplus_button":"ஏற்றுமதி","excalidrawplus_exportError":"இத்தருணத்தில் எக்ஸ்கேலிட்ரா+ க்கு ஏற்றுமதிசெய்ய முடியவில்லை..."},"helpDialog":{"blog":"எமது வலைப்பூவை வாசி","click":"சொடுக்கு","deepSelect":"ஆழ்ந்துத் தேர்","deepBoxSelect":"பெட்டியினுள் ஆழ்ந்துத் தேர், மற்றும் பிடித்திழுத்தலைத் தவிர்","curvedArrow":"வளைந்த அம்பு","curvedLine":"வளைந்த வரி","documentation":"ஆவணமாக்கல்","doubleClick":"இரு-சொடுக்கு","drag":"பிடித்திழு","editor":"திருத்தி","editSelectedShape":"தேர்ந்த வடிவத்தைத் திருத்து (உரை/அம்பு/வரி)","github":"சிக்கலைக் கண்டீரா? சமர்ப்பி","howto":"எங்கள் கையேடுகளைப் பின்பற்றுக","or":"அ","preventBinding":"அம்பு பிணைதலைத் தவிர்","shapes":"வடிவங்கள்","shortcuts":"விசைப்பலகை குறுக்குவழிகள்","textFinish":"திருத்துதலை முடி (உரை திருத்தி)","textNewLine":"புதிய வரியைச் சேர் (உரை திருத்தி)","title":"உதவி","view":"பார்","zoomToFit":"அனைத்துறுப்புகளும் பொருந்தும்படி விரிவாக்கு","zoomToSelection":"தெரிவுக்கு விரிவாக்கு"},"clearCanvasDialog":{"title":"கித்தானைத் துடை"},"publishDialog":{"title":"நூலகத்தைப் பிரசுரி","itemName":"உருப்படியின் பெயர்","authorName":"ஆசிரியர் பெயர்","githubUsername":"GitHub பயனர்பெயர்","twitterUsername":"டுவிட்டர் பயனர்பெயர்","libraryName":"நூலக பெயர்","libraryDesc":"நூலக விவரிப்பு","website":"வலைத்தளம்","placeholder":{"authorName":"உம் பெயர் அ பயனர்பெயர்","libraryName":"உம் நூலகத்தின் பெயர்","libraryDesc":"உம் நூலகத்தின் விவரிப்பு இதன் பயன்பாட்டை மக்கள் புரிந்துகொள்ளவுதவ","githubHandle":"GitHub கைப்பிடி (விரும்பினால்), ஆதலால் நீங்கள் நூலகத்தை மதிப்பாய்விற்காக சமர்ப்பித்தவுடன் திருத்தமுடியும்","twitterHandle":"டுவிட்டர் பயனர்பெயர் (விரும்பினால்), ஆதலால் டுவிட்டரில் முன்னிறுத்தும்போது யாமெவரைப் புகழ்வதென்றறிவோம்","website":"உமக்குரிய வலைத்தளத்திற்கு அ வேறெங்கிற்குமான தொடுப்பு (விரும்பினால்)"},"errors":{"required":"தேவைப்டுகிறது","website":"செல்லத்தக்க உரலியை உள்ளிடு"},"noteDescription":{"pre":"உம் நூலகத்தைச் சமர்ப்பி உள்ளடக்குவதற்கு ","link":"பொது நூலக களஞ்சியத்தில்","post":"பிற மக்களவர்களின் சித்திரங்களில் பயன்படுத்த."},"noteGuidelines":{"pre":"நூலகம் முதலில் கைமுறையாக ஒப்புக்கொள்ளப்படவேண்டும். வாசிக்கவும் ","link":"வழிகாட்டுதல்களைச்","post":" சமர்ப்பிக்கும் முன்பு. கோரப்பட்டால் தொடர்புகொள்ள மற்றும் மாற்றங்கள் செய்ய உமக்கொரு GitHub கணக்கு தேவை, ஆனால் அது கண்டிப்பாக தேவையல்ல."},"noteLicense":{"pre":"சமர்ப்பிப்பதனால், நூலகம் இதனடியில் பிரசரிக்கப்பட ஏற்கிறீர்கள் ","link":"MIT உரிமம், ","post":"சுருக்கமாக எவருமிதைப் வரையறையின்றி பயன்படுத்தலாமென குறிக்கிறது."},"noteItems":"வடிக்கட்டக்கூடியதாகவிருக்க ஒவ்வொரு நூலகவுருப்படிக்கும் சொந்த பெயர் இருக்கவேண்டும். பின்வரும் நூலகவுருப்படிகள் உள்ளடக்கப்படும்:","atleastOneLibItem":"ஆரம்பிக்க ஒரு நூலக உருப்படியையாவது தேர்ந்தெடுக்கவும்"},"publishSuccessDialog":{"title":"நூலகம் சமர்ப்பிக்கப்பட்டது","content":"நன்றி {{authorName}}. உமது நூலகம் மதிப்பாய்விற்காக சமர்ப்பிக்கப்பட்டது. நிலையை நீங்கள் தடமறியலாம்","link":"இங்கே"},"confirmDialog":{"resetLibrary":"நூலகத்தை அகரமாக்கு","removeItemsFromLib":"நூலகத்திலிருந்து தேர்ந்தெடுத்த உருப்படிகளை நீக்கு"},"encrypted":{"tooltip":"உம் சித்திரங்கள் இருமுனை மறையாக்கம் செய்யப்பட்டவையாதலால் எக்ஸ்கேலிட்ராவின் சேவையகங்கள் அவற்றை ஒருபோதும் பார்க்கா.","link":"எக்ஸ்கேலிட்ராவில் இருமுனை மறையாக்கம் மீதான வலைப்பூ இடுகை"},"stats":{"angle":"கோணம்","element":"உறுப்பு","elements":"உறுப்புகள்","height":"உயரம்","scene":"காட்சி","selected":"தேர்ந்தவை","storage":"சேமிப்பகம்","title":"மேதாவிகளுக்கான புள்ளிவிவரங்கள்","total":"மொத்தம்","version":"பதிப்பு","versionCopy":"நகலெடுக்க சொடுக்கு","versionNotAvailable":"பதிப்பு கிடைக்கவில்லை","width":"அகலம்"},"toast":{"addedToLibrary":"நூலகத்தில் சேர்க்கப்பட்டது","copyStyles":"ஒயில்கள் நகலெடுக்கப்பட்டன.","copyToClipboard":"நகலகத்திற்கு நகலெடுக்கப்பட்டது.","copyToClipboardAsPng":"{{exportSelection}}-ஐ நகலகத்திற்கு PNG ஆக நகலெடுத்தது\\n({{exportColorScheme}})","fileSaved":"கோப்பு சேமிக்கப்பட்டது.","fileSavedToFilename":"{filename}-க்கு சேமிக்கப்பட்டது","canvas":"கித்தான்","selection":"தெரிவு"},"colors":{"495057":"சாம்பல்நிறம் 7","ffffff":"வெள்ளை","f8f9fa":"சாம்பல்நிறம் 0","f1f3f5":"சாம்பல்நிறம் 1","fff5f5":"சிகப்பு 0","fff0f6":"இளஞ்சிவப்பு 0","f8f0fc":"திராட்சை 0","f3f0ff":"ஊதா 0","edf2ff":"கருநீலம் 0","e7f5ff":"நீலம் 0","e3fafc":"மயில்நிறம் 0","e6fcf5":"டீல் 0","ebfbee":"பச்சை 0","f4fce3":"தேசிக்காய்நிறம் 0","fff9db":"மஞ்சள் 0","fff4e6":"ஆரஞ்சு 0","transparent":"ஒளிபுகுத்தன்மை","ced4da":"சாம்பல்நிறம் 4","868e96":"சாம்பல்நிறம் 6","fa5252":"சிகப்பு 6","e64980":"இளஞ்சிவப்பு 6","be4bdb":"திராட்சை 6","7950f2":"ஊதா 6","4c6ef5":"கருநீலம் 6","228be6":"நீலம் 6","15aabf":"மயில்நிறம் 6","12b886":"டீல் 6","40c057":"பச்சை 6","82c91e":"தேசிக்காய்நிறம் 6","fab005":"மஞ்சள் 6","fd7e14":"ஆரஞ்சு 6","000000":"கருப்பு","343a40":"சாம்பல்நிறம் 8","c92a2a":"சிகப்பு 9","a61e4d":"இளஞ்சிவப்பு 9","862e9c":"திராட்சை 9","5f3dc4":"ஊதா 9","364fc7":"கருநீலம் 9","1864ab":"நீலம் 9","0b7285":"மயில்நிறம் 9","087f5b":"டீல் 9","2b8a3e":"பச்சை 9","5c940d":"தேசிக்காய்நிறம் 9","e67700":"மஞ்சள் 9","d9480f":"ஆரஞ்சு 9"}}')},7315:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Yapıştır","pasteCharts":"Grafikleri yapıştır","selectAll":"Tümünü seç","multiSelect":"Seçime öge ekle","moveCanvas":"Tuvali taşı","cut":"Kes","copy":"Kopyala","copyAsPng":"Panoya PNG olarak kopyala","copyAsSvg":"Panoya SVG olarak kopyala","bringForward":"Bir öne getir","sendToBack":"Arkaya gönder","bringToFront":"En öne getir","sendBackward":"Bir geriye gönder","delete":"Sil","copyStyles":"Stilleri kopyala","pasteStyles":"Stilleri yapıştır","stroke":"Vurgu","background":"Arka plan","fill":"Doldur","strokeWidth":"Kontur genişliği","strokeStyle":"Kontur stili","strokeStyle_solid":"Dolu","strokeStyle_dashed":"Kesik çizgili","strokeStyle_dotted":"Noktalı","sloppiness":"Üstün körülük","opacity":"Opaklık","textAlign":"Metin hizala","edges":"Kenarlar","sharp":"Keskin","round":"Yuvarlak","arrowheads":"Ok uçları","arrowhead_none":"Yok","arrowhead_arrow":"Ok","arrowhead_bar":"Çizgi","arrowhead_dot":"Nokta","arrowhead_triangle":"Üçgen","fontSize":"Yazı tipi boyutu","fontFamily":"Yazı tipi ailesi","onlySelected":"Sadece seçilen","withBackground":"Arka plan","exportEmbedScene":"Gömülü sahne","exportEmbedScene_details":"Sahne datası, daha sonra geri kullanılabilmesi için çıktı alınan PNG/SVG dosyasına dahil edicelek. Bu işlem dosya boyutunu arttıracaktır.","addWatermark":"\\"Excalidraw ile yapıldı\\" yazısını ekle","handDrawn":"El-yazısı","normal":"Normal","code":"Kod","small":"Küçük","medium":"Orta","large":"Büyük","veryLarge":"Çok geniş","solid":"Dolu","hachure":"Taralı","crossHatch":"Çapraz-taralı","thin":"İnce","bold":"Kalın","left":"Sol","center":"Ortala","right":"Sağ","extraBold":"Ekstra kalın","architect":"Mimar","artist":"Sanatçı","cartoonist":"Karikatürist","fileTitle":"Dosya adı","colorPicker":"Renk seçici","canvasBackground":"Tuval arka planı","drawingCanvas":"Çizim tuvali","layers":"Katmanlar","actions":"Eylemler","language":"Dil","liveCollaboration":"Canlı ortak çalışma alanı","duplicateSelection":"Çoğalt","untitled":"Adsız","name":"İsim","yourName":"İsminiz","madeWithExcalidraw":"Excalidraw ile yapıldı","group":"Seçimi grup yap","ungroup":"Seçilen grubu dağıt","collaborators":"Ortaklar","showGrid":"Izgarayı göster","addToLibrary":"Kütüphaneye ekle","removeFromLibrary":"Kütüphaneden kaldır","libraryLoadingMessage":"Kütüphane yükleniyor…","libraries":"Kütüphanelere gözat","loadingScene":"Çalışma alanı yükleniyor…","align":"Hizala","alignTop":"Yukarı hizala","alignBottom":"Aşağı hizala","alignLeft":"Sola yasla","alignRight":"Sağa yasla","centerVertically":"Dikeyde ortala","centerHorizontally":"Yatayda ortala","distributeHorizontally":"Yatay dağıt","distributeVertically":"Dikey dağıt","flipHorizontal":"Yatay döndür","flipVertical":"Dikey döndür","viewMode":"Görünüm modu","toggleExportColorScheme":"Renk şemasını dışa aktar/aktarma","share":"Paylaş","showStroke":"Kontur için renk seçiciyi göster","showBackground":"Arkaplan için renk seçiciyi göster","toggleTheme":"Temayı etkinleştir/devre dışı bırak","personalLib":"Kişisel Kitaplık","excalidrawLib":"Excalidraw Kitaplığı","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Tuvali sıfırla","exportJSON":"Dosyaya aktar","exportImage":"Görüntü olarak kaydet","export":"Dışa aktar","exportToPng":"PNG olarak dışa aktar","exportToSvg":"SVG olarak dışa aktar","copyToClipboard":"Panoya kopyala","copyPngToClipboard":"PNG\'yi panoya kopyala","scale":"Ölçek","save":"Geçerli dosyaya kaydet","saveAs":"Farklı kaydet","load":"Yükle","getShareableLink":"Paylaşılabilir bağlantı al","close":"Kapat","selectLanguage":"Dil seçin","scrollBackToContent":"İçeriğe geri dön","zoomIn":"Yakınlaştır","zoomOut":"Uzaklaştır","resetZoom":"Yakınlaştırmayı sıfırla","menu":"Menü","done":"Tamam","edit":"Düzenle","undo":"Geri Al","redo":"Yeniden yap","resetLibrary":"Kütüphaneyi sıfırla","createNewRoom":"Yeni oda oluştur","fullScreen":"Tam ekran","darkMode":"Koyu tema","lightMode":"Açık tema","zenMode":"Zen modu","exitZenMode":"Zen modundan çık","cancel":"İptal","clear":"Temizle","remove":"Kaldır","publishLibrary":"Yayınla","submit":"Gönder","confirm":"Onayla"},"alerts":{"clearReset":"Tuvalin tamamı temizlenecek. Emin misiniz?","couldNotCreateShareableLink":"Paylaşılabilir bağlantı oluşturulamadı.","couldNotCreateShareableLinkTooBig":"Paylaşılabilir bağlantı oluşturulamadı: sahne çok büyük","couldNotLoadInvalidFile":"Bilinmeyen dosya yüklenemiyor","importBackendFailed":"Sunucudan içe aktarma başarısız.","cannotExportEmptyCanvas":"Boş tuval dışarıya aktarılamaz.","couldNotCopyToClipboard":"Panoya kopyalanamadı. Chrome tarayıcısını deneyiniz.","decryptFailed":"Şifrelenmiş veri çözümlenemedi.","uploadedSecurly":"Yükleme uçtan uca şifreleme ile korunmaktadır. Excalidraw sunucusu ve üçüncül şahıslar içeriği okuyamayacaktır.","loadSceneOverridePrompt":"Harici çizimler yüklemek mevcut olan içeriği değiştirecektir. Devam etmek istiyor musunuz?","collabStopOverridePrompt":"Oturumu sonlandırmak daha önceki, yerel olarak kaydedilmiş çizimin üzerine kaydedilmesine sebep olacak. Emin misiniz?\\n\\n(Yerel çiziminizi kaybetmemek için tarayıcı sekmesini kapatabilirsiniz.)","errorLoadingLibrary":"Üçüncü taraf kitaplığı yüklerken bir hata oluştu.","errorAddingToLibrary":"Öğe kütüphaneye eklenemedi","errorRemovingFromLibrary":"Öğe kütüphaneden silinemedi","confirmAddLibrary":"Bu, kitaplığınıza {{numShapes}} tane şekil ekleyecek. Emin misiniz?","imageDoesNotContainScene":"Bu görüntü herhangi bir sahne verisi içermiyor gibi görünüyor. Dışa aktarma sırasında sahne yerleştirmeyi etkinleştirdiniz mi?","cannotRestoreFromImage":"Sahne bu dosyadan oluşturulamıyor","invalidSceneUrl":"Verilen URL\'den çalışma alanı yüklenemedi. Dosya bozuk olabilir veya geçerli bir Excalidraw JSON verisi bulundurmuyor olabilir.","resetLibrary":"Bu işlem kütüphanenizi sıfırlayacak. Emin misiniz?","removeItemsFromsLibrary":"{{count}} öğe(ler) kitaplıktan kaldırılsın mı?","invalidEncryptionKey":"Şifreleme anahtarı 22 karakter olmalı. Canlı işbirliği devre dışı bırakıldı."},"errors":{"unsupportedFileType":"Desteklenmeyen dosya türü.","imageInsertError":"Görsel eklenemedi. Daha sonra tekrar deneyin...","fileTooBig":"Dosya çok büyük. İzin verilen maksimum boyut {{maxSize}}.","svgImageInsertError":"SVG resmi eklenemedi. SVG işaretlemesi geçersiz görünüyor.","invalidSVGString":"Geçersiz SVG."},"toolBar":{"selection":"Seçme","image":"Görsel ekle","rectangle":"Dikdörtgen","diamond":"Elmas","ellipse":"Elips","arrow":"Ok","line":"Çizgi","freedraw":"Çiz","text":"Yazı","library":"Kütüphane","lock":"Seçilen aracı çizimden sonra aktif tut","penMode":"","link":""},"headings":{"canvasActions":"Tuval eylemleri","selectedShapeActions":"Seçilen şekil aksiyonları","shapes":"Şekiller"},"hints":{"canvasPanning":"Tuvali taşımak için, tuvali sürüklerken aynı zamanda fare tekerleğine veya boşluk tuşuna basılı tutun","linearElement":"Birden fazla nokta için tıklayın, tek çizgi için sürükleyin","freeDraw":"Tıkla ve sürükle, bitirdiğinde serbest bırak","text":"İpucu: seçme aracıyla herhangi bir yere çift tıklayarak da yazı ekleyebilirsin","text_selected":"Metni düzenlemek için çift tıklayın veya ENTER\'a basın","text_editing":"Düzenlemeyi bitirmek için ESC veya Ctrl/Cmd+ENTER tuşlarına basın","linearElementMulti":"Tamamlamak için son noktayı seçin veya Escape ve Enter\'dan birine basın","lockAngle":"SHIFT tuşuna basılı tutarak açıyı koruyabilirsiniz","resize":"Yeniden boyutlandırırken SHIFT\'e basılı tutarak oranları kısıtlayabilirsiniz, merkezden yeniden boyutlandırmak için ALT\'a basılı tutun","resizeImage":"SHIFT\'e basılı tutarak serbestçe yeniden boyutlandırabilirsiniz, merkezden yeniden boyutlandırmak için ALT tuşunu basılı tutun","rotate":"Döndürürken SHIFT tuşuna basılı tutarak açıları koruyabilirsiniz","lineEditor_info":"Noktaları düzenlemek için çift-tıklayın veya Enter\'a basın","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"Resmi yerleştirmek için tıklayın ya da boyutunu manuel olarak ayarlamak için tıklayıp sürükleyin","publishLibrary":"Kendi kitaplığınızı yayınlayın","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Önizleme gösterilemiyor","canvasTooBig":"Kanvas çok büyük olabilir.","canvasTooBigTip":"İpucu: En uzaktaki elemanları birbirine yakınlaştırmayı deneyin."},"errorSplash":{"headingMain_pre":"Hata oluştu. Lütfen ","headingMain_button":"sayfayı yenilemeyi deneyin.","clearCanvasMessage":"Yenileme sonrası sorun devam ediyorsa, lütfen ","clearCanvasMessage_button":"çizim alanını temizlemeyi deneyin.","clearCanvasCaveat":" Bu, yaptığınız değişiklikleri sıfırlayacak ","trackedToSentry_pre":"Tanımlayıcı ile ilgili hata ","trackedToSentry_post":" sistemimize yakalandı.","openIssueMessage_pre":"Sahne bilginizi hata mesajına yansıtmamak için oldukça dikkatli davrandık. Eğer sahneniz gizli değilse hatayı lütfen şuradan takip edin ","openIssueMessage_button":"hata takibi.","openIssueMessage_post":" Lütfen aşağıya GitHub sorununa kopyalayarak ve yapıştırarak bilgi ekleyin.","sceneContent":"Sahne içeriği:"},"roomDialog":{"desc_intro":"Çalışma alanınıza, sizinle birlikte çalışabilmeleri için başkalarını da ekleyebilirsiniz.","desc_privacy":"Çalışma ortamında yaptıklarınız ve çizimleriniz uçtan uca şifrelemeyle saklanmaktadır. Sunucularımız dahi bu verileri şifrelenmemiş haliyle göremez.","button_startSession":"Oturumu başlat","button_stopSession":"Oturumu sonlandır","desc_inProgressIntro":"Ortak çalışma ortamı oluşturuldu.","desc_shareLink":"Bu bağlantıyı birlikte çalışacağınız kişilerle paylaşabilirsiniz:","desc_exitSession":"Çalışma ortamını kapattığınızda ortak çalışmadan ayrılmış olursunuz ancak kendi versiyonunuzda çalışmaya devam edebilirsiniz. Bu durumda ortak çalıştığınız diğer kişiler etkilenmeyecek, çalışma ortamındaki versiyon üzerinden çalışmaya devam edebilecekler.","shareTitle":"Excalidraw\'da canlı ortak calışma oturumuna katıl"},"errorDialog":{"title":"Hata"},"exportDialog":{"disk_title":"Belleğe kaydet","disk_details":"Sahne verilerini daha sonra içe aktarabileceğiniz bir dosyaya aktarın.","disk_button":"Dosyaya kaydet","link_title":"Paylaşılabilir bağlantı","link_details":"Salt okunur bir bağlantı olarak dışa aktarın.","link_button":"Bağlantı olarak dışa aktar","excalidrawplus_description":"Sahneyi Excalidraw+ çalışma alanınıza kaydedin.","excalidrawplus_button":"Dışa aktar","excalidrawplus_exportError":"Şu anda Excalidraw+\'a aktarılamadı..."},"helpDialog":{"blog":"Blog\'umuzu okuyun","click":"tıkla","deepSelect":"","deepBoxSelect":"","curvedArrow":"Eğri ok","curvedLine":"Eğri çizgi","documentation":"Dokümantasyon","doubleClick":"çift-tıklama","drag":"sürükle","editor":"Düzenleyici","editSelectedShape":"Seçili şekli düzenle (metin/ok/çizgi)","github":"Bir hata mı buldun? Bildir","howto":"Rehberlerimizi takip edin","or":"veya","preventBinding":"Ok bağlamayı önleyin","shapes":"Şekiller","shortcuts":"Klavye kısayolları","textFinish":"Düzenlemeyi bitir (metin düzenleyici)","textNewLine":"Yeni satır ekle (metin düzenleyici)","title":"Yardım","view":"Görünüm","zoomToFit":"Tüm öğeleri sığdırmak için yakınlaştır","zoomToSelection":"Seçime yakınlaş"},"clearCanvasDialog":{"title":"Tuvali temizle"},"publishDialog":{"title":"Kitaplığı yayınla","itemName":"Öğe adı","authorName":"Yazar adı","githubUsername":"GıtHub kullanıcı adı","twitterUsername":"Twitter kullanıcı adı","libraryName":"Kitaplık adı","libraryDesc":"Kitaplık açıklaması","website":"Web sitesi","placeholder":{"authorName":"Adınız ya da kullanıcı adınız","libraryName":"Kitaplığınızın adı","libraryDesc":"İnsanların kullanımını anlamasına yardımcı olmak için kitaplığınızın açıklaması","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Çizimleriniz uçtan-uca şifrelenmiştir, Excalidraw\'ın sunucuları bile onları göremez.","link":"Excalidraw\'da uçtan uca şifreleme hakkında blog yazısı"},"stats":{"angle":"Açı","element":"Bileşen","elements":"Bileşenler","height":"Yükseklik","scene":"Sahne","selected":"Seçili","storage":"Depolama","title":"İnekler için istatistikler","total":"Toplam","version":"Sürüm","versionCopy":"Kopyalamak için tıkla","versionNotAvailable":"Sürüm mevcut değil","width":"Genişlik"},"toast":{"addedToLibrary":"","copyStyles":"Stiller kopyalandı.","copyToClipboard":"Panoya kopyalandı.","copyToClipboardAsPng":"{{exportSelection}} panoya PNG olarak\\n({{exportColorScheme}}) kopyalandı","fileSaved":"Dosya kaydedildi.","fileSavedToFilename":"{filename} kaydedildi","canvas":"tuval","selection":"seçim"},"colors":{"495057":"Gri 7","ffffff":"Beyaz","f8f9fa":"Gri 0","f1f3f5":"Gri 1","fff5f5":"Kırmızı 0","fff0f6":"Pembe 0","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"Mavi 0","e3fafc":"","e6fcf5":"","ebfbee":"Yeşil 0","f4fce3":"","fff9db":"Sarı 0","fff4e6":"Turuncu 0","transparent":"Şeffaf","ced4da":"Gri 4","868e96":"Gri 6","fa5252":"Kırmızı 6","e64980":"Pembe 6","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"Mavi 6","15aabf":"","12b886":"","40c057":"Yeşil 6","82c91e":"","fab005":"Sarı 6","fd7e14":"Turuncu 6","000000":"Siyah","343a40":"Gri 8","c92a2a":"Kırmızı 9","a61e4d":"Pembe 9","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"Mavi 9","0b7285":"","087f5b":"","2b8a3e":"Yeşil 9","5c940d":"","e67700":"Sarı 9","d9480f":"Turuncu 9"}}')},334:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"Вставити","pasteCharts":"Вставити діаграми","selectAll":"Вибрати все","multiSelect":"Додати елемент до вибраного","moveCanvas":"Перемістити полотно","cut":"Вирізати","copy":"Копіювати","copyAsPng":"Копіювати як PNG","copyAsSvg":"Копіювати як SVG","bringForward":"Перемістити вперед","sendToBack":"На задній план","bringToFront":"На передній план","sendBackward":"Перемістити назад","delete":"Видалити","copyStyles":"Копіювати стилі","pasteStyles":"Вставити стилі","stroke":"Контур","background":"Тло","fill":"Заповнити","strokeWidth":"Товщина контуру","strokeStyle":"Стиль контуру","strokeStyle_solid":"Суцільний","strokeStyle_dashed":"Пунктир","strokeStyle_dotted":"Крапки","sloppiness":"Охайність","opacity":"Прозорість","textAlign":"Вирівнювання тексту","edges":"Краї","sharp":"Гострі","round":"Круглі","arrowheads":"Закінчення стрілки","arrowhead_none":"Жоден","arrowhead_arrow":"Стрілка","arrowhead_bar":"Колона","arrowhead_dot":"Точка","arrowhead_triangle":"Трикутник","fontSize":"Розмір шрифту","fontFamily":"Шрифт","onlySelected":"Тільки вибране","withBackground":"Фон","exportEmbedScene":"Вбудована сцена","exportEmbedScene_details":"Дані сцени будуть збережені в експортований файл PNG/SVG. Ця сцена може бути відновленна з нього, однак це збільшить розмір експортованого файлу.","addWatermark":"Додати «Накреслене в Excalidraw»","handDrawn":"Рукописний","normal":"Звичайний","code":"Код","small":"Малий","medium":"Середній","large":"Великий","veryLarge":"Дуже великий","solid":"Суцільна","hachure":"Штриховка","crossHatch":"Перехресна штриховка","thin":"Тонкий","bold":"Жирний","left":"Зліва","center":"По центру","right":"Справа","extraBold":"Товстий","architect":"Архітектор","artist":"Художник","cartoonist":"Карикатурист","fileTitle":"Назва файла","colorPicker":"Палітра кольорів","canvasBackground":"Тло полотна","drawingCanvas":"Полотно","layers":"Шари","actions":"Дії","language":"Мова","liveCollaboration":"Спільна співпраця","duplicateSelection":"Дублювати","untitled":"Без назви","name":"Ім’я","yourName":"Ваше ім’я","madeWithExcalidraw":"Накреслене в Excalidraw","group":"Групувати виділене","ungroup":"Розгрупувати виділене","collaborators":"Співавтори","showGrid":"Показати сітку","addToLibrary":"Додати до бібліотеки","removeFromLibrary":"Видалити з бібліотеки","libraryLoadingMessage":"Завантажити бібліотеку…","libraries":"Огляд бібліотек","loadingScene":"Завантаження сцени…","align":"Вирівнювання","alignTop":"Вирівняти по верхньому краю","alignBottom":"Вирівняти по нижньому краю","alignLeft":"Вирівняти по лівому краю","alignRight":"Вирівнювання по правому краю","centerVertically":"Центрувати по вертикалі","centerHorizontally":"Центрувати по горизонталі","distributeHorizontally":"Розподілити по горизонталі","distributeVertically":"Розподілити вертикально","flipHorizontal":"Віддзеркалити горизонтально","flipVertical":"Віддзеркалити вертикально","viewMode":"Режим перегляду","toggleExportColorScheme":"Переключити колірну схему експорту","share":"Поділитися","showStroke":"Показати палітру для контура","showBackground":"Показати палітру для фону","toggleTheme":"Перемкнути тему","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"Очистити полотно","exportJSON":"Експорт у файл","exportImage":"Зберегти як зображення","export":"Експортувати","exportToPng":"Експортувати в PNG","exportToSvg":"Експортувати в SVG","copyToClipboard":"Скопіювати до буферу обміну","copyPngToClipboard":"Скопіювати PNG до буферу обміну","scale":"Масштаб","save":"Зберегти до поточного файлу","saveAs":"Зберегти як","load":"Завантажити","getShareableLink":"Отримати посилання","close":"Закрити","selectLanguage":"Обрати мову","scrollBackToContent":"Повернутися до вмісту","zoomIn":"Збільшити","zoomOut":"Зменшити","resetZoom":"Скинути масштаб","menu":"Меню","done":"Готово","edit":"Редагувати","undo":"Відмінити","redo":"Повторити","resetLibrary":"Очистити бібліотеку","createNewRoom":"Створити нову кімнату","fullScreen":"Повноекранний режим","darkMode":"Темний режим","lightMode":"Світлий режим","zenMode":"Режим Дзен","exitZenMode":"Вийти з дзен-режиму","cancel":"Скасувати","clear":"Очистити","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"Це очистить все полотно. Впевнені?","couldNotCreateShareableLink":"Не вдалося створити посилання.","couldNotCreateShareableLinkTooBig":"Не вдалося створити посилання для обміну: сцена занадто велика","couldNotLoadInvalidFile":"Файл з помилками не відкрився","importBackendFailed":"Імпортування невдале.","cannotExportEmptyCanvas":"Не вийшло експортувати пусте полотно.","couldNotCopyToClipboard":"Не копіюється до буферу обміну. Спробуйте в браузері Chrome.","decryptFailed":"Не вдалося розшифрувати дані.","uploadedSecurly":"Це завантаження було захищене наскрізним шифруванням, а це означає що сервер Excalidraw та інші не зможуть прочитати вміст.","loadSceneOverridePrompt":"Завантаження зовнішнього креслення замінить ваш наявний контент. Продовжити?","collabStopOverridePrompt":"Зупинка сесії перезапише ваш попередній, локально збережений малюнок. Ви впевнені?\\n\\n(Якщо ви хочете зберегти локальний малюнок, просто закрийте замість нього вкладку браузера.)","errorLoadingLibrary":"Помилка при завантаженні сторонньої бібліотеки.","errorAddingToLibrary":"Не вдалося додати елемент до бібліотеки","errorRemovingFromLibrary":"Не вдалося видалити елемент з бібліотеки","confirmAddLibrary":"Це призведе до додавання {{numShapes}} фігур до вашої бібліотеки. Ви впевнені?","imageDoesNotContainScene":"","cannotRestoreFromImage":"Сцена не може бути відновлена з цього файлу зображення","invalidSceneUrl":"Не вдалося імпортувати сцену з наданого URL. Він або недоформований, або не містить дійсних даних Excalidraw JSON.","resetLibrary":"Це призведе до очищення бібліотеки. Ви впевнені?","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"Непідтримуваний тип файлу.","imageInsertError":"Не вдалося вставити зображення. Повторіть спробу пізніше...","fileTooBig":"Занадто великий розмір файлу, максимальний розмір файлу {{maxSize}}.","svgImageInsertError":"Не вдалося вставити SVG-зображення. Помилка розмітки SVG.","invalidSVGString":""},"toolBar":{"selection":"Виділення","image":"Вставити зображення","rectangle":"Прямокутник","diamond":"Ромб","ellipse":"Еліпс","arrow":"Стрілка","line":"Лінія","freedraw":"Малювати","text":"Текст","library":"Бібліотека","lock":"Залишити обраний інструмент після креслення","penMode":"","link":""},"headings":{"canvasActions":"Дії з полотном","selectedShapeActions":"Вибрані дії з фігурою","shapes":"Фігури"},"hints":{"canvasPanning":"Щоб перемістити полотно, утримуйте коліщатко миші або пробіл під час перетягування","linearElement":"Натисніть щоб додати кілька точок, перетягніть щоб намалювати одну лінію","freeDraw":"Натисніть і потягніть, відпустіть коли завершите","text":"Порада: можна також додати текст, двічі клацнувши по будь-якому місці інструментом вибору","text_selected":"Подвійний клік або натисніть клавішу ENTER, щоб редагувати текст","text_editing":"","linearElementMulti":"Натисніть на останню точку, клацніть Esc або Enter щоб завершити","lockAngle":"Ви можете обмежити кут, утримуюючи SHIFT","resize":"Ви можете зберегти пропорції, утримуючи SHIFT під час зміни розміру,\\nутримуйте ALT для змінення розміру від центру","resizeImage":"","rotate":"Ви можете обмежити кути, утримуючи SHIFT під час обертання","lineEditor_info":"Двічі клацніть або натисніть Enter щоб редагувати точки","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"Не вдається показати попередній перегляд","canvasTooBig":"Полотно може бути завеликим.","canvasTooBigTip":"Порада: спробуйте підсунути найвіддаленіші елементи ближче один до одного."},"errorSplash":{"headingMain_pre":"Сталася помилка. Спробуйте ","headingMain_button":"перезавантажити сторінку.","clearCanvasMessage":"Якщо перезавантаження не допоможе, спробуйте ","clearCanvasMessage_button":"очистити полотно.","clearCanvasCaveat":" Це призведе до втрати роботи ","trackedToSentry_pre":"Помилка з ідентифікатором ","trackedToSentry_post":" було відслідковано в нашій системі.","openIssueMessage_pre":"Ми були дуже обережні, щоб не включати інформацію про ваші сцени в текст помилки. Якщо ваша сцена не була приватна, будь ласка, розгляньте можливість продовження на нашому ","openIssueMessage_button":"трекер помилок.","openIssueMessage_post":" Будь ласка, додайте інформацію нижче, скопіюючи і вставляючи у GitHub issue.","sceneContent":"Вміст сцени:"},"roomDialog":{"desc_intro":"Ви можете запросити людей на вашу поточну сцену для співпраці з вами.","desc_privacy":"Не хвилюйтеся, сесія захищена наскрізним шифруванням, тому ваше креслення залишиться приватним. Навіть наш сервер не побачить вашу мазанину.","button_startSession":"Почати сесію","button_stopSession":"Закрити сесію","desc_inProgressIntro":"Сесія спільної роботи над кресленням триває.","desc_shareLink":"Поділіться цим посиланням з будь-ким для спільної роботи:","desc_exitSession":"Зупинка сесії відключить вас від кімнати, але ви зможете продовжити роботу з полотном локально. Зверніть увагу, що це не вплине на інших людей, і вони все одно зможуть працювати над їх версією.","shareTitle":"Приєднатися до сеансу спільної роботи на Excalidraw"},"errorDialog":{"title":"Помилка"},"exportDialog":{"disk_title":"Зберегти на диск","disk_details":"Експорт даних сцени в файл, з якого можна імпортувати пізніше.","disk_button":"Зберегти до файлу","link_title":"Доступ за посиланням","link_details":"Експортувати як посилання тільки для читання.","link_button":"Експортувати у посилання","excalidrawplus_description":"","excalidrawplus_button":"Експортувати","excalidrawplus_exportError":""},"helpDialog":{"blog":"Наш блог","click":"натиснути","deepSelect":"","deepBoxSelect":"","curvedArrow":"Крива стрілка","curvedLine":"Крива лінія","documentation":"Документація","doubleClick":"подвійний клік","drag":"перетягнути","editor":"Редактор","editSelectedShape":"","github":"Знайшли помилку? Повідомте","howto":"Дотримуйтесь наших інструкцій","or":"або","preventBinding":"Запобігти зв\'язування зі стрілками","shapes":"Фігури","shortcuts":"Гарячі клавіші","textFinish":"Завершити редагування (текстовий редактор)","textNewLine":"Додати новий рядок (текстовий редактор)","title":"Допомога","view":"Вигляд","zoomToFit":"Збільшити щоб умістити всі елементи","zoomToSelection":"Наблизити вибране"},"clearCanvasDialog":{"title":"Очистити полотно"},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"Ваші креслення захищені наскрізним шифруванням — сервери Excalidraw ніколи їх не побачать.","link":"Допис у блозі на наскрізному шифруванні в Excalidraw"},"stats":{"angle":"Кут","element":"Елемент","elements":"Елементи","height":"Висота","scene":"Сцена","selected":"Вибраний","storage":"Сховище","title":"Статистика","total":"Всього","version":"Версія","versionCopy":"Натисніть, щоб скопіювати","versionNotAvailable":"Версія недоступна","width":"Ширина"},"toast":{"addedToLibrary":"","copyStyles":"Скопійовані стилі.","copyToClipboard":"Скопіювати до буферу обміну.","copyToClipboardAsPng":"Скопійовано {{exportSelection}} до буфера обміну як PNG\\n({{exportColorScheme}})","fileSaved":"Файл збережено.","fileSavedToFilename":"Збережено в {filename}","canvas":"полотно","selection":"виділення"},"colors":{"495057":"Сірий 7","ffffff":"Білий","f8f9fa":"Сірий 0","f1f3f5":"Сірий 1","fff5f5":"Червоний 0","fff0f6":"Рожевий 0","f8f0fc":"Виноград 0","f3f0ff":"Фіолетовий 0","edf2ff":"Індиго 0","e7f5ff":"Синій 0","e3fafc":"Ціан 0","e6fcf5":"Зеленувато-блакитний 0","ebfbee":"Зелений 0","f4fce3":"Лайм 0","fff9db":"Жовтий 0","fff4e6":"Помаранчевий 0","transparent":"Прозорий","ced4da":"Сірий 4","868e96":"Сірий 6","fa5252":"Червоний 6","e64980":"Рожевий 6","be4bdb":"Виноград 6","7950f2":"Фіолетовий 6","4c6ef5":"Індиго 6","228be6":"Синій 6","15aabf":"Ціан 6","12b886":"Зеленувато-блакитний 6","40c057":"Зелений 6","82c91e":"Лайм 6","fab005":"Жовтий 6","fd7e14":"Помаранчевий 6","000000":"Чорний","343a40":"Сірий 8","c92a2a":"Червоний 9","a61e4d":"Рожевий 9","862e9c":"Виноград 9","5f3dc4":"Фіолетовий 9","364fc7":"Індиго 9","1864ab":"Синій 9","0b7285":"Ціан 9","087f5b":"Зеленувато-блакитний 9","2b8a3e":"Зелений 9","5c940d":"Лаймовий 9","e67700":"Жовтий 9","d9480f":"Помаранчевий 9"}}')},1037:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"粘贴","pasteCharts":"粘贴图表","selectAll":"全部选中","multiSelect":"添加元素到选区","moveCanvas":"移动画布","cut":"剪切","copy":"拷贝","copyAsPng":"复制为 PNG 到剪贴板","copyAsSvg":"复制为 SVG 到剪贴板","bringForward":"上移一层","sendToBack":"置于底层","bringToFront":"置于顶层","sendBackward":"下移一层","delete":"删除","copyStyles":"复制样式","pasteStyles":"粘贴样式","stroke":"描边","background":"背景","fill":"填充","strokeWidth":"描边宽度","strokeStyle":"边框样式","strokeStyle_solid":"实线","strokeStyle_dashed":"虚线","strokeStyle_dotted":"点虚线","sloppiness":"线条风格","opacity":"透明度","textAlign":"文本对齐","edges":"边角","sharp":"尖锐","round":"圆润","arrowheads":"端点","arrowhead_none":"无","arrowhead_arrow":"箭头","arrowhead_bar":"条","arrowhead_dot":"圆点","arrowhead_triangle":"三角箭头","fontSize":"字体大小","fontFamily":"字体","onlySelected":"仅被选中","withBackground":"背景","exportEmbedScene":"包含画布数据","exportEmbedScene_details":"画布数据将被保存到导出的 PNG/SVG 文件,以便恢复。\\n将会增加导出的文件大小。","addWatermark":"添加 “使用 Excalidraw 创建” 水印","handDrawn":"手写","normal":"正常","code":"代码","small":"小号","medium":"中等","large":"大号","veryLarge":"极大","solid":"实心","hachure":"线条","crossHatch":"交叉线条","thin":"细","bold":"粗","left":"左对齐","center":"居中","right":"右对齐","extraBold":"特粗","architect":"朴素","artist":"艺术","cartoonist":"漫画家","fileTitle":"文件名","colorPicker":"调色盘","canvasBackground":"画布背景","drawingCanvas":"绘制 Canvas","layers":"图层","actions":"操作","language":"语言","liveCollaboration":"实时协作","duplicateSelection":"复制","untitled":"无标题","name":"名字","yourName":"您的姓名","madeWithExcalidraw":"使用 Excalidraw 创建","group":"组选","ungroup":"取消组选","collaborators":"协作者","showGrid":"显示网格","addToLibrary":"添加到素材库中","removeFromLibrary":"从素材库中移除","libraryLoadingMessage":"正在加载素材库…","libraries":"浏览素材库","loadingScene":"正在加载绘图…","align":"对齐","alignTop":"顶部对齐","alignBottom":"底端对齐","alignLeft":"左对齐","alignRight":"右对齐","centerVertically":"垂直居中","centerHorizontally":"水平居中","distributeHorizontally":"水平等距分布","distributeVertically":"垂直等距分布","flipHorizontal":"水平翻转","flipVertical":"垂直翻转","viewMode":"查看模式","toggleExportColorScheme":"切换导出配色方案","share":"分享","showStroke":"显示描边颜色选择器","showBackground":"显示背景颜色选择器","toggleTheme":"切换主题","personalLib":"个人素材库","excalidrawLib":"Excalidraw 素材库","decreaseFontSize":"缩小字体大小","increaseFontSize":"放大字体大小","unbindText":"取消文本绑定","link":{"edit":"编辑链接","create":"新建链接","label":"链接"}},"buttons":{"clearReset":"重置画布","exportJSON":"导出为文件","exportImage":"保存为图像","export":"导出","exportToPng":"导出为 PNG","exportToSvg":"导出为 SVG","copyToClipboard":"复制到剪贴板","copyPngToClipboard":"复制 PNG 到剪切板","scale":"缩放","save":"保存至当前文件","saveAs":"保存为","load":"载入文件","getShareableLink":"获取共享链接","close":"关闭","selectLanguage":"选择语言","scrollBackToContent":"滚动回到内容","zoomIn":"放大","zoomOut":"缩小","resetZoom":"重置缩放","menu":"菜单","done":"完成","edit":"编辑","undo":"撤销","redo":"重做","resetLibrary":"重置素材库","createNewRoom":"新建会议室","fullScreen":"全屏","darkMode":"深色模式","lightMode":"浅色模式","zenMode":"禅模式","exitZenMode":"退出禅模式","cancel":"取消","clear":"清除","remove":"删除","publishLibrary":"发布","submit":"提交","confirm":"确定"},"alerts":{"clearReset":"这将会清除整个画布。您是否要继续?","couldNotCreateShareableLink":"无法创建共享链接","couldNotCreateShareableLinkTooBig":"无法创建可共享链接:画布过大","couldNotLoadInvalidFile":"无法加载无效的文件","importBackendFailed":"从后端导入失败。","cannotExportEmptyCanvas":"无法导出空白画布。","couldNotCopyToClipboard":"无法复制到剪贴板,请尝试使用 Chrome 浏览器。","decryptFailed":"无法解密数据。","uploadedSecurly":"上传已被端到端加密保护,这意味着 Excalidraw 的服务器和第三方都无法读取内容。","loadSceneOverridePrompt":"加载外部绘图将取代您现有的内容。您想要继续吗?","collabStopOverridePrompt":"停止会话将覆盖您先前本地存储的绘图。 您确定吗?\\n\\n(如果您想保持本地绘图,只需关闭浏览器选项卡。)","errorLoadingLibrary":"加载第三方素材库时出错。","errorAddingToLibrary":"无法将项目添加到素材库中","errorRemovingFromLibrary":"无法从素材库中移除项目","confirmAddLibrary":"这将添加 {{numShapes}} 个形状到您的素材库中。您确定吗?","imageDoesNotContainScene":"此图像似乎不包含任何画布数据。您是否在导出时启用了画布嵌入功能?","cannotRestoreFromImage":"无法从此图像文件恢复画布","invalidSceneUrl":"无法从提供的 URL 导入场景。它或者格式不正确,或者不包含有效的 Excalidraw JSON 数据。","resetLibrary":"这将会清除你的素材库。你确定要这么做吗?","removeItemsFromsLibrary":"确定要从素材库中删除 {{count}} 个项目吗?","invalidEncryptionKey":"密钥必须包含22个字符。实时协作已被禁用。"},"errors":{"unsupportedFileType":"不支持的文件格式。","imageInsertError":"无法插入图像。请稍后再试……","fileTooBig":"文件过大。最大允许的大小为 {{maxSize}}。","svgImageInsertError":"无法插入 SVG 图像。该 SVG 标记似乎是无效的。","invalidSVGString":"无效的 SVG。"},"toolBar":{"selection":"选择","image":"插入图像","rectangle":"矩形","diamond":"菱形","ellipse":"椭圆","arrow":"箭头","line":"线条","freedraw":"自由书写","text":"文字","library":"素材库","lock":"绘制后保持所选的工具栏状态","penMode":"禁用手势缩放并只接收来自触控笔的输入","link":"为选中的形状添加/更新链接"},"headings":{"canvasActions":"画布动作","selectedShapeActions":"选定形状操作","shapes":"形状"},"hints":{"canvasPanning":"要移动画布,请按住鼠标滚轮或空格键,再拖拽鼠标","linearElement":"点击创建多个点 拖动创建直线","freeDraw":"点击并拖动,完成时松开","text":"提示:您也可以使用选择工具双击任意位置来添加文字","text_selected":"双击或按回车键以编辑文本","text_editing":"按下 Escape 或 CtrlOrCmd+ENTER 完成编辑","linearElementMulti":"点击最后一个点或按下 Esc/Enter 来完成","lockAngle":"可以按住 Shift 来约束角度","resize":"您可以按住SHIFT来限制比例大小,\\n按住ALT来调整中心大小","resizeImage":"按住SHIFT可以自由缩放,\\n按住ALT可以从中间缩放","rotate":"旋转时可以按住 Shift 来约束角度","lineEditor_info":"双击或按回车键编辑","lineEditor_pointSelected":"按下 Delete 移除点,Ctrl 或 Cmd+D 以复制,拖动以移动","lineEditor_nothingSelected":"选择要编辑的点 (按住 SHIFT 选择多个),\\n或按住 Alt 并点击以添加新点","placeImage":"点击放置图像,或者点击并拖动以手动设置图像大小","publishLibrary":"发布您自己的素材库","bindTextToElement":"按下 Enter 以添加文本","deepBoxSelect":"按住 CtrlOrCmd 以深度选择,并避免拖拽"},"canvasError":{"cannotShowPreview":"无法显示预览","canvasTooBig":"画布可能过大。","canvasTooBigTip":"提示:尝试将最远的元素移动到和其它元素更近一些。"},"errorSplash":{"headingMain_pre":"遇到异常。请尝试","headingMain_button":"重新加载页面。","clearCanvasMessage":"如果重新加载页面无效, 请尝试","clearCanvasMessage_button":"清除画布。","clearCanvasCaveat":"这会造成当前工作丢失","trackedToSentry_pre":"带有标识符的错误","trackedToSentry_post":"已在我们的系统中跟踪","openIssueMessage_pre":"我们非常谨慎地处理错误信息,您的画布内容不会被包含在错误报告中。如果您的画布内容不需要保持私密,请考虑使用我们的","openIssueMessage_button":"错误追踪器。","openIssueMessage_post":" 请复制并粘贴以下信息到 GitHub Issue 中。","sceneContent":"画布内容:"},"roomDialog":{"desc_intro":"你可以邀请其他人到目前的画面中与你协作。","desc_privacy":"别担心, 该会话使用端到端加密, 无论绘制什么都将保持私密,甚至连我们的服务器也无法查看。","button_startSession":"启动会议","button_stopSession":"结束会议","desc_inProgressIntro":"实时协作会议正在进行。","desc_shareLink":"分享此链接给你要协作的用户","desc_exitSession":"停止会话将中断您在与房间的连接,但您依然可以在本地继续使用画布. 请注意,这不会影响到其他用户, 他们仍可以在他们的版本上继续协作。","shareTitle":"加入 Excalidraw 实时协作会议"},"errorDialog":{"title":"错误"},"exportDialog":{"disk_title":"保存到本地","disk_details":"将画布数据导出为文件,以便以后导入","disk_button":"保存为文件","link_title":"分享链接","link_details":"导出为只读链接。","link_button":"导出链接","excalidrawplus_description":"将画布保存到您的 Excalidraw+ 工作区。","excalidrawplus_button":"导出","excalidrawplus_exportError":"暂时无法导出到 Excalidraw+ ..."},"helpDialog":{"blog":"浏览我们的博客","click":"单击","deepSelect":"深度选择","deepBoxSelect":"在方框内深度选择并避免拖拽","curvedArrow":"曲线箭头","curvedLine":"曲线","documentation":"文档","doubleClick":"双击","drag":"拖动","editor":"编辑器","editSelectedShape":"编辑选中的形状 (文本、箭头或线条)","github":"提交问题","howto":"帮助文档","or":"或","preventBinding":"禁用箭头吸附","shapes":"形状","shortcuts":"快捷键列表","textFinish":"完成编辑 (文本编辑器)","textNewLine":"添加新行(文本编辑器)","title":"帮助","view":"视图","zoomToFit":"缩放以适应所有元素","zoomToSelection":"缩放到选区"},"clearCanvasDialog":{"title":"清除画布"},"publishDialog":{"title":"发布素材库","itemName":"项目名称","authorName":"作者名","githubUsername":"GitHub 用户名","twitterUsername":"Twitter 用户名","libraryName":"名称","libraryDesc":"简介","website":"网址","placeholder":{"authorName":"您的名字或用户名","libraryName":"素材库名称","libraryDesc":"介绍您的素材库,让人们了解其用途","githubHandle":"GitHub 用户名(可选),填写后,您可以编辑已提交待审的素材库","twitterHandle":"Twitter 用户名(可选),填写后,当我们在Twitter发布推广信息时便可提及您","website":"您个人网站的或任意的链接(可选)"},"errors":{"required":"必填","website":"输入一个有效的URL"},"noteDescription":{"pre":"提交后,您的素材库将被包含在 ","link":"公共素材库广场","post":"以供其他人在绘图中使用。"},"noteGuidelines":{"pre":"提交的素材库需先经人工审核。在提交之前,请先阅读 ","link":"指南","post":" 。后续沟通和对库的修改需要 GitHub 账号,但这不是必须的。"},"noteLicense":{"pre":"提交即表明您已同意素材库将遵循 ","link":"MIT 许可证, ","post":"简而言之,任何人都可以不受限制地使用它们。"},"noteItems":"素材库中每个项目都有各自的名称以供筛选。以下项目将被包含:","atleastOneLibItem":"请选择至少一个素材库以开始"},"publishSuccessDialog":{"title":"素材库已提交","content":"谢谢你 {{authorName}}。您的素材库已被提交审核。跟进此次提交的状态请点击","link":"此处"},"confirmDialog":{"resetLibrary":"重置素材库","removeItemsFromLib":"从素材库中删除选中的项目"},"encrypted":{"tooltip":"您的绘图采用的端到端加密,其内容对于Excalidraw服务器是不可见的。","link":"Excalidraw 中关于端到端加密的博客"},"stats":{"angle":"角度","element":"元素","elements":"元素","height":"高度","scene":"画布","selected":"选中","storage":"存储","title":"详细统计信息","total":"总计","version":"版本","versionCopy":"点击复制","versionNotAvailable":"版本不可用","width":"宽度"},"toast":{"addedToLibrary":"添加到素材库中","copyStyles":"复制样式","copyToClipboard":"已复制到剪切板。","copyToClipboardAsPng":"已将 {{exportSelection}} 作为 PNG 复制到剪贴板\\n({{exportColorScheme}})","fileSaved":"文件已保存。","fileSavedToFilename":"保存到 {filename}","canvas":"画布","selection":"选择项"},"colors":{"495057":"灰 7","ffffff":"白","f8f9fa":"灰 0","f1f3f5":"灰 1","fff5f5":"红 0","fff0f6":"粉红 0","f8f0fc":"紫红 0","f3f0ff":"蓝紫 0","edf2ff":"靛蓝 0","e7f5ff":"蓝 0","e3fafc":"青 0","e6fcf5":"蓝绿 0","ebfbee":"绿 0","f4fce3":"柠檬绿 0","fff9db":"黄 0","fff4e6":"橙 0","transparent":"透明","ced4da":"灰 4","868e96":"灰 6","fa5252":"红 6","e64980":"粉红 6","be4bdb":"紫红 6","7950f2":"蓝紫 6","4c6ef5":"靛蓝 6","228be6":"蓝 6","15aabf":"青 6","12b886":"蓝绿 6","40c057":"绿 6","82c91e":"柠檬绿 6","fab005":"黄 6","fd7e14":"橙 6","000000":"黑","343a40":"灰 8","c92a2a":"红 9","a61e4d":"粉红 9","862e9c":"紫红 9","5f3dc4":"蓝紫 9","364fc7":"靛蓝 9","1864ab":"蓝 9","0b7285":"青 9","087f5b":"蓝绿 9","2b8a3e":"绿 9","5c940d":"柠檬绿 9","e67700":"黄 9","d9480f":"橙 9"}}')},5334:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"貼上","pasteCharts":"貼上圖表","selectAll":"全選","multiSelect":"多重選取","moveCanvas":"移動畫布","cut":"剪下","copy":"複製","copyAsPng":"以 PNG 格式複製","copyAsSvg":"以 SVG 格式複製","bringForward":"往上一層移動","sendToBack":"移到最底層","bringToFront":"移到最上層","sendBackward":"往下一層移動","delete":"刪除","copyStyles":"複製樣式","pasteStyles":"套用樣式","stroke":"筆跡顏色","background":"填充顏色","fill":"背景樣式","strokeWidth":"筆跡寬度","strokeStyle":"筆跡線條","strokeStyle_solid":"實線","strokeStyle_dashed":"虛線(較密)","strokeStyle_dotted":"虛線(較疏)","sloppiness":"筆跡風格","opacity":"透明度","textAlign":"文字對齊","edges":"邊角樣式","sharp":"銳角","round":"圓角","arrowheads":"箭嘴","arrowhead_none":"無箭嘴","arrowhead_arrow":"普通箭嘴","arrowhead_bar":"平頭條狀","arrowhead_dot":"圓點","arrowhead_triangle":"三角箭嘴","fontSize":"字型大小","fontFamily":"字體","onlySelected":"只匯出已選取的物件","withBackground":"連同背景色一併匯出","exportEmbedScene":"嵌入畫布內容","exportEmbedScene_details":"雖然使用「嵌入畫布內容」匯出的 PNG 或 SVG 檔案大小會有所增加,但是你可以透過匯入包含畫布內容的存檔來回復及繼續編輯。","addWatermark":"加入「使用 Excalidraw 製圖」水印","handDrawn":"手繪體","normal":"電腦字體","code":"等寬體","small":"細","medium":"中","large":"大","veryLarge":"勁大","solid":"實心","hachure":"斜線","crossHatch":"交叉格仔","thin":"幼","bold":"粗","left":"靠左對齊","center":"置中對齊","right":"靠右對齊","extraBold":"勁粗","architect":"手繪風格","artist":"藝術家風格","cartoonist":"卡通風格","fileTitle":"檔案名稱","colorPicker":"","canvasBackground":"畫布背景顏色","drawingCanvas":"畫布","layers":"圖層","actions":"動作","language":"🌏 語言","liveCollaboration":"多人連線","duplicateSelection":"製作副本","untitled":"未命名的作品","name":"","yourName":"你的名稱","madeWithExcalidraw":"使用 Excalidraw 製圖","group":"建立物件群組","ungroup":"取消物件群組","collaborators":"已連線的協作者","showGrid":"顯示網格","addToLibrary":"加入作品庫","removeFromLibrary":"從作品庫中移除","libraryLoadingMessage":"正在載入作品庫…","libraries":"瀏覽作品庫","loadingScene":"載入畫布中…","align":"物件對齊","alignTop":"水平置頂","alignBottom":"水平置底","alignLeft":"垂直靠左對齊","alignRight":"垂直靠右對齊","centerVertically":"垂直置中","centerHorizontally":"水平置中","distributeHorizontally":"左右等距","distributeVertically":"上下等距","flipHorizontal":"左右反轉","flipVertical":"上下反轉","viewMode":"唯讀模式","toggleExportColorScheme":"","share":"","showStroke":"","showBackground":"","toggleTheme":"","personalLib":"","excalidrawLib":"","decreaseFontSize":"","increaseFontSize":"","unbindText":"","link":{"edit":"","create":"","label":""}},"buttons":{"clearReset":"清空畫布","exportJSON":"","exportImage":"","export":"","exportToPng":"","exportToSvg":"","copyToClipboard":"","copyPngToClipboard":"","scale":"","save":"","saveAs":"","load":"","getShareableLink":"","close":"","selectLanguage":"","scrollBackToContent":"","zoomIn":"","zoomOut":"","resetZoom":"","menu":"","done":"","edit":"","undo":"","redo":"","resetLibrary":"","createNewRoom":"","fullScreen":"","darkMode":"","lightMode":"","zenMode":"","exitZenMode":"","cancel":"","clear":"","remove":"","publishLibrary":"","submit":"","confirm":""},"alerts":{"clearReset":"【‼️ 警告 ‼️ 無法復原的動作】你確定要清空呢塊畫布嗎?","couldNotCreateShareableLink":"","couldNotCreateShareableLinkTooBig":"","couldNotLoadInvalidFile":"","importBackendFailed":"","cannotExportEmptyCanvas":"無嘢可以匯出喎~畫吓嘢先?","couldNotCopyToClipboard":"","decryptFailed":"","uploadedSecurly":"","loadSceneOverridePrompt":"","collabStopOverridePrompt":"","errorLoadingLibrary":"","errorAddingToLibrary":"","errorRemovingFromLibrary":"","confirmAddLibrary":"","imageDoesNotContainScene":"","cannotRestoreFromImage":"","invalidSceneUrl":"","resetLibrary":"","removeItemsFromsLibrary":"","invalidEncryptionKey":""},"errors":{"unsupportedFileType":"","imageInsertError":"","fileTooBig":"","svgImageInsertError":"","invalidSVGString":""},"toolBar":{"selection":"","image":"","rectangle":"","diamond":"","ellipse":"","arrow":"","line":"","freedraw":"","text":"","library":"","lock":"","penMode":"","link":""},"headings":{"canvasActions":"畫布動作","selectedShapeActions":"","shapes":""},"hints":{"canvasPanning":"","linearElement":"","freeDraw":"","text":"","text_selected":"","text_editing":"","linearElementMulti":"","lockAngle":"","resize":"","resizeImage":"","rotate":"","lineEditor_info":"","lineEditor_pointSelected":"","lineEditor_nothingSelected":"","placeImage":"","publishLibrary":"","bindTextToElement":"","deepBoxSelect":""},"canvasError":{"cannotShowPreview":"無法顯示預覽","canvasTooBig":"塊畫布太大啦,縮細啲先啦?","canvasTooBigTip":""},"errorSplash":{"headingMain_pre":"","headingMain_button":"","clearCanvasMessage":"如果重新整理頁面都係睇唔到,你可以","clearCanvasMessage_button":"清空畫布","clearCanvasCaveat":"(注意:呢個動作會直接丟棄你嘅作品,並且無法復原)","trackedToSentry_pre":"","trackedToSentry_post":"","openIssueMessage_pre":"","openIssueMessage_button":"","openIssueMessage_post":"","sceneContent":""},"roomDialog":{"desc_intro":"","desc_privacy":"","button_startSession":"","button_stopSession":"","desc_inProgressIntro":"","desc_shareLink":"","desc_exitSession":"","shareTitle":""},"errorDialog":{"title":""},"exportDialog":{"disk_title":"","disk_details":"","disk_button":"","link_title":"","link_details":"","link_button":"","excalidrawplus_description":"","excalidrawplus_button":"","excalidrawplus_exportError":""},"helpDialog":{"blog":"","click":"","deepSelect":"","deepBoxSelect":"","curvedArrow":"","curvedLine":"","documentation":"","doubleClick":"","drag":"","editor":"","editSelectedShape":"","github":"","howto":"","or":"","preventBinding":"","shapes":"","shortcuts":"","textFinish":"","textNewLine":"","title":"","view":"","zoomToFit":"","zoomToSelection":""},"clearCanvasDialog":{"title":""},"publishDialog":{"title":"","itemName":"","authorName":"","githubUsername":"","twitterUsername":"","libraryName":"","libraryDesc":"","website":"","placeholder":{"authorName":"","libraryName":"","libraryDesc":"","githubHandle":"","twitterHandle":"","website":""},"errors":{"required":"","website":""},"noteDescription":{"pre":"","link":"","post":""},"noteGuidelines":{"pre":"","link":"","post":""},"noteLicense":{"pre":"","link":"","post":""},"noteItems":"","atleastOneLibItem":""},"publishSuccessDialog":{"title":"","content":"","link":""},"confirmDialog":{"resetLibrary":"","removeItemsFromLib":""},"encrypted":{"tooltip":"","link":""},"stats":{"angle":"","element":"","elements":"","height":"","scene":"","selected":"","storage":"","title":"","total":"","version":"","versionCopy":"","versionNotAvailable":"","width":""},"toast":{"addedToLibrary":"","copyStyles":"","copyToClipboard":"","copyToClipboardAsPng":"","fileSaved":"","fileSavedToFilename":"","canvas":"畫布","selection":""},"colors":{"495057":"","ffffff":"","f8f9fa":"","f1f3f5":"","fff5f5":"","fff0f6":"","f8f0fc":"","f3f0ff":"","edf2ff":"","e7f5ff":"","e3fafc":"","e6fcf5":"","ebfbee":"","f4fce3":"","fff9db":"","fff4e6":"","transparent":"","ced4da":"","868e96":"","fa5252":"","e64980":"","be4bdb":"","7950f2":"","4c6ef5":"","228be6":"","15aabf":"","12b886":"","40c057":"","82c91e":"","fab005":"","fd7e14":"","000000":"","343a40":"","c92a2a":"","a61e4d":"","862e9c":"","5f3dc4":"","364fc7":"","1864ab":"","0b7285":"","087f5b":"","2b8a3e":"","5c940d":"","e67700":"","d9480f":""}}')},931:e=>{"use strict";e.exports=JSON.parse('{"labels":{"paste":"貼上","pasteCharts":"貼上圖表","selectAll":"全選","multiSelect":"將物件加入選取範圍","moveCanvas":"移動畫布","cut":"剪下","copy":"複製","copyAsPng":"複製 PNG 至剪貼簿","copyAsSvg":"複製 SVG 至剪貼簿","bringForward":"往前移一層","sendToBack":"移到最後面","bringToFront":"移到最前面","sendBackward":"往後移一層","delete":"刪除","copyStyles":"複製樣式","pasteStyles":"貼上樣式","stroke":"筆畫","background":"背景","fill":"填充","strokeWidth":"筆劃寬度","strokeStyle":"筆畫樣式","strokeStyle_solid":"實線","strokeStyle_dashed":"虛線","strokeStyle_dotted":"點線","sloppiness":"線條風格","opacity":"透明度","textAlign":"文字對齊","edges":"邊緣","sharp":"尖銳","round":"平滑","arrowheads":"箭頭","arrowhead_none":"無","arrowhead_arrow":"箭頭","arrowhead_bar":"塊","arrowhead_dot":"點","arrowhead_triangle":"三角形","fontSize":"字型大小","fontFamily":"字體","onlySelected":"僅選取物件","withBackground":"背景","exportEmbedScene":"嵌入場景","exportEmbedScene_details":"用於回復場景的場景資料會被包含在輸出的 PNG/SVG 檔案中。\\n會增加輸出的檔案大小。","addWatermark":"加上 \\"Made with Excalidraw\\"","handDrawn":"手寫","normal":"一般","code":"等寬","small":"小","medium":"中","large":"大","veryLarge":"特大","solid":"實心","hachure":"斜線筆觸","crossHatch":"交叉筆觸","thin":"細","bold":"粗","left":"左側","center":"置中","right":"右側","extraBold":"極粗","architect":"精確","artist":"藝術","cartoonist":"卡通","fileTitle":"檔案名稱","colorPicker":"色彩選擇工具","canvasBackground":"Canvas 背景","drawingCanvas":"繪圖 canvas","layers":"圖層","actions":"動作","language":"語言","liveCollaboration":"即時協作","duplicateSelection":"複製","untitled":"無標題","name":"名稱","yourName":"你的名稱","madeWithExcalidraw":"以 Excalidraw 製作","group":"建立群組","ungroup":"取消群組","collaborators":"協作者","showGrid":"顯示格線","addToLibrary":"加入資料庫","removeFromLibrary":"從資料庫中移除","libraryLoadingMessage":"資料庫讀取中…","libraries":"瀏覽資料庫","loadingScene":"場景讀取中…","align":"對齊","alignTop":"對齊頂部","alignBottom":"對齊底部","alignLeft":"對齊左側","alignRight":"對齊右側","centerVertically":"垂直置中","centerHorizontally":"水平置中","distributeHorizontally":"水平分布","distributeVertically":"垂直分布","flipHorizontal":"水平翻轉","flipVertical":"垂直翻轉","viewMode":"檢視模式","toggleExportColorScheme":"切換輸出配色","share":"共享","showStroke":"顯示線條檢色器","showBackground":"顯示背景檢色器","toggleTheme":"切換主題","personalLib":"個人資料庫","excalidrawLib":"Excalidraw 資料庫","decreaseFontSize":"縮小文字","increaseFontSize":"放大文字","unbindText":"取消綁定文字","link":{"edit":"編輯連結","create":"建立連結","label":"連結"}},"buttons":{"clearReset":"重置 canvas","exportJSON":"匯出至檔案","exportImage":"另存為圖片","export":"輸出","exportToPng":"輸出成 PNG","exportToSvg":"輸出成 SVG","copyToClipboard":"複製至剪貼簿","copyPngToClipboard":"複製 PNG 至剪貼簿","scale":"縮放比例","save":"儲存目前檔案","saveAs":"儲存為","load":"載入","getShareableLink":"取得共享連結","close":"關閉","selectLanguage":"選擇語言","scrollBackToContent":"捲動回到內容","zoomIn":"放大","zoomOut":"縮小","resetZoom":"重設縮放","menu":"選單","done":"完成","edit":"編輯","undo":"復原","redo":"重做","resetLibrary":"重設資料庫","createNewRoom":"建立新協作會議室","fullScreen":"全螢幕","darkMode":"深色模式","lightMode":"淺色模式","zenMode":"專注模式","exitZenMode":"離開專注模式","cancel":"取消","clear":"清除","remove":"刪除","publishLibrary":"發布","submit":"送出","confirm":"確認"},"alerts":{"clearReset":"這將會清除整個 canvas。你確定嗎?","couldNotCreateShareableLink":"無法建立共享連結。","couldNotCreateShareableLinkTooBig":"無法建立共享連結:場景太大","couldNotLoadInvalidFile":"無法讀取失效的檔案。","importBackendFailed":"後端讀取失敗。","cannotExportEmptyCanvas":"無法輸出空白的 canvas。","couldNotCopyToClipboard":"無法複製至剪貼簿。請使用 Chrome 瀏覽器再試試看。","decryptFailed":"無法解密資料。","uploadedSecurly":"上傳已通過 end-to-end 加密,Excalidraw 伺服器和第三方無法皆讀取其內容。","loadSceneOverridePrompt":"讀取外部圖樣將取代目前的內容。是否要繼續?","collabStopOverridePrompt":"停止連線將覆蓋您先前於本機儲存的繪圖進度,是否確認?\\n\\n(如要保留原有的本機繪圖進度,直接關閉瀏覽器分頁即可。)","errorLoadingLibrary":"載入第三方套件時出現錯誤。","errorAddingToLibrary":"無法於此資料庫加入項目","errorRemovingFromLibrary":"無法由此資料庫移除項目","confirmAddLibrary":"這將會將 {{numShapes}} 個圖形加入你的資料庫,你確定嗎?","imageDoesNotContainScene":"此圖檔中未包含場景資料。輸出檔案時是否有包含場景資料?","cannotRestoreFromImage":"無法由此檔案回復場景。","invalidSceneUrl":"無法由提供的 URL 匯入場景。可能是發生異常,或未包含有效的 Excalidraw JSON 資料。","resetLibrary":"這會清除您的資料庫,是否確定?","removeItemsFromsLibrary":"從資料庫刪除 {{count}} 項?","invalidEncryptionKey":"加密鍵必須為22字元。即時協作已停用。"},"errors":{"unsupportedFileType":"不支援的檔案類型。","imageInsertError":"無法插入圖片。請稍後再試…","fileTooBig":"檔案過大。可接受的最大尺寸為 {{maxSize}} 。","svgImageInsertError":"無法插入 SVG 圖片。此 SVG 檔案有問題。","invalidSVGString":"無效的 SVG。"},"toolBar":{"selection":"選取","image":"插入圖片","rectangle":"長方形","diamond":"菱形","ellipse":"橢圓","arrow":"箭頭","line":"線條","freedraw":"繪圖","text":"文字","library":"資料庫","lock":"可連續使用選取的工具","penMode":"停止使用手勢縮放並接受以繪圖筆繪圖輸入","link":"為所選的形狀增加\\b/更新連結"},"headings":{"canvasActions":"canvas 動作","selectedShapeActions":"選取圖形動作","shapes":"形狀"},"hints":{"canvasPanning":"若要移動畫布,請在拖曳時按住滑鼠滾輪或空白鍵","linearElement":"點擊以繪製多點曲線;或拖曳以繪製直線","freeDraw":"點擊並拖曳來繪圖,放開即結束","text":"提示:亦可使用選取工具在任何地方雙擊來加入文字","text_selected":"雙擊滑鼠或按 Enter 以編輯文字","text_editing":"按跳脫鍵或 Ctrl 或 Cmd + Enter 以結束編輯","linearElementMulti":"按下 Escape 或 Enter 以結束繪製","lockAngle":"按住 SHIFT 可限制旋轉角度","resize":"縮放時按住 Shift 可保持原比例縮放;\\\\n按住 Alt 可由中心點進行縮放","resizeImage":"按住 SHIFT 可任意縮放,按住 ALT 可由中央縮放。","rotate":"旋轉時按住 Shift 可限制旋轉角度","lineEditor_info":"雙擊滑鼠左鍵或按 Enter 來編輯控制點","lineEditor_pointSelected":"按下 Delete 可移除錨點;Ctrl 或 Cmd + D 可複製;或可拖曳來移動","lineEditor_nothingSelected":"選擇要編輯的錨點(按住 SHIFT 可多選),\\n或按住 Alt 並點擊以增加新錨點。","placeImage":"點擊以放置圖片,或點擊並拖曳以手動調整其尺寸。","publishLibrary":"發布個人資料庫","bindTextToElement":"按下 Enter 以加入文字。","deepBoxSelect":"按住 Ctrl 或 Cmd 以深度選取並避免拖曳"},"canvasError":{"cannotShowPreview":"無法顯示預覽","canvasTooBig":"畫布可能過大","canvasTooBigTip":"提示:可嘗試將最遠的元素移動至較集中的位置"},"errorSplash":{"headingMain_pre":"發生錯誤,嘗試","headingMain_button":"重新載入頁面。","clearCanvasMessage":"若重新載入仍無法解決問題,嘗試","clearCanvasMessage_button":"清除 canvas。","clearCanvasCaveat":"此動作將造成目前的作品被移除。","trackedToSentry_pre":"此錯誤與其識別碼","trackedToSentry_post":"將由系統記錄。","openIssueMessage_pre":"我們將謹慎處理,你的作品內容不會被包含在錯誤報告中。若你的作品不需保持私密,請考慮使用我們的","openIssueMessage_button":"bug tracker。","openIssueMessage_post":"請將下列資訊複製貼上至 GitHub issue 中。","sceneContent":"作品內容:"},"roomDialog":{"desc_intro":"你可以邀請其他人一起協作目前的作品。","desc_privacy":"連線使用 end-to-end 加密故無須擔心作品的安全性。即使是我們的伺服器也無法取得其內容。","button_startSession":"開始連線","button_stopSession":"停止連線","desc_inProgressIntro":"即時協作連線正在進行中。","desc_shareLink":"將此連結分享給欲協作的對象:","desc_exitSession":"停止連線將中斷你與協作會議室的連結,但你仍可於本機編輯此作品。意指停止連線後你的編輯不會被先前共同協作的人看見,且他們可繼續共同協作另一個版本。","shareTitle":"加入 Excalidraw 上的即時協作會議室"},"errorDialog":{"title":"錯誤"},"exportDialog":{"disk_title":"儲存至硬碟","disk_details":"將場景匯出為可供匯入之檔案","disk_button":"儲存至檔案","link_title":"可共享連結","link_details":"匯出為唯讀連結","link_button":"匯出為連結","excalidrawplus_description":"將此場景儲存至你的 Excalidraw+ 工作區","excalidrawplus_button":"輸出","excalidrawplus_exportError":"目前無法輸出至 Excalidraw+"},"helpDialog":{"blog":"閱讀部落格","click":"點擊","deepSelect":"深度選取","deepBoxSelect":"在容器內深度選取並避免拖曳","curvedArrow":"曲箭頭","curvedLine":"曲線","documentation":"文件","doubleClick":"雙擊","drag":"拖曳","editor":"編輯器","editSelectedShape":"編輯選定的形狀(文字/箭號/線條)","github":"發現異常?回報問題","howto":"參照我們的說明","or":"或","preventBinding":"避免箭號連結","shapes":"形狀","shortcuts":"鍵盤快速鍵","textFinish":"完成編輯(文字編輯器)","textNewLine":"換行(文字編輯器)","title":"說明","view":"檢視","zoomToFit":"放大至填滿畫面","zoomToSelection":"縮放至選取區"},"clearCanvasDialog":{"title":"清除畫布"},"publishDialog":{"title":"發布資料庫","itemName":"項目名稱","authorName":"作者名稱","githubUsername":"GitHub 帳號","twitterUsername":"Twitter 帳號","libraryName":"資料庫名稱","libraryDesc":"資料庫說明","website":"網站","placeholder":{"authorName":"您的名稱或帳號","libraryName":"您的資料庫名稱","libraryDesc":"提供您的資料庫說明以利他人理解其用途","githubHandle":"Github handle(選填),填寫後您可編輯已送出待審查的資料庫","twitterHandle":"Twitter 帳號(選填),填寫後若我們在 Twitter 推廣時可提及您","website":"您個人網站或其他網站的連結(選填)"},"errors":{"required":"必填","website":"請輸入有效的 URL"},"noteDescription":{"pre":"送出您的資料庫後將被包含於","link":"公開資料庫 repository","post":"以利他人在其繪圖中使用。"},"noteGuidelines":{"pre":"資料庫需先經人工審查。請閱讀","link":"說明文件","post":"再送出。若需溝通與修改時要透過 GitHub 帳號來進行,但並非強制需求。"},"noteLicense":{"pre":"送出即代表您同意此資料庫將發布時使用 ","link":"MIT 授權,","post":"簡單來說是指任何人都能不受限制的使用。"},"noteItems":"每個資料庫項目都有獨立的名稱故可篩選。會包含下列資料庫項目:","atleastOneLibItem":"請選擇至少一項資料庫項目"},"publishSuccessDialog":{"title":"資料庫已送出","content":"感謝 {{authorName}} 。您的資料庫已送出待審查。您可查看目前狀態","link":"在此"},"confirmDialog":{"resetLibrary":"重設資料庫","removeItemsFromLib":"從資料庫移除所選的項目"},"encrypted":{"tooltip":"你的作品已使用 end-to-end 方式加密,Excalidraw 的伺服器也無法取得其內容。","link":"Excalidraw 端到端加密的相關部落格文章"},"stats":{"angle":"角度","element":"元素","elements":"元素","height":"高度","scene":"場景","selected":"已選","storage":"儲存","title":"詳細統計","total":"合計","version":"版本","versionCopy":"點擊複製","versionNotAvailable":"無法取得版本","width":"寬度"},"toast":{"addedToLibrary":"加入資料庫","copyStyles":"已複製樣式","copyToClipboard":"複製至剪貼簿。","copyToClipboardAsPng":"以 PNG 格式將 {{exportSelection}} 複製至剪貼簿\\n({{exportColorScheme}})","fileSaved":"已儲存檔案。","fileSavedToFilename":"儲存為 {filename}","canvas":"畫布","selection":"已選項目"},"colors":{"495057":"灰 7","ffffff":"白","f8f9fa":"灰 0","f1f3f5":"灰 1","fff5f5":"紅 0","fff0f6":"粉紅 0","f8f0fc":"深紫 0","f3f0ff":"藍紫 0","edf2ff":"靛藍 0","e7f5ff":"藍 0","e3fafc":"青 0","e6fcf5":"藍綠 0","ebfbee":"綠 0","f4fce3":"黃綠 0","fff9db":"黃 0","fff4e6":"橘 0","transparent":"透明","ced4da":"灰 4","868e96":"灰 6","fa5252":"紅 6","e64980":"粉紅 6","be4bdb":"深紫 6","7950f2":"藍紫 6","4c6ef5":"靛藍 6","228be6":"藍 6","15aabf":"青 6","12b886":"藍綠 6","40c057":"綠 6","82c91e":"黃綠 6","fab005":"黃 6","fd7e14":"橘 6","000000":"黑","343a40":"灰 8","c92a2a":"紅 9","a61e4d":"粉紅 9","862e9c":"深紫 9","5f3dc4":"藍紫 9","364fc7":"靛藍 9","1864ab":"藍 9","0b7285":"青 9","087f5b":"藍綠 9","2b8a3e":"綠 9","5c940d":"黃綠 9","e67700":"黃 9","d9480f":"橘 9"}}')}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return a[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=a,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;if("object"==typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"==typeof a.then)return a}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&a;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>o[e]=()=>a[e]));return o.default=()=>a,n.d(i,o),i},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.e=()=>Promise.resolve(),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n(6340)})()}));
\ No newline at end of file
diff --git a/libraries/excalidraw/utils/excalidraw-utils.min.js.LICENSE.txt b/libraries/excalidraw/utils/excalidraw-utils.min.js.LICENSE.txt
deleted file mode 100644
index c915145cd7..0000000000
--- a/libraries/excalidraw/utils/excalidraw-utils.min.js.LICENSE.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
-
-/*
-object-assign
-(c) Sindre Sorhus
-@license MIT
-*/
-
-/*!
-
-pica
-https://github.com/nodeca/pica
-
-*/
-
-/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-
-/** @license React v0.20.2
- * scheduler.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-/** @license React v17.0.2
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-/** @license React v17.0.2
- * react-jsx-runtime.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-/** @license React v17.0.2
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-// @license © 2020 Google LLC. Licensed under the Apache License, Version 2.0.