Viewing File: /home/ubuntu/allinonecluster-landing/blog/wp-content/plugins/web-stories/assets/js/6527.js
(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[6527],{65197:(e,t,n)=>{"use strict";n.d(t,{default:()=>sprintf});var r=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function sprintf(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(r,(function(){var e,r,o,i,a;return e=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}},94184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},19662:(e,t,n)=>{var r=n(60614),o=n(66330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},19670:(e,t,n)=>{var r=n(70111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},68880:(e,t,n)=>{var r=n(19781),o=n(3070),i=n(79114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},47045:(e,t,n)=>{var r=n(56339),o=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},13072:(e,t,n)=>{var r=n(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},19781:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},80317:(e,t,n)=>{var r=n(17854),o=n(70111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},88113:(e,t,n)=>{var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(17854),a=n(88113),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},47293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},34374:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:(e,t,n)=>{var r=n(34374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},76530:(e,t,n)=>{var r=n(19781),o=n(92597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},1702:(e,t,n)=>{var r=n(34374),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},35005:(e,t,n)=>{var r=n(17854),o=n(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},58173:(e,t,n)=>{var r=n(19662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},17854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:(e,t,n)=>{var r=n(1702),o=n(47908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:e=>{e.exports={}},64664:(e,t,n)=>{var r=n(19781),o=n(47293),i=n(80317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},42788:(e,t,n)=>{var r=n(1702),o=n(60614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},29909:(e,t,n)=>{var r,o,i,a=n(68536),s=n(17854),u=n(1702),l=n(70111),c=n(68880),f=n(92597),d=n(5465),p=n(6200),h=n(3501),g="Object already initialized",v=s.TypeError,m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m),b=u(y.get),w=u(y.has),S=u(y.set);r=function(e,t){if(w(y,e))throw new v(g);return t.facade=e,S(y,e,t),t},o=function(e){return b(y,e)||{}},i=function(e){return w(y,e)}}else{var x=p("state");h[x]=!0,r=function(e,t){if(f(e,x))throw new v(g);return t.facade=e,c(e,x,t),t},o=function(e){return f(e,x)?e[x]:{}},i=function(e){return f(e,x)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},60614:e=>{e.exports=function(e){return"function"==typeof e}},70111:(e,t,n)=>{var r=n(60614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},31913:e=>{e.exports=!1},52190:(e,t,n)=>{var r=n(35005),o=n(60614),i=n(47976),a=n(43307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},56339:(e,t,n)=>{var r=n(47293),o=n(60614),i=n(92597),a=n(19781),s=n(76530).CONFIGURABLE,u=n(42788),l=n(29909),c=l.enforce,f=l.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&f(this).source||u(this)}),"toString")},30133:(e,t,n)=>{var r=n(7392),o=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},68536:(e,t,n)=>{var r=n(17854),o=n(60614),i=n(42788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},47976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},92140:(e,t,n)=>{var r=n(46916),o=n(60614),i=n(70111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},67066:(e,t,n)=>{"use strict";var r=n(19670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},84488:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},6200:(e,t,n)=>{var r=n(72309),o=n(69711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(17854),o=n(13072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},72309:(e,t,n)=>{var r=n(31913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},47908:(e,t,n)=>{var r=n(84488),o=Object;e.exports=function(e){return o(r(e))}},57593:(e,t,n)=>{var r=n(46916),o=n(70111),i=n(52190),a=n(58173),s=n(92140),u=n(5112),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},34948:(e,t,n)=>{var r=n(57593),o=n(52190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},66330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},69711:(e,t,n)=>{var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},43307:(e,t,n)=>{var r=n(30133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{var r=n(19781),o=n(47293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:(e,t,n)=>{var r=n(17854),o=n(72309),i=n(92597),a=n(69711),s=n(30133),u=n(43307),l=o("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&i(c,e)?l[e]=c[e]:l[e]=u&&f?f(t):d(t)}return l[e]}},92087:(e,t,n)=>{var r=n(17854),o=n(19781),i=n(47045),a=n(67066),s=n(47293),u=r.RegExp,l=u.prototype;o&&s((function(){var e=!0;try{u(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(l,"flags").get.call(t)!==r||n!==r}))&&i(l,"flags",{configurable:!0,get:a})},43832:(e,t)=>{var n;function Tokenizer(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function CSSJanus(){var e="(?:[0-9]*\\.[0-9]+|[0-9]+)",t="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",n="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",r="(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+n+")",o=e+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))*)?",i="((?:-?"+o+")|(?:inherit|auto))",a="(#?"+r+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",s="(?:[!#$%&*-~]|[^\\u0020-\\u007e]|"+n+")*?",u="(?!("+r+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'])*?{)",l="(?!"+s+"['\"]?\\s*\\))",c="(?="+s+"['\"]?\\s*\\))",f="(\\s*(?:!important\\s*)?[;}])",d=new RegExp("`TMP`","g"),p=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),h=new RegExp("("+t+u+"[^;}]+;?)","gi"),g=new RegExp("("+t+"[^\\}]*?})","gi"),v=new RegExp("(direction\\s*:\\s*)ltr","gi"),m=new RegExp("(direction\\s*:\\s*)rtl","gi"),y=new RegExp("(^|[^a-zA-Z])(left)(?![a-zA-Z])"+l+u,"gi"),b=new RegExp("(^|[^a-zA-Z])(right)(?![a-zA-Z])"+l+u,"gi"),w=new RegExp("(^|[^a-zA-Z])(left)"+c,"gi"),S=new RegExp("(^|[^a-zA-Z])(right)"+c,"gi"),x=new RegExp("(^|[^a-zA-Z])(ltr)"+c,"gi"),_=new RegExp("(^|[^a-zA-Z])(rtl)"+c,"gi"),E=new RegExp("(^|[^a-zA-Z])([ns]?)e-resize","gi"),k=new RegExp("(^|[^a-zA-Z])([ns]?)w-resize","gi"),C=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+i+"(\\s+)"+i+"(\\s+)"+i+"(\\s+)"+i+f,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+a+"(\\s+)"+a+"(\\s+)"+a+"(\\s+)"+a+f,"gi"),M=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+o+")","gi"),D=new RegExp("(background-position-x\\s*:\\s*)(-?"+e+"%)","gi"),T=new RegExp("(border-radius\\s*:\\s*)"+i+"(?:(?:\\s+"+i+")(?:\\s+"+i+")?(?:\\s+"+i+")?)?(?:(?:(?:\\s*\\/\\s*)"+i+")(?:\\s+"+i+")?(?:\\s+"+i+")?(?:\\s+"+i+")?)?"+f,"gi"),P=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+i,"gi"),R=new RegExp("(text-shadow\\s*:\\s*)"+i+"(\\s*)"+a,"gi"),I=new RegExp("(text-shadow\\s*:\\s*)"+a+"(\\s*)"+i,"gi"),A=new RegExp("(text-shadow\\s*:\\s*)"+i,"gi"),N=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+i+"(\\s*\\))","gi"),L=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,2}\\s*\\))","gi");function B(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function F(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function z(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?F(r)+" / "+F(o):F(r))+i}function j(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+j(n)}function U(e,t,n,r,o){return t+n+j(r)+o}function q(e,t,n,r,o){return t+n+r+j(o)}return{transform:function(e,t){var n=new Tokenizer(h,"`NOFLIP_SINGLE`"),r=new Tokenizer(g,"`NOFLIP_CLASS`"),o=new Tokenizer(p,"`COMMENT`");return e=o.tokenize(r.tokenize(n.tokenize(e.replace("`","%60")))),t.transformDirInUrl&&(e=e.replace(x,"$1`TMP`").replace(_,"$1ltr").replace(d,"rtl")),t.transformEdgeInUrl&&(e=e.replace(w,"$1`TMP`").replace(S,"$1left").replace(d,"right")),e=e.replace(v,"$1`TMP`").replace(m,"$1ltr").replace(d,"rtl").replace(y,"$1`TMP`").replace(b,"$1left").replace(d,"right").replace(E,"$1$2`TMP`").replace(k,"$1$2e-resize").replace(d,"w-resize").replace(T,z).replace(P,K).replace(R,q).replace(I,q).replace(A,K).replace(N,U).replace(L,U).replace(C,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(M,B).replace(D,B),e=n.detokenize(r.detokenize(o.detokenize(e)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)},87394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default},88609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},46420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)({},e)};var r,o=(r=n(88609))&&r.__esModule?r:{default:r};e.exports=t.default},97561:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(82512))&&r.__esModule?r:{default:r}).default;t.default=o,e.exports=t.default},98729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};var n={}},52084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(21603)),o=c(n(91354)),i=c(n(81370)),a=c(n(60623)),s=c(n(66226)),u=c(n(87394)),l=c(n(62699));function c(e){return e&&e.__esModule?e:{default:e}}var f="midnight",d="noon",p="morning",h="afternoon",g="evening",v="night";function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+(0,u.default)(i,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+(0,u.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+(0,u.default)(Math.floor(o/60),2)+n+(0,u.default)(o%60,2)}var w={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return l.default.y(e,t)},Y:function(e,t,n,r){var o=(0,s.default)(e,r),i=o>0?o:1-o;if("YY"===t){var a=i%100;return(0,u.default)(a,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,u.default)(i,t.length)},R:function(e,t){var n=(0,i.default)(e);return(0,u.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,u.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,u.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,u.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return l.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,u.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,a.default)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,u.default)(o,t.length)},I:function(e,t,n){var r=(0,o.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,u.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):l.default.d(e,t)},D:function(e,t,n){var o=(0,r.default)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,u.default)(o,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,u.default)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,u.default)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,u.default)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?d:0===o?f:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?g:o>=12?h:o>=4?p:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return l.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):l.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):l.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):l.default.s(e,t)},S:function(e,t){return l.default.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return y(o);case"XXXX":case"XX":return b(o);default:return b(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(o);case"xxxx":case"xx":return b(o);default:return b(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(o,":");default:return"GMT"+b(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(o,":");default:return"GMT"+b(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,i=Math.floor(o.getTime()/1e3);return(0,u.default)(i,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,u.default)(o,t.length)}};t.default=w,e.exports=t.default},62699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(87394))&&r.__esModule?r:{default:r};var i={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,o.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,o.default)(n+1,2)},d:function(e,t){return(0,o.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,o.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,o.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,o.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,o.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,o.default)(i,t.length)}};t.default=i,e.exports=t.default},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.default=o,e.exports=t.default},93561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},21603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),s=n-i;return Math.floor(s/a)+1};var r=i(n(71171)),o=i(n(68734));function i(e){return e&&e.__esModule?e:{default:e}}var a=864e5;e.exports=t.default},91354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,r.default)(e),n=(0,o.default)(t).getTime()-(0,i.default)(t).getTime();return Math.round(n/u)+1};var r=s(n(71171)),o=s(n(80079)),i=s(n(94275)),a=s(n(68734));function s(e){return e&&e.__esModule?e:{default:e}}var u=6048e5;e.exports=t.default},81370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,i.default)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var l=(0,i.default)(u);return t.getTime()>=s.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1};var r=a(n(71171)),o=a(n(68734)),i=a(n(80079));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},60623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,r.default)(e),s=(0,o.default)(n,t).getTime()-(0,i.default)(n,t).getTime();return Math.round(s/u)+1};var r=s(n(71171)),o=s(n(69209)),i=s(n(34118)),a=s(n(68734));function s(e){return e&&e.__esModule?e:{default:e}}var u=6048e5;e.exports=t.default},66226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,u,l,c,f,d,p,h;(0,o.default)(1,arguments);var g=(0,r.default)(e),v=g.getUTCFullYear(),m=(0,s.getDefaultOptions)(),y=(0,a.default)(null!==(n=null!==(u=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==u?u:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,i.default)(b,t),S=new Date(0);S.setUTCFullYear(v,0,y),S.setUTCHours(0,0,0,0);var x=(0,i.default)(S,t);return g.getTime()>=w.getTime()?v+1:g.getTime()>=x.getTime()?v:v-1};var r=u(n(71171)),o=u(n(68734)),i=u(n(69209)),a=u(n(82084)),s=n(98729);function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},56736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},68734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},80079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=1,n=(0,r.default)(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n};var r=i(n(71171)),o=i(n(68734));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},94275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=(0,o.default)(n);return a};var r=a(n(81370)),o=a(n(80079)),i=a(n(68734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},69209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,s,u,l,c,f,d,p;(0,o.default)(1,arguments);var h=(0,a.getDefaultOptions)(),g=(0,i.default)(null!==(n=null!==(s=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==s?s:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),m=v.getUTCDay(),y=(m<g?7:0)+m-g;return v.setUTCDate(v.getUTCDate()-y),v.setUTCHours(0,0,0,0),v};var r=s(n(71171)),o=s(n(68734)),i=s(n(82084)),a=n(98729);function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},34118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,u,l,c,f,d,p,h;(0,o.default)(1,arguments);var g=(0,s.getDefaultOptions)(),v=(0,a.default)(null!==(n=null!==(u=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:g.firstWeekContainsDate)&&void 0!==u?u:null===(p=g.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),m=(0,r.default)(e,t),y=new Date(0);y.setUTCFullYear(m,0,v),y.setUTCHours(0,0,0,0);var b=(0,i.default)(y,t);return b};var r=u(n(66226)),o=u(n(68734)),i=u(n(69209)),a=u(n(82084)),s=n(98729);function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},82084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},5065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e).getTime(),a=(0,r.default)(t);return new Date(n+a)};var r=a(n(82084)),o=a(n(71171)),i=a(n(68734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},8958:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const o=function(e,t,n){var o,i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?f(u,(function(e){return e.test(s)})):c(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(l):l,a=n.valueCallback?n.valueCallback(a):a;var d=t.slice(s.length);return{value:a,rest:d}}}function c(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function f(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var d;const p={code:"en-US",formatDistance:o,formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:u({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:u({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],o=e.match(d.parsePattern);if(!o)return null;var i=d.valueCallback?d.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:(e,t,n)=>{"use strict";n.d(t,{getDefaultOptions:()=>o});var r={};function o(){return r}},24262:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{default:()=>r})},13882:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{default:()=>r})},83946:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{default:()=>r})},51820:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(83946),o=n(19013),i=n(13882);function a(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(e).getTime(),a=(0,r.default)(t);return new Date(n+a)}},83285:(e,t,n)=>{"use strict";n.d(t,{default:()=>G});var r=n(49599),o=n(51820),i=n(13882),a=n(83946);function s(e,t){(0,i.default)(2,arguments);var n=(0,a.default)(t);return(0,o.default)(e,-n)}var u=n(19013),l=864e5;function c(e){(0,i.default)(1,arguments);var t=1,n=(0,u.default)(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function f(e){(0,i.default)(1,arguments);var t=(0,u.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=c(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var s=c(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function d(e){(0,i.default)(1,arguments);var t=f(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=c(n);return r}var p=6048e5;var h=n(84314);function g(e,t){var n,r,o,s,l,c,f,d;(0,i.default)(1,arguments);var p=(0,h.getDefaultOptions)(),g=(0,a.default)(null!==(n=null!==(r=null!==(o=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==r?r:null===(f=p.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,u.default)(e),m=v.getUTCDay(),y=(m<g?7:0)+m-g;return v.setUTCDate(v.getUTCDate()-y),v.setUTCHours(0,0,0,0),v}function v(e,t){var n,r,o,s,l,c,f,d;(0,i.default)(1,arguments);var p=(0,u.default)(e),v=p.getUTCFullYear(),m=(0,h.getDefaultOptions)(),y=(0,a.default)(null!==(n=null!==(r=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(l=t.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==r?r:null===(f=m.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,y),b.setUTCHours(0,0,0,0);var w=g(b,t),S=new Date(0);S.setUTCFullYear(v,0,y),S.setUTCHours(0,0,0,0);var x=g(S,t);return p.getTime()>=w.getTime()?v+1:p.getTime()>=x.getTime()?v:v-1}function m(e,t){var n,r,o,s,u,l,c,f;(0,i.default)(1,arguments);var d=(0,h.getDefaultOptions)(),p=(0,a.default)(null!==(n=null!==(r=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),m=v(e,t),y=new Date(0);y.setUTCFullYear(m,0,p),y.setUTCHours(0,0,0,0);var b=g(y,t);return b}var y=6048e5;function b(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const w={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return b("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):b(n+1,2)},d:function(e,t){return b(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return b(e.getUTCHours()%12||12,t.length)},H:function(e,t){return b(e.getUTCHours(),t.length)},m:function(e,t){return b(e.getUTCMinutes(),t.length)},s:function(e,t){return b(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return b(Math.floor(r*Math.pow(10,n-3)),t.length)}};var S="midnight",x="noon",_="morning",E="afternoon",k="evening",C="night";function O(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+b(i,2)}function M(e,t){return e%60==0?(e>0?"-":"+")+b(Math.abs(e)/60,2):D(e,t)}function D(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+b(Math.floor(o/60),2)+n+b(o%60,2)}const T={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return w.y(e,t)},Y:function(e,t,n,r){var o=v(e,r),i=o>0?o:1-o;return"YY"===t?b(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):b(i,t.length)},R:function(e,t){return b(f(e),t.length)},u:function(e,t){return b(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return w.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){(0,i.default)(1,arguments);var n=(0,u.default)(e),r=g(n,t).getTime()-m(n,t).getTime();return Math.round(r/y)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):b(o,t.length)},I:function(e,t,n){var r=function(e){(0,i.default)(1,arguments);var t=(0,u.default)(e),n=c(t).getTime()-d(t).getTime();return Math.round(n/p)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):b(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):w.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.default)(1,arguments);var t=(0,u.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return b(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return b(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return b(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?x:0===o?S:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?k:o>=12?E:o>=4?_:C,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return w.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):w.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):w.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):w.s(e,t)},S:function(e,t){return w.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return M(o);case"XXXX":case"XX":return D(o);default:return D(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return M(o);case"xxxx":case"xx":return D(o);default:return D(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+O(o,":");default:return"GMT"+D(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+O(o,":");default:return"GMT"+D(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return b(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return b((r._originalDate||e).getTime(),t.length)}};var P=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},R=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const I={p:R,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return P(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",P(o,t)).replace("{{time}}",R(i,t))}};var A=n(24262),N=["D","DD"],L=["YY","YYYY"];function B(e){return-1!==N.indexOf(e)}function F(e){return-1!==L.indexOf(e)}function z(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var j=n(8958),K=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q=/^'([^]*?)'?$/,W=/''/g,H=/[a-zA-Z]/;function G(e,t,n){var o,l,c,f,d,p,g,v,m,y,b,w,S,x,_,E,k,C;(0,i.default)(2,arguments);var O=String(t),M=(0,h.getDefaultOptions)(),D=null!==(o=null!==(l=null==n?void 0:n.locale)&&void 0!==l?l:M.locale)&&void 0!==o?o:j.default,P=(0,a.default)(null!==(c=null!==(f=null!==(d=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n||null===(g=n.locale)||void 0===g||null===(v=g.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==d?d:M.firstWeekContainsDate)&&void 0!==f?f:null===(m=M.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==c?c:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=(0,a.default)(null!==(b=null!==(w=null!==(S=null!==(x=null==n?void 0:n.weekStartsOn)&&void 0!==x?x:null==n||null===(_=n.locale)||void 0===_||null===(E=_.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==S?S:M.weekStartsOn)&&void 0!==w?w:null===(k=M.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var N=(0,u.default)(e);if(!(0,r.default)(N))throw new RangeError("Invalid time value");var L=(0,A.default)(N),q=s(N,L),W={firstWeekContainsDate:P,weekStartsOn:R,locale:D,_originalDate:N},G=O.match(U).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,I[t])(e,D.formatLong):e})).join("").match(K).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return Y(r);var i=T[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!F(r)||z(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!B(r)||z(r,t,String(e)),i(q,r,D.localize,W);if(o.match(H))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return G}function Y(e){var t=e.match(q);return t?t[1].replace(W,"'"):e}},30890:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(19013),o=n(13882);function i(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=t.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}},56491:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(19013),o=n(13882);function i(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return n%400==0||n%4==0&&n%100!=0}},49599:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(13882);function o(e){return(0,r.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}var i=n(19013);function a(e){if((0,r.default)(1,arguments),!o(e)&&"number"!=typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},19013:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(13882);function o(e){(0,r.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},15616:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var h,m,y,S,x,_,E,k,C,O,M,D,T,P,R,I,A,N;(0,f.default)(2,arguments);var L=String(t),B=(0,d.getDefaultOptions)(),F=null!==(h=null!==(m=null==n?void 0:n.locale)&&void 0!==m?m:B.locale)&&void 0!==h?h:p.default,z=(0,c.default)(null!==(y=null!==(S=null!==(x=null!==(_=null==n?void 0:n.firstWeekContainsDate)&&void 0!==_?_:null==n||null===(E=n.locale)||void 0===E||null===(k=E.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==x?x:B.firstWeekContainsDate)&&void 0!==S?S:null===(C=B.locale)||void 0===C||null===(O=C.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==y?y:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=(0,c.default)(null!==(M=null!==(D=null!==(T=null!==(P=null==n?void 0:n.weekStartsOn)&&void 0!==P?P:null==n||null===(R=n.locale)||void 0===R||null===(I=R.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==T?T:B.weekStartsOn)&&void 0!==D?D:null===(A=B.locale)||void 0===A||null===(N=A.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==M?M:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var K=(0,i.default)(e);if(!(0,r.default)(K))throw new RangeError("Invalid time value");var U=(0,u.default)(K),q=(0,o.default)(K,U),W={firstWeekContainsDate:z,weekStartsOn:j,locale:F,_originalDate:K},H=L.match(v).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,F.formatLong):e})).join("").match(g).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return w(r);var i=a.default[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!(0,l.isProtectedWeekYearToken)(r)||(0,l.throwProtectedError)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,l.isProtectedDayOfYearToken)(r)||(0,l.throwProtectedError)(r,t,String(e)),i(q,r,F.localize,W);if(o.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return H};var r=h(n(39989)),o=h(n(33239)),i=h(n(71171)),a=h(n(52084)),s=h(n(95209)),u=h(n(93561)),l=n(56736),c=h(n(82084)),f=h(n(68734)),d=n(98729),p=h(n(97561));function h(e){return e&&e.__esModule?e:{default:e}}var g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function w(e){var t=e.match(m);return t?t[1].replace(y,"'"):e}e.exports=t.default},62382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)};var r,o=(r=n(68734))&&r.__esModule?r:{default:r};e.exports=t.default},39989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(1,arguments),!(0,r.default)(e)&&"number"!=typeof e)return!1;var t=(0,o.default)(e);return!isNaN(Number(t))};var r=a(n(62382)),o=a(n(71171)),i=a(n(68734));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},20289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}},e.exports=t.default},16245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},95927:(e,t)=>{"use strict";function n(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function r(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;var u,l=s[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?r(c,(function(e){return e.test(l)})):n(c,(function(e){return e.test(l)}));u=e.valueCallback?e.valueCallback(f):f,u=o.valueCallback?o.valueCallback(u):u;var d=t.slice(l.length);return{value:u,rest:d}}},e.exports=t.default},78926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}},e.exports=t.default},71924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,r){var o,i=n[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};t.default=r,e.exports=t.default},95062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(20289))&&r.__esModule?r:{default:r};var i={date:(0,o.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},5102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(e,t,r,o){return n[e]};t.default=r,e.exports=t.default},87839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(16245))&&r.__esModule?r:{default:r};var i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,o.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,o.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,o.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},9796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(95927));function o(e){return e&&e.__esModule?e:{default:e}}var i={ordinalNumber:(0,o(n(78926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=i,e.exports=t.default},82512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(71924)),o=u(n(95062)),i=u(n(5102)),a=u(n(87839)),s=u(n(9796));function u(e){return e&&e.__esModule?e:{default:e}}var l={code:"en-US",formatDistance:r.default,formatLong:o.default,formatRelative:i.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=l,e.exports=t.default},33239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,i.default)(t);return(0,r.default)(e,-n)};var r=a(n(5065)),o=a(n(68734)),i=a(n(82084));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},71171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var r,o=(r=n(68734))&&r.__esModule?r:{default:r};e.exports=t.default},46276:(e,t,n)=>{"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,{stateToHTML:()=>F});const u=function(e,t){if(null==e)return t;for(var n=s(t,2),o=n[0],a=n[1],u=i({},o),l=r(a),c=0,f=Object.keys(e);c<f.length;c++){var d=f[c];if(o.hasOwnProperty(d)){var p=o[d];u[d]=i({},p,{},e[d])}else u[d]=e[d],l.push(d)}return[u,l]};var l={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};const helpers_normalizeAttributes=function(e){if(null==e)return e;for(var t={},n=!1,r=0,o=Object.keys(e);r<o.length;r++){var i=o[r],a=i;l.hasOwnProperty(i)&&(a=l[i],n=!0),t[a]=e[i]}return n?t:e};var c=/^(moz|ms|o|webkit)-/,f=/^\d+$/,d=/([A-Z])/g,p={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!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};const h=function(e){return Object.keys(e).map((function(t){var n=function(e,t){var n;return"string"==typeof t?n=f.test(t):(n=!0,t=String(t)),n&&"0"!==t&&!0!==p[e]?t+"px":t}(t,e[t]),r=function(e){return e.replace(d,"-$1").toLowerCase().replace(c,"-$1-")}(t);return"".concat(r,": ").concat(n)})).join("; ")};var g,v,m,y=n(25134);function b(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function stateToHTML_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(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 _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=y.INLINE_STYLE.BOLD,k=y.INLINE_STYLE.CODE,C=y.INLINE_STYLE.ITALIC,O=y.INLINE_STYLE.STRIKETHROUGH,M=y.INLINE_STYLE.UNDERLINE,D="<br>",T=/^data-([a-z0-9-]+)$/,P=(_(g={},E,{element:"strong"}),_(g,k,{element:"code"}),_(g,C,{element:"em"}),_(g,O,{element:"del"}),_(g,M,{element:"u"}),g),R=[E,C,M,O,k],I=(_(v={},y.ENTITY_TYPE.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),_(v,y.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),v),A=(_(m={},y.ENTITY_TYPE.LINK,(function(e,t){for(var n=I.hasOwnProperty(e)?I[e]:{},r=t.getData(),o={},i=0,a=Object.keys(r);i<a.length;i++){var s=a[i],u=r[s];if(n.hasOwnProperty(s))o[n[s]]=u;else T.test(s)&&(o[s]=u)}return o})),_(m,y.ENTITY_TYPE.IMAGE,(function(e,t){for(var n=I.hasOwnProperty(e)?I[e]:{},r=t.getData(),o={},i=0,a=Object.keys(r);i<a.length;i++){var s=a[i],u=r[s];if(n.hasOwnProperty(s))o[n[s]]=u;else T.test(s)&&(o[s]=u)}return o})),m);function N(e,t){switch(e){case y.BLOCK_TYPE.HEADER_ONE:return["h1"];case y.BLOCK_TYPE.HEADER_TWO:return["h2"];case y.BLOCK_TYPE.HEADER_THREE:return["h3"];case y.BLOCK_TYPE.HEADER_FOUR:return["h4"];case y.BLOCK_TYPE.HEADER_FIVE:return["h5"];case y.BLOCK_TYPE.HEADER_SIX:return["h6"];case y.BLOCK_TYPE.UNORDERED_LIST_ITEM:case y.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case y.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case y.BLOCK_TYPE.CODE:return["pre","code"];case y.BLOCK_TYPE.ATOMIC:return["figure"];default:return null===t?[]:[t||"p"]}}var L=function(){function MarkupGenerator(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MarkupGenerator),_(this,"blocks",void 0),_(this,"contentState",void 0),_(this,"currentBlock",void 0),_(this,"indentLevel",void 0),_(this,"output",void 0),_(this,"totalBlocks",void 0),_(this,"wrapperTag",void 0),_(this,"options",void 0),_(this,"inlineStyles",void 0),_(this,"inlineStyleFn",void 0),_(this,"styleOrder",void 0),null==t&&(t={}),this.contentState=e,this.options=t;var n=S(u(t.inlineStyles,[P,R]),2),r=n[0],o=n[1];this.inlineStyles=r,this.inlineStyleFn=t.inlineStyleFn,this.styleOrder=o}var e,t,n;return e=MarkupGenerator,(t=[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var e=this.options,t=e.blockRenderers,n=e.defaultBlockTag,r=this.blocks[this.currentBlock],o=r.getType(),i=function(e){switch(e){case y.BLOCK_TYPE.UNORDERED_LIST_ITEM:return"ul";case y.BLOCK_TYPE.ORDERED_LIST_ITEM:return"ol";default:return null}}(o);this.wrapperTag!==i&&(this.wrapperTag&&this.closeWrapperTag(),i&&this.openWrapperTag(i)),this.indent();var a=null!=t&&t.hasOwnProperty(o)?t[o]:null,s=a?a(r):null;if(null!=s)return this.output.push(s),this.output.push("\n"),void(this.currentBlock+=1);this.writeStartTag(r,n),this.output.push(this.renderBlockContent(r));var u=this.getNextBlock();if(function(e){switch(e){case y.BLOCK_TYPE.UNORDERED_LIST_ITEM:case y.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(o)&&u&&u.getDepth()===r.getDepth()+1){this.output.push("\n");var l=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(u.getDepth()),this.wrapperTag=l,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(r,n)}},{key:"processBlocksAtDepth",value:function(e){for(var t=this.blocks[this.currentBlock];t&&t.getDepth()===e;)this.processBlock(),t=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(e,t){var n,r=N(e.getType(),t);if(this.options.blockStyleFn){var o=this.options.blockStyleFn(e)||{},i=o.attributes,a=o.style;if(i=helpers_normalizeAttributes(i),null!=a){var s=h(a);i=null==i?{style:s}:w({},i,{style:s})}n=B(i)}else n="";var u=!0,l=!1,c=void 0;try{for(var f,d=r[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value;this.output.push("<".concat(p).concat(n,">"))}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}}},{key:"writeEndTag",value:function(e,t){var n=N(e.getType(),t);if(1===n.length)this.output.push("</".concat(n[0],">\n"));else{var r=[],o=!0,i=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value;r.unshift("</".concat(l,">"))}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}this.output.push(r.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<".concat(e,">\n")),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("</".concat(e,">\n")),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"withCustomInlineStyles",value:function(e,t){if(!this.inlineStyleFn)return e;var n=this.inlineStyleFn(t);if(!n)return e;var r=n.element,o=void 0===r?"span":r,i=n.attributes,a=n.style,s=B(w({},i,{style:a&&h(a)}));return"<".concat(o).concat(s,">").concat(e,"</").concat(o,">")}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return D;r=this.preserveWhitespace(r);var o=e.getCharacterList();return(0,y.getEntityRanges)(r,o).map((function(e){var r,o=S(e,2),i=o[0],a=o[1].map((function(e){var r=S(e,2),o=r[0],i=r[1],a=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split(" ").join(" ").split("\n").join("<br>\n")}(o),s=!0,u=!1,l=void 0;try{for(var c,f=t.styleOrder[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var d=c.value;if((d!==k||n!==y.BLOCK_TYPE.CODE)&&i.has(d)){var p=t.inlineStyles[d],g=p.element,v=p.attributes,m=p.style;if(null==g&&(g="span"),v=helpers_normalizeAttributes(v),null!=m){var b=h(m);v=null==v?{style:b}:w({},v,{style:b})}var x=B(v);a="<".concat(g).concat(x,">").concat(a,"</").concat(g,">")}}}catch(e){u=!0,l=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw l}}return t.withCustomInlineStyles(a,i)})).join(""),s=i?t.contentState.getEntity(i):null,u=null==s?null:s.getType().toUpperCase();if(null!=s&&t.options.entityStyleFn&&(r=t.options.entityStyleFn(s))){var l=r,c=l.element,f=l.attributes,d=l.style;if(null==c&&(c="span"),f=helpers_normalizeAttributes(f),null!=d){var p=h(d);f=null==f?{style:p}:w({},f,{style:p})}var g=B(f);return"<".concat(c).concat(g,">").concat(a,"</").concat(c,">")}if(null!=u&&u===y.ENTITY_TYPE.LINK){var v=B(A.hasOwnProperty(u)?A[u](u,s):null);return"<a".concat(v,">").concat(a,"</a>")}if(null!=u&&u===y.ENTITY_TYPE.IMAGE){var m=B(A.hasOwnProperty(u)?A[u](u,s):null);return"<img".concat(m,"/>")}return a})).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)" "!==e[r]||0!==r&&r!==t-1&&" "!==e[r-1]?n[r]=e[r]:n[r]=" ";return n.join("")}}])&&x(e.prototype,t),n&&x(e,n),MarkupGenerator}();function B(e){if(null==e)return"";for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],i=e[o];null!=i&&t.push(" ".concat(o,'="').concat((i+"").split("&").join("&").split("<").join("<").split(">").join(">").split('"').join("""),'"'))}return t.join("")}function F(e,t){return new L(e,t).generate()}},19225:(e,t,n)=>{"use strict";function r(e,t,n){for(var r=e.text,i=e.characterMeta,a=t.length,s=n.length,u=[],l=i.slice(0,0),c=0,f=r.indexOf(t);-1!==f;)u.push(r.slice(c,f)+n),l=l.concat(i.slice(c,f),o(i.slice(f,f+1),s)),c=f+a,f=r.indexOf(t,c);return u.push(r.slice(c)),l=l.concat(i.slice(c)),{text:u.join(""),characterMeta:l}}function o(e,t){for(var n=e.slice(0,0);t-- >0;)n=n.concat(e);return n}n.d(t,{stateFromHTML:()=>P});var i=n(9041),a=n(43393),s=n(25134);var u={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},l={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},c={img:1};function f(e){return f="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},f(e)}function d(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=/^data:/i,m=(0,a.OrderedSet)(),y=new i.ContentBlock({key:(0,i.genKey)(),text:"",type:s.BLOCK_TYPE.UNSTYLED,characterList:(0,a.List)(),depth:0}),b=/(\r\n|\r|\n)/g,w="\r",S=/^data-([a-z0-9-]+)$/,x={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt",width:"width",height:"height"}},_=function(e,t){var n={};if(x.hasOwnProperty(e))for(var r=x[e],o=0;o<t.attributes.length;o++){var i=t.attributes[o],a=i.name,s=i.value;if("string"==typeof s){var u=s;if(r.hasOwnProperty(a))n[r[a]]=u;else S.test(a)&&(n[a]=u)}}return n},E={a:function(e,t,n){var r,o=_(t,n);if(null!=(r=o.url)&&!r.match(v))return e.createEntity(s.ENTITY_TYPE.LINK,o)},img:function(e,t,n){var r=_(t,n);if(null!=r.src)return e.createEntity(s.ENTITY_TYPE.IMAGE,r)}},k=function(){function ContentGenerator(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,ContentGenerator),g(this,"contentStateForEntities",void 0),g(this,"blockStack",void 0),g(this,"blockList",void 0),g(this,"depth",void 0),g(this,"options",void 0),g(this,"inlineCreators",{Style:function(e){function Style(t){return e.apply(this,arguments)}return Style.toString=function(){return e.toString()},Style}((function(e){return{type:"STYLE",style:e}})),Entity:function Entity(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:e.createEntity(t,C(n),r)}}}),this.options=t,this.contentStateForEntities=i.ContentState.createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}var e,t,n;return e=ContentGenerator,t=[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach((function(e){var n=function(e){var t="",n=(0,a.Seq)();return e.forEach((function(e){t+=e.text,n=n.concat(e.characterMeta)})),{text:t,characterMeta:n}}(e.textFragments),o=n.text,s=n.characterMeta,u=!1;if(o===w&&(u=!0,o=""),"pre"===e.tagName){var l=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(o,s);o=l.text,s=l.characterMeta}else{var c=function(e,t){var n=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t);e=n.text,t=n.characterMeta;var o=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e,t);e=o.text,t=o.characterMeta;for(var i=e.length;i--;)" "===e.charAt(i)&&" "===e.charAt(i-1)&&(e=e.slice(0,i)+e.slice(i+1),t=t.slice(0,i).concat(t.slice(i+1)));var a=r({text:e,characterMeta:t},"\r ",w);e=a.text,t=a.characterMeta;var s=r({text:e,characterMeta:t}," \r",w);return e=s.text,t=s.characterMeta,{text:e,characterMeta:t}}(o,s);o=c.text,s=c.characterMeta}((o=o.split(w).join("\n")).length||u)&&t.push(new i.ContentBlock({key:(0,i.genKey)(),text:o,type:e.type,characterList:s.toList(),depth:e.depth,data:e.data?(0,a.Map)(e.data):(0,a.Map)()}))})),t.length||(t=[y]),i.ContentState.createFromBlockArray(t,this.contentStateForEntities.getEntityMap())}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?s.BLOCK_TYPE.ORDERED_LIST_ITEM:s.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return s.BLOCK_TYPE.BLOCKQUOTE;case"h1":return s.BLOCK_TYPE.HEADER_ONE;case"h2":return s.BLOCK_TYPE.HEADER_TWO;case"h3":return s.BLOCK_TYPE.HEADER_THREE;case"h4":return s.BLOCK_TYPE.HEADER_FOUR;case"h5":return s.BLOCK_TYPE.HEADER_FIVE;case"h6":return s.BLOCK_TYPE.HEADER_SIX;case"pre":return s.BLOCK_TYPE.CODE;case"figure":return s.BLOCK_TYPE.ATOMIC;default:return s.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t,n,r=this.options.customBlockFn,o=e.nodeName.toLowerCase();if(r){var i=r(e);null!=i&&(t=i.type,n=i.data)}var a=!0;if(null==t&&(a=!1,t=this.getBlockTypeFromTagName(o)),t===s.BLOCK_TYPE.CODE){var u=e.getAttribute("data-language");u&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{language:u}))}var c=function(e){switch(e){case s.BLOCK_TYPE.UNORDERED_LIST_ITEM:case s.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(t),f=!l.hasOwnProperty(o);if(!a&&t===s.BLOCK_TYPE.UNSTYLED){var p=this.blockStack.slice(-1)[0];p&&(t=p.type)}var h={tagName:o,textFragments:[],type:t,styleStack:[m],entityStack:[null],depth:c?this.depth:0,data:n};f&&(this.blockList.push(h),c&&(this.depth+=1)),this.blockStack.push(h),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),f&&c&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],o=n.entityStack.slice(-1)[0],i=this.options.customInlineFn,a=i?i(e,this.inlineCreators):null;if(null!=a)switch(a.type){case"STYLE":[].concat(a.style).forEach((e=>{r=r.add(e)}));break;case"ENTITY":o=a.entityKey}else r=function(e,t,n){switch(t){case"b":case"strong":return e.add(s.INLINE_STYLE.BOLD);case"i":case"em":return e.add(s.INLINE_STYLE.ITALIC);case"u":case"ins":return e.add(s.INLINE_STYLE.UNDERLINE);case"code":return e.add(s.INLINE_STYLE.CODE);case"s":case"del":return e.add(s.INLINE_STYLE.STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}(r,t,this.options.elementStyles),E.hasOwnProperty(t)&&(o=E[t](this,t,e)||o);n.styleStack.push(r),n.entityStack.push(o),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),c.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(w)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(b,"\n")).split("").join(w),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],o=i.CharacterMetadata.create({style:n,entity:r}),s=(0,a.Repeat)(o,e.length);t.textFragments.push({text:e,characterMeta:s})}},{key:"processNode",value:function(e){if(1===e.nodeType){var t=e,n=t.nodeName.toLowerCase();u.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else 3===e.nodeType&&this.processTextNode(e)}},{key:"createEntity",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(e,n,t),this.contentStateForEntities.getLastCreatedEntityKey()}}],t&&h(e.prototype,t),n&&h(e,n),ContentGenerator}();function C(e){var t={};if(null!==e&&"object"===f(e)&&!Array.isArray(e))for(var n=e,r=0,o=Object.keys(n);r<o.length;r++){var i=o[r],a=n[i];"string"==typeof a&&(t[i]=a)}return t}function O(e,t){return new k(t).process(e)}function M(e){var t;"undefined"!=typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement&&(t.documentElement.innerHTML=e);return t.body||t.createElement("body")}function D(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}var T={};function P(e,t){var n=t||T,r=n.parser,o=D(n,["parser"]);return null==r&&(r=M),O(r(e),o)}},25134:(e,t,n)=>{"use strict";n.d(t,{BLOCK_TYPE:()=>r,ENTITY_TYPE:()=>o,INLINE_STYLE:()=>i,getEntityRanges:()=>u});var r={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},o={LINK:"LINK",IMAGE:"IMAGE",EMBED:"embed"},i={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"};var a=n(43393),s=new a.OrderedSet;function u(e,t){for(var n=null,r=null,o=[],i=0,a=0,s=e.length;a<s;a++){r=n;var u=t.get(a);n=u?u.getEntity():null,a>0&&n!==r&&(o.push([r,l(e.slice(i,a),t.slice(i,a))]),i=a)}return o.push([n,l(e.slice(i),t.slice(i))]),o}function l(e,t){for(var n=s,r=s,o=[],i=0,u=0,l=e.length;u<l;u++){r=n;var c=t.get(u);n=c?c.getStyle():s,u>0&&!(0,a.is)(n,r)&&(o.push([e.slice(i,u),r]),i=u)}return o.push([e.slice(i),n]),o}n(9041)},19785:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(10329),a=n(4516),s=n(38777),u=n(67953),l=n(42307),c=n(14289),f=n(25027),d=n(68642),p=n(43393),h=n(61173),g=d("draft_tree_data_support"),v=g?u:s,m=p.List,y=p.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),u=l.removeRange(o,s,"backward"),d=u.getSelectionAfter(),p=l.splitBlock(u,d),h=p.getSelectionAfter(),b=l.setBlockType(p,h,"atomic"),w=a.create({entity:t}),S={key:f(),type:"atomic",text:n,characterList:m(y(w,n.length))},x={key:f(),type:"unstyled"};g&&(S=r({},S,{nextSibling:x.key}),x=r({},x,{prevSibling:S.key}));var _=[new v(S),new v(x)],E=i.createFromArray(_),k=l.replaceWithFragment(b,h,E),C=k.merge({selectionBefore:s,selectionAfter:k.getSelectionAfter().set("hasFocus",!0)});return c.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,t,s,r)}else{var u=l.removeRange(i,n,"backward"),f=u.getSelectionAfter(),d=u.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=h(u,t,d,"before");else if(f.getEndOffset()===d.getLength())o=h(u,t,d,"after");else{var p=l.splitBlock(u,f),g=p.getSelectionAfter(),v=p.getBlockForKey(g.getFocusKey());o=h(p,t,v,"before")}}var m=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return c.push(e,m,"move-block")}};e.exports=b},10329:(e,t,n)=>{"use strict";var r=n(43393).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},34365:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(29407),i=n(96495),a=n(43393),s=a.List,u=a.Repeat,l=a.Record,c=function(){return!0},f=l({start:null,end:null}),d=l({start:null,end:null,decoratorKey:null,leaves:null}),p={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new d({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(u(null,r)),l=t.getCharacterList();return o(a,g,c,(function(e,t){i.push(new d({start:e,end:t,decoratorKey:a.get(e),leaves:h(l.slice(e,t).toList(),e)}))})),s(i)},fromJS:function(e){var t=e.leaves,n=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,["leaves"]);return new d(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map((function(e){return f(e)})):null}))}};function h(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return o(r,g,c,(function(e,r){n.push(new f({start:e+t,end:r+t}))})),s(n)}function g(e,t){return e===t}e.exports=p},4516:(e,t,n)=>{"use strict";var r=n(43393),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),u={style:s,entity:null},l=function(e){var t,n;function CharacterMetadata(){return e.apply(this,arguments)||this}n=e,(t=CharacterMetadata).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=CharacterMetadata.prototype;return r.getStyle=function(){return this.get("style")},r.getEntity=function(){return this.get("entity")},r.hasStyle=function(e){return this.getStyle().includes(e)},CharacterMetadata.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return CharacterMetadata.create(n)},CharacterMetadata.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return CharacterMetadata.create(n)},CharacterMetadata.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return CharacterMetadata.create(n)},CharacterMetadata.create=function(e){if(!e)return c;var t=o({style:s,entity:null}).merge(e),n=f.get(t);if(n)return n;var r=new CharacterMetadata(t);return f=f.set(t,r),r},CharacterMetadata.fromJS=function(e){var t=e.style,n=e.entity;return new CharacterMetadata({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},CharacterMetadata}(a(u)),c=new l,f=o([[o(u),c]]);l.EMPTY=c,e.exports=l},25369:(e,t,n)=>{"use strict";var r=n(43393).List,o=function(){function CompositeDraftDecorator(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var e=CompositeDraftDecorator.prototype;return e.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},e.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},CompositeDraftDecorator}();e.exports=o},38777:(e,t,n)=>{"use strict";var r=n(4516),o=n(29407),i=n(43393),a=i.List,s=i.Map,u=i.OrderedSet,l=i.Record,c=i.Repeat,f=u(),d=l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}),p=function(e){var t,n;function ContentBlock(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(c(r.EMPTY,n.length))),e}(t))||this}n=e,(t=ContentBlock).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=ContentBlock.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},i.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},i.findStyleRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},ContentBlock}(d);function h(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},67953:(e,t,n)=>{"use strict";var r=n(4516),o=n(29407),i=n(43393),a=i.List,s=i.Map,u=i.OrderedSet,l=i.Record,c=i.Repeat,f=u(),d={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(c(r.EMPTY,n.length))),e},v=function(e){var t,n;function ContentBlockNode(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,g(t))||this}n=e,(t=ContentBlockNode).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=ContentBlockNode.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(e,t){o(this.getCharacterList(),p,e,t)},r.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},ContentBlockNode}(l(d));e.exports=v},66912:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(10329),a=n(4516),s=n(38777),u=n(67953),l=n(82222),c=n(25110),f=n(25027),d=n(96495),p=n(68642),h=n(43393),g=n(55283),v=h.List,m=h.Record,y=h.Repeat,b=h.Map,w=h.OrderedMap,S=m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),x=p("draft_tree_data_support")?u:s,_=function(e){var t,n;function ContentState(){return e.apply(this,arguments)||this}n=e,(t=ContentState).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=ContentState.prototype;return o.getEntityMap=function(){return l},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return l.__create(e,t,n),this},o.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},o.addEntity=function(e){return l.__add(e),this},o.getEntity=function(e){return l.__get(e)},o.getAllEntities=function(){return l.__getAll()},o.loadWithEntities=function(e){return l.__loadWithEntities(e)},ContentState.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),o=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new ContentState({blockMap:r,entityMap:t||l,selectionBefore:o,selectionAfter:o})},ContentState.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),r=n.map((function(e){return e=g(e),new x({key:f(),text:e,type:"unstyled",characterList:v(y(a.EMPTY,e.length))})}));return ContentState.createFromBlockArray(r)},ContentState.fromJS=function(e){return new ContentState(r({},e,{blockMap:w(e.blockMap).map(ContentState.createContentBlockFromJS),selectionBefore:new c(e.selectionBefore),selectionAfter:new c(e.selectionAfter)}))},ContentState.createContentBlockFromJS=function(e){var t=e.characterList;return new x(r({},e,{data:b(e.data),characterList:null!=t?v((Array.isArray(t)?t:d(t)).map((function(e){return a.fromJS(e)}))):void 0}))},ContentState}(S);e.exports=_},13483:(e,t,n)=>{"use strict";var r=n(4516),o=n(43393).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),u=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).concat(o([[l,a.get(l)]])).map((function(e,t){var o,a;s===l?(o=u,a=c):(o=t===s?u:0,a=t===l?c:e.getLength());for(var f,d=e.getCharacterList();o<a;)f=d.get(o),d=d.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},77907:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4856),i=n(69270),a=n(48083),s=n(43393),u=n(73759),l=n(22045),c=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},d=o.isBrowser("IE <= 11"),p=function(){function DOMObserver(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=c();var n=a(e);n.MutationObserver&&!d?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||u(!1),t.registerMutation({type:"characterData",target:e.target})}}var e=DOMObserver.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=c(),t},e.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},e.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return d?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=l(i(e.target));this.mutations=this.mutations.set(n,t)}},DOMObserver}();e.exports=p},526:(e,t,n)=>{"use strict";var r=n(67294),o=n(62620),i=(0,n(43393).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},37619:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},9041:(e,t,n)=>{"use strict";var r=n(19785),o=n(10329),i=n(4516),a=n(25369),s=n(38777),u=n(66912),l=n(526),c=n(37619),f=n(87210),d=n(37898),p=n(82222),h=n(42307),g=n(39006),v=n(14289),m=n(47387),y=n(70054),b=n(41947),w=n(25110),S=n(79981),x=n(99607),_=n(25027),E=n(41714),k=n(96629),C={Editor:f,EditorBlock:d,EditorState:v,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:u,RawDraftContentState:y,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:c,convertFromHTML:n(67841),convertFromRaw:x,convertToRaw:S,genKey:_,getDefaultKeyBinding:E,getVisibleSelectionRect:k};e.exports=C},87210:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=n(526),c=n(37619),f=n(33418),d=n(87791),p=n(61494),h=n(19394),g=n(4083),v=n(28094),m=n(5880),y=n(14289),b=n(67294),w=n(65994),S=n(19051),x=n(4856),_=n(62620),E=n(25027),k=n(41714),C=n(79749),O=n(68642),M=n(73759),D=n(20717),T=n(22045),P=x.isBrowser("IE"),R=!P,I={edit:h,composite:f,drag:p,cut:null,render:null},A=!1,N=function(e){function UpdateDraftEditorFlags(){return e.apply(this,arguments)||this}u(UpdateDraftEditorFlags,e);var t=UpdateDraftEditorFlags.prototype;return t.render=function(){return null},t.componentDidMount=function(){this._update()},t.componentDidUpdate=function(){this._update()},t._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},UpdateDraftEditorFlags}(b.Component),L=function(e){function DraftEditor(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=S.getScrollParent(o),a=e||C(i),s=a.x,u=a.y;D(o)||M(!1),o.focus(),i===window?window.scrollTo(s,u):w.setTop(i,u),r||n.update(y.forceSelection(t,t.getSelection()))}})),s(a(n),"blur",(function(){var e=n.editor;e&&(D(e)||M(!1),e.blur())})),s(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},I.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var u=i({},I,{edit:s});n._handler=u[e]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(a(n),"setClipboard",(function(e){n._clipboard=e})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}u(DraftEditor,e);var t=DraftEditor.prototype;return t._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(g?g((function(){return r(t,n)})):r(t,n))}}},t._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(v,e)}return null},t._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},t.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,u=e.editorState,l=e.preventScroll,f=e.readOnly,p=e.textAlignment,h=e.textDirectionality,g=_({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),v=this.props.role||"textbox",m="combobox"===v?!!this.props.ariaExpanded:null,y={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},c,s),customStyleFn:a,editorKey:this._editorKey,editorState:u,preventScroll:l,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:m,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:_({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:v,spellCheck:R&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(N,{editor:this,editorState:u}),b.createElement(d,o({},y,{key:"contents"+this.state.contentsKey})))))},t.componentDidMount=function(){this._blockSelectEvents=!1,!A&&O("draft_ods_enabled")&&(A=!0,m.initODS()),this.setMode("edit"),P&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},t.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},DraftEditor}(b.Component);s(L,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:k,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=L},37898:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}var s=n(42282),u=n(22146),l=n(67294),c=n(65994),f=n(19051),d=n(54191),p=n(16633),h=n(62620),g=n(55258),v=n(79749),m=n(70746),y=n(73759),b=n(20717),w=n(22045),S=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},x=function(e){var t,n;function DraftEditorBlock(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(i(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=DraftEditorBlock).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=DraftEditorBlock.prototype;return r.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||S(e.selection,e.block.getKey())&&e.forceSelection},r.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=f.getScrollParent(n),i=v(o);if(o===window){var a=g(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{b(n)||y(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}}},r._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),i=this.props.tree.size-1,a=S(this.props.selection,n);return this.props.tree.map((function(c,f){var h=c.get("leaves");if(0===h.size)return null;var g=h.size-1,v=h.map((function(o,c){var d=u.encode(n,f,c),p=o.get("start"),h=o.get("end");return l.createElement(s,{key:d,offsetKey:d,block:t,start:p,selection:a?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===i&&c===g})})).toArray(),m=c.get("decoratorKey");if(null==m)return v;if(!e.props.decorator)return v;var y=w(e.props.decorator),b=y.getComponentForKey(m);if(!b)return v;var S=y.getPropsForKey(m),x=u.encode(n,f,0),_=h.first().get("start"),E=h.last().get("end"),k=r.slice(_,E),C=t.getEntityAt(c.get("start")),O=p.getHTMLDirIfDifferent(d.getDirection(k),e.props.direction),M={contentState:e.props.contentState,decoratedText:k,dir:O,start:_,end:E,blockKey:n,entityKey:C,offsetKey:x};return l.createElement(b,o({},S,M,{key:x}),v)})).toArray()},r.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return l.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},DraftEditorBlock}(l.Component);e.exports=x},25821:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=n(59513),l=n(22146),c=n(67294),f=n(65994),d=n(19051),p=n(55258),h=n(79749),g=n(70746),v=n(43393),m=n(73759),y=n(20717),b=(v.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),w=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},S=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},x=function(e,t,n,r,o,i){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:i},u=r(e);return u&&(s.className=u),void 0!==o.customEditable&&(s=a({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},_=function(e){var t,n;function DraftEditorBlockNode(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(i(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",c.createRef()),t}n=e,(t=DraftEditorBlockNode).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=DraftEditorBlockNode.prototype;return r.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection;return i||a},r.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=d.getScrollParent(n),i=h(o);if(o===window){var a=p(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||m(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&f.setTop(o,f.getTop(o)+r+10)}}}},r.render=function(){var e=this,t=this.props,n=t.block,r=t.blockRenderMap,i=t.blockRendererFn,s=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,g=t.customStyleFn,v=t.customStyleMap,m=t.direction,y=t.forceSelection,_=t.selection,E=t.tree,k=null;n.children.size&&(k=n.children.reduce((function(t,n){var o=l.encode(n,0,0),u=f.getBlockForKey(n),d=S(u,i),g=d.CustomComponent||DraftEditorBlockNode,v=w(u,r),m=v.Element,y=v.wrapperTemplate,b=x(u,p,o,s,d,null),_=a({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:u});return t.push(c.createElement(m,b,c.createElement(g,_))),!y||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(u,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var f=s.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(c.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":l.encode(p,0,0)},d))}(y,m,t),t}),[]));var C=n.getKey(),O=l.encode(C,0,0),M=S(n,i),D=M.CustomComponent,T=null!=D?c.createElement(D,o({},this.props,{tree:h.getBlockTree(C),blockProps:M.customProps,offsetKey:O,block:n})):c.createElement(u,{block:n,children:k,contentState:f,customStyleFn:g,customStyleMap:v,decorator:d,direction:m,forceSelection:y,hasSelection:b(_,C),selection:_,tree:E});if(n.getParentKey())return T;var P=w(n,r).Element,R=x(n,p,O,s,M,this.wrapperRef);return c.createElement(P,R,T)},DraftEditorBlockNode}(c.Component);e.exports=_},33418:(e,t,n)=>{"use strict";var r=n(77907),o=n(42307),i=n(22146),a=n(14289),s=n(25399),u=n(4856),l=n(14507),c=n(84907),f=n(1244),d=n(42128),p=n(22045),h=u.isBrowser("IE"),g=!1,v=!1,m=null;var y={onCompositionStart:function(e){v=!0,function(e){m||(m=new r(c(e))).start()}(e)},onCompositionEnd:function(e){g=!1,v=!1,setTimeout((function(){g||y.resolveComposition(e)}),20)},onSelect:l,onKeyDown:function(e,t){if(!v)return y.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!v){var t=p(m).stopAndFlushMutations();m=null,g=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),u=s.blockKey,l=s.decoratorKey,c=s.leafKey,f=n.getBlockTree(u).getIn([l,"leaves",c]),p=f.start,h=f.end,g=n.getSelection().merge({anchorKey:u,focusKey:u,anchorOffset:p,focusOffset:h,isBackward:!1}),v=d(r,g),m=r.getBlockForKey(u).getInlineStyleAt(p);r=o.replaceText(r,g,e,m,v),n=a.set(n,{currentContent:r})}));var s=f(n,c(e)).selectionState;e.restoreEditorDOM();var u=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(u,r,"insert-characters"))}else e.update(n)}}};e.exports=y},88795:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}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}var s=n(37898),u=n(22146),l=n(67294),c=n(62620),f=n(71108),d=n(22045),p=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function DraftEditorContents(){return e.apply(this,arguments)||this}n=e,(t=DraftEditorContents).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=DraftEditorContents.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,c=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,m=e.textDirectionality,y=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),S=h.getDecorator(),x=d(h.getDirectionMap()),_=y.getBlocksAsArray(),E=[],k=null,C=null,O=0;O<_.length;O++){var M=_[O],D=M.getKey(),T=M.getType(),P=n(M),R=void 0,I=void 0,A=void 0;P&&(R=P.component,I=P.props,A=P.editable);var N=m||x.get(D),L=u.encode(D,0,0),B={contentState:y,block:M,blockProps:I,blockStyleFn:r,customStyleMap:a,customStyleFn:c,decorator:S,direction:N,forceSelection:w,offsetKey:L,preventScroll:v,selection:b,tree:h.getBlockTree(D)},F=t.get(T)||t.get("unstyled"),z=F.wrapper,j=F.element||t.get("unstyled").element,K=M.getDepth(),U="";if(r&&(U=r(M)),"li"===j)U=f(U,p(T,K,C!==z||null===k||K>k,N));var q=R||s,W={className:U,"data-block":!0,"data-editor":g,"data-offset-key":L,key:D};void 0!==A&&(W=i({},W,{contentEditable:A,suppressContentEditableWarning:!0}));var H=l.createElement(j,W,l.createElement(q,o({},B,{key:D})));E.push({block:H,wrapperTemplate:z,key:D,offsetKey:L}),k=z?M.getDepth():null,C=z}for(var G=[],Y=0;Y<E.length;){var V=E[Y];if(V.wrapperTemplate){var X=[];do{X.push(E[Y].block),Y++}while(Y<E.length&&E[Y].wrapperTemplate===V.wrapperTemplate);var $=l.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},X);G.push($)}else G.push(V.block),Y++}return l.createElement("div",{"data-contents":"true"},G)},DraftEditorContents}(l.Component);e.exports=h},87791:(e,t,n)=>{"use strict";var r=n(68642)("draft_tree_data_support");e.exports=n(r?69459:88795)},69459:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(25821),a=n(22146),s=n(67294),u=n(22045),l=function(e){var t,n;function DraftEditorContentsExperimental(){return e.apply(this,arguments)||this}n=e,(t=DraftEditorContentsExperimental).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=DraftEditorContentsExperimental.prototype;return r.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},r.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,l=e.customStyleMap,c=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),m=f.getDecorator(),y=u(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var S=w.getKey(),x={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:c,customStyleMap:l,decorator:m,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||y.get(S),tree:f.getBlockTree(S)},_=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:S},x)),wrapperTemplate:_,key:S,offsetKey:a.encode(S,0,0)});var E=w.getNextSiblingKey();w=E?h.getBlockForKey(E):null}for(var k=[],C=0;C<b.length;){var O=b[C];if(O.wrapperTemplate){var M=[];do{M.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===O.wrapperTemplate);var D=s.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},M);k.push(D)}else k.push(O.block),C++}return s.createElement("div",{"data-contents":"true"},k)},DraftEditorContentsExperimental}(s.Component);e.exports=l},3259:(e,t,n)=>{"use strict";var r=n(27418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(22146),a=n(67294),s=n(54191),u=n(16633),l=function(e){var t,n;function DraftEditorDecoratedLeaves(){return e.apply(this,arguments)||this}return n=e,(t=DraftEditorDecoratedLeaves).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,DraftEditorDecoratedLeaves.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,l=e.decorator,c=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),v=l.getComponentForKey(c),m=l.getPropsForKey(c),y=i.encode(h,parseInt(c,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=u.getHTMLDirIfDifferent(s.getDirection(b),f);return a.createElement(v,o({},m,{contentState:r,decoratedText:b,dir:w,key:y,entityKey:t.getEntityAt(d.get("start")),offsetKey:y}),n)},DraftEditorDecoratedLeaves}(a.Component);e.exports=l},61494:(e,t,n)=>{"use strict";var r=n(44891),o=n(42307),i=n(14289),a=n(69270),s=n(75795),u=n(21738),l=n(94486),c=n(48083),f=n(42177),d=n(22045);var p={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),c=e._latestEditorState,p=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=d(n),r=d(r);var u=d(a(n));return l(t,u,r,u,r)}(t.nativeEvent,c);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=p){var v=n.getFiles();if(v.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(p,v)))return;u(v,(function(t){t&&e.update(g(c,p,t))}))}else{var m=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(p,n,m))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(c,p)):e.update(g(c,p,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:c(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function g(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=p},19394:(e,t,n)=>{"use strict";var r=n(4856),o=n(26396),i=n(43421),a=n(6155),s=n(69328),u=n(88922),l=n(39499),c=n(80981),f=n(62186),d=n(29971),p=n(46397),h=n(6089),g=n(14507),v=r.isBrowser("Chrome"),m=r.isBrowser("Firefox"),y=v||m?g:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:u,onDragOver:l,onDragStart:c,onFocus:f,onInput:d,onKeyDown:p,onPaste:h,onSelect:g,onMouseUp:y,onKeyUp:y};e.exports=b},4083:(e,t,n)=>{"use strict";var r=n(73935).unstable_flushControlled;e.exports=r},42282:(e,t,n)=>{"use strict";var r=n(27418);function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(80052),s=n(67294),u=n(73759),l=n(16581),c=n(45412).setDraftEditorSelection,f=function(e){var t,n;function DraftEditorLeaf(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return i(o(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=DraftEditorLeaf).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var f=DraftEditorLeaf.prototype;return f._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||u(!1);var f,d=s.firstChild;d||u(!1),d.nodeType===Node.TEXT_NODE?f=d:l(d)?f=s:(f=d.firstChild)||u(!1),c(e,f,i,r,a)}}},f.shouldComponentUpdate=function(e){var t=this.leaf;return t||u(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},f.componentDidUpdate=function(){this._setSelection()},f.componentDidMount=function(){this._setSelection()},f.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var o=this.props,i=o.customStyleMap,u=o.customStyleFn,l=o.offsetKey,c=o.styleSet,f=c.reduce((function(e,t){var n={},o=i[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(u){var d=u(c,t);f=r(f,d)}return s.createElement("span",{"data-offset-key":l,ref:function(t){return e.leaf=t},style:f},s.createElement(a,null,n))},DraftEditorLeaf}(s.Component);e.exports=f},59513:(e,t,n)=>{"use strict";var r=n(3259),o=n(42282),i=n(22146),a=n(43393),s=n(67294),u=n(62620),l=(a.List,function(e){var t,n;function DraftEditorNode(){return e.apply(this,arguments)||this}return n=e,(t=DraftEditorNode).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,DraftEditorNode.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,l=e.customStyleMap,c=e.decorator,f=e.direction,d=e.forceSelection,p=e.hasSelection,h=e.selection,g=e.tree,v=t.getKey(),m=t.getText(),y=g.size-1,b=this.props.children||g.map((function(e,u){var g=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,S=b.map((function(e,n){var r=i.encode(v,u,n),c=e.get("start"),f=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:c,selection:p?h:null,forceSelection:d,text:m.slice(c,f),styleSet:t.getInlineStyleAt(c),customStyleMap:l,customStyleFn:a,isLast:g===y&&n===w})})).toArray();return g&&c?s.createElement(r,{block:t,children:S,contentState:n,decorator:c,decoratorKey:g,direction:f,leafSet:e,text:m,key:u}):S})).toArray();return s.createElement("div",{"data-offset-key":i.encode(v,0,0),className:u({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},DraftEditorNode}(s.Component));e.exports=l},28094:(e,t,n)=>{"use strict";var r=n(67294),o=n(62620),i=function(e){var t,n;function DraftEditorPlaceholder(){return e.apply(this,arguments)||this}n=e,(t=DraftEditorPlaceholder).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=DraftEditorPlaceholder.prototype;return i.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},i.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},DraftEditorPlaceholder}(r.Component);e.exports=i},80052:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(67294),a=n(4856),s=n(73759),u=n(84368),l=a.isBrowser("IE <= 11");var c=function(e){var t,n;function DraftEditorTextNode(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=DraftEditorTextNode).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=DraftEditorTextNode.prototype;return a.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;u(t)||s(!1);var r=t;return n?!function(e){return l?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},a.componentDidMount=function(){this._forceFlag=!this._forceFlag},a.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},a.render=function(){var e=this;return""===this.props.children?this._forceFlag?function NEWLINE_A(e){return l?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})}((function(t){return e._node=t})):function NEWLINE_B(e){return l?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},DraftEditorTextNode}(i.Component);e.exports=c},5880:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},82222:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(39006),i=n(43393),a=n(73759),s=n(76363),u=(0,i.Map)(),l=s();function c(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return c("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return c("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return c("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return c("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function __getAll(){return u},__loadWithEntities:function __loadWithEntities(e){u=e,l=s()},mergeData:function(e,t){return c("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return c("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function __getLastCreatedEntityKey(){return l},__create:function __create(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function __add(e){return l=s(),u=u.set(l,e),l},__get:function __get(e){var t=u.get(e);return t||a(!1),t},__mergeData:function __mergeData(e,t){var n=f.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return u=u.set(e,i),i},__replaceData:function __replaceData(e,t){var n=f.__get(e).set("data",t);return u=u.set(e,n),n}};e.exports=f},39006:(e,t,n)=>{"use strict";var r=function(e){var t,n;function DraftEntityInstance(){return e.apply(this,arguments)||this}n=e,(t=DraftEntityInstance).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=DraftEntityInstance.prototype;return r.getType=function(){return this.get("type")},r.getMutability=function(){return this.get("mutability")},r.getData=function(){return this.get("data")},DraftEntityInstance}((0,n(43393).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},5195:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,u=null,l=null,c=0;c<i.length;c++){if(e<(a=s+i[c].length)&&s<t)null!==u||(u=s),l=a;else if(null!==u)break;s=a}var f=r+n.length,d=u===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:u!==r&&u--),{start:u,end:l}}}},97432:e=>{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},42307:(e,t,n)=>{"use strict";var r=n(4516),o=n(13483),i=n(68750),a=n(81446),s=n(88687),u=n(43393),l=n(54542),c=n(18467),f=n(73759),d=n(57429),p=n(14017),h=n(54879),g=n(36043),v=u.OrderedSet,m={replaceText:function(e,t,n,o,i){var a=p(e,t),s=h(a,t),u=r.create({style:o||v(),entity:i||null});return c(s,s.getSelectionAfter(),n,u)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),m.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=m.removeRange(e,t,"backward");return m.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=p(e,t),i=h(o,t);return l(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),s=e.getBlockForKey(o);var u=t.getStartOffset(),l=t.getEndOffset(),c=i.getEntityAt(u),f=s.getEntityAt(l-1);if(r===o&&c&&c===f){var d=a(e.getEntityMap(),i,s,t,n);return h(e,d)}var g=p(e,t);return h(g,t)},splitBlock:function(e,t){var n=p(e,t),r=h(n,t);return g(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=p(e,t);return i(r,t,n)}};e.exports=m},22146:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},45712:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(38777),i=n(67953),a=n(67841),s=n(25027),u=n(69769),l=n(68642),c=n(43393),f=n(55283),d=c.List,p=c.Repeat,h=l("draft_tree_data_support"),g=h?i:o,v={processHTML:function(e,t){return a(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=s(),u={key:a,type:n,text:o,characterList:d(p(t,o.length))};if(h&&0!==i){var l=i-1;u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},u,{prevSibling:(e[l]=e[l].merge({nextSibling:a})).getKey()})}return e.push(new g(u)),e}),[])}};e.exports=v},73932:(e,t,n)=>{"use strict";var r="\\s|(?![_])"+n(65724).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:"+"['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),i=new RegExp("(?:(?!"+r+").)(?:"+"['‘’]|(?!"+r+").)*(?:"+r+")*$");function a(e,t){var n=t?i.exec(e):o.exec(e);return n?n[0]:e}var s={getBackward:function(e){return a(e,!0)},getForward:function(e){return a(e,!1)}};e.exports=s},86155:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},68957:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(25027),a=n(73759),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},u={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=r({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,u=r({},e,{children:[]});if(o){var l=n[0];if(null==l&&0===a)t.push(u);else if(null==l||l.depth<a-1){var c={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(c),1===a?t.push(c):null!=l&&l.children.push(c),c.children.push(u)}else if(l.depth===a-1)l.children.push(u);else{for(;null!=l&&l.depth>=a;)n.shift(),l=n[0];a>0?l.children.push(u):t.push(u)}}else t.push(u)})),r({},e,{blocks:t})}};e.exports=u},12119:(e,t,n)=>{"use strict";n(63620);e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return!1;return(null===i||null===o||o!==i)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var u=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},33337:(e,t,n)=>{"use strict";var r,o=n(7902),i=n(43393),a=n(22045),s=i.OrderedMap,u={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),u=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),l=s(n.keySeq().zip(u));return null!=t&&i.is(t,l)?t:l}};e.exports=u},14289:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(34365),a=n(66912),s=n(33337),u=n(25110),l=n(43393),c=l.OrderedSet,f=l.Record,d=l.Stack,p=l.OrderedMap,h=l.List,g=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),v=function(){EditorState.createEmpty=function(e){return this.createWithText("",e)},EditorState.createWithText=function(e,t){return EditorState.createWithContent(a.createFromText(e),t)},EditorState.createWithContent=function(e,t){if(0===e.getBlockMap().count())return EditorState.createEmpty(t);var n=e.getBlockMap().first().getKey();return EditorState.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:t||null,selection:u.createEmpty(n)})},EditorState.create=function(e){var t=e.currentContent,n=r({},e,{treeMap:y(t,e.decorator),directionMap:s.getDirectionMap(t)});return new EditorState(new g(n))},EditorState.fromJS=function(e){return new EditorState(new g(r({},e,{directionMap:null!=e.directionMap?p(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?c(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?d(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new u(e.selection):e.selection,treeMap:null!=e.treeMap?p(e.treeMap).map((function(e){return h(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?d(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},EditorState.set=function(e,t){return new EditorState(e.getImmutable().withMutations((function(n){var r=n.get("decorator"),o=r;null===t.decorator?o=null:t.decorator&&(o=t.decorator);var a=t.currentContent||e.getCurrentContent();if(o!==r){var s,u=n.get("treeMap");return s=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),u,o,r):y(a,o),void n.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&n.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),n.merge(t)})))};var e=EditorState.prototype;function EditorState(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},EditorState.setInlineStyleOverride=function(e,t){return EditorState.set(e,{inlineStyleOverride:t})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return w(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return w(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},EditorState.acceptSelection=function(e,t){return m(e,t,!1)},EditorState.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},EditorState.moveSelectionToEnd=function(e){var t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength();return EditorState.acceptSelection(e,new u({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}))},EditorState.moveFocusToEnd=function(e){var t=EditorState.moveSelectionToEnd(e);return EditorState.forceSelection(t,t.getSelection())},EditorState.push=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===t)return e;var o=s.getDirectionMap(t,e.getDirectionMap());if(!e.getAllowUndo())return EditorState.set(e,{currentContent:t,directionMap:o,lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var i=e.getSelection(),a=e.getCurrentContent(),u=e.getUndoStack(),l=t;i!==a.getSelectionAfter()||b(e,n)?(u=u.push(a),l=l.set("selectionBefore",i)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",a.getSelectionBefore()));var c=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(n)&&(c=null);var p={currentContent:l,directionMap:o,undoStack:u,redoStack:d(),lastChangeType:n,selection:t.getSelectionAfter(),forceSelection:r,inlineStyleOverride:c};return EditorState.set(e,p)},EditorState.undo=function(e){if(!e.getAllowUndo())return e;var t=e.getUndoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=s.getDirectionMap(n,e.getDirectionMap());return EditorState.set(e,{currentContent:n,directionMap:o,undoStack:t.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},EditorState.redo=function(e){if(!e.getAllowUndo())return e;var t=e.getRedoStack(),n=t.peek();if(!n)return e;var r=e.getCurrentContent(),o=s.getDirectionMap(n,e.getDirectionMap());return EditorState.set(e,{currentContent:n,directionMap:o,undoStack:e.getUndoStack().push(r),redoStack:t.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},EditorState}();function m(e,t,n){return v.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function y(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function b(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function w(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=v},47387:(e,t,n)=>{"use strict";var r=n(4856),o=n(17797),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},70054:()=>{},41947:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(1665),a=n(22045),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),u=n.merge({blockMap:a,selectionAfter:t});if(u!==n)return o.push(e,u,"remove-range")}var l=s.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var u=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),l=r.removeRange(n,u,"forward");return l!==n?o.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),u=s.getBlockForKey(a),l=u.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var c=u.getDepth();if(!e.shiftKey&&c===n)return t;var f=i(s,r,e.shiftKey?-1:1,n);return o.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),s=n.getEndKey(),u=e.getCurrentContent(),l=n;if(i!==s&&0===n.getEndOffset()){var c=a(u.getBlockBefore(s));s=c.getKey(),l=l.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:c.getLength(),isBackward:!1})}if(u.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()})))return e;var f=u.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(u,l,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=s},83751:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(88687),a=n(22045),s=null,u={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),u=null;if(n.isCollapsed()){var l=n.getAnchorKey(),c=t.getBlockForKey(l).getLength();if(c===n.getAnchorOffset()){var f=t.getKeyAfter(l);if(null==f)return e;u=n.set("focusKey",f).set("focusOffset",0)}else u=n.set("focusOffset",c)}else u=n;u=a(u),s=i(t,u);var d=r.removeRange(t,u,"forward");return d===t?e:o.push(e,d,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=u},25110:(e,t,n)=>{"use strict";var r=function(e){var t,n;function SelectionState(){return e.apply(this,arguments)||this}n=e,(t=SelectionState).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=SelectionState.prototype;return r.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get("anchorKey")},r.getAnchorOffset=function(){return this.get("anchorOffset")},r.getFocusKey=function(){return this.get("focusKey")},r.getFocusOffset=function(){return this.get("focusOffset")},r.getIsBackward=function(){return this.get("isBackward")},r.getHasFocus=function(){return this.get("hasFocus")},r.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},SelectionState.createEmpty=function(e){return new SelectionState({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},SelectionState}((0,n(43393).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},1665:e=>{"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},2835:(e,t,n)=>{"use strict";var r=n(4516);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},68750:(e,t,n)=>{"use strict";var r=n(2835),o=n(43393);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),c=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===u})).toOrderedMap().merge(o.OrderedMap([[u,i.get(u)]])).map((function(e,t){var o=t===a?s:0,i=t===u?l:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(c),selectionBefore:t,selectionAfter:t})}},79981:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(38777),i=n(67953),a=n(86155),s=n(56265),u=n(31487),l=n(73759),c=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:u(e),entityRanges:s(e,t),data:e.getData().toObject()}},f=function(e,t,n,a){if(e instanceof o)n.push(c(e,t));else{e instanceof i||l(!1);var s=e.getParentKey(),u=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},c(e,t),{children:[]});s?a[s].children.push(u):n.push(u)}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},s=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);i[o]||(i[o]=r,n[o]="".concat(s),s++)})),f(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},67841:(e,t,n)=>{"use strict";var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(4516),s=n(38777),u=n(67953),l=n(526),c=n(82222),f=n(61425),d=n(62620),p=n(25027),h=n(69769),g=n(68642),v=n(43393),m=v.List,y=v.Map,b=v.OrderedSet,w=n(78241),S=n(16581),x=n(20717),_=n(35039),E=g("draft_tree_data_support"),k=new RegExp("\r","g"),C=new RegExp("\n","g"),O=new RegExp("^\n","g"),M=new RegExp(" ","g"),D=new RegExp(" ?","g"),T=new RegExp("​?","g"),P=["bold","bolder","500","600","700","800","900"],R=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],A=["alt","className","height","src","width"],N=(i(r={},d("public/DraftStyleDefault/depth0"),0),i(r,d("public/DraftStyleDefault/depth1"),1),i(r,d("public/DraftStyleDefault/depth2"),2),i(r,d("public/DraftStyleDefault/depth3"),3),i(r,d("public/DraftStyleDefault/depth4"),4),r),L=y({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),B=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),y(t)},F=function(e){if(x(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some((function(n){e.classList.contains(n)&&(t=N[n])})),t},j=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(e){return!1}},K=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!x(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){P.indexOf(r)>=0?e.add("BOLD"):R.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},q=function(e){return"ul"===e||"ol"===e},W=function(){function ContentBlocksBuilder(e,t){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",c),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var e=ContentBlocksBuilder.prototype;return e.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||p(),n=o({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",n},e._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||q(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;q(i)&&(this.wrapper=i,q(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(i);if(void 0===u)if("#text"!==i)if("br"!==i)if(K(o))this._addImgNode(o,t);else if(j(o))this._addAnchorNode(o,n,t);else{var l=t;L.has(i)&&(l=l.add(L.get(i))),l=U(o,l);var c=F(o);null!=c&&(l=l.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(i,this.wrapper)||u[0]||"unstyled"),!E&&x(o)&&("unordered-list-item"===u||"ordered-list-item"===u)){var h=o;this.currentDepth=z(h,this.currentDepth)}var g=p(),v=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:g,childConfigs:v,type:u})),this.currentDepth=f,this.wrapper=d}}}return n},e._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},e._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},e._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(O,"")).replace(C," ")),this._appendText(n,t)},e._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},e._addImgNode=function(e,t){if(_(e)){var n=e,r={};A.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},e._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};I.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=m(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new u(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(e){var t=this;return m(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},e._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},e._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=m(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},ContentBlocksBuilder}();e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,r=t(e=e.trim().replace(k,"").replace(M," ").replace(D,"").replace(T,""));if(!r)return null;var o=B(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new W(o,i).addDOMNode(r).getContentBlocks()}},99607:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(38777),a=n(67953),s=n(66912),u=n(82222),l=n(68957),c=(n(12119),n(25110)),f=n(86019),d=n(67134),p=n(59672),h=n(25027),g=n(68642),v=n(43393),m=n(73759),y=g("draft_tree_data_support"),b=v.List,w=v.Map,S=v.OrderedMap,x=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:_(e,t)}},_=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(p(n,i||[]),d(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||h()})},k=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},C=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=y&&!n?l.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!y)return function(e,t){return S(e.map((function(e){var n=new i(x(e,t));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||m(!1);var s=o.children.map(E),u=new a(r({},x(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(u.getKey(),u);for(var l=k([],s,u);l.length>0;){var c=l.pop(),f=c.parentRef,d=f.getChildKeys(),p=d.indexOf(c.key),h=Array.isArray(c.children);if(!h){h||m(!1);break}var g=c.children.map(E),v=new a(r({},x(c,t),{parent:f.getKey(),children:b(g.map((function(e){return e.key}))),prevSibling:0===p?null:d.get(p-1),nextSibling:p===d.size-1?null:d.get(p+1)}));n=n.set(v.getKey(),v),l=k(l,g,v)}return n}),S())}(o,t);return s};e.exports=function(e){Array.isArray(e.blocks)||m(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=u.__create(o,i,a||{})})),n}(e),n=C(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},86019:(e,t,n)=>{"use strict";var r=n(4516),o=n(43393).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},67134:(e,t,n)=>{"use strict";var r=n(38935).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},59672:(e,t,n)=>{"use strict";var r=n(38935),o=n(43393).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},99407:e=>{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},26396:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(4856),a=n(42128),s=n(42177),u=n(40258),l=n(22045),c=n(56926),f=i.isBrowser("Firefox");function d(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),p=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,v=d(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),m=!1;if(m||(m=u(e._latestCommittedEditorState)),!m){var y=n.getBlockTree(h),b=v.getBlockTree(h);m=y.size!==b.size||y.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=p?r.length:0),a=t.get("end"),s=a+(a>=p?r.length:0),u=n.get("start"),l=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||i!==u||s!==l||null!=c&&l-u!=a-o}))}if(m||(g=r,m=f&&("'"==g||"/"==g)),m||(m=l(v.getDirectionMap()).get(h)!==l(n.getDirectionMap()).get(h)),m)return t.preventDefault(),v=o.set(v,{forceSelection:!0}),void e.update(v);v=o.set(v,{nativelyRenderedContent:v.getCurrentContent()}),e._pendingStateFromBeforeInput=v,c((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},43421:(e,t,n)=>{"use strict";var r=n(14289),o=n(67476),i=n(31003);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var u=e._latestEditorState,l=u.getSelection();if(l.getHasFocus()){var c=l.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(u,c))}}},6155:(e,t,n)=>{"use strict";var r=n(14289);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},69328:(e,t,n)=>{"use strict";var r=n(94882);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},88922:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(19051),a=n(94882),s=n(79749),u=n(80809);e.exports=function(e,t){var n,l=e._latestEditorState,c=l.getSelection(),f=t.target;if(c.isCollapsed())t.preventDefault();else{if(u(f)){var d=f;n=s(i.getScrollParent(d))}var p=a(l);e.setClipboard(p),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(l))}),0)}}},39499:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},80981:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},62186:(e,t,n)=>{"use strict";var r=n(14289),o=n(4856);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},29971:(e,t,n)=>{"use strict";var r=n(42307),o=n(22146),i=n(14289),a=n(4856),s=n(99407).notEmptyKey,u=n(69270),l=n(62800),c=n(22045),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,d=n.isCollapsed,p=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!p){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var v=a.textContent,m=e._latestEditorState,y=c(u(a)),b=o.decode(y),w=b.blockKey,S=b.decoratorKey,x=b.leafKey,_=m.getBlockTree(w).getIn([S,"leaves",x]),E=_.start,k=_.end,C=m.getCurrentContent(),O=C.getBlockForKey(w),M=O.getText().slice(E,k);if(v.endsWith("\n\n")&&(v=v.slice(0,-1)),v!==M){var D,T,P,R,I=m.getSelection(),A=I.merge({anchorOffset:E,focusOffset:k,isBackward:!1}),N=O.getEntityAt(E),L=s(N)?C.getEntity(N):null,B="MUTABLE"===(null!=L?L.getMutability():null),F=B?"spellcheck-change":"apply-entity",z=r.replaceText(C,A,v,O.getInlineStyleAt(E),B?O.getEntityAt(E):null);if(f)D=n.anchorOffset,T=n.focusOffset,R=(P=E+Math.min(D,T))+Math.abs(D-T),D=P,T=R;else{var j=v.length-M.length;P=I.getStartOffset(),R=I.getEndOffset(),D=d?R+j:P,T=R+j}var K=z.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:I.merge({anchorOffset:D,focusOffset:T})});e.update(i.push(m,K,F))}else{var U=t.nativeEvent.inputType;if(U){var q=function(e,t){return"deleteContentBackward"===e?l(t):t}(U,m);if(q!==m)return e.restoreEditorDOM(),void e.update(q)}}}}},46397:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(47387),a=n(25399),s=n(83751),u=n(4856),l=n(42177),c=n(49779),f=n(51050),d=n(13767),p=n(77978),h=n(67217),g=n(8425),v=n(62800),m=n(13998),y=n(53318),b=n(87051),w=i.isOptionKeyCommand,S=u.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function u(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&l(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),u("onEscape"))return;break;case a.TAB:if(u("onTab"))return;break;case a.UP:if(u("onUpArrow"))return;break;case a.RIGHT:if(u("onRightArrow"))return;break;case a.DOWN:if(u("onDownArrow"))return;break;case a.LEFT:if(u("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!l(e.props.handleKeyCommand(x,i,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return d(t);case"backspace":return v(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return c(t,n);case"split-block":return p(t);case"transpose-characters":return y(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,i,t);_!==i&&e.update(_)}}else b(t,i,e.update);else if(n===a.SPACE&&S&&w(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},6089:(e,t,n)=>{"use strict";var r=n(10329),o=n(4516),i=n(44891),a=n(42307),s=n(45712),u=n(14289),l=n(41947),c=n(42128),f=n(21738),d=n(42177),p=n(44300);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return u.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),v=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(g)))return;return void f(g,(function(t){if(t=t||v){var n=e._latestEditorState,i=p(t),f=o.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),d=l.getCurrentBlockType(n),h=s.processText(i,f,d),g=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(u.push(n,m,"insert-fragment"))}}))}}var m=[],y=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(y,b);y=S.text,b=S.html}if(!e.props.handlePastedText||!d(e.props.handlePastedText(y,b,w))){if(y&&(m=p(y)),!e.props.stripPastedStyles){var x,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(x=b)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===m.length&&1===_.size&&_.first().getText()===y)return void e.update(h(e._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(m,_))return void e.update(h(e._latestEditorState,_));if(b){var E=s.processHTML(b,e.props.blockRenderMap);if(E){var k=E.contentBlocks,C=E.entityMap;if(k){var O=r.createFromArray(k);return void e.update(h(e._latestEditorState,O,C))}}}e.setClipboard(null)}if(m.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:c(w.getCurrentContent(),w.getSelection())}),D=l.getCurrentBlockType(w),T=s.processText(m,M,D),P=r.createFromArray(T);e.update(h(e._latestEditorState,P))}}}},14507:(e,t,n)=>{"use strict";var r=n(97432),o=n(14289),i=n(84907),a=n(1244);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,i(e)),u=s.selectionState;u!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,u):o.acceptSelection(n,u),e.update(n))}}},56265:(e,t,n)=>{"use strict";var r=n(86155),o=n(38935).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),u=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(u)])})})),n}},31487:(e,t,n)=>{"use strict";var r=n(38935),o=n(29407),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],u=t.map((function(e){return e.has(n)})).toList();return o(u,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},88182:(e,t,n)=>{"use strict";var r=n(38935),o=n(75795),i=n(6092),a=n(73759);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function u(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(t),l=e.endContainer,c=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),n)&&(l=e.startContainer,c=e.startOffset,l.parentNode||a(!1),e.setStartBefore(l),1!==l.nodeType||"inline"===getComputedStyle(l).display););for(var f=l,d=c-1;;){for(var p=f.nodeValue,h=d;h>=0;h--)if(!(null!=p&&h>0&&r.isSurrogatePair(p,h-1))){if(e.setStart(f,h),!s(i(e),n))break;l=f,c=h}if(-1===h||0===f.childNodes.length)break;d=u(f=f.childNodes[h])}return e.setStart(l,c),e}},69270:(e,t,n)=>{"use strict";var r=n(75795),o=n(93578);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},29407:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},25027:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},81446:(e,t,n)=>{"use strict";var r=n(5195),o=n(64994),i=n(73759);function a(e,t,n,a,s,u,l){var c=n.getStartOffset(),f=n.getEndOffset(),d=e.__get(s).getMutability(),p=l?c:f;if("MUTABLE"===d)return n;var h=o(t,s).filter((function(e){return p<=e.end&&p>=e.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});u||(l?f=g.end:c=g.start);var v=r.getRemovalRange(c,f,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),u=t.getEntityAt(i),l=n.getEntityAt(s-1);if(!u&&!l)return r;var c=r;if(u&&u===l)c=a(e,t,c,o,u,!0,!0);else if(u&&l){var f=a(e,t,c,o,u,!1,!0),d=a(e,n,c,o,l,!1,!1);c=c.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(u){var p=a(e,t,c,o,u,!1,!0);c=c.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var h=a(e,n,c,o,l,!1,!1);c=c.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return c}},84907:(e,t,n)=>{"use strict";var r=n(73759),o=n(20717);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},88687:(e,t,n)=>{"use strict";var r=n(98555),o=n(14017);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=o(e,t).getBlockMap(),l=u.keySeq(),c=l.indexOf(n),f=l.indexOf(a)+1;return r(u.slice(c,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},75795:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},41714:(e,t,n)=>{"use strict";var r=n(47387),o=n(25399),i=n(4856),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),u=r.hasCommandModifier,l=r.isCtrlKeyCommand;function c(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return u(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return u(e)?"italic":null;case 74:return u(e)?"code":null;case 75:return a&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return u(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return u(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return u(e)&&a?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&u(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&u(e)?"move-selection-to-end-of-block":null;default:return null}}},1244:(e,t,n)=>{"use strict";var r=n(8101);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,s)}},8101:(e,t,n)=>{"use strict";var r=n(69270),o=n(93578),i=n(94486),a=n(73759),s=n(84368),u=n(22045);function l(e,t,n){var i=t,l=r(i);(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i)&&(i=i.firstChild,s(i)||a(!1),"true"!==(i=i).getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length));if(0===n){var f=null;if(null!=l)f=l;else{var d=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);f=u(o(d))}return{key:f,offset:0}}var p=i.childNodes[n-1],h=null,g=null;if(o(p)){var v=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(p);h=u(o(v)),g=c(v)}else h=u(l),g=c(p);return{key:h,offset:g}}function c(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,s){var c=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(c&&f)return{selectionState:i(e,u(r(n)),o,u(r(a)),s),needsRecovery:!1};var d=null,p=null,h=!0;return c?(d={key:u(r(n)),offset:o},p=l(t,a,s)):f?(p={key:u(r(a)),offset:s},d=l(t,n,o)):(d=l(t,n,o),p=l(t,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,d.key,d.offset,p.key,p.offset),needsRecovery:h}}},42128:(e,t,n)=>{"use strict";var r=n(99407).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),u=e.getBlockForKey(a);return n=s===u.getLength()?null:u.getEntityAt(s),o(e.getEntityMap(),n)}},94882:(e,t,n)=>{"use strict";var r=n(88687);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},39506:(e,t,n)=>{"use strict";var r=n(67953);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},96495:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},98056:(e,t,n)=>{"use strict";var r=n(6092);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var u=t[0];n=u.top,o=u.right,i=u.bottom,a=u.left}for(var l=1;l<t.length;l++){var c=t[l];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),o=Math.max(o,c.right),i=Math.max(i,c.bottom),a=Math.min(a,c.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},6092:(e,t,n)=>{"use strict";var r=n(4856),o=n(73759);var i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},64994:(e,t,n)=>{"use strict";var r=n(73759);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},69769:(e,t,n)=>{"use strict";var r=n(4856),o=n(73759),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},93578:(e,t,n)=>{"use strict";var r=n(84368);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},21738:(e,t,n)=>{"use strict";var r=n(73759),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach((function(u){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))return void t("");if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}(u,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==e.length&&t(s.join("\r"))}))}))}},94486:(e,t,n)=>{"use strict";var r=n(22146),o=n(22045);e.exports=function(e,t,n,i,a){var s=o(e.getSelection());if(!t||!i)return s;var u=r.decode(t),l=u.blockKey,c=e.getBlockTree(l),f=c&&c.getIn([u.decoratorKey,"leaves",u.leafKey]),d=r.decode(i),p=d.blockKey,h=e.getBlockTree(p),g=h&&h.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!g)return s;var v=f.get("start"),m=g.get("start"),y=f?v+n:null,b=g?m+a:null;if(s.getAnchorKey()===l&&s.getAnchorOffset()===y&&s.getFocusKey()===p&&s.getFocusOffset()===b)return s;var w=!1;if(l===p){var S=f.get("end"),x=g.get("end");w=m===v&&x===S?a<n:m<v}else{w=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===p})).first()===p}return s.merge({anchorKey:l,anchorOffset:y,focusKey:p,focusOffset:b,isBackward:w})}},96629:(e,t,n)=>{"use strict";var r=n(98056);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,u=o.left;return 0===i&&0===a&&0===s&&0===u?null:o}},48083:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},68642:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]}},54542:(e,t,n)=>{"use strict";var r=n(10329),o=n(67953),i=n(43393),a=n(40779),s=n(73759),u=n(98555),l=i.List,c=function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",u=n.get(o),l=u.getText(),c=u.getCharacterList(),f=o,d=i+r.getText().length,p=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(u.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var h=u.getType();l&&"unstyled"===h&&(h=r.getType());var g=u.merge({text:l.slice(0,i)+r.getText()+l.slice(i),characterList:a(c,r.getCharacterList(),i),type:h,data:p});return e.merge({blockMap:n.set(o,g),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:d,focusKey:f,focusOffset:d,isBackward:!1})})},f=function(e,t,n,i,a,s){var u=n.first()instanceof o,c=[],f=i.size,d=n.get(a),p=i.first(),h=i.last(),g=h.getLength(),v=h.getKey(),m=u&&(!d.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(m?c.push(e):c.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(m?0:1,f-1).forEach((function(e){return c.push(e)})),c.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),u=n.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(e,s,i))):c.push(e)}));var y=r.createFromArray(c);return u&&(y=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),u=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=u[u.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),u.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var f=e.get(s).getChildKeys(),d=f.indexOf(o)+1,p=f.toArray();p.splice.apply(p,[d,0].concat(u)),t.setIn([s,"children"],l(p))}}))}(y,0,d,p)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:g,focusKey:v,focusOffset:g,isBackward:!1})})};e.exports=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var i=e.getBlockMap(),a=u(n),l=t.getStartKey(),d=t.getStartOffset(),p=i.get(l);return p instanceof o&&(p.getChildKeys().isEmpty()||s(!1)),1===a.size?c(e,t,i,a.first(),l,d,r):f(e,t,i,a,l,d)}},40779:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r}},18467:(e,t,n)=>{"use strict";var r=n(43393),o=n(40779),i=n(73759),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var u=e.getBlockMap(),l=t.getStartKey(),c=t.getStartOffset(),f=u.get(l),d=f.getText(),p=f.merge({text:d.slice(0,c)+n+d.slice(c,f.getLength()),characterList:o(f.getCharacterList(),a(r,s).toList(),c)}),h=c+s;return e.merge({blockMap:u.set(l,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},84368:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},42177:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},78241:(e,t,n)=>{"use strict";var r=n(84368);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},16581:(e,t,n)=>{"use strict";var r=n(84368);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}},20717:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},35039:(e,t,n)=>{"use strict";var r=n(84368);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},80809:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},40258:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},17797:(e,t,n)=>{"use strict";var r=n(25399);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},49779:(e,t,n)=>{"use strict";var r=n(14289),o=n(88182),i=n(8101),a=n(53268),s=n(14730);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},51050:(e,t,n)=>{"use strict";var r=n(73932),o=n(14289),i=n(53268),a=n(14730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},13767:(e,t,n)=>{"use strict";var r=n(73932),o=n(14289),i=n(19417),a=n(14730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},77978:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},67217:(e,t,n)=>{"use strict";var r=n(14289);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},8425:(e,t,n)=>{"use strict";var r=n(14289);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},62800:(e,t,n)=>{"use strict";var r=n(14289),o=n(38935),i=n(53268),a=n(14730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},13998:(e,t,n)=>{"use strict";var r=n(14289),o=n(38935),i=n(19417),a=n(14730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},53318:(e,t,n)=>{"use strict";var r=n(42307),o=n(14289),i=n(88687);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,u=t.getAnchorKey(),l=e.getCurrentContent(),c=l.getBlockForKey(u).getLength();if(c<=1)return e;n===c?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(l,a),d=r.removeRange(l,a,"backward"),p=d.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),v=r.replaceWithFragment(d,g,f),m=o.push(e,v,"insert-fragment");return o.acceptSelection(m,s)}},87051:(e,t,n)=>{"use strict";var r=n(14289);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},57429:(e,t,n)=>{"use strict";var r=n(43393).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},61173:(e,t,n)=>{"use strict";var r=n(67953),o=n(39506),i=n(43393),a=n(73759),s=i.OrderedMap,u=i.List,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),f=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),p=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){l(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),l(d,e,(function(e){return e.merge({nextSibling:f})})),l(f,e,(function(e){return e.merge({prevSibling:d})})),l(h,e,(function(e){return e.merge({prevSibling:a})})),l(g,e,(function(e){return e.merge({nextSibling:a})})),l(p,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:u(o)})})),l(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var u=n.getKey(),l=t.getKey();l===u&&a(!1);var f=e.getBlockMap(),d=t instanceof r,p=[t],h=f.delete(l);d&&(p=[],h=f.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===l})).takeWhile((function(e){var t=e.getKey(),o=t===l,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){p.push(t),e.delete(t.getKey())}))})));var g=h.toSeq().takeUntil((function(e){return e===n})),v=h.toSeq().skipUntil((function(e){return e===n})).skip(1),m=p.map((function(e){return[e.getKey(),e]})),y=s();if("before"===i){var b=e.getBlockBefore(u);b&&b.getKey()===t.getKey()&&a(!1),y=g.concat([].concat(m,[[u,n]]),v).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(u);w&&w.getKey()===l&&a(!1),y=g.concat([[u,n]].concat(m),v).toOrderedMap()}return e.merge({blockMap:c(y,t,n,i,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},53268:(e,t,n)=>{"use strict";n(63620);e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,s=r.getBlockForKey(u).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},19417:(e,t,n)=>{"use strict";n(63620);e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},98555:(e,t,n)=>{"use strict";var r=n(67953),o=n(25027),i=n(43393).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),u=r.getPrevSiblingKey(),l=r.getChildKeys(),c=r.getParentKey(),f=o();if(n[a]=f,s&&(e.get(s)?e.setIn([s,"prevSibling"],f):e.setIn([a,"nextSibling"],null)),u&&(e.get(u)?e.setIn([u,"nextSibling"],f):e.setIn([a,"prevSibling"],null)),c&&e.get(c)){var d=e.get(c).getChildKeys();e.setIn([c,"children"],d.set(d.indexOf(r.getKey()),f))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],f):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},14017:(e,t,n)=>{"use strict";var r=n(4516),o=n(29407),i=n(73759);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,u=n<a.count()?a.get(n):void 0,l=s?s.getEntity():void 0,c=u?u.getEntity():void 0;if(c&&c===l&&"MUTABLE"!==e.__get(c).getMutability()){for(var f,d=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,c,n),p=d.start,h=d.end;p<h;)f=a.get(p),a=a.set(p,r.applyEntity(f,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),u=n.get(i),l=a(r,u,s);l!==u&&(o[i]=l);var c=t.getEndKey(),f=t.getEndOffset(),d=n.get(c);i===c&&(d=l);var p=a(r,d,f);return p!==d&&(o[c]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},54879:(e,t,n)=>{"use strict";var r=n(67953),o=n(39506),i=n(43393),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},f=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:c(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:c(e,i,r)})})),u(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:c(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:c(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),u(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:c(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:c(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var f=a?e.get(a):null,d=f?f.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:d})}))})),null!=d){var p=e.get(d);s(d,i,(function(e){return e.merge({children:p.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},d=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),c=t.getEndKey(),p=t.getEndOffset(),h=i.get(s),g=i.get(c),v=h instanceof r,m=[];if(v){var y=g.getChildKeys(),b=u(c,i);g.getNextSiblingKey()&&(m=m.concat(b)),y.isEmpty()||(m=m.concat(b.concat([c]))),m=m.concat(u(o(g,i),i))}n=h===g?d(h.getCharacterList(),l,p):h.getCharacterList().slice(0,l).concat(g.getCharacterList().slice(p));var w=h.merge({text:h.getText().slice(0,l)+g.getText().slice(p),characterList:n}),S=v&&0===l&&0===p&&g.getParentKey()===s&&null==g.getPrevSiblingKey()?a([[s,null]]):i.toSeq().skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===c})).filter((function(e,t){return-1===m.indexOf(t)})).concat(a([[c,null]])).map((function(e,t){return t===s?w:null})),x=i.merge(S).filter((function(e){return!!e}));return v&&h!==g&&(x=f(x,h,g,i)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:l,focusKey:s,focusOffset:l,isBackward:!1})})}},14730:(e,t,n)=>{"use strict";var r=n(42307),o=n(68642)("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),s=i,u=i.getAnchorKey(),l=i.getFocusKey(),c=a.getBlockForKey(u);if(o&&"forward"===n&&u!==l)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o)if(i.getAnchorOffset()===a.getBlockForKey(u).getLength()){var f=a.getBlockForKey(c.nextSibling);if(!f||0===f.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,s,n)}},55283:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},45412:(e,t,n)=>{"use strict";var r=n(5880),o=n(97432),i=n(4856),a=n(67476),s=n(31003),u=n(75795),l=n(73759),c=n(84368),f=i.isBrowser("IE");function d(e,t){if(!e)return"[empty]";var n=p(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(c(n)||l(!1),n.outerHTML)}function p(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return u(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(p(i[a],t));return o}function h(e,t){for(var n=e,r=n;n;){if(c(n)&&r.hasAttribute("contenteditable"))return d(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function g(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function v(e,t,n,r){var i=s();if(e.extend&&null!=t&&a(i,t)){n>g(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var u=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var l=e.getRangeAt(0);l.setEnd(t,n),e.addRange(l.cloneRange())}}function m(e,t,n,i){var a=u(t).createRange();if(n>g(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),f)try{e.addRange(a)}catch(e){0}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=u(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),l=e.getAnchorKey(),c=e.getAnchorOffset(),f=e.getFocusKey(),d=e.getFocusOffset(),p=e.getIsBackward();if(!s.extend&&p){var h=l,g=c;l=f,c=d,f=h,d=g,p=!1}var y=l===n&&r<=c&&o>=c,b=f===n&&r<=d&&o>=d;if(y&&b)return s.removeAllRanges(),m(s,t,c-r,e),void v(s,t,d-r,e);if(p){if(b&&(s.removeAllRanges(),m(s,t,d-r,e)),y){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),m(s,t,c-r,e),v(s,w,S,e)}}else y&&(s.removeAllRanges(),m(s,t,c-r,e)),b&&v(s,t,d-r,e)}},addFocusToSelection:v}},36043:(e,t,n)=>{"use strict";var r=n(67953),o=n(25027),i=n(43393),a=n(73759),s=n(57429),u=i.List,l=i.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),f=i.get(n),d=f.getText();if(!d){var p=f.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),g=f.getCharacterList(),v=o(),m=f instanceof r,y=f.merge({text:d.slice(0,h),characterList:g.slice(0,h)}),b=y.merge({key:v,text:d.slice(h),characterList:g.slice(h),data:l()}),w=i.toSeq().takeUntil((function(e){return e===f})),S=i.toSeq().skipUntil((function(e){return e===f})).rest(),x=w.concat([[n,y],[v,b]],S).toOrderedMap();return m&&(f.getChildKeys().isEmpty()||a(!1),x=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:u(i)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),c(r,e,(function(e){return e.merge({nextSibling:o})})),c(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(x,y,b)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:0,focusKey:v,focusOffset:0,isBackward:!1})})}},44300:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},76363:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},58875:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},44891:(e,t,n)=>{"use strict";var r=n(51006),o=n(89825),i=n(60139),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function u(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function DataTransfer(e){this.data=e,this.types=e.types?o(e.types):[]}var e=DataTransfer.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},e.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(u).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},DataTransfer}();e.exports=l},25399:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},51006:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},65994:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},19051:(e,t,n)=>{"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(85466),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},65724:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},61425:e=>{"use strict";var t=function(){function URI(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return URI.prototype.toString=function(){return this._uri},URI}();e.exports=t},54191:(e,t,n)=>{"use strict";var r=n(16633),o=n(73759),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),u=new RegExp("["+i+a+"]");function l(e){var t=s.exec(e);return null==t?null:t[0]}function c(e){var t=l(e);return null==t?r.NEUTRAL:u.exec(t)?r.RTL:r.LTR}function f(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=c(e);return n===r.NEUTRAL?t:n}function d(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),f(e,t)}var p={firstStrongChar:l,firstStrongCharDir:c,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===r.LTR},isDirectionRTL:function(e,t){return d(e,t)===r.RTL}};e.exports=p},16633:(e,t,n)=>{"use strict";var r=n(73759),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function u(e){i=e}var l={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:s(e)},setGlobalDir:u,initGlobalDir:function(){u(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};e.exports=l},7902:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(54191),i=n(16633),a=n(73759),s=function(){function UnicodeBidiService(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var e=UnicodeBidiService.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},UnicodeBidiService}();e.exports=s},38935:(e,t,n)=>{"use strict";var r=n(73759),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function u(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=s(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(e,i);return e.substring(o,i)}var l={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return u(e,t=t<n?t:n,r)},substr:u};e.exports=l},4856:(e,t,n)=>{"use strict";var r=n(95845),o=n(59859),i=n(79467),a=n(51767);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function u(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,u)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(l,a)},95845:(e,t,n)=>{"use strict";var r=n(42238),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),u=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(s.browser.version),l={browserArchitecture:s.cpu.architecture||o,browserFullVersion:s.browser.version||o,browserMinorVersion:u.minor||o,browserName:s.browser.name||o,browserVersion:s.browser.major||o,deviceName:s.device.model||o,engineName:s.engine.name||o,engineVersion:s.engine.version||o,platformArchitecture:s.cpu.architecture||o,platformName:(a=s.os.name,i[a]||a||o),platformVersion:s.os.version||o,platformFullVersion:s.os.version||o};e.exports=l},59859:(e,t,n)=>{"use strict";var r=n(73759),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,u=/^(\d*)(.*)/;function l(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return w.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return c(n[0],t);var o=n[0],i=n[1];return g(o)&&g(i)||r(!1),c(">="+o,t)&&c("<="+i,t)}(e=n[0].trim(),t)}function c(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=p(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return f(r,s);case"<=":return-1===(n=b(r,s))||0===n;case">=":return d(r,s);case">":return function(e,t){return 1===b(e,t)}(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);h(i)&&(r[o]=i+1+"");return d(e,n)&&f(e,r)}(r,s);default:return function(e,t){return 0===b(e,t)}(r,s)}}function f(e,t){return-1===b(e,t)}function d(e,t){var n=b(e,t);return 1===n||0===n}function p(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function g(e){return!p(e).modifier}function v(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){var n=e.match(u)[1],r=t.match(u)[1],o=parseInt(n,10),i=parseInt(r,10);return h(o)&&h(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){v(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return v(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=m(r[i],o[i]);if(a)return a}return 0}var w={contains:function(e,t){return l(e.trim(),t.trim())}};e.exports=w},52297:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},67476:(e,t,n)=>{"use strict";var r=n(52334);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},89825:(e,t,n)=>{"use strict";var r=n(73759);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},62620:e=>{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},60139:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},31003:e=>{"use strict";e.exports=function(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}}},35179:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},55258:(e,t,n)=>{"use strict";var r=n(23123);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},23123:(e,t,n)=>{"use strict";var r=n(67476);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},79749:(e,t,n)=>{"use strict";var r=n(35179),o=n(30787);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},85466:(e,t,n)=>{"use strict";var r=n(52297),o=n(89349);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},30787:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},70746:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},89349:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},73759:e=>{"use strict";var t=function(e){};e.exports=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(t(n),!e){var a;if(void 0===n)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;(a=new Error(n.replace(/%s/g,(function(){return String(o[s++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},20901:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},52334:(e,t,n)=>{"use strict";var r=n(20901);e.exports=function(e){return r(e)&&3==e.nodeType}},71108:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},79467:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,e));return o}},51767:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},22045:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},56926:(e,t,n)=>{"use strict";n(24889),e.exports=n.g.setImmediate},63620:(e,t,n)=>{"use strict";var r=n(60139);e.exports=r},8679:(e,t,n)=>{"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),v=0;v<a.length;++v){var m=a[v];if(!(i[m]||r&&r[m]||g&&g[m]||s&&s[m])){var y=d(n,m);try{l(t,m,y)}catch(e){}}}}return t}},96103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case g:case u:return e;default:return t}}case o:return t}}}function x(e){return S(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=S},21296:(e,t,n)=>{"use strict";e.exports=n(96103)},43393:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function Iterable(e){return n(e)?e:Seq(e)}function KeyedIterable(e){return r(e)?e:KeyedSeq(e)}function IndexedIterable(e){return o(e)?e:IndexedSeq(e)}function SetIterable(e){return n(e)&&!i(e)?e:SetSeq(e)}function n(e){return!(!e||!e[s])}function r(e){return!(!e||!e[u])}function o(e){return!(!e||!e[l])}function i(e){return r(e)||o(e)}function a(e){return!(!e||!e[c])}t(KeyedIterable,Iterable),t(IndexedIterable,Iterable),t(SetIterable,Iterable),Iterable.isIterable=n,Iterable.isKeyed=r,Iterable.isIndexed=o,Iterable.isAssociative=i,Iterable.isOrdered=a,Iterable.Keyed=KeyedIterable,Iterable.Indexed=IndexedIterable,Iterable.Set=SetIterable;var s="@@__IMMUTABLE_ITERABLE__@@",u="@@__IMMUTABLE_KEYED__@@",l="@@__IMMUTABLE_INDEXED__@@",c="@@__IMMUTABLE_ORDERED__@@",f="delete",d=5,p=1<<d,h=p-1,g={},v={value:!1},m={value:!1};function MakeRef(e){return e.value=!1,e}function SetRef(e){e&&(e.value=!0)}function OwnerID(){}function y(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function b(e){return void 0===e.size&&(e.size=e.__iterate(S)),e.size}function w(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?b(e)+t:t}function S(){return!0}function x(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return k(e,t,0)}function E(e,t){return k(e,t,t)}function k(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var C=0,O=1,M=2,D="function"==typeof Symbol&&Symbol.iterator,T="@@iterator",P=D||T;function Iterator(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function I(){return{value:void 0,done:!0}}function A(e){return!!B(e)}function N(e){return e&&"function"==typeof e.next}function L(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(D&&e[D]||e[T]);if("function"==typeof t)return t}function F(e){return e&&"number"==typeof e.length}function Seq(e){return null==e?W():n(e)?e.toSeq():Y(e)}function KeyedSeq(e){return null==e?W().toKeyedSeq():n(e)?r(e)?e.toSeq():e.fromEntrySeq():H(e)}function IndexedSeq(e){return null==e?W():n(e)?r(e)?e.entrySeq():e.toIndexedSeq():G(e)}function SetSeq(e){return(null==e?W():n(e)?r(e)?e.entrySeq():e:G(e)).toSetSeq()}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=C,Iterator.VALUES=O,Iterator.ENTRIES=M,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[P]=function(){return this},t(Seq,Iterable),Seq.of=function(){return Seq(arguments)},Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(e,t){return X(this,e,t,!0)},Seq.prototype.__iterator=function(e,t){return $(this,e,t,!0)},t(KeyedSeq,Seq),KeyedSeq.prototype.toKeyedSeq=function(){return this},t(IndexedSeq,Seq),IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq.prototype.__iterate=function(e,t){return X(this,e,t,!1)},IndexedSeq.prototype.__iterator=function(e,t){return $(this,e,t,!1)},t(SetSeq,Seq),SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},Seq.isSeq=q,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq;var z,j,K,U="@@__IMMUTABLE_SEQ__@@";function ArraySeq(e){this._array=e,this.size=e.length}function ObjectSeq(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function IterableSeq(e){this._iterable=e,this.size=e.length||e.size}function IteratorSeq(e){this._iterator=e,this._iteratorCache=[]}function q(e){return!(!e||!e[U])}function W(){return z||(z=new ArraySeq([]))}function H(e){var t=Array.isArray(e)?new ArraySeq(e).fromEntrySeq():N(e)?new IteratorSeq(e).fromEntrySeq():A(e)?new IterableSeq(e).fromEntrySeq():"object"==typeof e?new ObjectSeq(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function G(e){var t=V(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function Y(e){var t=V(e)||"object"==typeof e&&new ObjectSeq(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function V(e){return F(e)?new ArraySeq(e):N(e)?new IteratorSeq(e):A(e)?new IterableSeq(e):void 0}function X(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function $(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new Iterator((function(){var e=o[n?i-a:a];return a++>i?I():R(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function Q(e,t){return t?Z(t,e,"",{"":e}):J(e)}function Z(e,t,n,r){return Array.isArray(t)?e.call(r,n,IndexedSeq(t).map((function(n,r){return Z(e,n,r,t)}))):ee(t)?e.call(r,n,KeyedSeq(t).map((function(n,r){return Z(e,n,r,t)}))):t}function J(e){return Array.isArray(e)?IndexedSeq(e).map(J).toList():ee(e)?KeyedSeq(e).map(J).toMap():e}function ee(e){return e&&(e.constructor===Object||void 0===e.constructor)}function te(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ne(e,t){if(e===t)return!0;if(!n(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||r(e)!==r(t)||o(e)!==o(t)||a(e)!==a(t))return!1;if(0===e.size&&0===t.size)return!0;var s=!i(e);if(a(e)){var u=e.entries();return t.every((function(e,t){var n=u.next().value;return n&&te(n[1],e)&&(s||te(n[0],t))}))&&u.next().done}var l=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{l=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate((function(t,n){if(s?!e.has(t):l?!te(t,e.get(n,g)):!te(e.get(n,g),t))return f=!1,!1}));return f&&e.size===d}function Repeat(e,t){if(!(this instanceof Repeat))return new Repeat(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(j)return j;j=this}}function re(e,t){if(!e)throw new Error(t)}function Range(e,t,n){if(!(this instanceof Range))return new Range(e,t,n);if(re(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(K)return K;K=this}}function Collection(){throw TypeError("Abstract")}function KeyedCollection(){}function IndexedCollection(){}function SetCollection(){}Seq.prototype[U]=!0,t(ArraySeq,IndexedSeq),ArraySeq.prototype.get=function(e,t){return this.has(e)?this._array[w(this,e)]:t},ArraySeq.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},ArraySeq.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new Iterator((function(){return o>r?I():R(e,o,n[t?r-o++:o++])}))},t(ObjectSeq,KeyedSeq),ObjectSeq.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ObjectSeq.prototype.has=function(e){return this._object.hasOwnProperty(e)},ObjectSeq.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ObjectSeq.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new Iterator((function(){var a=r[t?o-i:i];return i++>o?I():R(e,a,n[a])}))},ObjectSeq.prototype[c]=!0,t(IterableSeq,IndexedSeq),IterableSeq.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=L(this._iterable),r=0;if(N(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},IterableSeq.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=L(this._iterable);if(!N(n))return new Iterator(I);var r=0;return new Iterator((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t(IteratorSeq,IndexedSeq),IteratorSeq.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},IteratorSeq.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new Iterator((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(Repeat,IndexedSeq),Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(e,t){return this.has(e)?this._value:t},Repeat.prototype.includes=function(e){return te(this._value,e)},Repeat.prototype.slice=function(e,t){var n=this.size;return x(e,t,n)?this:new Repeat(this._value,E(t,n)-_(e,n))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(e){return te(this._value,e)?0:-1},Repeat.prototype.lastIndexOf=function(e){return te(this._value,e)?this.size:-1},Repeat.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},Repeat.prototype.__iterator=function(e,t){var n=this,r=0;return new Iterator((function(){return r<n.size?R(e,r++,n._value):I()}))},Repeat.prototype.equals=function(e){return e instanceof Repeat?te(this._value,e._value):ne(e)},t(Range,IndexedSeq),Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Range.prototype.get=function(e,t){return this.has(e)?this._start+w(this,e)*this._step:t},Range.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Range.prototype.slice=function(e,t){return x(e,t,this.size)?this:(e=_(e,this.size),(t=E(t,this.size))<=e?new Range(0,0):new Range(this.get(e,this._end),this.get(t,this._end),this._step))},Range.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Range.prototype.lastIndexOf=function(e){return this.indexOf(e)},Range.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Range.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new Iterator((function(){var a=o;return o+=t?-r:r,i>n?I():R(e,i++,a)}))},Range.prototype.equals=function(e){return e instanceof Range?this._start===e._start&&this._end===e._end&&this._step===e._step:ne(this,e)},t(Collection,Iterable),t(KeyedCollection,Collection),t(IndexedCollection,Collection),t(SetCollection,Collection),Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var oe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ie(e){return e>>>1&1073741824|3221225471&e}function ae(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return ie(n)}if("string"===t)return e.length>me?se(e):ue(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return ue(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function se(e){var t=we[e];return void 0===t&&(t=ue(e),be===ye&&(be=0,we={}),be++,we[e]=t),t}function ue(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ie(t)}function le(e){var t;if(he&&void 0!==(t=pe.get(e)))return t;if(void 0!==(t=e[ve]))return t;if(!fe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ve]))return t;if(void 0!==(t=de(e)))return t}if(t=++ge,1073741824&ge&&(ge=0),he)pe.set(e,t);else{if(void 0!==ce&&!1===ce(e))throw new Error("Non-extensible objects are not allowed as keys.");if(fe)Object.defineProperty(e,ve,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ve]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ve]=t}}return t}var ce=Object.isExtensible,fe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function de(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var pe,he="function"==typeof WeakMap;he&&(pe=new WeakMap);var ge=0,ve="__immutablehash__";"function"==typeof Symbol&&(ve=Symbol(ve));var me=16,ye=255,be=0,we={};function Se(e){re(e!==1/0,"Cannot perform this action with an infinite size.")}function Map(e){return null==e?qe():xe(e)&&!a(e)?e:qe().withMutations((function(t){var n=KeyedIterable(e);Se(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xe(e){return!(!e||!e[ke])}t(Map,KeyedCollection),Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Map.prototype.set=function(e,t){return Ye(this,e,t)},Map.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},Map.prototype.remove=function(e){return Ye(this,e,g)},Map.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},Map.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Map.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=st(this,an(e),t,n);return r===g?void 0:r},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qe()},Map.prototype.merge=function(){return rt(this,void 0,arguments)},Map.prototype.mergeWith=function(t){return rt(this,t,e.call(arguments,1))},Map.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,qe(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Map.prototype.mergeDeep=function(){return rt(this,ot,arguments)},Map.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return rt(this,it(t),n)},Map.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,qe(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Map.prototype.sort=function(e){return OrderedMap(Vt(this,e))},Map.prototype.sortBy=function(e,t){return OrderedMap(Vt(this,t,e))},Map.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Map.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)},Map.prototype.asImmutable=function(){return this.__ensureOwner()},Map.prototype.wasAltered=function(){return this.__altered},Map.prototype.__iterator=function(e,t){return new MapIterator(this,e,t)},Map.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Map.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?je(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Map.isMap=xe;var _e,ke="@@__IMMUTABLE_MAP__@@",Pe=Map.prototype;function ArrayMapNode(e,t){this.ownerID=e,this.entries=t}function BitmapIndexedNode(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function HashArrayMapNode(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function HashCollisionNode(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ValueNode(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function MapIterator(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ze(e._root)}function Ie(e,t){return R(e,t[0],t[1])}function ze(e,t){return{node:e,index:0,__prev:t}}function je(e,t,n,r){var o=Object.create(Pe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function qe(){return _e||(_e=je(0))}function Ye(e,t,n){var r,o;if(e._root){var i=MakeRef(v),a=MakeRef(m);if(r=Xe(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;o=1,r=new ArrayMapNode(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?je(o,r):qe()}function Xe(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===g?e:(SetRef(s),SetRef(a),new ValueNode(t,r,[o,i]))}function $e(e){return e.constructor===ValueNode||e.constructor===HashCollisionNode}function Qe(e,t,n,r,o){if(e.keyHash===r)return new HashCollisionNode(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&h,s=(0===n?r:r>>>n)&h;return new BitmapIndexedNode(t,1<<a|1<<s,a===s?[Qe(e,t,n+d,r,o)]:(i=new ValueNode(t,r,o),a<s?[e,i]:[i,e]))}function et(e,t,n,r){e||(e=new OwnerID);for(var o=new ValueNode(e,ae(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function tt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=u,a[i++]=c)}return new BitmapIndexedNode(e,o,a)}function nt(e,t,n,r,o){for(var i=0,a=new Array(p),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new HashArrayMapNode(e,i+1,a)}function rt(e,t,r){for(var o=[],i=0;i<r.length;i++){var a=r[i],s=KeyedIterable(a);n(a)||(s=s.map((function(e){return Q(e)}))),o.push(s)}return at(e,t,o)}function ot(e,t,r){return e&&e.mergeDeep&&n(t)?e.mergeDeep(t):te(e,t)?e:t}function it(e){return function(t,r,o){if(t&&t.mergeDeepWith&&n(r))return t.mergeDeepWith(e,r);var i=e(t,r,o);return te(t,i)?t:i}}function at(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,g,(function(e){return e===g?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function st(e,t,n,r){var o=e===g,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}re(o||e&&e.set,"invalid keyPath");var u=i.value,l=o?g:e.get(u,g),c=st(l,t,n,r);return c===l?e:c===g?e.remove(u):(o?qe():e).set(u,c)}function ut(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function lt(e,t,n,r){var o=r?e:y(e);return o[t]=n,o}function ct(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function ft(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Pe[ke]=!0,Pe[f]=Pe.remove,Pe.removeIn=Pe.deleteIn,ArrayMapNode.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(te(n,o[i][0]))return o[i][1];return r},ArrayMapNode.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===g,u=this.entries,l=0,c=u.length;l<c&&!te(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(SetRef(a),(s||!f)&&SetRef(i),!s||1!==u.length){if(!f&&!s&&u.length>=dt)return et(e,u,r,o);var d=e&&e===this.ownerID,p=d?u:y(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new ArrayMapNode(e,p)}},BitmapIndexedNode.prototype.get=function(e,t,n,r){void 0===t&&(t=ae(n));var o=1<<((0===e?t:t>>>e)&h),i=this.bitmap;return 0==(i&o)?r:this.nodes[ut(i&o-1)].get(e+d,t,n,r)},BitmapIndexedNode.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ae(r));var s=(0===t?n:n>>>t)&h,u=1<<s,l=this.bitmap,c=0!=(l&u);if(!c&&o===g)return this;var f=ut(l&u-1),p=this.nodes,v=c?p[f]:void 0,m=Xe(v,e,t+d,n,r,o,i,a);if(m===v)return this;if(!c&&m&&p.length>=pt)return nt(e,p,l,s,m);if(c&&!m&&2===p.length&&$e(p[1^f]))return p[1^f];if(c&&m&&1===p.length&&$e(m))return m;var y=e&&e===this.ownerID,b=c?m?l:l^u:l|u,w=c?m?lt(p,f,m,y):ft(p,f,y):ct(p,f,m,y);return y?(this.bitmap=b,this.nodes=w,this):new BitmapIndexedNode(e,b,w)},HashArrayMapNode.prototype.get=function(e,t,n,r){void 0===t&&(t=ae(n));var o=(0===e?t:t>>>e)&h,i=this.nodes[o];return i?i.get(e+d,t,n,r):r},HashArrayMapNode.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ae(r));var s=(0===t?n:n>>>t)&h,u=o===g,l=this.nodes,c=l[s];if(u&&!c)return this;var f=Xe(c,e,t+d,n,r,o,i,a);if(f===c)return this;var p=this.count;if(c){if(!f&&--p<ht)return tt(e,l,p,s)}else p++;var v=e&&e===this.ownerID,m=lt(l,s,f,v);return v?(this.count=p,this.nodes=m,this):new HashArrayMapNode(e,p,m)},HashCollisionNode.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(te(n,o[i][0]))return o[i][1];return r},HashCollisionNode.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ae(r));var s=o===g;if(n!==this.keyHash)return s?this:(SetRef(a),SetRef(i),Qe(this,e,t,n,[r,o]));for(var u=this.entries,l=0,c=u.length;l<c&&!te(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(SetRef(a),(s||!f)&&SetRef(i),s&&2===c)return new ValueNode(e,this.keyHash,u[1^l]);var d=e&&e===this.ownerID,p=d?u:y(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new HashCollisionNode(e,this.keyHash,p)},ValueNode.prototype.get=function(e,t,n,r){return te(n,this.entry[0])?this.entry[1]:r},ValueNode.prototype.update=function(e,t,n,r,o,i,a){var s=o===g,u=te(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(SetRef(a),s?void SetRef(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new ValueNode(e,this.keyHash,[r,o]):(SetRef(i),Qe(this,e,t,ae(r),[r,o])))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},ValueNode.prototype.iterate=function(e,t){return e(this.entry)},t(MapIterator,Iterator),MapIterator.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Ie(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Ie(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Ie(e,i.entry);t=this._stack=ze(i,t)}continue}t=this._stack=this._stack.__prev}return I()};var dt=p/4,pt=p/2,ht=p/4;function List(e){var t=_t();if(null==e)return t;if(gt(e))return e;var n=IndexedIterable(e),r=n.size;return 0===r?t:(Se(r),r>0&&r<p?xt(0,r,d,null,new VNode(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function gt(e){return!(!e||!e[vt])}t(List,IndexedCollection),List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(e,t){if((e=w(this,e))>=0&&e<this.size){var n=Ot(this,e+=this._origin);return n&&n.array[e&h]}return t},List.prototype.set=function(e,t){return Et(this,e,t)},List.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},List.prototype.insert=function(e,t){return this.splice(e,0,t)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=d,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):_t()},List.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Mt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},List.prototype.pop=function(){return Mt(this,0,-1)},List.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Mt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},List.prototype.shift=function(){return Mt(this,1)},List.prototype.merge=function(){return Dt(this,void 0,arguments)},List.prototype.mergeWith=function(t){return Dt(this,t,e.call(arguments,1))},List.prototype.mergeDeep=function(){return Dt(this,ot,arguments)},List.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Dt(this,it(t),n)},List.prototype.setSize=function(e){return Mt(this,0,e)},List.prototype.slice=function(e,t){var n=this.size;return x(e,t,n)?this:Mt(this,_(e,n),E(t,n))},List.prototype.__iterator=function(e,t){var n=0,r=St(this,t);return new Iterator((function(){var t=r();return t===wt?I():R(e,n++,t)}))},List.prototype.__iterate=function(e,t){for(var n,r=0,o=St(this,t);(n=o())!==wt&&!1!==e(n,r++,this););return r},List.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},List.isList=gt;var vt="@@__IMMUTABLE_LIST__@@",mt=List.prototype;function VNode(e,t){this.array=e,this.ownerID=t}mt[vt]=!0,mt[f]=mt.remove,mt.setIn=Pe.setIn,mt.deleteIn=mt.removeIn=Pe.removeIn,mt.update=Pe.update,mt.updateIn=Pe.updateIn,mt.mergeIn=Pe.mergeIn,mt.mergeDeepIn=Pe.mergeDeepIn,mt.withMutations=Pe.withMutations,mt.asMutable=Pe.asMutable,mt.asImmutable=Pe.asImmutable,mt.wasAltered=Pe.wasAltered,VNode.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&h;if(r>=this.array.length)return new VNode([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-d,n))===a&&i)return this}if(i&&!o)return this;var s=Ct(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},VNode.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&h;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-d,n))===i&&o===this.array.length-1)return this}var a=Ct(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var yt,bt,wt={};function St(e,t){var n=e._origin,r=e._capacity,o=Tt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):u(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,l=r-a;return l>p&&(l=p),function(){if(u===l)return wt;var e=t?--l:u++;return s&&s[e]}}function u(e,o,i){var s,u=e&&e.array,l=i>n?0:n-i>>o,c=1+(r-i>>o);return c>p&&(c=p),function(){for(;;){if(s){var e=s();if(e!==wt)return e;s=null}if(l===c)return wt;var n=t?--c:l++;s=a(u&&u[n],o-d,i+(n<<o))}}}}function xt(e,t,n,r,o,i,a){var s=Object.create(mt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function _t(){return yt||(yt=xt(0,0,d))}function Et(e,t,n){if((t=w(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Mt(e,t).set(0,n):Mt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=MakeRef(m);return t>=Tt(e._capacity)?r=kt(r,e.__ownerID,0,t,n,i):o=kt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,o,r):e}function kt(e,t,n,r,o,i){var a,s=r>>>n&h,u=e&&s<e.array.length;if(!u&&void 0===o)return e;if(n>0){var l=e&&e.array[s],c=kt(l,t,n-d,r,o,i);return c===l?e:((a=Ct(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(SetRef(i),a=Ct(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new VNode(e?e.array.slice():[],t)}function Ot(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<<e._level+d){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&h],r-=d;return n}}function Mt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new OwnerID,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new VNode(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=d);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Tt(i),p=Tt(s);p>=1<<u+d;)l=new VNode(l&&l.array.length?[l]:[],r),u+=d;var g=e._tail,v=p<f?Ot(e,s-1):p>f?new VNode([],r):g;if(g&&p>f&&a<i&&g.array.length){for(var m=l=Ct(l,r),y=u;y>d;y-=d){var b=f>>>y&h;m=m.array[b]=Ct(m.array[b],r)}m.array[f>>>d&h]=g}if(s<i&&(v=v&&v.removeAfter(r,0,s)),a>=p)a-=p,s-=p,u=d,l=null,v=v&&v.removeBefore(r,0,a);else if(a>o||p<f){for(c=0;l;){var w=a>>>u&h;if(w!==p>>>u&h)break;w&&(c+=(1<<u)*w),u-=d,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,u,a-c)),l&&p<f&&(l=l.removeAfter(r,u,p-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=v,e.__hash=void 0,e.__altered=!0,e):xt(a,s,u,l,v)}function Dt(e,t,r){for(var o=[],i=0,a=0;a<r.length;a++){var s=r[a],u=IndexedIterable(s);u.size>i&&(i=u.size),n(s)||(u=u.map((function(e){return Q(e)}))),o.push(u)}return i>e.size&&(e=e.setSize(i)),at(e,t,o)}function Tt(e){return e<p?0:e-1>>>d<<d}function OrderedMap(e){return null==e?It():Pt(e)?e:It().withMutations((function(t){var n=KeyedIterable(e);Se(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Pt(e){return xe(e)&&a(e)}function Rt(e,t,n,r){var o=Object.create(OrderedMap.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function It(){return bt||(bt=Rt(qe(),_t()))}function At(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===g){if(!u)return e;a.size>=p&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Rt(r,o)}function ToKeyedSequence(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ToIndexedSequence(e){this._iter=e,this.size=e.size}function ToSetSequence(e){this._iter=e,this.size=e.size}function FromEntriesSequence(e){this._iter=e,this.size=e.size}function Nt(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===M){var r=e.__iterator(t,n);return new Iterator((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===O?C:O,n)},t}function Lt(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,g);return i===g?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(M,o);return new Iterator((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return R(r,s,t.call(n,a[1],s,e),o)}))},r}function Bt(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Nt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Ft(e,t,n,r){var o=nn(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,g);return i!==g&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(M,i),s=0;return new Iterator((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return R(o,r?l:s++,c,i)}}))},o}function zt(e,t,n){var r=Map().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function jt(e,t,n){var o=r(e),i=(a(e)?OrderedMap():Map()).asMutable();e.__iterate((function(r,a){i.update(t.call(n,r,a,e),(function(e){return(e=e||[]).push(o?[a,r]:r),e}))}));var s=tn(e);return i.map((function(t){return Zt(e,s(t))}))}function Kt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),x(t,n,o))return e;var i=_(t,o),a=E(n,o);if(i!=i||a!=a)return Kt(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=nn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&q(e)&&s>=0&&(l.get=function(t,n){return(t=w(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new Iterator((function(){for(;a++<i;)o.next();if(++u>s)return I();var e=o.next();return r||t===O?e:R(t,u-1,t===C?void 0:e.value[1],e)}))},l}function Ut(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(M,o),s=!0;return new Iterator((function(){if(!s)return I();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===M?e:R(r,u,l,e):(s=!1,I())}))},r}function qt(e,t,n,r){var o=nn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(M,i),u=!0,l=0;return new Iterator((function(){var e,i,c;do{if((e=s.next()).done)return r||o===O?e:R(o,l++,o===C?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===M?e:R(o,i,c,e)}))},o}function Wt(e,t){var i=r(e),a=[e].concat(t).map((function(e){return n(e)?i&&(e=KeyedIterable(e)):e=i?H(e):G(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===a.length)return e;if(1===a.length){var s=a[0];if(s===e||i&&r(s)||o(e)&&o(s))return s}var u=new ArraySeq(a);return i?u=u.toKeyedSeq():o(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=a.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function Ht(e,t,r){var o=nn(e);return o.__iterateUncached=function(o,i){var a=0,s=!1;function u(e,l){var c=this;e.__iterate((function(e,i){return(!t||l<t)&&n(e)?u(e,l+1):!1===o(e,r?i:a++,c)&&(s=!0),!s}),i)}return u(e,0),a},o.__iteratorUncached=function(o,i){var a=e.__iterator(o,i),s=[],u=0;return new Iterator((function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(o===M&&(l=l[1]),t&&!(s.length<t)||!n(l))return r?e:R(o,u++,l,e);s.push(a),a=l.__iterator(o,i)}else a=s.pop()}return I()}))},o}function Gt(e,t,n){var r=tn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function Yt(e,t){var n=nn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(O,r),a=0;return new Iterator((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?R(n,a++,t):R(n,a++,o.value,o)}))},n}function Vt(e,t,n){t||(t=on);var i=r(e),a=0,s=e.toSeq().map((function(t,r){return[r,t,a++,n?n(t,r,e):t]})).toArray();return s.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(i?function(e,t){s[t].length=2}:function(e,t){s[t]=e[1]}),i?KeyedSeq(s):o(e)?IndexedSeq(s):SetSeq(s)}function Xt(e,t,n){if(t||(t=on),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return $t(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return $t(t,e,n)?n:e}))}function $t(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Qt(e,t,n){var r=nn(e);return r.size=new ArraySeq(n).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,r=this.__iterator(O,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},r.__iteratorUncached=function(e,r){var o=n.map((function(e){return e=Iterable(e),L(r?e.reverse():e)})),i=0,a=!1;return new Iterator((function(){var n;return a||(n=o.map((function(e){return e.next()})),a=n.some((function(e){return e.done}))),a?I():R(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function Zt(e,t){return q(e)?t:e.constructor(t)}function Jt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return Se(e.size),b(e)}function tn(e){return r(e)?KeyedIterable:o(e)?IndexedIterable:SetIterable}function nn(e){return Object.create((r(e)?KeyedSeq:o(e)?IndexedSeq:SetSeq).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function on(e,t){return e>t?1:e<t?-1:0}function an(e){var t=L(e);if(!t){if(!F(e))throw new TypeError("Expected iterable or array-like: "+e);t=L(Iterable(e))}return t}function Record(e,t){var n,r=function Record(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);cn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Map(i)},o=r.prototype=Object.create(sn);return o.constructor=r,r}t(OrderedMap,Map),OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):It()},OrderedMap.prototype.set=function(e,t){return At(this,e,t)},OrderedMap.prototype.remove=function(e){return At(this,e,g)},OrderedMap.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},OrderedMap.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},OrderedMap.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},OrderedMap.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Rt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},OrderedMap.isOrderedMap=Pt,OrderedMap.prototype[c]=!0,OrderedMap.prototype[f]=OrderedMap.prototype.remove,t(ToKeyedSequence,KeyedSeq),ToKeyedSequence.prototype.get=function(e,t){return this._iter.get(e,t)},ToKeyedSequence.prototype.has=function(e){return this._iter.has(e)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},ToKeyedSequence.prototype.map=function(e,t){var n=this,r=Lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},ToKeyedSequence.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?en(this):0,function(o){return e(o,t?--n:n++,r)}),t)},ToKeyedSequence.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(O,t),r=t?en(this):0;return new Iterator((function(){var o=n.next();return o.done?o:R(e,t?--r:r++,o.value,o)}))},ToKeyedSequence.prototype[c]=!0,t(ToIndexedSequence,IndexedSeq),ToIndexedSequence.prototype.includes=function(e){return this._iter.includes(e)},ToIndexedSequence.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},ToIndexedSequence.prototype.__iterator=function(e,t){var n=this._iter.__iterator(O,t),r=0;return new Iterator((function(){var t=n.next();return t.done?t:R(e,r++,t.value,t)}))},t(ToSetSequence,SetSeq),ToSetSequence.prototype.has=function(e){return this._iter.includes(e)},ToSetSequence.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},ToSetSequence.prototype.__iterator=function(e,t){var n=this._iter.__iterator(O,t);return new Iterator((function(){var t=n.next();return t.done?t:R(e,t.value,t.value,t)}))},t(FromEntriesSequence,KeyedSeq),FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){if(t){Jt(t);var o=n(t);return e(o?t.get(1):t[1],o?t.get(0):t[0],r)}}),t)},FromEntriesSequence.prototype.__iterator=function(e,t){var r=this._iter.__iterator(O,t);return new Iterator((function(){for(;;){var t=r.next();if(t.done)return t;var o=t.value;if(o){Jt(o);var i=n(o);return R(e,i?o.get(0):o[0],i?o.get(1):o[1],t)}}}))},ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=rn,t(Record,KeyedCollection),Record.prototype.toString=function(){return this.__toString(ln(this)+" {","}")},Record.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Record.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Record.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=un(this,qe()))},Record.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+ln(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:un(this,n)},Record.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:un(this,t)},Record.prototype.wasAltered=function(){return this._map.wasAltered()},Record.prototype.__iterator=function(e,t){var n=this;return KeyedIterable(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Record.prototype.__iterate=function(e,t){var n=this;return KeyedIterable(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Record.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?un(this,t,e):(this.__ownerID=e,this._map=t,this)};var sn=Record.prototype;function un(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function ln(e){return e._name||e.constructor.name||"Record"}function cn(e,t){try{t.forEach(fn.bind(void 0,e))}catch(e){}}function fn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){re(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Set(e){return null==e?yn():dn(e)&&!a(e)?e:yn().withMutations((function(t){var n=SetIterable(e);Se(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return!(!e||!e[hn])}sn[f]=sn.remove,sn.deleteIn=sn.removeIn=Pe.removeIn,sn.merge=Pe.merge,sn.mergeWith=Pe.mergeWith,sn.mergeIn=Pe.mergeIn,sn.mergeDeep=Pe.mergeDeep,sn.mergeDeepWith=Pe.mergeDeepWith,sn.mergeDeepIn=Pe.mergeDeepIn,sn.setIn=Pe.setIn,sn.update=Pe.update,sn.updateIn=Pe.updateIn,sn.withMutations=Pe.withMutations,sn.asMutable=Pe.asMutable,sn.asImmutable=Pe.asImmutable,t(Set,SetCollection),Set.of=function(){return this(arguments)},Set.fromKeys=function(e){return this(KeyedIterable(e).keySeq())},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(e){return this._map.has(e)},Set.prototype.add=function(e){return vn(this,this._map.set(e,!0))},Set.prototype.remove=function(e){return vn(this,this._map.remove(e))},Set.prototype.clear=function(){return vn(this,this._map.clear())},Set.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)SetIterable(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Set.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return SetIterable(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Set.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return SetIterable(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Set.prototype.merge=function(){return this.union.apply(this,arguments)},Set.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Set.prototype.sort=function(e){return OrderedSet(Vt(this,e))},Set.prototype.sortBy=function(e,t){return OrderedSet(Vt(this,t,e))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Set.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Set.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Set.isSet=dn;var pn,hn="@@__IMMUTABLE_SET__@@",gn=Set.prototype;function vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function mn(e,t){var n=Object.create(gn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function yn(){return pn||(pn=mn(qe()))}function OrderedSet(e){return null==e?_n():bn(e)?e:_n().withMutations((function(t){var n=SetIterable(e);Se(n.size),n.forEach((function(e){return t.add(e)}))}))}function bn(e){return dn(e)&&a(e)}gn[hn]=!0,gn[f]=gn.remove,gn.mergeDeep=gn.merge,gn.mergeDeepWith=gn.mergeWith,gn.withMutations=Pe.withMutations,gn.asMutable=Pe.asMutable,gn.asImmutable=Pe.asImmutable,gn.__empty=yn,gn.__make=mn,t(OrderedSet,Set),OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(e){return this(KeyedIterable(e).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet.isOrderedSet=bn;var wn,Sn=OrderedSet.prototype;function xn(e,t){var n=Object.create(Sn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function _n(){return wn||(wn=xn(It()))}function Stack(e){return null==e?Dn():En(e)?e:Dn().unshiftAll(e)}function En(e){return!(!e||!e[Cn])}Sn[c]=!0,Sn.__empty=_n,Sn.__make=xn,t(Stack,IndexedCollection),Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(e,t){var n=this._head;for(e=w(this,e);n&&e--;)n=n.next;return n?n.value:t},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Mn(e,t)},Stack.prototype.pushAll=function(e){if(0===(e=IndexedIterable(e)).size)return this;Se(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mn(t,n)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.unshift=function(){return this.push.apply(this,arguments)},Stack.prototype.unshiftAll=function(e){return this.pushAll(e)},Stack.prototype.shift=function(){return this.pop.apply(this,arguments)},Stack.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dn()},Stack.prototype.slice=function(e,t){if(x(e,t,this.size))return this;var n=_(e,this.size);if(E(t,this.size)!==this.size)return IndexedCollection.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Mn(r,o)},Stack.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Stack.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Stack.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new Iterator((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return I()}))},Stack.isStack=En;var kn,Cn="@@__IMMUTABLE_STACK__@@",On=Stack.prototype;function Mn(e,t,n,r){var o=Object.create(On);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return kn||(kn=Mn(0))}function Tn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}On[Cn]=!0,On.withMutations=Pe.withMutations,On.asMutable=Pe.asMutable,On.asImmutable=Pe.asImmutable,On.wasAltered=Pe.wasAltered,Iterable.Iterator=Iterator,Tn(Iterable,{toArray:function(){Se(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map(this.toKeyedSeq())},toObject:function(){Se(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(r(this)?this.valueSeq():this)},toSet:function(){return Set(r(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return o(this)?this.toIndexedSeq():r(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(r(this)?this.valueSeq():this)},toList:function(){return List(r(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Zt(this,Wt(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return te(t,e)}))},entries:function(){return this.__iterator(M)},every:function(e,t){Se(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Zt(this,Ft(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Se(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Se(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(C)},map:function(e,t){return Zt(this,Lt(this,e,t))},reduce:function(e,t,n){var r,o;return Se(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Zt(this,Bt(this,!0))},slice:function(e,t){return Zt(this,Kt(this,e,t,!0))},some:function(e,t){return!this.every(Nn(e),t)},sort:function(e){return Zt(this,Vt(this,e))},values:function(){return this.__iterator(O)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return b(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return zt(this,e,t)},equals:function(e){return ne(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ArraySeq(e._cache);var t=e.toSeq().map(An).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Nn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(S)},flatMap:function(e,t){return Zt(this,Gt(this,e,t))},flatten:function(e){return Zt(this,Ht(this,e,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(e,t){return this.find((function(t,n){return te(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=an(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,g):g)===g)return t}return r},groupBy:function(e,t){return jt(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:Iterable(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:Iterable(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(In).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Xt(this,e)},maxBy:function(e,t){return Xt(this,t,e)},min:function(e){return Xt(this,e?Ln(e):zn)},minBy:function(e,t){return Xt(this,t?Ln(t):zn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Zt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Zt(this,qt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Nn(e),t)},sortBy:function(e,t){return Zt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Zt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Zt(this,Ut(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Nn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=jn(this))}});var Pn=Iterable.prototype;Pn[s]=!0,Pn[P]=Pn.values,Pn.__toJS=Pn.toArray,Pn.__toStringMapper=Bn,Pn.inspect=Pn.toSource=function(){return this.toString()},Pn.chain=Pn.flatMap,Pn.contains=Pn.includes,function(){try{Object.defineProperty(Pn,"length",{get:function(){if(!Iterable.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tn(KeyedIterable,{flip:function(){return Zt(this,Nt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return te(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return te(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Zt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Zt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Rn=KeyedIterable.prototype;function In(e,t){return t}function An(e,t){return[t,e]}function Nn(e){return function(){return!e.apply(this,arguments)}}function Ln(e){return function(){return-e.apply(this,arguments)}}function Bn(e){return"string"==typeof e?JSON.stringify(e):e}function Fn(){return y(arguments)}function zn(e,t){return e<t?1:e>t?-1:0}function jn(e){if(e.size===1/0)return 0;var t=a(e),n=r(e),o=t?1:0;return Kn(e.__iterate(n?t?function(e,t){o=31*o+Un(ae(e),ae(t))|0}:function(e,t){o=o+Un(ae(e),ae(t))|0}:t?function(e){o=31*o+ae(e)|0}:function(e){o=o+ae(e)|0}),o)}function Kn(e,t){return t=oe(t,3432918353),t=oe(t<<15|t>>>-15,461845907),t=oe(t<<13|t>>>-13,5),t=oe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=ie((t=oe(t^t>>>13,3266489909))^t>>>16)}function Un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Rn[u]=!0,Rn[P]=Pn.entries,Rn.__toJS=Pn.toObject,Rn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Bn(e)},Tn(IndexedIterable,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(e,t){return Zt(this,Ft(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Zt(this,Bt(this,!1))},slice:function(e,t){return Zt(this,Kt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return Zt(this,1===n?r:r.concat(y(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Zt(this,Ht(this,e,!1))},get:function(e,t){return(e=w(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=w(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Zt(this,Yt(this,e))},interleave:function(){var e=[this].concat(y(arguments)),t=Qt(this.toSeq(),IndexedSeq.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Zt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Zt(this,qt(this,e,t,!1))},zip:function(){return Zt(this,Qt(this,Fn,[this].concat(y(arguments))))},zipWith:function(e){var t=y(arguments);return t[0]=this,Zt(this,Qt(this,e,t))}}),IndexedIterable.prototype[l]=!0,IndexedIterable.prototype[c]=!0,Tn(SetIterable,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),SetIterable.prototype.has=Pn.includes,Tn(KeyedSeq,KeyedIterable.prototype),Tn(IndexedSeq,IndexedIterable.prototype),Tn(SetSeq,SetIterable.prototype),Tn(KeyedCollection,KeyedIterable.prototype),Tn(IndexedCollection,IndexedIterable.prototype),Tn(SetCollection,SetIterable.prototype),{Iterable,Seq,Collection,Map,OrderedMap,List,Stack,Set,OrderedSet,Record,Range,Repeat,is:te,fromJS:Q}}()},42441:(e,t,n)=>{var r;!function(o,i,a){if(o){for(var s,u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)u[111+d]="f"+d;for(d=0;d<=9;++d)u[d+96]=d.toString();Mousetrap.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},Mousetrap.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},Mousetrap.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},Mousetrap.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},Mousetrap.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},Mousetrap.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},Mousetrap.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t]);s=null},Mousetrap.init=function(){var e=Mousetrap(i);for(var t in e)"_"!==t.charAt(0)&&(Mousetrap[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},Mousetrap.init(),o.Mousetrap=Mousetrap,e.exports&&(e.exports=Mousetrap),void 0===(r=function(){return Mousetrap}.call(t,n,t,e))||(e.exports=r)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return u[e.which]?u[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!s)for(var e in s={},u)e>95&&e<112||u.hasOwnProperty(e)&&(s[u[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],f[r]&&(r=f[r]),t&&"keypress"!=t&&c[r]&&(r=c[r],i.push("shift")),g(r)&&i.push(r);return{key:r,modifiers:i,action:t=v(r,i,t)}}function y(e,t){return null!==e&&e!==i&&(e===t||y(e.parentNode,t))}function Mousetrap(e){var t=this;if(e=e||i,!(t instanceof Mousetrap))return new Mousetrap(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,s=!1;function u(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function l(e,n,o,i,a,s){var u,l,c,f,d=[],p=o.type;if(!t._callbacks[e])return[];for("keyup"==p&&g(e)&&(n=[e]),u=0;u<t._callbacks[e].length;++u)if(l=t._callbacks[e][u],(i||!l.seq||r[l.seq]==l.level)&&p==l.action&&("keypress"==p&&!o.metaKey&&!o.ctrlKey||(c=n,f=l.modifiers,c.sort().join(",")===f.sort().join(",")))){var h=!i&&l.combo==a,v=i&&l.seq==i&&l.level==s;(h||v)&&t._callbacks[e].splice(u,1),d.push(l)}return d}function c(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function f(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function d(e,t,i,a){function l(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(u,1e3)}}function f(t){c(i,t,e),"keyup"!==a&&(o=h(t)),setTimeout(u,10)}r[e]=0;for(var d=0;d<t.length;++d){var p=d+1===t.length?f:l(a||m(t[d+1]).action);v(t[d],p,a,e,d)}}function v(e,n,r,o,i){t._directMap[e+":"+r]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?d(e,s,n,r):(a=m(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],l(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=l(e,t,n),i={},f=0,d=!1;for(r=0;r<o.length;++r)o[r].seq&&(f=Math.max(f,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=f)continue;d=!0,i[o[r].seq]=1,c(o[r].callback,n,o[r].combo,o[r].seq)}else d||c(o[r].callback,n,o[r].combo);var p="keypress"==n.type&&a;n.type!=s||g(e)||p||u(i),a=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},p(e,"keypress",f),p(e,"keydown",f),p(e,"keyup",f)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},27418: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,s,u=o(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(u[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},92703:(e,t,n)=>{"use strict";var r=n(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},38698:(e,t,n)=>{"use strict";var r=n(27418),o=n(67294);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 a=60106,s=60107,u=60108,l=60114,c=60109,f=60110,d=60112,p=60113,h=60120,g=60115,v=60116,m=60121,y=60117,b=60119,w=60129,S=60131;if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;a=x("react.portal"),s=x("react.fragment"),u=x("react.strict_mode"),l=x("react.profiler"),c=x("react.provider"),f=x("react.context"),d=x("react.forward_ref"),p=x("react.suspense"),h=x("react.suspense_list"),g=x("react.memo"),v=x("react.lazy"),m=x("react.block"),y=x("react.fundamental"),b=x("react.scope"),w=x("react.debug_trace_mode"),S=x("react.legacy_hidden")}function _(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 s:return"Fragment";case a:return"Portal";case l:return"Profiler";case u:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return(e.displayName||"Context")+".Consumer";case c:return(e._context.displayName||"Context")+".Provider";case d:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case g:return _(e.type);case m:return _(e._render);case v:t=e._payload,e=e._init;try{return _(e(t))}catch(e){}}return null}var E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k={};function C(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var O=new Uint16Array(16),M=0;15>M;M++)O[M]=M+1;O[15]=0;var D=/^[: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]*$/,T=Object.prototype.hasOwnProperty,P={},R={};function I(e){return!!T.call(R,e)||!T.call(P,e)&&(D.test(e)?R[e]=!0:(P[e]=!0,!1))}function A(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){N[e]=new A(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];N[t]=new A(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){N[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){N[e]=new A(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){N[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){N[e]=new A(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){N[e]=new A(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){N[e]=new A(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){N[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)}));var L=/[\-:]([a-z])/g;function B(e){return e[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(e){var t=e.replace(L,B);N[t]=new A(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(L,B);N[t]=new A(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(L,B);N[t]=new A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){N[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)})),N.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){N[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)}));var F=/["'&<>]/;function z(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=F.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function j(e,t){var n,r=N.hasOwnProperty(e)?N[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+z(t)+'"')):I(e)?e+'="'+z(t)+'"':""}var K="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,q=null,W=null,H=!1,G=!1,Y=null,V=0;function X(){if(null===U)throw Error(i(321));return U}function Ba(){if(0<V)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Ca(){return null===W?null===q?(H=!1,q=W=Ba()):(H=!0,W=q):null===W.next?(H=!1,W=W.next=Ba()):(H=!0,W=W.next),W}function Da(e,t,n,r){for(;G;)G=!1,V+=1,W=null,n=e(t,r);return Ea(),n}function Ea(){U=null,G=!1,q=null,V=0,W=Y=null}function Fa(e,t){return"function"==typeof t?t(e):t}function Ga(e,t,n){if(U=X(),W=Ca(),H){var r=W.queue;if(t=r.dispatch,null!==Y&&void 0!==(n=Y.get(r))){Y.delete(r),r=W.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return W.memoizedState=r,[r,t]}return[W.memoizedState,t]}return e=e===Fa?"function"==typeof t?t():t:void 0!==n?n(t):t,W.memoizedState=e,e=(e=W.queue={last:null,dispatch:null}).dispatch=Ha.bind(null,U,e),[W.memoizedState,e]}function Ia(e,t){if(U=X(),t=void 0===t?null:t,null!==(W=Ca())){var n=W.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!K(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),W.memoizedState=[e,t],e}function Ha(e,t,n){if(!(25>V))throw Error(i(301));if(e===U)if(G=!0,e={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(t)))Y.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ja(){}var $=null,Q={readContext:function(e){var t=$.threadID;return C(e,t),e[t]},useContext:function(e){X();var t=$.threadID;return C(e,t),e[t]},useMemo:Ia,useReducer:Ga,useRef:function(e){U=X();var t=(W=Ca()).memoizedState;return null===t?(e={current:e},W.memoizedState=e):t},useState:function(e){return Ga(Fa,e)},useLayoutEffect:function(){},useCallback:function(e,t){return Ia((function(){return e}),t)},useImperativeHandle:Ja,useEffect:Ja,useDebugValue:Ja,useDeferredValue:function(e){return X(),e},useTransition:function(){return X(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return($.identifierPrefix||"")+"R:"+($.uniqueID++).toString(36)},useMutableSource:function(e,t){return X(),t(e._source)}},Z="http://www.w3.org/1999/xhtml";function Ma(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"}}var J={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},ee=r({menuitem:!0},J),te={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},ne=["Webkit","ms","Moz","O"];Object.keys(te).forEach((function(e){ne.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),te[t]=te[e]}))}));var re=/([A-Z])/g,oe=/^ms-/,ie=o.Children.toArray,ae=E.ReactCurrentDispatcher,se={listing:!0,pre:!0,textarea:!0},ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,le={},ce={};var fe=Object.prototype.hasOwnProperty,de={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function pe(e,t){if(void 0===e)throw Error(i(152,_(t)||"Component"))}function he(e,t,n){function a(o,a){var s=a.prototype&&a.prototype.isReactComponent,u=function(e,t,n,r){if(r&&"object"==typeof(r=e.contextType)&&null!==r)return C(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=k;return t}(a,t,n,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(e,t){c=!0,l=[t]},enqueueSetState:function(e,t){if(null===l)return null;l.push(t)}};if(s){if(s=new a(o.props,u,f),"function"==typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,o.props,s.state);null!=d&&(s.state=r({},s.state,d))}}else if(U={},s=a(o.props,u,f),null==(s=Da(a,o.props,s,u))||null==s.render)return void pe(e=s,a);if(s.props=o.props,s.context=u,s.updater=f,void 0===(f=s.state)&&(s.state=f=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var p=c;if(l=null,c=!1,p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p<f.length;p++){var g=f[p];null!=(g="function"==typeof g?g.call(s,d,o.props,u):g)&&(h?(h=!1,d=r({},d,g)):r(d,g))}s.state=d}}else l=null;if(pe(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(o=a.childContextTypes)){var v=s.getChildContext();for(var m in v)if(!(m in o))throw Error(i(108,_(a)||"Unknown",m))}v&&(t=r({},t,v))}for(;o.isValidElement(e);){var s=e,u=s.type;if("function"!=typeof u)break;a(s,u)}return{child:e,context:t}}var ge=function(){function e(e,t,n){o.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:ie(e)):e=ie(e),e={type:null,domNamespace:Z,children:e,childIndex:0,context:k,footer:""};var r=O[0];if(0===r){var a=O,u=2*(r=a.length);if(!(65536>=u))throw Error(i(304));var l=new Uint16Array(u);for(l.set(a),(O=l)[0]=r+1,a=r;a<u-1;a++)O[a]=a+1;O[u-1]=0}else O[0]=O[r];this.threadID=r,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;O[e]=O[0],O[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,r=this.threadID;C(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=$;$=this;var n=ae.current;ae.current=Q;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;O[a]=O[0],O[0]=a;break}var s=this.stack[this.stack.length-1];if(o||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===c)this.popProvider(s.type);else if(s.type===p){this.suspenseDepth--;var l=r.pop();if(o){o=!1;var f=s.fallbackFrame;if(!f)throw Error(i(303));this.stack.push(f),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=l}r[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],h="";try{h+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=h}}return r[0]}finally{ae.current=n,$=t,Ea()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?z(n):this.previousWasTextNode?"\x3c!-- --\x3e"+z(n):(this.previousWasTextNode=!0,z(n));if(e=(t=he(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=ie(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var m=e.type;if("string"==typeof m)return this.renderDOM(e,t,n);switch(m){case S:case w:case u:case l:case h:case s:return e=ie(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:throw Error(i(294));case b:throw Error(i(343))}if("object"==typeof m&&null!==m)switch(m.$$typeof){case d:U={};var x=m.render(e.props,e.ref);return x=Da(m.render,e.props,x,e.ref),x=ie(x),this.stack.push({type:null,domNamespace:n,children:x,childIndex:0,context:t,footer:""}),"";case g:return e=[o.createElement(m.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case c:return n={type:e,domNamespace:n,children:m=ie(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:m=e.type,x=e.props;var _=this.threadID;return C(m,_),m=ie(x.children(m[_])),this.stack.push({type:e,domNamespace:n,children:m,childIndex:0,context:t,footer:""}),"";case y:throw Error(i(338));case v:return m=(x=(m=e.type)._init)(m._payload),e=[o.createElement(m,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(i(130,null==m?m:typeof m,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===Z&&Ma(a),!le.hasOwnProperty(a)){if(!ue.test(a))throw Error(i(65,a));le[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var u=s.value;if(null==u){u=s.defaultValue;var l=s.children;if(null!=l){if(null!=u)throw Error(i(92));if(Array.isArray(l)){if(!(1>=l.length))throw Error(i(93));l=l[0]}u=""+l}null==u&&(u="")}s=r({},s,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){l=this.currentSelectValue;var c=function Xa(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=l){var f=null!=s.value?s.value+"":c;if(u=!1,Array.isArray(l)){for(var d=0;d<l.length;d++)if(""+l[d]===f){u=!0;break}}else u=""+l===f;s=r({selected:void 0,children:void 0},s,{selected:u,children:c})}}if(u=s){if(ee[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(i(137,a));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(i(60));if("object"!=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(i(62))}u=s,l=this.makeStaticMarkup,c=1===this.stack.length,f="<"+e.type;e:if(-1===a.indexOf("-"))d="string"==typeof u.is;else 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":d=!1;break e;default:d=!0}for(S in u)if(fe.call(u,S)){var p=u[S];if(null!=p){if("style"===S){var h=void 0,g="",v="";for(h in p)if(p.hasOwnProperty(h)){var m=0===h.indexOf("--"),y=p[h];if(null!=y){if(m)var b=h;else if(b=h,ce.hasOwnProperty(b))b=ce[b];else{var w=b.replace(re,"-$1").toLowerCase().replace(oe,"-ms-");b=ce[b]=w}g+=v+b+":",v=h,g+=m=null==y||"boolean"==typeof y||""===y?"":m||"number"!=typeof y||0===y||te.hasOwnProperty(v)&&te[v]?(""+y).trim():y+"px",v=";"}}p=g||null}h=null,d?de.hasOwnProperty(S)||(h=I(h=S)&&null!=p?h+'="'+z(p)+'"':""):h=j(S,p),h&&(f+=" "+h)}}l||c&&(f+=' data-reactroot=""');var S=f;u="",J.hasOwnProperty(a)?S+="/>":(S+=">",u="</"+e.type+">");e:{if(null!=(l=s.dangerouslySetInnerHTML)){if(null!=l.__html){l=l.__html;break e}}else if("string"==typeof(l=s.children)||"number"==typeof l){l=z(l);break e}l=null}return null!=l?(s=[],se.hasOwnProperty(a)&&"\n"===l.charAt(0)&&(S+="\n"),S+=l):s=ie(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?Ma(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:u}),this.previousWasTextNode=!1,S},e}();t.renderToStaticMarkup=function(e,t){e=new ge(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}}},64448:(e,t,n)=>{"use strict";var r=n(67294),o=n(27418),i=n(63840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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(a(227));var s=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[: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]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(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){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(g,e)||!p.call(h,e)&&(d.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(y,b);m[t]=new v(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(y,b);m[t]=new v(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(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,_=60106,E=60107,k=60108,C=60114,O=60109,M=60110,D=60112,T=60113,P=60120,R=60115,I=60116,A=60121,N=60128,L=60129,B=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;x=z("react.element"),_=z("react.portal"),E=z("react.fragment"),k=z("react.strict_mode"),C=z("react.profiler"),O=z("react.provider"),M=z("react.context"),D=z("react.forward_ref"),T=z("react.suspense"),P=z("react.suspense_list"),R=z("react.memo"),I=z("react.lazy"),A=z("react.block"),z("react.scope"),N=z("react.opaque.id"),L=z("react.debug_trace_mode"),B=z("react.offscreen"),F=z("react.legacy_hidden")}var j,K="function"==typeof Symbol&&Symbol.iterator;function La(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=K&&e[K]||e["@@iterator"])?e:null}function Na(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var U=!1;function Pa(e,t){if(!e||U)return"";U=!0;var n=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 o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Na(e):""}function Qa(e){switch(e.tag){case 5:return Na(e.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return e=Pa(e.type,!1);case 11:return e=Pa(e.type.render,!1);case 22:return e=Pa(e.type._render,!1);case 1:return e=Pa(e.type,!0);default:return""}}function Ra(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 E:return"Fragment";case _:return"Portal";case C:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case M:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return Ra(e.type);case A:return Ra(e._render);case I:t=e._payload,e=e._init;try{return Ra(e(t))}catch(e){}}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ta(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Va(e){e._valueTracker||(e._valueTracker=function Ua(e){var t=Ta(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ta(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Xa(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 Ya(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Za(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Sa(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function q(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function W(e,t){q(e,t);var n=Sa(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?G(e,t.type,n):t.hasOwnProperty("defaultValue")&&G(e,t.type,Sa(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function H(e,t,n){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,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function G(e,t,n){"number"===t&&Xa(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Y(e,t){return e=o({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 V(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sa(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function X(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function Q(e,t){var n=Sa(t.value),r=Sa(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Z(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var J="http://www.w3.org/1999/xhtml",ee="http://www.w3.org/2000/svg";function te(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 ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?te(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var re,oe,ie=(oe=function(e,t){if(e.namespaceURI!==ee||"innerHTML"in e)e.innerHTML=t;else{for((re=re||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=re.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return oe(e,t)}))}:oe);function ae(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var se={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},ue=["Webkit","ms","Moz","O"];function le(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||se.hasOwnProperty(e)&&se[e]?(""+t).trim():t+"px"}function ce(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=le(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(se).forEach((function(e){ue.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),se[t]=se[e]}))}));var fe=o({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 de(e,t){if(t){if(fe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function pe(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 he(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ge=null,ve=null,me=null;function Bb(e){if(e=Cb(e)){if("function"!=typeof ge)throw Error(a(280));var t=e.stateNode;t&&(t=Db(t),ge(e.stateNode,e.type,t))}}function Eb(e){ve?me?me.push(e):me=[e]:ve=e}function Fb(){if(ve){var e=ve,t=me;if(me=ve=null,Bb(e),t)for(e=0;e<t.length;e++)Bb(t[e])}}function Gb(e,t){return e(t)}function Hb(e,t,n,r,o){return e(t,n,r,o)}function Ib(){}var ye=Gb,be=!1,we=!1;function Mb(){null===ve&&null===me||(Ib(),Fb())}function Ob(e,t){var n=e.stateNode;if(null===n)return null;var r=Db(n);if(null===r)return null;n=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(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Se=!1;if(f)try{var xe={};Object.defineProperty(xe,"passive",{get:function(){Se=!0}}),window.addEventListener("test",xe,xe),window.removeEventListener("test",xe,xe)}catch(oe){Se=!1}function Rb(e,t,n,r,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var _e=!1,ke=null,Pe=!1,Ie=null,ze={onError:function(e){_e=!0,ke=e}};function Xb(e,t,n,r,o,i,a,s,u){_e=!1,ke=null,Rb.apply(ze,arguments)}function Zb(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function je(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 qe(e){if(Zb(e)!==e)throw Error(a(188))}function Ye(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Zb(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return qe(o),e;if(i===r)return qe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!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}function Xe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var $e,Qe,et,tt,nt=!1,rt=[],ot=null,it=null,at=null,st=new Map,ut=new Map,lt=[],ct="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 ft(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function dt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function pt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ft(t,n,r,o,i),null!==t&&(null!==(t=Cb(t))&&Qe(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function ht(e){var t=Cr(e.target);if(null!==t){var n=Zb(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=je(n)))return e.blockedOn=t,void tt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){et(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ft(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Cb(n))&&Qe(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function Ac(){for(nt=!1;0<rt.length;){var e=rt[0];if(null!==e.blockedOn){null!==(e=Cb(e.blockedOn))&&$e(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ft(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&rt.shift()}null!==ot&>(ot)&&(ot=null),null!==it&>(it)&&(it=null),null!==at&>(at)&&(at=null),st.forEach(vt),ut.forEach(vt)}function Bc(e,t){e.blockedOn===t&&(e.blockedOn=null,nt||(nt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ac)))}function Cc(e){function t(t){return Bc(t,e)}if(0<rt.length){Bc(rt[0],e);for(var n=1;n<rt.length;n++){var r=rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&Bc(ot,e),null!==it&&Bc(it,e),null!==at&&Bc(at,e),st.forEach(t),ut.forEach(t),n=0;n<lt.length;n++)(r=lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&null===(n=lt[0]).blockedOn;)ht(n),null===n.blockedOn&<.shift()}function Dc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mt={animationend:Dc("Animation","AnimationEnd"),animationiteration:Dc("Animation","AnimationIteration"),animationstart:Dc("Animation","AnimationStart"),transitionend:Dc("Transition","TransitionEnd")},yt={},bt={};function Hc(e){if(yt[e])return yt[e];if(!mt[e])return e;var t,n=mt[e];for(t in n)if(n.hasOwnProperty(t)&&t in bt)return yt[e]=n[t];return e}f&&(bt=document.createElement("div").style,"AnimationEvent"in window||(delete mt.animationend.animation,delete mt.animationiteration.animation,delete mt.animationstart.animation),"TransitionEvent"in window||delete mt.transitionend.transition);var wt=Hc("animationend"),St=Hc("animationiteration"),xt=Hc("animationstart"),_t=Hc("transitionend"),Et=new Map,kt=new Map,Ct=["abort","abort",wt,"animationEnd",St,"animationIteration",xt,"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",_t,"transitionEnd","waiting","waiting"];function Pc(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),kt.set(r,t),Et.set(r,o),l(o,[r])}}(0,i.unstable_now)();var Ot=8;function Rc(e){if(0!=(1&e))return Ot=15,1;if(0!=(2&e))return Ot=14,2;if(0!=(4&e))return Ot=13,4;var t=24&e;return 0!==t?(Ot=12,t):0!=(32&e)?(Ot=11,32):0!==(t=192&e)?(Ot=10,t):0!=(256&e)?(Ot=9,256):0!==(t=3584&e)?(Ot=8,t):0!=(4096&e)?(Ot=7,4096):0!==(t=4186112&e)?(Ot=6,t):0!==(t=62914560&e)?(Ot=5,t):67108864&e?(Ot=4,67108864):0!=(134217728&e)?(Ot=3,134217728):0!==(t=805306368&e)?(Ot=2,t):0!=(1073741824&e)?(Ot=1,1073741824):(Ot=8,e)}function Uc(e,t){var n=e.pendingLanes;if(0===n)return Ot=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Ot=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=Rc(u),o=Ot):0!==(s&=i)&&(r=Rc(s),o=Ot)}else 0!==(i=n&~a)?(r=Rc(i),o=Ot):0!==s&&(r=Rc(s),o=Ot);if(0===r)return 0;if(r=n&((0>(r=31-Dt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Rc(t),o<=Ot)return t;Ot=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Dt(t)),r|=e[n],t&=~o;return r}function Wc(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Xc(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Yc(24&~t))?Xc(10,t):e;case 10:return 0===(e=Yc(192&~t))?Xc(8,t):e;case 8:return 0===(e=Yc(3584&~t))&&(0===(e=Yc(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Yc(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Yc(e){return e&-e}function Zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Dt(t)]=n}var Dt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Tt(e)/Pt|0)|0},Tt=Math.log,Pt=Math.LN2;var Rt=i.unstable_UserBlockingPriority,It=i.unstable_runWithPriority,At=!0;function Nt(e,t,n,r){be||Ib();var o=Bt,i=be;be=!0;try{Hb(o,e,t,n,r)}finally{(be=i)||Mb()}}function Lt(e,t,n,r){It(Rt,Bt.bind(null,e,t,n,r))}function Bt(e,t,n,r){var o;if(At)if((o=0==(4&t))&&0<rt.length&&-1<ct.indexOf(e))e=ft(null,e,t,n,r),rt.push(e);else{var i=Ft(e,t,n,r);if(null===i)o&&dt(e,r);else{if(o){if(-1<ct.indexOf(e))return e=ft(i,e,t,n,r),void rt.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return ot=pt(ot,e,t,n,r,o),!0;case"dragenter":return it=pt(it,e,t,n,r,o),!0;case"mouseover":return at=pt(at,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return st.set(i,pt(st.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ut.set(i,pt(ut.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;dt(e,r)}ir(e,t,r,null,n)}}}function Ft(e,t,n,r){var o=he(r);if(null!==(o=Cr(o))){var i=Zb(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=je(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return ir(e,t,r,o,n),null}var zt=null,jt=null,Kt=null;function Ut(){if(Kt)return Kt;var e,t,n=jt,r=n.length,o="value"in zt?zt.value:zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Kt=o.slice(e,1<t?1-t:void 0)}function qt(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 Wt(){return!0}function Ht(){return!1}function Gt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Wt:Ht,this.isPropagationStopped=Ht,this}return o(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=Wt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wt)},persist:function(){},isPersistent:Wt}),t}var Yt,Vt,Xt,$t={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qt=Gt($t),Zt=o({},$t,{view:0,detail:0}),Jt=Gt(Zt),en=o({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dn,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!==Xt&&(Xt&&"mousemove"===e.type?(Yt=e.screenX-Xt.screenX,Vt=e.screenY-Xt.screenY):Vt=Yt=0,Xt=e),Yt)},movementY:function(e){return"movementY"in e?e.movementY:Vt}}),tn=Gt(en),nn=Gt(o({},en,{dataTransfer:0})),rn=Gt(o({},Zt,{relatedTarget:0})),on=Gt(o({},$t,{animationName:0,elapsedTime:0,pseudoElement:0})),an=o({},$t,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sn=Gt(an),un=Gt(o({},$t,{data:0})),ln={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={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"},fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fn[e])&&!!t[e]}function dn(){return Pd}var pn=o({},Zt,{key:function(e){if(e.key){var t=ln[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),hn=Gt(pn),gn=Gt(o({},en,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vn=Gt(o({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dn})),mn=Gt(o({},$t,{propertyName:0,elapsedTime:0,pseudoElement:0})),yn=o({},en,{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}),bn=Gt(yn),wn=[9,13,27,32],Sn=f&&"CompositionEvent"in window,xn=null;f&&"documentMode"in document&&(xn=document.documentMode);var _n=f&&"TextEvent"in window&&!xn,En=f&&(!Sn||xn&&8<xn&&11>=xn),kn=String.fromCharCode(32),Cn=!1;function On(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Dn=!1;var Tn={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 Pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tn[e.type]:"textarea"===t}function Rn(e,t,n,r){Eb(r),0<(t=sr(t,"onChange")).length&&(n=new Qt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,An=null;function Nn(e){Jn(e,0)}function Ln(e){if(Wa(Or(e)))return e}function Bn(e,t){if("change"===e)return t}var Fn=!1;if(f){var zn;if(f){var jn="oninput"in document;if(!jn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),jn="function"==typeof Kn.oninput}zn=jn}else zn=!1;Fn=zn&&(!document.documentMode||9<document.documentMode)}function Ae(){In&&(In.detachEvent("onpropertychange",Be),An=In=null)}function Be(e){if("value"===e.propertyName&&Ln(An)){var t=[];if(Rn(t,An,e,he(e)),e=Nn,be)e(t);else{be=!0;try{Gb(e,t)}finally{be=!1,Mb()}}}}function Ce(e,t,n){"focusin"===e?(Ae(),An=n,(In=t).attachEvent("onpropertychange",Be)):"focusout"===e&&Ae()}function De(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ln(An)}function Ee(e,t){if("click"===e)return Ln(t)}function Fe(e,t){if("input"===e||"change"===e)return Ln(t)}var Un="function"==typeof Object.is?Object.is:function Ge(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qn=Object.prototype.hasOwnProperty;function Je(e,t){if(Un(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!qn.call(t,n[r])||!Un(e[n[r]],t[n[r]]))return!1;return!0}function Ke(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Le(e,t){var n,r=Ke(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ke(r)}}function Me(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Me(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ne(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Xa((e=t.contentWindow).document)}return t}function Oe(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 Wn=f&&"documentMode"in document&&11>=document.documentMode,Hn=null,Gn=null,Yn=null,Vn=!1;function Ue(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Vn||null==Hn||Hn!==Xa(r)||("selectionStart"in(r=Hn)&&Oe(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Yn&&Je(Yn,r)||(Yn=r,0<(r=sr(Gn,"onSelect")).length&&(t=new Qt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hn)))}Pc("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),Pc("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),Pc(Ct,2);for(var Xn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),$n=0;$n<Xn.length;$n++)kt.set(Xn[$n],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qn));function Ze(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function Yb(e,t,n,r,o,i,s,u,l){if(Xb.apply(this,arguments),_e){if(!_e)throw Error(a(198));var c=ke;_e=!1,ke=null,Pe||(Pe=!0,Ie=c)}}(r,t,void 0,e),e.currentTarget=null}function Jn(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;Ze(o,s,l),i=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;Ze(o,s,l),i=u}}}if(Pe)throw e=Ie,Pe=!1,Ie=null,e}function er(e,t){var n=Mr(t),r=e+"__bubble";n.has(r)||(or(t,e,2,!1),n.add(r))}var tr="_reactListening"+Math.random().toString(36).slice(2);function nr(e){e[tr]||(e[tr]=!0,s.forEach((function(t){Zn.has(t)||rr(t,!1,e,null),rr(t,!0,e,null)})))}function rr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Zn.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=Mr(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),or(i,e,o,t),a.add(s))}function or(e,t,n,r){var o=kt.get(t);switch(void 0===o?2:o){case 0:o=Nt;break;case 1:o=Lt;break;default:o=Bt}n=o.bind(null,t,n,e),o=void 0,!Se||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ir(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=Cr(s)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}s=s.parentNode}}r=r.return}!function Nb(e,t,n){if(we)return e(t,n);we=!0;try{return ye(e,t,n)}finally{we=!1,Mb()}}((function(){var r=i,o=he(n),a=[];e:{var s=Et.get(e);if(void 0!==s){var u=Qt,l=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":u=hn;break;case"focusin":l="focus",u=rn;break;case"focusout":l="blur",u=rn;break;case"beforeblur":case"afterblur":u=rn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=nn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=vn;break;case wt:case St:case xt:u=on;break;case _t:u=mn;break;case"scroll":u=Jt;break;case"wheel":u=bn;break;case"copy":case"cut":case"paste":u=sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=gn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==d&&(null!=(g=Ob(h,d))&&c.push(ar(h,g,p)))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!Cr(l)&&!l[Er])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Cr(l):null)&&(l!==(f=Zb(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=tn,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=gn,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:Or(u),p=null==l?s:Or(l),(s=new c(g,h+"leave",u,n,o)).target=f,s.relatedTarget=p,g=null,Cr(o)===r&&((c=new c(d,h+"enter",l,n,o)).target=p,c.relatedTarget=f,g=c),f=g,u&&l)e:{for(d=l,h=0,p=c=u;p;p=ur(p))h++;for(p=0,g=d;g;g=ur(g))p++;for(;0<h-p;)c=ur(c),h--;for(;0<p-h;)d=ur(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=ur(c),d=ur(d)}c=null}else c=null;null!==u&&lr(a,s,u,c,!1),null!==l&&null!==f&&lr(a,f,l,c,!0)}if("select"===(u=(s=r?Or(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Bn;else if(Pn(s))if(Fn)v=Fe;else{v=De;var m=Ce}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Ee);switch(v&&(v=v(e,r))?Rn(a,v,n,o):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&G(s,"number",s.value)),m=r?Or(r):window,e){case"focusin":(Pn(m)||"true"===m.contentEditable)&&(Hn=m,Gn=r,Yn=null);break;case"focusout":Yn=Gn=Hn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":Vn=!1,Ue(a,n,o);break;case"selectionchange":if(Wn)break;case"keydown":case"keyup":Ue(a,n,o)}var y;if(Sn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Dn?On(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(En&&"ko"!==n.locale&&(Dn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Dn&&(y=Ut()):(jt="value"in(zt=o)?zt.value:zt.textContent,Dn=!0)),0<(m=sr(r,b)).length&&(b=new un(b,e,null,n,o),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Mn(n))&&(b.data=y))),(y=_n?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(Cn=!0,kn);case"textInput":return(e=t.data)===kn&&Cn?null:e;default:return null}}(e,n):function(e,t){if(Dn)return"compositionend"===e||!Sn&&On(e,t)?(e=Ut(),Kt=jt=zt=null,Dn=!1,e):null;switch(e){case"paste":default: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 En&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=sr(r,"onBeforeInput")).length&&(o=new un("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Jn(a,t)}))}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function sr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ob(e,n))&&r.unshift(ar(e,i,o)),null!=(i=Ob(e,t))&&r.push(ar(e,i,o))),e=e.return}return r}function ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function lr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,o?null!=(u=Ob(n,i))&&a.unshift(ar(n,u,s)):o||null!=(u=Ob(n,i))&&a.push(ar(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function cr(){}var fr=null,dr=null;function pr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function hr(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 gr="function"==typeof setTimeout?setTimeout:void 0,vr="function"==typeof clearTimeout?clearTimeout:void 0;function mr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function br(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var wr=0;var Sr=Math.random().toString(36).slice(2),xr="__reactFiber$"+Sr,_r="__reactProps$"+Sr,Er="__reactContainer$"+Sr,kr="__reactEvents$"+Sr;function Cr(e){var t=e[xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Er]||n[xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=br(e);null!==e;){if(n=e[xr])return n;e=br(e)}return t}n=(e=n).parentNode}return null}function Cb(e){return!(e=e[xr]||e[Er])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Or(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Db(e){return e[_r]||null}function Mr(e){var t=e[kr];return void 0===t&&(t=e[kr]=new Set),t}var Dr=[],Tr=-1;function Bf(e){return{current:e}}function Pr(e){0>Tr||(e.current=Dr[Tr],Dr[Tr]=null,Tr--)}function Rr(e,t){Tr++,Dr[Tr]=e.current,e.current=t}var Ir={},Ar=Bf(Ir),Nr=Bf(!1),Lr=Ir;function Ef(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ff(e){return null!=(e=e.childContextTypes)}function Gf(){Pr(Nr),Pr(Ar)}function Hf(e,t,n){if(Ar.current!==Ir)throw Error(a(168));Rr(Ar,t),Rr(Nr,n)}function If(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,Ra(t)||"Unknown",i));return o({},n,r)}function Jf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,Lr=Ar.current,Rr(Ar,e),Rr(Nr,Nr.current),!0}function Kf(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=If(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,Pr(Nr),Pr(Ar),Rr(Ar,e)):Pr(Nr),Rr(Nr,n)}var Br=null,Fr=null,zr=i.unstable_runWithPriority,jr=i.unstable_scheduleCallback,Kr=i.unstable_cancelCallback,Ur=i.unstable_shouldYield,qr=i.unstable_requestPaint,Wr=i.unstable_now,Hr=i.unstable_getCurrentPriorityLevel,Gr=i.unstable_ImmediatePriority,Yr=i.unstable_UserBlockingPriority,Vr=i.unstable_NormalPriority,Xr=i.unstable_LowPriority,$r=i.unstable_IdlePriority,Qr={},Zr=void 0!==qr?qr:function(){},Jr=null,eo=null,to=!1,no=Wr(),ro=1e4>no?Wr:function(){return Wr()-no};function oo(){switch(Hr()){case Gr:return 99;case Yr:return 98;case Vr:return 97;case Xr:return 96;case $r:return 95;default:throw Error(a(332))}}function io(e){switch(e){case 99:return Gr;case 98:return Yr;case 97:return Vr;case 96:return Xr;case 95:return $r;default:throw Error(a(332))}}function ao(e,t){return e=io(e),zr(e,t)}function so(e,t,n){return e=io(e),jr(e,t,n)}function uo(){if(null!==eo){var e=eo;eo=null,Kr(e)}lo()}function lo(){if(!to&&null!==Jr){to=!0;var e=0;try{var t=Jr;ao(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Jr=null}catch(t){throw null!==Jr&&(Jr=Jr.slice(e+1)),jr(Gr,uo),t}finally{to=!1}}}var co=S.ReactCurrentBatchConfig;function fo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var po=Bf(null),ho=null,go=null,vo=null;function mo(){vo=go=ho=null}function yo(e){var t=po.current;Pr(po),e.type._context._currentValue=t}function bo(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function wo(e,t){ho=e,vo=go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(mi=!0),e.firstContext=null)}function So(e,t){if(vo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(vo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===go){if(null===ho)throw Error(a(308));go=t,ho.dependencies={lanes:0,firstContext:t,responders:null}}else go=go.next=t;return e._currentValue}var xo=!1;function _o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Eo(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 ko(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ag(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Bg(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cg(e,t,n,r){var i=e.updateQueue;xo=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==a){for(d=i.baseState,s=0,f=c=l=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(u=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=g.payload)?h.call(p,d,u):h))break e;d=o({},d,u);break e;case 2:xo=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,l=d):f=f.next=p,s|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Aa|=s,e.lanes=s,e.memoizedState=d}}function Eg(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Co=(new r.Component).refs;function Gg(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Oo={isMounted:function(e){return!!(e=e._reactInternals)&&Zb(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hg(),o=Ig(e),i=ko(r,o);i.payload=t,null!=n&&(i.callback=n),Ag(e,i),Jg(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hg(),o=Ig(e),i=ko(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),Ag(e,i),Jg(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hg(),r=Ig(e),o=ko(n,r);o.tag=2,null!=t&&(o.callback=t),Ag(e,o),Jg(e,r,n)}};function Lg(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Je(n,r)||!Je(o,i))}function Mg(e,t,n){var r=!1,o=Ir,i=t.contextType;return"object"==typeof i&&null!==i?i=So(i):(o=Ff(t)?Lr:Ar.current,i=(r=null!=(r=t.contextTypes))?Ef(e,o):Ir),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Oo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ng(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oo.enqueueReplaceState(t,t.state,null)}function Og(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Co,_o(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=So(i):(i=Ff(t)?Lr:Ar.current,o.context=Ef(e,i)),Cg(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Gg(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Oo.enqueueReplaceState(o,o.state,null),Cg(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Mo=Array.isArray;function Qg(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===Co&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Rg(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sg(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,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 o(e,t){return(e=Tg(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ug(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Qg(e,t,n),r.return=e,r):((r=Vg(n.type,n.key,n.props,null,e.mode,r)).ref=Qg(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wg(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Xg(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ug(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Vg(t.type,t.key,t.props,null,e.mode,n)).ref=Qg(e,null,t),n.return=e,n;case _:return(t=Wg(t,e.mode,n)).return=e,t}if(Mo(t)||La(t))return(t=Xg(t,e.mode,n,null)).return=e,t;Rg(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?n.type===E?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case _:return n.key===o?c(e,t,n,r):null}if(Mo(n)||La(n))return null!==o?null:f(e,t,n,r,null);Rg(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Mo(r)||La(r))return f(t,e=e.get(n)||null,r,o,null);Rg(t,r)}return null}function g(o,a,s,u){for(var l=null,c=null,f=a,g=a=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=p(o,f,s[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,g),null===c?l=m:c.sibling=m,c=m,f=v}if(g===s.length)return n(o,f),l;if(null===f){for(;g<s.length;g++)null!==(f=d(o,s[g],u))&&(a=i(f,a,g),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(o,f);g<s.length;g++)null!==(v=h(f,o,g,s[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=i(v,a,g),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),l}function v(o,s,u,l){var c=La(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,g=s,v=s=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=p(o,g,y.value,l);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=d(o,y.value,l))&&(s=i(y,s,v),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;v++,y=u.next())null!==(y=h(g,o,v,y.value,l))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=i(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var l="object"==typeof i&&null!==i&&i.type===E&&null===i.key;l&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case x:e:{for(c=i.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(i.type===E){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=Qg(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===E?((r=Xg(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Vg(i.type,i.key,i.props,null,e.mode,u)).ref=Qg(e,r,i),u.return=e,e=u)}return s(e);case _:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wg(i,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ug(i,e.mode,u)).return=e,e=r),s(e);if(Mo(i))return g(e,r,i,u);if(La(i))return v(e,r,i,u);if(c&&Rg(e,i),void 0===i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Ra(e.type)||"Component"))}return n(e,r)}}var Do=Sg(!0),To=Sg(!1),Po={},Ro=Bf(Po),Io=Bf(Po),Ao=Bf(Po);function No(e){if(e===Po)throw Error(a(174));return e}function Lo(e,t){switch(Rr(Ao,t),Rr(Io,e),Rr(Ro,Po),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ne(null,"");break;default:t=ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pr(Ro),Rr(Ro,t)}function Bo(){Pr(Ro),Pr(Io),Pr(Ao)}function Fo(e){No(Ao.current);var t=No(Ro.current),n=ne(t,e.type);t!==n&&(Rr(Io,e),Rr(Ro,n))}function zo(e){Io.current===e&&(Pr(Ro),Pr(Io))}var jo=Bf(0);function Ko(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.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 Uo=null,qo=null,Wo=!1;function Ho(e,t){var n=Ds(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Go(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.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);default:return!1}}function Yo(e){if(Wo){var t=qo;if(t){var n=t;if(!Go(e,t)){if(!(t=yr(n.nextSibling))||!Go(e,t))return e.flags=-1025&e.flags|2,Wo=!1,void(Uo=e);Ho(Uo,n)}Uo=e,qo=yr(t.firstChild)}else e.flags=-1025&e.flags|2,Wo=!1,Uo=e}}function Vo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uo=e}function Xo(e){if(e!==Uo)return!1;if(!Wo)return Vo(e),Wo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!hr(t,e.memoizedProps))for(t=qo;t;)Ho(e,t),t=yr(t.nextSibling);if(Vo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){qo=yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}qo=null}}else qo=Uo?yr(e.stateNode.nextSibling):null;return!0}function $o(){qo=Uo=null,Wo=!1}var Qo=[];function Zo(){for(var e=0;e<Qo.length;e++)Qo[e]._workInProgressVersionPrimary=null;Qo.length=0}var Jo=S.ReactCurrentDispatcher,ei=S.ReactCurrentBatchConfig,ti=0,ni=null,ri=null,oi=null,ii=!1,ai=!1;function Ah(){throw Error(a(321))}function Bh(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Un(e[n],t[n]))return!1;return!0}function Ch(e,t,n,r,o,i){if(ti=i,ni=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jo.current=null===e||null===e.memoizedState?pi:hi,e=n(r,o),ai){i=0;do{if(ai=!1,!(25>i))throw Error(a(301));i+=1,oi=ri=null,t.updateQueue=null,Jo.current=gi,e=n(r,o)}while(ai)}if(Jo.current=di,t=null!==ri&&null!==ri.next,ti=0,oi=ri=ni=null,ii=!1,t)throw Error(a(300));return e}function Hh(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oi?ni.memoizedState=oi=e:oi=oi.next=e,oi}function Ih(){if(null===ri){var e=ni.alternate;e=null!==e?e.memoizedState:null}else e=ri.next;var t=null===oi?ni.memoizedState:oi.next;if(null!==t)oi=t,ri=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ri=e).memoizedState,baseState:ri.baseState,baseQueue:ri.baseQueue,queue:ri.queue,next:null},null===oi?ni.memoizedState=oi=e:oi=oi.next=e}return oi}function Jh(e,t){return"function"==typeof t?t(e):t}function Kh(e){var t=Ih(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ri,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=s=i=null,l=o;do{var c=l.lane;if((ti&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,i=r):u=u.next=f,ni.lanes|=c,Aa|=c}l=l.next}while(null!==l&&l!==o);null===u?i=r:u.next=s,Un(r,t.memoizedState)||(mi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Lh(e){var t=Ih(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Un(i,t.memoizedState)||(mi=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Mh(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(ti&e)===e)&&(t._workInProgressVersionPrimary=r,Qo.push(t))),e)return n(t._source);throw Qo.push(t),Error(a(350))}function Nh(e,t,n,r){var o=ma;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),u=Jo.current,l=u.useState((function(){return Mh(o,t,n)})),c=l[1],f=l[0];l=oi;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,g=d.source;d=d.subscribe;var v=ni;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!Un(s,e)){e=n(t._source),Un(f,e)||(c(e),e=Ig(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Dt(a),l=1<<u;r[u]|=e,a&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=Ig(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),Un(h,n)&&Un(g,t)&&Un(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:f}).dispatch=c=Oh.bind(null,ni,e),l.queue=e,l.baseQueue=null,f=Mh(o,t,n),l.memoizedState=l.baseState=f),f}function Ph(e,t,n){return Nh(Ih(),e,t,n)}function Qh(e){var t=Hh();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:e}).dispatch=Oh.bind(null,ni,e),[t.memoizedState,e]}function Rh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ni.updateQueue)?(t={lastEffect:null},ni.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Sh(e){return e={current:e},Hh().memoizedState=e}function Th(){return Ih().memoizedState}function Uh(e,t,n,r){var o=Hh();ni.flags|=e,o.memoizedState=Rh(1|t,n,void 0,void 0===r?null:r)}function Vh(e,t,n,r){var o=Ih();r=void 0===r?null:r;var i=void 0;if(null!==ri){var a=ri.memoizedState;if(i=a.destroy,null!==r&&Bh(r,a.deps))return void Rh(t,n,i,r)}ni.flags|=e,o.memoizedState=Rh(1|t,n,i,r)}function Wh(e,t){return Uh(516,4,e,t)}function Xh(e,t){return Vh(516,4,e,t)}function Yh(e,t){return Vh(4,2,e,t)}function Zh(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 si(e,t,n){return n=null!=n?n.concat([e]):null,Vh(4,2,Zh.bind(null,t,e),n)}function ui(){}function li(e,t){var n=Ih();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Bh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ci(e,t){var n=Ih();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Bh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fi(e,t){var n=oo();ao(98>n?98:n,(function(){e(!0)})),ao(97<n?97:n,(function(){var n=ei.transition;ei.transition=1;try{e(!1),t()}finally{ei.transition=n}}))}function Oh(e,t,n){var r=Hg(),o=Ig(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ni||null!==a&&a===ni)ai=ii=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(i.eagerReducer=a,i.eagerState=u,Un(u,s))return}catch(e){}Jg(e,o,r)}}var di={readContext:So,useCallback:Ah,useContext:Ah,useEffect:Ah,useImperativeHandle:Ah,useLayoutEffect:Ah,useMemo:Ah,useReducer:Ah,useRef:Ah,useState:Ah,useDebugValue:Ah,useDeferredValue:Ah,useTransition:Ah,useMutableSource:Ah,useOpaqueIdentifier:Ah,unstable_isNewReconciler:!1},pi={readContext:So,useCallback:function(e,t){return Hh().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Wh,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Uh(4,2,Zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uh(4,2,e,t)},useMemo:function(e,t){var n=Hh();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hh();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oh.bind(null,ni,e),[r.memoizedState,e]},useRef:Sh,useState:Qh,useDebugValue:ui,useDeferredValue:function(e){var t=Qh(e),n=t[0],r=t[1];return Wh((function(){var t=ei.transition;ei.transition=1;try{r(e)}finally{ei.transition=t}}),[e]),n},useTransition:function(){var e=Qh(!1),t=e[0];return Sh(e=fi.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=Hh();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Nh(r,e,t,n)},useOpaqueIdentifier:function(){if(Wo){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(wr++).toString(36))),Error(a(355))})),n=Qh(t)[1];return 0==(2&ni.mode)&&(ni.flags|=516,Rh(5,(function(){n("r:"+(wr++).toString(36))}),void 0,null)),t}return Qh(t="r:"+(wr++).toString(36)),t},unstable_isNewReconciler:!1},hi={readContext:So,useCallback:li,useContext:So,useEffect:Xh,useImperativeHandle:si,useLayoutEffect:Yh,useMemo:ci,useReducer:Kh,useRef:Th,useState:function(){return Kh(Jh)},useDebugValue:ui,useDeferredValue:function(e){var t=Kh(Jh),n=t[0],r=t[1];return Xh((function(){var t=ei.transition;ei.transition=1;try{r(e)}finally{ei.transition=t}}),[e]),n},useTransition:function(){var e=Kh(Jh)[0];return[Th().current,e]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Kh(Jh)[0]},unstable_isNewReconciler:!1},gi={readContext:So,useCallback:li,useContext:So,useEffect:Xh,useImperativeHandle:si,useLayoutEffect:Yh,useMemo:ci,useReducer:Lh,useRef:Th,useState:function(){return Lh(Jh)},useDebugValue:ui,useDeferredValue:function(e){var t=Lh(Jh),n=t[0],r=t[1];return Xh((function(){var t=ei.transition;ei.transition=1;try{r(e)}finally{ei.transition=t}}),[e]),n},useTransition:function(){var e=Lh(Jh)[0];return[Th().current,e]},useMutableSource:Ph,useOpaqueIdentifier:function(){return Lh(Jh)[0]},unstable_isNewReconciler:!1},vi=S.ReactCurrentOwner,mi=!1;function yi(e,t,n,r){t.child=null===e?To(t,null,n,r):Do(t,e.child,n,r)}function bi(e,t,n,r,o){n=n.render;var i=t.ref;return wo(t,o),r=Ch(e,t,n,r,i,o),null===e||mi?(t.flags|=1,yi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ji(e,t,o))}function wi(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ts(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vg(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,xi(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Je)(o,r)&&e.ref===t.ref)?Ji(e,t,i):(t.flags|=1,(e=Tg(a,r)).ref=t.ref,e.return=t,t.child=e)}function xi(e,t,n,r,o,i){if(null!==e&&Je(e.memoizedProps,r)&&e.ref===t.ref){if(mi=!1,0==(i&o))return t.lanes=e.lanes,Ji(e,t,i);0!=(16384&e.flags)&&(mi=!0)}return ki(e,t,n,r,i)}function _i(e,t,n){var r=t.pendingProps,o=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},bs(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bs(t,e),null;t.memoizedState={baseLanes:0},bs(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bs(t,r);return yi(e,t,o,n),t.child}function Ei(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function ki(e,t,n,r,o){var i=Ff(n)?Lr:Ar.current;return i=Ef(t,i),wo(t,o),n=Ch(e,t,n,r,i,o),null===e||mi?(t.flags|=1,yi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ji(e,t,o))}function Ci(e,t,n,r,o){if(Ff(n)){var i=!0;Jf(t)}else i=!1;if(wo(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Mg(t,n,r),Og(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=So(l):l=Ef(t,l=Ff(n)?Lr:Ar.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Ng(t,a,r,l),xo=!1;var d=t.memoizedState;a.state=d,Cg(t,r,a,o),u=t.memoizedState,s!==r||d!==u||Nr.current||xo?("function"==typeof c&&(Gg(t,n,c,r),u=t.memoizedState),(s=xo||Lg(t,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,Eo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:fo(t.type,s),a.props=l,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=So(u):u=Ef(t,u=Ff(n)?Lr:Ar.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&Ng(t,a,r,u),xo=!1,d=t.memoizedState,a.state=d,Cg(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||Nr.current||xo?("function"==typeof p&&(Gg(t,n,p,r),h=t.memoizedState),(l=xo||Lg(t,n,l,r,d,h,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Oi(e,t,n,r,i,o)}function Oi(e,t,n,r,o,i){Ei(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&Kf(t,n,!1),Ji(e,t,i);r=t.stateNode,vi.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Do(t,e.child,null,i),t.child=Do(t,null,s,i)):yi(e,t,s,i),t.memoizedState=r.state,o&&Kf(t,n,!0),t.child}function Di(e){var t=e.stateNode;t.pendingContext?Hf(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Hf(0,t.context,!1),Lo(e,t.containerInfo)}var Ti,Ri,Bi,zi={dehydrated:null,retryLane:0};function ji(e,t,n){var r,o=t.pendingProps,i=jo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),Rr(jo,1&i),null===e?(void 0!==o.fallback&&Yo(t),e=o.children,i=o.fallback,a?(e=Ui(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=zi,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ui(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=zi,t.lanes=33554432,e):((n=Ps({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Hi(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=zi,o):(n=qi(e,t,o.children,n),t.memoizedState=null,n))}function Ui(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Ps(t,o,0,null),n=Xg(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function qi(e,t,n,r){var o=e.child;return e=o.sibling,n=Tg(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Hi(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Tg(a,s),null!==e?r=Tg(e,r):(r=Xg(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $i(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),bo(e.return,t)}function Qi(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Ai(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yi(e,t,r.children,n),0!=(2&(r=jo.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&&$i(e,n);else if(19===e.tag)$i(e,n);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(Rr(jo,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ko(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qi(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ko(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qi(t,!0,n,null,i,t.lastEffect);break;case"together":Qi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ji(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Aa|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Tg(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tg(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function Fi(e,t){if(!Wo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gi(e,t,n){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:case 17:return Ff(t.type)&&Gf(),null;case 3:return Bo(),Pr(Nr),Pr(Ar),Zo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Xo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var i=No(Ao.current);if(n=t.type,null!==e&&null!=t.stateNode)Ri(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=No(Ro.current),Xo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[xr]=t,r[_r]=s,n){case"dialog":er("cancel",r),er("close",r);break;case"iframe":case"object":case"embed":er("load",r);break;case"video":case"audio":for(e=0;e<Qn.length;e++)er(Qn[e],r);break;case"source":er("error",r);break;case"img":case"image":case"link":er("error",r),er("load",r);break;case"details":er("toggle",r);break;case"input":Za(r,s),er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},er("invalid",r);break;case"textarea":$(r,s),er("invalid",r)}for(var l in de(n,s),e=null,s)s.hasOwnProperty(l)&&(i=s[l],"children"===l?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&er("scroll",r));switch(n){case"input":Va(r),H(r,s,!0);break;case"textarea":Va(r),Z(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===J&&(e=te(n)),e===J?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[xr]=t,e[_r]=r,Ti(e,t),t.stateNode=e,l=pe(n,r),n){case"dialog":er("cancel",e),er("close",e),i=r;break;case"iframe":case"object":case"embed":er("load",e),i=r;break;case"video":case"audio":for(i=0;i<Qn.length;i++)er(Qn[i],e);i=r;break;case"source":er("error",e),i=r;break;case"img":case"image":case"link":er("error",e),er("load",e),i=r;break;case"details":er("toggle",e),i=r;break;case"input":Za(e,r),i=Ya(e,r),er("invalid",e);break;case"option":i=Y(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),er("invalid",e);break;case"textarea":$(e,r),i=X(e,r),er("invalid",e);break;default:i=r}de(n,i);var c=i;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?ce(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ie(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ae(e,f):"number"==typeof f&&ae(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&er("scroll",e):null!=f&&w(e,s,f,l))}switch(n){case"input":Va(e),H(e,r,!1);break;case"textarea":Va(e),Z(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?V(e,!!r.multiple,s,!1):null!=r.defaultValue&&V(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=cr)}pr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Bi(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=No(Ao.current),No(Ro.current),Xo(t)?(r=t.stateNode,n=t.memoizedProps,r[xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[xr]=t,t.stateNode=r)}return null;case 13:return Pr(jo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Xo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&jo.current)?0===_a&&(_a=3):(0!==_a&&3!==_a||(_a=4),null===ma||0==(134217727&Aa)&&0==(134217727&za)||Ii(ma,ba))),(r||n)&&(t.flags|=4),null);case 4:return Bo(),null===e&&nr(t.stateNode.containerInfo),null;case 10:return yo(t),null;case 19:if(Pr(jo),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(l=r.rendering))if(s)Fi(r,!1);else{if(0!==_a||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ko(e))){for(t.flags|=64,Fi(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Rr(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&ro()>$a&&(t.flags|=64,s=!0,Fi(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Ko(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Fi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Wo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*ro()-r.renderingStartTime>$a&&1073741824!==n&&(t.flags|=64,s=!0,Fi(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ro(),n.sibling=null,t=jo.current,Rr(jo,s?1&t|2:1&t),n):null;case 23:case 24:return Ki(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function Li(e){switch(e.tag){case 1:Ff(e.type)&&Gf();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Bo(),Pr(Nr),Pr(Ar),Zo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return Pr(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Pr(jo),null;case 4:return Bo(),null;case 10:return yo(e),null;case 23:case 24:return Ki(),null;default:return null}}function Mi(e,t){try{var n="",r=t;do{n+=Qa(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function Ni(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ti=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ri=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,No(Ro.current);var a,s=null;switch(n){case"input":i=Ya(e,i),r=Ya(e,r),s=[];break;case"option":i=Y(e,i),r=Y(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=X(e,i),r=X(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=cr)}for(f in de(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var l=i[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&er("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===N?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Bi=function(e,t,n,r){n!==r&&(t.flags|=4)};var ea="function"==typeof WeakMap?WeakMap:Map;function Pi(e,t,n){(n=ko(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rs||(rs=!0,os=r),Ni(0,t)},n}function Si(e,t,n){(n=ko(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Ni(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===is?is=new Set([this]):is.add(this),Ni(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ta="function"==typeof WeakSet?WeakSet:Set;function Vi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Wi(e,t)}else t.current=null}function Xi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:fo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&mr(t.stateNode.containerInfo))}throw Error(a(163))}function Yi(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.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=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Zi(n,e),Es(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:fo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Eg(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}Eg(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&pr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Cc(n)))))}throw Error(a(163))}function na(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=le("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ra(e,t){if(Fr&&"function"==typeof Fr.onCommitFiberUnmount)try{Fr.onCommitFiberUnmount(Br,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 n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Zi(t,n);else{r=t;try{o()}catch(e){Wi(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Vi(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Wi(t,e)}break;case 5:Vi(t);break;case 4:la(e,t)}}function oa(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 ia(e){return 5===e.tag||3===e.tag||4===e.tag}function aa(e){e:{for(var t=e.return;null!==t;){if(ia(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ae(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ia(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?sa(e,n,t):ua(e,n,t)}function sa(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=cr));else if(4!==r&&null!==(e=e.child))for(sa(e,t,n),e=e.sibling;null!==e;)sa(e,t,n),e=e.sibling}function ua(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ua(e,t,n),e=e.sibling;null!==e;)ua(e,t,n),e=e.sibling}function la(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,u=o,l=u;;)if(ra(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,u=o.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(ra(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function ca(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[_r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&q(n,r),pe(e,o),t=pe(e,r),o=0;o<i.length;o+=2){var s=i[o],u=i[o+1];"style"===s?ce(n,u):"dangerouslySetInnerHTML"===s?ie(n,u):"children"===s?ae(n,u):w(n,s,u,t)}switch(e){case"input":W(n,r);break;case"textarea":Q(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?V(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?V(n,!!r.multiple,r.defaultValue,!0):V(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Cc(n.containerInfo)));case 13:return null!==t.memoizedState&&(qa=ro(),na(t.child,!0)),void fa(t);case 19:return void fa(t);case 23:case 24:return void na(t,null!==t.memoizedState)}throw Error(a(163))}function fa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ta),t.forEach((function(t){var r=Os.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function da(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var pa=Math.ceil,ha=S.ReactCurrentDispatcher,ga=S.ReactCurrentOwner,va=0,ma=null,ya=null,ba=0,wa=0,xa=Bf(0),_a=0,ka=null,Oa=0,Aa=0,za=0,ja=0,Ka=null,qa=0,$a=1/0;function es(){$a=ro()+500}var ts,ns=null,rs=!1,os=null,is=null,as=!1,ss=null,us=90,ls=[],cs=[],fs=null,ds=0,ps=null,hs=-1,gs=0,vs=0,ms=null,ys=!1;function Hg(){return 0!=(48&va)?ro():-1!==hs?hs:hs=ro()}function Ig(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===oo()?1:2;if(0===gs&&(gs=Oa),0!==co.transition){0!==vs&&(vs=null!==Ka?Ka.pendingLanes:0),e=gs;var t=4186112&~vs;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=oo(),0!=(4&va)&&98===e?e=Xc(12,gs):e=Xc(e=function Sc(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),gs),e}function Jg(e,t,n){if(50<ds)throw ds=0,ps=null,Error(a(185));if(null===(e=Kj(e,t)))return null;Mt(e,t,n),e===ma&&(za|=t,4===_a&&Ii(e,ba));var r=oo();1===t?0!=(8&va)&&0==(48&va)?Lj(e):(Mj(e,n),0===va&&(es(),uo())):(0==(4&va)||98!==r&&99!==r||(null===fs?fs=new Set([e]):fs.add(e)),Mj(e,n)),Ka=e}function Kj(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Mj(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Dt(s),l=1<<u,c=i[u];if(-1===c){if(0==(l&r)||0!=(l&o)){c=t,Rc(l);var f=Ot;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);s&=~l}if(r=Uc(e,e===ma?ba:0),t=Ot,0===r)null!==n&&(n!==Qr&&Kr(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Qr&&Kr(n)}15===t?(n=Lj.bind(null,e),null===Jr?(Jr=[n],eo=jr(Gr,lo)):Jr.push(n),n=Qr):14===t?n=so(99,Lj.bind(null,e)):(n=function Tc(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(a(358,e))}}(t),n=so(n,Nj.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Nj(e){if(hs=-1,vs=gs=0,0!=(48&va))throw Error(a(327));var t=e.callbackNode;if(Oj()&&e.callbackNode!==t)return null;var n=Uc(e,e===ma?ba:0);if(0===n)return null;var r=n,o=va;va|=16;var i=Pj();for(ma===e&&ba===r||(es(),Qj(e,r));;)try{Rj();break}catch(t){Sj(e,t)}if(mo(),ha.current=i,va=o,null!==ya?r=0:(ma=null,ba=0,r=_a),0!=(Oa&za))Qj(e,0);else if(0!==r){if(2===r&&(va|=64,e.hydrate&&(e.hydrate=!1,mr(e.containerInfo)),0!==(n=Wc(e))&&(r=Tj(e,n))),1===r)throw t=ka,Qj(e,0),Ii(e,n),Mj(e,ro()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Uj(e);break;case 3:if(Ii(e,n),(62914560&n)===n&&10<(r=qa+500-ro())){if(0!==Uc(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hg(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gr(Uj.bind(null,e),r);break}Uj(e);break;case 4:if(Ii(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Dt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=ro()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*pa(n/1960))-n)){e.timeoutHandle=gr(Uj.bind(null,e),n);break}Uj(e);break;default:throw Error(a(329))}}return Mj(e,ro()),e.callbackNode===t?Nj.bind(null,e):null}function Ii(e,t){for(t&=~ja,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function Lj(e){if(0!=(48&va))throw Error(a(327));if(Oj(),e===ma&&0!=(e.expiredLanes&ba)){var t=ba,n=Tj(e,t);0!=(Oa&za)&&(n=Tj(e,t=Uc(e,t)))}else n=Tj(e,t=Uc(e,0));if(0!==e.tag&&2===n&&(va|=64,e.hydrate&&(e.hydrate=!1,mr(e.containerInfo)),0!==(t=Wc(e))&&(n=Tj(e,t))),1===n)throw n=ka,Qj(e,0),Ii(e,t),Mj(e,ro()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uj(e),Mj(e,ro()),null}function Wj(e,t){var n=va;va|=1;try{return e(t)}finally{0===(va=n)&&(es(),uo())}}function Xj(e,t){var n=va;va&=-2,va|=8;try{return e(t)}finally{0===(va=n)&&(es(),uo())}}function bs(e,t){Rr(xa,wa),wa|=t,Oa|=t}function Ki(){wa=xa.current,Pr(xa)}function Qj(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,vr(n)),null!==ya)for(n=ya.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Gf();break;case 3:Bo(),Pr(Nr),Pr(Ar),Zo();break;case 5:zo(r);break;case 4:Bo();break;case 13:case 19:Pr(jo);break;case 10:yo(r);break;case 23:case 24:Ki()}n=n.return}ma=e,ya=Tg(e.current,null),ba=wa=Oa=t,_a=0,ka=null,ja=za=Aa=0}function Sj(e,t){for(;;){var n=ya;try{if(mo(),Jo.current=di,ii){for(var r=ni.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ii=!1}if(ti=0,oi=ri=ni=null,ai=!1,ga.current=null,null===n||null===n.return){_a=1,ka=t,ya=null;break}e:{var i=e,a=n.return,s=n,u=t;if(t=ba,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&jo.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=d.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var m=new Set;m.add(l),d.updateQueue=m}else v.add(l);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ko(-1,1);y.tag=2,Ag(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ea,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var w=Yj.bind(null,i,l,s);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Ra(s.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!==_a&&(_a=2),u=Mi(u,s),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,Bg(d,Pi(0,i,t));break e;case 1:i=u;var S=d.type,x=d.stateNode;if(0==(64&d.flags)&&("function"==typeof S.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===is||!is.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,Bg(d,Si(d,i,t));break e}}d=d.return}while(null!==d)}Zj(n)}catch(e){t=e,ya===n&&null!==n&&(ya=n=n.return);continue}break}}function Pj(){var e=ha.current;return ha.current=di,null===e?di:e}function Tj(e,t){var n=va;va|=16;var r=Pj();for(ma===e&&ba===t||Qj(e,t);;)try{ws();break}catch(t){Sj(e,t)}if(mo(),va=n,ha.current=r,null!==ya)throw Error(a(261));return ma=null,ba=0,_a}function ws(){for(;null!==ya;)Ss(ya)}function Rj(){for(;null!==ya&&!Ur();)Ss(ya)}function Ss(e){var t=ts(e.alternate,e,wa);e.memoizedProps=e.pendingProps,null===t?Zj(e):ya=t,ga.current=null}function Zj(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Gi(n,t,wa)))return void(ya=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&wa)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.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!==(n=Li(t)))return n.flags&=2047,void(ya=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ya=t);ya=t=e}while(null!==t);0===_a&&(_a=5)}function Uj(e){var t=oo();return ao(99,xs.bind(null,e,t)),null}function xs(e,t){do{Oj()}while(null!==ss);if(0!=(48&va))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<i;){var l=31-Dt(i),c=1<<l;o[l]=0,s[l]=-1,u[l]=-1,i&=~c}if(null!==fs&&0==(24&r)&&fs.has(e)&&fs.delete(e),e===ma&&(ya=ma=null,ba=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=va,va|=32,ga.current=null,fr=At,Oe(s=Ne())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,g=0,v=s,m=null;t:for(;;){for(var y;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==l||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===s)break t;if(m===u&&++h===i&&(d=f),m===l&&++g===c&&(p=f),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;dr={focusedElem:s,selectionRange:u},At=!1,ms=null,ys=!1,ns=r;do{try{_s()}catch(e){if(null===ns)throw Error(a(330));Wi(ns,e),ns=ns.nextEffect}}while(null!==ns);ms=null,ns=r;do{try{for(s=e;null!==ns;){var b=ns.flags;if(16&b&&ae(ns.stateNode,""),128&b){var w=ns.alternate;if(null!==w){var S=w.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&b){case 2:aa(ns),ns.flags&=-3;break;case 6:aa(ns),ns.flags&=-3,ca(ns.alternate,ns);break;case 1024:ns.flags&=-1025;break;case 1028:ns.flags&=-1025,ca(ns.alternate,ns);break;case 4:ca(ns.alternate,ns);break;case 8:la(s,u=ns);var x=u.alternate;oa(u),null!==x&&oa(x)}ns=ns.nextEffect}}catch(e){if(null===ns)throw Error(a(330));Wi(ns,e),ns=ns.nextEffect}}while(null!==ns);if(S=dr,w=Ne(),b=S.focusedElem,s=S.selectionRange,w!==b&&b&&b.ownerDocument&&Me(b.ownerDocument.documentElement,b)){null!==s&&Oe(b)&&(w=s.start,void 0===(S=s.end)&&(S=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(S,b.value.length)):(S=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(S=S.getSelection(),u=b.textContent.length,x=Math.min(s.start,u),s=void 0===s.end?x:Math.min(s.end,u),!S.extend&&x>s&&(u=s,s=x,x=u),u=Le(b,x),i=Le(b,s),u&&i&&(1!==S.rangeCount||S.anchorNode!==u.node||S.anchorOffset!==u.offset||S.focusNode!==i.node||S.focusOffset!==i.offset)&&((w=w.createRange()).setStart(u.node,u.offset),S.removeAllRanges(),x>s?(S.addRange(w),S.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),S.addRange(w))))),w=[];for(S=b;S=S.parentNode;)1===S.nodeType&&w.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(S=w[b]).element.scrollLeft=S.left,S.element.scrollTop=S.top}At=!!fr,dr=fr=null,e.current=n,ns=r;do{try{for(b=e;null!==ns;){var _=ns.flags;if(36&_&&Yi(b,ns.alternate,ns),128&_){w=void 0;var E=ns.ref;if(null!==E){var k=ns.stateNode;ns.tag,w=k,"function"==typeof E?E(w):E.current=w}}ns=ns.nextEffect}}catch(e){if(null===ns)throw Error(a(330));Wi(ns,e),ns=ns.nextEffect}}while(null!==ns);ns=null,Zr(),va=o}else e.current=n;if(as)as=!1,ss=e,us=t;else for(ns=r;null!==ns;)t=ns.nextEffect,ns.nextEffect=null,8&ns.flags&&((_=ns).sibling=null,_.stateNode=null),ns=t;if(0===(r=e.pendingLanes)&&(is=null),1===r?e===ps?ds++:(ds=0,ps=e):ds=0,n=n.stateNode,Fr&&"function"==typeof Fr.onCommitFiberRoot)try{Fr.onCommitFiberRoot(Br,n,void 0,64==(64&n.current.flags))}catch(e){}if(Mj(e,ro()),rs)throw rs=!1,e=os,os=null,e;return 0!=(8&va)||uo(),null}function _s(){for(;null!==ns;){var e=ns.alternate;ys||null===ms||(0!=(8&ns.flags)?Xe(ns,ms)&&(ys=!0):13===ns.tag&&da(e,ns)&&Xe(ns,ms)&&(ys=!0));var t=ns.flags;0!=(256&t)&&Xi(e,ns),0==(512&t)||as||(as=!0,so(97,(function(){return Oj(),null}))),ns=ns.nextEffect}}function Oj(){if(90!==us){var e=97<us?97:us;return us=90,ao(e,ks)}return!1}function Es(e,t){ls.push(t,e),as||(as=!0,so(97,(function(){return Oj(),null})))}function Zi(e,t){cs.push(t,e),as||(as=!0,so(97,(function(){return Oj(),null})))}function ks(){if(null===ss)return!1;var e=ss;if(ss=null,0!=(48&va))throw Error(a(331));var t=va;va|=32;var n=cs;cs=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));Wi(i,e)}}for(n=ls,ls=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Wi(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return va=t,uo(),!0}function Cs(e,t,n){Ag(e,t=Pi(0,t=Mi(n,t),1)),t=Hg(),null!==(e=Kj(e,1))&&(Mt(e,1,t),Mj(e,t))}function Wi(e,t){if(3===e.tag)Cs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Cs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===is||!is.has(r))){var o=Si(n,e=Mi(t,e),1);if(Ag(n,o),o=Hg(),null!==(n=Kj(n,1)))Mt(n,1,o),Mj(n,o);else if("function"==typeof r.componentDidCatch&&(null===is||!is.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Yj(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Hg(),e.pingedLanes|=e.suspendedLanes&n,ma===e&&(ba&n)===n&&(4===_a||3===_a&&(62914560&ba)===ba&&500>ro()-qa?Qj(e,0):ja|=n),Mj(e,t)}function Os(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===oo()?1:2:(0===gs&&(gs=Oa),0===(t=Yc(62914560&~gs))&&(t=4194304))),n=Hg(),null!==(e=Kj(e,t))&&(Mt(e,t,n),Mj(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,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 Ds(e,t,n,r){return new Ms(e,t,n,r)}function Ts(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tg(e,t){var n=e.alternate;return null===n?((n=Ds(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vg(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ts(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Xg(n.children,o,i,t);case L:s=8,o|=16;break;case k:s=8,o|=1;break;case C:return(e=Ds(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case T:return(e=Ds(13,n,t,o)).type=T,e.elementType=T,e.lanes=i,e;case P:return(e=Ds(19,n,t,o)).elementType=P,e.lanes=i,e;case B:return Ps(n,o,i,t);case F:return(e=Ds(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case M:s=9;break e;case D:s=11;break e;case R:s=14;break e;case I:s=16,r=null;break e;case A:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ds(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Xg(e,t,n,r){return(e=Ds(7,e,r,t)).lanes=n,e}function Ps(e,t,n,r){return(e=Ds(23,e,r,t)).elementType=B,e.lanes=n,e}function Ug(e,t,n){return(e=Ds(6,e,null,t)).lanes=n,e}function Wg(e,t,n){return(t=Ds(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rs(e,t,n){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=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.mutableSourceEagerHydrationData=null}function Is(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function As(e,t,n,r){var o=t.current,i=Hg(),s=Ig(o);e:if(n){t:{if(Zb(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Ff(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(Ff(l)){n=If(n,l,u);break e}}n=u}else n=Ir;return null===t.context?t.context=n:t.pendingContext=n,(t=ko(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Ag(o,t),Jg(o,s,i),s}function Ns(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ls(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Bs(e,t){Ls(e,t),(e=e.alternate)&&Ls(e,t)}function Fs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Rs(e,t,null!=n&&!0===n.hydrate),t=Ds(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,_o(t),e[Er]=n.current,nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Ns(a);s.call(e)}}As(t,a,e,o)}else{if(i=n._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 n;n=e.lastChild;)e.removeChild(n);return new Fs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Ns(a);u.call(e)}}Xj((function(){As(t,a,e,o)}))}return Ns(a)}function Ks(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zs(t))throw Error(a(200));return Is(e,t,null,n)}ts=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Nr.current)mi=!0;else{if(0==(n&r)){switch(mi=!1,t.tag){case 3:Di(t),$o();break;case 5:Fo(t);break;case 1:Ff(t.type)&&Jf(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;Rr(po,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?ji(e,t,n):(Rr(jo,1&jo.current),null!==(t=Ji(e,t,n))?t.sibling:null);Rr(jo,1&jo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ai(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Rr(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,_i(e,t,n)}return Ji(e,t,n)}mi=0!=(16384&e.flags)}else mi=!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,o=Ef(t,Ar.current),wo(t,n),o=Ch(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ff(r)){var i=!0;Jf(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,_o(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&Gg(t,r,s,e),o.updater=Oo,t.stateNode=o,o._reactInternals=t,Og(t,r,e,n),t=Oi(null,t,r,!0,i,n)}else t.tag=0,yi(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ts(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===R)return 14}return 2}(o),e=fo(o,e),i){case 0:t=ki(null,t,o,e,n);break e;case 1:t=Ci(null,t,o,e,n);break e;case 11:t=bi(null,t,o,e,n);break e;case 14:t=wi(null,t,o,fo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,ki(e,t,r,o=t.elementType===r?o:fo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ci(e,t,r,o=t.elementType===r?o:fo(r,o),n);case 3:if(Di(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,Eo(e,t),Cg(t,r,null,n),(r=t.memoizedState.element)===o)$o(),t=Ji(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(qo=yr(t.stateNode.containerInfo.firstChild),Uo=t,i=Wo=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Qo.push(i);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else yi(e,t,r,n),$o();t=t.child}return t;case 5:return Fo(t),null===e&&Yo(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,hr(r,o)?s=null:null!==i&&hr(r,i)&&(t.flags|=16),Ei(e,t),yi(e,t,s,n),t.child;case 6:return null===e&&Yo(t),null;case 13:return ji(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Do(t,null,r,n):yi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,bi(e,t,r,o=t.elementType===r?o:fo(r,o),n);case 7:return yi(e,t,t.pendingProps,n),t.child;case 8:case 12:return yi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var u=t.type._context;if(Rr(po,u._currentValue),u._currentValue=i,null!==s)if(u=s.value,0===(i=Un(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(s.children===o.children&&!Nr.current){t=Ji(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=ko(-1,n&-n)).tag=2,Ag(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),bo(u.return,n),l.lanes|=n;break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}yi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,wo(t,n),r=r(o=So(o,i.unstable_observedBits)),t.flags|=1,yi(e,t,r,n),t.child;case 14:return i=fo(o=t.type,t.pendingProps),wi(e,t,o,i=fo(o.type,i),r,n);case 15:return xi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ff(r)?(e=!0,Jf(t)):e=!1,wo(t,n),Mg(t,r,o),Og(t,r,o,n),Oi(null,t,r,!0,e,n);case 19:return Ai(e,t,n);case 23:case 24:return _i(e,t,n)}throw Error(a(156,t.tag))},Fs.prototype.render=function(e){As(e,this._internalRoot,null,null)},Fs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;As(null,e,null,(function(){t[Er]=null}))},$e=function(e){13===e.tag&&(Jg(e,4,Hg()),Bs(e,4))},Qe=function(e){13===e.tag&&(Jg(e,67108864,Hg()),Bs(e,67108864))},et=function(e){if(13===e.tag){var t=Hg(),n=Ig(e);Jg(e,n,t),Bs(e,n)}},tt=function(e,t){return t()},ge=function(e,t,n){switch(t){case"input":if(W(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Db(r);if(!o)throw Error(a(90));Wa(r),W(r,o)}}}break;case"textarea":Q(e,n);break;case"select":null!=(t=n.value)&&V(e,!!n.multiple,t,!1)}},Gb=Wj,Hb=function(e,t,n,r,o){var i=va;va|=4;try{return ao(98,e.bind(null,t,n,r,o))}finally{0===(va=i)&&(es(),uo())}},Ib=function(){0==(49&va)&&(function Vj(){if(null!==fs){var e=fs;fs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Mj(e,ro())}))}uo()}(),Oj())},ye=function(e,t){var n=va;va|=2;try{return e(t)}finally{0===(va=n)&&(es(),uo())}};var Us={Events:[Cb,Or,Db,Eb,Fb,Oj,{current:!1}]},qs={findFiberByHostInstance:Cr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Ws={bundleType:qs.bundleType,version:qs.version,rendererPackageName:qs.rendererPackageName,rendererConfig:qs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:qs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{Br=Hs.inject(Ws),Fr=Hs}catch(oe){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Us,t.createPortal=Ks,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e,t){var n=va;if(0!=(48&n))return e(t);va|=1;try{if(e)return ao(99,e.bind(null,t))}finally{va=n,uo()}},t.hydrate=function(e,t,n){if(!zs(t))throw Error(a(200));return js(null,e,t,!0,n)},t.render=function(e,t,n){if(!zs(t))throw Error(a(200));return js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!zs(e))throw Error(a(40));return!!e._reactRootContainer&&(Xj((function(){js(null,null,e,!1,(function(){e._reactRootContainer=null,e[Er]=null}))})),!0)},t.unstable_batchedUpdates=Wj,t.unstable_createPortal=function(e,t){return Ks(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zs(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return js(e,t,n,!1,r)},t.version="17.0.2"},97762:(e,t,n)=>{"use strict";e.exports=n(38698)},69921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,u=60110,l=60112,c=60113,f=60120,d=60115,p=60116,h=60121,g=60122,v=60117,m=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),l=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),p=b("react.lazy"),h=b("react.block"),g=b("react.server.block"),v=b("react.fundamental"),m=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case p:case d:case s:return e;default:return t}}case r:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===m||e===i||e===c||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===v||e.$$typeof===h||e[0]===g)},t.typeOf=w},59864:(e,t,n)=>{"use strict";e.exports=n(69921)},46871:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},29983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(67294),a=h(i),s=h(n(73935)),u=h(n(45697)),l=h(n(28747)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(57149)),f=n(51112),d=h(f),p=n(46871);function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",b=f.canUseDOM&&void 0!==s.default.createPortal,w=function(e){return document.createElement(e)},S=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var _=function(e){function Modal(){var e,t,n;g(this,Modal);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return t=n=v(this,(e=Modal.__proto__||Object.getPrototypeOf(Modal)).call.apply(e,[this].concat(i))),n.removePortal=function(){!b&&s.default.unmountComponentAtNode(n.node);var e=x(n.props.parentSelector);e&&e.contains(n.node)?e.removeChild(n.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},n.portalRef=function(e){n.portal=e},n.renderPortal=function(e){var t=S()(n,a.default.createElement(l.default,r({defaultStyles:Modal.defaultStyles},e)),n.node);n.portalRef(t)},v(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Modal,e),o(Modal,[{key:"componentDidMount",value:function(){f.canUseDOM&&(b||(this.node=w("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&b?(!this.node&&b&&(this.node=w("div")),S()(a.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:Modal.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),Modal}(i.Component);_.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.oneOfType([u.default.instanceOf(d.default),u.default.instanceOf(f.SafeHTMLCollection),u.default.instanceOf(f.SafeNodeList),u.default.arrayOf(u.default.instanceOf(d.default))]),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func},_.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},_.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(_),t.default=_},28747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(67294),s=v(n(45697)),u=g(n(99685)),l=v(n(88338)),c=g(n(57149)),f=g(n(32409)),d=n(51112),p=v(d),h=v(n(89623));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(35063);var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){function ModalPortal(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,ModalPortal);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(ModalPortal.__proto__||Object.getPrototypeOf(ModalPortal)).call(this,e));return t.setOverlayRef=function(e){t.overlay=e,t.props.overlayRef&&t.props.overlayRef(e)},t.setContentRef=function(e){t.content=e,t.props.contentRef&&t.props.contentRef(e)},t.afterClose=function(){var e=t.props,n=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&f.remove(document.body,i),o&&f.remove(document.getElementsByTagName("html")[0],o),r&&y>0&&0===(y-=1)&&c.show(n),t.props.shouldFocusAfterRender&&(t.props.shouldReturnFocusAfterClose?(u.returnFocus(t.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),t.props.onAfterClose&&t.props.onAfterClose(),h.default.deregister(t)},t.open=function(){t.beforeOpen(),t.state.afterOpen&&t.state.beforeClose?(clearTimeout(t.closeTimer),t.setState({beforeClose:!1})):(t.props.shouldFocusAfterRender&&(u.setupScopedFocus(t.node),u.markForFocusLater()),t.setState({isOpen:!0},(function(){t.openAnimationFrame=requestAnimationFrame((function(){t.setState({afterOpen:!0}),t.props.isOpen&&t.props.onAfterOpen&&t.props.onAfterOpen({overlayEl:t.overlay,contentEl:t.content})}))})))},t.close=function(){t.props.closeTimeoutMS>0?t.closeWithTimeout():t.closeWithoutTimeout()},t.focusContent=function(){return t.content&&!t.contentHasFocus()&&t.content.focus({preventScroll:!0})},t.closeWithTimeout=function(){var e=Date.now()+t.props.closeTimeoutMS;t.setState({beforeClose:!0,closesAt:e},(function(){t.closeTimer=setTimeout(t.closeWithoutTimeout,t.state.closesAt-Date.now())}))},t.closeWithoutTimeout=function(){t.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},t.afterClose)},t.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(t.content,e),t.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),t.requestClose(e))},t.handleOverlayOnClick=function(e){null===t.shouldClose&&(t.shouldClose=!0),t.shouldClose&&t.props.shouldCloseOnOverlayClick&&(t.ownerHandlesClose()?t.requestClose(e):t.focusContent()),t.shouldClose=null},t.handleContentOnMouseUp=function(){t.shouldClose=!1},t.handleOverlayOnMouseDown=function(e){t.props.shouldCloseOnOverlayClick||e.target!=t.overlay||e.preventDefault()},t.handleContentOnClick=function(){t.shouldClose=!1},t.handleContentOnMouseDown=function(){t.shouldClose=!1},t.requestClose=function(e){return t.ownerHandlesClose()&&t.props.onRequestClose(e)},t.ownerHandlesClose=function(){return t.props.onRequestClose},t.shouldBeClosed=function(){return!t.state.isOpen&&!t.state.beforeClose},t.contentHasFocus=function(){return document.activeElement===t.content||t.content.contains(document.activeElement)},t.buildClassName=function(e,n){var r="object"===(void 0===n?"undefined":o(n))?n:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},i=r.base;return t.state.afterOpen&&(i=i+" "+r.afterOpen),t.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof n&&n?i+" "+n:i},t.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},t.state={afterOpen:!1,beforeClose:!1},t.shouldClose=null,t.moveFromContentToOverlay=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(ModalPortal,e),i(ModalPortal,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&f.add(document.body,o),r&&f.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,u=o?{}:i.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,a);return this.props.overlayElement(l,f)}}]),ModalPortal}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},57149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=l(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=l(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=n(42473),i=(r=o)&&r.__esModule?r:{default:r},a=n(51112);var s=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},35063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,u=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(u.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(89623),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,u=[];function l(){0!==u.length&&u[u.length-1].focusContent()}i.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(u=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},32409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var i=document.body;for(var a in r)o(i,r[a]);n={},r={}},t.log=function(){0};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)}));var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)}));var o,i}},99685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=n(37845),i=(r=o)&&r.__esModule?r:{default:r};var a=[],s=null,u=!1;function l(){u=!0}function c(){if(u){if(u=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},89623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function PortalOpenInstances(){var e=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,PortalOpenInstances),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},51112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(58875);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},88338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,s=n[0],u=n[n.length-1],l=a();if(e===l){if(!o)return;r=u}u!==l||o||(r=s);s===l&&o&&(r=u);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var f=n.indexOf(l);f>-1&&(f+=o?-1:1);if(void 0===(r=n[f]))return t.preventDefault(),void(r=o?u:s).focus();t.preventDefault(),r.focus()};var r,o=n(37845),i=(r=o)&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},37845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(i)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},83253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(29983),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},26858:(e,t,n)=>{"use strict";function r(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function o(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function i(e,t){try{return new RegExp(e,"g").exec(t)}catch(e){return null}}function a(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}function s(e){return e.replace(/_/g,".")}function u(e,t){var n=null,o="-1";return r(e,(function(e){var r=i("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!r||e.brand)&&(n=e,o=r[3]||"-1",e.versionAlias?o=e.versionAlias:e.versionTest&&(o=function(e,t){var n=i("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return n?n[3]:""}(e.versionTest.toLowerCase(),t)||o),o=s(o),!0)})),{preset:n,version:o}}function l(e,t){return o(e,(function(e){var n=e.brand;return i(""+t.test,n.toLowerCase())}))}n.d(t,{default:()=>ha});var c=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],f=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",brand:!0}],d=[{test:"applewebkit",id:"webkit"}],p=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],h=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"mac os x",id:"mac"},{test:"android",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function g(e){var t=navigator.userAgentData,n=(t.uaList||t.brands).slice(),i=t.mobile||!1,a=n[0],u={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webview:r(p,(function(e){return l(n,e)})),chromium:r(f,(function(e){return l(n,e)}))},g={name:"unknown",version:"-1",majorVersion:-1};if(u.webkit=!u.chromium&&r(d,(function(e){return l(n,e)})),e){var v=e.platform.toLowerCase(),m=o(h,(function(e){return new RegExp(""+e.test,"g").exec(v)}));g.name=m?m.id:v,g.version=e.platformVersion}return r(c,(function(t){var r=l(n,t);return!!r&&(u.name=t.id,u.version=e?e.uaFullVersion:r.version,!0)})),"Linux armv8l"===navigator.platform?g.name="android":u.webkit&&(g.name=i?"ios":"mac"),"ios"===g.name&&u.webview&&(u.version="-1"),g.version=s(g.version),u.version=s(u.version),g.majorVersion=parseInt(g.version,10),u.majorVersion=parseInt(u.version,10),{browser:u,os:g,isMobile:i,isHints:!0}}function v(e){var t=function(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}(e),n=!!/mobi/g.exec(t),r={name:"unknown",version:"-1",majorVersion:-1,webview:!!u(p,t).preset,chromium:!!u(f,t).preset,webkit:!1},o={name:"unknown",version:"-1",majorVersion:-1},i=u(c,t),a=i.preset,s=i.version,l=u(h,t),g=l.preset,v=l.version;return r.webkit=!r.chromium&&!!u(d,t).preset,g&&(o.name=g.id,o.version=v,o.majorVersion=parseInt(v,10)),a&&(r.name=a.id,r.version=s,r.webview&&"ios"===o.name&&"safari"!==r.name&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:o,isMobile:n,isHints:!1}}function m(e){return void 0===e&&a()?g():v(e)}const y=m;function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return t.split(" ").map((function(t){return t?""+e+t:""})).join(" ")})).join(" ")}function w(e,t){return function(n){n&&(e[t]=n)}}function S(e,t,n){return function(r){r&&(e[t][n]=r)}}var x="undefined",_=typeof window!==x,E=(typeof document!==x&&document,[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}]),k=1e-7,C={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function O(e){return typeof e===x}function M(e){return e&&"object"==typeof e}function D(e){return Array.isArray(e)}function T(e){return"string"==typeof e}function P(e){return"number"==typeof e}function R(e){return"function"==typeof e}function I(e,t,n,r,o){return A(e,t,n)?n:function(e,t,n,r,o){for(var i,a=function(n){var a=t[n].trim();if(a===e.close&&!A(e,t,n))return{value:n};var s=n,u=U(o,(function(e){return e.open===a}));if(u&&(s=I(u,t,n,r,o)),-1===s)return i=n,"break";i=n=s},s=n;s<r;++s){var u=a(s);if(s=i,"object"==typeof u)return u.value;if("break"===u)break}return-1}(e,t,n+1,r,o)}function A(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function N(e,t){var n=T(t)?{separator:t}:t,r=n.separator,o=void 0===r?",":r,i=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=void 0===s?a:s,l=n.openCloseCharacters,c=void 0===l?E:l,f=c.map((function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n})).join("|"),d=new RegExp("(\\s*"+o+"\\s*|"+f+"|\\s+)","g"),p=e.split(d).filter(Boolean),h=p.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var y,b=function(e){var t=p[e].trim(),n=e,r=U(c,(function(e){return e.open===t})),s=U(c,(function(e){return e.close===t}));if(r){if(-1!==(n=I(r,p,e,h,c))&&u)return m()&&i?(y=e,"break"):(g.push(p.slice(e,n+1).join("")),e=n,i?(y=e,"break"):(y=e,"continue"))}else{if(s&&!A(s,p,e))throw new Error("invalid format: "+s.close);if(function(e,t){return(""===t||" "==t)&&(""===e||" "==e)||e===t}(t,o)&&!a)return m(),i?(y=e,"break"):(y=e,"continue")}-1===n&&(n=h-1),v.push(p.slice(e,n+1).join("")),y=e=n},w=0;w<h;++w){var S=b(w);if(w=y,"break"===S)break}return v.length&&g.push(v.join("")),g}function L(e){return N(e,"")}function B(e){return N(e,",")}function F(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function z(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function j(){return Date.now?Date.now():(new Date).getTime()}function K(e,t,n){void 0===n&&(n=-1);for(var r=e.length,o=0;o<r;++o)if(t(e[o],o,e))return o;return n}function U(e,t,n){var r=K(e,t);return r>-1?e[r]:n}var q=function(){var e=j(),t=_&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=j();return window.setTimeout((function(){t(n-e)}),1e3/60)}}(),W=function(){var e=_&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function H(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in t)t.push(n);return t}function G(e,t){var n=z(e),r=n.value,o=n.unit;if(M(t)){var i=t[o];if(i){if(R(i))return i(r);if(C[o])return C[o](r,i)}}else if("%"===o)return r*t/100;return C[o]?C[o](r):r}function Y(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[J(t[0],k),J(t[0]/r,k)],[J(t[1]*r,k),J(t[1],k)]].filter((function(e){return e.every((function(e,r){var o=t[r],i=J(o,k);return n?e<=o||e<=i:e>=o||e>=i}))}))[0]||e}function V(e,t,n,r){if(!r)return e.map((function(e,r){return function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t[r],n[r])}));var o=e[0],i=e[1],a=!0===r?o/i:r,s=Y(e,t,!1,a),u=s[0],l=s[1],c=Y(e,n,!0,a),f=c[0],d=c[1];return o<u||i<l?(o=u,i=l):(o>f||i>d)&&(o=f,i=d),[o,i]}function X(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function $(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=Math.atan2(r,n);return o>=0?o:o+2*Math.PI}function Q(e){var t=function(e){return[0,1].map((function(t){return X(e.map((function(e){return e[t]})))}))}(e),n=$(t,e[0]),r=$(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function Z(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function J(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function ee(e,t){return e.forEach((function(n,r){e[r]=J(e[r],t)})),e}function te(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function ne(e,t,n,r){e.addEventListener(t,n,r)}function re(e,t,n,r){e.removeEventListener(t,n,r)}function oe(e,t,n,r,o,i){for(var a=0;a<o;++a){var s=n+a*o,u=r+a*o;e[s]+=e[u]*i,t[s]+=t[u]*i}}function ie(e,t,n,r,o){for(var i=0;i<o;++i){var a=n+i*o,s=r+i*o,u=e[a],l=t[a];e[a]=e[s],e[s]=u,t[a]=t[s],t[s]=l}}function ae(e,t,n,r,o){for(var i=0;i<r;++i){var a=n+i*r;e[a]/=o,t[a]/=o}}function se(e,t,n){void 0===n&&(n=Math.sqrt(e.length));for(var r=e.slice(),o=0;o<n;++o)r[o*n+t-1]=0,r[(t-1)*n+o]=0;return r[(t-1)*(n+1)]=1,r}function ue(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=Pe(t),o=0;o<t;++o){var i=t*o+o;if(!J(n[i],k))for(var a=o+1;a<t;++a)if(n[t*o+a]){ie(n,r,o,a,t);break}if(!J(n[i],k))return[];ae(n,r,o,t,n[i]);for(a=0;a<t;++a){var s=a,u=n[a+o*t];J(u,k)&&o!==a&&oe(n,r,s,o,t,-u)}}return r}function le(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function ce(e,t,n){if(void 0===t&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=Pe(n),o=Math.min(t,n),i=0;i<o-1;++i){for(var a=0;a<o-1;++a)r[i*n+a]=e[i*t+a];r[(i+1)*n-1]=e[(i+1)*t-1],r[(n-1)*n+i]=e[(t-1)*t+i]}return r[n*n-1]=e[t*t-1],r}function fe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Pe(e);return t.forEach((function(t){r=de(r,t,e)})),r}function de(e,t,n){void 0===n&&(n=Math.sqrt(e.length));var r=[],o=e.length/n,i=t.length/o;if(!o)return t;if(!i)return e;for(var a=0;a<n;++a)for(var s=0;s<i;++s){r[s*n+a]=0;for(var u=0;u<o;++u)r[s*n+a]+=e[u*n+a]*t[s*o+u]}return r}function pe(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]+t[o];return r}function he(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]-t[o];return r}function ge(e,t){return void 0===t&&(t=9===e.length),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function ve(e,t,n){void 0===n&&(n=t.length);var r=de(e,t,n),o=r[n-1];return r.map((function(e){return e/o}))}function me(e,t){return de(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function ye(e,t){return de(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function be(e,t){return de(e,ke(t,4))}function we(e,t){var n=t[0],r=void 0===n?1:n,o=t[1],i=void 0===o?1:o,a=t[2];return de(e,[r,0,0,0,0,i,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Se(e,t){return ve(ke(t,3),le(e,3))}function xe(e,t){var n=t[0],r=void 0===n?0:n,o=t[1],i=void 0===o?0:o,a=t[2];return de(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,void 0===a?0:a,1],4)}function _e(e,t){return de(e,t,4)}function ke(e,t){var n=Math.cos(e),r=Math.sin(e),o=Pe(t);return o[0]=n,o[1]=r,o[t]=-r,o[t+1]=n,o}function Pe(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function Ie(e,t){for(var n=Pe(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[(t+1)*o]=e[o];return n}function ze(e,t){for(var n=Pe(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[t*(t-1)+o]=e[o];return n}function je(e,t,n,r,o,i,a,s){var u=e[0],l=e[1],c=t[0],f=t[1],d=n[0],p=n[1],h=r[0],g=r[1],v=o[0],m=o[1],y=i[0],b=i[1],w=a[0],S=a[1],x=s[0],_=s[1],E=ue([u,0,c,0,d,0,h,0,l,0,f,0,p,0,g,0,1,0,1,0,1,0,1,0,0,u,0,c,0,d,0,h,0,l,0,f,0,p,0,g,0,1,0,1,0,1,0,1,-v*u,-m*u,-y*c,-b*c,-w*d,-S*d,-x*h,-_*h,-v*l,-m*l,-y*f,-b*f,-w*p,-S*p,-x*g,-_*g],8);if(!E.length)return[];var k=de(E,[v,m,y,b,w,S,x,_],8);return k[8]=1,ce(function(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var o=0;o<t;++o)n[o*t+r]=e[t*r+o];return n}(k),3,4)}function qe(e){return Ye(Xe(e))}function Ye(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(e){var n=e.matrixFunction,r=e.functionValue;n&&(t=n(t,r))})),t}function Xe(e){return(D(e)?e:L(e)).map((function(e){var t=F(e),n=t.prefix,r=t.value,o=null,i=n,a="";if("translate"===n||"translateX"===n||"translate3d"===n){var s=B(r).map((function(e){return parseFloat(e)})),u=s[0],l=s[1],c=void 0===l?0:l,f=s[2];o=xe,a=[u,c,void 0===f?0:f]}else if("translateY"===n){o=xe,a=[0,c=parseFloat(r),0]}else if("translateZ"===n){o=xe,a=[0,0,parseFloat(r)]}else if("scale"===n||"scale3d"===n){var d=B(r).map((function(e){return parseFloat(e)})),p=d[0],h=d[1],g=void 0===h?p:h,v=d[2];o=we,a=[p,g,void 0===v?1:v]}else if("scaleX"===n){o=we,a=[p=parseFloat(r),1,1]}else if("scaleY"===n){o=we,a=[1,g=parseFloat(r),1]}else if("scaleZ"===n){o=we,a=[1,1,parseFloat(r)]}else if("rotate"===n||"rotateZ"===n||"rotateX"===n||"rotateY"===n){var m=z(r),y=m.unit,b=m.value;"rotate"===n||"rotateZ"===n?(i="rotateZ",o=be):"rotateX"===n?o=me:"rotateY"===n&&(o=ye),a="rad"===y?b:b*Math.PI/180}else if("matrix3d"===n)o=_e,a=B(r).map((function(e){return parseFloat(e)}));else if("matrix"===n){var w=B(r).map((function(e){return parseFloat(e)}));o=_e,a=[w[0],w[1],0,0,w[2],w[3],0,0,0,0,1,0,w[4],w[5],0,1]}else i="";return{name:n,functionName:i,value:r,matrixFunction:o,functionValue:a}}))}var $e=function(){function PolyMap(){this.keys=[],this.values=[]}var e=PolyMap.prototype;return e.get=function(e){return this.values[this.keys.indexOf(e)]},e.set=function(e,t){var n=this.keys,r=this.values,o=n.indexOf(e),i=-1===o?n.length:o;n[i]=e,r[i]=t},PolyMap}(),Qe=function(){function HashMap(){this.object={}}var e=HashMap.prototype;return e.get=function(e){return this.object[e]},e.set=function(e,t){this.object[e]=t},HashMap}(),et="function"==typeof Map,tt=function(){function Link(){}var e=Link.prototype;return e.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},e.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},e.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},Link}();var nt=function(){function Result(e,t,n,r,o,i,a,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=o,this.maintained=i,this.changedBeforeAdded=a,this.fixed=s}var e=Result.prototype;return Object.defineProperty(e,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),e.caculateOrdered=function(){var e=function(e,t){var n=[],r=[];return e.forEach((function(e){var t=e[0],o=e[1],i=new tt;n[t]=i,r[o]=i})),n.forEach((function(e,t){e.connect(n[t-1])})),e.filter((function(e,n){return!t[n]})).map((function(e,t){var o=e[0],i=e[1];if(o===i)return[0,0];var a=n[o],s=r[i-1],u=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[u,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),t=this.changed,n=[];this.cacheOrdered=e.filter((function(e,r){var o=e[0],i=e[1],a=t[r],s=a[0],u=a[1];if(o!==i)return n.push([s,u]),!0})),this.cachePureChanged=n},Result}();function rt(e,t,n){var r=et?Map:n?Qe:$e,o=n||function(e){return e},i=[],a=[],s=[],u=e.map(o),l=t.map(o),c=new r,f=new r,d=[],p=[],h={},g=[],v=0,m=0;return u.forEach((function(e,t){c.set(e,t)})),l.forEach((function(e,t){f.set(e,t)})),u.forEach((function(e,t){var n=f.get(e);void 0===n?(++m,a.push(t)):h[n]=m})),l.forEach((function(e,t){var n=c.get(e);void 0===n?(i.push(t),++v):(s.push([n,t]),m=h[t]||0,d.push([n-m,t-v]),p.push(t===n),n!==t&&g.push([n,t]))})),a.reverse(),new nt(e,t,i,a,g,s,d,p)}var ot=function(){function ListDiffer(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return ListDiffer.prototype.update=function(e){var t=[].slice.call(e),n=rt(this.list,t,this.findKeyCallback);return this.list=t,n},ListDiffer}();var it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},it(e,t)};var at,st="function"==typeof Map?void 0:(at=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++at)});const ut=function(e){function ChildrenDiffer(t){return void 0===t&&(t=[]),e.call(this,t,st)||this}return function __extends(e,t){function __(){this.constructor=e}it(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(ChildrenDiffer,e),ChildrenDiffer}(ot);function lt(e){return e.length<3?0:Math.abs(function(e){for(var t=0,n=e.length-1;n>=0;--n)t+=e[n];return t}(e.map((function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]}))))/2}function ct(e,t){var n=t.width,r=t.height,o=t.left,i=t.top,a=ft(e),s=a.minX,u=a.minY,l=a.maxX,c=a.maxY,f=n/(l-s),d=r/(c-u);return e.map((function(e){return[o+(e[0]-s)*f,i+(e[1]-u)*d]}))}function ft(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function dt(e,t,n){var r=e[0],o=e[1],i=ft(t),a=i.minX,s=i.minY,u=i.maxX,l=i.maxY,c=[[a,o],[u,o]],f=[[r,s],[r,l]],d=pt(c[0],c[1]),p=pt(f[0],f[1]),h=vt(t),g=[],v=[];return h.forEach((function(e){var t=pt(e[0],e[1]),n=gt(ht(d,t),[c,e]),i=gt(ht(p,t),[f,e]);1===n.length&&e[0][1]===o||g.push.apply(g,n),1===i.length&&e[0][0]===r||v.push.apply(v,i),t[0]||g.push.apply(g,n),t[1]||v.push.apply(v,i)})),!n&&(K(g,(function(e){return e[0]===r}))>-1||K(v,(function(e){return e[1]===o}))>-1)||!!(g.filter((function(e){return e[0]>r})).length%2&&v.filter((function(e){return e[1]>o})).length%2)}function pt(e,t){var n=e[0],r=e[1],o=t[0],i=t[1];if(n===o&&r===i)return[0,0,0];if(n===o)return[1,0,-n];if(r===i)return[0,1,-r];var a=(o-n)/(r-i);return[1,a,-n-a*r]}function ht(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],l=t[2],c=0===o&&0===s,f=0===i&&0===u;if(c&&f)return[];if(c){var d=-a/i;return d!==-l/u?[]:[[-1/0,d],[1/0,d]]}if(f){var p=-a/o;return p!==-l/s?[]:[[p,-1/0],[p,1/0]]}return 0===o?[[n=-(u*(r=-a/i)+l)/s,r]]:0===s?[[n=-(i*(r=-l/u)+a)/o,r]]:0===i?[[n=-a/o,r=-(s*n+l)/u]]:0===u?[[n=-l/s,r=-(o*n+a)/i]]:[[n=(i*l-u*a)/(u*o-i*s),r=-(o*n+a)/i]]}function gt(e,t){var n=t.map((function(e){return[0,1].map((function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]}))}));if(2===e.length){var r=e[0],o=r[0],i=r[1];if(o===e[1][0]){var a=Math.max.apply(Math,n.map((function(e){return e[1][0]}))),s=Math.min.apply(Math,n.map((function(e){return e[1][1]})));return a>s?[]:[[o,a],[o,s]]}if(i===e[1][1]){var u=Math.max.apply(Math,n.map((function(e){return e[0][0]}))),l=Math.min.apply(Math,n.map((function(e){return e[0][1]})));return u>l?[]:[[u,i],[l,i]]}}return e.filter((function(e){return n.every((function(t){return t[0][0]<=e[0]&&e[0]<=t[0][1]&&t[1][0]<=e[1]&&e[1]<=t[1][1]}))}))}function vt(e){return function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(e.slice(1),[e[0]]).map((function(t,n){return[e[n],t]}))}function mt(e,t){var n=function(e,t){var n=e.slice(),r=t.slice();-1===Q(n)&&n.reverse(),-1===Q(r)&&r.reverse();var o=vt(n),i=vt(r),a=o.map((function(e){return pt(e[0],e[1])})),s=i.map((function(e){return pt(e[0],e[1])})),u=[];a.forEach((function(e,t){var n=o[t],a=[];s.forEach((function(r,o){var s=gt(ht(e,r),[n,i[o]]);a.push.apply(a,s.map((function(e){return{index1:t,index2:o,pos:e}})))})),a.sort((function(e,t){return Z(n[0],e.pos)-Z(n[0],t.pos)})),u.push.apply(u,a),dt(n[1],r)&&u.push({index1:t,index2:-1,pos:n[1]})})),i.forEach((function(e,t){if(dt(e[1],n)){var r=!1,o=K(u,(function(e){return e.index2===t?(r=!0,!1):!!r}));-1===o&&(r=!1,o=K(u,(function(e){var n=e.index1,o=e.index2;return-1===n&&o+1===t?(r=!0,!1):!!r}))),-1===o?u.push({index1:-1,index2:t,pos:e[1]}):u.splice(o,0,{index1:-1,index2:t,pos:e[1]})}}));var l=u.map((function(e){return e.pos})),c={};return l.filter((function(e){var t=e[0]+"x"+e[1];return!c[t]&&(c[t]=!0,!0)}))}(e,t);return lt(n)}var __assign=function(){return __assign=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};const yt=function(){function EventEmitter(){this._events={}}var e=EventEmitter.prototype;return e.on=function(e,t){if(M(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},e.off=function(e,t){if(e)if(M(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var o=K(r,(function(e){return e.listener===t}));o>-1&&r.splice(o,1)}}else this._events[e]=[];else this._events={};return this},e.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},e.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var o=!1;return t.eventType=e,t.stop=function(){o=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!o},e.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},e._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(__assign({listener:t},n))},EventEmitter}();var bt="undefined";typeof document!==bt&&document;function utils_esm_now(){return Date.now?Date.now():(new Date).getTime()}var wt=function(e,t){return wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},wt(e,t)};var St=function(){return St=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},St.apply(this,arguments)};function xt(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}const _t=function(e){function DragScroll(){var t=null!==e&&e.apply(this,arguments)||this;return t._startRect=null,t._startPos=[],t._prevTime=0,t._timer=0,t._prevScrollPos=[0,0],t._isWait=!1,t}!function(e,t){function __(){this.constructor=e}wt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(DragScroll,e);var t=DragScroll.prototype;return t.dragStart=function(e,t){var n=t.container,r=0,o=0,i=0,a=0;if(n===document.body)i=window.innerWidth,a=window.innerHeight;else{var s=n.getBoundingClientRect();r=s.top,o=s.left,i=s.width,a=s.height}this._startPos=[e.clientX,e.clientY],this._startRect={top:r,left:o,width:i,height:a},this._prevScrollPos=this._getScrollPosition([0,0],t)},t.drag=function(e,t){var n=e.clientX,r=e.clientY,o=t.threshold,i=void 0===o?0:o,a=this._startRect,s=this._startPos,u=[0,0];return a.top>r-i?(s[1]>a.top||r<s[1])&&(u[1]=-1):a.top+a.height<r+i&&(s[1]<a.top+a.height||r>s[1])&&(u[1]=1),a.left>n-i?(s[0]>a.left||n<s[0])&&(u[0]=-1):a.left+a.width<n+i&&(s[0]<a.left+a.width||n>s[0])&&(u[0]=1),clearTimeout(this._timer),!(!u[0]&&!u[1])&&this._continueDrag(St(St({},t),{direction:u,inputEvent:e,isDrag:!0}))},t.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,o=e.direction,i=e.throttleTime,a=void 0===i?0:i,s=e.inputEvent,u=e.isDrag,l=this._getScrollPosition(o||[0,0],e),c=l[0]-r[0],f=l[1]-r[1],d=o||[c?Math.abs(c)/c:0,f?Math.abs(f)/f:0];return this._prevScrollPos=l,!(!c&&!f)&&(this.trigger("move",{offsetX:d[0]?c:0,offsetY:d[1]?f:0,inputEvent:s}),a&&u&&(this._timer=window.setTimeout((function(){t._continueDrag(e)}),a)),!0)},t.dragEnd=function(){clearTimeout(this._timer)},t._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?xt:r)({container:n,direction:e})},t._continueDrag=function(e){var t=this,n=e.container,r=e.direction,o=e.throttleTime,i=e.useScroll,a=e.isDrag,s=e.inputEvent;if(!a||!this._isWait){var u=utils_esm_now(),l=Math.max(o+this._prevTime-u,0);if(l>0)return this._timer=window.setTimeout((function(){t._continueDrag(e)}),l),!1;this._prevTime=u;var c=this._getScrollPosition(r,e);return this._prevScrollPos=c,a&&(this._isWait=!0),this.trigger("scroll",{container:n,direction:r,inputEvent:s}),this._isWait=!1,i||this.checkScroll(St(St({},e),{prevScrollPos:c,direction:r,inputEvent:s}))}},DragScroll}(yt);var Et=n(67294),kt=function(e,t){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},kt(e,t)};var Ct=function(){return Ct=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ct.apply(this,arguments)};function Ot(e){return 180*(t=[e[0].clientX,e[0].clientY],n=[e[1].clientX,e[1].clientY],r=n[0]-t[0],o=n[1]-t[1],((i=Math.atan2(o,r))>=0?i:i+2*Math.PI)/Math.PI);var t,n,r,o,i}function Mt(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(Pt(e[r]));return n}(e.touches):[Pt(e)]:[]}function Dt(e,t,n){var r=n.length,o=Rt(e,r),i=o.clientX,a=o.clientY,s=o.originalClientX,u=o.originalClientY,l=Rt(t,r),c=l.clientX,f=l.clientY,d=Rt(n,r);return{clientX:s,clientY:u,deltaX:i-c,deltaY:a-f,distX:i-d.clientX,distY:a-d.clientY}}function Tt(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function Pt(e){return{clientX:e.clientX,clientY:e.clientY}}function Rt(e,t){void 0===t&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=0;r<t;++r){var o=e[r];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var It=function(){function ClientStore(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}var e=ClientStore.prototype;return e.getAngle=function(e){return void 0===e&&(e=this.prevClients),Ot(e)},e.getRotation=function(e){return void 0===e&&(e=this.prevClients),Ot(e)-Ot(this.startClients)},e.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=Dt(e||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,o=n.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=e,n},e.getPositions=function(e){void 0===e&&(e=this.prevClients);var t=this.prevClients;return this.startClients.map((function(n,r){return Dt([e[r]],[t[r]],[n])}))},e.getMovement=function(e){var t=this.movement;if(!e)return t;var n=Rt(e,this.length),r=Rt(this.prevClients,this.length),o=n.clientX-r.clientX,i=n.clientY-r.clientY;return Math.sqrt(o*o+i*i)+t},e.getDistance=function(e){return void 0===e&&(e=this.prevClients),Tt(e)},e.getScale=function(e){return void 0===e&&(e=this.prevClients),Tt(e)/Tt(this.startClients)},e.move=function(e,t){this.startClients.forEach((function(n){n.clientX-=e,n.clientY-=t}))},ClientStore}(),At=["textarea","input"];const Nt=function(e){function Gesto(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.datas={},r.isDrag=!1,r.isPinch=!1,r.isMouse=!1,r.isTouch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._dragFlag=!1,r.onDragStart=function(e,t){if(void 0===t&&(t=!0),r.flag||!1!==e.cancelable){var n=r.options,o=n.container,i=n.pinchOutside,a=n.preventWheelClick,s=n.preventRightClick,u=n.preventDefault,l=n.checkInput,c=r.isTouch,f=!r.flag;if(a&&(2===e.which||1===e.button)||s&&(3===e.which||2===e.button))return r.initDrag(),!1;if(f){var d=document.activeElement,p=e.target,h=p.tagName.toLowerCase(),g=At.indexOf(h)>-1,v=p.isContentEditable;if(g||v){if(l||d===p)return!1;if(d&&v&&d.isContentEditable&&d.contains(p))return!1}else if((u||"touchstart"===e.type)&&d){var m=d.tagName;(d.isContentEditable||At.indexOf(m)>-1)&&d.blur()}r.clientStores=[new It(Mt(e))],r.flag=!0,r.isDrag=!1,r._dragFlag=!0,r.datas={},r.doubleFlag=j()-r.prevTime<200,!1===r.emit("dragStart",Ct(Ct({datas:r.datas,inputEvent:e,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}}))&&r.initDrag(),r.flag&&u&&e.preventDefault()}if(!r.flag)return!1;var y=0;if(f&&c&&i&&(y=setTimeout((function(){ne(o,"touchstart",r.onDragStart,{passive:!1})}))),!f&&c&&i&&re(o,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(y),f&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}},r.onDrag=function(e,t){if(r.flag){var n=Mt(e),o=r.moveClients(n,e,!1);if(r._dragFlag){if(r.pinchFlag||o.deltaX||o.deltaY)if(!1===r.emit("drag",Ct(Ct({},o),{isScroll:!!t,inputEvent:e})))return void r.stop();r.pinchFlag&&r.onPinch(e,n)}r.getCurrentStore().getPosition(n,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container;r.isTouch&&n&&re(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var i=(null==e?void 0:e.touches)?Mt(e):[];0!==i.length&&r.options.keepDragging?r._addStore(new It(i)):r.flag=!1;var a=r._getPosition(),s=j(),u=!r.isDrag&&r.doubleFlag;r.prevTime=r.isDrag||u?0:s,r.flag||(r.emit("dragEnd",Ct({datas:r.datas,isDouble:u,isDrag:r.isDrag,isClick:!r.isDrag,inputEvent:e},a)),r.clientStores=[])}},r.onBlur=function(){r.onDragEnd()};var o=[].concat(t);r.options=Ct({checkInput:!1,container:o.length>1?window:o[0],preventRightClick:!0,preventWheelClick:!0,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var i=r.options,a=i.container,s=i.events,u=i.checkWindowBlur;if(r.isTouch=s.indexOf("touch")>-1,r.isMouse=s.indexOf("mouse")>-1,r.targets=o,r.isMouse&&(o.forEach((function(e){ne(e,"mousedown",r.onDragStart)})),ne(a,"mousemove",r.onDrag),ne(a,"mouseup",r.onDragEnd),ne(a,"contextmenu",r.onDragEnd)),u&&ne(window,"blur",r.onBlur),r.isTouch){var l={passive:!1};o.forEach((function(e){ne(e,"touchstart",r.onDragStart,l)})),ne(a,"touchmove",r.onDrag,l),ne(a,"touchend",r.onDragEnd,l),ne(a,"touchcancel",r.onDragEnd,l)}return r}!function(e,t){function __(){this.constructor=e}kt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(Gesto,e);var t=Gesto.prototype;return t.stop=function(){this.isDrag=!1,this.flag=!1,this.clientStores=[],this.datas={}},t.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},t.isDragging=function(){return this.isDrag},t.isFlag=function(){return this.flag},t.isPinchFlag=function(){return this.pinchFlag},t.isDoubleFlag=function(){return this.doubleFlag},t.isPinching=function(){return this.isPinch},t.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},t.move=function(e,t){var n=e[0],r=e[1],o=this.getCurrentStore().prevClients;return this.moveClients(o.map((function(e){var t=e.clientX,o=e.clientY;return{clientX:t+n,clientY:o+r,originalClientX:t,originalClientY:o}})),t,!0)},t.triggerDragStart=function(e){this.onDragStart(e,!1)},t.setEventDatas=function(e){var t=this.datas;for(var n in e)t[n]=e[n];return this},t.getCurrentEvent=function(e){return Ct(Ct({datas:this.datas},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.getEventDatas=function(){return this.datas},t.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),re(window,"blur",this.onBlur),this.isMouse&&(t.forEach((function(t){re(t,"mousedown",e.onDragStart)})),re(n,"mousemove",this.onDrag),re(n,"mouseup",this.onDragEnd),re(n,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach((function(t){re(t,"touchstart",e.onDragStart)})),re(n,"touchstart",this.onDragStart),re(n,"touchmove",this.onDrag),re(n,"touchend",this.onDragEnd),re(n,"touchcancel",this.onDragEnd))},t.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var n=new It(Mt(e));this.pinchFlag=!0,this._addStore(n),!1===this.emit("pinchStart",Ct(Ct({datas:this.datas,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition()),{inputEvent:e}))&&(this.pinchFlag=!1)}},t.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Ct(Ct({datas:this.datas,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t)),{inputEvent:e}))}},t.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",Ct(Ct({datas:this.datas,isPinch:t,touches:n.getPositions()},n.getPosition()),{inputEvent:e}))}},t.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},t.getCurrentStore=function(){return this.clientStores[0]},t.moveClients=function(e,t,n){var r=this._getPosition(e,n);return(r.deltaX||r.deltaY)&&(this.isDrag=!0),Ct(Ct({datas:this.datas},r),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},t._addStore=function(e){this.clientStores.splice(0,0,e)},t._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce((function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e}),n),o=r.distX,i=r.distY;return Ct(Ct({},n),{distX:o,distY:i})},Gesto}(yt);var Lt=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0};function Bt(e,t,n,r){var o=document.createElement("style");return o.setAttribute("type","text/css"),o.setAttribute("data-styled-id",e),n.nonce&&o.setAttribute("nonce",n.nonce),o.innerHTML=function(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(t,n){var r=n.trim();return(r?B(r):[""]).map((function(t){var n=t.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?""+n.replace(/\:host/g,"."+e):n?"."+e+" "+n:"."+e})).join(", ")+" {"}))}(e,t,n),(r||document.head||document.body).appendChild(o),o}const Ft=function(e){var t,n="rCS"+Lt(e).toString(36),r=0;return{className:n,inject:function(o,i){void 0===i&&(i={});var a,s=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(o),u=0===r;return(s||u)&&(a=Bt(n,e,i,s)),u&&(t=a),s||++r,{destroy:function(){s?(o.removeChild(a),a=null):(r>0&&--r,0===r&&t&&(t.parentNode.removeChild(t),t=null))}}}}};var zt=function(e,t){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},zt(e,t)};function jt(e,t){function __(){this.constructor=e}zt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Kt=function(){return Kt=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kt.apply(this,arguments)};var Ut=function(e){function StyledElement(){var t=null!==e&&e.apply(this,arguments)||this;return t.injectResult=null,t.tag="div",t}jt(StyledElement,e);var t=StyledElement.prototype;return t.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=(e.cspNonce,e.portalContainer),o=function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","cspNonce","portalContainer"]),i=this.injector.className,a=this.tag,s={};return(Et.version||"").indexOf("simple")>-1&&r&&(s={portalContainer:r}),(0,Et.createElement)(a,Kt({ref:w(this,"element"),"data-styled-id":i,className:n+" "+i},s,o))},t.componentDidMount=function(){this.injectResult=this.injector.inject(this.element,{nonce:this.props.cspNonce})},t.componentWillUnmount=function(){this.injectResult.destroy(),this.injectResult=null},t.getElement=function(){return this.element},StyledElement}(Et.Component);const qt=function(e,t){var n=Ft(t);return function(t){function Styled(){var r=null!==t&&t.apply(this,arguments)||this;return r.injector=n,r.tag=e,r}return jt(Styled,t),Styled}(Ut)};var Wt=function(e,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Wt(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Gt=function(){return Gt=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gt.apply(this,arguments)};function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Yt(e,t){var n;return Gt({events:{},props:(n={},n[e]=Boolean,n),name:e},t)}var Vt,Xt,$t=y().browser.webkit,Qt=$t&&(Vt="undefined"==typeof window?{userAgent:""}:window.navigator,!!(Xt=/applewebkit\/([^\s]+)/g.exec(Vt.userAgent.toLowerCase()))&&parseFloat(Xt[1])<605),Zt="moveable-",Jt="\n{\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tleft: 0;\n\ttop: 0;\n z-index: 3000;\n --moveable-color: #4af;\n --zoom: 1;\n --zoompx: 1px;\n will-change: transform;\n}\n.control-box {\n z-index: 0;\n}\n.line, .control {\n position: absolute;\n\tleft: 0;\n top: 0;\n will-change: transform;\n}\n.control {\n\twidth: 14px;\n\theight: 14px;\n\tborder-radius: 50%;\n\tborder: 2px solid #fff;\n\tbox-sizing: border-box;\n background: #4af;\n background: var(--moveable-color);\n\tmargin-top: -7px;\n margin-left: -7px;\n border: 2px solid #fff;\n z-index: 10;\n}\n.padding {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100px;\n height: 100px;\n transform-origin: 0 0;\n}\n.line {\n\twidth: 1px;\n height: 1px;\n background: #4af;\n background: var(--moveable-color);\n\ttransform-origin: 0px 50%;\n}\n.line.dashed {\n box-sizing: border-box;\n background: transparent;\n}\n.line.dashed.horizontal {\n border-top: 1px dashed #4af;\n border-top-color: #4af;\n border-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\n border-left: 1px dashed #4af;\n border-left-color: #4af;\n border-left-color: var(--moveable-color);\n}\n.line.vertical {\n transform: translateX(-50%);\n}\n.line.horizontal {\n transform: translateY(-50%);\n}\n.line.vertical.bold {\n width: 2px;\n}\n.line.horizontal.bold {\n height: 2px;\n}\n\n.control.origin {\n\tborder-color: #f55;\n\tbackground: #fff;\n\twidth: 12px;\n\theight: 12px;\n\tmargin-top: -6px;\n margin-left: -6px;\n\tpointer-events: none;\n}\n".concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(e){return'\n.direction[data-rotation="'.concat(e,'"] {\n\t').concat(function(e){var t=function(e,t){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*e,'px" height="').concat(32*e,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(t,'deg);transform-origin: 16px 16px"></path></svg>')}(1,e),n=45*Math.round(e/45)%180,r="ns-resize";return 135===n?r="nwse-resize":45===n?r="nesw-resize":90===n&&(r="ew-resize"),"cursor:".concat(r,";cursor: url('").concat(t,"') 16 16, ").concat(r,";")}(e),"\n}\n")})).join("\n"),"\n.group {\n z-index: -1;\n}\n.area {\n position: absolute;\n}\n.area-pieces {\n position: absolute;\n top: 0;\n left: 0;\n display: none;\n}\n.area.avoid, .area.pass {\n pointer-events: none;\n}\n.area.avoid+.area-pieces {\n display: block;\n}\n.area-piece {\n position: absolute;\n}\n\n").concat(Qt?':global svg *:before {\n\tcontent:"";\n\ttransform-origin: inherit;\n}':"","\n"),en=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],tn=1e-7,nn=1e-9,rn=Math.pow(10,10),on=-rn,an=["n","w","s","e","nw","ne","sw","se"],sn={n:[0,1],s:[2,3],w:[2,0],e:[1,3],nw:[0],ne:[1],sw:[2],se:[3]},un={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},ln=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate"];function cn(e,t,n,r,o){var i=t.gesto.move(n,e.inputEvent),a=i.originalDatas||i.datas,s=a.draggable||(a.draggable={});return Gt(Gt({},o?No(t,i):i),{isPinch:!!r,parentEvent:!0,datas:s,originalDatas:e.originalDatas})}var fn=function(){function CustomGesto(){this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}}}var e=CustomGesto.prototype;return e.dragStart=function(e,t){this.isDrag=!1,this.isFlag=!1;var n=t.originalDatas;return this.datas=n,n.draggable||(n.draggable={}),Gt(Gt({},this.move(e,t.inputEvent)),{type:"dragstart"})},e.drag=function(e,t){return this.move([e[0]-this.prevX,e[1]-this.prevY],t)},e.move=function(e,t){var n,r;return this.isFlag?(n=this.prevX+e[0],r=this.prevY+e[1],(e[0]||e[1])&&(this.isDrag=!0)):(this.prevX=e[0],this.prevY=e[1],this.startX=e[0],this.startY=e[1],n=e[0],r=e[1],this.isFlag=!0),this.prevX=n,this.prevY=r,{type:"drag",clientX:n,clientY:r,inputEvent:t,isDrag:this.isDrag,distX:n-this.startX,distY:r-this.startY,deltaX:e[0],deltaY:e[1],datas:this.datas.draggable,originalDatas:this.datas,parentEvent:!0,parentGesto:this}},CustomGesto}();function dn(e,t,n){var r=n.originalDatas;r.groupable=r.groupable||{};var o=r.groupable;o.childDatas=o.childDatas||[];var i=o.childDatas;return e.moveables.map((function(e,r){return i[r]=i[r]||{},i[r][t]=i[r][t]||{},Gt(Gt({},n),{datas:i[r][t],originalDatas:i[r]})}))}function pn(e,t,n,r,o,i){var a=!!n.match(/Start$/g),s=!!n.match(/End$/g),u=o.isPinch,l=o.datas,c=dn(e,t.name,o),f=e.moveables,d=c.map((function(e,o){var c=f[o],d=c.state,p=e;if(a)p=(new fn).dragStart(r,e);else{if(d.gesto||(d.gesto=l.childGestos[o]),!d.gesto)return;p=cn(e,d,r,u,i)}var h=t[n](c,Gt(Gt({},p),{parentFlag:!0}));return s&&(d.gesto=null),h}));return a&&(l.childGestos=f.map((function(e){return e.state.gesto}))),d}function hn(e,t,n,r,o,i){void 0===o&&(o=function(e,t){return t});var a=!!n.match(/End$/g),s=dn(e,t.name,r),u=e.moveables;return s.map((function(e,r){var s,l=u[r];s=o(l,e);var c=t[n](l,Gt(Gt({},s),{parentFlag:!0}));return c&&i&&i(l,e,c,r),a&&(l.state.gesto=null),c}))}function gn(e,t,n,r){void 0===r&&(r="");var o=e.state,i=o.renderPoses,a=o.rotation,s=o.direction,u=e.props,l=u.renderDirections,c=void 0===l?t:l,f=u.zoom,d={};if(!c)return[];var p=s>0?1:-1,h=!0===c?an:c,g=a/Math.PI*180;return h.forEach((function(e){d[e]=!0})),h.map((function(e){var t=sn[e];if(!t||!d[e])return null;var o=(J(g,15)+p*un[e]+720)%180;return n.createElement("div",{className:Hr("control","direction",e,r),"data-rotation":o,"data-direction":e,key:"direction-".concat(e),style:mo.apply(void 0,__spreadArray([a,f],t.map((function(e){return i[e]})),!1))})}))}function vn(e,t,n,r,o,i){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var u=$(n,r),l=t?J(u/Math.PI*180,15)%180:-1;return e.createElement("div",{key:"line".concat(i),className:Hr.apply(void 0,__spreadArray(["line","direction",t],a,!1)),"data-rotation":l,"data-line-index":i,"data-direction":t,style:vo(n,r,o,u)})}function mn(e,t){return gn(e,an,t)}function yn(e,t){return gn(e,["nw","ne","sw","se"],t)}function bn(e,t,n,r,o,i){var a=e.state.is3d?4:3,s=uo(e.state.rootMatrix,o,a),u=pe([i.left,i.top],s);t.startAbsoluteOrigin=u,t.prevDeg=$(u,[n,r])/Math.PI*180,t.defaultDeg=t.prevDeg,t.prevSnapDeg=0,t.loop=0}function wn(e,t,n){var r=n.defaultDeg,o=n.prevDeg,i=o%360,a=Math.floor(o/360);i<0&&(i+=360),i>e&&i>270&&e<90?++a:i<e&&i<90&&e>270&&--a;var s=t*(360*a+e-r);return n.prevDeg=r+s,s}function Sn(e,t,n,r){return wn($(r.startAbsoluteOrigin,[e,t])/Math.PI*180,n,r)}function xn(e,t,n,r,o,i){var a=e.props.throttleRotate,s=void 0===a?0:a,u=r,l=n.prevSnapDeg;i&&(u=function(e,t,n,r){if(!Dn(e,"rotatable"))return r;var o=t.pos1,i=t.pos2,a=t.pos3,s=t.pos4,u=r*Math.PI/180,l=[o,i,a,s].map((function(e){return he(e,n)})),c=l.map((function(e){return Se(e,u)})),f=__spreadArray(__spreadArray([],function(e,t,n,r,o){if(!e.props.bounds)return[];var i=o*Math.PI/180,a=Jn(e),s=a.left,u=a.top,l=a.right,c=a.bottom,f=s-r[0],d=l-r[0],p=u-r[1],h=c-r[1],g={left:f,top:p,right:d,bottom:h};if(!tr(n,g,0))return[];var v=[];return[[f,0],[d,0],[p,1],[h,1]].forEach((function(e){var r=e[0],o=e[1];n.forEach((function(e){var n=$([0,0],e);v.push.apply(v,function(e,t,n){var r=ho(e),o=Math.sqrt(r*r-t*t)||0;return[o,-o].sort((function(t,r){return Math.abs(t-e[n?0:1])-Math.abs(r-e[n?0:1])})).map((function(e){return $([0,0],n?[e,t]:[t,e])}))}(e,r,o).map((function(e){return i+e-n})).filter((function(e){return!tr(t,g,e)})).map((function(e){return J(180*e/Math.PI,tn)})))}))})),v}(e,l,c,n,r),!0),function(e,t,n,r,o){var i=e.props.innerBounds,a=o*Math.PI/180;if(!i)return[];var s=i.left,u=i.top,l=i.width,c=i.height,f=s-r[0],d=s+l-r[0],p=u-r[1],h=u+c-r[1],g=[[f,p],[d,p],[f,h],[d,h]],v=Rr(n,[0,0]);if(!Qn(n,g,v,0))return[];var m=[],y=g.map((function(e){return[ho(e),$([0,0],e)]}));return[[n[0],n[1]],[n[1],n[3]],[n[3],n[2]],[n[2],n[0]]].forEach((function(e){var n=$([0,0],function(e){var t=e[0],n=e[1],r=n[0]-t[0],o=n[1]-t[1];if(!r)return[t[0],0];if(!o)return[0,t[1]];var i=o/r,a=-i*t[0]+t[1];return[-a/(i+1/i),a/(i*i+1)]}(e)),r=function(e){var t=e[0],n=e[1],r=n[0]-t[0],o=n[1]-t[1];if(!r)return Math.abs(t[0]);if(!o)return Math.abs(t[1]);var i=o/r;return Math.abs((-i*t[0]+t[1])/Math.sqrt(Math.pow(i,2)+1))}(e);m.push.apply(m,y.filter((function(e){var t=e[0];return t&&r<=t})).map((function(e){var t=e[0],o=e[1],i=Math.acos(t?r/t:0);return[a+(o+i)-n,a+(o-i)-n]})).reduce((function(e,t){return e.push.apply(e,t),e}),[]).filter((function(e){return!Qn(t,g,v,e)})).map((function(e){return J(180*e/Math.PI,tn)})))})),m}(e,l,c,n,r),!0);return f.sort((function(e,t){return Math.abs(e-r)-Math.abs(t-r)})),f.length?f[0]:r}(e,t,n.origin,u));var c=J(o+u,s),f=c-o;return n.prevSnapDeg=f,[f-l,u,c]}function _n(e,t){if(t.isRequest)return"rotatable"===t.requestAble;var n=t.inputEvent.target;if(te(n,Hr("rotation-control")))return!0;var r=e.props.rotationTarget;return!!r&&Uo(r,!0).some((function(e){return!!e&&(n===e||n.contains(e))}))}var En={name:"rotatable",canPinch:!0,props:{rotatable:Boolean,rotationPosition:String,throttleRotate:Number,renderDirections:Object,rotationTarget:Object},events:{onRotateStart:"rotateStart",onBeforeRotate:"beforeRotate",onRotate:"rotate",onRotateEnd:"rotateEnd",onRotateGroupStart:"rotateGroupStart",onBeforeRotateGroup:"beforeRotateGroup",onRotateGroup:"rotateGroup",onRotateGroupEnd:"rotateGroupEnd"},css:[".rotation {\n position: absolute;\n height: 40px;\n width: 1px;\n transform-origin: 50% 100%;\n height: calc(40px * var(--zoom));\n top: auto;\n left: 0;\n bottom: 100%;\n will-change: transform;\n }\n .rotation .rotation-line {\n display: block;\n width: 100%;\n height: 100%;\n transform-origin: 50% 50%;\n }\n .rotation .rotation-control {\n border-color: #4af;\n border-color: var(--moveable-color);\n background:#fff;\n cursor: alias;\n }"],render:function(e,t){var n=e.props,r=n.rotatable,o=n.rotationPosition,i=n.zoom,a=n.renderDirections,s=e.state,u=s.renderPoses,l=s.direction;if(!r)return null;var c=function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3];if("none"!==e){var s=(e||"top").split("-"),u=s[0],l=s[1],c=[r,o];"left"===u?c=[i,r]:"right"===u?c=[o,a]:"bottom"===u&&(c=[a,i]);var f=[(c[0][0]+c[1][0])/2,(c[0][1]+c[1][1])/2],d=bo(c,n);if(l){var p="top"===l||"left"===l,h="bottom"===u||"left"===u;f=c[p&&!h||!p&&h?0:1]}return[f,d]}}(o,u,l),f=[];if(c){var d=c[0],p=c[1];f.push(t.createElement("div",{key:"rotation",className:Hr("rotation"),style:{transform:"translate(-50%) translate(".concat(d[0],"px, ").concat(d[1],"px) rotate(").concat(p,"rad)")}},t.createElement("div",{className:Hr("line rotation-line"),style:{transform:"scaleX(".concat(i,")")}}),t.createElement("div",{className:Hr("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(i,")")}})))}return a&&f.push.apply(f,gn(e,[],t)),f},dragControlCondition:_n,dragControlStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY,i=t.parentRotate,a=t.parentFlag,s=t.isPinch,u=t.isRequest,l=e.state,c=l.target,f=l.left,d=l.top,p=l.origin,h=l.beforeOrigin,g=l.direction,v=l.beforeDirection,m=l.targetTransform,y=l.moveableClientRect;if(!u&&!c)return!1;var b=e.getRect();if(n.rect=b,n.transform=m,n.left=f,n.top=d,n.fixedPosition=Ur(e,Kr(e)),u||s||a){var w=i||0;n.beforeInfo={origin:b.beforeOrigin,prevDeg:w,defaultDeg:w,prevSnapDeg:0},n.afterInfo=Gt(Gt({},n.beforeInfo),{origin:b.origin}),n.absoluteInfo=Gt(Gt({},n.beforeInfo),{origin:b.origin,startValue:w})}else n.beforeInfo={origin:b.beforeOrigin},n.afterInfo={origin:b.origin},n.absoluteInfo={origin:b.origin,startValue:b.rotation},bn(e,n.beforeInfo,r,o,h,y),bn(e,n.afterInfo,r,o,p,y),bn(e,n.absoluteInfo,r,o,p,y);n.direction=g,n.beforeDirection=v,n.startValue=0,n.datas={},Nr(t,"rotate");var S=Co(e,t,Gt(Gt({set:function(e){n.startValue=e*Math.PI/180}},Ar(t)),{dragStart:xr.dragStart(e,(new fn).dragStart([0,0],t))})),x=Do(e,"onRotateStart",S);return n.isRotate=!1!==x,e.state.snapRenderInfo={request:t.isRequest},!!n.isRotate&&S},dragControl:function(e,t){var n,r,o,i=t.datas,a=t.clientX,s=t.clientY,u=t.parentRotate,l=t.parentFlag,c=t.isPinch,f=t.groupDelta,d=i.beforeDirection,p=i.beforeInfo,h=i.afterInfo,g=i.absoluteInfo,v=i.isRotate,m=i.startValue,y=i.rect;if(v){kr(t,"rotate");var b,w,S,x,_,E,k,C,O,M=function(e){return po(e.datas.beforeTransform,[50,50],100,100).direction}(t),D=d*M,T=e.props.parentMoveable,P=180/Math.PI*m,R=g.startValue,I=!1;if(!l&&"parentDist"in t){var A=t.parentDist;w=A,_=A,C=A}else c||l?(w=wn(u,d,p),_=wn(u,D,h),C=wn(u,D,g)):(w=Sn(a,s,d,p),_=Sn(a,s,D,h),C=Sn(a,s,D,g),I=!0);if(Do(e,"onBeforeRotate",Co(e,t,{beforeRotation:S=P+w,rotation:E=P+_,absoluteRotation:O=R+C,setRotation:function(e){w=_=e-P,C=_}},!0)),b=(n=xn(e,y,p,w,P,I))[0],w=n[1],S=n[2],x=(r=xn(e,y,h,_,P,I))[0],_=r[1],E=r[2],k=(o=xn(e,y,g,C,R,I))[0],C=o[1],O=o[2],k||x||b||T){var N=Cr(i,"rotate(".concat(E,"deg)"),"rotate(".concat(_,"deg)")),L=function(e,t,n,r){var o=Kr(e);return jr(e,"rotate(".concat(t,"deg)"),o,n,r)}(e,_,i.fixedPosition,i),B=he(pe(f||[0,0],L),i.prevInverseDist||[0,0]);i.prevInverseDist=L,i.requestValue=null;var F=Co(e,t,Gt({delta:x,dist:_,rotate:E,rotation:E,beforeDist:w,beforeDelta:b,beforeRotate:S,beforeRotation:S,absoluteDist:C,absoluteDelta:k,absoluteRotate:O,absoluteRotation:O,isPinch:!!c},zr(e,N,B,c,t)));return Do(e,"onRotate",F),F}}},dragControlAfter:function(e,t){t.datas.requestValue},dragControlEnd:function(e,t){var n=t.datas;if(n.isRotate){n.isRotate=!1;var r=Oo(e,t,{});return Do(e,"onRotateEnd",r),r}},dragGroupControlCondition:_n,dragGroupControlStart:function(e,t){var n=t.datas,r=e.state,o=r.left,i=r.top,a=r.beforeOrigin,s=this.dragControlStart(e,t);if(!s)return!1;s.set(n.beforeDirection*e.rotation);var u=hn(e,this,"dragControlStart",t,(function(e,t){var n=e.state,r=n.left,s=n.top,u=n.beforeOrigin,l=pe(he([r,s],[o,i]),he(u,a));return t.datas.groupClient=l,Gt(Gt({},t),{parentRotate:0})})),l=Do(e,"onRotateGroupStart",Gt(Gt({},s),{targets:e.props.targets,events:u}));return n.isRotate=!1!==l,!!n.isRotate&&s},dragGroupControl:function(e,t){var n=t.datas;if(n.isRotate){Mo(e,"onBeforeRotate",(function(n){Do(e,"onBeforeRotateGroup",Co(e,t,Gt(Gt({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=n.beforeDirection,i=r.beforeDist,a=r.beforeDelta/180*Math.PI,s=hn(e,this,"dragControl",t,(function(e,t){var n=t.datas.groupClient,r=n[0],s=n[1],u=Se([r,s],a*o),l=u[0],c=u[1],f=[l-r,c-s];return t.datas.groupClient=[l,c],Gt(Gt({},t),{parentRotate:i,groupDelta:f})}));e.rotation=o*r.beforeRotation;var u=Gt({targets:e.props.targets,events:s,set:function(t){e.rotation=t},setGroupRotation:function(t){e.rotation=t}},r);return Do(e,"onRotateGroup",u),u}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isRotate){this.dragControlEnd(e,t);var r=hn(e,this,"dragControlEnd",t);return Do(e,"onRotateGroupEnd",Oo(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=e.getRotation();return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaRotate"in e?n+=e.deltaRotate:"rotate"in e&&(n=e.rotate-r),{datas:t,parentDist:n}},requestEnd:function(){return{datas:t,isDrag:!0}}}}},kn=["left","right","center"],Cn=["top","bottom","middle"],On={start:"left",end:"right",center:"center"},Mn={start:"top",end:"bottom",center:"middle"};function Dn(e,t){var n=e.props,r=n.snappable,o=n.bounds,i=n.innerBounds,a=n.verticalGuidelines,s=n.horizontalGuidelines,u=n.snapGridWidth,l=n.snapGridHeight,c=e.state,f=c.guidelines,d=c.enableSnap;return!(!r||!d||t&&!0!==r&&r.indexOf(t)<0)&&!!(u||l||o||i||f&&f.length||a&&a.length||s&&s.length)}function Tn(e){return!1===e?{}:!0!==e&&e?e:{left:!0,right:!0,top:!0,bottom:!0}}function Pn(e,t){var n=function(e,t){var n=Tn(e),r={};for(var o in n)o in t&&n[o]&&(r[o]=t[o]);return r}(e,t),r=Cn.filter((function(e){return e in n})),o=kn.filter((function(e){return e in n}));return{horizontal:r.map((function(e){return n[e]})),vertical:o.map((function(e){return n[e]}))}}function Rn(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a={left:0,top:0,right:0,bottom:0});var s=[],u=a.left,l=a.top,c=a.bottom,f=n+a.right-u,d=r+c-l;return e&&e.forEach((function(e){s.push({type:"horizontal",pos:[u,J(e-i+l,.1)],size:f})})),t&&t.forEach((function(e){s.push({type:"vertical",pos:[J(e-o+u,.1),l],size:d})})),s}function In(e,t){if(!t.length)return[];var n=e.state,r=n.containerClientRect,o=n.targetClientRect,i=o.top,a=o.left,s=n.rootMatrix,u=n.is3d?4:3,l=function(e,t,n){var r=uo(e,[t.clientLeft,t.clientTop],n);return[t.left+r[0],t.top+r[1]]}(s,r,u),c=l[0],f=l[1],d=ft(Eo(n)),p=he([d.minX,d.minY],Ao(s,[a-c,i-f],u)).map((function(e){return t=e,Math.round(t%1==-.5?t-1:t);var t})),h=p[0],g=p[1];return t.map((function(e){var t=e.element.getBoundingClientRect(),n=t.left-c,r=t.top-f,o=r+t.height,i=n+t.width,a=Ao(s,[n,r],u),l=a[0],d=a[1],p=Ao(s,[i,o],u),v=p[0],m=p[1];return Gt(Gt({},e),{rect:{left:l+h,right:v+h,top:d+g,bottom:m+g,center:(l+v)/2+h,middle:(d+m)/2+g}})}))}function An(e){var t=e.state,n=e.props.elementGuidelines,r=void 0===n?[]:n;if(!r.length)return t.elementRects=[],[];var o,i,a=(t.elementRects||[]).filter((function(e){return!e.refresh})),s=r.map((function(e){return M(e)&&"element"in e?e:{element:Ko(e,!0)}})).filter((function(e){return e.element})),u=(o=a.map((function(e){return e.element})),i=s.map((function(e){return e.element})),rt(o,i,st)),l=u.maintained,c=u.added,f=[];l.forEach((function(e){var t=e[0],n=e[1];f[n]=a[t]})),In(e,c.map((function(e){return s[e]}))).map((function(e,t){f[c[t]]=e})),t.elementRects=f;var d=Tn(e.props.elementSnapDirections),p=[];return f.forEach((function(e){var t=e.element,n=e.top,r=void 0===n?d.top:n,o=e.left,i=void 0===o?d.left:o,a=e.right,s=void 0===a?d.right:a,u=e.bottom,l=void 0===u?d.bottom:u,c=e.center,f=void 0===c?d.center:c,h=e.middle,g=void 0===h?d.middle:h,v=e.className,m=e.rect,y=Pn({top:r,right:s,left:i,bottom:l,center:f,middle:g},m),b=y.horizontal,w=y.vertical,S=m.top,x=m.left,_=m.right-x,E=m.bottom-S,k=[_,E];w.forEach((function(n){p.push({type:"vertical",element:t,pos:[J(n,.1),S],size:E,sizes:k,className:v,elementRect:e})})),b.forEach((function(n){p.push({type:"horizontal",element:t,pos:[x,J(n,.1)],size:_,sizes:k,className:v,elementRect:e})}))})),p}function Nn(e){var t=e.state,n=t.snapOffset,r=t.containerClientRect,o=r.overflow,i=r.scrollHeight,a=r.scrollWidth,s=r.clientHeight,u=r.clientWidth,l=r.clientLeft,c=r.clientTop,f=e.props,d=f.snapGap,p=void 0===d||d,h=f.verticalGuidelines,g=f.horizontalGuidelines,v=f.snapThreshold,m=void 0===v?5:v,y=f.snapGridWidth,b=void 0===y?0:y,w=f.snapGridHeight,S=void 0===w?0:w,x=__spreadArray([],An(e),!0);if(p){var _=co(Eo(e.state)),E=_.top,k=_.left,C=_.bottom,O=_.right;x.push.apply(x,function(e,t,n){var r=e.state.elementRects,o=[];return[["vertical",On,Mn],["horizontal",Mn,On]].forEach((function(e){var i=e[0],a=e[1],s=e[2],u=t[a.start],l=t[a.end],c=t[a.center],f=t[s.start],d=t[s.end];function p(e){var t=e.rect;return t[a.end]<u+n?u-t[a.end]:l-n<t[a.start]?t[a.start]-l:-1}var h=r.filter((function(e){var t=e.rect;return!(t[s.start]>d||t[s.end]<f)&&p(e)>0})).sort((function(e,t){return p(e)-p(t)})),g=[];h.forEach((function(e){h.forEach((function(t){if(e!==t){var n=e.rect,r=t.rect,o=n[s.start],i=n[s.end],a=r[s.start];o>r[s.end]||a>i||g.push([e,t])}}))})),g.forEach((function(e){var t=e[0],r=e[1],s=t.rect,f=r.rect,d=s[a.start],p=s[a.end],h=f[a.start],g=f[a.end],v=0,m=0,y=!1,b=!1,w=!1;if(p<=u&&l<=h){if(b=!0,m=p+(v=(h-p-(l-u))/2)+(l-u)/2,Math.abs(m-c)>n)return}else if(p<h&&g<u+n){if(y=!0,m=g+(v=h-p),Math.abs(m-u)>n)return}else{if(!(p<h&&l-n<d))return;if(w=!0,m=d-(v=h-p),Math.abs(m-l)>n)return}v&&o.push({type:i,pos:"vertical"===i?[m,0]:[0,m],element:r.element,size:0,className:r.className,isStart:y,isCenter:b,isEnd:w,gap:v,hide:!0,gapRects:[t,r]})}))})),o}(e,{top:E,left:k,bottom:C,right:O,center:(k+O)/2,middle:(E+C)/2},m))}return x.push.apply(x,function(e,t,n,r,o,i){void 0===o&&(o=0);void 0===i&&(i=0);var a=[];if(t)for(var s=0;s<=r;s+=t)a.push({type:"horizontal",pos:[0,J(s-i,.1)],size:n,hide:!0});if(e)for(s=0;s<=n;s+=e)a.push({type:"vertical",pos:[J(s-o,.1),0],size:r,hide:!0});return a}(b,S,o?a:u,o?i:s,l,c)),x.push.apply(x,Rn(g||!1,h||!1,o?a:u,o?i:s,l,c,n)),x}function Ln(e,t,n,r){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length-1,r=0;r<n;++r){var o=e[r];if(!O(o))return o}return e[n]}(r,e.props.snapThreshold,5);return Bn(e.state.guidelines,t,n,o)}function Bn(e,t,n,r){return{vertical:jn(e,"vertical",t,r),horizontal:jn(e,"horizontal",n,r)}}function Fn(e,t,n){var r=Pn(e.props.snapDirections,t);return Ln(e,r.vertical,r.horizontal,n)}function zn(e){var t=e.isSnap;if(!t)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var n=e.posInfos[0],r=n.guidelineInfos[0],o=r.offset,i=r.dist,a=r.guideline;return{isSnap:t,offset:o,dist:i,pos:n.pos,guideline:a}}function jn(e,t,n,r){if(!e||!e.length)return{isSnap:!1,index:-1,posInfos:[]};var o="vertical"===t?0:1,i=n.map((function(n,i){var a=e.map((function(e){var t=e.pos,r=n-t[o];return{offset:r,dist:Math.abs(r),guideline:e}})).filter((function(e){var n=e.guideline,o=e.dist;return!(n.type!==t||o>r)})).sort((function(e,t){return e.dist-t.dist}));return{pos:n,index:i,guidelineInfos:a}})).filter((function(e){return e.guidelineInfos.length>0})).sort((function(e,t){return e.guidelineInfos[0].dist-t.guidelineInfos[0].dist})),a=i.length>0;return{isSnap:a,index:a?i[0].index:-1,posInfos:i}}function Kn(e,t){var n=Math.abs(e.offset),r=Math.abs(t.offset);return e.isBound&&t.isBound?r-n:e.isBound?-1:t.isBound?1:e.isSnap&&t.isSnap?r-n:e.isSnap?-1:t.isSnap||n<tn?1:r<tn?-1:n-r}function Un(e,t){return e.slice().sort((function(e,n){var r=e.sign[t],o=n.sign[t],i=e.offset[t],a=n.offset[t];return r?o?Kn({isBound:e.isBound,isSnap:e.isSnap,offset:i},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1}))[0]}function qn(e,t){var n=X([t[0][0],t[1][0]]),r=X([t[0][1],t[1][1]]);return{vertical:n<=e[0],horizontal:r<=e[1]}}function Wn(e,t){var n,r,o=t[0],i=t[1],a=i[0]-o[0],s=i[1]-o[1];if(Math.abs(a)<tn&&(a=0),Math.abs(s)<tn&&(s=0),a)if(s){n=s/a*(e[0]-o[0])+o[1],r=e[1]}else n=o[1],r=e[1];else n=o[0],r=e[0];return n-r}function Hn(e,t,n,r){return void 0===r&&(r=tn),e.every((function(e){var o=Wn(e,t);return o<=0===n||Math.abs(o)<=r}))}function Gn(e,t,n,r,o){return void 0===o&&(o=0),r&&t-o<=e||!r&&e<=n+o?{isBound:!0,offset:r?t-e:n-e}:{isBound:!1,offset:0}}function Yn(e,t,n,r,o,i){var a=t[0],s=t[1],u=e[0],l=n[0],c=n[1],f=Fo(c[1]-l[1]),d=s,p=a,h=-a/s;if(!Fo(c[0]-l[0])){if(i&&!p)return{isBound:!1,offset:0};if(d)return Gn(h*(l[0]-u[0])+u[1],l[1],c[1],r,o);var g=l[0]-u[0];return{isBound:v=Math.abs(g)<=(o||0),offset:v?g:0}}if(!f){if(i&&!d)return{isBound:!1,offset:0};if(p)return Gn((l[1]-u[1])/h+u[0],l[0],c[0],r,o);var v;g=l[1]-u[1];return{isBound:v=Math.abs(g)<=(o||0),offset:v?g:0}}return{isBound:!1,offset:0}}function Vn(e,t,n){return t.map((function(t){var r=function(e,t){var n=t.line,r=t.centerSign,o=t.verticalSign,i=t.horizontalSign,a=t.lineConstants,s=e.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var u=s.left,l=s.top,c=s.width,f=s.height,d=[[u,l],[u,l+f]],p=[[u,l],[u+c,l]],h=[[u+c,l],[u+c,l+f]],g=[[u,l+f],[u+c,l+f]];if(Hn([[u,l],[u+c,l],[u,l+f],[u+c,l+f]],n,r))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var v=Yn(n,a,p,o),m=Yn(n,a,g,o),y=Yn(n,a,d,i),b=Yn(n,a,h,i),w=v.isBound&&m.isBound,S=v.isBound||m.isBound,x=y.isBound&&b.isBound,_=y.isBound||b.isBound,E=Io(v.offset,m.offset),k=Io(y.offset,b.offset),C=[0,0],O=!1,M=!1;return Math.abs(k)<Math.abs(E)?(C=[E,0],O=S,M=w):(C=[0,k],O=_,M=x),{isAllBound:M,isVerticalBound:S,isHorizontalBound:_,isBound:O,offset:C}}(e,t),o=r.isBound,i=r.offset,a=r.isVerticalBound,s=r.isHorizontalBound,u=t.multiple,l=Dr({datas:n,distX:i[0],distY:i[1]}).map((function(e,t){return e*(u[t]?2/u[t]:0)}));return{sign:u,isBound:o,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:l}}))}function Xn(e,t,n){var r,o=Vn(e,$n(e,t,[0,0],!1).map((function(e){return Gt(Gt({},e),{multiple:e.multiple.map((function(e){return 2*Math.abs(e)}))})})),n),i=Un(o,0),a=Un(o,1),s=0,u=0,l=i.isVerticalBound||a.isVerticalBound,c=i.isHorizontalBound||a.isHorizontalBound;return(l||c)&&(r=function(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.beforeMatrix,a=n.matrix,s=n.is3d,u=n.startDragBeforeDist,l=n.startDragDist,c=n.absoluteOrigin,f=s?4:3;return he(ve(t?i:a,pe(t?u:l,[r,o]),f),c)}({datas:n,distX:-i.offset[0],distY:-a.offset[1]}),s=r[0],u=r[1]),{vertical:{isBound:l,offset:s},horizontal:{isBound:c,offset:u}}}function $n(e,t,n,r){var o=e.state,i=lo(o.allMatrix,100,100,o.is3d?4:3),a=Rr(i,[0,0]);return function(e,t){var n=[],r=e[0],o=e[1];return r&&o?n.push([[0,2*o],e,[-r,o]],[[2*r,0],e,[r,-o]]):r?(n.push([[2*r,0],[r,1],[r,-1]]),t&&n.push([[0,-1],[r,-1],[-r,-1]],[[0,1],[r,1],[-r,1]])):o?(n.push([[0,2*o],[1,o],[-1,o]]),t&&n.push([[-1,0],[-1,o],[-1,-o]],[[1,0],[1,o],[1,-o]])):n.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),n}(n,r).map((function(e){var n=e[0],r=e[1],o=e[2],s=[Rr(i,r),Rr(i,o)],u=function(e){var t=e[0],n=e[1],r=n[0]-t[0],o=n[1]-t[1];Math.abs(r)<k&&(r=0),Math.abs(o)<k&&(o=0);var i=0,a=0,s=0;return r?o?(a=1,s=(i=-o/r)*t[0]-t[1]):(a=1,s=-t[1]):(i=-1,s=t[0]),[i,a,s].map((function(e){return J(e,k)}))}(s),l=qn(a,s),c=l.vertical,f=l.horizontal;return{multiple:n,centerSign:Wn(a,s)<=0,verticalSign:c,horizontalSign:f,lineConstants:u,line:[Rr(t,r),Rr(t,o)]}}))}function Qn(e,t,n,r){var o=r?e.map((function(e){return Se(e,r)})):e;return[[o[0],o[1]],[o[1],o[3]],[o[3],o[2]],[o[2],o[0]]].some((function(e){var r=Wn(n,e)<=0;return!Hn(t,e,r)}))}function Zn(e,t,n){var r=e||{},o=r.position,i=void 0===o?"client":o,a=r.left,s=void 0===a?-1/0:a,u=r.top,l=void 0===u?-1/0:u,c=r.right,f=void 0===c?1/0:c,d=r.bottom,p={position:i,left:s,top:l,right:f,bottom:void 0===d?1/0:d};return{vertical:er(p,t,!0),horizontal:er(p,n,!1)}}function Jn(e,t){var n=e.state,r=n.containerClientRect,o=r.clientHeight,i=r.clientWidth,a=r.clientLeft,s=r.clientTop,u=n.snapOffset,l=u.left,c=u.top,f=u.right,d=u.bottom,p=t||e.props.bounds||{},h="css"===(p.position||"client"),g=p.left,v=void 0===g?-1/0:g,m=p.top,y=void 0===m?-1/0:m,b=p.right,w=void 0===b?h?-1/0:1/0:b,S=p.bottom,x=void 0===S?h?-1/0:1/0:S;return h&&(w=i+f-l-w,x=o+d-c-x),{left:v+l-a,right:w+l-a,top:y+c-s,bottom:x+c-s}}function er(e,t,n){var r=e[n?"left":"top"],o=e[n?"right":"bottom"],i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=[];return r+1>i&&s.push({isBound:!0,offset:i-r,pos:r}),o-1<a&&s.push({isBound:!0,offset:a-o,pos:o}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(e,t){return Math.abs(t.offset)-Math.abs(e.offset)}))}function tr(e,t,n){return(n?e.map((function(e){return Se(e,n)})):e).some((function(e){return e[0]<t.left&&Math.abs(e[0]-t.left)>.1||e[0]>t.right&&Math.abs(e[0]-t.right)>.1||e[1]<t.top&&Math.abs(e[1]-t.top)>.1||e[1]>t.bottom&&Math.abs(e[1]-t.bottom)>.1}))}function nr(e,t){return function(e,t){var n,r=e.direction,o=e.classNames,i=e.size,a=e.pos,s=e.zoom,u=e.key,l="horizontal"===r,c=l?"Y":"X";return t.createElement("div",{key:u,className:o.join(" "),style:(n={},n[l?"width":"height"]="".concat(i),n.transform="translate(".concat(a[0],", ").concat(a[1],") translate").concat(c,"(-50%) scale").concat(c,"(").concat(s,")"),n)})}(Gt(Gt({},e),{classNames:__spreadArray([Hr("line","guideline",e.direction)],e.classNames,!0).filter((function(e){return e})),size:e.size||"".concat(e.sizeValue,"px"),pos:e.pos||e.posValue.map((function(e){return"".concat(J(e,.1),"px")}))}),t)}function rr(e,t,n,r,o,i,a,s){var u=e.props.zoom;return n.map((function(e,n){var l=e.type,c=e.pos,f=[0,0];return f[a]=r,f[a?0:1]=-o+c,nr({key:"".concat(t,"TargetGuideline").concat(n),classNames:[Hr("target","bold",l)],posValue:f,sizeValue:i,zoom:u,direction:t},s)}))}function or(e,t,n,r,o,i){var a=e.props,s=a.zoom,u=a.isDisplayInnerSnapDigit,l="horizontal"===t?On:Mn,c=o[l.start],f=o[l.end];return n.filter((function(e){var t=e.hide,n=e.elementRect;if(t)return!1;if(u&&n){var r=n.rect;if(r[l.start]<=c&&f<=r[l.end])return!1}return!0})).map((function(e,n){var o=e.pos,a=e.size,u=e.element,l=[-r[0]+o[0],-r[1]+o[1]];return nr({key:"".concat(t,"-default-guideline-").concat(n),classNames:u?[Hr("bold")]:[],direction:t,posValue:l,sizeValue:a,zoom:s},i)}))}function ir(e,t,n,r,o,i,a,s){var u,l=e.props,c=l.snapDigit,f=void 0===c?0:c,d=l.isDisplaySnapDigit,p=void 0===d||d,h=l.snapDistFormat,g=void 0===h?function(e,t){return e}:h,v=l.zoom,m="horizontal"===t?"X":"Y",y="vertical"===t?"height":"width",b=Math.abs(o),w=p?parseFloat(b.toFixed(f)):0;return s.createElement("div",{key:"".concat(t,"-").concat(n,"-guideline-").concat(r),className:Hr("guideline-group",t),style:(u={left:"".concat(i[0],"px"),top:"".concat(i[1],"px")},u[y]="".concat(b,"px"),u)},nr({direction:t,classNames:[Hr(n),a],size:"100%",posValue:[0,0],sizeValue:b,zoom:v},s),s.createElement("div",{className:Hr("size-value","gap"),style:{transform:"translate".concat(m,"(-50%) scale(").concat(v,")")}},w>0?g(w,t):""))}function ar(e,t,n,r,o){var i=e.props.isDisplayInnerSnapDigit,a=[];return["vertical","horizontal"].forEach((function(s){var u=t.filter((function(e){return e.type===s})),l="vertical"===s?1:0,c=l?0:1,f=function(e,t,n,r){var o,i,a,s,u="vertical"===e?0:1,l="vertical"===e?1:0,c=u?On:Mn,f=n[c.start],d=n[c.end];return(o=t,i=function(e){return e.pos[u]},a=[],s=[],o.forEach((function(e,t){var n=i(e,t,o),r=s.indexOf(n),u=a[r]||[];-1===r&&(s.push(n),a.push(u)),u.push(e)})),a).map((function(t){var n=[],o=[];return t.forEach((function(t){var i,a,s=t.element,p=t.elementRect.rect;if(p[c.end]<f)n.push(t);else if(d<p[c.start])o.push(t);else if(p[c.start]<=f&&d<=p[c.end]&&r){var h=t.pos,g={element:s,rect:Gt(Gt({},p),(i={},i[c.end]=p[c.start],i))},v={element:s,rect:Gt(Gt({},p),(a={},a[c.start]=p[c.end],a))},m=[0,0],y=[0,0];m[u]=h[u],m[l]=h[l],y[u]=h[u],y[l]=h[l]+t.size,n.push({type:e,pos:m,size:0,elementRect:g}),o.push({type:e,pos:y,size:0,elementRect:v})}})),n.sort((function(e,t){return t.pos[l]-e.pos[l]})),o.sort((function(e,t){return e.pos[l]-t.pos[l]})),{total:t,start:n,end:o,inner:[]}}))}(s,u,r,i),d=l?Mn:On,p=l?On:Mn,h=r[d.start],g=r[d.end];f.forEach((function(t){var i=t.total,u=t.start,f=t.end,v=t.inner,m=n[c]+i[0].pos[c]-r[p.start],y=r;u.forEach((function(t){var r=t.elementRect.rect,i=y[d.start]-r[d.end];if(i>0){var u=[0,0];u[l]=n[l]+y[d.start]-h-i,u[c]=m,a.push(ir(e,s,"dashed",a.length,i,u,t.className,o))}y=r})),y=r,f.forEach((function(t){var r=t.elementRect.rect,i=r[d.start]-y[d.end];if(i>0){var u=[0,0];u[l]=n[l]+y[d.end]-h,u[c]=m,a.push(ir(e,s,"dashed",a.length,i,u,t.className,o))}y=r})),v.forEach((function(t){var r=t.elementRect.rect,i=h-r[d.start],u=r[d.end]-g,f=[0,0],p=[0,0];f[l]=n[l]-i,f[c]=m,p[l]=n[l]+g-h,p[c]=m,a.push(ir(e,s,"dashed",a.length,i,f,t.className,o)),a.push(ir(e,s,"dashed",a.length,u,p,t.className,o))}))}))})),a}function sr(e,t,n,r,o){var i=function(e,t,n,r){var o=t[0]-e[0],i=t[1]-e[1];if(Math.abs(o)<k&&(o=0),Math.abs(i)<k&&(i=0),!o)return r?[0,0]:[0,n];if(!i)return r?[n,0]:[0,0];var a=i/o,s=e[1]-a*e[0];return r?[n,a*(t[0]+n)+s-t[1]]:[(t[1]+n-s)/a-t[0],n]}(e,t,n,r);if(!i)return{isOutside:!1,offset:[0,0]};var a=Z(e,t),s=Z(i,e),u=Z(i,t),l=s>a||u>a,c=Dr({datas:o,distX:i[0],distY:i[1]});return{offset:[c[0],c[1]],isOutside:l}}function ur(e,t){return e.isBound?e.offset:t.isSnap?zn(t).offset:0}function lr(e,t,n,r,o,i){if(!Dn(e,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=_o(i.absolutePoses,[t,n]),s=co(a),u=s.left,l=s.right,c=s.top,f=s.bottom,d={horizontal:a.map((function(e){return e[1]})),vertical:a.map((function(e){return e[0]}))},p=cr(e,o,Pn(Tn(e.props.snapDirections),{left:u,right:l,top:c,bottom:f,center:(u+l)/2,middle:(c+f)/2}),d),h=p.vertical,g=p.horizontal,v=Xn(e,a,i),m=v.vertical,y=v.horizontal,b=h.isSnap,w=g.isSnap,S=h.isBound||m.isBound,x=g.isBound||y.isBound,_=function(e,t,n,r,o){var i=t[0],a=t[1],s=n[0],u=n[1],l=r[0],c=r[1],f=o[0],d=o[1],p=-f,h=-d;if(e&&i&&a){p=0,h=0;var g=[];if(s&&u?g.push([0,d],[f,0]):s?g.push([f,0]):u?g.push([0,d]):l&&c?g.push([0,d],[f,0]):l?g.push([f,0]):c&&g.push([0,d]),g.length){g.sort((function(e,t){return ho(he([i,a],e))-ho(he([i,a],t))}));var v=g[0];if(v[0]&&Math.abs(i)>k)p=-v[0],h=a*Math.abs(i+p)/Math.abs(i)-a;else if(v[1]&&Math.abs(a)>k){var m=a;h=-v[1],p=i*Math.abs(a+h)/Math.abs(m)-i}if(e&&u&&s)if(Math.abs(p)>k&&Math.abs(p)<Math.abs(f))p*=y=Math.abs(f)/Math.abs(p),h*=y;else if(Math.abs(h)>k&&Math.abs(h)<Math.abs(d)){var y;p*=y=Math.abs(d)/Math.abs(h),h*=y}else p=Io(-f,p),h=Io(-d,h)}}else p=i||s?-f:0,h=a||u?-d:0;return[p,h]}(r,[t,n],[S,x],[b,w],[Io(h.offset,m.offset),Io(g.offset,y.offset)]);return[{isBound:S,isSnap:b,offset:_[0]},{isBound:x,isSnap:w,offset:_[1]}]}function cr(e,t,n,r){void 0===r&&(r=n);var o=Zn(Jn(e),r.vertical,r.horizontal),i=o.horizontal,a=o.vertical,s=t?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:Ln(e,n.vertical,n.horizontal),u=s.horizontal,l=s.vertical,c=ur(i[0],u),f=ur(a[0],l),d=Math.abs(c),p=Math.abs(f);return{horizontal:{isBound:i[0].isBound,isSnap:u.isSnap,snapIndex:u.index,offset:c,dist:d,bounds:i,snap:u},vertical:{isBound:a[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:f,dist:p,bounds:a,snap:l}}}function fr(e,t,n,r,o){var i=Zn(t,n,r),a=i.horizontal,s=i.vertical,u=Bn(e,n,r,o),l=u.horizontal,c=u.vertical,f=ur(a[0],l),d=ur(s[0],c),p=Math.abs(f),h=Math.abs(d);return{horizontal:{isBound:a[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:f,dist:p,bounds:a,snap:l},vertical:{isBound:s[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:d,dist:h,bounds:s,snap:c}}}function dr(e,t,n,r,o,i){return n.map((function(n){var a=n[0],s=n[1],u=Rr(t,a),l=Rr(t,s),c=r?function(e,t,n,r){var o=function(e,t,n){var r=Jn(e),o=r.left,i=r.top,a=r.right,s=r.bottom,u=n[0],l=n[1],c=he(n,t),f=c[0],d=c[1];Math.abs(f)<tn&&(f=0),Math.abs(d)<tn&&(d=0);var p=d>0,h=f>0,g={isBound:!1,offset:0,pos:0},v={isBound:!1,offset:0,pos:0};if(0===f&&0===d)return{vertical:g,horizontal:v};if(0===f)p?s<l&&(v.pos=s,v.offset=l-s):i>l&&(v.pos=i,v.offset=l-i);else if(0===d)h?a<u&&(g.pos=a,g.offset=u-a):o>u&&(g.pos=o,g.offset=u-o);else{var m=d/f,y=n[1]-m*u,b=0,w=0,S=!1;h&&a<=u?(b=m*a+y,w=a,S=!0):!h&&u<=o&&(b=m*o+y,w=o,S=!0),S&&(b<i||b>s)&&(S=!1),S||(p&&s<=l?(w=((b=s)-y)/m,S=!0):!p&&l<=i&&(w=((b=i)-y)/m,S=!0)),S&&(g.isBound=!0,g.pos=w,g.offset=u-w,v.isBound=!0,v.pos=b,v.offset=l-b)}return{vertical:g,horizontal:v}}(e,t,n),i=o.horizontal,a=o.vertical,s=r?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(e,t,n){var r=n[0],o=n[1],i=t[0],a=t[1],s=he(n,t),u=s[0],l=s[1],c=l>0,f=u>0;u=Fo(u),l=Fo(l);var d={isSnap:!1,offset:0,pos:0},p={isSnap:!1,offset:0,pos:0};if(0===u&&0===l)return{vertical:d,horizontal:p};var h=Ln(e,u?[r]:[],l?[o]:[]),g=h.vertical,v=h.horizontal;g.posInfos.filter((function(e){var t=e.pos;return f?t>=i:t<=i})),v.posInfos.filter((function(e){var t=e.pos;return c?t>=a:t<=a})),g.isSnap=g.posInfos.length>0,v.isSnap=v.posInfos.length>0;var m=zn(g),y=m.isSnap,b=m.guideline,w=zn(v),S=w.isSnap,x=w.guideline,_=S?x.pos[1]:0,E=y?b.pos[0]:0;if(0===u)S&&(p.isSnap=!0,p.pos=x.pos[1],p.offset=o-p.pos);else if(0===l)y&&(d.isSnap=!0,d.pos=E,d.offset=r-E);else{var k=l/u,C=n[1]-k*r,O=0,M=0,D=!1;y?(O=k*(M=E)+C,D=!0):S&&(M=((O=_)-C)/k,D=!0),D&&(d.isSnap=!0,d.pos=M,d.offset=r-M,p.isSnap=!0,p.pos=O,p.offset=o-O)}return{vertical:d,horizontal:p}}(e,t,n),u=s.horizontal,l=s.vertical,c=pr(i,u),f=pr(a,l),d=Math.abs(c),p=Math.abs(f);return{horizontal:{isBound:i.isBound,isSnap:u.isSnap,offset:c,dist:d},vertical:{isBound:a.isBound,isSnap:l.isSnap,offset:f,dist:p}}}(e,u,l,o):cr(e,o,{vertical:[l[0]],horizontal:[l[1]]}),f=c.horizontal,d=f.offset,p=f.isBound,h=f.isSnap,g=c.vertical,v=g.offset,m=g.isBound,y=g.isSnap,b=he(s,a);if(!v&&!d)return{isBound:m||p,isSnap:y||h,sign:b,offset:[0,0]};var w=function(e,t,n,r){var o=$(e,t)/Math.PI*180,i=n.vertical,a=i.isBound,s=i.isSnap,u=i.dist,l=n.horizontal,c=l.isBound,f=l.isSnap,d=o%180,p=d<3||d>177,h=d>87&&d<93;return l.dist<u&&(a||s&&!h&&(!r||!p))?"vertical":!c&&(!f||p||r&&h)?"":"horizontal"}(u,l,c,r);if(!w)return{sign:b,isBound:!1,isSnap:!1,offset:[0,0]};var S="vertical"===w,x=[0,0];return x=(x=r||1!==Math.abs(s[0])||1!==Math.abs(s[1])||a[0]===s[0]||a[1]===s[1]?sr(u,l,-(S?v:d),S,i).offset:Dr({datas:i,distX:-v,distY:-d})).map((function(e,t){return e*(b[t]?2/b[t]:0)})),{sign:b,isBound:S?m:p,isSnap:S?y:h,offset:x}}))}function pr(e,t){return e.isBound?e.offset:t.isSnap?t.offset:0}function hr(e){var t=e.state;if(!t.guidelines||!t.guidelines.length){var n=e.state.container,r=e.props.snapContainer||n,o=t.containerClientRect,i={left:0,top:0,bottom:0,right:0};if(n!==r){var a=Ko(r,!0);if(a){var s=So(a),u=qo(t,[s.left-o.left,s.top-o.top]),l=qo(t,[s.right-o.right,s.bottom-o.bottom]);i.left=J(u[0],.1),i.top=J(u[1],.1),i.right=J(l[0],.1),i.bottom=J(l[1],.1)}}t.snapOffset=i,t.guidelines=Nn(e),t.enableSnap=!0}}function gr(e,t,n,r,o,i){var a=lo(e,t,n,i?4:3);return _o(a,he(o,Rr(a,r)))}function vr(e,t,n,r,o,i){var a=function(e,t,n){var r=[];if(n)1!==Math.abs(t[0])||1!==Math.abs(t[1])?r.push([t,[-1,-1]],[t,[-1,1]],[t,[1,-1]],[t,[1,1]]):r.push([t,[e[0],-e[1]]],[t,[-e[0],e[1]]]),r.push([t,e]);else if(e[0]&&e[1]||!e[0]&&!e[1]){var o=e[0]?e:[1,1];[1,-1].forEach((function(e){[1,-1].forEach((function(n){var i=[e*o[0],n*o[1]];t[0]===i[0]&&t[1]===i[1]||r.push([t,i])}))}))}else e[0]?(1===Math.abs(t[0])?[1]:[1,-1]).forEach((function(n){r.push([[t[0],-1],[n*e[0],-1]],[[t[0],0],[n*e[0],0]],[[t[0],1],[n*e[0],1]])})):e[1]&&(1===Math.abs(t[1])?[1]:[1,-1]).forEach((function(n){r.push([[-1,t[1]],[-1,n*e[1]]],[[0,t[1]],[0,n*e[1]]],[[1,t[1]],[1,n*e[1]]])}));return r}(n,i.fixedDirection,r),s=$n(e,t,n,r),u=__spreadArray(__spreadArray([],dr(e,t,a,r,o,i),!0),Vn(e,s,i),!0),l=Un(u,0),c=Un(u,1);return{width:{isBound:l.isBound,offset:l.offset[0]},height:{isBound:c.isBound,offset:c.offset[1]}}}function mr(e,t,n,r,o,i,a,s){for(var u=Eo(e.state),l=e.props.keepRatio,c=0,f=0,d=0;d<2;++d){var p=vr(e,t(c,f),o,l,a,s),h=p.width,g=p.height,v=h.isBound,m=g.isBound,y=h.offset,b=g.offset;if(1===d&&(v||(y=0),m||(b=0)),0===d&&a&&!v&&!m)return[0,0];if(l){var w=Math.abs(y)*(n?1/n:1),S=Math.abs(b)*(r?1/r:1);(v&&m?w<S:m||!v&&w<S)?y=n*b/r:b=r*y/n}c+=y,f+=b}if(o[0]&&o[1]){var x=function(e,t,n,r,o){var i=[-n[0],-n[1]],a=e.state,s=a.width,u=a.height,l=e.props.bounds,c=1/0,f=1/0;if(l){var d=[[n[0],-n[1]],[-n[0],n[1]]],p=l.left,h=void 0===p?-1/0:p,g=l.top,v=void 0===g?-1/0:g,m=l.right,y=void 0===m?1/0:m,b=l.bottom,w=void 0===b?1/0:b;d.forEach((function(e){var n=e[0]!==i[0],a=e[1]!==i[1],l=Rr(t,e),d=360*$(r,l)/Math.PI;if(a){var p=l.slice();(Math.abs(d-360)<2||Math.abs(d-180)<2)&&(p[1]=r[1]);var g=sr(r,p,(r[1]<l[1]?w:v)-l[1],!1,o),m=g.offset[1],b=g.isOutside;isNaN(m)||(f=u+(b?1:-1)*Math.abs(m))}if(n){p=l.slice(),(Math.abs(d-90)<2||Math.abs(d-270)<2)&&(p[0]=r[0]);var S=sr(r,p,(r[0]<l[0]?y:h)-l[0],!0,o),x=S.offset[0],_=S.isOutside;isNaN(x)||(c=s+(_?1:-1)*Math.abs(x))}}))}return{maxWidth:c,maxHeight:f}}(e,u,o,i,s),_=x.maxWidth,E=x.maxHeight,k=function(e,t,n,r,o,i,a,s,u){var l=Rr(t,a),c=cr(e,s,{vertical:[l[0]],horizontal:[l[1]]}),f=c.horizontal.offset,d=c.vertical.offset;if(d||f){var p=Dr({datas:u,distX:-d,distY:-f}),h=p[0],g=p[1];return[Math.min(o||1/0,n+a[0]*h)-n,Math.min(i||1/0,r+a[1]*g)-r]}return[0,0]}(e,t(c,f).map((function(e){return e.map((function(e){return J(e,1e-4)}))})),n+c,r+f,_,E,o,a,s);c+=y=k[0],f+=b=k[1]}return[c,f]}function yr(e,t,n,r,o){if(!Dn(e,"scalable"))return[0,0];var i=o.startOffsetWidth,a=o.startOffsetHeight,s=o.fixedPosition,u=o.fixedDirection,l=o.is3d,c=mr(e,(function(e,n){return gr(function(e,t){var n=e.transformOrigin,r=e.offsetMatrix,o=e.is3d,i=e.targetMatrix,a=o?4:3;return Ir(r,de(i,Ie(t,a),a),n,a)}(o,pe(t,[e/i,n/a])),i,a,u,s,l)}),i,a,n,s,r,o);return[c[0]/i,c[1]/a]}function br(e){var t=[];return e.forEach((function(e){e.guidelineInfos.forEach((function(e){var n=e.guideline;t.indexOf(n)>-1||t.push(n)}))})),t}function wr(e,t,n,r,o,i){var a=Zn(Jn(e,i),t,n),s=a.vertical,u=a.horizontal;s.forEach((function(e){e.isBound&&r.push({type:"bounds",pos:e.pos})})),u.forEach((function(e){e.isBound&&o.push({type:"bounds",pos:e.pos})}));var l=function(e){var t=e.props.innerBounds;if(!t)return{vertical:[],horizontal:[]};var n=e.getRect(),r=[n.pos1,n.pos2,n.pos3,n.pos4],o=Rr(r,[0,0]),i=t.left,a=t.top,s=t.width,u=t.height,l=[[i,a],[i,a+u]],c=[[i,a],[i+s,a]],f=[[i+s,a],[i+s,a+u]],d=[[i,a+u],[i+s,a+u]],p=$n(e,r,[0,0],!1),h=[],g=[],v={top:!1,bottom:!1,left:!1,right:!1};return p.forEach((function(e){var t=e.line,n=e.lineConstants,r=qn(o,t),p=r.horizontal,m=r.vertical,y=Yn(t,n,c,m,1,!0),b=Yn(t,n,d,m,1,!0),w=Yn(t,n,l,p,1,!0),S=Yn(t,n,f,p,1,!0);y.isBound&&!v.top&&(h.push(a),v.top=!0),b.isBound&&!v.bottom&&(h.push(a+u),v.bottom=!0),w.isBound&&!v.left&&(g.push(i),v.left=!0),S.isBound&&!v.right&&(g.push(i+s),v.right=!0)})),{horizontal:h,vertical:g}}(e),c=l.vertical,f=l.horizontal;c.forEach((function(e){K(r,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||r.push({type:"bounds",pos:e})})),f.forEach((function(e){K(o,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||o.push({type:"bounds",pos:e})}))}var Sr={name:"snappable",dragRelation:"strong",props:{snappable:[Boolean,Array],snapContainer:Object,snapDirections:[Boolean,Object],elementSnapDirections:[Boolean,Object],snapGap:Boolean,snapGridWidth:Number,snapGridHeight:Number,isDisplaySnapDigit:Boolean,isDisplayInnerSnapDigit:Boolean,snapDigit:Number,snapThreshold:Number,horizontalGuidelines:Array,verticalGuidelines:Array,elementGuidelines:Array,bounds:Object,innerBounds:Object,snapDistFormat:Function},events:{onSnap:"snap"},css:[":host {\n --bounds-color: #d66;\n}\n.guideline {\n pointer-events: none;\n z-index: 2;\n}\n.guideline.bounds {\n background: #d66;\n background: var(--bounds-color);\n}\n.guideline-group {\n position: absolute;\n top: 0;\n left: 0;\n}\n.guideline-group .size-value {\n position: absolute;\n color: #f55;\n font-size: 12px;\n font-weight: bold;\n}\n.guideline-group.horizontal .size-value {\n transform-origin: 50% 100%;\n transform: translateX(-50%);\n left: 50%;\n bottom: 5px;\n}\n.guideline-group.vertical .size-value {\n transform-origin: 0% 50%;\n top: 50%;\n transform: translateY(-50%);\n left: 5px;\n}\n.guideline.gap {\n background: #f55;\n}\n.size-value.gap {\n color: #f55;\n}\n"],render:function(e,t){var n=e.state,r=n.top,o=n.left,i=n.pos1,a=n.pos2,s=n.pos3,u=n.pos4,l=n.snapRenderInfo;if(!l||!Dn(e,""))return[];n.guidelines=Nn(e);var c=Math.min(i[0],a[0],s[0],u[0]),f=Math.min(i[1],a[1],s[1],u[1]),d=l.externalPoses||[],p=Eo(e.state),h=[],g=[],v=[],m=[],y=[],b=co(p),w=b.width,S=b.height,x=b.top,_=b.left,E=b.bottom,k=b.right,C={left:_,right:k,top:x,bottom:E,center:(_+k)/2,middle:(x+E)/2},O=d.length>0,M=O?co(d):{};if(!l.request){if(l.direction&&y.push(function(e,t,n){var r=[];if(n[0]&&n[1])r=[n,[-n[0],n[1]],[n[0],-n[1]]].map((function(e){return Rr(t,e)}));else if(n[0]||n[1])e.props.keepRatio?r=[[-1,-1],[-1,1],[1,-1],[1,1],n].map((function(e){return Rr(t,e)})):(r=Pr(t,n)).length>1&&r.push([(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]);else for(var o=[t[0],t[1],t[3],t[2],t[0]],i=0;i<4;++i)r.push(o[i]),r.push([(o[i][0]+o[i+1][0])/2,(o[i][1]+o[i+1][1])/2]);return Ln(e,r.map((function(e){return e[0]})),r.map((function(e){return e[1]})),1)}(e,p,l.direction)),l.snap){var D=co(p);l.center&&(D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2),y.push(Fn(e,D,1))}O&&(l.center&&(M.middle=(M.top+M.bottom)/2,M.center=(M.left+M.right)/2),y.push(Fn(e,M,1))),y.forEach((function(e){var t=e.vertical.posInfos,n=e.horizontal.posInfos;h.push.apply(h,t.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),g.push.apply(g,n.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),v.push.apply(v,br(t)),m.push.apply(m,br(n))}))}wr(e,[_,k],[x,E],h,g),O&&wr(e,[M.left,M.right],[M.top,M.bottom],h,g,l.externalBounds);var T=__spreadArray(__spreadArray([],v,!0),m,!0),P=T.filter((function(e){return e.element&&!e.gapRects})),R=T.filter((function(e){return e.gapRects}));return Do(e,"onSnap",{guidelines:T.filter((function(e){return!e.element})),elements:P,gaps:R},!0),__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],ar(e,P,[c,f],C,t),!0),function(e,t,n,r,o){var i=[];return["horizontal","vertical"].forEach((function(a){var s=t.filter((function(e){return e.type===a})),u="vertical"===a?0:1,l=u?0:1,c=u?Mn:On,f=u?On:Mn,d=r[c.start],p=r[c.end],h=r[f.start],g=r[f.end];s.forEach((function(t){var r=t.gap,a=t.gapRects,s=t.className,v=Math.max.apply(Math,__spreadArray([h],a.map((function(e){return e.rect[f.start]})),!1)),m=Math.min.apply(Math,__spreadArray([g],a.map((function(e){return e.rect[f.end]})),!1)),y=(v+m)/2;v!==m&&y!==(h+g)/2&&a.forEach((function(t){var a=t.rect,f=[n[0],n[1]];if(a[c.end]<d)f[u]+=a[c.end]-d;else{if(!(p<a[c.start]))return;f[u]+=a[c.start]-d-r}f[l]+=y-h,i.push(ir(e,u?"vertical":"horizontal","gap",i.length,r,f,s,o))}))}))})),i}(e,R,[c,f],C,t),!0),or(e,"horizontal",m,[o,r],C,t),!0),or(e,"vertical",v,[o,r],C,t),!0),rr(e,"horizontal",g,c,r,w,0,t),!0),rr(e,"vertical",h,f,o,S,1,t),!0)},dragStart:function(e,t){e.state.snapRenderInfo={request:t.isRequest,snap:!0,center:!0},hr(e)},drag:function(e){e.state.guidelines=Nn(e)},pinchStart:function(e){this.unset(e)},dragEnd:function(e){this.unset(e)},dragControlCondition:function(e,t){return!(!zo(e,t)&&!_n(e,t))||(!t.isRequest&&t.inputEvent?te(t.inputEvent.target,Hr("snap-control")):void 0)},dragControlStart:function(e){e.state.snapRenderInfo=null,hr(e)},dragControl:function(e){this.drag(e)},dragControlEnd:function(e){this.unset(e)},dragGroupStart:function(e,t){this.dragStart(e,t)},dragGroup:function(e){this.drag(e)},dragGroupEnd:function(e){this.unset(e)},dragGroupControlStart:function(e){e.state.snapRenderInfo=null,hr(e)},dragGroupControl:function(e){this.drag(e)},dragGroupControlEnd:function(e){this.unset(e)},unset:function(e){var t=e.state;t.enableSnap=!1,t.guidelines=[],t.snapRenderInfo=null,t.elementRects=[]}},xr={name:"draggable",props:{draggable:Boolean,throttleDrag:Number,throttleDragRotate:Number,startDragRotate:Number,edgeDraggable:Boolean},events:{onDragStart:"dragStart",onDrag:"drag",onDragEnd:"dragEnd",onDragGroupStart:"dragGroupStart",onDragGroup:"dragGroup",onDragGroupEnd:"dragGroupEnd"},render:function(e,t){var n=e.props,r=n.throttleDragRotate,o=n.zoom,i=e.state,a=i.dragInfo,s=i.beforeOrigin;if(!r||!a)return[];var u=a.dist;if(!u[0]&&!u[1])return[];var l=ho(u),c=$(u,[0,0]);return[t.createElement("div",{className:Hr("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(l,"px"),transform:"translate(".concat(s[0],"px, ").concat(s[1],"px) rotate(").concat(c,"rad) scaleY(").concat(o,")")}})]},dragStart:function(e,t){var n=t.datas,r=t.parentEvent,o=t.parentGesto,i=e.state,a=i.target;if(i.gesto)return!1;i.gesto=o||e.targetGesto;var s=To(a);n.datas={},n.left=parseFloat(s.left||"")||0,n.top=parseFloat(s.top||"")||0,n.bottom=parseFloat(s.bottom||"")||0,n.right=parseFloat(s.right||"")||0,n.startValue=[0,0],Er(e,t),Nr(t,"translate"),function(e,t){t.absolutePoses=Eo(e.state)}(e,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var u=Co(e,t,Gt({set:function(e){n.startValue=e}},Ar(t)));return!1!==(r||Do(e,"onDragStart",u))?(n.isDrag=!0,e.state.dragInfo={startRect:e.getRect(),dist:[0,0]}):(i.gesto=null,n.isPinch=!1),!!n.isDrag&&u},drag:function(e,t){if(t){kr(t,"translate");var n=t.datas,r=t.parentEvent,o=t.parentFlag,i=t.isPinch,a=t.isRequest,s=t.deltaOffset,u=t.distX,l=t.distY,c=n.isDrag,f=n.prevDist,d=n.prevBeforeDist,p=n.startValue;if(c){s&&(u+=s[0],l+=s[1]);var h=e.props,g=h.parentMoveable,v=r?0:h.throttleDrag||0,m=r?0:h.throttleDragRotate||0,y=!1,b=0;if(!r&&m>0&&(u||l)){var w=h.startDragRotate||0,S=J(w+180*$([0,0],[u,l])/Math.PI,m)-w,x=l*Math.abs(Math.cos((S-90)/180*Math.PI)),_=ho([u*Math.abs(Math.cos(S/180*Math.PI)),x]);b=S*Math.PI/180,u=_*Math.cos(b),l=_*Math.sin(b)}if(!i&&!r&&!o&&(!m||u||l)){var E=lr(e,u,l,m,a||s,n),k=E[0],C=E[1],O=k.isSnap,M=k.isBound,D=k.offset,T=C.isSnap,P=C.isBound;y=O||T||M||P,u+=D,l+=C.offset}var R=pe(Mr({datas:n,distX:u,distY:l}),p),I=pe(function(e){var t=e.datas,n=e.distX,r=e.distY,o=Mr({datas:t,distX:n,distY:r}),i=o[0],a=o[1];return ve(Or(t,function(e,t){for(var n=Pe(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}([i,a],4)),le([0,0,0],4),4)}({datas:n,distX:u,distY:l}),p);m||y||(ee(I,v),ee(R,v));var A=he(R,p),N=he(I,p),L=he(N,f),B=he(A,d);n.prevDist=N,n.prevBeforeDist=A,n.passDelta=L,n.passDist=N;var F=n.left+A[0],z=n.top+A[1],j=n.right-A[0],K=n.bottom-A[1],U=Cr(n,"translate(".concat(I[0],"px, ").concat(I[1],"px)"),"translate(".concat(N[0],"px, ").concat(N[1],"px)"));if(Br(t,U),e.state.dragInfo.dist=r?[0,0]:N,r||g||!L.every((function(e){return!e}))||!B.some((function(e){return!e}))){var q=e.state,W=Co(e,t,{transform:U,dist:N,delta:L,translate:I,beforeDist:A,beforeDelta:B,beforeTranslate:R,left:F,top:z,right:j,bottom:K,width:q.width,height:q.height,isPinch:i});return!r&&Do(e,"onDrag",W),W}}}},dragAfter:function(e,t){var n=t.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(e,Gt(Gt({},t),{deltaOffset:r})))},dragEnd:function(e,t){var n=t.parentEvent,r=t.datas;if(e.state.gesto=null,e.state.dragInfo=null,r.isDrag){r.isDrag=!1;var o=Oo(e,t,{});return!n&&Do(e,"onDragEnd",o),o}},dragGroupStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY,i=this.dragStart(e,t);if(!i)return!1;var a=pn(e,this,"dragStart",[r||0,o||0],t,!1),s=Do(e,"onDragGroupStart",Gt(Gt({},i),{targets:e.props.targets,events:a}));return n.isDrag=!1!==s,!!n.isDrag&&i},dragGroup:function(e,t){if(t.datas.isDrag){var n=this.drag(e,t),r=pn(e,this,"drag",t.datas.passDelta,t,!1);if(n){var o=Gt({targets:e.props.targets,events:r},n);return Do(e,"onDragGroup",o),o}}},dragGroupEnd:function(e,t){var n=t.isDrag;if(t.datas.isDrag){this.dragEnd(e,t);var r=pn(e,this,"dragEnd",[0,0],t,!1);return Do(e,"onDragGroupEnd",Oo(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=e.getRect(),r=0,o=0;return{isControl:!1,requestStart:function(){return{datas:t}},request:function(e){return"x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY),{datas:t,distX:r,distY:o}},requestEnd:function(){return{datas:t,isDrag:!0}}}},unset:function(e){e.state.dragInfo=null}};function _r(e,t){var n=t.clientX,r=t.clientY,o=t.datas,i=e.state,a=i.moveableClientRect,s=i.rootMatrix,u=i.is3d,l=i.pos1,c=he(Ao(s,[n-a.left,r-a.top],u?4:3),l),f=Dr({datas:o,distX:c[0],distY:c[1]});return[f[0],f[1]]}function Er(e,t){var n=t.datas,r=e.state,o=r.allMatrix,i=r.beforeMatrix,a=r.is3d,s=r.left,u=r.top,l=r.origin,c=r.offsetMatrix,f=r.targetMatrix,d=r.transformOrigin,p=a?4:3;n.is3d=a,n.matrix=o,n.targetMatrix=f,n.beforeMatrix=i,n.offsetMatrix=c,n.transformOrigin=d,n.inverseMatrix=ue(o,p),n.inverseBeforeMatrix=ue(i,p),n.absoluteOrigin=le(pe([s,u],l),p),n.startDragBeforeDist=ve(n.inverseBeforeMatrix,n.absoluteOrigin,p),n.startDragDist=ve(n.inverseMatrix,n.absoluteOrigin,p)}function kr(e,t){var n=e.datas,r=e.originalDatas.beforeRenderable,o=n.transformIndex,i=r.nextTransforms,a=r.nextTransformAppendedIndexes,s=0;-1===o?(s=i.length,n.transformIndex=s):s=o+a.filter((function(e){return e<o})).length;var u=function(e,t){var n=e.slice(0,t<0?void 0:t),r=e.slice(0,t<0?void 0:t+1),o=e[t]||"",i=t<0?[]:e.slice(t),a=t<0?[]:e.slice(t+1),s=Xe(n),u=Xe(r),l=Xe([o]),c=Xe(i),f=Xe(a),d=Ye(s),p=Ye(u),h=Ye(c),g=Ye(f),v=de(d,h,4);return{transforms:e,beforeFunctionMatrix:d,beforeFunctionMatrix2:p,targetFunctionMatrix:Ye(l),afterFunctionMatrix:h,afterFunctionMatrix2:g,allFunctionMatrix:v,beforeFunctions:s,beforeFunctions2:u,targetFunction:l[0],afterFunctions:c,afterFunctions2:f,beforeFunctionTexts:n,beforeFunctionTexts2:r,targetFunctionText:o,afterFunctionTexts:i,afterFunctionTexts2:a}}(i,s),l=u.targetFunction,c="rotate"===t?"rotateZ":t;n.beforeFunctionTexts=u.beforeFunctionTexts,n.afterFunctionTexts=u.afterFunctionTexts,n.beforeTransform=u.beforeFunctionMatrix,n.beforeTransform2=u.beforeFunctionMatrix2,n.targetTansform=u.targetFunctionMatrix,n.afterTransform=u.afterFunctionMatrix,n.afterTransform2=u.afterFunctionMatrix2,n.targetAllTransform=u.allFunctionMatrix,l.functionName===c?(n.afterFunctionTexts.splice(0,1),n.isAppendTransform=!1):(n.isAppendTransform=!0,r.nextTransformAppendedIndexes=__spreadArray(__spreadArray([],a,!0),[s],!1))}function Cr(e,t,n){return"".concat(e.beforeFunctionTexts.join(" ")," ").concat(e.isAppendTransform?n:t," ").concat(e.afterFunctionTexts.join(" "))}function Or(e,t,n){var r=e.beforeTransform,o=e.afterTransform,i=e.beforeTransform2,a=e.afterTransform2,s=e.targetAllTransform,u=n?de(s,t,4):de(t,s,4),l=de(ue(n?i:r,4),u,4);return de(l,ue(n?a:o,4),4)}function Mr(e){var t=e.datas,n=e.distX,r=e.distY,o=t.inverseBeforeMatrix,i=t.is3d,a=t.startDragBeforeDist,s=i?4:3;return he(ve(o,pe(t.absoluteOrigin,[n,r]),s),a)}function Dr(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.inverseBeforeMatrix,a=n.inverseMatrix,s=n.is3d,u=n.startDragBeforeDist,l=n.startDragDist,c=s?4:3;return he(ve(t?i:a,pe(n.absoluteOrigin,[r,o]),c),t?u:l)}function Tr(e){var t=[];return e[1]>=0&&(e[0]>=0&&t.push(3),e[0]<=0&&t.push(2)),e[1]<=0&&(e[0]>=0&&t.push(1),e[0]<=0&&t.push(0)),t}function Pr(e,t){return Tr(t).map((function(t){return e[t]}))}function Rr(e,t){var n=Pr(e,t);return[X(n.map((function(e){return e[0]}))),X(n.map((function(e){return e[1]})))]}function Ir(e,t,n,r){return de(e,Vr(t,r,n),r)}function Ar(e){var t=e.originalDatas.beforeRenderable;return{setTransform:function(n,r){void 0===r&&(r=-1),t.startTransforms=D(n)?n:L(n),Lr(e,r)},setTransformIndex:function(t){Lr(e,t)}}}function Nr(e,t){Lr(e,K(e.originalDatas.beforeRenderable.startTransforms,(function(e){return 0===e.indexOf("".concat(t,"("))})))}function Lr(e,t){var n=e.originalDatas.beforeRenderable,r=e.datas;if(r.transformIndex=t,-1!==t){var o=n.startTransforms[t];if(o){var i=Xe([o]);r.startValue=i[0].functionValue}}}function Br(e,t){e.originalDatas.beforeRenderable.nextTransforms=L(t)}function Fr(e){return e.originalDatas.beforeRenderable.nextTransforms.join(" ")}function zr(e,t,n,r,o){return Br(o,t),{transform:t,drag:xr.drag(e,cn(o,e.state,n,r,!1))}}function jr(e,t,n,r,o){var i=e.state,a=i.left,s=i.top,u=e.props.groupable,l=function(e,t,n){var r=e.transformOrigin,o=e.offsetMatrix,i=e.is3d,a=t.beforeTransform,s=t.afterTransform,u=i?4:3;return Ir(o,ce(de(de(a,qe([n]),4),s,4),4,u),r,u)}(e.state,o,t),c=u?a:0,f=u?s:0,d=he(r,Ur(e,n,l));return he(d,[c,f])}function Kr(e){var t=e.state,n=t.width,r=t.height,o=t.transformOrigin;return[o[0]/(n/2)-1,o[1]/(r/2)-1]}function Ur(e,t,n){void 0===n&&(n=e.state.allMatrix);var r=e.state,o=r.width,i=r.height,a=r.is3d?4:3;return uo(n,[o/2*(1+t[0]),i/2*(1+t[1])],a)}function qr(e,t,n,r,o,i){var a=e.props.groupable,s=e.state,u=s.transformOrigin,l=s.targetMatrix,c=s.offsetMatrix,f=s.is3d,d=s.width,p=s.height,h=s.left,g=s.top,v=f?4:3,m=function(e,t,n,r,o,i){return void 0===r&&(r=t),void 0===o&&(o=n),void 0===i&&(i=[0,0]),e?e.map((function(e,a){var s=z(e),u=s.value,l=s.unit,c=a?o:r,f=a?n:t;return"%"===e||isNaN(u)?f*(c?i[a]/c:0):"%"!==l?u:f*u/100})):i}(i,t,n,d,p,u),y=a?h:0,b=a?g:0,w=function(e,t,n,r,o,i){var a=Rr(lo(t,n,r,o),i);return[e[0]-a[0],e[1]-a[1]]}(o,Ir(c,l,m,v),t,n,v,r);return he(w,[y,b])}function Wr(e,t){return Rr(Eo(e.state),t)}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return b.apply(void 0,__spreadArray([Zt],e,!1))}function Gr(e){e()}function Yr(e){return e&&"none"!==e?M(e)?e:qe(e):[1,0,0,1,0,0]}function Vr(e,t,n){return fe(t,ze(n,t),e,ze(n.map((function(e){return-e})),t))}function Xr(e){return $r(To(e,":before")).map((function(t,n){var r=z(t),o=r.value,i=r.unit;return o*function(e,t,n){return"%"===t?ao(e.ownerSVGElement)[n?"width":"height"]/100:1}(e,i,0===n)}))}function $r(e){var t=e.transformOrigin;return t?t.split(" "):["0","0"]}function Qr(e,t){void 0===t&&(t=To(e));var n=t.transform;if(n&&"none"!==n)return t.transform;if("transform"in e){var r=e.transform.baseVal;if(!r)return"";var o=r.length;if(!o)return"";for(var i=[],a=function(e){var t=r[e].matrix;i.push("matrix(".concat(["a","b","c","d","e","f"].map((function(e){return t[e]})).join(", "),")"))},s=0;s<o;++s)a(s);return i.join(" ")}return""}function Zr(e,t,n){for(var r=document.body,o=!e||n?e:e.parentElement,i=e===t||o===t,a="relative";o&&o!==r;){t===o&&(i=!0);var s=To(o),u=o.tagName.toLowerCase(),l=Qr(o,s);if(a=s.position,"svg"===u||"static"!==a||l&&"none"!==l)break;o=o.parentElement,a="relative"}return{isStatic:"static"===a,isEnd:i||!o||o===r,offsetParent:o||r}}function Jr(e,t){var n,r,o,i=e.tagName.toLowerCase(),a=e.offsetLeft,s=e.offsetTop,u=O(a),l=!u;return l||"svg"===i?o=(r=$r(t).map((function(e){return parseFloat(e)}))).slice():(o=(r=Qt?Xr(e):$r(t).map((function(e){return parseFloat(e)}))).slice(),l=!0,n=function(e,t){if(!e.getBBox||"g"===e.tagName.toLowerCase())return[0,0,0,0];var n=e.getBBox(),r=ao(e.ownerSVGElement),o=n.x-r.x,i=n.y-r.y;return[o,i,t[0]-o,t[1]-i]}(e,r),a=n[0],s=n[1],r[0]=n[2],r[1]=n[3]),{tagName:i,isSVG:u,hasOffset:l,offset:[a||0,s||0],origin:r,targetOrigin:o}}function eo(e,t,n){void 0===n&&(n=To(e));var r=To(document.body),o=r.position;if(!(t||o&&"static"!==o))return[0,0];var i=parseInt(r.marginLeft,10),a=parseInt(r.marginTop,10);return"absolute"===n.position&&("auto"===n.top&&"auto"===n.bottom||(a=0),"auto"===n.left&&"auto"===n.right||(i=0)),[i,a]}function to(e){e.forEach((function(e){var t=e.matrix;t&&(e.matrix=ce(t,3,4))}))}function no(e){for(var t=e.parentElement,n=!1;t;){var r=To(t).transform;if(r&&"none"!==r){n=!0;break}if(t===document.body)break;t=t.parentElement}return{fixedContainer:t||document.body,hasTransform:n}}function ro(e,t,n){for(var r,o,i,a,s,u=e,l=[],c=!n&&e===t||e===document.body,f=c,d=!1,p=3,h=!1,g=Zr(t,t,!0).offsetParent;u&&!f;){f=c;var v=To(u),m=v.position,y=Qr(u,v),b=(a=Yr(y),void 0===(s=void 0)&&(s=6===a.length),s?[a[0],a[1],0,a[2],a[3],0,a[4],a[5],1]:a),w="fixed"===m,S={hasTransform:!1,fixedContainer:null};w&&(h=!0,g=(S=no(u)).fixedContainer);var x=b.length;d||16!==x||(d=!0,p=4,to(l),i&&(i=ce(i,3,4))),d&&9===x&&(b=ce(b,3,4));var _=Jr(u,v),E=_.tagName,k=_.hasOffset,C=_.isSVG,O=_.origin,M=_.targetOrigin,D=_.offset,T=D[0],P=D[1];"svg"===E&&i?(l.push({type:"target",target:u,matrix:so(u,p)}),l.push({type:"offset",target:u,matrix:Pe(p)})):"g"===E&&e!==u&&(T=0,P=0);var R=void 0,I=!1,A=!1;if(w)R=S.fixedContainer,I=!0;else{var N=Zr(u,t);R=N.offsetParent,I=N.isEnd,A=N.isStatic}$t&&k&&!C&&A&&("relative"===m||"static"===m)&&(T-=R.offsetLeft,P-=R.offsetTop,c=c||I);var L=0,B=0,F=0,z=0;if(w)k&&S.hasTransform&&(F=R.clientLeft,z=R.clientTop);else if(k&&g!==R&&(L=R.clientLeft,B=R.clientTop),k&&R===document.body){var j=eo(u,!1,v);T+=j[0],P+=j[1]}if(l.push({type:"target",target:u,matrix:Vr(b,p,O)}),k?l.push({type:"offset",target:u,matrix:ze([T-u.scrollLeft+L-F,P-u.scrollTop+B-z],p)}):l.push({type:"offset",target:u,origin:O}),i||(i=b),r||(r=O),o||(o=M),f||w)break;u=R,c=I,n&&u!==document.body||(f=c)}return i||(i=Pe(p)),r||(r=[0,0]),o||(o=[0,0]),{offsetContainer:g,matrixes:l,targetMatrix:i,transformOrigin:r,targetOrigin:o,is3d:d,hasFixed:h}}function oo(e,t,n,r){void 0===n&&(n=t);var o=0,i=0,a=0,s={};if(e){var u=yo(e);o=u.offsetWidth,i=u.offsetHeight}if(e){var l=function(e,t,n,r){var o;void 0===n&&(n=t);var i=ro(e,t),a=i.matrixes,s=i.is3d,u=i.targetMatrix,l=i.transformOrigin,c=i.targetOrigin,f=i.offsetContainer,d=i.hasFixed,p=ro(f,n,!0),h=p.matrixes,g=p.is3d,v=r||g||s,m=v?4:3,y="svg"!==e.tagName.toLowerCase()&&"ownerSVGElement"in e,b=u,w=Pe(m),S=Pe(m),x=Pe(m),_=Pe(m),E=a.length;h.reverse(),a.reverse(),!s&&v&&(b=ce(b,3,4),to(a));!g&&v&&to(h);h.forEach((function(e){S=de(S,e.matrix,m)}));var k=n||document.body,C=(null===(o=h[0])||void 0===o?void 0:o.target)||Zr(k,k,!0).offsetParent,O=h.slice(1).reduce((function(e,t){return de(e,t.matrix,m)}),Pe(m));a.forEach((function(e,t){if(E-2===t&&(x=w.slice()),E-1===t&&(_=w.slice()),!e.matrix){var n=function(e,t,n,r,o){var i,a=e.target,s=e.origin,u=t.matrix,l=yo(a),c=l.offsetWidth,f=l.offsetHeight,d=n.getBoundingClientRect(),p=[0,0];n===document.body&&(p=eo(a,!0));var h=a.getBoundingClientRect(),g=h.left-d.left+n.scrollLeft-(n.clientLeft||0)+p[0],v=h.top-d.top+n.scrollTop-(n.clientTop||0)+p[1],m=h.width,y=h.height,b=fe(r,o,u),w=fo(b,c,f,r),S=w.left,x=w.top,_=w.width,E=w.height,k=uo(b,s,r),C=he(k,[S,x]),O=[g+C[0]*m/_,v+C[1]*y/E],M=[0,0],D=0;for(;++D<10;){var T=ue(o,r);i=he(uo(T,O,r),uo(T,k,r)),M[0]=i[0],M[1]=i[1];var P=fo(fe(r,o,ze(M,r),u),c,f,r),R=P.left-g,I=P.top-v;if(Math.abs(R)<2&&Math.abs(I)<2)break;O[0]-=R,O[1]-=I}return M.map((function(e){return Math.round(e)}))}(e,a[t+1],C,m,de(O,w,m));e.matrix=ze(n,m)}w=de(w,e.matrix,m)}));var M=!y&&s;b||(b=Pe(M?4:3));var D=io(y&&16===b.length?ce(b,4,3):b,M);return S=se(S,m,m),{hasFixed:d,rootMatrix:S,beforeMatrix:x,offsetMatrix:_,allMatrix:w,targetMatrix:b,targetTransform:D,transformOrigin:l,targetOrigin:c,is3d:v}}(e,t,n,r),c=po(l.allMatrix,l.transformOrigin,o,i);s=Gt(Gt({},l),c);var f=po(l.allMatrix,[50,50],100,100);a=bo([f.pos1,f.pos2],f.direction)}var d=r?4:3;return Gt({width:o,height:i,rotation:a,rootMatrix:Pe(d),beforeMatrix:Pe(d),offsetMatrix:Pe(d),allMatrix:Pe(d),targetMatrix:Pe(d),targetTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!r,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1},s)}function io(e,t){return void 0===t&&(t=e.length>9),"".concat(t?"matrix3d":"matrix","(").concat(ge(e,!t).join(","),")")}function ao(e){var t=e.clientWidth,n=e.clientHeight;if(!e)return{x:0,y:0,width:0,height:0,clientWidth:t,clientHeight:n};var r=e.viewBox,o=r&&r.baseVal||{x:0,y:0,width:0,height:0};return{x:o.x,y:o.y,width:o.width||t,height:o.height||n,clientWidth:t,clientHeight:n}}function so(e,t){var n=ao(e),r=n.width,o=n.height,i=n.clientWidth,a=n.clientHeight,s=i/r,u=a/o,l=e.preserveAspectRatio.baseVal,c=l.align,f=l.meetOrSlice,d=[0,0],p=[s,u],h=[0,0];if(1!==c){var g=(c-2)%3,v=Math.floor((c-2)/3);d[0]=r*g/2,d[1]=o*v/2;var m=2===f?Math.max(u,s):Math.min(s,u);p[0]=m,p[1]=m,h[0]=(i-r)/2*g,h[1]=(a-o)/2*v}var y=Ie(p,t);return y[t*(t-1)]=h[0],y[t*(t-1)+1]=h[1],Vr(y,t,d)}function uo(e,t,n){return ve(e,le(t,n),n)}function lo(e,t,n,r){return[[0,0],[t,0],[0,n],[t,n]].map((function(t){return uo(e,t,r)}))}function co(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(Math,t),o=Math.min.apply(Math,n),i=Math.max.apply(Math,t),a=Math.max.apply(Math,n);return{left:r,top:o,right:i,bottom:a,width:i-r,height:a-o}}function fo(e,t,n,r){return co(lo(e,t,n,r))}function po(e,t,n,r){var o=16===e.length?4:3,i=lo(e,n,r,o),a=i[0],s=a[0],u=a[1],l=i[1],c=l[0],f=l[1],d=i[2],p=d[0],h=d[1],g=i[3],v=g[0],m=g[1],y=uo(e,t,o),b=y[0],w=y[1],S=Math.min(s,c,p,v),x=Math.min(u,f,h,m),_=Math.max(s,c,p,v);return s=s-S||0,{left:S,top:x,right:_,bottom:Math.max(u,f,h,m),origin:[b=b-S||0,w=w-x||0],pos1:[s,u=u-x||0],pos2:[c=c-S||0,f=f-x||0],pos3:[p=p-S||0,h=h-x||0],pos4:[v=v-S||0,m=m-x||0],direction:Q(i)}}function ho(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function go(e,t){return ho([t[0]-e[0],t[1]-e[1]])}function vo(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=$(e,t));var o=go(e,t);return{transform:"translateY(-50%) translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(r,"rad) scaleY(").concat(n,")"),width:"".concat(o,"px")}}function mo(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n.length,i=n.reduce((function(e,t){return e+t[0]}),0)/o,a=n.reduce((function(e,t){return e+t[1]}),0)/o;return{transform:"translateZ(0px) translate(".concat(i,"px, ").concat(a,"px) rotate(").concat(e,"rad) scale(").concat(t,")")}}function yo(e,t){if(void 0===t&&(t=To(e)),!O(e.offsetWidth)||"svg"===e.tagName.toLowerCase()){var n="border-box"===t.boxSizing,r=parseFloat(t.borderLeftWidth)||0,o=parseFloat(t.borderRightWidth)||0,i=parseFloat(t.borderTopWidth)||0,a=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.paddingLeft)||0,u=parseFloat(t.paddingRight)||0,l=parseFloat(t.paddingTop)||0,c=parseFloat(t.paddingBottom)||0,f=parseFloat(t.width),d=parseFloat(t.height),p=(m=f,y=d,s+u),h=l+c,g=p+(r+o),v=h+(i+a);return n?(f=m-g,d=y-v):(m=f+g,y=d+v),{svg:!1,offsetWidth:m,offsetHeight:y,clientWidth:f+p,clientHeight:d+h,cssWidth:f,cssHeight:d}}var m,y,b=e.getBBox();return{svg:!0,offsetWidth:m=b.width,offsetHeight:y=b.height,clientWidth:m,clientHeight:y,cssWidth:m,cssHeight:y}}function bo(e,t){return $(t>0?e[0]:e[1],t>0?e[1]:e[0])}function wo(e,t,n,r,o){var i=1,a=[0,0],s={left:0,right:0,top:0,bottom:0,width:0,height:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},u={left:0,right:0,top:0,bottom:0,width:0,height:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},l={left:0,right:0,top:0,bottom:0,width:0,height:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c=oo(t,n,o,!1);if(t){var f=c.is3d?4:3,d=po(c.offsetMatrix,pe(c.transformOrigin,function(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],o=0;o<t-1;++o)n[o]=e[t*(t-1)+o]/r;return n[t-1]=0,n}(c.targetMatrix,f)),c.width,c.height);i=d.direction,a=pe(d.origin,[d.left-c.left,d.top-c.top]),s=So(t),u=So(Zr(r,r,!0).offsetParent||document.body,!0),e&&(l=So(e))}return Gt({targetClientRect:s,containerClientRect:u,moveableClientRect:l,beforeDirection:i,beforeOrigin:a,originalBeforeOrigin:a,target:t},c)}function So(e,t){var n,r=0,o=0,i=0,a=0;if(e===document.body||e===document.documentElement){i=window.innerWidth,a=window.innerHeight;var s=[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop];r=(n=[-s[0],-s[1]])[0],o=n[1]}else{var u=e.getBoundingClientRect();r=u.left,o=u.top,i=u.width,a=u.height}var l={left:r,right:r+i,top:o,bottom:o+a,width:i,height:a};return t&&(l.clientLeft=e.clientLeft,l.clientTop=e.clientTop,l.clientWidth=e.clientWidth,l.clientHeight=e.clientHeight,l.scrollWidth=e.scrollWidth,l.scrollHeight=e.scrollHeight,l.overflow="visible"!==To(e).overflow),l}function xo(e){if(e){var t=e.getAttribute("data-direction");if(t){var n=[0,0];return t.indexOf("w")>-1&&(n[0]=-1),t.indexOf("e")>-1&&(n[0]=1),t.indexOf("n")>-1&&(n[1]=-1),t.indexOf("s")>-1&&(n[1]=1),n}}}function _o(e,t){return[pe(t,e[0]),pe(t,e[1]),pe(t,e[2]),pe(t,e[3])]}function Eo(e){var t=e.left,n=e.top;return _o([e.pos1,e.pos2,e.pos3,e.pos4],[t,n])}function ko(e,t){var n;null===(n=e[t])||void 0===n||n.unset(),e[t]=null}function Co(e,t,n,r){var o=t.datas;o.datas||(o.datas={});var i=Gt(Gt({},n),{target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,moveable:e,datas:o.datas});return o.isStartEvent?r||(o.lastEvent=i):o.isStartEvent=!0,i}function Oo(e,t,n){var r=t.datas,o="isDrag"in n?n.isDrag:t.isDrag;return r.datas||(r.datas={}),Gt(Gt({isDrag:o},n),{moveable:e,target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,lastEvent:r.lastEvent,isDouble:t.isDouble,datas:r.datas})}function Mo(e,t,n){e._emitter.on(t,n)}function Do(e,t,n,r){return e.triggerEvent(t,n,r)}function To(e,t){return window.getComputedStyle(e,t)}function Po(e,t,n){var r={},o={};return e.filter((function(e){var i=e.name;if(r[i]||!t.some((function(t){return e[t]})))return!1;if(!n&&e.ableGroup){if(o[e.ableGroup])return!1;o[e.ableGroup]=!0}return r[i]=!0,!0}))}function Ro(e,t){return e===t||null==e&&null==t}function Io(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.sort((function(e,t){return Math.abs(t)-Math.abs(e)})),e[0]}function Ao(e,t,n){return ve(ue(e,n),le(t,n),n)}function No(e,t){var n,r=e.is3d?4:3;return n=Ao(e.rootMatrix,[t.distX,t.distY],r),t.distX=n[0],t.distY=n[1],t}function Lo(e,t,n,r,o){return he(uo(e,pe(n,t),o),r)}function Bo(e,t,n){return n?"".concat(e/t*100,"%"):"".concat(e,"px")}function Fo(e){return Math.abs(e)<=tn?0:e}function zo(e,t){return t.isRequest?("resizable"===t.requestAble||"scalable"===t.requestAble)&&t.parentDirection:te(t.inputEvent.target,Hr("direction"))}function jo(e){var t={};for(var n in e)t[e[n]]=n;return t}function Ko(e,t){return e?T(e)?t?document.querySelector(e):e:R(e)?e():"current"in e?e.current:e:null}function Uo(e,t){return e?(!(n=e)||!M(n)||n instanceof Element||!D(n)&&!("length"in n)?[e]:[].slice.call(e)).reduce((function(e,n){return T(n)&&t?__spreadArray(__spreadArray([],e,!0),[].slice.call(document.querySelectorAll(n)),!0):(e.push(Ko(n,t)),e)}),[]):[];var n}function qo(e,t){var n=e.rootMatrix,r=e.is3d,o=ue(n,r?4:3);return r||(o=ce(o,3,4)),o[12]=0,o[13]=0,o[14]=0,function(e,t){var n=ve(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}(o,t)}function Wo(e,t,n,r,o){var i=e[0],a=e[1],s=0,u=0;if(o&&i&&a){var l=$([0,0],t),c=$([0,0],r),f=ho(t),d=Math.cos(l-c)*f;if(r[0])if(r[1]){var p=2*r[0]*i,h=2*r[1]*a,g=ho([p+t[0],h+t[1]])-ho([p,h]),v=$([0,0],[n,1]);s=Math.cos(v)*g,u=Math.sin(v)*g}else u=(s=d)/n;else s=(u=d)*n}else s=r[0]*t[0],u=r[1]*t[1];return[s,u]}function Ho(e,t,n,r){var o,i=n.ratio,a=n.startOffsetWidth,s=n.startOffsetHeight,u=0,l=0,c=r.distX,f=r.distY,d=r.parentDistance,p=r.parentDist,h=r.parentScale,g=r.isPinch,v=n.fixedDirection;if(p)u=p[0],l=p[1],t&&(u?l||(l=u/i):u=l*i);else if(h)u=(h[0]-1)*a,l=(h[1]-1)*s;else if(g)d&&(u=d,l=d*s/a);else{var m=Dr({datas:n,distX:c,distY:f});u=(o=Wo([a,s],m=[0,1].map((function(t){var n=Math.abs(e[t]-v[t]);return 0!==n&&(n=2/n),m[t]*n})),i,e,t))[0],l=o[1]}return{distWidth:u,distHeight:l}}var Go=Yt("pinchable",{events:{onPinchStart:"pinchStart",onPinch:"pinch",onPinchEnd:"pinchEnd",onPinchGroupStart:"pinchGroupStart",onPinchGroup:"pinchGroup",onPinchGroupEnd:"pinchGroupEnd"},dragStart:function(){return!0},pinchStart:function(e,t){var n=t.datas,r=t.targets,o=t.angle,i=t.originalDatas,a=e.props,s=a.pinchable,u=a.ables;if(!s)return!1;var l="onPinch".concat(r?"Group":"","Start"),c="drag".concat(r?"Group":"","ControlStart"),f=(!0===s?e.controlAbles:u.filter((function(e){return s.indexOf(e.name)>-1}))).filter((function(e){return e.canPinch&&e[c]})),d=Co(e,t,{});r&&(d.targets=r);var p=Do(e,l,d);n.isPinch=!1!==p,n.ables=f;var h=n.isPinch;return!!h&&(f.forEach((function(n){if(i[n.name]=i[n.name]||{},n[c]){var r=Gt(Gt({},t),{datas:i[n.name],parentRotate:o,isPinch:!0});n[c](e,r)}})),e.state.snapRenderInfo={request:t.isRequest,direction:[0,0]},h)},pinch:function(e,t){var n=t.datas,r=t.scale,o=t.distance,i=t.originalDatas,a=t.inputEvent,s=t.targets,u=t.angle;if(n.isPinch){var l=o*(1-1/r),c=Co(e,t,{});s&&(c.targets=s);var f="onPinch".concat(s?"Group":"");Do(e,f,c);var d=n.ables,p="drag".concat(s?"Group":"","Control");return d.forEach((function(n){n[p]&&n[p](e,Gt(Gt({},t),{datas:i[n.name],inputEvent:a,parentDistance:l,parentRotate:u,isPinch:!0}))})),c}},pinchEnd:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=t.targets,a=t.originalDatas;if(n.isPinch){var s="onPinch".concat(i?"Group":"","End"),u=Oo(e,t,{isDrag:r});i&&(u.targets=i),Do(e,s,u);var l=n.ables,c="drag".concat(i?"Group":"","ControlEnd");return l.forEach((function(n){n[c]&&n[c](e,Gt(Gt({},t),{isDrag:r,datas:a[n.name],inputEvent:o,isPinch:!0}))})),r}},pinchGroupStart:function(e,t){return this.pinchStart(e,Gt(Gt({},t),{targets:e.props.targets}))},pinchGroup:function(e,t){return this.pinch(e,Gt(Gt({},t),{targets:e.props.targets}))},pinchGroupEnd:function(e,t){return this.pinchEnd(e,Gt(Gt({},t),{targets:e.props.targets}))}}),Yo={name:"resizable",ableGroup:"size",canPinch:!0,props:{resizable:Boolean,throttleResize:Number,renderDirections:Array,keepRatio:Boolean,resizeFormat:Function},events:{onResizeStart:"resizeStart",onBeforeResize:"beforeResize",onResize:"resize",onResizeEnd:"resizeEnd",onResizeGroupStart:"resizeGroupStart",onBeforeResizeGroup:"beforeResizeGroup",onResizeGroup:"resizeGroup",onResizeGroupEnd:"resizeGroupEnd"},render:function(e,t){var n=e.props,r=n.resizable,o=n.edge;if(r)return o?yn(e,t):mn(e,t)},dragControlCondition:zo,dragControlStart:function(e,t){var n,r=t.inputEvent,o=t.isPinch,i=t.isGroup,a=t.parentDirection,s=t.datas,u=a||(o?[0,0]:xo(r.target)),l=e.state,c=l.target,f=l.width,d=l.height;if(!u||!c)return!1;!o&&Er(e,t),s.datas={},s.direction=u,s.startOffsetWidth=f,s.startOffsetHeight=d,s.prevWidth=0,s.prevHeight=0,n=function(e){var t=To(e);return[parseFloat(t.width),parseFloat(t.height)]}(c),s.startWidth=n[0],s.startHeight=n[1];var p=[Math.max(0,f-s.startWidth),Math.max(0,d-s.startHeight)];if(s.minSize=p,s.maxSize=[1/0,1/0],!i){var h=To(c),g=h.position,v=h.minWidth,m=h.minHeight,y=h.maxWidth,b=h.maxHeight,w="static"===g||"relative"===g,S=w?c.parentElement:c.offsetParent,x=f,_=d;if(S&&(x=S.clientWidth,_=S.clientHeight,w)){var E=To(S);x-=parseFloat(E.paddingLeft)||0,_-=parseFloat(E.paddingTop)||0}s.minSize=pe([G(v,x)||0,G(m,_)||0],p),s.maxSize=pe([G(y,x)||1/0,G(b,_)||1/0],p)}var k=e.props.transformOrigin||"% %";function C(e){s.ratio=e&&isFinite(e)?e:0}function O(e){s.fixedDirection=e,s.fixedPosition=Rr(s.startPositions,e)}function M(e){s.minSize=[G("".concat(e[0]),0)||0,G("".concat(e[1]),0)||0]}function D(e){var t=[e[0]||1/0,e[1]||1/0];P(t[0])&&!isFinite(t[0])||(t[0]=G("".concat(t[0]),0)||1/0),P(t[1])&&!isFinite(t[1])||(t[1]=G("".concat(t[1]),0)||1/0),s.maxSize=t}s.transformOrigin=k&&T(k)?k.split(" "):k,s.isWidth=!u[0]&&!u[1]||u[0]||!u[1],s.startPositions=Eo(e.state),C(f/d),O([-u[0],-u[1]]),s.setFixedDirection=O,s.setMin=M,s.setMax=D;var R=Co(e,t,{direction:u,set:function(e){var t=e[0],n=e[1];s.startWidth=t,s.startHeight=n},setMin:M,setMax:D,setRatio:C,setFixedDirection:O,setOrigin:function(e){s.transformOrigin=e},dragStart:xr.dragStart(e,(new fn).dragStart([0,0],t))});return!1!==Do(e,"onResizeStart",R)&&(s.isResize=!0,e.state.snapRenderInfo={request:t.isRequest,direction:u}),!!s.isResize&&R},dragControl:function(e,t){var n,r=t.datas,o=t.parentFlag,i=t.isPinch,a=t.parentKeepRatio,s=t.dragClient,u=t.parentDist,l=t.isRequest,c=r.isResize,f=r.transformOrigin,d=r.startWidth,p=r.startHeight,h=r.prevWidth,g=r.prevHeight,v=r.minSize,m=r.maxSize,y=r.ratio,b=r.isWidth,w=r.startOffsetWidth,S=r.startOffsetHeight;if(c){var x=e.props,_=x.resizeFormat,E=x.throttleResize,k=void 0===E?1:E,C=x.parentMoveable,O=r.direction,M=O,D=0,T=0;O[0]||O[1]||(M=[1,1]);var P=y&&(null!=a?a:x.keepRatio)||!1,R=K(),I=R[0],A=R[1];r.setFixedDirection(r.fixedDirection),Do(e,"onBeforeResize",Co(e,t,{setFixedDirection:function(e){var t;return r.setFixedDirection(e),t=K(),I=t[0],A=t[1],[I,A]},boundingWidth:I,boundingHeight:A,setSize:function(e){I=e[0],A=e[1]}},!0));var N=s;s||(N=!o&&i?Wr(e,[0,0]):r.fixedPosition);var L=[0,0];if(i||(L=function(e,t,n,r,o,i,a){if(!Dn(e,"resizable"))return[0,0];var s=a.fixedDirection,u=e.state,l=u.allMatrix,c=u.is3d;return mr(e,(function(e,r){return gr(l,t+e,n+r,s,o,c)}),t,n,r,o,i,a)}(e,I,A,O,N,l,r)),u&&(!u[0]&&(L[0]=0),!u[1]&&(L[1]=0)),P){M[0]&&M[1]&&L[0]&&L[1]&&(Math.abs(L[0])>Math.abs(L[1])?L[1]=0:L[0]=0);var B=!L[0]&&!L[1];B&&U(),M[0]&&!M[1]||L[0]&&!L[1]||B&&b?(I+=L[0],A=I/y):(!M[0]&&M[1]||!L[0]&&L[1]||B&&!b)&&(A+=L[1],I=A*y)}else I+=L[0],A+=L[1],I=Math.max(0,I),A=Math.max(0,A);n=V([I,A],v,m,!!P&&y),I=n[0],A=n[1],U();var F=[(D=I-w)-h,(T=A-S)-g];r.prevWidth=D,r.prevHeight=T;var z=qr(e,I,A,r.fixedDirection,N,f);if(C||!F.every((function(e){return!e}))||!z.every((function(e){return!e}))){var j=Co(e,t,{width:d+D,height:p+T,offsetWidth:Math.round(I),offsetHeight:Math.round(A),boundingWidth:I,boundingHeight:A,direction:O,dist:[D,T],delta:F,isPinch:!!i,drag:xr.drag(e,cn(t,e.state,z,!!i,!1))});return Do(e,"onResize",j),j}}function K(){var e=Ho(M,P,r,t);D=e.distWidth,T=e.distHeight;var n=M[0]||P?Math.max(w+D,tn):w,o=M[1]||P?Math.max(S+T,tn):S;return P&&w&&S&&(b?o=n/y:n=o*y),[n,o]}function U(){var e;_&&(e=_([I,A]),I=e[0],A=e[1]),I=J(I,k),A=J(A,k)}},dragControlAfter:function(e,t){var n=t.datas,r=n.isResize,o=n.startOffsetWidth,i=n.startOffsetHeight,a=n.prevWidth,s=n.prevHeight;if(r){var u=e.state,l=u.width-(o+a),c=u.height-(i+s),f=Math.abs(l)>3,d=Math.abs(c)>3;return f&&(n.startWidth+=l,n.startOffsetWidth+=l,n.prevWidth+=l),d&&(n.startHeight+=c,n.startOffsetHeight+=c,n.prevHeight+=c),f||d?this.dragControl(e,t):void 0}},dragControlEnd:function(e,t){var n=t.datas;if(n.isResize){n.isResize=!1;var r=Oo(e,t,{});return Do(e,"onResizeEnd",r),r}},dragGroupControlCondition:zo,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,Gt(Gt({},t),{isGroup:!0}));if(!r)return!1;var o=dn(e,"resizable",t);function i(t,r){var o=n.fixedDirection,i=n.fixedPosition,a=Rr(r.datas.startPositions||Eo(t.state),o),s=ve(ke(-e.rotation/180*Math.PI,3),[a[0]-i[0],a[1]-i[1],1],3),u=s[0],l=s[1];return r.datas.originalX=u,r.datas.originalY=l,r}var a=n.startOffsetWidth,s=n.startOffsetHeight;function u(){var e=n.minSize;o.forEach((function(t){var n=t.datas,r=n.minSize,o=n.startOffsetWidth,i=n.startOffsetHeight,u=a*(o?r[0]/o:0),l=s*(i?r[1]/i:0);e[0]=Math.max(e[0],u),e[1]=Math.max(e[1],l)}))}function l(){var e=n.maxSize;o.forEach((function(t){var n=t.datas,r=n.maxSize,o=n.startOffsetWidth,i=n.startOffsetHeight,u=a*(o?r[0]/o:0),l=s*(i?r[1]/i:0);e[0]=Math.min(e[0],u),e[1]=Math.min(e[1],l)}))}var c=hn(e,this,"dragControlStart",t,(function(e,t){return i(e,t)}));u(),l();var f=function(e){r.setFixedDirection(e),c.forEach((function(t,n){t.setFixedDirection(e),i(t.moveable,o[n])}))};n.setFixedDirection=f;var d=Gt(Gt({},r),{targets:e.props.targets,events:c.map((function(e){return Gt(Gt({},e),{setMin:function(t){e.setMin(t),u()},setMax:function(t){e.setMax(t),l()}})})),setFixedDirection:f,setMin:function(e){r.setMin(e),u()},setMax:function(e){r.setMax(e),l()}}),p=Do(e,"onResizeGroupStart",d);return n.isResize=!1!==p,!!n.isResize&&r},dragGroupControl:function(e,t){var n=t.datas;if(n.isResize){Mo(e,"onBeforeResize",(function(n){Do(e,"onBeforeResizeGroup",Co(e,t,Gt(Gt({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=r.boundingWidth,i=r.boundingHeight,a=r.dist,s=e.props.keepRatio,u=[o/(o-a[0]),i/(i-a[1])],l=n.fixedPosition,c=hn(e,this,"dragControl",t,(function(t,n){var r=ve(ke(e.rotation/180*Math.PI,3),[n.datas.originalX*u[0],n.datas.originalY*u[1],1],3),o=r[0],i=r[1];return Gt(Gt({},n),{parentDist:null,parentScale:u,dragClient:pe(l,[o,i]),parentKeepRatio:s})})),f=Gt({targets:e.props.targets,events:c},r);return Do(e,"onResizeGroup",f),f}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isResize){this.dragControlEnd(e,t);var r=hn(e,this,"dragControlEnd",t);return Do(e,"onResizeGroupEnd",Oo(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=0,o=e.getRect();return{isControl:!0,requestStart:function(e){return{datas:t,parentDirection:e.direction||[1,1]}},request:function(e){return"offsetWidth"in e?n=e.offsetWidth-o.offsetWidth:"deltaWidth"in e&&(n+=e.deltaWidth),"offsetHeight"in e?r=e.offsetHeight-o.offsetHeight:"deltaHeight"in e&&(r+=e.deltaHeight),{datas:t,parentDist:[n,r],parentKeepRatio:e.keepRatio}},requestEnd:function(){return{datas:t,isDrag:!0}}}}},Vo={name:"scalable",ableGroup:"size",canPinch:!0,props:{scalable:Boolean,throttleScale:Number,renderDirections:String,keepRatio:Boolean},events:{onScaleStart:"scaleStart",onBeforeScale:"beforeScale",onScale:"scale",onScaleEnd:"scaleEnd",onScaleGroupStart:"scaleGroupStart",onBeforeScaleGroup:"beforeScaleGroup",onScaleGroup:"scaleGroup",onScaleGroupEnd:"scaleGroupEnd"},render:function(e,t){var n=e.props,r=n.resizable,o=n.scalable,i=n.edge;if(!r&&o)return i?yn(e,t):mn(e,t)},dragControlCondition:zo,dragControlStart:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=t.parentDirection||(r?[0,0]:xo(o.target)),a=e.state,s=a.width,u=a.height,l=a.targetTransform,c=a.target,f=a.pos1,d=a.pos2,p=a.pos4;if(!i||!c)return!1;r||Er(e,t),n.datas={},n.transform=l,n.prevDist=[1,1],n.direction=i,n.startOffsetWidth=s,n.startOffsetHeight=u,n.startValue=[1,1];var h=Z(f,d),g=Z(d,p),v=!i[0]&&!i[1]||i[0]||!i[1];function m(e){n.ratio=e&&isFinite(e)?e:0}function y(e){n.fixedDirection=e,n.fixedPosition=Rr(n.startPositions,e)}n.scaleWidth=h,n.scaleHeight=g,n.scaleXRatio=h/s,n.scaleYRatio=g/u,Nr(t,"scale"),n.isWidth=v,n.startPositions=Eo(e.state),n.setFixedDirection=y,m(Z(f,d)/Z(d,p)),y([-i[0],-i[1]]);var b=Co(e,t,Gt(Gt({direction:i,set:function(e){n.startValue=e},setRatio:m,setFixedDirection:y},Ar(t)),{dragStart:xr.dragStart(e,(new fn).dragStart([0,0],t))}));return!1!==Do(e,"onScaleStart",b)&&(n.isScale=!0,e.state.snapRenderInfo={request:t.isRequest,direction:i}),!!n.isScale&&b},dragControl:function(e,t){kr(t,"scale");var n=t.datas,r=t.parentKeepRatio,o=t.parentFlag,i=t.isPinch,a=t.dragClient,s=t.isRequest,u=n.prevDist,l=n.direction,c=n.startOffsetWidth,f=n.startOffsetHeight,d=n.isScale,p=n.startValue,h=n.isWidth,g=n.ratio;if(!d)return!1;var v=e.props,m=v.throttleScale,y=v.parentMoveable,b=l;l[0]||l[1]||(b=[1,1]);var w=g&&(null!=r?r:v.keepRatio)||!1,S=e.state;function x(){var e=Ho(b,w,n,t),r=e.distWidth,o=e.distHeight,i=(c+r)/c,a=(f+o)/f;return i=b[0]||w?i*p[0]:p[0],a=b[1]||w?a*p[1]:p[1],0===i&&(i=(u[0]>0?1:-1)*nn),0===a&&(a=(u[1]>0?1:-1)*nn),[i,a]}var _=x();if(!i&&e.props.groupable){var E=(S.snapRenderInfo||{}).direction;D(E)&&(E[0]||E[1])&&(S.snapRenderInfo={direction:l,request:t.isRequest})}Do(e,"onBeforeScale",Co(e,t,{scale:_,setFixedDirection:function(e){return n.setFixedDirection(e),_=x()},setScale:function(e){_=e}},!0));var k=[_[0]/p[0],_[1]/p[1]],C=a,O=[0,0];if(a||(C=!o&&i?Wr(e,[0,0]):n.fixedPosition),i||(O=yr(e,k,l,s,n)),w){b[0]&&b[1]&&O[0]&&O[1]&&(Math.abs(O[0]*c)>Math.abs(O[1]*f)?O[1]=0:O[0]=0);var M=!O[0]&&!O[1];if(M&&(h?k[0]=J(k[0]*p[0],m)/p[0]:k[1]=J(k[1]*p[1],m)/p[1]),b[0]&&!b[1]||O[0]&&!O[1]||M&&h){k[0]+=O[0];var T=c*k[0]*p[0]/g;k[1]=T/f/p[1]}else if(!b[0]&&b[1]||!O[0]&&O[1]||M&&!h){k[1]+=O[1];var P=f*k[1]*p[1]*g;k[0]=P/c/p[0]}}else k[0]+=O[0],k[1]+=O[1],O[0]||(k[0]=J(k[0]*p[0],m)/p[0]),O[1]||(k[1]=J(k[1]*p[1],m)/p[1]);0===k[0]&&(k[0]=(u[0]>0?1:-1)*nn),0===k[1]&&(k[1]=(u[1]>0?1:-1)*nn);var R,I,A=[k[0]/u[0],k[1]/u[1]];I=p,_=[(R=k)[0]*I[0],R[1]*I[1]];var N=function(e,t,n,r,o){return jr(e,"scale(".concat(t.join(", "),")"),n,r,o)}(e,k,n.fixedDirection,C,n),L=he(N,n.prevInverseDist||[0,0]);if(n.prevDist=k,n.prevInverseDist=N,_[0]===u[0]&&_[1]===u[1]&&L.every((function(e){return!e}))&&!y)return!1;var B=Cr(n,"scale(".concat(_.join(", "),")"),"scale(".concat(k.join(", "),")")),F=Co(e,t,Gt({offsetWidth:c,offsetHeight:f,direction:l,scale:_,dist:k,delta:A,isPinch:!!i},zr(e,B,L,i,t)));return Do(e,"onScale",F),F},dragControlEnd:function(e,t){var n=t.datas,r=t.isDrag;return!!n.isScale&&(n.isScale=!1,Do(e,"onScaleEnd",Oo(e,t,{})),r)},dragGroupControlCondition:zo,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,t);if(!r)return!1;var o=dn(e,"resizable",t);function i(t,r){var o=n.fixedDirection,i=n.fixedPosition,a=Rr(r.datas.startPositions||Eo(t.state),o),s=ve(ke(-e.rotation/180*Math.PI,3),[a[0]-i[0],a[1]-i[1],1],3),u=s[0],l=s[1];return r.datas.originalX=u,r.datas.originalY=l,r}n.moveableScale=e.scale;var a=hn(e,this,"dragControlStart",t,(function(e,t){return i(e,t)})),s=function(e){r.setFixedDirection(e),a.forEach((function(t,n){t.setFixedDirection(e),i(t.moveable,o[n])}))};n.setFixedDirection=s;var u=Gt(Gt({},r),{targets:e.props.targets,events:a,setFixedDirection:s}),l=Do(e,"onScaleGroupStart",u);return n.isScale=!1!==l,!!n.isScale&&u},dragGroupControl:function(e,t){var n=t.datas;if(n.isScale){Mo(e,"onBeforeScale",(function(n){Do(e,"onBeforeScaleGroup",Co(e,t,Gt(Gt({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=n.moveableScale;e.scale=[r.scale[0]*o[0],r.scale[1]*o[1]];var i=e.props.keepRatio,a=r.dist,s=r.scale,u=n.fixedPosition,l=hn(e,this,"dragControl",t,(function(t,n){var r=ve(ke(e.rotation/180*Math.PI,3),[n.datas.originalX*a[0],n.datas.originalY*a[1],1],3),o=r[0],l=r[1];return Gt(Gt({},n),{parentDist:null,parentScale:s,parentKeepRatio:i,dragClient:pe(u,[o,l])})})),c=Gt({targets:e.props.targets,events:l},r);return Do(e,"onScaleGroup",c),c}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isScale){this.dragControlEnd(e,t);var r=hn(e,this,"dragControlEnd",t);return Do(e,"onScaleGroupEnd",Oo(e,t,{targets:e.props.targets,events:r})),n}},request:function(){var e={},t=0,n=0;return{isControl:!0,requestStart:function(t){return{datas:e,parentDirection:t.direction||[1,1]}},request:function(r){return t+=r.deltaWidth,n+=r.deltaHeight,{datas:e,parentDist:[t,n],parentKeepRatio:r.keepRatio}},requestEnd:function(){return{datas:e,isDrag:!0}}}}};function Xo(e,t){return e.map((function(e,n){return r=e,o=t[n],(r*(a=2)+o*(i=1))/(i+a);var r,o,i,a}))}function $o(e,t,n){var r=$(e,t),o=$(e,n)-r;return o>=0?o:o+2*Math.PI}var Qo={name:"warpable",ableGroup:"size",props:{warpable:Boolean,renderDirections:Array},events:{onWarpStart:"warpStart",onWarp:"warp",onWarpEnd:"warpEnd"},render:function(e,t){var n=e.props,r=n.resizable,o=n.scalable,i=n.warpable,a=n.zoom;if(r||o||!i)return[];var s=e.state,u=s.pos1,l=s.pos2,c=s.pos3,f=s.pos4,d=Xo(u,l),p=Xo(l,u),h=Xo(u,c),g=Xo(c,u),v=Xo(c,f),m=Xo(f,c),y=Xo(l,f),b=Xo(f,l);return __spreadArray([t.createElement("div",{className:Hr("line"),key:"middeLine1",style:vo(d,v,a)}),t.createElement("div",{className:Hr("line"),key:"middeLine2",style:vo(p,m,a)}),t.createElement("div",{className:Hr("line"),key:"middeLine3",style:vo(h,y,a)}),t.createElement("div",{className:Hr("line"),key:"middeLine4",style:vo(g,b,a)})],mn(e,t),!0)},dragControlCondition:function(e,t){return!t.isRequest&&te(t.inputEvent.target,Hr("direction"))},dragControlStart:function(e,t){var n=t.datas,r=t.inputEvent,o=e.props.target,i=xo(r.target);if(!i||!o)return!1;var a=e.state,s=a.transformOrigin,u=a.is3d,l=a.targetTransform,c=a.targetMatrix,f=a.width,d=a.height,p=a.left,h=a.top;return n.datas={},n.targetTransform=l,n.warpTargetMatrix=u?c:ce(c,3,4),n.targetInverseMatrix=se(ue(n.warpTargetMatrix,4),3,4),n.direction=i,n.left=p,n.top=h,n.poses=[[0,0],[f,0],[0,d],[f,d]].map((function(e){return he(e,s)})),n.nextPoses=n.poses.map((function(e){var t=e[0],r=e[1];return ve(n.warpTargetMatrix,[t,r,0,1],4)})),n.startValue=Pe(4),n.prevMatrix=Pe(4),n.absolutePoses=Eo(a),n.posIndexes=Tr(i),Er(e,t),Nr(t,"matrix3d"),a.snapRenderInfo={request:t.isRequest,direction:i},!1!==Do(e,"onWarpStart",Co(e,t,Gt({set:function(e){n.startValue=e}},Ar(t))))&&(n.isWarp=!0),n.isWarp},dragControl:function(e,t){var n=t.datas,r=t.isRequest,o=t.distX,i=t.distY,a=n.targetInverseMatrix,s=n.prevMatrix,u=n.isWarp,l=n.startValue,c=n.poses,f=n.posIndexes,d=n.absolutePoses;if(!u)return!1;if(kr(t,"matrix3d"),Dn(e,"warpable")){var p=f.map((function(e){return d[e]}));p.length>1&&p.push([(p[0][0]+p[1][0])/2,(p[0][1]+p[1][1])/2]);var h=cr(e,r,{horizontal:p.map((function(e){return e[1]+i})),vertical:p.map((function(e){return e[0]+o}))}),g=h.horizontal,v=h.vertical;i-=g.offset,o-=v.offset}var m=Dr({datas:n,distX:o,distY:i},!0),y=n.nextPoses.slice();if(f.forEach((function(e){y[e]=pe(y[e],m)})),!en.every((function(e){return t=e.map((function(e){return c[e]})),n=e.map((function(e){return y[e]})),r=$o(t[0],t[1],t[2]),o=$o(n[0],n[1],n[2]),i=Math.PI,!(r>=i&&o<=i||r<=i&&o>=i);var t,n,r,o,i})))return!1;var b=je(c[0],c[2],c[1],c[3],y[0],y[2],y[1],y[3]);if(!b.length)return!1;var w=Or(n,de(a,b,4),!0),S=de(ue(s,4),w,4);n.prevMatrix=w;var x=de(l,w,4),_=Cr(n,"matrix3d(".concat(x.join(", "),")"),"matrix3d(".concat(w.join(", "),")"));return Br(t,_),Do(e,"onWarp",Co(e,t,{delta:S,matrix:x,dist:w,multiply:de,transform:_})),!0},dragControlEnd:function(e,t){var n=t.datas,r=t.isDrag;return!!n.isWarp&&(n.isWarp=!1,Do(e,"onWarpEnd",Oo(e,t,{})),r)}},Zo=Hr("area-pieces"),Jo=Hr("area-piece"),ei=Hr("avoid");function ti(e){var t=e.areaElement;if(t){var n=e.state,r=n.width,o=n.height;!function(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}(t,ei),t.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(o,"px")}}function ni(e){return e.createElement("div",{key:"area_pieces",className:Zo},e.createElement("div",{className:Jo}),e.createElement("div",{className:Jo}),e.createElement("div",{className:Jo}),e.createElement("div",{className:Jo}))}var ri={name:"dragArea",props:{dragArea:Boolean,passDragArea:Boolean},events:{onClick:"click",onClickGroup:"clickGroup"},render:function(e,t){var n=e.props,r=n.target,o=n.dragArea,i=n.groupable,a=n.passDragArea,s=e.state,u=s.width,l=s.height,c=s.renderPoses,f=a?Hr("area","pass"):Hr("area");if(i)return[t.createElement("div",{key:"area",ref:w(e,"areaElement"),className:f}),ni(t)];if(!r||!o)return[];var d=je([0,0],[u,0],[0,l],[u,l],c[0],c[1],c[2],c[3]),p=d.length?io(d,!0):"none";return[t.createElement("div",{key:"area",ref:w(e,"areaElement"),className:f,style:{top:"0px",left:"0px",width:"".concat(u,"px"),height:"".concat(l,"px"),transformOrigin:"0 0",transform:p}}),ni(t)]},dragStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY;if(!t.inputEvent)return!1;n.isDragArea=!1;var i,a,s=e.areaElement,u=e.state,l=u.moveableClientRect,c=u.renderPoses,f=u.rootMatrix,d=u.is3d,p=l.left,h=l.top,g=co(c),v=g.left,m=g.top,y=g.width,b=g.height,w=Ao(f,[r-p,o-h],d?4:3),S=w[0],x=w[1],_=[{left:v,top:m,width:y,height:(x-=m)-10},{left:v,top:m,width:(S-=v)-10,height:b},{left:v,top:m+x+10,width:y,height:b-x-10},{left:v+S+10,top:m,width:y-S-10,height:b}],E=[].slice.call(s.nextElementSibling.children);_.forEach((function(e,t){E[t].style.cssText="left: ".concat(e.left,"px;top: ").concat(e.top,"px; width: ").concat(e.width,"px; height: ").concat(e.height,"px;")})),a=ei,(i=s).classList?i.classList.add(a):i.className+=" "+a,u.disableNativeEvent=!0},drag:function(e,t){var n=t.datas,r=t.inputEvent;if(this.enableNativeEvent(e),!r)return!1;n.isDragArea||(n.isDragArea=!0,ti(e))},dragEnd:function(e,t){this.enableNativeEvent(e);var n=t.inputEvent,r=t.datas;if(!n)return!1;r.isDragArea||ti(e)},dragGroupStart:function(e,t){return this.dragStart(e,t)},dragGroup:function(e,t){return this.drag(e,t)},dragGroupEnd:function(e,t){return this.dragEnd(e,t)},unset:function(e){ti(e),e.state.disableNativeEvent=!1},enableNativeEvent:function(e){var t=e.state;t.disableNativeEvent&&q((function(){t.disableNativeEvent=!1}))}},oi=Yt("origin",{render:function(e,t){var n=e.props.zoom,r=e.state,o=r.beforeOrigin,i=r.rotation;return[t.createElement("div",{className:Hr("control","origin"),style:mo(i,n,o),key:"beforeOrigin"})]}});function ii(e){var t=e.scrollContainer;return[t.scrollLeft,t.scrollTop]}var ai={name:"scrollable",canPinch:!0,props:{scrollable:Boolean,scrollContainer:Object,scrollThreshold:Number,getScrollPosition:Function},events:{onScroll:"scroll",onScrollGroup:"scrollGroup"},dragRelation:"strong",dragStart:function(e,t){var n=e.props.scrollContainer,r=void 0===n?e.getContainer():n,o=new _t,i=Ko(r,!0);t.datas.dragScroll=o;var a=t.isControl?"controlGesto":"targetGesto",s=t.targets;o.on("scroll",(function(n){var r=n.container,o=n.direction,i=Co(e,t,{scrollContainer:r,direction:o}),a=s?"onScrollGroup":"onScroll";s&&(i.targets=s),Do(e,a,i)})).on("move",(function(n){var r=n.offsetX,o=n.offsetY;e[a].scrollBy(r,o,t.inputEvent,!1)})),o.dragStart(t,{container:i})},checkScroll:function(e,t){var n=t.datas.dragScroll;if(n){var r=e.props,o=r.scrollContainer,i=void 0===o?e.getContainer():o,a=r.scrollThreshold,s=void 0===a?0:a,u=r.getScrollPosition,l=void 0===u?ii:u;return n.drag(t,{container:i,threshold:s,getScrollPosition:function(e){return l({scrollContainer:e.container,direction:e.direction})}}),!0}},drag:function(e,t){return this.checkScroll(e,t)},dragEnd:function(e,t){t.datas.dragScroll.dragEnd(),t.datas.dragScroll=null},dragControlStart:function(e,t){return this.dragStart(e,Gt(Gt({},t),{isControl:!0}))},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupStart:function(e,t){return this.dragStart(e,Gt(Gt({},t),{targets:e.props.targets}))},dragGroup:function(e,t){return this.drag(e,Gt(Gt({},t),{targets:e.props.targets}))},dragGroupEnd:function(e,t){return this.dragEnd(e,Gt(Gt({},t),{targets:e.props.targets}))},dragGroupControlStart:function(e,t){return this.dragStart(e,Gt(Gt({},t),{targets:e.props.targets,isControl:!0}))},dragGroupContro:function(e,t){return this.drag(e,Gt(Gt({},t),{targets:e.props.targets}))},dragGroupControEnd:function(e,t){return this.dragEnd(e,Gt(Gt({},t),{targets:e.props.targets}))}},si={name:"",props:{target:Object,dragTarget:Object,container:Object,portalContainer:Object,rootContainer:Object,useResizeObserver:Boolean,zoom:Number,transformOrigin:Array,edge:Boolean,ables:Array,className:String,pinchThreshold:Number,pinchOutside:Boolean,triggerAblesSimultaneously:Boolean,checkInput:Boolean,cspNonce:String,translateZ:Number,hideDefaultLines:Boolean,props:Object,flushSync:Function},events:{}},ui=Yt("padding",{render:function(e,t){var n=e.props;if(n.dragArea)return[];var r=n.padding||{},o=r.left,i=void 0===o?0:o,a=r.top,s=void 0===a?0:a,u=r.right,l=void 0===u?0:u,c=r.bottom,f=void 0===c?0:c,d=e.state,p=d.renderPoses,h=[d.pos1,d.pos2,d.pos3,d.pos4],g=[];return i>0&&g.push([0,2]),s>0&&g.push([0,1]),l>0&&g.push([1,3]),f>0&&g.push([2,3]),g.map((function(e,n){var r=e[0],o=e[1],i=je([0,0],[100,0],[0,100],[100,100],h[r],h[o],p[r],p[o]);if(i.length)return t.createElement("div",{key:"padding".concat(n),className:Hr("padding"),style:{transform:io(i,!0)}})}))}}),li=["nw","ne","se","sw"];function ci(e,t){var n=e[0]+e[1],r=n>t?t/n:1;return e[0]*=r,e[1]=t-e[1]*r,e}var fi=[1,2,5,6],di=[0,3,4,7],pi=[1,-1,-1,1],hi=[1,1,-1,-1];function gi(e,t,n,r,o,i,a,s,u){void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=r),void 0===u&&(u=o);var l=[],c=!1,f=e.map((function(e,f){var d=t[f],p=d.horizontal,h=d.vertical;if(h&&!c&&(c=!0,l.push("/")),c){var g=Math.max(0,1===h?e[1]-a:u-e[1]);return l.push(Bo(g,o,n)),g}g=Math.max(0,1===p?e[0]-i:s-e[0]);return l.push(Bo(g,r,n)),g}));return{styles:l,raws:f}}function vi(e){for(var t=[0,0],n=[0,0],r=e.length,o=0;o<r;++o){var i=e[o];i.sub&&(i.horizontal&&(0===t[1]&&(t[0]=o),t[1]=o-t[0]+1,n[0]=o+1),i.vertical&&(0===n[1]&&(n[0]=o),n[1]=o-n[0]+1))}return{horizontalRange:t,verticalRange:n}}function mi(e,t,n,r,o,i){var a,s,u,l;void 0===i&&(i=[0,0]);var c=e.indexOf("/"),f=(c>-1?e.slice(0,c):e).length,d=e.slice(0,f),p=e.slice(f+1),h=d[0],g=void 0===h?"0px":h,v=d[1],m=void 0===v?g:v,y=d[2],b=void 0===y?g:y,w=d[3],S=void 0===w?m:w,x=p[0],_=void 0===x?g:x,E=p[1],k=void 0===E?_:E,C=p[2],O=void 0===C?_:C,M=p[3],D=void 0===M?k:M,T=[g,m,b,S].map((function(e){return G(e,t)})),P=[_,k,O,D].map((function(e){return G(e,n)})),R=T.slice(),I=P.slice();a=ci([R[0],R[1]],t),R[0]=a[0],R[1]=a[1],s=ci([R[3],R[2]],t),R[3]=s[0],R[2]=s[1],u=ci([I[0],I[3]],n),I[0]=u[0],I[3]=u[1],l=ci([I[1],I[2]],n),I[1]=l[0],I[2]=l[1];var A=R.slice(0,Math.max(i[0],d.length)),N=I.slice(0,Math.max(i[1],p.length));return __spreadArray(__spreadArray([],A.map((function(e,t){var i=li[t];return{horizontal:pi[t],vertical:0,pos:[r+e,o+(-1===hi[t]?n:0)],sub:!0,raw:T[t],direction:i}})),!0),N.map((function(e,n){var i=li[n];return{horizontal:0,vertical:hi[n],pos:[r+(-1===pi[n]?t:0),o+e],sub:!0,raw:P[n],direction:i}})),!0)}function yi(e,t,n,r,o){void 0===o&&(o=t.length);var i=vi(e.slice(r)),a=i.horizontalRange,s=i.verticalRange,u=n-r,l=0;if(0===u)l=o;else if(u>0&&u<a[1])l=a[1]-u;else{if(!(u>=s[0]))return;l=s[0]+s[1]-u}e.splice(n,l),t.splice(n,l)}function bi(e,t,n,r,o,i,a,s,u,l,c){void 0===l&&(l=0),void 0===c&&(c=0);var f=vi(e.slice(n)),d=f.horizontalRange,p=f.verticalRange;if(r>-1)for(var h=1===pi[r]?i-l:s-i,g=d[1];g<=r;++g){var v=1===hi[g]?c:u,m=0;if(r===g?m=i:0===g?m=l+h:-1===pi[g]&&(m=s-(t[n][0]-l)),e.splice(n+g,0,{horizontal:pi[g],vertical:0,pos:[m,v]}),t.splice(n+g,0,[m,v]),0===g)break}else if(o>-1){var y=1===hi[o]?a-c:u-a;if(0===d[1]&&0===p[1]){var b=[l+y,c];e.push({horizontal:pi[0],vertical:0,pos:b}),t.push(b)}var w=p[0];for(g=p[1];g<=o;++g){m=1===pi[g]?l:s,v=0;if(o===g?v=a:0===g?v=c+y:1===hi[g]?v=t[n+w][1]:-1===hi[g]&&(v=u-(t[n+w][1]-c)),e.push({horizontal:0,vertical:hi[g],pos:[m,v]}),t.push([m,v]),0===g)break}}}function wi(e,t){return void 0===t&&(t=e.map((function(e){return e.raw}))),{horizontals:e.map((function(e,n){return e.horizontal?t[n]:null})).filter((function(e){return null!=e})),verticals:e.map((function(e,n){return e.vertical?t[n]:null})).filter((function(e){return null!=e}))}}var xi=[[0,-1,"n"],[1,0,"e"]],_i=[[-1,-1,"nw"],[0,-1,"n"],[1,-1,"ne"],[1,0,"e"],[1,1,"se"],[0,1,"s"],[-1,1,"sw"],[-1,0,"w"]];function Ei(e,t,n){var r=e.props.clipRelative,o=e.state,i=o.width,a=o.height,s=t,u=s.type,l=s.poses,c="rect"===u,f="circle"===u;if("polygon"===u)return n.map((function(e){return"".concat(Bo(e[0],i,r)," ").concat(Bo(e[1],a,r))}));if(c||"inset"===u){var d=n[1][1],p=n[3][0],h=n[7][0],g=n[5][1];if(c)return[d,p,g,h].map((function(e){return"".concat(e,"px")}));var v=[d,i-p,a-g,h].map((function(e,t){return Bo(e,t%2?i:a,r)}));if(n.length>8){var m=he(n[4],n[0]),y=m[0],b=m[1];v.push.apply(v,__spreadArray(["round"],gi(n.slice(8),l.slice(8),r,y,b,h,d,p,g).styles,!1))}return v}if(f||"ellipse"===u){var w=n[0],S=Bo(Math.abs(n[1][1]-w[1]),f?Math.sqrt((i*i+a*a)/2):a,r);return(v=f?[S]:[Bo(Math.abs(n[2][0]-w[0]),i,r),S]).push("at",Bo(w[0],i,r),Bo(w[1],a,r)),v}}function ki(e,t,n,r){var o=[r,(r+t)/2,t],i=[e,(e+n)/2,n];return _i.map((function(e){var t=e[0],n=e[1],r=e[2],a=o[t+1],s=i[n+1];return{vertical:Math.abs(n),horizontal:Math.abs(t),direction:r,pos:[a,s]}}))}function Ci(e){var t=[1/0,-1/0],n=[1/0,-1/0];return e.forEach((function(e){var r=e.pos;t[0]=Math.min(t[0],r[0]),t[1]=Math.max(t[1],r[0]),n[0]=Math.min(n[0],r[1]),n[1]=Math.max(n[1],r[1])})),[Math.abs(t[1]-t[0]),Math.abs(n[1]-n[0])]}function Oi(e,t,n,r,o){var i,a,s,u,l,c,f,d=o;if(!d){var p=To(e),h=p.clipPath;d="none"!==h?h:p.clip}if(d&&"none"!==d&&"auto"!==d||(d=r)){var g=F(d),v=g.prefix,m=void 0===v?d:v,y=g.value,b=void 0===y?"":y,w="circle"===m,S=" ";if("polygon"===m){S=",";var x=(O=B(b||"0% 0%, 100% 0%, 100% 100%, 0% 100%")).map((function(e){var r=e.split(" "),o=r[0],i=r[1];return{vertical:1,horizontal:1,pos:[G(o,t),G(i,n)]}}));return{type:m,clipText:d,poses:x,splitter:S}}if(w||"ellipse"===m){var _="",E="",k=0,C=0,O=L(b);if(w){var M;M=void 0===(i=O[0])?"50%":i,_=void 0===(a=O[2])?"50%":a,E=void 0===(s=O[3])?"50%":s,k=G(M,Math.sqrt((t*t+n*n)/2)),C=k}else{var D,T;D=void 0===(u=O[0])?"50%":u,T=void 0===(l=O[1])?"50%":l,_=void 0===(c=O[3])?"50%":c,E=void 0===(f=O[4])?"50%":f,k=G(D,t),C=G(T,n)}var P=[G(_,t),G(E,n)];x=__spreadArray([{vertical:1,horizontal:1,pos:P,direction:"nesw"}],xi.slice(0,w?1:2).map((function(e){return{vertical:Math.abs(e[1]),horizontal:e[0],direction:e[2],sub:!0,pos:[P[0]+e[0]*k,P[1]+e[1]*C]}})),!0);return{type:m,clipText:d,radiusX:k,radiusY:C,left:P[0]-k,top:P[1]-C,poses:x,splitter:S}}if("inset"===m){var R=(O=L(b||"0 0 0 0")).indexOf("round"),I=(R>-1?O.slice(0,R):O).length,A=O.slice(I+1),N=O.slice(0,I),j=N[0],K=N[1],U=void 0===K?j:K,q=N[2],W=void 0===q?j:q,H=N[3],Y=void 0===H?U:H,V=[j,W].map((function(e){return G(e,n)})),X=V[0],$=V[1],Q=[Y,U].map((function(e){return G(e,t)})),Z=Q[0],J=Q[1],ee=t-J,te=n-$,ne=mi(A,ee-Z,te-X,Z,X);return{type:"inset",clipText:d,poses:x=__spreadArray(__spreadArray([],ki(X,ee,te,Z),!0),ne,!0),top:X,left:Z,right:ee,bottom:te,radius:A,splitter:S}}if("rect"===m){S=",";var re=(O=B(b||"0px, ".concat(t,"px, ").concat(n,"px, 0px"))).map((function(e){return z(e).value}));return{type:"rect",clipText:d,poses:x=ki(X=re[0],J=re[1],$=re[2],Z=re[3]),top:X,right:J,bottom:$,left:Z,values:O,splitter:S}}}}var Di={name:"clippable",props:{clippable:Boolean,defaultClipPath:String,customClipPath:String,keepRatio:Boolean,clipRelative:Boolean,clipArea:Boolean,dragWithClip:Boolean,clipTargetBounds:Boolean,clipVerticalGuidelines:Array,clipHorizontalGuidelines:Array,clipSnapThreshold:Boolean},events:{onClipStart:"clipStart",onClip:"clip",onClipEnd:"clipEnd"},css:[".control.clip-control {\n background: #6d6;\n cursor: pointer;\n}\n.control.clip-control.clip-radius {\n background: #d66;\n}\n.line.clip-line {\n background: #6e6;\n cursor: move;\n z-index: 1;\n}\n.clip-area {\n position: absolute;\n top: 0;\n left: 0;\n}\n.clip-ellipse {\n position: absolute;\n cursor: move;\n border: 1px solid #6d6;\n border: var(--zoompx) solid #6d6;\n border-radius: 50%;\n transform-origin: 0px 0px;\n}",":host {\n --bounds-color: #d66;\n}",".guideline {\n pointer-events: none;\n z-index: 2;\n}",".line.guideline.bounds {\n background: #d66;\n background: var(--bounds-color);\n}"],render:function(e,t){var n=e.props,r=n.customClipPath,o=n.defaultClipPath,i=n.clipArea,a=n.zoom,s=e.state,u=s.target,l=s.width,c=s.height,f=s.allMatrix,d=s.is3d,p=s.left,h=s.top,g=s.pos1,v=s.pos2,m=s.pos3,y=s.pos4,b=s.clipPathState,w=s.snapBoundInfos,S=s.rotation;if(!u)return[];var x=Oi(u,l,c,o||"inset",b||r);if(!x)return[];var _=d?4:3,E=x.type,k=x.poses.map((function(e){var t=uo(f,e.pos,_);return[t[0]-p,t[1]-h]})),C=[],O=[],M="rect"===E,D="inset"===E,T="polygon"===E;if(M||D||T){var P=D?k.slice(0,8):k;O=P.map((function(e,n){var r=0===n?P[P.length-1]:P[n-1],o=$(r,e),i=go(r,e);return t.createElement("div",{key:"clipLine".concat(n),className:Hr("line","clip-line","snap-control"),"data-clip-index":n,style:{width:"".concat(i,"px"),transform:"translate(".concat(r[0],"px, ").concat(r[1],"px) rotate(").concat(o,"rad) scaleY(").concat(a,")")}})}))}if(C=k.map((function(e,n){return t.createElement("div",{key:"clipControl".concat(n),className:Hr("control","clip-control","snap-control"),"data-clip-index":n,style:{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(S,"rad) scale(").concat(a,")")}})})),D&&C.push.apply(C,k.slice(8).map((function(e,n){return t.createElement("div",{key:"clipRadiusControl".concat(n),className:Hr("control","clip-control","clip-radius","snap-control"),"data-clip-index":8+n,style:{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(S,"rad) scale(").concat(a,")")}})}))),"circle"===E||"ellipse"===E){var R=x.left,I=x.top,A=x.radiusX,N=x.radiusY,L=he(uo(f,[R,I],_),uo(f,[0,0],_)),B=L[0],F=L[1],z="none";if(!i){for(var j=Math.max(10,A/5,N/5),K=[],U=0;U<=j;++U){var q=2*Math.PI/j*U;K.push([A+(A-a)*Math.cos(q),N+(N-a)*Math.sin(q)])}K.push([A,-2]),K.push([-2,-2]),K.push([-2,2*N+2]),K.push([2*A+2,2*N+2]),K.push([2*A+2,-2]),K.push([A,-2]),z="polygon(".concat(K.map((function(e){return"".concat(e[0],"px ").concat(e[1],"px")})).join(", "),")")}C.push(t.createElement("div",{key:"clipEllipse",className:Hr("clip-ellipse","snap-control"),style:{width:"".concat(2*A,"px"),height:"".concat(2*N,"px"),clipPath:z,transform:"translate(".concat(-p+B,"px, ").concat(-h+F,"px) ").concat(io(f))}}))}if(i){var W=co(__spreadArray([g,v,m,y],k,!0)),H=W.width,G=W.height,Y=W.left,V=W.top;if(T||M||D){K=D?k.slice(0,8):k;C.push(t.createElement("div",{key:"clipArea",className:Hr("clip-area","snap-control"),style:{width:"".concat(H,"px"),height:"".concat(G,"px"),transform:"translate(".concat(Y,"px, ").concat(V,"px)"),clipPath:"polygon(".concat(K.map((function(e){return"".concat(e[0]-Y,"px ").concat(e[1]-V,"px")})).join(", "),")")}}))}}return w&&["vertical","horizontal"].forEach((function(e){var n=w[e],r="horizontal"===e;n.isSnap&&O.push.apply(O,n.snap.posInfos.map((function(n,o){var i=n.pos,s=he(uo(f,r?[0,i]:[i,0],_),[p,h]),u=he(uo(f,r?[l,i]:[i,c],_),[p,h]);return vn(t,"",s,u,a,"clip".concat(e,"snap").concat(o),"guideline")}))),n.isBound&&O.push.apply(O,n.bounds.map((function(n,o){var i=n.pos,s=he(uo(f,r?[0,i]:[i,0],_),[p,h]),u=he(uo(f,r?[l,i]:[i,c],_),[p,h]);return vn(t,"",s,u,a,"clip".concat(e,"bounds").concat(o),"guideline","bounds","bold")})))})),__spreadArray(__spreadArray([],C,!0),O,!0)},dragControlCondition:function(e,t){return t.inputEvent&&(t.inputEvent.target.getAttribute("class")||"").indexOf("clip")>-1},dragStart:function(e,t){var n=e.props.dragWithClip;return!(void 0===n||n)&&this.dragControlStart(e,t)},drag:function(e,t){return this.dragControl(e,Gt(Gt({},t),{isDragTarget:!0}))},dragEnd:function(e,t){return this.dragControlEnd(e,t)},dragControlStart:function(e,t){var n=e.state,r=e.props,o=r.defaultClipPath,i=r.customClipPath,a=n.target,s=n.width,u=n.height,l=t.inputEvent?t.inputEvent.target:null,c=l&&l.getAttribute("class")||"",f=t.datas,d=Oi(a,s,u,o||"inset",i);if(!d)return!1;var p=d.clipText;return!1===Do(e,"onClipStart",Co(e,t,{clipType:d.type,clipStyle:p,poses:d.poses.map((function(e){return e.pos}))}))?(f.isClipStart=!1,!1):(f.isControl=c&&c.indexOf("clip-control")>-1,f.isLine=c.indexOf("clip-line")>-1,f.isArea=c.indexOf("clip-area")>-1||c.indexOf("clip-ellipse")>-1,f.clipIndex=l?parseInt(l.getAttribute("data-clip-index"),10):-1,f.clipPath=d,f.isClipStart=!0,n.clipPathState=p,Er(e,t),!0)},dragControl:function(e,t){var n,r=t.datas,o=t.originalDatas,i=t.isDragTarget;if(!r.isClipStart)return!1;var a=r,s=a.isControl,u=a.isLine,l=a.isArea,c=a.clipIndex,f=a.clipPath;if(!f)return!1;var d=e.props.keepRatio,p=0,h=0,g=o.draggable,v=Dr(t);i&&g?(n=g.prevBeforeDist,p=n[0],h=n[1]):(p=v[0],h=v[1]);var m=[p,h],y=e.props,b=e.state,w=b.width,S=b.height,x=!l&&!s&&!u,_=f.type,E=f.poses,k=f.splitter,C=E.map((function(e){return e.pos}));x&&(p=-p,h=-h);var O=!s||"nesw"===E[c].direction,M="inset"===_||"rect"===_,D=E.map((function(){return[0,0]}));if(s&&!O){var T=E[c],P=T.horizontal,R=T.vertical,I=[p*Math.abs(P),h*Math.abs(R)];D=function(e,t,n,r,o){var i=e[t],a=i.direction,s=i.sub,u=e.map((function(){return[0,0]})),l=a?a.split(""):[];if(r&&t<8){var c=l.filter((function(e){return"w"===e||"e"===e})),f=l.filter((function(e){return"n"===e||"s"===e})),d=c[0],p=f[0];u[t]=n;var h=Ci(e),g=h[0],v=h[1],m=g&&v?g/v:0;if(m&&o){var y=e[(t+4)%8].pos,b=[0,0];a.indexOf("w")>-1?b[0]=-1:a.indexOf("e")>-1&&(b[0]=1),a.indexOf("n")>-1?b[1]=-1:a.indexOf("s")>-1&&(b[1]=1);var w=Wo([g,v],n,m,b,!0),S=g+w[0],x=v+w[1],_=y[1],E=y[1],k=y[0],C=y[0];-1===b[0]?k=C-S:1===b[0]?C=k+S:(k-=S/2,C+=S/2),-1===b[1]?_=E-x:E=1===b[1]?_+x:(_=E-x/2)+x;var O=ki(_,C,E,k);e.forEach((function(e,t){u[t][0]=O[t].pos[0]-e.pos[0],u[t][1]=O[t].pos[1]-e.pos[1]}))}else e.forEach((function(e,t){var r=e.direction;r&&(r.indexOf(d)>-1&&(u[t][0]=n[0]),r.indexOf(p)>-1&&(u[t][1]=n[1]))})),d&&(u[1][0]=n[0]/2,u[5][0]=n[0]/2),p&&(u[3][1]=n[1]/2,u[7][1]=n[1]/2)}else a&&!s?l.forEach((function(t){var r="n"===t||"s"===t;e.forEach((function(e,o){var i=e.direction,a=e.horizontal,s=e.vertical;i&&-1!==i.indexOf(t)&&(u[o]=[r||!a?0:n[0],r&&s?n[1]:0])}))})):u[t]=n;return u}(E,c,I,M,d)}else O&&(D=C.map((function(){return[p,h]})));var A=C.map((function(e,t){return pe(e,D[t])})),N=__spreadArray([],A,!0);b.snapBoundInfos=null;var L="circle"===f.type,B="ellipse"===f.type;if(L||B){var F=co(A),z=Math.abs(F.bottom-F.top),j=Math.abs(B?F.right-F.left:z),K=A[0][1]+z,U=A[0][0]-j,q=A[0][0]+j;L&&(N.push([q,F.bottom]),D.push([1,0])),N.push([F.left,K]),D.push([0,1]),N.push([U,F.bottom]),D.push([1,0])}var W=Rn((y.clipHorizontalGuidelines||[]).map((function(e){return G("".concat(e),S)})),(y.clipVerticalGuidelines||[]).map((function(e){return G("".concat(e),w)})),w,S),H=[],Y=[];if(L||B)H=[N[4][0],N[2][0]],Y=[N[1][1],N[3][1]];else if(M){var V=[N[0],N[2],N[4],N[6]],X=[D[0],D[2],D[4],D[6]];H=V.filter((function(e,t){return X[t][0]})).map((function(e){return e[0]})),Y=V.filter((function(e,t){return X[t][1]})).map((function(e){return e[1]}))}else H=N.filter((function(e,t){return D[t][0]})).map((function(e){return e[0]})),Y=N.filter((function(e,t){return D[t][1]})).map((function(e){return e[1]}));var $=[0,0],Q=fr(W,y.clipTargetBounds&&{left:0,top:0,right:w,bottom:S},H,Y,5),Z=Q.horizontal,J=Q.vertical,ee=Z.offset,te=J.offset;if(Z.isBound&&($[1]+=ee),J.isBound&&($[0]+=te),(B||L)&&0===D[0][0]&&0===D[0][1]){var ne=(F=co(A)).bottom-F.top,re=B?F.right-F.left:ne;re-=J.isBound?Math.abs(te):0===J.snapIndex?-te:te,ne-=Z.isBound?Math.abs(ee):0===Z.snapIndex?-ee:ee,L&&(re=ne=Kn(J,Z)>0?ne:re);var oe=N[0];N[1][1]=oe[1]-ne,N[2][0]=oe[0]+re,N[3][1]=oe[1]+ne,N[4][0]=oe[0]-re}else if(M&&d&&s){var ie=Ci(E),ae=ie[0],se=ie[1],ue=ae&&se?ae/se:0,le=E[c].direction||"",ce=N[1][1];K=N[5][1],U=N[7][0],q=N[3][0];ee<=te?ee=te/ue:te=ee*ue,le.indexOf("w")>-1?U-=te:le.indexOf("e")>-1?q-=te:(U+=te/2,q-=te/2),le.indexOf("n")>-1?ce-=ee:le.indexOf("s")>-1?K-=ee:(ce+=ee/2,K-=ee/2);var fe=ki(ce,q,K,U);N.forEach((function(e,t){var n;n=fe[t].pos,e[0]=n[0],e[1]=n[1]}))}else N.forEach((function(e,t){var n=D[t];n[0]&&(e[0]-=te),n[1]&&(e[1]-=ee)}));var he=Ei(e,f,A),ge="".concat(_,"(").concat(he.join(k),")");if(b.clipPathState=ge,L||B)H=[N[4][0],N[2][0]],Y=[N[1][1],N[3][1]];else if(M){H=(V=[N[0],N[2],N[4],N[6]]).map((function(e){return e[0]})),Y=V.map((function(e){return e[1]}))}else H=N.map((function(e){return e[0]})),Y=N.map((function(e){return e[1]}));if(b.snapBoundInfos=fr(W,y.clipTargetBounds&&{left:0,top:0,right:w,bottom:S},H,Y,1),g){var ve=b.is3d,me=b.allMatrix,ye=ve?4:3,be=$;i&&(be=[m[0]+$[0]-v[0],m[1]+$[1]-v[1]]),g.deltaOffset=de(me,[be[0],be[1],0,0],ye)}return Do(e,"onClip",Co(e,t,{clipEventType:"changed",clipType:_,poses:A,clipStyle:ge,clipStyles:he,distX:p,distY:h})),!0},dragControlEnd:function(e,t){this.unset(e);var n=t.isDrag,r=t.datas,o=t.isDouble,i=r.isLine,a=r.isClipStart,s=r.isControl;return!!a&&(Do(e,"onClipEnd",Oo(e,t,{})),o&&(s?function(e,t){var n=t.datas,r=n.clipPath,o=n.clipIndex,i=r,a=i.type,s=i.poses,u=i.splitter,l=s.map((function(e){return e.pos})),c=l.length;if("polygon"===a)s.splice(o,1),l.splice(o,1);else{if("inset"!==a)return;if(o<8)return;if(yi(s,l,o,8,c),c===s.length)return}var f=Ei(e,r,l);Do(e,"onClip",Co(e,t,{clipEventType:"removed",clipType:a,poses:l,clipStyles:f,clipStyle:"".concat(a,"(").concat(f.join(u),")"),distX:0,distY:0}))}(e,t):i&&function(e,t){var n=_r(e,t),r=n[0],o=n[1],i=t.datas,a=i.clipPath,s=i.clipIndex,u=a,l=u.type,c=u.poses,f=u.splitter,d=c.map((function(e){return e.pos}));if("polygon"===l)d.splice(s,0,[r,o]);else{if("inset"!==l)return;var p=fi.indexOf(s),h=di.indexOf(s),g=c.length;if(bi(c,d,8,p,h,r,o,d[4][0],d[4][1],d[0][0],d[0][1]),g===c.length)return}var v=Ei(e,a,d);Do(e,"onClip",Co(e,t,{clipEventType:"added",clipType:l,poses:d,clipStyles:v,clipStyle:"".concat(l,"(").concat(v.join(f),")"),distX:0,distY:0}))}(e,t)),o||n)},unset:function(e){e.state.clipPathState="",e.state.snapBoundInfos=null}},Ti={name:"originDraggable",props:{originDraggable:Boolean,originRelative:Boolean},events:{onDragOriginStart:"dragOriginStart",onDragOrigin:"dragOrigin",onDragOriginEnd:"dragOriginEnd"},css:[":host[data-able-origindraggable] .control.origin {\n pointer-events: auto;\n}"],dragControlCondition:function(e,t){return t.isRequest?"originDraggable"===t.requestAble:te(t.inputEvent.target,Hr("origin"))},dragControlStart:function(e,t){var n=t.datas;Er(e,t);var r=Co(e,t,{dragStart:xr.dragStart(e,(new fn).dragStart([0,0],t))}),o=Do(e,"onDragOriginStart",r);return n.startOrigin=e.state.transformOrigin,n.startTargetOrigin=e.state.targetOrigin,n.prevOrigin=[0,0],n.isDragOrigin=!0,!1===o?(n.isDragOrigin=!1,!1):r},dragControl:function(e,t){var n=t.datas,r=t.isPinch,o=t.isRequest;if(!n.isDragOrigin)return!1;var i=Dr(t),a=i[0],s=i[1],u=e.state,l=u.width,c=u.height,f=u.offsetMatrix,d=u.targetMatrix,p=u.is3d,h=e.props.originRelative,g=void 0===h||h,v=p?4:3,m=[a,s];if(o){var y=t.distOrigin;(y[0]||y[1])&&(m=y)}var b=pe(n.startOrigin,m),w=pe(n.startTargetOrigin,m),S=he(m,n.prevOrigin),x=Ir(f,d,b,v),_=e.getRect(),E=co(lo(x,l,c,v)),k=[_.left-E.left,_.top-E.top];n.prevOrigin=m;var C=Co(e,t,{width:l,height:c,origin:b,dist:m,delta:S,transformOrigin:[Bo(w[0],l,g),Bo(w[1],c,g)].join(" "),drag:xr.drag(e,cn(t,e.state,k,!!r,!1))});return Do(e,"onDragOrigin",C),C},dragControlEnd:function(e,t){return!!t.datas.isDragOrigin&&(Do(e,"onDragOriginEnd",Oo(e,t,{})),!0)},dragGroupControlCondition:function(e,t){return this.dragControlCondition(e,t)},dragGroupControlStart:function(e,t){return!!this.dragControlStart(e,t)},dragGroupControl:function(e,t){var n=this.dragControl(e,t);return!!n&&(e.transformOrigin=n.transformOrigin,!0)},request:function(e){var t={},n=e.getRect(),r=0,o=0,i=n.transformOrigin,a=[0,0];return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaOrigin"in e?(a[0]+=e.deltaOrigin[0],a[1]+=e.deltaOrigin[1]):"origin"in e?(a[0]=e.origin[0]-i[0],a[1]=e.origin[1]-i[1]):("x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY)),{datas:t,distX:r,distY:o,distOrigin:a}},requestEnd:function(){return{datas:t,isDrag:!0}}}}};function Ri(e,t,n,r,o){var i;void 0===r&&(r=[0,0]);if(o)i=o;else{var a=To(e);i=a&&a.borderRadius||""}return mi(!i||!o&&"0px"===i?[]:L(i),t,n,0,0,r)}function Bi(e,t,n,r,o,i){var a=e.state,s=a.width,u=a.height,l=gi(i,o,e.props.roundRelative,s,u),c=l.raws,f=l.styles,d=wi(o,c),p=d.horizontals,h=d.verticals,g=f.join(" ");a.borderRadiusState=g,Do(e,"onRound",Co(e,t,{horizontals:p,verticals:h,borderRadius:g,width:s,height:u,delta:r,dist:n}))}var zi={name:"roundable",props:{roundable:Boolean,roundRelative:Boolean,minRoundControls:Array,maxRoundControls:Array,roundClickable:Boolean},events:{onRoundStart:"roundStart",onRound:"round",onRoundEnd:"roundEnd"},css:[".control.border-radius {\n background: #d66;\n cursor: pointer;\n}",":host[data-able-roundable] .line.direction {\n cursor: pointer;\n}"],render:function(e,t){var n=e.state,r=n.target,o=n.width,i=n.height,a=n.allMatrix,s=n.is3d,u=n.left,l=n.top,c=n.borderRadiusState,f=e.props,d=f.minRoundControls,p=void 0===d?[0,0]:d,h=f.maxRoundControls,g=void 0===h?[4,4]:h,v=f.zoom;if(!r)return null;var m=s?4:3,y=Ri(r,o,i,p,c);if(!y)return null;var b=0,w=0;return y.map((function(e,n){w+=Math.abs(e.horizontal),b+=Math.abs(e.vertical);var r=he(uo(a,e.pos,m),[u,l]),o=e.vertical?b<=g[1]:w<=g[0];return t.createElement("div",{key:"borderRadiusControl".concat(n),className:Hr("control","border-radius"),"data-radius-index":n,style:{display:o?"block":"none",transform:"translate(".concat(r[0],"px, ").concat(r[1],"px) scale(").concat(v,")")}})}))},dragControlCondition:function(e,t){if(!t.inputEvent||t.isRequest)return!1;var n=t.inputEvent.target.getAttribute("class")||"";return n.indexOf("border-radius")>-1||n.indexOf("moveable-line")>-1&&n.indexOf("moveable-direction")>-1},dragControlStart:function(e,t){var n=t.inputEvent,r=t.datas,o=n.target,i=o.getAttribute("class")||"",a=i.indexOf("border-radius")>-1,s=i.indexOf("moveable-line")>-1&&i.indexOf("moveable-direction")>-1,u=a?parseInt(o.getAttribute("data-radius-index"),10):-1,l=s?parseInt(o.getAttribute("data-line-index"),10):-1;if(!a&&!s)return!1;if(!1===Do(e,"onRoundStart",Co(e,t,{})))return!1;r.lineIndex=l,r.controlIndex=u,r.isControl=a,r.isLine=s,Er(e,t);var c=e.props,f=c.roundRelative,d=c.minRoundControls,p=void 0===d?[0,0]:d,h=e.state,g=h.target,v=h.width,m=h.height;r.isRound=!0,r.prevDist=[0,0];var y=Ri(g,v,m,p)||[];return r.controlPoses=y,h.borderRadiusState=gi(y.map((function(e){return e.pos})),y,f,v,m).styles.join(" "),!0},dragControl:function(e,t){var n=t.datas;if(!n.isRound||!n.isControl||!n.controlPoses.length)return!1;var r=n.controlIndex,o=n.controlPoses,i=Dr(t),a=i[0],s=i[1],u=[a,s],l=he(u,n.prevDist),c=e.props.maxRoundControls,f=void 0===c?[4,4]:c,d=e.state,p=d.width,h=d.height,g=o[r],v=g.vertical,m=g.horizontal,y=o.map((function(e){var t=e.horizontal,n=e.vertical,r=[t*m*u[0],n*v*u[1]];if(t){if(1===f[0])return r;if(f[0]<4&&t!==m)return r}else{if(0===f[1])return r[1]=n*m*u[0]/p*h,r;if(v){if(1===f[1])return r;if(f[1]<4&&n!==v)return r}}return[0,0]}));y[r]=u;var b=o.map((function(e,t){return pe(e.pos,y[t])}));return n.prevDist=[a,s],Bi(e,t,u,l,o,b),!0},dragControlEnd:function(e,t){var n=e.state;n.borderRadiusState="";var r=t.datas,o=t.isDouble;if(!r.isRound)return!1;var i=n.width,a=n.height,s=r.isControl,u=r.controlIndex,l=r.isLine,c=r.lineIndex,f=r.controlPoses,d=f.map((function(e){return e.pos})),p=d.length,h=e.props.roundClickable;if(o&&(void 0===h||h)){if(s)yi(f,d,u,0);else if(l){var g=_r(e,t);!function(e,t,n,r,o,i,a){var s=wi(e),u=s.horizontals,l=s.verticals,c=u.length,f=l.length,d=-1,p=-1;0===n?0===c?d=0:1===c&&(d=1):3===n&&(c<=2?d=2:c<=3&&(d=3)),2===n?0===f?p=0:f<4&&(p=3):1===n&&(f<=1?p=1:f<=2&&(p=2)),bi(e,t,0,d,p,r,o,i,a)}(f,d,c,g[0],g[1],i,a)}p!==f.length&&Bi(e,t,[0,0],[0,0],f,d)}return Do(e,"onRoundEnd",Oo(e,t,{})),n.borderRadiusState="",!0},unset:function(e){e.state.borderRadiusState=""}};var ji={isPinch:!0,name:"beforeRenderable",props:{},events:{onBeforeRenderStart:"beforeRenderStart",onBeforeRender:"beforeRender",onBeforeRenderEnd:"beforeRenderEnd",onBeforeRenderGroupStart:"beforeRenderGroupStart",onBeforeRenderGroup:"beforeRenderGroup",onBeforeRenderGroupEnd:"beforeRenderGroupEnd"},dragRelation:"weak",setTransform:function(e,t){var n=e.state,r=n.is3d,o=n.target,i=n.targetMatrix,a=null==o?void 0:o.style.transform,s=r?"matrix3d(".concat(i.join(","),")"):"matrix(".concat(ge(i,!0),")"),u=a&&"none"!==a?a:s;t.datas.startTransforms=function(e,t){return e===(t?"matrix3d(".concat(Pe(4)):"matrix(".concat(Pe(3),")"))||"matrix(1,0,0,1,0,0)"===e}(u,r)?[]:L(u)},resetTransform:function(e){e.datas.nextTransforms=e.datas.startTransforms,e.datas.nextTransformAppendedIndexes=[]},fillDragStartParams:function(e,t){return Co(e,t,{setTransform:function(e){t.datas.startTransforms=D(e)?e:L(e)},isPinch:!!t.isPinch})},fillDragParams:function(e,t){return Co(e,t,{isPinch:!!t.isPinch})},dragStart:function(e,t){this.setTransform(e,t),Do(e,"onBeforeRenderStart",this.fillDragStartParams(e,t))},drag:function(e,t){this.resetTransform(t),Do(e,"onBeforeRender",Co(e,t,{isPinch:!!t.isPinch}))},dragEnd:function(e,t){Do(e,"onBeforeRenderEnd",Co(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag}))},dragGroupStart:function(e,t){var n=this;this.dragStart(e,t);var r=dn(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.setTransform(r,e),n.fillDragStartParams(r,e)}));Do(e,"onBeforeRenderGroupStart",Co(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,setTransform:function(){},events:i}))},dragGroup:function(e,t){var n=this;this.drag(e,t);var r=dn(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.resetTransform(e),n.fillDragParams(r,e)}));Do(e,"onBeforeRenderGroup",Co(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,events:i}))},dragGroupEnd:function(e,t){this.dragEnd(e,t),Do(e,"onBeforeRenderGroupEnd",Co(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets}))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)}},Ui={name:"renderable",props:{},events:{onRenderStart:"renderStart",onRender:"render",onRenderEnd:"renderEnd",onRenderGroupStart:"renderGroupStart",onRenderGroup:"renderGroup",onRenderGroupEnd:"renderGroupEnd"},dragRelation:"weak",dragStart:function(e,t){Do(e,"onRenderStart",Co(e,t,{isPinch:!!t.isPinch}))},drag:function(e,t){Do(e,"onRender",this.fillDragParams(e,t))},dragAfter:function(e,t){if(t.resultCount)return this.drag(e,t)},dragEnd:function(e,t){Do(e,"onRenderEnd",this.fillDragEndParams(e,t))},dragGroupStart:function(e,t){Do(e,"onRenderGroupStart",Co(e,t,{isPinch:!!t.isPinch,targets:e.props.targets}))},dragGroup:function(e,t){var n=this,r=dn(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragParams(r,e)}));Do(e,"onRenderGroup",Co(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,transform:Fr(t),events:i}))},dragGroupEnd:function(e,t){var n=this,r=dn(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragEndParams(r,e)}));Do(e,"onRenderGroupEnd",Co(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets,events:i}))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlAfter:function(e,t){return this.dragAfter(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)},fillDragParams:function(e,t){return Co(e,t,{isPinch:!!t.isPinch,transform:Fr(t)})},fillDragEndParams:function(e,t){return Co(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag})}};function qi(e,t,n,r,o,i,a){var s="Start"===o,u=e.state.target,l=i.isRequest;if(!u||s&&r.indexOf("Control")>-1&&!l&&e.areaElement===i.inputEvent.target)return!1;var c="".concat(n).concat(r).concat(o),f="".concat(n).concat(r,"Condition"),d="End"===o,p="After"===o,h=s&&(!e.targetGesto||!e.controlGesto||!e.targetGesto.isFlag()||!e.controlGesto.isFlag());h&&e.updateRect(o,!0,!1),""!==o||l||No(e.state,i);var g=__spreadArray([],e[t],!0);if(l){var v=i.requestAble;g.some((function(e){return e.name===v}))||g.push.apply(g,e.props.ables.filter((function(e){return e.name===v})))}if(!g.length)return!1;var m=__spreadArray(__spreadArray([ji],g,!0),[Ui],!1).filter((function(e){return e[c]})),y=i.datas;h&&m.forEach((function(t){t.unset&&t.unset(e)}));var b,w=i.inputEvent;d&&w&&(b=document.elementFromPoint(i.clientX,i.clientY)||w.target);var S=0,x=m.filter((function(t){var n=t.name,r=y[n]||(y[n]={});if(s&&(r.isEventStart=!t[f]||t[f](e,i)),r.isEventStart){var o=t[c](e,Gt(Gt({},i),{resultCount:S,datas:r,originalDatas:y,inputTarget:b}));return e._emitter.off(),s&&!1===o&&(r.isEventStart=!1),S+=o?1:0,o}return!1})).length,_=!1;if(s&&m.length&&!x&&(_=0===m.filter((function(e){var t=e.name,n=y[t];return!!n.isEventStart&&("strong"!==e.dragRelation||(n.isEventStart=!1,!1))})).length),(d||_)&&(e.state.gesto=null,e.moveables&&e.moveables.forEach((function(e){e.state.gesto=null}))),h&&_&&m.forEach((function(t){t.unset&&t.unset(e)})),s&&!l&&x&&(null==i||i.preventDefault()),e.isUnmounted||_)return!1;(!s&&x&&!a||d)&&(e.props.flushSync||Gr)((function(){e.updateRect(d?o:"",!0,!1),e.forceUpdate()}));return s||d||p||!x||a||qi(e,t,n,r,o+"After",i),!0}function Hi(e,t,n){var r=e.controlBox.getElement(),o=[];o.push(r),e.props.dragArea&&!e.props.dragTarget||o.push(t);var i=function(t){var n=t.inputEvent.target;return n===e.areaElement||!e.isMoveableElement(n)&&!e.controlBox.getElement().contains(n)||te(n,"moveable-area")||te(n,"moveable-padding")};return $i(e,o,"targetAbles",n,{dragStart:i,pinchStart:i})}function $i(e,t,n,r,o){void 0===o&&(o={});var i=e.props,a=i.pinchOutside,s=i.pinchThreshold,u={preventDefault:!1,preventRightClick:!0,preventWheelClick:!0,container:window,pinchThreshold:s,pinchOutside:a},l=new Nt(t,u);return["drag","pinch"].forEach((function(t){["Start","","End"].forEach((function(i){l.on("".concat(t).concat(i),(function(a){var s=a.eventType;!o[s]||o[s](a)?qi(e,n,t,r,i,a)||a.stop():a.stop()}))}))})),l}var Qi=function(){function EventManager(e,t,n){var r=this;this.target=e,this.moveable=t,this.eventName=n,this.ables=[],this._onEvent=function(e){var t=r.eventName,n=r.moveable;n.state.disableNativeEvent||r.ables.forEach((function(r){r[t](n,{inputEvent:e})}))},e.addEventListener(n.toLowerCase(),this._onEvent)}var e=EventManager.prototype;return e.setAbles=function(e){this.ables=e},e.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},EventManager}(),Ji=function(e){function MoveableManager(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=Gt({container:null,gesto:null,renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1},wo(null)),t.enabledAbles=[],t.targetAbles=[],t.controlAbles=[],t.rotation=0,t.scale=[1,1],t.isUnmounted=!1,t.events={mouseEnter:null,mouseLeave:null},t._emitter=new yt,t._prevTarget=null,t._prevDragArea=!1,t._observer=null,t._observerId=0,t.onPreventClick=function(e){e.stopPropagation(),e.preventDefault(),re(window,"click",t.onPreventClick,!0)},t.checkUpdateRect=function(){if(!t.isDragging()){var e=t.props.parentMoveable;e?e.checkUpdateRect():(W(t._observerId),t._observerId=q((function(){t.isDragging()||t.updateRect()})))}},t}Ht(MoveableManager,e);var t=MoveableManager.prototype;return t.render=function(){var e=this.props,t=this.state,n=e.parentPosition,r=e.className,o=e.target,i=e.zoom,a=e.cspNonce,s=e.translateZ,u=e.cssStyled,l=e.portalContainer;this.checkUpdate(),this.updateRenderPoses();var c=n||{left:0,top:0},f=c.left,d=c.top,p=t.left,h=t.top,g=t.target,v=t.direction,m=t.hasFixed,y=e.targets,b=(y&&y.length||o)&&g,S=this.isDragging(),x={};return this.getEnabledAbles().forEach((function(e){x["data-able-".concat(e.name.toLowerCase())]=!0})),Et.createElement(u,Gt({cspNonce:a,ref:w(this,"controlBox"),className:"".concat(Hr("control-box",-1===v?"reverse":"",S?"dragging":"")," ").concat(r)},x,{onClick:this.onPreventClick,portalContainer:l,style:{position:m?"fixed":"absolute",display:b?"block":"none",transform:"translate3d(".concat(p-f,"px, ").concat(h-d,"px, ").concat(s,")"),"--zoom":i,"--zoompx":"".concat(i,"px")}}),this.renderAbles(),this._renderLines())},t.componentDidMount=function(){this.isUnmounted=!1,this.controlBox.getElement();var e=this.props,t=e.parentMoveable,n=e.container,r=e.wrapperMoveable;this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),n||t||r||this.updateRect("",!1,!0),this.updateCheckInput(),this._updateObserver(this.props)},t.componentDidUpdate=function(e){this._updateNativeEvents(),this._updateEvents(),this._updateTargets(),this.updateCheckInput(),this._updateObserver(e)},t.componentWillUnmount=function(){this.isUnmounted=!0,this._emitter.off(),ko(this,"targetGesto"),ko(this,"controlGesto");var e=this.events;for(var t in e){var n=e[t];n&&n.destroy()}},t.getContainer=function(){var e=this.props,t=e.parentMoveable,n=e.wrapperMoveable;return e.container||n&&n.getContainer()||t&&t.getContainer()||this.controlBox.getElement().parentElement},t.isMoveableElement=function(e){return e&&(e.getAttribute("class")||"").indexOf(Zt)>-1},t.dragStart=function(e){var t=this.targetGesto;return t&&!t.isFlag()&&t.triggerDragStart(e),this},t.hitTest=function(e){var t,n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,u=n.targetClientRect;if(!r)return 0;if(e instanceof Element){var l=e.getBoundingClientRect();t={left:l.left,top:l.top,width:l.width,height:l.height}}else t=Gt({width:0,height:0},e);var c=t.left,f=t.top,d=t.width,p=t.height,h=ct([o,i,s,a],u),g=mt(h,[[c,f],[c+d,f],[c+d,f+p],[c,f+p]]),v=lt(h);return g&&v?Math.min(100,g/v*100):0},t.isInside=function(e,t){var n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,u=n.targetClientRect;return!!r&&dt([e,t],ct([o,i,s,a],u))},t.updateRect=function(e,t,n){void 0===n&&(n=!0);var r=this.props,o=r.parentMoveable,i=this.state.target||this.props.target,a=this.getContainer(),s=o?o.props.rootContainer:r.rootContainer;this.updateState(wo(this.controlBox&&this.controlBox.getElement(),i,a,a,s||a),!o&&n)},t.isDragging=function(){return!!this.targetGesto&&this.targetGesto.isFlag()||!!this.controlGesto&&this.controlGesto.isFlag()},t.updateTarget=function(e){this.updateRect(e,!0)},t.getRect=function(){var e=this.state,t=Eo(this.state),n=t[0],r=t[1],o=t[2],i=t[3],a=co(t),s=e.width,u=e.height,l=a.width,c=a.height,f=a.left,d=a.top,p=[e.left,e.top],h=pe(p,e.origin);return{width:l,height:c,left:f,top:d,pos1:n,pos2:r,pos3:o,pos4:i,offsetWidth:s,offsetHeight:u,beforeOrigin:pe(p,e.beforeOrigin),origin:h,transformOrigin:e.transformOrigin,rotation:this.getRotation()}},t.getManager=function(){return this},t.getRotation=function(){var e=this.state;return function(e,t,n){var r=$(e,t)/Math.PI*180;return(r=n>=0?r:180-r)>=0?r:360+r}(e.pos1,e.pos2,e.direction)},t.request=function(e,t,n){void 0===t&&(t={});var r=this.props,o=r.ables,i=r.groupable,a=o.filter((function(t){return t.name===e}))[0];if(this.isDragging()||!a||!a.request)return{request:function(){return this},requestEnd:function(){return this}};var s=this,u=a.request(this),l=n||t.isInstant,c=u.isControl?"controlAbles":"targetAbles",f="".concat(i?"Group":"").concat(u.isControl?"Control":""),d={request:function(t){return qi(s,c,"drag",f,"",Gt(Gt({},u.request(t)),{requestAble:e,isRequest:!0}),l),this},requestEnd:function(){return qi(s,c,"drag",f,"End",Gt(Gt({},u.requestEnd()),{requestAble:e,isRequest:!0}),l),this}};return qi(s,c,"drag",f,"Start",Gt(Gt({},u.requestStart(t)),{requestAble:e,isRequest:!0}),l),l?d.request(t).requestEnd():d},t.destroy=function(){this.componentWillUnmount()},t.updateRenderPoses=function(){var e=this.state,t=this.props,n=e.originalBeforeOrigin,r=e.transformOrigin,o=e.allMatrix,i=e.is3d,a=e.pos1,s=e.pos2,u=e.pos3,l=e.pos4,c=e.left,f=e.top,d=t.padding||{},p=d.left,h=void 0===p?0:p,g=d.top,v=void 0===g?0:g,m=d.bottom,y=void 0===m?0:m,b=d.right,w=void 0===b?0:b,S=i?4:3,x=t.groupable?n:pe(n,[c,f]);e.renderPoses=[pe(a,Lo(o,[-h,-v],r,x,S)),pe(s,Lo(o,[w,-v],r,x,S)),pe(u,Lo(o,[-h,y],r,x,S)),pe(l,Lo(o,[w,y],r,x,S))]},t.checkUpdate=function(){var e=this.props,t=e.target,n=e.container,r=e.parentMoveable,o=this.state,i=o.target,a=o.container;if((i||t)&&(this.updateAbles(),!Ro(i,t)||!Ro(a,n))){var s=n||this.controlBox;s&&this.unsetAbles(),this.updateState({target:t,container:n}),!r&&s&&this.updateRect("End",!1,!1)}},t.triggerEvent=function(e,t){this._emitter.trigger(e,t);var n=this.props[e];return n&&n(t)},t.useCSS=function(e,t){var n=this.props.customStyledMap,r=e+t;return n[r]||(n[r]=qt(e,t)),n[r]},t.unsetAbles=function(){var e=this;this.targetAbles.forEach((function(t){t.unset&&t.unset(e)}))},t.updateAbles=function(e,t){void 0===e&&(e=this.props.ables),void 0===t&&(t="");var n=this.props,r=n.triggerAblesSimultaneously,o=e.filter((function(e){return e&&(e.always&&!1!==n[e.name]||n[e.name])})),i="drag".concat(t,"Start"),a="pinch".concat(t,"Start"),s="drag".concat(t,"ControlStart"),u=Po(o,[i,a],r),l=Po(o,[s],r);this.enabledAbles=o,this.targetAbles=u,this.controlAbles=l},t.updateState=function(e,t){if(t){if(this.isUnmounted)return;this.setState(e)}else{var n=this.state;for(var r in e)n[r]=e[r]}},t.getEnabledAbles=function(){var e=this.props;return e.ables.filter((function(t){return t&&e[t.name]}))},t.renderAbles=function(){var e,t=this,n=this.props.triggerAblesSimultaneously,r={createElement:Et.createElement};return function(e,t){var n=[],r={};return e.forEach((function(o,i){var a=t(o,i,e),s=r[a];s||(s=[],r[a]=s,n.push(s)),s.push(o)})),n}((e=Po(this.getEnabledAbles(),["render"],n).map((function(e){return(0,e.render)(t,r)||[]})),e.reduce((function(e,t){return e.concat(t)}),[])).filter((function(e){return e})),(function(e){return e.key})).map((function(e){return e[0]}))},t.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},t._updateObserver=function(e){var t,n=this.props,r=n.target;if(window.ResizeObserver&&r&&n.useResizeObserver){if(e.target!==r||!this._observer){var o=new ResizeObserver(this.checkUpdateRect);o.observe(r,{box:"border-box"}),this._observer=o}}else null===(t=this._observer)||void 0===t||t.disconnect()},t._updateEvents=function(){var e=this.controlBox.getElement(),t=this.targetAbles.length,n=this.controlAbles.length,r=this.props,o=r.dragTarget||r.target;(!t&&this.targetGesto||this._isTargetChanged(!0))&&(ko(this,"targetGesto"),this.updateState({gesto:null})),n||ko(this,"controlGesto"),o&&t&&!this.targetGesto&&(this.targetGesto=Hi(this,o,"")),!this.controlGesto&&n&&(this.controlGesto=$i(this,e,"controlAbles","Control"))},t._updateTargets=function(){var e=this.props;this._prevTarget=e.dragTarget||e.target,this._prevDragArea=e.dragArea},t._renderLines=function(){var e=this.props,t=e.edge,n=e.zoom;if(e.hideDefaultLines)return[];var r=this.state.renderPoses,o={createElement:Et.createElement};return[vn(o,t?"n":"",r[0],r[1],n,0),vn(o,t?"e":"",r[1],r[3],n,1),vn(o,t?"w":"",r[0],r[2],n,2),vn(o,t?"s":"",r[2],r[3],n,3)]},t._isTargetChanged=function(e){var t=this.props,n=t.dragTarget||t.target,r=this._prevTarget,o=this._prevDragArea,i=t.dragArea;return!i&&r!==n||(e||i)&&o!==i},t._updateNativeEvents=function(){var e=this,t=this.props.dragArea?this.areaElement:this.state.target,n=this.events,r=H(n);if(this._isTargetChanged())for(var o in n){var i=n[o];i&&i.destroy(),n[o]=null}if(t){var a=this.enabledAbles;r.forEach((function(r){var o=Po(a,[r]),i=o.length>0,s=n[r];i?(s||(s=new Qi(t,e,r),n[r]=s),s.setAbles(o)):s&&(s.destroy(),n[r]=null)}))}},MoveableManager.defaultProps={target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,edge:!1,parentMoveable:null,wrapperMoveable:null,parentPosition:null,portalContainer:null,useResizeObserver:!1,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},flushSync:Gr},MoveableManager}(Et.PureComponent),ea={name:"groupable",props:{defaultGroupRotate:Number,defaultGroupOrigin:String,groupable:Boolean},events:{},render:function(e,t){var n=e.props.targets||[];e.moveables=[];var r=e.state,o={left:r.left,top:r.top},i=e.props;return n.map((function(n,r){return t.createElement(Ji,{key:"moveable"+r,ref:S(e,"moveables",r),target:n,origin:!1,cssStyled:i.cssStyled,customStyledMap:i.customStyledMap,useResizeObserver:i.useResizeObserver,parentMoveable:e,parentPosition:o})}))}},ta=Yt("clickable",{props:{clickable:Boolean,preventClickDefault:Boolean},events:{onClick:"click",onClickGroup:"clickGroup"},always:!0,dragRelation:"weak",dragStart:function(e,t){t.isRequest||ne(window,"click",e.onPreventClick,!0)},dragControlStart:function(e,t){this.dragStart(e,t)},dragGroupStart:function(e,t){this.dragStart(e,t),t.datas.inputTarget=t.inputEvent&&t.inputEvent.target},dragEnd:function(e,t){this.endEvent(e);var n=e.state.target,r=t.inputEvent,o=t.inputTarget,i=!e.isMoveableElement(o)&&e.controlBox.getElement().contains(o);if((!e.props.preventClickDefault&&!t.isDrag||i)&&this.unset(e),r&&o&&!t.isDrag&&!e.isMoveableElement(o)&&!i){var a=n.contains(o);Do(e,"onClick",Co(e,t,{isDouble:t.isDouble,inputTarget:o,isTarget:n===o,containsTarget:a}))}},dragGroupEnd:function(e,t){this.endEvent(e);var n=t.inputEvent,r=t.inputTarget;if(n&&r&&!t.isDrag&&!e.isMoveableElement(r)&&t.datas.inputTarget!==r){var o=e.props.targets,i=o.indexOf(r),a=i>-1,s=!1;-1===i&&(s=(i=K(o,(function(e){return e.contains(r)})))>-1),Do(e,"onClickGroup",Co(e,t,{isDouble:t.isDouble,targets:o,inputTarget:r,targetIndex:i,isTarget:a,containsTarget:s}))}},dragControlEnd:function(e,t){this.dragEnd(e,t)},dragGroupControlEnd:function(e,t){this.dragEnd(e,t)},endEvent:function(e){var t=this;q((function(){t.unset(e)}))},unset:function(e){re(window,"click",e.onPreventClick,!0)}});function na(e){var t=e.originalDatas.draggable;return t||(e.originalDatas.draggable={},t=e.originalDatas.draggable),Gt(Gt({},e),{datas:t})}var ra=Yt("edgeDraggable",{dragControlCondition:function(e,t){if(!e.props.edgeDraggable||!t.inputEvent)return!1;var n=t.inputEvent.target;return te(n,Hr("direction"))&&te(n,Hr("line"))},dragControlStart:function(e,t){return xr.dragStart(e,na(t))},dragControl:function(e,t){return xr.drag(e,na(t))},dragControlEnd:function(e,t){return xr.dragEnd(e,na(t))},dragGroupControlCondition:function(e,t){if(!e.props.edgeDraggable||!t.inputEvent)return!1;var n=t.inputEvent.target;return te(n,Hr("direction"))&&te(n,Hr("line"))},dragGroupControlStart:function(e,t){return xr.dragGroupStart(e,na(t))},dragGroupControl:function(e,t){return xr.dragGroup(e,na(t))},dragGroupControlEnd:function(e,t){return xr.dragGroupEnd(e,na(t))},unset:function(e){return xr.unset(e)}}),oa={name:"individualGroupable",props:{individualGroupable:Boolean},events:{}},ia=[ji,si,Sr,Go,xr,ra,En,Yo,Vo,Qo,ai,ui,oi,Ti,Di,zi,ea,oa,ta,ri,Ui],aa=ia.reduce((function(e,t){return Gt(Gt({},e),"events"in t?t.events:{})}),{}),sa=ia.reduce((function(e,t){return Gt(Gt({},e),t.props)}),{}),ua=jo(aa);Object.keys(ua),Object.keys(sa);function la(e,t){return Math.max.apply(Math,e.map((function(e){var n=e[0],r=e[1],o=e[2],i=e[3];return Math.max(n[t],r[t],o[t],i[t])})))}function ca(e,t){return Math.min.apply(Math,e.map((function(e){var n=e[0],r=e[1],o=e[2],i=e[3];return Math.min(n[t],r[t],o[t],i[t])})))}var fa=function(e){function MoveableGroup(){var t=null!==e&&e.apply(this,arguments)||this;return t.differ=new ut,t.moveables=[],t.transformOrigin="50% 50%",t}Ht(MoveableGroup,e);var t=MoveableGroup.prototype;return t.checkUpdate=function(){this.updateAbles()},t.updateRect=function(e,t,n){if(void 0===n&&(n=!0),this.controlBox){this.moveables.forEach((function(t){t.updateRect(e,!1,!1)}));var r=this.state,o=this.props,i=r.target||o.target;(!t||""!==e&&o.updateGroup)&&(this.rotation=o.defaultGroupRotate,this.transformOrigin=o.defaultGroupOrigin||"50% 50%",this.scale=[1,1]);var a=this.rotation,s=this.scale,u=function(e,t){if(!e.length)return[0,0,0,0];var n=e.map((function(e){return Eo(e.state)})),r=rn,o=rn,i=0,a=0,s=J(t,tn);if(s%90){var u=s/180*Math.PI,l=Math.tan(u),c=-1/l,f=[on,rn],d=[on,rn];n.forEach((function(e){e.forEach((function(e){var t=e[1]-l*e[0],n=e[1]-c*e[0];f[0]=Math.max(f[0],t),f[1]=Math.min(f[1],t),d[0]=Math.max(d[0],n),d[1]=Math.min(d[1],n)}))})),f.forEach((function(e){d.forEach((function(t){var n=(t-e)/(l-c),i=l*n+e;r=Math.min(r,n),o=Math.min(o,i)}))}));var p=n.map((function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return[Se(t,-u),Se(n,-u),Se(r,-u),Se(o,-u)]}));i=la(p,0)-ca(p,0),a=la(p,1)-ca(p,1)}else if(r=ca(n,0),o=ca(n,1),i=la(n,0)-r,a=la(n,1)-o,s%180){var h=i;i=a,a=h}return[r,o,i,a]}(this.moveables,a),l=u[0],c=u[1],f=u[2],d=u[3],p="rotate(".concat(a,"deg) scale(").concat(s[0]>=0?1:-1,", ").concat(s[1]>=0?1:-1,")");i.style.cssText+="left:0px;top:0px; transform-origin: ".concat(this.transformOrigin,"; width:").concat(f,"px; height:").concat(d,"px;")+"transform:".concat(p),r.width=f,r.height=d;var h=this.getContainer(),g=wo(this.controlBox.getElement(),i,this.controlBox.getElement(),this.getContainer(),this.props.rootContainer||h),v=[g.left,g.top],m=Eo(g),y=m[0],b=m[1],w=m[2],S=m[3],x=ft([y,b,w,S]),_=[x.minX,x.minY];g.pos1=he(y,_),g.pos2=he(b,_),g.pos3=he(w,_),g.pos4=he(S,_),g.left=l-g.left+_[0],g.top=c-g.top+_[1],g.origin=he(pe(v,g.origin),_),g.beforeOrigin=he(pe(v,g.beforeOrigin),_),g.originalBeforeOrigin=pe(v,g.originalBeforeOrigin);var E=g.targetClientRect,k=s[0]*s[1]>0?1:-1;E.top+=g.top-r.top,E.left+=g.left-r.left,i.style.transform="translate(".concat(-_[0],"px, ").concat(-_[1],"px) ").concat(p),this.updateState(Gt(Gt({},g),{direction:k,beforeDirection:k}),n)}},t.getRect=function(){return Gt(Gt({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.triggerEvent=function(t,n,r){if(r||t.indexOf("Group")>-1)return e.prototype.triggerEvent.call(this,t,n);this._emitter.trigger(t,n)},t.updateAbles=function(){e.prototype.updateAbles.call(this,__spreadArray(__spreadArray([],this.props.ables,!0),[ea],!1),"Group")},t._updateTargets=function(){e.prototype._updateTargets.call(this),this._prevTarget=this.props.dragTarget||this.areaElement},t._updateEvents=function(){var e=this.state,t=this.props,n=this._prevTarget,r=t.dragTarget||this.areaElement;n!==r&&(ko(this,"targetGesto"),ko(this,"controlGesto"),e.target=null),e.target||(e.target=this.areaElement,this.controlBox.getElement().style.display="block"),e.target&&(this.targetGesto||(this.targetGesto=Hi(this,r,"Group")),this.controlGesto||(this.controlGesto=$i(this,this.controlBox.getElement(),"controlAbles","GroupControl")));var o=!Ro(e.container,t.container);o&&(e.container=t.container);var i=this.differ.update(t.targets),a=i.added,s=i.changed,u=i.removed;(o||a.length||s.length||u.length)&&this.updateRect()},t._updateObserver=function(){},MoveableGroup.defaultProps=Gt(Gt({},Ji.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),MoveableGroup}(Ji),da=function(e){function MoveableIndividualGroup(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}Ht(MoveableIndividualGroup,e);var t=MoveableIndividualGroup.prototype;return t.render=function(){var e=this,t=this.props,n=t.cspNonce,r=t.cssStyled,o=t.targets;return Et.createElement(r,{cspNonce:n,ref:w(this,"controlBox"),className:Hr("control-box")},o.map((function(t,n){return Et.createElement(Ji,Gt({key:"moveable"+n,ref:S(e,"moveables",n)},e.props,{target:t,wrapperMoveable:e}))})))},t.componentDidUpdate=function(){},t.updateRect=function(e,t,n){void 0===n&&(n=!0),this.moveables.forEach((function(r){r.updateRect(e,t,n)}))},t.getRect=function(){return Gt(Gt({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.request=function(){return{request:function(){return this},requestEnd:function(){return this}}},t.dragStart=function(){return this},t.hitTest=function(){return 0},t.isInside=function(){return!1},t.isDragging=function(){return!1},t.updateRenderPoses=function(){},t.checkUpdate=function(){},t.triggerEvent=function(){},t.updateAbles=function(){},t._updateEvents=function(){},t._updateObserver=function(){},MoveableIndividualGroup}(Ji),pa=function(e){function InitialMoveable(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t}Ht(InitialMoveable,e);var t,n,r=InitialMoveable.prototype;return InitialMoveable.makeStyled=function(){var e={};this.getTotalAbles().forEach((function(t){var n=t.css;n&&n.forEach((function(t){e[t]=!0}))}));var t=H(e).join("\n");this.defaultStyled=qt("div",function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}(Zt,Jt+t))},InitialMoveable.getTotalAbles=function(){return __spreadArray([si,ea,oa,ri],this.defaultAbles,!0)},r.render=function(){var e=this.constructor;e.defaultStyled||e.makeStyled();var t=this.props,n=t.ables,r=t.props,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["ables","props"]),i=function(e,t){var n=[];return e.forEach((function(e){e&&(T(e)?t[e]&&n.push.apply(n,t[e]):n.push(e))})),n}(this._updateRefs(!0),this.selectorMap),a=i.length>1,s=__spreadArray(__spreadArray([],e.getTotalAbles(),!0),n||[],!0),u=Gt(Gt(Gt({},o),r||{}),{ables:s,cssStyled:e.defaultStyled,customStyledMap:e.customStyledMap});return a?o.individualGroupable?Et.createElement(da,Gt({key:"individual-group",ref:w(this,"moveable")},u,{target:null,targets:i})):Et.createElement(fa,Gt({key:"group",ref:w(this,"moveable")},u,{target:null,targets:i})):Et.createElement(Ji,Gt({key:"single",ref:w(this,"moveable")},u,{target:i[0]}))},r.componentDidMount=function(){this._updateRefs()},r.componentDidUpdate=function(){this._updateRefs()},r.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},r.getManager=function(){return this.moveable},r._updateRefs=function(e){var t=this.refTargets,n=Uo(this.props.target||this.props.targets),r="undefined"!=typeof document,o=t.length!==n.length||t.some((function(e,t){var r=n[t];return!(!e&&!r)&&e!==r})),i=this.selectorMap,a={};return this.refTargets.forEach((function(e){T(e)&&(i[e]?a[e]=i[e]:r&&(o=!0,a[e]=[].slice.call(document.querySelectorAll(e))))})),this.refTargets=n,this.selectorMap=a,!e&&o&&this.forceUpdate(),n},InitialMoveable.defaultAbles=[],InitialMoveable.customStyledMap={},InitialMoveable.defaultStyled=null,function __decorate(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([(t=ln,void 0===n&&(n={}),function(e,r){t.forEach((function(t){var o=n[t]||t;o in e||(e[o]=function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=(e=this[r])[t].apply(e,n);return i===this[r]?this:i})}))})],InitialMoveable.prototype,"moveable",void 0),InitialMoveable}(Et.PureComponent),ha=function(e){function Moveable(){return null!==e&&e.apply(this,arguments)||this}return Ht(Moveable,e),Moveable.defaultAbles=ia,Moveable}(pa)},37723:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(87462),o=n(63366),i=n(94578);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(67294),u=n(12666),l=n(59391),c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},f=function(e){function CSSTransition(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.default)(CSSTransition,e);var t=CSSTransition.prototype;return t.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&(0,l.forceReflow)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},t.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&c(e,r),o&&c(e,o),i&&c(e,i)},t.render=function(){var e=this.props,t=(e.classNames,(0,o.default)(e,["classNames"]));return s.createElement(u.default,(0,r.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},CSSTransition}(s.Component);f.defaultProps={classNames:""},f.propTypes={};const d=f},12666:(e,t,n)=>{"use strict";n.d(t,{default:()=>m});var r=n(63366),o=n(94578),i=n(67294),a=n(73935);const s=!1;var u=n(220),l=n(59391),c="unmounted",f="exited",d="entering",p="entered",h="exiting",g=function(e){function Transition(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=f,r.appearStatus=d):o=p:o=t.unmountOnExit||t.mountOnEnter?c:f,r.state={status:o},r.nextCallback=null,r}(0,o.default)(Transition,e),Transition.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:f}:null};var t=Transition.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==p&&(t=d):n!==d&&n!==p||(t=h)}this.updateStatus(!1,t)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},t.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,l.forceReflow)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:c})},t.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:p},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:d},(function(){t.props.onEntering(i,u),t.onTransitionEnd(c,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(i,u)}))}))})))},t.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:f},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:f},(function(){e.props.onExited(r)}))},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},t.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},t.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.default.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},Transition}(i.Component);function v(){}g.contextType=u.default,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},g.UNMOUNTED=c,g.EXITED=f,g.ENTERING=d,g.ENTERED=p,g.EXITING=h;const m=g},94537:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var r=n(63366),o=n(87462),i=n(97326),a=n(94578),s=n(67294),u=n(220);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}function f(e,t,n){var r=l(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var l=o[u][r];s[o[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,s.isValidElement)(a)){var u=i in t,l=i in r,f=t[i],d=(0,s.isValidElement)(f)&&!f.props.in;!l||u&&!d?l||!u||d?l&&u&&(0,s.isValidElement)(f)&&(o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:f.props.in,exit:c(a,"exit",e),enter:c(a,"enter",e)})):o[i]=(0,s.cloneElement)(a,{in:!1}):o[i]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:c(a,"exit",e),enter:c(a,"enter",e)})}})),o}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){function TransitionGroup(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,i.default)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,a.default)(TransitionGroup,e);var t=TransitionGroup.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,l(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:c(e,"appear",n),enter:c(e,"enter",n),exit:c(e,"exit",n)})}))):f(e,o,i),firstRender:!1}},t.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.default)({},t.children);return delete n[e.key],{children:n}})))},t.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.default)(e,["component","childFactory"]),i=this.state.contextValue,a=d(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.createElement(u.default.Provider,{value:i},a):s.createElement(u.default.Provider,{value:i},s.createElement(t,o,a))},TransitionGroup}(s.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const h=p},220:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=n(67294).createContext(null)},59391:(e,t,n)=>{"use strict";n.d(t,{forceReflow:()=>r});var r=function(e){return e.scrollTop}},72408:(e,t,n)=>{"use strict";var r=n(27418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=y.prototype=new m;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},S=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function C(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 O(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+C(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+C(s=e[l],l);u+=O(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=O(s=s.value,t,n,c=r+C(s,l++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function M(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(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 T={current:null};function P(){var e=T.current;if(null===e)throw Error(p(321));return e}var R={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!x.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},60053:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,f=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=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 h&&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,v=null,m=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},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"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?S.postMessage(null):(g=!1,v=null)}catch(e){throw S.postMessage(null),e}}else g=!1},n=function(e){v=e,g||(g=!0,S.postMessage(null))},r=function(e,n){m=d((function(){e(t.unstable_now())}),n)},o=function(){p(m),m=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,u=e[s];if(void 0!==a&&0>k(a,n))void 0!==u&&0>k(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],M=1,D=null,T=3,P=!1,R=!1,I=!1;function A(e){for(var t=_(O);null!==t;){if(null===t.callback)E(O);else{if(!(t.startTime<=e))break;E(O),t.sortIndex=t.expirationTime,x(C,t)}t=_(O)}}function N(e){if(I=!1,A(e),!R)if(null!==_(C))R=!0,n(L);else{var t=_(O);null!==t&&r(N,t.startTime-e)}}function L(e,n){R=!1,I&&(I=!1,o()),P=!0;var i=T;try{for(A(n),D=_(C);null!==D&&(!(D.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"==typeof a){D.callback=null,T=D.priorityLevel;var s=a(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?D.callback=s:D===_(C)&&E(C),A(n)}else E(C);D=_(C)}if(null!==D)var u=!0;else{var l=_(O);null!==l&&r(N,l.startTime-n),u=!1}return u}finally{D=null,T=i,P=!1}}var B=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(){R||P||(R=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:M++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(e.sortIndex=a,x(O,e),null===_(C)&&e===_(O)&&(I?o():I=!0,r(N,a-s))):(e.sortIndex=u,x(C,e),R||P||(R=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},63840:(e,t,n)=>{"use strict";e.exports=n(60053)},24889:function(e,t,n){!function(e,t){"use strict";if(!e.setImmediate){var n,r,o,i,a,s=1,u={},l=!1,c=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},781:(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function o(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.d(t,{shallowEqualArrays:()=>o,shallowEqualObjects:()=>r})},96774:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var l=i[u];if(!s(l))return!1;var c=e[l],f=t[l];if(!1===(o=n?n.call(r,c,f,l):void 0)||void 0===o&&c!==f)return!1}return!0}},26300:(e,t,n)=>{"use strict";n.d(t,{StyleSheetManager:()=>ue,ThemeContext:()=>we,ThemeProvider:()=>Fe,createGlobalStyle:()=>We,css:()=>Ce,default:()=>ke,keyframes:()=>Ue});var r=n(59864),o=n(67294),i=n(96774),a=n.n(i);const s=function(e){function t(e,r,u,l,d){for(var p,h,g,v,w,x=0,_=0,E=0,k=0,C=0,R=0,A=g=p=0,L=0,B=0,F=0,z=0,j=u.length,K=j-1,U="",q="",W="",H="";L<j;){if(h=u.charCodeAt(L),L===K&&0!==_+k+E+x&&(0!==_&&(h=47===_?10:47),k=E=x=0,j++,K++),0===_+k+E+x){if(L===K&&(0<B&&(U=U.replace(f,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(L)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),g=1,z=++L;L<j;){switch(h=u.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(h=u.charCodeAt(L+1)){case 42:case 47:e:{for(A=L+1;A<K;++A)switch(u.charCodeAt(A)){case 47:if(42===h&&42===u.charCodeAt(A-1)&&L+2!==A){L=A+1;break e}break;case 10:if(47===h){L=A+1;break e}}L=A}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<K&&u.charCodeAt(L)!==h;);}if(0===g)break;L++}if(g=u.substring(z,L),0===p&&(p=(U=U.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<B&&(U=U.replace(f,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:B=r;break;default:B=P}if(z=(g=t(r,B,g,h,d+1)).length,0<I&&(w=s(3,g,B=n(P,U,F),r,M,O,z,h,d,l),U=B.join(""),void 0!==w&&0===(z=(g=w.trim()).length)&&(h=0,g="")),0<z)switch(h){case 115:U=U.replace(S,a);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(m,"$1 $2"))+"{"+g+"}",g=1===T||2===T&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===l&&(q+=g,g="")}else g=""}else g=t(r,n(r,U,F),g,l,d+1);W+=g,g=F=B=A=p=0,U="",h=u.charCodeAt(++L);break;case 125:case 59:if(1<(z=(U=(0<B?U.replace(f,""):U).trim()).length))switch(0===A&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(z=(U=U.replace(" ",":")).length),0<I&&void 0!==(w=s(1,U,r,e,M,O,q.length,l,d,l))&&0===(z=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=U+u.charAt(L);break}default:58!==U.charCodeAt(z-1)&&(q+=o(U,p,h,U.charCodeAt(2)))}F=B=A=p=0,U="",h=u.charCodeAt(++L)}}switch(h){case 13:case 10:47===_?_=0:0===1+p&&107!==l&&0<U.length&&(B=1,U+="\0"),0<I*N&&s(0,U,r,e,M,O,q.length,l,d,l),O=1,M++;break;case 59:case 125:if(0===_+k+E+x){O++;break}default:switch(O++,v=u.charAt(L),h){case 9:case 32:if(0===k+x+_)switch(C){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===k+_+x&&(B=F=1,v="\f"+v);break;case 108:if(0===k+_+x+D&&0<A)switch(L-A){case 2:112===C&&58===u.charCodeAt(L-3)&&(D=C);case 8:111===R&&(D=R)}break;case 58:0===k+_+x&&(A=L);break;case 44:0===_+E+k+x&&(B=1,v+="\r");break;case 34:case 39:0===_&&(k=k===h?0:0===k?h:k);break;case 91:0===k+_+E&&x++;break;case 93:0===k+_+E&&x--;break;case 41:0===k+_+x&&E--;break;case 40:if(0===k+_+x){if(0===p)if(2*C+3*R==533);else p=1;E++}break;case 64:0===_+E+k+x+A+g&&(g=1);break;case 42:case 47:if(!(0<k+x+E))switch(_){case 0:switch(2*h+3*u.charCodeAt(L+1)){case 235:_=47;break;case 220:z=L,_=42}break;case 42:47===h&&42===C&&z+2!==L&&(33===u.charCodeAt(z+2)&&(q+=u.substring(z,L+1)),v="",_=0)}}0===_&&(U+=v)}R=C,C=h,L++}if(0<(z=q.length)){if(B=r,0<I&&(void 0!==(w=s(2,q,B,e,M,O,z,l,d,l))&&0===(q=w).length))return H+q+W;if(q=B.join(",")+"{"+q+"}",0!=T*D){switch(2!==T||i(q,2)||(D=0),D){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}D=0}}return H+q+W}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===T||2===T&&i(u,1)?"-webkit-"+u+u:u}if(0===T||2===T&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(E,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,c){for(var f,d=0,p=t;d<I;++d)switch(f=R[d].call(l,e,p,n,r,o,i,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?T=1:(T=2,A=e):T=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var o=s(-1,n,r,r,M,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<I&&(void 0!==(o=s(-2,i,r,r,M,O,i.length,0,0,0))&&(i=o)),"",D=0,O=M=1,i}var c=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,_=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,O=1,M=1,D=0,T=1,P=[],R=[],I=0,A=null,N=0;return l.use=function e(t){switch(t){case void 0:case null:I=R.length=0;break;default:if("function"==typeof t)R[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else N=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};const u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var l=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return l.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var f=n(8679),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},v=Object.freeze([]),m=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var S="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",x="undefined"!=typeof window&&"HTMLElement"in window,_=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),E={};function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),O=new Map,M=new Map,D=1,T=function(e){if(O.has(e))return O.get(e);for(;M.has(D);)D++;var t=D++;return O.set(e,t),M.set(t,e),t},P=function(e){return M.get(e)},R=function(e,t){t>=D&&(D=t+1),O.set(e,t),M.set(t,e)},I="style["+S+'][data-styled-version="5.3.5"]',A=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(A);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(R(l,u),N(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.5");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},z=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}k(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),j=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),K=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=x,q={isServer:!x,useCSSOMInjection:!_},W=function(){function e(e,t,n){void 0===e&&(e=m),void 0===t&&(t={}),this.options=p({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&x&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(I),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new K(o):r?new z(o):new j(o),new C(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=P(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var u=S+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(H,"$1-$2")}var V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},X=function(e){return V(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var Q=X("5.3.5"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&$(e),this.componentId=t,this.baseHash=V(Q,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Ne(this.rules,e,t,n).join(""),a=Y(V(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=V(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var p=Ne(d,e,t,n),h=Array.isArray(p)?p.join(""):p;l=V(l,h+f),c+=h}}if(c){var g=Y(l>>>0);if(!t.hasNameForId(r,g)){var v=n(c,"."+g,void 0,r);t.insertRules(r,g,v)}o.push(g)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,i=void 0===e?m:e,a=i.options,u=void 0===a?m:a,l=i.plugins,c=void 0===l?v:l,f=new s(u),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return 0===r&&-1!==ee.indexOf(i[n.length])||i.match(o)?e:"."+t};function g(e,i,a,s){void 0===s&&(s="&");var u=e.replace(J,""),l=i&&a?a+" "+i+" { "+u+" }":u;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,l)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=c.length?c.reduce((function(e,t){return t.name||k(15),V(e,t.name)}),5381).toString():"",g}var ne=o.createContext(),re=(ne.Consumer,o.createContext()),oe=(re.Consumer,new W),ie=te();function ae(){return(0,o.useContext)(ne)||oe}function se(){return(0,o.useContext)(re)||ie}function ue(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=ae(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,o.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(ne.Provider,{value:s},o.createElement(re.Provider,{value:u},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return k(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,fe=/([A-Z])/g,de=/^ms-/,Ee=function(e){return"-"+e.toLowerCase()};function pe(e){return ce.test(e)?e.replace(fe,Ee).replace(de,"-ms-"):e}var he=function(e){return null==e||!1===e||""===e};function Ne(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ne(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return he(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Ne(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:g(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!he(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?i.push(pe(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(pe(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var Ae=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||g(e)?Ae(Ne(h(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ae(Ne(h(e,n)))}new Set;var Re=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ve=/(^-|-$)/g;function Te(e){return e.replace(ge,"-").replace(ve,"")}var me=function(e){return Y(X(e)>>>0)};function ye(e){return"string"==typeof e&&!0}var Ve=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Be=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function be(e,t,n){var r=e[n];Ve(t)&&Ve(r)?Me(r,t):e[n]=t}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Ve(a))for(var s in a)Be(s)&&be(e,a[s],s)}return e}var we=o.createContext();we.Consumer;function Fe(e){var t=(0,o.useContext)(we),n=(0,o.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?k(8):t?p({},t,{},e):e:k(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(we.Provider,{value:n},e.children):null}var Se={};function xe(e,t,n){var r=w(e),i=!ye(e),a=t.attrs,s=void 0===a?v:a,u=t.componentId,l=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Te(e);Se[n]=(Se[n]||0)+1;var r=n+"-"+me("5.3.5"+n+Se[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,f=t.displayName,h=void 0===f?function(e){return ye(e)?"styled."+e:"Styled("+b(e)+")"}(e):f,g=t.displayName&&t.componentId?Te(t.displayName)+"-"+t.componentId:t.componentId||l,S=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var _,E=new Z(n,g,r?e.componentStyle:void 0),k=E.isStatic&&0===s.length,C=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,f=e.styledComponentId,d=e.target,h=function(e,t,n){void 0===e&&(e=m);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(Re(t,(0,o.useContext)(we),s)||m,t,i),g=h[0],v=h[1],b=function(e,t,n,r){var o=ae(),i=se();return t?e.generateAndInjectStyles(m,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,g),w=n,S=v.$as||t.$as||v.as||t.as||d,x=ye(S),_=v!==t?p({},t,{},v):t,E={};for(var k in _)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?E.as=_[k]:(l?l(k,c,S):!x||c(k))&&(E[k]=_[k]));return t.style&&v.style!==t.style&&(E.style=p({},t.style,{},v.style)),E.className=Array.prototype.concat(u,f,b!==f?b:null,t.className,v.className).filter(Boolean).join(" "),E.ref=w,(0,o.createElement)(S,E)}(_,e,t,k)};return C.displayName=h,(_=o.forwardRef(C)).attrs=S,_.componentStyle=E,_.displayName=h,_.shouldForwardProp=x,_.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,_.styledComponentId=g,_.target=r?e.target:e,_.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),i=r&&r+"-"+(ye(e)?e:Te(b(e)));return xe(e,p({},o,{attrs:S,componentId:i}),n)},Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Me({},e.defaultProps,t):t}}),_.toString=function(){return"."+_.styledComponentId},i&&d()(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),_}var He=function(e){return function e(t,n,o){if(void 0===o&&(o=m),!(0,r.isValidElementType)(n))return k(1,String(n));var i=function(){return t(n,o,Ce.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},o,{},r))},i.attrs=function(r){return e(t,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(xe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){He[e]=He(e)}));var _e=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Ne(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function We(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Ce.apply(void 0,[e].concat(n)),a="sc-global-"+me(JSON.stringify(i)),s=new _e(i,a);function u(e){var t=ae(),n=se(),r=(0,o.useContext)(we),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&l(i,e,t,r,n),(0,o.useLayoutEffect)((function(){if(!t.server)return l(i,e,t,r,n),function(){return s.removeStyles(i,t)}}),[i,e,t,r,n]),null}function l(e,t,n,r,o){if(s.isStatic)s.renderStyles(e,E,n,o);else{var i=p({},t,{theme:Re(t,r,u.defaultProps)});s.renderStyles(e,i,n,o)}}return o.memo(u)}function Ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ce.apply(void 0,[e].concat(n)).join(""),i=me(o);return new le(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=B();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return k(2);var n=((t={})[S]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[o.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?k(2):o.createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return k(3)}}();const ke=He},14194:(e,t,n)=>{"use strict";var r,o=n(43832),i=(r=o)&&r.__esModule?r:{default:r};var a=-1;function s(e,t){if(e===a)return i.default.transform(t)}Object.defineProperty(s,"name",{value:"stylisRTLPlugin"}),t.default=s},35577:(e,t,n)=>{"use strict";var r,o,i,a;n.d(t,{default:()=>Tannin}),r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function u(e){var t=function(e){for(var t,n,s,u,l=[],c=[];t=e.match(a);){for(n=t[0],(s=e.substr(0,t.index).trim())&&l.push(s);u=c.pop();){if(i[n]){if(i[n][0]===u){n=i[n][1]||n;break}}else if(o.indexOf(u)>=0||r[u]<r[n]){c.push(u);break}l.push(u)}i[n]||c.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&l.push(e),l.concat(c.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,u,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=s[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{u=i.apply(null,o)}catch(e){return e}}else u=t.hasOwnProperty(a)?t[a]:+a;l.push(u)}return l[0]}(t,e)}}var l={contextDelimiter:"",onMissingKey:null};function Tannin(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},l)this.options[n]=void 0!==t&&n in t?t[n]:l[n]}Tannin.prototype.getPluralForm=function(e,t){var n,r,o,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=function(e){var t=u(e);return function(e){return+t({n:e})}}(r)),i=this.pluralForms[e]=o),i(t)},Tannin.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)}},42238:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",u="object",l="string",c="model",f="name",d="type",p="vendor",h="version",g="architecture",v="console",m="mobile",y="tablet",b="smarttv",w="wearable",S="embedded",x="Amazon",_="Apple",E="ASUS",k="BlackBerry",C="Firefox",O="Google",M="Huawei",D="LG",T="Microsoft",P="Motorola",R="Opera",I="Samsung",A="Sony",N="Xiaomi",L="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===l&&-1!==j(t).indexOf(j(e))},j=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===s?e:e.substring(0,255)},U=function(e,t){for(var n,r,o,s,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=r=0;n<d.length&&!l;)if(l=d[n++].exec(e))for(o=0;o<p.length;o++)c=l[++r],typeof(s=p[o])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):i:this[s[0]]=c?s[1].call(this,c,s[2]):i:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):i):this[s]=c||i;f+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(z(t[n][r],e))return"?"===n?i:n}else if(z(t[n],e))return"?"===n?i:n;return e},W={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},H={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[h,[f,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[f,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[h,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure Browser"],h],[/\bfocus\/([\w\.]+)/i],[h,[f,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[h,[f,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[f,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[f,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[h,[f,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 Browser"],h],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,B],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,"Chrome WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[h,[f,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,h]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,j]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",j]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,j]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[p,I],[d,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[p,I],[d,m]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[p,_],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[p,_],[d,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[p,M],[d,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[c,[p,M],[d,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[p,N],[d,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[p,N],[d,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[p,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[p,"Vivo"],[d,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[p,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[p,P],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[p,P],[d,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[p,D],[d,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[p,D],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[p,"Lenovo"],[d,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[p,"Nokia"],[d,m]],[/(pixel c)\b/i],[c,[p,O],[d,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[p,O],[d,m]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[p,A],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[p,A],[d,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[p,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[p,x],[d,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[p,x],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,p,[d,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[p,k],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[p,E],[d,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[p,E],[d,m]],[/(nexus 9)/i],[c,[p,"HTC"],[d,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[p,[c,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[p,"Acer"],[d,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[p,"Meizu"],[d,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[p,"Sharp"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,c,[d,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,c,[d,y]],[/(surface duo)/i],[c,[p,T],[d,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[p,"Fairphone"],[d,m]],[/(u304aa)/i],[c,[p,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[c,[p,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[c,[p,"RCA"],[d,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[p,"Dell"],[d,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[p,"Verizon"],[d,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[p,"Barnes & Noble"],[d,y]],[/\b(tm\d{3}\w+) b/i],[c,[p,"NuVision"],[d,y]],[/\b(k88) b/i],[c,[p,"ZTE"],[d,y]],[/\b(nx\d{3}j) b/i],[c,[p,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[c,[p,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[c,[p,"Swiss"],[d,y]],[/\b((zeki)?tb.*\b) b/i],[c,[p,"Zeki"],[d,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],c,[d,y]],[/\b(ns-?\w{0,9}) b/i],[c,[p,"Insignia"],[d,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[p,"NextBook"],[d,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],c,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],c,[d,m]],[/\b(ph-1) /i],[c,[p,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[p,"Envizen"],[d,y]],[/\b(trio[-\w\. ]+) b/i],[c,[p,"MachSpeed"],[d,y]],[/\btu_(1491) b/i],[c,[p,"Rotor"],[d,y]],[/(shield[\w ]+) b/i],[c,[p,"Nvidia"],[d,y]],[/(sprint) (\w+)/i],[p,c,[d,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[p,T],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[p,L],[d,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[p,L],[d,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,c,[d,v]],[/droid.+; (shield) bui/i],[c,[p,"Nvidia"],[d,v]],[/(playstation [345portablevi]+)/i],[c,[p,A],[d,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[p,T],[d,v]],[/smart-tv.+(samsung)/i],[p,[d,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[p,I],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,D],[d,b]],[/(apple) ?tv/i],[p,[c,"Apple TV"],[d,b]],[/crkey/i],[[c,"Chromecast"],[p,O],[d,b]],[/droid.+aft(\w)( bui|\))/i],[c,[p,x],[d,b]],[/\(dtv[\);].+(aquos)/i],[c,[p,"Sharp"],[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,K],[c,K],[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/((pebble))app/i],[p,c,[d,w]],[/droid.+; (glass) \d/i],[c,[p,O],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[c,[p,L],[d,w]],[/(quest( 2)?)/i],[c,[p,B],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[f,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[h,q,W]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[h,q,W]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[h,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,h],[/\(bb(10);/i],[h,[f,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[f,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[f,"Chromium OS"],h],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[f,h]]},UAParser=function(e,t){if(typeof e===u&&(t=e,e=i),!(this instanceof UAParser))return new UAParser(e,t).getResult();var n=e||(typeof o!==s&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(H,t):H;return this.getBrowser=function(){var e,t={};return t.name=i,t.version=i,U.call(t,n,r.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:i,t},this.getCPU=function(){var e={};return e.architecture=i,U.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,U.call(e,n,r.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,U.call(e,n,r.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,U.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===l&&e.length>255?K(e,255):e,this},this.setUA(n),this};UAParser.VERSION="0.7.31",UAParser.BROWSER=F([f,h,"major"]),UAParser.CPU=F([g]),UAParser.DEVICE=F([c,p,d,v,m,b,y,w,S]),UAParser.ENGINE=UAParser.OS=F([f,h]),typeof t!==s?(e.exports&&(t=e.exports=UAParser),t.UAParser=UAParser):n.amdO?(r=function(){return UAParser}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=UAParser);var G=typeof o!==s&&(o.jQuery||o.Zepto);if(G&&!G.ua){var Y=new UAParser;G.ua=Y.getResult(),G.ua.get=function(){return Y.getUA()},G.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:this)},44682:(e,t,n)=>{"use strict";n.d(t,{createContext:()=>p,useContext:()=>v,useContextSelector:()=>h});var r=n(67294),o=n(63840),i=n(73935);const a="v",s="p",u="l",l="u",c=Symbol(),f=Symbol(),d="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?r.useEffect:r.useLayoutEffect,p=e=>{const t=r.createContext({[c]:{[a]:e,[s]:-1,[u]:new Set,[l]:e=>e()}},(()=>0));var n;return t[f]=t.Provider,t.Provider=(n=t.Provider,r.memo((({value:e,children:t})=>{const[f,p]=r.useState(0),h=r.useRef(0),g=r.useRef();g.current||(g.current=new Set);const v=r.useCallback((e=>{(0,i.unstable_batchedUpdates)((()=>{h.current+=1,p(h.current),g.current.forEach((e=>e(h.current))),e()}))}),[]);return d((()=>{h.current+=1,p(h.current),(0,o.unstable_runWithPriority)(o.unstable_NormalPriority,(()=>{g.current.forEach((t=>{t(h.current,e)}))}))}),[e]),r.createElement(n,{value:{[c]:{[a]:e,[s]:f,[u]:g.current,[l]:v}}},t)}))),delete t.Consumer,t},h=(e,t)=>{const n=r.useContext(e)[c];const{[a]:o,[s]:i,[u]:l}=n,f=t(o),p=r.useRef(null);d((()=>{p.current={f:t,v:o,s:f}}));const[,h]=r.useReducer(((e,t)=>{if(i<t)return e+1;try{if(p.current.v===o||Object.is(p.current.s,p.current.f(o)))return e}catch(e){}return e+1}),0);return d((()=>{const e=(e,t)=>{try{if(t&&(p.current.v===t||Object.is(p.current.s,p.current.f(t))))return}catch(e){}h(e)};return l.add(e),()=>{l.delete(e)}}),[l]),f},g=e=>e,v=e=>h(e,g)},19302:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(67294);function o(e,t,n){var o=this,i=(0,r.useRef)(null),a=(0,r.useRef)(0),s=(0,r.useRef)(null),u=(0,r.useRef)([]),l=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,m=v?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var y=(0,r.useMemo)((function(){var e=function(e){var t=u.current,n=l.current;return u.current=l.current=null,a.current=e,c.current=f.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-i.current,r=e-a.current;return!i.current||n>=t||n<0||v&&r>=m},y=function(t){return s.current=null,g&&u.current?e(t):(u.current=l.current=null,c.current)},b=function(){var e=Date.now();if(r(e))return y(e);if(d.current){var o=e-i.current,s=e-a.current,u=t-o,l=v?Math.min(u,m-s):u;n(b,l)}},w=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var g=Date.now(),m=r(g);if(u.current=f,l.current=o,i.current=g,m){if(!s.current&&d.current)return a.current=i.current,n(b,t),h?e(i.current):c.current;if(v)return n(b,t),e(i.current)}return s.current||n(b,t),c.current};return w.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,u.current=i.current=l.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?y(Date.now()):c.current},w}),[h,v,t,m,g,p]);return y}},44586:(e,t,n)=>{"use strict";var r;n.d(t,{default:()=>f});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};const f=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)}},42473:e=>{"use strict";var t=function(){};e.exports=t},55721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o,i,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s},e.exports=t.default},25855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){var n=e.formatToParts(t);return n[n.length-1].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)},e.exports=t.default},32734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,i,f;if(""===e)return 0;if(r=s.timezoneZ.exec(e))return 0;if(r=s.timezoneHH.exec(e))return l(f=parseInt(r[1],10))?-f*a:NaN;if(r=s.timezoneHHMM.exec(e)){f=parseInt(r[1],10);var d=parseInt(r[2],10);return l(f,d)?(i=Math.abs(f)*a+6e4*d,f>0?-i:i):NaN}if(function(e){if(c[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),c[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var p=n?t:function(e){return(0,o.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),h=u(p,e),g=n?h:function(e,t,n){var r=e.getTime()-t,o=u(new Date(r),n);if(t===o)return t;r-=o-t;var i=u(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,h,e);return-g}return NaN};var r=i(n(2712)),o=i(n(55721));function i(e){return e&&e.__esModule?e:{default:e}}var a=36e5,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function u(e,t){var n=(0,r.default)(e,t),i=(0,o.default)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return i-(a-=s>=0?s:1e3+s)}function l(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var c={};e.exports=t.default},7048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;t.default=n,e.exports=t.default},2712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=function(e){if(!r[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;r[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return r[e]}(t);return o.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),o=[],i=0;i<r.length;i++){var a=n[r[i].type];a>=0&&(o[a]=parseInt(r[i].value,10))}return o}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(o,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(o,e)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};e.exports=t.default},33826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25855)),o=i(n(32734));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=e?(0,o.default)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function s(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function u(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+s(Math.floor(o/60),2)+n+s(Math.floor(o%60),2)}function l(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):u(e,t)}var c={X:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return l(o);case"XXXX":case"XX":return u(o);default:return u(o,":")}},x:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);switch(t){case"x":return l(o);case"xxxx":case"xx":return u(o);default:return u(o,":")}},O:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+s(i,2)}(o,":");default:return"GMT"+u(o,":")}},z:function(e,t,n,o){var i=o._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,r.default)("short",i,o);default:return(0,r.default)("long",i,o)}}};t.default=c,e.exports=t.default},56558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=String(t),u=n||{},l=a.match(s);if(l){var c=(0,i.default)(e,u);a=l.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+o.default[t[0]](c,t,null,u)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),a)}return(0,r.default)(e,a,u)};var r=a(n(15616)),o=a(n(33826)),i=a(n(21476));function a(e){return e&&e.__esModule?e:{default:e}}var s=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},26645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var s=(0,r.default)(a);return s.timeZone=t,(0,o.default)((0,i.default)(e,t),n,s)};var r=a(n(46420)),o=a(n(56558)),i=a(n(1132));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},24992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return-(0,o.default)(e,t)};var r,o=(r=n(32734))&&r.__esModule?r:{default:r};e.exports=t.default},70722:(e,t,n)=>{"use strict";e.exports={format:n(56558),formatInTimeZone:n(26645),getTimezoneOffset:n(24992),toDate:n(21476),utcToZonedTime:n(1132),zonedTimeToUtc:n(68516)}},21476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},a=null==n.additionalDigits?2:(0,r.default)(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var s=c(e),u=f(s.date,a),l=u.year,h=u.restDateString,g=d(h,l);if(isNaN(g))return new Date(NaN);if(g){var v,m=g.getTime(),y=0;if(s.time&&(y=p(s.time),isNaN(y)))return new Date(NaN);if(s.timeZone||n.timeZone){if(v=(0,i.default)(s.timeZone||n.timeZone,new Date(m+y)),isNaN(v))return new Date(NaN)}else v=(0,o.default)(new Date(m+y)),v=(0,o.default)(new Date(m+y+v));return new Date(m+y+v)}return new Date(NaN)};var r=s(n(82084)),o=s(n(93561)),i=s(n(32734)),a=s(n(7048));function s(e){return e&&e.__esModule?e:{default:e}}var u=36e5,l={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a.default};function c(e){var t,n={},r=l.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=l.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=l.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function f(e,t){var n,r=l.YYY[t],o=l.YYYYY[t];if(n=l.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=l.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function d(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=l.MM.exec(e))return r=new Date(0),y(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=l.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=m(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=l.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return y(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=l.Www.exec(e))return b(t,i=parseInt(n[1],10)-1)?h(t,i):new Date(NaN);if(n=l.WwwD.exec(e)){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return b(t,i,u)?h(t,i,u):new Date(NaN)}return null}function p(e){var t,n,r;if(t=l.HH.exec(e))return w(n=parseFloat(t[1].replace(",",".")))?n%24*u:NaN;if(t=l.HHMM.exec(e))return w(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*u+6e4*r:NaN;if(t=l.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return w(n,r,o)?n%24*u+6e4*r+1e3*o:NaN}return null}function h(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var g=[31,28,31,30,31,30,31,31,30,31,30,31],v=[31,29,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}function y(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=m(e);if(r&&n>v[t])return!1;if(!r&&n>g[t])return!1}return!0}function b(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function w(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}e.exports=t.default},1132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=(0,o.default)(e,n),a=(0,r.default)(t,i,!0),s=new Date(i.getTime()-a),u=new Date(0);return u.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),u.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),u};var r=i(n(32734)),o=i(n(21476));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},68516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("string"==typeof e&&!e.match(i.default)){var u=(0,r.default)(n);return u.timeZone=t,(0,o.default)(e,u)}var l=(0,o.default)(e,n),c=(0,s.default)(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()).getTime(),f=(0,a.default)(t,new Date(c));return new Date(c+f)};var r=u(n(46420)),o=u(n(21476)),i=u(n(7048)),a=u(n(32734)),s=u(n(55721));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{default:()=>r})},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{default:()=>r})},94578:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(89611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.default)(e,t)}},63366:(e,t,n)=>{"use strict";function r(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}n.d(t,{default:()=>r})},89611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{default:()=>r})},52146:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{default:()=>s});var o=n(89611);function i(){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 a(e,t,n){return a=i()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,o.default)(i,n.prototype),i},a.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=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,Wrapper)}function Wrapper(){return a(e,arguments,r(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(Wrapper,e)},s(e)}}}]);
Back to Directory
File Manager